MindFusion.Diagramming for JavaScript Programmer's Guide

DiagramLink.getControlPoints Method

See Also
 





Gets a collection of the control points of this link.

Namespace: MindFusion.Diagramming
File: DiagramLink.js

 Syntax

JavaScript  Copy Code

function getControlPoints ()

 Return Value

A collection of control Points that specify the link's shape.

 Remarks

Use this method to learn the positions of a link's points. The number of points in the collection depends on the Style and SegmentCount of the link. Links made of Bézier-splines has four control points for each segment. Links of the other styles have two control points per segment. Adjacent segments share a common control point. New points are added with setControlPoints. After setting new positions of control points you must call the updateFromPoints method.

 See Also