path property

Shape? get path

This read-only property returns the main Shape representing the path of this Link.

The value depends on there being an element in this Link that is a Shape and that has GraphObject#isPanelMain set to true. This shape is what displays the stroke going from one node to another node.

This path shape's geometry is automatically generated based on the #points of this link's route, depending on other properties such as #curve. Note that the points are in document coordinates, but the path's Shape#geometry will have points that are in local Shape coordinates. This Shape's GraphObject#scale should be one and GraphObject#angle should be zero.

If there is no Shape with GraphObject#isPanelMain set to true, the Link will use the first Shape for its path.

Implementation

_i3.Shape? get path => _i4.getProperty(
      this,
      'path',
    );
set path (Shape? value)

Implementation

set path(_i3.Shape? value) {
  _i4.setProperty(
    this,
    'path',
    value ?? _i5.undefined,
  );
}