Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.DiscreteEdgeLabelPositions
See Also
DiscreteEdgeLabelLayoutModel.DiscreteEdgeLabelLayoutModel(DiscreteEdgeLabelPositions),
DiscreteEdgeLabelLayoutModel.candidateMask,
DiscreteEdgeLabelLayoutModel.getLabelPlacementForPosition
Constants
Position mask that constrains the allowed positions to the CENTER of the edge's path.
Position mask that constrains the allowed positions to a set of six positions beside the edge path.
Remarks
Two of the positions are near the source and two others are near the target. The remaining positions are in the middle of the edge.
See Also
DiscreteEdgeLabelPositions.SOURCE_HEAD,
DiscreteEdgeLabelPositions.SOURCE_TAIL,
DiscreteEdgeLabelPositions.HEAD,
DiscreteEdgeLabelPositions.TAIL,
DiscreteEdgeLabelPositions.TARGET_HEAD,
DiscreteEdgeLabelPositions.TARGET_TAIL
Sample Graphs
Position mask that constrains the allowed positions to a set of three positions directly on the edge's path.
Position mask that constrains the allowed positions to the two locations near the middle of the edge beside the edge's path.
Static Methods
Converts the argument to DiscreteEdgeLabelPositions.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - DiscreteEdgeLabelPositions
- The value to convert to DiscreteEdgeLabelPositions.
Returns
- ↪DiscreteEdgeLabelPositions
- Either
value
if it is already a DiscreteEdgeLabelPositions or an appropriate converted value.