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