HistoryManager
HistoryManager
Manages undo/redo actions.
Constructor
public HistoryManager
new HistoryManager()
*Description needed*Properties
No publicly accessible properties on HistoryManager
private disabled: false | true
Description needed
private callbacks: Set<HistoryCallback>
Description needed
Methods
private callback
callback(type, action) => void
Description needed
Parameters
type: "add" | "undo" | "redo" | "reset"
– Description neededaction: Action
– Description needed
public addCallback
addCallback(callback) => void
Description needed
Parameters
-
callback: HistoryCallback
– Description needed
public removeCallback
removeCallback(callback) => void
Description needed
Parameters
-
callback: HistoryCallback
– Description needed
public setDisabled
setDisabled(disabled) => void
Description needed
Parameters
-
disabled: false | true
– Description needed
public add
add(action) => HistoryManager
Add a new action to the undo stack.
Parameters
-
action: Action
– The new action.
Returns
-
HistoryManager
– This HistoryManager for method chaining.
public undo
undo() => HistoryManager
Undo next action and add to redo stack.
Returns
-
HistoryManager
– This HistoryManager for method chaining.
public redo
redo() => HistoryManager
Redo next action and add back to undo stack.
Returns
-
HistoryManager
– This HistoryManager for method chaining.
public getRedoActions
getRedoActions() => Action[]
Description needed
Returns
-
Action[]
– Description needed
Static Methods
No static methods for HistoryManager