segmentFraction property
num
get
segmentFraction
Gets or sets the fractional distance along a segment of a GraphObject that is in a Link. The value should be between zero and one, where zero is at the point at the start of the segment, and where one is at the point at the end of the segment. The default value is zero.
If #segmentIndex is set to NaN, the fractional distance will be calculated along the entire link route.
For examples of how to use this property, see Link Labels.
Implementation
_i2.num get segmentFraction => _i4.getProperty(
this,
'segmentFraction',
);
set
segmentFraction
(num value)
Implementation
set segmentFraction(_i2.num value) {
_i4.setProperty(
this,
'segmentFraction',
value,
);
}