@mocanvas/mocanvas · function
declare function rectPath(w: number, h: number, radius?: number): Path2DA rectangle, optionally rounded.
roundRect is a 2022-era addition; a square corner is a cosmetic regression
where a thrown exception would take the whole indicator layer with it, so a
missing roundRect falls back rather than failing.
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.