Interface UndoSingleEvent

An undo/redo single event.

interface UndoSingleEvent {
    actionName: string;
    inversePatches: readonly Patch[];
    patches: readonly Patch[];
    targetPath: Path;
    type: Single;
}

Properties

actionName: string

Name of the action that was invoked.

inversePatches: readonly Patch[]

Patches to undo the changes done inside the action. Use undo() in the UndoManager to apply them.

patches: readonly Patch[]

Patches with changes done inside the action. Use redo() in the UndoManager to apply them.

targetPath: Path

Path to the object that invoked the action from its root.

type: Single

Expresses this is a single event.