CUndoCommand
Reversible operation. push() executes redo() before storing the command. Once pushed, a command belongs to its stack and must not be pushed again.
import { CUndoCommand } from "canvas-toolkit-lib";Declared members
constructor(text?: string);text(): string;setText(text: string): void;undo(): void;redo(): void;id(): number;-1 disables merging. Override together with mergeWith().
mergeWith(_command: CUndoCommand): boolean;The incoming command has already been redone.