Skip to content

@graphty/layout / index / grid

Function: grid() ​

grid(s, options?): LayoutResult

Defined in: indexed/grid.ts:46

Nodes on a regular lattice, row by row in node-index order. In 3D the lattice lies in the plane of the centre's z.

Parameters ​

s ​

GraphSnapshot

the snapshot; only its node count is read

options? ​

GridLayoutOptions = {}

scale is half the length of the lattice's longer side

Returns ​

LayoutResult

the layout