VidStudio SDK reference
    Preparing search index...

    Interface UndoManager

    interface UndoManager {
        canRedo(): boolean;
        canUndo(): boolean;
        clear(): void;
        execute(cmd: UndoableCommand): Promise<void>;
        push(cmd: UndoableCommand): void;
        redo(): Promise<void>;
        undo(): Promise<void>;
    }
    Index
    • Returns boolean

    • Returns boolean

    • Returns void

    • Execute a command and push it onto the undo stack. Clears the redo stack (new action invalidates redo history).

      Parameters

      Returns Promise<void>

    • Push a command that has ALREADY been executed onto the undo stack. Used for coalesced slider drags where the mutations happen during the drag and the command is created retroactively on mouseup with before/after values.

      Parameters

      Returns void

    • Returns Promise<void>

    • Returns Promise<void>