@graphty/graphty-element / index / NoteChange
Interface: NoteChange ​
Defined in: graphty-element/src/session/notes/types.ts:169
One note a write touched, published as note:changed. Frozen.
Properties ​
cause ​
readonlycause:"load"|"command"|"undo"|"redo"
Defined in: graphty-element/src/session/notes/types.ts:179
OPEN UNION: a write, a history move, or a saved project being opened.
change ​
readonlychange:"created"|"updated"|"removed"
Defined in: graphty-element/src/session/notes/types.ts:173
OPEN UNION.
fields ​
readonlyfields: readonly ("text"|"done"|"targets"|"cites"|"mediaType"|"extensions")[]
Defined in: graphty-element/src/session/notes/types.ts:175
Which fields an "updated" change touched; empty otherwise. OPEN UNION.
id ​
readonlyid:string
Defined in: graphty-element/src/session/notes/types.ts:171
The note.
note ​
readonlynote:Note|null
Defined in: graphty-element/src/session/notes/types.ts:177
The frozen record after the change; null after removal. Not in the DOM event's detail.