@mocanvas/editor · interface

ShapeSvgContext

interface ShapeSvgContext

Export-wide settings handed to ShapeUtil.toSvg / toBackgroundSvg.


Properties · 2

background: string

The page background colour of the export, as #rrggbb.

darkMode: boolean

Whether the export is being drawn against the dark theme.

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.