Skip to content

gridify_nmap

function gridify_nmap(D, parameters?): Point[];

Defined in: nmap.ts:346

Removes overlaps with the space-filling N-Map treemap approach, recursively subdividing the plotting area so each point owns a rectangle.

ParameterTypeDescription
Dreadonly Point[]Input points.
parametersNMapParameters-

Point[]

The centre of each point’s rectangle, in input order.

If any subdivision has no spread along the axis it is cut on. Distinct points are not enough — collinear runs and integer lattices both trip it. *