Skip to main content
Version: 4.3

GraphHistoryApi

The handle returned by useGraphHistory: the underlying dia.CommandManager instance plus imperative undo, redo, and resetHistory operations.

Properties

commandManager

readonly commandManager: CommandManager;

The underlying dia.CommandManager instance.


redo

readonly redo: () => void;

Redo the last undone command, moving it back onto the undo stack.

Returns

void


resetHistory

readonly resetHistory: () => void;

Clear both the undo and redo stacks, discarding all recorded history.

Returns

void


undo

readonly undo: () => void;

Undo the last recorded command, moving it onto the redo stack.

Returns

void

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub