computeLODGeometry
computeLODGeometry(
tree,graph,leafRadii,leafWeight?,leafBorder?,leafColors?,radiusAggregate?):void
Defined in: network/lod.ts:744
Fill the tree’s full geometry from the settled layout, the per-leaf visual radii, and a per-leaf importance weight — computeLODPositions then computeLODStyle. The main-thread path (synchronous solve / supplied positions); the worker backend splits these passes across threads.
leafRadii is the resolved per-node radius (so aggregates respect the node sizing); leafWeight
is the per-leaf importance, defaulting to graph.strength (weighted degree) — pass graph.flow
or graph.csr.degree to prioritise differently.
Parameters
Section titled “Parameters”leafRadii
Section titled “leafRadii”ArrayLike<number>
leafWeight?
Section titled “leafWeight?”ArrayLike<number> = graph.strength
leafBorder?
Section titled “leafBorder?”ArrayLike<number>
leafColors?
Section titled “leafColors?”ArrayLike<number>
radiusAggregate?
Section titled “radiusAggregate?”RadiusAggregate
Returns
Section titled “Returns”void