Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

autoLayoutFlatTree

ソース

APIの説明は英語のcanonical sourceを表示しています。

Lay out a network graph using the flat-tree algorithm, using the supplied `LayoutEngine` for rules (sizes, gaps, label widths). Equivalent to the legacy `layoutNetwork(graph, options)`, but the engine is now a first-class concept. The same engine instance can also serve manual placement (`engine.tryPlace`) so layout and drag-snap stay consistent.

autoLayoutFlatTree(graph: NetworkGraph, engine: LayoutEngine, options?: AutoLayoutOptions): AutoLayoutResult

パラメーター

名前 説明 既定値
graph NetworkGraph 追加説明はありません。
engine LayoutEngine 追加説明はありません。
options AutoLayoutOptions 追加説明はありません。 {}

戻り値

AutoLayoutResult

libs/@shumoku/core/src/layout/auto-placement/flat-tree/auto-layout.ts:222