Command based undo state storage.

Hierarchy

  • IUndoStorage

Implemented by

Methods

  • Dispose undo storage.

    Returns any

  • Clear undo storage.

    Returns any

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

    Parameters

    Returns boolean

  • Undo last action.

    Returns Promise<void>

  • Redo next action.

    Returns Promise<void>

Accessors

  • get hasUndo(): boolean
  • Gets a value indicating whether the undo storage can undo changes.

    Returns boolean

  • get hasRedo(): boolean
  • Gets a value indicating whether the undo storage can redo changes.

    Returns boolean

  • get undoIndex(): number
  • Gets current undo level index.

    Returns number

  • get undoCount(): number
  • Gets total undo levels count.

    Returns number

  • get undoInProgress(): boolean
  • Gets a flag indicating whether an undo/redo or execute operation is in progress.

    Returns boolean