Positions this label relatively to the specified node edge.
Namespace: MindFusion.Diagramming
File: NodeLabel.js
JavaScript Copy Code |
---|
function setEdgePosition (edge, dx, dy) |
Number. The edge index.
Number. Horizontal offset from the edge center.
Number. Vertical offset from the edge center.
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:
JavaScript Pack Programmer's Guide | © 2024 MindFusion |