routing property

EnumValue get routing

Gets or sets whether the link's path tries to avoid other nodes. The value must be one of Link.Normal|Normal, Link.Orthogonal|Orthogonal, or Link.AvoidsNodes|AvoidsNodes.

Setting this property to Link.AvoidsNodes|AvoidsNodes requires the Diagram to do considerable computation when calculating Link routes. Consider not using the Link.AvoidsNodes|AvoidsNodes with Diagrams that contain large numbers of Nodes and Links if you are targeting slow devices. When using Link.AvoidsNodes|AvoidsNodes, dragging performance can be improved by setting DraggingTool#isComplexRoutingRealtime to false.

The default value is Link.Normal|Normal -- the route is primarily a single straight segment, with possible short end segments when connecting with ports that have a "spot" value as the #fromSpot or GraphObject#fromSpot or #toSpot or GraphObject#toSpot.

Implementation

_i3.EnumValue get routing => _i4.getProperty(
      this,
      'routing',
    );
set routing (EnumValue value)

Implementation

set routing(_i3.EnumValue value) {
  _i4.setProperty(
    this,
    'routing',
    value,
  );
}