Skip to content

Interface: HiveLayoutOptions ​

Options of hiveLayout. Lengths are layout units (CSS px), angles degrees.

Properties ​

PropertyModifierTypeDescription
assign?readonly"degree" | "direction"How nodes get their axis when the graph has no groups: 'degree' cuts the nodes, sorted by degree, into axes equal parts; 'direction' makes three axes of sources, nodes in between and sinks. Default 'degree'.
axes?readonlynumberNumber of axes when the graph has no groups and assign is 'degree': 1 to 360, rounded down. Default 3.
innerRadius?readonlynumberDistance from the centre to the first node of an axis. Default 40.
outerRadius?readonlynumberDistance from the centre to the last node of an axis; at least innerRadius. Default 300.
position?readonly"value" | "degree"What places a node along its axis: its rank by degree among the nodes of the axis, or graph.value on one linear scale. Default 'degree'.
startAngle?readonlynumberAngle of the first axis, counter-clockwise from the +x axis. Default 90 (up).

Released under the MIT License.