Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UndoGroup

A group of undo operations.

Hierarchy

Index

Constructors

constructor

Properties

Protected _events

_events: Subject<UndoEvents> = new Subject()

desc

desc: string

events

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

Protected list

list: Undo[] = []

Methods

end

  • end(): void

performRedo

  • performRedo(): void
  • Redoes this group, which means redoing all the operations that this group has recorded.

    Returns void

performUndo

  • performUndo(): void
  • Undoes this group, which means undoing all the operations that this group has recorded.

    Returns void

record

  • record(obj: Undo): void
  • Records an operation as part of this group.

    Parameters

    • obj: Undo

      The operation to record.

    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

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