MindFusion.Diagramming for JavaScript Programmer's Guide

DiagramLink.setControlPoints Method

See Also
 





Sets a collection of the control points of this link.

Namespace: MindFusion.Diagramming
File: DiagramLink.js

 Syntax

JavaScript  Copy Code

function setControlPoints (value)

 Parameters

value
A collection of control Point-s that specify the link's shape.

 Remarks

You can specify new positions of a link's points through that property. The number of points depends on the  link shape.  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. After setting new positions of control points you must call the updateFromPoints method.

 See Also