Interface: PrintOptions
Options of printDiagram.
Extends
Omit<SvgExportOptions,"scale"|"colorMode">
Properties
background?
background?: string | boolean;
true (default) fills with the palette's canvas colour, false is transparent, a string is a colour.
Inherited from
decorations?
decorations?: Decorations | null;
Search, path and diff tones, drawn into the file too (a diff can be exported).
Inherited from
detailLevel?
detailLevel?: DetailLevel;
Inherited from
edgeStyle?
edgeStyle?: EdgeStyle;
Inherited from
highlight?
highlight?: readonly string[];
Inherited from
margin?
margin?: string;
Page margin (CSS length). Default '10mm'.
orientation?
orientation?: "landscape" | "portrait" | "auto";
Page orientation. Default 'landscape'; 'auto' picks from the diagram's aspect ratio.
padding?
padding?: number;
Space around the diagram, in px. Default 24.
Inherited from
palette?
palette?: PaletteOverrides | null;
Colours and fonts replacing the colorMode palette's: what the page shows, so the file matches
it (resolvePalette). The interactive canvas passes them for its own exports.
Inherited from
title?
title?: string;
Written as the SVG <title>.