Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Undo

An undo operation.

param

The description of this undo operation.

Hierarchy

Index

Constructors

constructor

  • new Undo(desc: string): Undo

Properties

Protected _events

_events: Subject<UndoEvents> = new Subject()

desc

desc: string

events

events: Observable<UndoEvents> = this._events.asObservable()

Methods

Protected Abstract performRedo

  • performRedo(): void
  • This is the function that performs the specific operations required by this undo object, when redoing.

    Returns void

Protected Abstract performUndo

  • performUndo(): void
  • This is the function that performs the specific operations required by this undo object, when undoing.

    Returns void

redo

  • redo(): void
  • Called when the operation must be redone.

    throws

    {Error} If an undo is attempted when an undo or redo is already in progress.

    Returns void

toString

  • toString(): string
  • Returns string

    The description of this object.

undo

  • undo(): void
  • Called when the operation must be undone.

    throws

    {Error} If an undo is attempted when an undo or redo is already in progress.

    Returns void

Generated using TypeDoc