map.setMaxNodeGrowth
setMaxNodeGrowth(value: number): voidSet the maximum growth multiplier for node screen size in map mode.
Each node's projected screen size asymptotically approaches
refSize × maxGrowth where refSize = nodeSize × 5. Lower values
clamp zoom-in growth more tightly. Pass Infinity to disable the
soft-cap entirely (raw perspective × damping growth, as if the cap
never existed). Default: 4 (matches the historical shader constant).
Accepts any positive value, or Infinity. Values < 1 shrink nodes
below refSize (useful for compact UI in map mode); values > 1
permit zoom-in growth up to the cap.
Applied to nodes, badges, tags, node picking, AND edges + arrows (the latter two were added so edge endpoints / arrow tips stay anchored to the visible capped node surface — see spec Risk #7).
Per-node size field is NOT modified; size-by-property relative
ratios are preserved at all zoom levels.
value | number |
Returns: void