editor / boxCenter
Function: boxCenter()
boxCenter(
box):Point
Defined in: model/box-center.ts:12
Center of a shape's box, the point it turns about (ADR-0035): its position plus half its size.
Parameters
box
Omit<TurnedBox, "angle">
position, width and height of the box before it turns
Returns
the center, in the coordinates of the SVG
Kind
domain
See
DERIV-turned-shape