Skip to content

moduleColors

moduleColors(nodes, opts?): string[]

Defined in: network/module-colors.ts:36

Per-node CSS colours (indexed by node id) for a module hierarchy. A node takes the hue of its enclosing module (path minus the final rank), so all nodes in a module share a colour and sibling modules get neighbouring hues within their parent’s arc.

ArrayLike<ModulePathNode>

ModuleColorOptions = {}

string[]