OptionaldefaultDefault size to use for nodes if their data does not have width/height properties.
OptionalfillDefault fill color to use for vertices. Will be overridden by individual fill values in each node. Default value is white.
OptionalgridOptional, defaults to 1. If a grid is being included in the output JsPlumb will draw this number of blank grid cells around the content. You can set this to 0, but we wouldn't recommend setting it to a negative number!
OptionallabelIf showing labels, the name of the property in each node that defines the label. Defaults to label.
OptionallabelIf showing labels, the default color to use. Will be overridden by individual textColor values in each node. Default value is black.
OptionallabelIf showing labels, the stroke width to use when rendering them. Defaults to 0.25px.
OptionalmarginsOptional whitespace to place around the export. Defaults to 50px in x and y.
OptionaloutlineDefault outline color to use for vertices. Will be overridden by individual outline values in each node. Default value is black.
OptionalpathOptional path to render. If null, and selection is null, the whole dataset is exported.
OptionalselectionOptional selection to render. If null, and path is null, the whole dataset is exported.
OptionalshapeOptional ShapeLibrary to use. If not supplied, supply shapeLibraryId - or ensure the Surface you are exporting has a ShapeLibrary registered on it.
OptionalshapeOptional ID of a ShapeLibrary to use - must have been registered on the jsPlumb Angular service via the registerShapeLibrary method. If not supplied,
supply shapeLibrary - or ensure the Surface you are exporting has a ShapeLibrary registered on it.
OptionalshowOptional, defaults to true. When a generated grid background is in use in the Surface whose contents are being exported, by default the exported SVG (or PNG/JPG) will include the grid. This flag allows you to hide the grid if you wish.
OptionalshowWhether or not to display labels (using an SVG text element) on nodes. Defaults to false.
OptionalstrokeDefault stroke width to use for nodes. Will be overridden by individual outlineWidth values in each node. Default value is 2.
OptionalstyleOptional style to set in a style element in the SVG header. You can provide the CSS for the style element as a string, or
you can provide a JS object.
Surface to export
Options for SVG export.