fromShortLength property

num get fromShortLength

Gets or sets how far the end segment of a link coming from this port stops short of the actual port. Positive values are limited by the #fromEndSegmentLength or Link#fromEndSegmentLength. Negative values cause the link to extend into the port. The default value is zero.

This property is useful when you have a thick link and a pointy arrowhead. Normally the link Shape extends all the way to the end of the arrowhead. If the link Shape is wide, its edges will be seen behind the arrowhead. By setting this property to a small positive value, the link Shape can end within the body of the arrowhead, leaving only the point of the arrowhead visible at the end of the link.

A negative value for this property can also be useful when you want the link Shape to continue into the port, perhaps because a portion of the port is transparent and you want the link to appear to connect visually with a different point on the node.

The value of Link#fromShortLength, if not NaN, takes precedence over the value at this port when determining the route of the link.

For examples of how to use this property, see Link Connection Points.

You must set this property on a GraphObject whose #portId is non-null, unless the whole Node is acting as a single port, in which case this property should be set on the Node.

Implementation

_i2.num get fromShortLength => _i4.getProperty(
      this,
      'fromShortLength',
    );
set fromShortLength (num value)

Implementation

set fromShortLength(_i2.num value) {
  _i4.setProperty(
    this,
    'fromShortLength',
    value,
  );
}