TESSA Web API
    Preparing search index...

    Interface IHistoryManager

    Provides methods for undo/redo functionality.

    interface IHistoryManager {
        autoBatchEnabled: boolean;
        canRedo: boolean;
        canUndo: boolean;
        onRedo: EventHandler<HistoryCommandOptions[]>;
        onUndo: EventHandler<HistoryCommandOptions[]>;
        clear(): void;
        dispose(): void;
        push(
            undo: VoidFunction,
            redo: VoidFunction,
            settings?: HistoryCommandOptions,
        ): void;
        redo(): void;
        undo(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    autoBatchEnabled: boolean

    Whether synchronous updates should be batched automatically.

    canRedo: boolean

    Indicates whether redo is available.

    canUndo: boolean

    Indicates whether undo is available.

    Event raised when redi is called.

    event raised when undo is called.

    Methods

    • Clears the history.

      Returns void

    • Returns void

    • Writes undo/redo commands to history.

      Parameters

      Returns void

    • Repeats the last undone command.

      Returns void

    • Undoes the last command.

      Returns void