segmentOffset property

Point segmentOffset

Gets or sets the offset of a GraphObject that is in a Link from a point on a segment or in a Panel.Graduated from a point along the main element. The X component of the Point indicates the distance along the route, with positive values going further toward the "to" end of the link or panel. The Y component of the Point indicates the distance away from the route, with positive values towards the right as seen when facing further towards the "to" end of the link or panel. The value defaults to the Point (0, 0). You cannot modify the x or y of the value of this property -- if you want to change the segmentOffset you must set this property to a different Point.

For labels that are near either end of a link, it may be convenient to set the segmentOffset to Point(NaN, NaN). This causes the offset to be half the width and half the height of the label object.

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

Implementation

_i3.Point get segmentOffset => _i4.getProperty(
      this,
      'segmentOffset',
    );
void segmentOffset=(Point value)

Implementation

set segmentOffset(_i3.Point value) {
  _i4.setProperty(
    this,
    'segmentOffset',
    value,
  );
}