[]
        
(Showing Draft Content)

IUndoStorage

Interface: IUndoStorage

Command based undo state storage.

Accessors

hasRedo

Get Signature

get hasRedo(): boolean;

Gets a value indicating whether the undo storage can redo changes.

Returns

boolean


hasUndo

Get Signature

get hasUndo(): boolean;

Gets a value indicating whether the undo storage can undo changes.

Returns

boolean


undoCount

Get Signature

get undoCount(): number;

Gets total undo levels count.

Returns

number


undoIndex

Get Signature

get undoIndex(): number;

Gets current undo level index.

Returns

number


undoInProgress

Get Signature

get undoInProgress(): boolean;

Gets a flag indicating whether an undo/redo or execute operation is in progress.

Returns

boolean

Methods

applyOptions()

applyOptions(options): any;

Apply undo storage options.

Parameters

options

ViewerOptions

Returns

any


clear()

clear(): any;

Clear undo storage.

Returns

any


dispose()

dispose(): any;

Dispose undo storage.

Returns

any


execute()

execute(command): Promise<void>;

Execute a new command.

Parameters

command

UndoCommandSupport

Instance of a command.

Returns

Promise<void>


isCommandSupported()

isCommandSupported(command): boolean;

Gets a value indicating whether the command specified in the command parameter is supported.

Parameters

command

UndoCommandSupport

Returns

boolean


onCommandExecuted()

onCommandExecuted(command): any;

Called after command action has been executed.

Parameters

command

UndoCommandSupport

Returns

any


redo()

redo(): Promise<void>;

Redo next action.

Returns

Promise<void>


undo()

undo(): Promise<void>;

Undo last action.

Returns

Promise<void>