Skip to main content
Version: 4.3

GraphHistoryStack

The reactive undo/redo status returned by useGraphHistoryStack: live stack counts and the canUndo / canRedo flags for toolbar buttons.

Properties​

canRedo​

readonly canRedo: boolean;

Whether there are commands to redo.


canUndo​

readonly canUndo: boolean;

Whether there are commands to undo.


redoCount​

readonly redoCount: number;

Number of commands in the redo stack.


undoCount​

readonly undoCount: number;

Number of commands in the undo stack.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub