Skip to content

@fabwcie/free-drawing / utils/frame / getDrawingShape

Function: getDrawingShape() ​

getDrawingShape(node, layer): DrawingShape

Defined in: packages/free-drawing/src/utils/frame.ts:168

Drawing shape of a node of draw layer: the node itself, or its top group, in draw layer or in a frame (a part of a frame gives the frame)

Parameters ​

node ​

Node

node of the draw layer (hit shape, shape of a group...)

layer ​

Container

draw layer

Returns ​

DrawingShape

drawing shape containing the node, the node itself when it is one