Ir al contenido

PNGExporter

Defined in: export/PNGExporter.ts:25

Exports a diagram to a raster image (PNG). Renders the diagram content to an offscreen canvas.

new PNGExporter(options?): PNGExporter

Defined in: export/PNGExporter.ts:28

ImageExportOptions = {}

PNGExporter

exportToFile(diagram, filename): void

Defined in: export/PNGExporter.ts:208

Download the diagram as a PNG file.

Diagram

string

void


makeBlob(diagram): Promise<Blob>

Defined in: export/PNGExporter.ts:195

Export the diagram to a PNG Blob.

Diagram

Promise<Blob>


makeCanvas(diagram): HTMLCanvasElement

Defined in: export/PNGExporter.ts:41

Render the diagram content to an offscreen canvas.

Diagram

HTMLCanvasElement


makeDataURL(diagram): string

Defined in: export/PNGExporter.ts:188

Export the diagram to a PNG data URL.

Diagram

string