Search
NodeLabel.setCornerPosition Method
See Also
 






Positions this label relatively to the specified corner point.

Namespace: MindFusion.Diagramming
File: NodeLabel.js

 Syntax

JavaScript  Copy Code

function setCornerPosition (cornerPoint, dx, dy)

 Parameters

cornerPoint

Number. The corner point index.

dx

Number. Horizontal offset from the corner point.

dy

Number. Vertical offset from the corner point.

 Remarks

This method sets node's corner as label's pin point and assigns specified offsets to horizontalOffset and verticalOffset properties. The cornerPoint index starts counting from top-left corner in clockwise direction:

  • 0 desigates top-left corner;
  • 1 desigates top-right corner;
  • 2 desigates bottom-right corner;
  • 3 desigates bottom-left corner;

 See Also