exportSVG

Exports a group of Drawing elements as an SVG document. In the exported file, the group is positioned at [0, 0]. Its dimensions will be used as the default dimensions of the image. The export operation is asynchronous and returns a promise. The promise will be resolved with an SVG document encoded as a Data URI.

Example
View Source
Change Theme:

Parameters

group Group

The root group containing all elements to export.

options? SVGExportOptions

The export options.

Returns

Promise<string> - A promise that will be resolved with an SVG document encoded as a Data URI.

In this article

Not finding the help you need?