English
@eightkk/vue-weave / core / buildGraphLayoutRequests
Function: buildGraphLayoutRequests()
buildGraphLayoutRequests<
N,E,G>(input,requestId):GraphLayoutRequests<N,E,G>
Defined in: src/core/graphLayoutRequests.ts:170
The layout requests for one input, made the way NetworkGraph calls its layout function. Without collapsed groups there is one 'shown' request for the input itself. With collapsed groups (IDs of groups that do not exist are dropped, as NetworkGraph does) the 'shown' request holds the collapsed view from collapseGraphGroups, with the proxy detail text built from labels like NetworkGraph builds it, and an 'expanded' request holds the full input. The requests get the IDs requestId + ':shown' and requestId + ':expanded'. Throws like collapseGraphGroups and graphLayoutInputKey. The inputs are not modified.
Type Parameters
N
N extends NetworkNode<unknown>
E
E extends GraphEdge<unknown>
G
G extends NetworkGroup = NetworkGroup
Parameters
input
GraphLayoutRequestInput<N, E, G>
requestId
string
Returns
GraphLayoutRequests<N, E, G>