Skip to main content

Interface: SvgExportOptions

Defined in: src/export/SvgExporter.ts:61

Options for an SVG export.

Properties​

background?​

optional background: string

Defined in: src/export/SvgExporter.ts:71

Background color for the <svg> (a solid <rect> behind everything). Omit for a transparent background.


precision?​

optional precision: number

Defined in: src/export/SvgExporter.ts:66

Decimal places for coordinates and numeric attributes. Defaults to 3. Fewer places give smaller output; more give higher precision.