issue_tree
    Preparing search index...

    Function renderGraph

    • Render a graph to the requested format. json and dot are pure text transforms; svg/png/jpeg run the viz.js layout pipeline; html assembles the self-contained interactive document.

      Parameters

      • graph: Graph

        the filtered, status-computed graph

      • opts: RenderOptions

        the format plus layout options

      • deps: RenderDeps

        injectable rendering boundaries and the HTML assets

      Returns Promise<RenderResult>

      a tagged RenderResulttext for json/dot/svg/html, binary for png/jpeg

      Error on an unknown format

      (await renderGraph(graph, { format: 'dot' }, deps)).kind  // => 'text'