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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
D | readonly Point[] | Input points. |
parameters | NMapParameters | - |
Returns
Section titled “Returns”Point[]
The centre of each point’s rectangle, in input order.
Throws
Section titled “Throws”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. *