[]
        
(Showing Draft Content)

UndoStorage

Class: UndoStorage

Command based undo state storage.

Implements

Accessors

hasRedo

Get Signature

get hasRedo(): boolean;

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

Returns

boolean

Implementation of

IUndoStorage.hasRedo


hasUndo

Get Signature

get hasUndo(): boolean;

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

Returns

boolean

Implementation of

IUndoStorage.hasUndo


undoCount

Get Signature

get undoCount(): number;

Gets total undo levels count.

Returns

number

Implementation of

IUndoStorage.undoCount


undoIndex

Get Signature

get undoIndex(): number;

Gets current undo level index.

Returns

number

Implementation of

IUndoStorage.undoIndex


undoInProgress

Get Signature

get undoInProgress(): boolean;

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

Returns

boolean

Implementation of

IUndoStorage.undoInProgress

Methods

applyOptions()

applyOptions(options): void;

Apply undo storage options.

Parameters

options

ViewerOptions

Returns

void

Implementation of

IUndoStorage.applyOptions


clear()

clear(): void;

Clear undo storage.

Returns

void

Implementation of

IUndoStorage.clear


dispose()

dispose(): void;

Dispose undo storage.

Returns

void

Implementation of

IUndoStorage.dispose


execute()

execute(command): Promise<void>;

Execute a new command.

Parameters

command

UndoCommandSupport

Instance of a command.

Returns

Promise<void>

Implementation of

IUndoStorage.execute


isCommandSupported()

isCommandSupported(command): boolean;

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

Parameters

command

UndoCommandSupport

Returns

boolean

Implementation of

IUndoStorage.isCommandSupported


onCommandExecuted()

onCommandExecuted(command): void;

Called after command action has been executed.

Parameters

command

UndoCommandSupport

Returns

void

Implementation of

IUndoStorage.onCommandExecuted


redo()

redo(): Promise<void>;

Redo next action.

Returns

Promise<void>

Implementation of

IUndoStorage.redo


undo()

undo(): Promise<void>;

Undo last action.

Returns

Promise<void>

Implementation of

IUndoStorage.undo