Defines the layout modes used by the OrthogonalLayout.
Remarks
A mode determines how nodes and edges are arranged within the layout, providing different trade-offs between node size, edge orthogonality, and the number of bends.
Type Details
- yFiles module
- algorithms
Constants
This mode tries to force straight-line edge routes by changing the size of the nodes accordingly.
Remarks
The layout algorithm will reduce/enlarge nodes based on the number and position of their neighbors to further reduce the required bends. Hence, most edge segments are straight-line - either horizontal or vertical.
See Also
Sample Graphs
While applying this model usually leads to a high number of straight-line edges some edges may still receive bends.
The relaxed mode allows non-orthogonal edge segments and maintains the original node size.
Remarks
This mode produces edge routes where the first/last segment of an edge may be non-orthogonal.
See Also
Sample Graphs
The strict mode always produces orthogonal edge routes and maintains the original node size.
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Most notably, this method can convert an enum constant's name into the enum constant itself.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - OrthogonalLayoutMode
- The value to convert to an enum constant.
Returns
- ↪OrthogonalLayoutMode
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - OrthogonalLayoutMode
- 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.