Skip to content

@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 ​

readonly cause: "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 ​

readonly change: "created" | "updated" | "removed"

Defined in: graphty-element/src/session/notes/types.ts:173

OPEN UNION.


fields ​

readonly fields: 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 ​

readonly id: string

Defined in: graphty-element/src/session/notes/types.ts:171

The note.


note ​

readonly note: 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.