Creates an instance of UndoManager
.
Do not use directly, use undoMiddleware
instead.
Optional
store: UndoStoreIf redo can be performed (if there is at least one redo action available)
If undo can be performed (if there is at least one undo action available).
Returns if undo recording is currently disabled or not for this particular UndoManager
.
The number of redo actions available.
The redo stack, where the first operation to redo will be the last of the array. Do not manipulate this array directly.
The number of undo actions available.
The undo stack, where the first operation to undo will be the last of the array. Do not manipulate this array directly.
Clears the redo queue.
Clears the undo queue.
Creates a custom group that can be continued multiple times and then ended.
Optional
groupName: stringOptional group name.
An API to continue/end the group.
Disposes the undo middleware.
Redoes the previous action. Will throw if there is no action to redo.
Undoes the last action. Will throw if there is no action to undo.
Manager class returned by
undoMiddleware
that allows you to perform undo/redo actions.