Search
DiagramLink.getLength Method
See Also
 





Gets the length of the links

Namespace: MindFusion.Diagramming
Package: DiagramLink.js

 Syntax

JavaScript  Copy Code

function getLength ([segments])

 Parameters

segments
Optional.

Array. A list of points specifying the polyline segments.

 Return Value

Number. The sum of the lengths of the line's segments.

 Remarks

If the link's Shape is set to Bezier, an approximate length is calculated.

 See Also