Skip to content

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 ParameterDefault type
Optionsunknown

Parameters ​

ParameterType
graphLayoutGraph
optionsOptions

Returns ​

LayoutResult

Released under the MIT License.