Skip to content

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

Function: getShapeState() ​

getShapeState(shape): ShapeState

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

State of a drawing shape or group (history, collaboration, files), without draggable which depends on active tool

Parameters ​

shape ​

DrawingShape

Drawing shape or group (with its shapes) to serialize

Returns ​

ShapeState

Konva object of the shape, draggable removed at every level