Interface: ModelLayoutOptions
Defined in: ml/model.ts:523
Extended by
Properties
direction?
ts
optional direction?: "vertical" | "horizontal";Defined in: ml/model.ts:525
Flow direction: "vertical" top→bottom (default) or "horizontal" left→right.
nodeGap?
ts
optional nodeGap?: number;Defined in: ml/model.ts:533
Gap between siblings inside a rank. Default 0.6.
nodeHeight?
ts
optional nodeHeight?: number;Defined in: ml/model.ts:529
Box height in data units. Default 0.9.
nodeWidth?
ts
optional nodeWidth?: number;Defined in: ml/model.ts:527
Box width in data units. Default 2.6.
rankGap?
ts
optional rankGap?: number;Defined in: ml/model.ts:531
Gap between consecutive ranks. Default 0.7.
sizeBy?
ts
optional sizeBy?: "none" | "params" | "flops";Defined in: ml/model.ts:538
Scale the box across the flow (width when vertical, height when horizontal) by a metric, so heavy layers read as bigger. Default "none".
sizeRange?
ts
optional sizeRange?: Range;Defined in: ml/model.ts:540
Multiplier range applied when sizeBy is set. Default [0.55, 1.5].
sweeps?
ts
optional sweeps?: number;Defined in: ml/model.ts:542
Barycenter passes used to reduce edge crossings. Default 4.