Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.6.1 · function

layoutNetwork

Source

Lays a model out: the one entry from what is written (and what the layers add) to where each box stands and how each line runs, with the arrangement that was solved into those places. The model is the truth; both are its projection, made fresh each time. The order a person put siblings in (`drawing.order`) is read here, so every caller, the Editor and the Server alike, draws the same model the same way.

layoutNetwork(model: NetworkModel, options: DrawOptions): Drawing

Parameters

Parameter Type Description Default
model NetworkModel No additional description. —
options DrawOptions No additional description. —

Returns

Drawing

libs/@shumoku/core/src/libs/@shumoku/core/src/drawing/draw.ts:83