Interface UndoHistoryBase

The base interface for undo histories.

interface UndoHistoryBase {
    add(undoable): void;
    clear(): void;
    getLastOrEmptyRedoMessage(): string;
    getLastOrEmptyUndoMessage(): string;
    getLastRedo(): undefined | Undoable;
    getLastRedoMessage(): undefined | string;
    getLastUndo(): undefined | Undoable;
    getLastUndoMessage(): undefined | string;
    redo(): void;
    redosObservable(): Observable<undefined | Undoable>;
    undo(): void;
    undosObservable(): Observable<undefined | Undoable>;
}

Implemented by

Methods

  • Returns string

    The last redoable object name or an empty string if there is no last object.

  • Returns string

    The last undoable object name or an empty string if there is no last object.

  • Returns undefined | string

    The last redoable object name or undefined if there is no last object.

  • Returns undefined | string

    The last undoable object name or undefined if there is no last object.

  • A stream for observing changes regarding the last redoable object.

    Returns Observable<undefined | Undoable>

    An observable value of optional redoable objects: if empty, this means that no redoable object are stored anymore.

  • A stream for observing changes regarding the last undoable object.

    Returns Observable<undefined | Undoable>

    An observable value of optional undoable objects: if empty, this means that no undoable object are stored anymore.

Generated using TypeDoc