OptionalhtmlInlined assets for the HTML output; required only when format is 'html'.
OptionallayoutDOT-to-SVG layout engine; defaults to the real viz.js.
OptionalonCalled once when the default raster engine downscales the output. The CLI uses this to print a one-line stderr notice.
OptionalrasterSVG rasterization engine; defaults to the real resvg. When set, rasterMaxDim
and onRasterCap are ignored — the caller is in charge of capping.
OptionalrasterMaximum pixel dimension on the longer axis when using the default raster
engine. The output is downscaled to fit while preserving aspect ratio.
Ignored when rasterEngine is set.
Injectable boundaries for
renderGraph(viz.js, resvg, the HTML assets).