Search
LinkLabel.setSegmentPosition Method
See Also
 





Positions this label relatively to the specified link segment.

Namespace: MindFusion.Diagramming
File: LinkLabel.js

 Syntax

JavaScript  Copy Code

function setSegmentPosition (segment, dx, dy)

 Parameters

segment

Number. The segment index.

dx

Number. Horizontal offset from the segment center.

dy

Number. Vertical offset from the segment center.

 Remarks

This method sets the middle of specified segment as label's pin point and assigns specified offsets to horizontalOffset and verticalOffset properties.

 See Also