@fabwcie/free-drawing / utils/binding / findBindingTarget
Function: findBindingTarget()
findBindingTarget(
shapes,point,exclude?):DrawingShape|null
Defined in: packages/free-drawing/src/utils/binding.ts:187
Shape an arrow end can be linked to at a point: smallest visible shape around it (rectangles, ellipses, texts, freehand drawings, groups), not arrows nor lines
Parameters
shapes
Drawing shapes
point
Vector2d
arrow end, in coordinates of the layer of shapes
exclude?
Node<NodeConfig>
Arrow being drawn
Returns
DrawingShape | null
smallest shape whose box (with bindingMargin) contains the point, null when none