Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • mxUndoableEdit

Index

Constructors

constructor

  • new mxUndoableEdit(source: any, significant: boolean): mxUndoableEdit

Properties

changes

changes: any[]

Variable: changes

Array that contains the changes that make up this edit. The changes are expected to either have an undo and redo function, or an execute function. Default is an empty array.

redone

redone: boolean

Variable: redone

Specifies if this edit has been redone. Default is false.

significant

significant: boolean

Variable: significant

Specifies if the undoable change is significant. Default is true.

source

source: any

Variable: source

Specifies the source of the edit.

undone

undone: boolean

Variable: undone

Specifies if this edit has been undone. Default is false.

Methods

add

  • Function: add

    Adds the specified change to this edit. The change is an object that is expected to either have an undo and redo, or an execute function.

    Parameters

    Returns void

die

  • die(): void
  • Function: die

    Hook to free resources after the edit has been removed from the command history. This implementation is empty.

    Returns void

isEmpty

  • isEmpty(): boolean

isSignificant

  • isSignificant(): boolean

notify

  • notify(): void
  • Function: notify

    Hook to notify any listeners of the changes after an or has been carried out. This implementation is empty.

    Returns void

redo

  • redo(): void

undo

  • undo(): void

Generated using TypeDoc