Enum constants that specify the Horizontal overlap criterion for the RemoveOverlapsStage which takes effect when policy SHUFFLE is used.
Type Details
- yFiles module
- algorithms
Constants
Horizontal overlap criterion defining an overlap as horizontal if the overlapping area is greater in height than in width.
Remarks
Otherwise, if the overlap area's width is greater than or equal to its height, an overlap will be categorized as vertical.
The area of an overlap is defined as the rectangle where two nodes intersect with each other.
See Also
Sample Graphs
Horizontal overlap criterion categorizing an overlap as horizontal if the required movement for solving the overlap is shorter in horizontal direction than in vertical direction.
Remarks
Otherwise, an overlap will be categorized as vertical.
This criterion tries to avoid moving nodes too much because the direction for resolving overlaps will be chosen such that the shorter movement is preferred.
See Also
Sample Graphs
Horizontal overlap criterion categorizing an overlap as horizontal if the center-to-center difference between the overlapping nodes is greater in horizontal direction (x-coordinates) than in vertical direction (y-coordinates).
Remarks
See Also
Sample Graphs
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - HorizontalOverlapCriterion
- The value to convert to an enum constant.
Returns
- ↪HorizontalOverlapCriterion
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - HorizontalOverlapCriterion
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.