@fabwcie/free-drawing / utils/binding / getOutlinePoint
Function: getOutlinePoint()
getOutlinePoint(
shape,layer,towards):Vector2d|null
Defined in: packages/free-drawing/src/utils/binding.ts:146
Point of shape outline on the way from its center to a point (layer coordinates), gap outside of it. Null when the point is the center
Parameters
shape
Node
shape or group
layer
Container
layer of the shape
towards
Vector2d
point the outline point aims at, in layer coordinates
Returns
Vector2d | null
point in layer coordinates, null when towards is the center