Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 18.104.22.168
When writing the LabelLayoutData , the bounds are set relative. In case of a node label the bounds' anchor is relative to the center of the owning node. In case of an edge label the bounds' anchor is relative to the center of the source node of the owning edge.
Per default the bounds are now interpreted absolute but by activating WriteBackRelativeNodeLabelLocation and/or WriteBackRelativeEdgeLabelLocation this can be changed to interpret them relative as explained above.Note that care must be taken on the choice of label model that is used by the classes IEdgeLabelLayout and INodeLabelLayout . The calculated label positions must be consistent with the label positions allowed by the label model. The best label layout results are achieved by choosing FreeEdgeLabelLayoutModel for edge layouts and FreeNodeLabelLayoutModel for node layouts.