[]
        
(Showing Draft Content)

IUndoableCommand

Interface: IUndoableCommand

Interface for commands that support undo operations. Commands implementing this interface must define how to revert their effects.

Methods

undo()

undo(options): void;

Reverts the changes made by this command, restoring the previous state. Should be side-effect-free beyond restoring canvas or model state.

Parameters

options

PaintExecuteOptions

Returns

void