Search
NodeLabel.setEdgePosition Method
See Also
 






Positions this label relatively to the specified node edge.

Namespace: MindFusion.Diagramming
File: NodeLabel.js

 Syntax

JavaScript  Copy Code

function setEdgePosition (edge, dx, dy)

 Parameters

edge

Number. The edge index.

dx

Number. Horizontal offset from the edge center.

dy

Number. Vertical offset from the edge center.

 Remarks

This method sets the middle point of node's edge as label's pin point and assigns specified offsets to horizontalOffset and verticalOffset properties. The edge index starts counting from top side in clockwise direction:

  • 0 desigates center of top edge;
  • 1 desigates center of right edge;
  • 2 desigates center of bottom edge;
  • 3 desigates center of left edge;

 See Also