Interface: M2NodeNewEvent
Base interface for all m2c2kit events.
Remarks
I would have named it Event, but that would collide with the existing DOM Event
Extends
Properties
compositeType?
optionalcompositeType:string
If a composite node, the type of the composite.
Defined in
m2c2kit/packages/core/src/M2Event.ts:63
handled?
optionalhandled:boolean
Has the event been taken care of by the listener and not be dispatched to other targets?
Inherited from
Defined in
m2c2kit/packages/core/src/M2Event.ts:26
iso8601Timestamp
iso8601Timestamp:
string
Timestamp of th event, from new Date().toISOString()
Inherited from
Defined in
m2c2kit/packages/core/src/M2Event.ts:30
nodeOptions
nodeOptions:
M2NodeOptions
The options of the at the time of instantiation. This includes options for any base types and interfaces.
Defined in
m2c2kit/packages/core/src/M2Event.ts:65
nodeType
nodeType:
string
The type of the new node.
Defined in
m2c2kit/packages/core/src/M2Event.ts:61
sequence?
optionalsequence:number
Sequence number of event.
Remarks
Sequence number is guaranteed to reflect order of events, but not necessarily contiguous, e.g., could be 1, 2, 5, 10, 11, 24.
Inherited from
Defined in
m2c2kit/packages/core/src/M2Event.ts:35
target
target:
M2Node
The object on which the event occurred. If the event has gone through serialization, the string will be the object's UUID (if an M2Node) or class name.
Overrides
Defined in
m2c2kit/packages/core/src/M2Event.ts:59
timestamp
timestamp:
number
Timestamp of the event, from performance.now()
Inherited from
Defined in
m2c2kit/packages/core/src/M2Event.ts:28
type
type:
"NodeNew"
Type of event.
Overrides
Defined in
m2c2kit/packages/core/src/M2Event.ts:58