Skip to content

Interface: ArcLayoutOptions ​

Options of arcLayout. Lengths are layout units (CSS px).

Properties ​

PropertyModifierTypeDescription
groupsep?readonlynumberExtra space where the group changes between two neighbours (also before the ungrouped nodes). Only with order: 'group'. Default 0.
loopSize?readonlynumberHow 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?readonlynumberCap 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?readonlynumberSpace between neighbouring nodes, added to their extents along the line. Default 20.
order?readonlyArcOrderOrder 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?readonlyArcSidesSide 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?readonlynumberNumber of barycenter sweeps at most (it stops when a sweep changes nothing). Default 8.

Released under the MIT License.