[]
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): void;
Apply undo storage options.
void
clear(): void;
Clear undo storage.
void
dispose(): void;
Dispose undo storage.
void
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
IUndoStorage
.isCommandSupported
onCommandExecuted(command): void;
Called after command action has been executed.
void
IUndoStorage
.onCommandExecuted
redo(): Promise<void>;
Redo next action.
Promise
<void
>
undo(): Promise<void>;
Undo last action.
Promise
<void
>