Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · 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 }>

libs/@shumoku/core/src/libs/@shumoku/core/src/layout/unified-engine.ts:53