Ir al contenido

SVGExporter

Defined in: export/SVGExporter.ts:14

SVG exporter for diagrams. Generates an SVG string from the current diagram state.

new SVGExporter(options?): SVGExporter

Defined in: export/SVGExporter.ts:18

string

number

SVGExporter

export(diagram): string

Defined in: export/SVGExporter.ts:26

Export a diagram to SVG string.

Diagram

string


exportToDataURL(diagram): string

Defined in: export/SVGExporter.ts:94

Export as a data URL.

Diagram

string


exportToFile(diagram, filename): void

Defined in: export/SVGExporter.ts:78

Export diagram to a downloadable SVG file.

Diagram

string

void