@shumoku/core · 0.4.0 · function
computeNetworkLayout
APIの説明は英語のcanonical sourceを表示しています。
Compute layout and return both ResolvedLayout and legacy LayoutResult. Use this when you need both (e.g., renderer-svg uses ResolvedLayout directly).
computeNetworkLayout(graph: NetworkGraph, options?: { composite?: boolean; compound?: boolean }): Promise<{ layout: LayoutResult; resolved: ResolvedLayout }> パラメーター
| 名前 | 型 | 説明 | 既定値 |
|---|---|---|---|
graph | NetworkGraph | 追加説明はありません。 | — |
options | { composite?: boolean; compound?: boolean } | 追加説明はありません。 | {} |
戻り値
Promise<{ layout: LayoutResult; resolved: ResolvedLayout }>