Skip to main content

Other

Types​

UndoStackFrame​

type UndoStackFrame = {
captions?: Record<string, string>;
command: "UndoStack";
current: string;
id?: string | null;
stack: string[];
undoable?: boolean;
};

The undo history of the engine's drawing, sent by the engine (a ClassCAD server, the WASM engine) after every undoable command and every undo / redo, and to a guest when it joins a shared session. stack and current are state ids (time stamps, oldest first); id is the transaction of the undoable command that recorded the newest state (null otherwise); captions names the api call behind every state.

Properties​

PropertyType
captions?Record<string, string>
command"UndoStack"
currentstring
id?string | null
stackstring[]
undoable?boolean