Skip to content

rosettePositions

rosettePositions(graph, opts?): Float32Array

Defined in: network/rosette.ts:40

Derive state-node positions by rosette placement around the (already laid-out) physical nodes. Reads graph.physical.positions (fill it first via a layout) and returns a fresh interleaved [x, y, …] array of length 2 * graph.state.nodeCount, ready for net.data(graph.state).layout({ backend: "positions", positions }).

Each physical node’s state nodes are placed on a golden-angle disc of the given radius centred on the physical position; a lone state node coincides with its physical node. Every state node lands within radius of its physical centre (guaranteed containment).

StateNetworkGraph

RosetteOptions = {}

Float32Array