Skip to main content

Function: gridLayout()

function gridLayout(model, options?): DiagramGeometry;

Deterministic grid placement (no dependencies): each TableGroup as a block of its tables, then ungrouped tables and notes, blocks packed in rows. Honours saved positions. Used when core's layout is unavailable, and by tests.

Parameters​

model​

DiagramModel

options?​

LayoutOptions = {}

Returns​

DiagramGeometry