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