Private _currentPrivate Readonly _keepPrivate Readonly _pathPrivate idPrivate Readonly redoReadonly rootPrivate Readonly undoReadonly undoableThe current node. As the history is a tree in which one can navigate using undo, redo, gotTo, this current node refers to the node where the system state is.
States whether the path of kept. If kept, users cannot delete nodes.
Returns the ordered sequence of undoable's ID that the user performed. This permits to keep traces of what the users did and how they arrived to the final state.
Adds an undoable object to the collector.
The undoable object to add.
Private addExports the history.
The function that converts undoable objects into ad-hoc formats.
Private gatherPrivate getPrivate goPrivate goImports the given DTO history. Flushes the current history.
The DTO history to import.
The convertion fonction that transforms undoable DTO (of nodes) into Undoable.
Generated using TypeDoc
An implementation of the TreeUndoHistory interface