[]
Command based undo state storage.
get hasRedo(): boolean;
Gets a value indicating whether the undo storage can redo changes.
boolean
get hasUndo(): boolean;
Gets a value indicating whether the undo storage can undo changes.
boolean
get undoCount(): number;
Gets total undo levels count.
number
get undoIndex(): number;
Gets current undo level index.
number
get undoInProgress(): boolean;
Gets a flag indicating whether an undo/redo or execute operation is in progress.
boolean
applyOptions(options): any;
Apply undo storage options.
any
clear(): any;
Clear undo storage.
any
dispose(): any;
Dispose undo storage.
any
execute(command): Promise<void>;
Execute a new command.
Instance of a command.
Promise
<void
>
isCommandSupported(command): boolean;
Gets a value indicating whether the command specified in the command parameter is supported.
boolean
onCommandExecuted(command): any;
Called after command action has been executed.
any
redo(): Promise<void>;
Redo next action.
Promise
<void
>
undo(): Promise<void>;
Undo last action.
Promise
<void
>