@fabwcie/free-drawing / utils/binding / getShapeCenter
Function: getShapeCenter()
getShapeCenter(
shape,layer):Vector2d
Defined in: packages/free-drawing/src/utils/binding.ts:94
Center of a shape in its layer
Parameters
shape
Node
shape or group
layer
Container
layer of the shape
Returns
Vector2d
center in layer coordinates (rectangles and ellipses: center of their own rect)