Skip to main content

Function: computeGroups()

function computeGroups(
model,
nodes,
previous?
): Record<string, GroupGeometry>;

Group boxes around their member nodes. Collapsed groups (core §3.1: their members are not in nodes) are taken from previous as they are, so recomputing after a move keeps them.

Parameters​

model​

DiagramModel

nodes​

Record<string, NodeGeometry>

previous?​

Record<string, GroupGeometry>

Returns​

Record<string, GroupGeometry>