Type Alias: GraphLayout<Options>
ts
type GraphLayout<Options> = (graph, options) => LayoutResult;A layout: positions for graph. Deterministic: the same input gives the same output on every machine (no Math.random, no time, no iteration order of hashed collections), so visual baselines, server rendering and exports agree.
Type Parameters
| Type Parameter | Default type |
|---|---|
Options | unknown |
Parameters
| Parameter | Type |
|---|---|
graph | LayoutGraph |
options | Options |