Skip to content

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

Function: isShapesContainer() ​

isShapesContainer(node, layer): boolean

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

Container of drawing shapes: draw layer, or content of a frame

Parameters ​

node ​

Node<NodeConfig> | null

node to check (parent of a shape), or nothing

layer ​

Container

draw layer

Returns ​

boolean

true for the draw layer or the content group of a frame