Skip to content

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

Type Alias: ShapeState ​

ShapeState = object

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

Serialized drawing shape (konva toObject format), any shape type can be restored, groups with their shapes

Properties ​

attrs ​

attrs: Record<string, unknown>

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

Konva attributes of the node (position, colors, name, id, label...)


children? ​

optional children?: ShapeState[]

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

States of the shapes of a group


className ​

className: string

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

Konva class name used by Node.create (Rect, Line, Group, Frame...)