Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

buildChildSheetGraph

Source

Build a sub-sheet `NetworkGraph` for the given subgraph id — the filtered nodes/subgraphs/links plus export-connector nodes that represent cross-boundary links. This is the layout-free half of what `buildHierarchicalSheets` does per subgraph. Callers that want to run their own layout engine (e.g. the interactive editor, which already owns a `computeNetworkLayout` path) can use this directly and skip the `LayoutEngine` indirection. Returns `null` when the requested subgraph isn't in `rootGraph`.

buildChildSheetGraph(rootGraph: NetworkGraph, subgraphId: string): NetworkGraph | null

Parameters

Parameter Type Description Default
rootGraph NetworkGraph No additional description.
subgraphId string No additional description.

Returns

NetworkGraph | null

libs/@shumoku/core/src/hierarchical.ts:132