@fabwcie/free-drawing / utils/hit / isTouchedBy
Function: isTouchedBy()
isTouchedBy(
box,node):boolean
Defined in: packages/free-drawing/src/utils/hit.ts:215
Drawing shape touched by a box (absolute coordinates, e.g. selection rectangle): lines and strokes along their points, other shapes along their box (rotated, scaled with them), shapes of groups too. A box entirely inside a shape does not touch it (box drawn in a big shape)
Parameters
box
IRect
touching box, in absolute coordinates
node
drawing shape or group (hidden shapes ignored)
Returns
boolean
true when one of its visible shapes is touched