Gets or sets the number of segments that form the link's geometry.
Namespace: MindFusion.Diagramming
File: DiagramLink.js
JavaScript Copy Code |
---|
get segmentCount() {} |
Number
An integer value specifying the number of segments of this link.
Link segments are either straight lines or Bezier curves, depending on the value of the link's shape property. The segment coordinates are defined by the elements of controlPoints, which contains four points per Bezier segment or two points per straight line segment, where each pair of adjacent segments share a common point. Changing the segmentCount property value will resize the controlPoints array so that it contains appropriate number of points.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |