@mocanvas/mocanvas · function
declare function canBuildPath(): booleanWhether canvas paths can be built at all.
Path2D is a DOM class: it is absent in Node (unit tests, SSR, the headless
export path). A util calls this rather than letting a ReferenceError out of
a render pass.
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.