Positions this label relatively to the specified link segment.
Namespace: MindFusion.Diagramming
File: LinkLabel.js
JavaScript Copy Code |
---|
function setSegmentPosition (segment, dx, dy) |
Number. The segment index.
Number. Horizontal offset from the segment center.
Number. Vertical offset from the segment center.
This method sets the middle of specified segment as label's pin point and assigns specified offsets to horizontalOffset and verticalOffset properties.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |