documentationfor yFiles for HTML 2.6

BezierEdgePathLabelModel

An edge label model that allows placement of labels along the edge path for bezier edges.

Inheritance Hierarchy
BezierEdgePathLabelModel
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 given ratio of the whole path length 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 parameter is specified as an absolute parameter, 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.BezierEdgePathLabelModel

Constructors

Properties

Methods