Interface HistoryContext

This object allows to access to some history functions

interface HistoryContext {
    undoBlockBegin(): Symbol;
    undoBlockFinish(blockId: Symbol): void;
}

Methods

  • Starts an undo block. All operations done inside this block will be undone together until a call to undoBlockFinish is called.

    Returns Symbol

    the block identifier

  • Ends the undo block started with undoBlockBegin

    Parameters

    • blockId: Symbol

      is the id returned by undoBlockBegin

    Returns void

    historyContext.undoBlockFinish(blockId);