Skip to content

@fabwcie/free-drawing / utils/hit / getShapes

Function: getShapes() ​

getShapes(node): Shape<ShapeConfig>[]

Defined in: packages/free-drawing/src/utils/hit.ts:48

Shapes of a node: itself, or shapes of a group and its groups

Parameters ​

node ​

Node

shape, group or frame

Returns ​

Shape<ShapeConfig>[]

the shape itself, the shapes in a group at any depth, else none