Sloped Edge Zone Width

Property Value
Type: advanced
Identifier: org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth
Meta Data Provider: options.LayeredMetaDataProvider
Value Type: double
Default Value: 2.0 (as defined in org.eclipse.elk.layered)
Applies To: parents
Dependencies: org.eclipse.elk.edgeRouting (EdgeRouting.POLYLINE)
Containing Group: edgeRouting -> polyline

Description

Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer.

Additional Documentation

Usually, the polyline edge router takes care to route edges horizontally once they enter a layer’s area. This is to prevent edges from crossing nodes that may be in that layer and leads to results such as this:

If nodes extend almost, but not quite to their layer’s boundary, the horizontal routing segment becomes arbitrarily small, leading to awkward layouts. The polyline edge router thus refrains from producing such segments if their length would fall below a certain threshold. That threshold is what this option defines. With a proper setting, the above diagram looks like this: