English
@eightkk/vue-weave / core / GraphSvgOptions
Interface: GraphSvgOptions<N, E>
Defined in: src/core/exportSvg.ts:53
N and E type the nodes and edges that the label callbacks receive.
Extends
Type Parameters
N
N extends NetworkNode = NetworkNode
E
E extends GraphEdge = GraphEdge
Properties
background?
optionalbackground?:boolean
Defined in: src/core/svgExportShared.ts:96
Paint an opaque background. Default true.
Inherited from
direction?
optionaldirection?:"ltr"|"rtl"
Defined in: src/core/svgExportShared.ts:100
Text direction of labels. For timelines, rtl also mirrors the time axis and places row headings on the right.
Inherited from
edgeBands?
optionaledgeBands?:ReadonlyMap<string,GraphEdgeBand>
Defined in: src/core/exportSvg.ts:90
Edges drawn as bands with real width, like the NetworkGraph edgeBands prop (for example graphFlowBands of a layoutFlowGraph result): a translucent stroke of the band width without markers, dashed for a reference band, with the band label as its <title>. Bands are drawn widest first, before the other edges, so thin bands stay visible. Unknown IDs are ignored. Throws RangeError for a width that is not finite and at least 0.
edgeLabel?
optionaledgeLabel?: (edge) =>string|undefined
Defined in: src/core/exportSvg.ts:83
Edge label text. Defaults to edge.label.
Parameters
edge
E
Returns
string | undefined
fontFamily?
optionalfontFamily?:string
Defined in: src/core/svgExportShared.ts:92
CSS font-family list written on the root element.
Inherited from
groups?
optionalgroups?: readonlyGraphSvgGroup[]
Defined in: src/core/exportSvg.ts:55
Group rectangles drawn behind the nodes.
highlightColor?
optionalhighlightColor?:string
Defined in: src/core/exportSvg.ts:75
Colour of highlighted nodes and edges. Defaults to the theme's dependencyHighlight.
highlightedEdgeIds?
optionalhighlightedEdgeIds?:Iterable<string,any,any>
Defined in: src/core/exportSvg.ts:73
Edge IDs drawn as highlighted edges, like NetworkGraph highlightedEdgeIds. Unknown IDs are ignored.
highlightedNodeIds?
optionalhighlightedNodeIds?:Iterable<string,any,any>
Defined in: src/core/exportSvg.ts:71
Node IDs whose box gets the highlight outline, like NetworkGraph highlightedNodeIds. Unknown IDs are ignored.
idPrefix?
optionalidPrefix?:string
Defined in: src/core/svgExportShared.ts:98
Prefix for the IDs of markers and clip paths, so several exports can be inlined in one page. Default vw-export.
Inherited from
lanes?
optionallanes?: readonlyGraphSwimlaneBand[]
Defined in: src/core/exportSvg.ts:60
Swimlane bands drawn behind the groups, edges and nodes, each with its title clipped to its header area, for example the lanes of a layoutSwimlaneGraph result. Throws like NetworkGraph lanes for invalid lanes.
nodeDetail?
optionalnodeDetail?: (node) =>string|undefined
Defined in: src/core/exportSvg.ts:81
Node detail text. Defaults to node.detail.
Parameters
node
N
Returns
string | undefined
nodeLabel?
optionalnodeLabel?: (node) =>string
Defined in: src/core/exportSvg.ts:79
Node title text. Defaults to node.label.
Parameters
node
N
Returns
string
padding?
optionalpadding?:number
Defined in: src/core/exportSvg.ts:77
Margin around the content, in pixels. Default 16.
pools?
optionalpools?: readonlyGraphSwimlanePoolBand[]
Defined in: src/core/exportSvg.ts:67
Pools (BPMN participants) drawn behind the lanes, for example the pools of a layoutSwimlaneGraph result: a g class="vw-swimlane-pool" with a title, a surface rectangle with a 1.5-unit muted border, a surfaceMuted title band and the title centred in the band, rotated to read from bottom to top when the band is taller than it is wide, clipped to the band. Throws like NetworkGraph pools for invalid pools.
selectedIds?
optionalselectedIds?:Iterable<string,any,any>
Defined in: src/core/exportSvg.ts:69
Node IDs drawn in the selected style.
theme?
optionaltheme?:SvgExportThemeInput
Defined in: src/core/svgExportShared.ts:90
Colours; omitted values use defaultSvgExportTheme. Each is a CSS colour value (hex, a colour name or keyword, or one of the colour functions such as rgb(), color-mix() or var()); anything else throws a RangeError.
Inherited from
title?
optionaltitle?:string
Defined in: src/core/svgExportShared.ts:94
Document title, written as <title> and the accessible name.