@mocanvas/mocanvas · function
declare function getGeoGeometry(kind: GeoShapeKind, w: number, h: number, isFilled: boolean, flip?: GeoFlip, strokeWidth?: number): Geometry2dBuild the outline geometry for a geo kind inside a w×h box.
flip mirrors the silhouette in place — see GeoFlip. It is applied
to the *source* points and control points rather than to the finished
geometry, so a curved outline keeps its curves instead of being flattened
into a mirrored polygon.
Mentioned here
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.