Skip to content

StateNetworkOptions

Defined in: network/network.ts:318

Options for Network.stateNetwork (#171). The engine ingests a state network + a per-state-node module assignment, derives the physical network’s overlapping-module pie wedges + module colours, and lets you toggle the state ↔ physical view with Network.view.

optional color?: ModuleColorOptions

Defined in: network/network.ts:325

Module colour scheme (shared by node colours and pie wedges).

moduleColors


modules: ArrayLike<ModulePathNode>

Defined in: network/network.ts:321

Per-state-node module records (Infomap’s nodes shape; id = state-node index). Drives module colours (both views) and the physical view’s overlapping-module pie wedges.


optional pie?: PieWedgeOptions

Defined in: network/network.ts:323

Pie-wedge derivation options (grouping level, flow vs count sizing).

physicalPieWedges


optional rosetteRadius?: number

Defined in: network/network.ts:331

State-view rosette radius (world units). Default: auto — bounded by the physical layout spacing. (The "both" view ignores this; its rosette is confined to the physical container radius.)

rosettePositions


optional view?: "state" | "physical" | "both"

Defined in: network/network.ts:327

Which view to show first. Default "physical" (so the overlapping-module pie glyphs are visible).