PreferredPlacementDescriptor

A descriptor for the placement of an edge label.

Props

NameDescriptionType
angle?
The rotation angle of the label.
number
angleReference?
Whether to interpret the rotation angle relative to the edge direction.
”absolute”
| “relative-to-edge-flow”
distanceToEdge?
The preferred distance between a label and the corresponding edge segment.
number
placeAlongEdge?
Whether to place the label at the center, source, or target of the edge.
”at-source”
| “at-center”
| “at-target”
sideOfEdge?
Whether to place the label left, right, or on the edge.
”left-of-edge”
| “on-edge”
| “right-of-edge”