Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.DiscreteNodeLabelPositions
See Also
DiscreteNodeLabelLayoutModel.DiscreteNodeLabelLayoutModel(DiscreteNodeLabelPositions,number),
DiscreteNodeLabelLayoutModel.candidateMask,
DiscreteNodeLabelLayoutModel.getLabelPlacementForPosition
Constants
Position mask that constrains the positions to the corners outside the node.
Position mask that constraints the positions to the eight node-external positions.
See Also
DiscreteNodeLabelPositions.NORTH,
DiscreteNodeLabelPositions.EAST,
DiscreteNodeLabelPositions.SOUTH,
DiscreteNodeLabelPositions.WEST,
DiscreteNodeLabelPositions.NORTH_EAST,
DiscreteNodeLabelPositions.NORTH_WEST,
DiscreteNodeLabelPositions.SOUTH_EAST,
DiscreteNodeLabelPositions.SOUTH_WEST
Sample Graphs
Position mask that constrains the positions to the nine node-internal positions.
See Also
DiscreteNodeLabelPositions.CENTER,
DiscreteNodeLabelPositions.TOP,
DiscreteNodeLabelPositions.BOTTOM,
DiscreteNodeLabelPositions.LEFT,
DiscreteNodeLabelPositions.RIGHT,
DiscreteNodeLabelPositions.TOP_LEFT,
DiscreteNodeLabelPositions.TOP_RIGHT,
DiscreteNodeLabelPositions.BOTTOM_LEFT,
DiscreteNodeLabelPositions.BOTTOM_RIGHT
Sample Graphs
Position mask that constrains the positions to the node's four sides.
Static Methods
Converts the argument to DiscreteNodeLabelPositions.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - DiscreteNodeLabelPositions
- The value to convert to DiscreteNodeLabelPositions.
Returns
- ↪DiscreteNodeLabelPositions
- Either
value
if it is already a DiscreteNodeLabelPositions or an appropriate converted value.