PrintOptions
Defined in: export/PrintExporter.ts:5
Properties
Sección titulada «Properties»background?
Sección titulada «background?»
optionalbackground?:string
Defined in: export/PrintExporter.ts:9
Background color. Default: ‘#ffffff’
fitToPage?
Sección titulada «fitToPage?»
optionalfitToPage?:boolean
Defined in: export/PrintExporter.ts:15
Whether to fit the content to the page width. Default: true
format?
Sección titulada «format?»
optionalformat?:"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.
padding?
Sección titulada «padding?»
optionalpadding?:number
Defined in: export/PrintExporter.ts:11
Padding around the content. Default: 20
optionalscale?:number
Defined in: export/PrintExporter.ts:13
Scale factor for the printed image. Only applies to format: 'png'. Default: 2 (for print resolution).
optionaltitle?:string
Defined in: export/PrintExporter.ts:7
Page title shown in the print header.