issue_tree
    Preparing search index...

    Interface RenderDeps

    Injectable boundaries for renderGraph (viz.js, resvg, the HTML assets).

    interface RenderDeps {
        htmlAssets?: HtmlAssets;
        layout?: LayoutEngine;
        onRasterCap?: (info: CapInfo) => void;
        rasterEngine?: RasterEngine;
        rasterMaxDim?: number;
    }
    Index

    Properties

    htmlAssets?: HtmlAssets

    Inlined assets for the HTML output; required only when format is 'html'.

    layout?: LayoutEngine

    DOT-to-SVG layout engine; defaults to the real viz.js.

    onRasterCap?: (info: CapInfo) => void

    Called once when the default raster engine downscales the output. The CLI uses this to print a one-line stderr notice.

    rasterEngine?: RasterEngine

    SVG rasterization engine; defaults to the real resvg. When set, rasterMaxDim and onRasterCap are ignored — the caller is in charge of capping.

    rasterMaxDim?: number

    Maximum 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.