@fabwcie/free-drawing / utils/binding / getAnchorAt
Function: getAnchorAt()
getAnchorAt(
shape,layer,point,tolerance):Anchor|undefined
Defined in: packages/free-drawing/src/utils/binding.ts:130
Side of a shape whose middle is near a point, undefined when none
Parameters
shape
Node
shape or group
layer
Container
layer of the shape
point
Vector2d
point in layer coordinates (pointer, arrow end)
tolerance
number
Distance (layer units)
Returns
Anchor | undefined
side whose middle is the nearest, if within tolerance