English
@eightkk/vue-weave / core / renderGraphSvg
Function: renderGraphSvg()
renderGraphSvg<
N,E>(layout,nodes,edges,options?):string
Defined in: src/core/exportSvg.ts:389
Build a standalone SVG document of a whole graph with the default node rendering. Every node, edge, label and group is included regardless of any camera or culling. Node shapes and edge markers are drawn like NetworkGraph draws them; hollow markers are filled with the theme's surfaceMuted, and animated edges are dashed without motion. Throws RangeError for an unknown edge marker. Runs without a DOM.
Type Parameters
N
N extends NetworkNode<unknown>
E
E extends GraphEdge<unknown>
Parameters
layout
nodes
readonly N[]
edges
readonly E[]
options?
GraphSvgOptions<N, E> = {}
Returns
string