Provides methods for undo/redo functionality.

interface IHistoryManager {
    autoBatchEnabled: boolean;
    canRedo: boolean;
    canUndo: boolean;
    clear(): void;
    push(undo: VoidFunction, redo: VoidFunction): void;
    redo(): void;
    undo(): void;
}

Implemented by

Properties

autoBatchEnabled: boolean

Whether synchronous updates should be batched automatically.

canRedo: boolean

Indicates whether redo is available.

canUndo: boolean

Indicates whether undo is available.

Methods

  • Clears the history.

    Returns void

  • Writes undo/redo commands to history.

    Parameters

    • undo: VoidFunction
    • redo: VoidFunction

    Returns void

  • Repeats the last undone command.

    Returns void

  • Undoes the last command.

    Returns void

MMNEPVFCICPMFPCPTTAAATR