[]
Document Solutions Image Viewer - v7.2.0 / UndoStorage
Command based undo state storage.
▸ applyOptions(options
): void
Apply undo storage options.
Name | Type |
---|---|
options |
ViewerOptions |
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.
Name | Type |
---|---|
command |
UndoCommandSupport |
boolean
IUndoStorage.isCommandSupported
▸ execute(command
): Promise
<void
>
Execute a new command.
Name | Type | Description |
---|---|---|
command |
UndoCommandSupport |
Instance of a command. |
Promise
<void
>
▸ onCommandExecuted(command
): void
Called after command action has been executed.
Name | Type |
---|---|
command |
UndoCommandSupport |
void
IUndoStorage.onCommandExecuted
▸ undo(): Promise
<void
>
Undo last action.
Promise
<void
>
▸ redo(): Promise
<void
>
Redo next action.
Promise
<void
>
• get
hasUndo(): boolean
Gets a value indicating whether the undo storage can undo changes.
boolean
IUndoStorage.hasUndo
• get
hasRedo(): boolean
Gets a value indicating whether the undo storage can redo changes.
boolean
IUndoStorage.hasRedo
• get
undoIndex(): number
Gets current undo level index.
number
IUndoStorage.undoIndex
• get
undoCount(): number
Gets total undo levels count.
number
IUndoStorage.undoCount
• get
undoInProgress(): boolean
Gets a flag indicating whether an undo/redo or execute operation is in progress.
boolean
IUndoStorage.undoInProgress