@mocanvas/editor · interface
interface EditorSvgExportOptionsThis 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.
darkMode?: booleanUse the dark background colour.
padding?: number | "auto"Space left around the shapes, in page units.
"auto" — the default when the option is omitted — pads by
options.defaultSvgPadding and then trims back to the visual content, so
an overhanging stroke or arrowhead is captured without leaving a margin of
empty space. A number is fixed padding and clips anything past it.
scale?: numberMultiplier applied to the output width/height.
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.