documentationfor yFiles for HTML 2.6

BezierEdgeSegmentLabelModel

An edge label model that allows placement of labels relative to an edge segment for bezier edges.

Inheritance Hierarchy
BezierEdgeSegmentLabelModel
Implemented Interfaces

Remarks

This model is intended to work with a BezierEdgeStyle and assumes an edge path consisting of cubic segments.

It places the label at a fixed segment with given ratio (a cubic curve parameter value) and distance from the path, which are parameter specific. Additionally, the label can be automatically rotated to be parallel to the tangent vector at the given ratio (autoRotation) and can have an additional rotation angle (independently of the automatic rotation (angle)

If the segment index is less than 0, a placement outside of the path is assumed by taking the connection between source and target as base line and applying the ratio to this line segment. In this case, if auto rotation is enabled, the label will be rotated to match the path slope at the beginning resp. end of the edge path in order to ensure a smooth movement.

Labels are freely movable and movement can optionally be snapped so that the center of the label lies on the edge path, if the label intersects the edge path.

Type Details

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

Constructors

Properties

Methods