@fabwcie/free-drawing / utils/hit / rectTouches
Function: rectTouches()
rectTouches(
box,rect):boolean
Defined in: packages/free-drawing/src/utils/hit.ts:192
Box (absolute coordinates, e.g. a frame) touched by another box: crossed by it or in it, not when entirely around it
Parameters
box
IRect
touching box (selection rectangle)
rect
IRect
touched box (frame), same coordinates
Returns
boolean
true when a corner of rect is in box or a side of it crosses box