Interface: ArcLayoutOptions
Options of arcLayout. Lengths are layout units (CSS px).
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
groupsep? | readonly | number | Extra space where the group changes between two neighbours (also before the ungrouped nodes). Only with order: 'group'. Default 0. |
loopSize? | readonly | number | How far a self-link's loop rises beyond the edge of its node (the node's extent across the line). 0: self-links get no route. Default 12. |
maxHeight? | readonly | number | Cap on how far an arc rises from the line: an arc between nodes more than twice this apart is a half ellipse of this height. Default: none (half circles). |
nodesep? | readonly | number | Space between neighbouring nodes, added to their extents along the line. Default 20. |
order? | readonly | ArcOrder | Order of the nodes along the line. 'input': by node index. 'group': by graph.group, ungrouped nodes last, index order within a group (input order when the graph has no groups). 'degree': most links first (a self-link counts twice), ties by index. 'barycenter': input order improved by sweeps barycenter sweeps (see the module comment). Default 'input'. |
orientation? | readonly | "h" | "v" | Direction of the node line: 'h' along x, first node on the left; 'v' along y, first node at the top. Default 'h'. |
sides? | readonly | ArcSides | Side of the arcs. 'above': +y for 'h', +x (right) for 'v'. 'below': the other side. 'direction': above, but a link whose target comes before its source in the order goes below, so every arc runs clockwise from its source to its target. Default 'above'. |
sweeps? | readonly | number | Number of barycenter sweeps at most (it stops when a sweep changes nothing). Default 8. |