Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

layoutDrawing

ソース

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

Lays a network out as a scene: where each box stands and how each line runs. `network` is the configuration as written, `structure` what follows from it and the boundary points, and `metrics` every length the drawing may use. Every discrete choice is made from relations and indices before any coordinate, one stage after another, and the coordinates are solved once for each axis at the end: the ranks (`ranksOf`) from the flows, the left-to-right order of every rank (`layersOf`), the free space cut into corridors (`corridorsOf`), each line's way through them (`routesOf`), the order of the lines in each corridor (`tracksOf`), what the ports and corridors ask of the sizes (`needsOf`), and the coordinates (`placeAll`). No stage reads a length to decide, so a font that measures a little differently moves things a little and changes nothing else.

layoutDrawing(network: Network, structure: Structure, metrics: Metrics, options?: LayoutOptions): Scene

パラメーター

名前 型 説明 既定値
network Network 追加説明はありません。 —
structure Structure 追加説明はありません。 —
metrics Metrics 追加説明はありません。 —
options LayoutOptions 追加説明はありません。 {}

戻り値

Scene

libs/@shumoku/core/src/libs/@shumoku/core/src/drawing/layout.ts:67