@mocanvas/mocanvas · function
declare function getOutlineSegments(geometry: Geometry2d): [Vec, Vec][]Flattened outline of a geometry as line segments, in the geometry's own space. Groups are walked recursively; label geometry is skipped so arrows end on the shape body rather than on its text box.
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.