@mocanvas/mocanvas · function

getGeoPolygonPoints

declare function getGeoPolygonPoints(kind: GeoShapeKind, w: number, h: number): VecLike[] | null

Polygon vertices for the polygonal geo kinds, or null for the curved kinds (ellipse, oval, cloud, heart). x-box and check-box return their frame; see getGeoDecorations for the marks inside.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.