documentationfor yFiles for HTML 2.6

SmartEdgeLabelModel

An edge label model that allows the placement at any position.

Inheritance Hierarchy
SmartEdgeLabelModel
Implemented Interfaces

Remarks

Similar to EdgeSegmentLabelModel, a position is specified by an edge segment and a ratio on that segment, amongst others. During changes of the edge path, the label keeps its relative location with respect to the bends of the reference segment in a similar way.

In contrast to EdgeSegmentLabelModel, the distance from the edge path is not a property of the model but of the particular parameter. In addition, this class does not implement ILabelModelParameterProvider and therefore, labels with this model can be moved freely and are not restricted to a fixed set of candidates at a given distance from the edge.

If autoRotation is enabled, labels are automatically rotated according to the angle of the corresponding reference edge segment.

During movements, labels with this model snap to notable positions if the MoveLabelInputMode provides a LabelSnapContext that is enabled and has a suitable configuration.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.SmartEdgeLabelModel

See Also

Constructors

Properties

Methods