Skip to content

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

readonly canRedo: boolean

Defined in: graphty-element/src/graphty-element.ts:5355

Whether a redo would do anything.


canUndo ​

readonly canUndo: boolean

Defined in: graphty-element/src/graphty-element.ts:5353

Whether an undo would do anything.


position ​

readonly position: number

Defined in: graphty-element/src/graphty-element.ts:5349

session.history.position: how many steps are applied.


reason ​

readonly reason: "pending" | "record" | "size" | "merge" | "restore" | "undo" | "redo" | "clear" | "evict"

Defined in: graphty-element/src/graphty-element.ts:5345

Why the history changed.


steps ​

readonly steps: number

Defined in: graphty-element/src/graphty-element.ts:5351

How many steps the history holds.


version ​

readonly version: number

Defined in: graphty-element/src/graphty-element.ts:5347

session.history.version: bumps on every change.