API > @blocksuite/store > Y > YXmlEvent
Class: YXmlEvent ​
Extends ​
YEvent<XmlFragment|XmlElement< {} > |XmlText>
Constructors ​
constructor ​
new YXmlEvent(
target,subs,transaction):YXmlEvent
Parameters ​
| Parameter | Type | Description |
|---|---|---|
target | XmlFragment | XmlText | XmlElement< {} > | The target on which the event is created. |
subs | Set< null | string > | The set of changed attributes. null is included if thechild list changed. |
transaction | Transaction | The transaction instance with wich the change was created. |
Returns ​
Overrides ​
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/types/YXmlEvent.d.ts:15
Properties ​
_changes ​
_changes:
null|Object
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:29
Inherited from ​
_delta ​
_delta:
null| {attributes: {};delete:number;insert:string|object|any[] |AbstractType<any>;retain:number;}[]
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:41
Inherited from ​
_keys ​
_keys:
null|Map<string, {action:"add"|"update"|"delete";newValue:any;oldValue:any;} >
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:33
Inherited from ​
_path ​
_path:
null| (string|number)[]
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:52
Inherited from ​
attributesChanged ​
attributesChanged:
Set<string>
Set of all changed attributes.
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/types/YXmlEvent.d.ts:26
childListChanged ​
privatechildListChanged:any
Whether the children changed.
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/types/YXmlEvent.d.ts:21
currentTarget ​
currentTarget:
AbstractType<any>
The current target on which the observe callback is called.
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:20
Inherited from ​
target ​
target:
XmlFragment|XmlText|XmlElement< {} >
The type on which this event was created on.
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:15
Inherited from ​
transaction ​
transaction:
Transaction
The transaction that triggered this event.
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:25
Inherited from ​
Accessors ​
changes ​
getchanges():object
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:117
Inherited from ​
delta ​
getdelta(): {attributes: {};delete:number;insert:string|object|any[] |AbstractType<any>;retain:number;}[]
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:92
Inherited from ​
keys ​
getkeys():Map<string, {action:"add"|"update"|"delete";newValue:any;oldValue:any;} >
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:79
Inherited from ​
path ​
getpath(): (string|number)[]
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:66
Inherited from ​
Methods ​
adds ​
adds(
struct):boolean
Check if a struct is added by this event.
In contrast to change.deleted, this method also returns true if the struct was added and then deleted.
Parameters ​
| Parameter | Type |
|---|---|
struct | AbstractStruct |
Returns ​
boolean
Inherited from ​
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:108
deletes ​
deletes(
struct):boolean
Check if a struct is deleted by this event.
In contrast to change.deleted, this method also returns true if the struct was added and then deleted.
Parameters ​
| Parameter | Type |
|---|---|
struct | AbstractStruct |
Returns ​
boolean
Inherited from ​
Defined In ​
node_modules/.pnpm/yjs@13.6.8/node_modules/yjs/dist/src/utils/YEvent.d.ts:75