DiagramLink Class
Remarks See Also

Represents a link between two diagram nodes.

Namespace: MindFusion.Diagramming
Package: DiagramLink.js


JavaScript  Copy Code

// class
DiagramLink.prototype = {}


Links between nodes in NetDiagram are represented by instances of the DiagramLink class. Links connect at most two nodes, which can be accessed via the origin and destination properties.

Links are built of smaller parts called segments, which can be straight lines, cascading orthogonal lines or Bezier curves. The type of segments is set through the shape property. The number of link's segments and their locations are specified by the segmentCount and controlPoints properties. If changing the coordinates of individual points in controlPoints, you should also call the updateFromPoints method to update link's internal state.

 Inheritance Hierarchy


 See Also