Ir al contenido

PrintOptions

Defined in: export/PrintExporter.ts:5

optional background?: string

Defined in: export/PrintExporter.ts:9

Background color. Default: ‘#ffffff’


optional fitToPage?: boolean

Defined in: export/PrintExporter.ts:15

Whether to fit the content to the page width. Default: true


optional format?: "svg" | "png"

Defined in: export/PrintExporter.ts:23

How the diagram is embedded in the print window. 'svg' (default) embeds a vector <svg> — crisp at any zoom/DPI and produces a real vector PDF when the browser’s print dialog “saves as PDF”. 'png' rasterizes first via PNGExporter, for cases needing a plain raster image instead.


optional padding?: number

Defined in: export/PrintExporter.ts:11

Padding around the content. Default: 20


optional scale?: number

Defined in: export/PrintExporter.ts:13

Scale factor for the printed image. Only applies to format: 'png'. Default: 2 (for print resolution).


optional title?: string

Defined in: export/PrintExporter.ts:7

Page title shown in the print header.