Skip to content

anim-format (runtime format) / markerGeometryCenter

Function: markerGeometryCenter() ​

ts
function markerGeometryCenter(
   shape, 
   g, 
   parabola?
): MarkerPoint;

a marker's centre in its layer space (THE rule: document markerCenter) — a polygon's own centre, else its area's centroid; an arrow / line / point / circle: its x, y; else the middle of its box

Parameters ​

ParameterType
shapestring
gMarkerDataGeometry
parabola?MarkerParabola

Returns ​

MarkerPoint

HereSplash — 2D animation for the web