Home > @jsplumbtoolkit/browser-ui > SvgExportOptions
SvgExportOptions interface
Options for SVG export.
Signature:
export interface SvgExportOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultSize? | Size | (Optional) Default size to use for nodes if their data does not have width/height properties. | |
fill? | string | (Optional) Default fill color to use for vertices. Will be overridden by individual fill values in each node. Default value is white. | |
labelAttribute? | string | (Optional) If showing labels, the name of the property in each node that defines the label. Defaults to label . | |
labelColor? | string | (Optional) If showing labels, the default color to use. Will be overridden by individual textColor values in each node. Default value is black. | |
labelStrokeWidth? | string | (Optional) If showing labels, the stroke width to use when rendering them. Defaults to 0.25px. | |
margins? | PointXY | (Optional) Optional whitespace to place around the export. Defaults to 50px in x and y. | |
outline? | string | (Optional) Default outline color to use for vertices. Will be overridden by individual outline values in each node. Default value is black. | |
showLabels? | boolean | (Optional) Whether or not to display labels (using an SVG text element) on nodes. Defaults to false. | |
strokeWidth? | number | (Optional) Default stroke width to use for nodes. Will be overridden by individual outlineWidth values in each node. Default value is 2. |