Skip to content

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

Function: getLockedNode() ​

getLockedNode(shape): DrawingShape

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

Locked node of a locked shape: its top locked group, else itself (selected and unlocked as a whole)

Parameters ​

shape ​

DrawingShape

locked drawing shape (or shape of a locked group)

Returns ​

DrawingShape

top group not listening among its parent groups, else the shape