English
@eightkk/vue-weave / core / GraphLayoutRequestInput
Interface: GraphLayoutRequestInput<N, E, G>
Defined in: src/core/graphLayoutRequests.ts:21
The input of buildGraphLayoutRequests: everything that can change a layout.
Type Parameters
N
N extends NetworkNode = NetworkNode
E
E extends GraphEdge = GraphEdge
G
G extends NetworkGroup = NetworkGroup
Properties
addedIds?
optionaladdedIds?:ReadonlySet<string>
Defined in: src/core/graphLayoutRequests.ts:47
Incremental layout: nodes that are new since the previous layout (for example the page of a graph expansion), which the engine places around the others. Optional and part of the input key, like fixedIds.
collapsedGroupIds?
optionalcollapsedGroupIds?:Iterable<string,any,any>
Defined in: src/core/graphLayoutRequests.ts:26
Collapsed group IDs, as passed to NetworkGraph collapsedGroupIds. IDs of groups that do not exist are ignored.
direction?
optionaldirection?:GraphLayoutDirection
Defined in: src/core/graphLayoutRequests.ts:28
Layout direction. Default 'LR'.
edges
edges: readonly
E[]
Defined in: src/core/graphLayoutRequests.ts:23
fixedIds?
optionalfixedIds?:ReadonlySet<string>
Defined in: src/core/graphLayoutRequests.ts:42
Incremental layout: nodes the engine must keep where positions puts them (pinned). Optional; like positions, part of the input key, so give them only when the engine honours them. IDs that are not nodes of a request (such as members of a collapsed group in the 'shown' request) are passed as they are; engines ignore them.
groups?
optionalgroups?: readonlyG[]
Defined in: src/core/graphLayoutRequests.ts:24
labels?
optionallabels?:Partial<Pick<GraphLabels,"collapsedNode"|"collapsedNodes">>
Defined in: src/core/graphLayoutRequests.ts:62
The NetworkGraph labels the proxy detail text is built from (collapsedNode and collapsedNodes). Defaults "node" and "nodes", as in NetworkGraph.
nodes
nodes: readonly
N[]
Defined in: src/core/graphLayoutRequests.ts:22
positions?
optionalpositions?:ReadonlyMap<string,GraphPoint>
Defined in: src/core/graphLayoutRequests.ts:34
Saved or fixed node positions to pass to the layout engine. Give them only when the engine honours them: they are part of the input key, so every change asks for a new layout. NetworkGraph applies its positions prop after layout either way.
revision?
optionalrevision?:string
Defined in: src/core/graphLayoutRequests.ts:57
Caller-managed version of anything else that changes the layout, such as node data a custom engine reads or the engine's own version. Default ''.
settings?
optionalsettings?:unknown
Defined in: src/core/graphLayoutRequests.ts:52
Engine settings. Must be JSON-serializable; its JSON text is part of the input key, so build it with a stable key order.
sizes?
optionalsizes?:ReadonlyMap<string,GraphNodeSize>
Defined in: src/core/graphLayoutRequests.ts:36
Node sizes to pass to the layout engine. Like positions, give them only when the engine uses them.