Positions this label relatively to the specified link segment.
Namespace: MindFusion.Diagramming
Package: 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.
NetDiagram Programmer's Guide | © 2023 MindFusion |