@graphty/graphty-element / index / GraphtyHistoryChangeDetail
Interface: GraphtyHistoryChangeDetail ​
Defined in: graphty-element/src/graphty-element.ts:5343
The detail of graphty-history-change: the undo cursor and what the next undo and redo would do, enough for an Undo and a Redo button. A history panel reads session.history for the steps.
Properties ​
canRedo ​
readonlycanRedo:boolean
Defined in: graphty-element/src/graphty-element.ts:5355
Whether a redo would do anything.
canUndo ​
readonlycanUndo:boolean
Defined in: graphty-element/src/graphty-element.ts:5353
Whether an undo would do anything.
position ​
readonlyposition:number
Defined in: graphty-element/src/graphty-element.ts:5349
session.history.position: how many steps are applied.
reason ​
readonlyreason:"pending"|"record"|"size"|"merge"|"restore"|"undo"|"redo"|"clear"|"evict"
Defined in: graphty-element/src/graphty-element.ts:5345
Why the history changed.
steps ​
readonlysteps:number
Defined in: graphty-element/src/graphty-element.ts:5351
How many steps the history holds.
version ​
readonlyversion:number
Defined in: graphty-element/src/graphty-element.ts:5347
session.history.version: bumps on every change.