Skip to content

@fabwcie/free-drawing / utils/binding / getAnchorPoints

Function: getAnchorPoints() ​

getAnchorPoints(shape, layer): Record<Anchor, Vector2d>

Defined in: packages/free-drawing/src/utils/binding.ts:106

Middle of each side of a shape in its layer (rotated with it)

Parameters ​

shape ​

Node

shape or group

layer ​

Container

layer of the shape

Returns ​

Record<Anchor, Vector2d>

points by side, in layer coordinates