Skip to content

@eightkk/vue-weave / core / GraphLayoutRequest

Interface: GraphLayoutRequest<N, E, G> ​

Defined in: src/core/graphLayoutRequests.ts:66

One layout to compute, as a layout engine or Worker receives it.

Type Parameters ​

N ​

N extends NetworkNode = NetworkNode

E ​

E extends GraphEdge = GraphEdge

G ​

G extends NetworkGroup = NetworkGroup

Properties ​

addedIds? ​

optional addedIds?: ReadonlySet<string>

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

New nodes, as given in the input; present only when the input has some.


direction ​

direction: GraphLayoutDirection

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


edges ​

edges: readonly E[]

Defined in: src/core/graphLayoutRequests.ts:74


fixedIds? ​

optional fixedIds?: ReadonlySet<string>

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

Pinned nodes, as given in the input; present only when the input has some.


groups ​

groups: readonly G[]

Defined in: src/core/graphLayoutRequests.ts:76

The groups drawn with these nodes: the input groups for 'expanded', the groups that stay drawn for 'shown'.


inputKey ​

inputKey: string

Defined in: src/core/graphLayoutRequests.ts:70

Identifies the layout input (see graphLayoutInputKey); responses echo it.


nodes ​

nodes: readonly N[]

Defined in: src/core/graphLayoutRequests.ts:73


positions? ​

optional positions?: ReadonlyMap<string, GraphPoint>

Defined in: src/core/graphLayoutRequests.ts:78


requestId ​

requestId: string

Defined in: src/core/graphLayoutRequests.ts:68

ID of this request. Responses echo it; a response to an older request is not used.


revision ​

revision: string

Defined in: src/core/graphLayoutRequests.ts:72


scope ​

scope: GraphLayoutScope

Defined in: src/core/graphLayoutRequests.ts:71


settings? ​

optional settings?: unknown

Defined in: src/core/graphLayoutRequests.ts:84


sizes? ​

optional sizes?: ReadonlyMap<string, GraphNodeSize>

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

Released under the MIT License.