Skip to content

@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? ​

optional background?: boolean

Defined in: src/core/svgExportShared.ts:96

Paint an opaque background. Default true.

Inherited from ​

SvgExportOptions.background


direction? ​

optional direction?: "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 ​

SvgExportOptions.direction


edgeBands? ​

optional edgeBands?: 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? ​

optional edgeLabel?: (edge) => string | undefined

Defined in: src/core/exportSvg.ts:83

Edge label text. Defaults to edge.label.

Parameters ​

edge ​

E

Returns ​

string | undefined


fontFamily? ​

optional fontFamily?: string

Defined in: src/core/svgExportShared.ts:92

CSS font-family list written on the root element.

Inherited from ​

SvgExportOptions.fontFamily


groups? ​

optional groups?: readonly GraphSvgGroup[]

Defined in: src/core/exportSvg.ts:55

Group rectangles drawn behind the nodes.


highlightColor? ​

optional highlightColor?: string

Defined in: src/core/exportSvg.ts:75

Colour of highlighted nodes and edges. Defaults to the theme's dependencyHighlight.


highlightedEdgeIds? ​

optional highlightedEdgeIds?: 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? ​

optional highlightedNodeIds?: 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? ​

optional idPrefix?: 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 ​

SvgExportOptions.idPrefix


lanes? ​

optional lanes?: readonly GraphSwimlaneBand[]

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? ​

optional nodeDetail?: (node) => string | undefined

Defined in: src/core/exportSvg.ts:81

Node detail text. Defaults to node.detail.

Parameters ​

node ​

N

Returns ​

string | undefined


nodeLabel? ​

optional nodeLabel?: (node) => string

Defined in: src/core/exportSvg.ts:79

Node title text. Defaults to node.label.

Parameters ​

node ​

N

Returns ​

string


padding? ​

optional padding?: number

Defined in: src/core/exportSvg.ts:77

Margin around the content, in pixels. Default 16.


pools? ​

optional pools?: readonly GraphSwimlanePoolBand[]

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? ​

optional selectedIds?: Iterable<string, any, any>

Defined in: src/core/exportSvg.ts:69

Node IDs drawn in the selected style.


theme? ​

optional theme?: 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 ​

SvgExportOptions.theme


title? ​

optional title?: string

Defined in: src/core/svgExportShared.ts:94

Document title, written as <title> and the accessible name.

Inherited from ​

SvgExportOptions.title

Released under the MIT License.