日本語
@eightkk/vue-weave / core / GraphExpansionState
Interface: GraphExpansionState<N, E>
Defined in: src/core/graphExpansion.ts:11
Incremental neighbourhood expansion of a partially loaded graph. The application loads pages of nodes and edges (for example the direct neighbours of one node at a time) and merges them here: nodes and edges are deduplicated by ID, expanded nodes are remembered, and edges to nodes that are not loaded yet are kept apart from the component input. Pure and immutable: every function returns a new state. Layout stability on expansion is not handled here.
Type Parameters
N
N extends object = { id: string; }
E
E extends GraphEdge = GraphEdge
Properties
edges
readonlyedges:ReadonlyMap<string,E>
Defined in: src/core/graphExpansion.ts:15
Loaded edges by ID, in first-arrival order, including dangling ones.
expandedIds
readonlyexpandedIds:ReadonlySet<string>
Defined in: src/core/graphExpansion.ts:17
Nodes whose neighbours have been loaded.
expandedIdsByKey?
readonlyoptionalexpandedIdsByKey?:ReadonlyMap<string,ReadonlySet<string>>
Defined in: src/core/graphExpansion.ts:24
Nodes expanded for one key only (a direction such as forward, or a relation), by key. A node in expandedIds is expanded for every key, whether or not it is listed here. Absent until a keyed page is merged.
nodes
readonlynodes:ReadonlyMap<string,N>
Defined in: src/core/graphExpansion.ts:13
Loaded nodes by ID, in first-arrival order; a later page replaces a node with the same ID.
pendingIds
readonlypendingIds:ReadonlySet<string>
Defined in: src/core/graphExpansion.ts:19
Nodes whose expansion is in flight (beginGraphExpansion).
pendingIdsByKey?
readonlyoptionalpendingIdsByKey?:ReadonlyMap<string,ReadonlySet<string>>
Defined in: src/core/graphExpansion.ts:26
Nodes whose expansion for one key is in flight, by key. Absent until a keyed expansion begins.