PreferredPlacementDescriptor
A descriptor for the placement of an edge label.
Props
Name | Description | Type |
---|---|---|
angle? | The rotation angle of the label. | number |
angleReference? | Whether to interpret the rotation angle relative to the edge direction. | ”absolute” |
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” |
sideOfEdge? | Whether to place the label left, right, or on the edge. | ”left-of-edge” |