@mocanvas/mocanvas · interface
interface SvgExportOptionsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 4
background?: booleanPaint a full-size background rectangle. Default false.
darkMode?: booleanUse the dark background colour. Default false.
padding?: number | "auto"Page units added around the shapes' bounds. Default 32.
"auto" means "whatever frames the drawing sensibly", which for mocanvas
is the default padding: the export bounds already come from geometry
rather than from the culling pad, so there is no slack left to trim back.
scale?: numberMultiplier applied to the output width/height. Default 1.
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.