Abstract
Abstract
currentThe 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.
Abstract
keepStates whether the path of kept. If kept, users cannot delete nodes.
Abstract
pathReturns 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.
Abstract
rootThe root node of the history. It is a fake node (it does not refer to any undoable object).
Abstract
undoableAll the nodes of the tree.
Abstract
addAdds an undoable object to the collector.
The undoable object to add.
Abstract
clearAbstract
deleteAbstract
exportExports the history.
The function that converts undoable objects into ad-hoc formats.
Abstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
goAbstract
importImports the given DTO history. Flushes the current history.
The DTO history to import.
The convertion fonction that transforms undoable DTO (of nodes) into Undoable.
Abstract
redoAbstract
redosAbstract
undoAbstract
undosGenerated using TypeDoc
Tree-based undo history. On adding undoables after an undo operation, the redoable objects are no more flush but kept in the history as a granch of the graph. Useful for exploration.