Skip to content

@fabwcie/free-drawing / components/tools/UndoRedo/History / serializeShape

Function: serializeShape() ​

serializeShape(shape): string

Defined in: packages/free-drawing/src/components/tools/UndoRedo/History.ts:43

JSON of a drawing shape state

Parameters ​

shape ​

DrawingShape

Drawing shape or group to serialize

Returns ​

string

JSON string of getShapeState, an item of history states