Search
DiagramLink Class
Remarks See Also
 





Represents a link between two diagram nodes.

Namespace: MindFusion.Diagramming
File: DiagramLink.js

 Syntax

JavaScript  Copy Code

// class
DiagramLink.prototype = {}

 Remarks

Links between nodes in MindFusion.Diagramming for JavaScript 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

MindFusion.Diagramming.DiagramItem
    MindFusion.Diagramming.DiagramLink

 See Also