Specifies the layout style for handling chain substructures in an OrthogonalLayout.
Type Details
- yFiles module
- algorithms
Constants
Chains are not handled in any special manner.
Remarks
When this option is selected, chains within the input graph are not detected and will be arranged using the default orthogonal layout without any particular emphasis on their linear structure. This is the default behavior if no specific chain substructure style is set.
See Also
Sample Graphs
Chains are arranged in a straight line.
Remarks
This style ensures that all nodes in a detected chain are aligned in a straight, unbroken line. The chain's linearity is preserved during the layout process, making it ideal for scenarios where maintaining the sequential order of nodes is critical.
See Also
Sample Graphs
Chains are wrapped, with bends in the chain's edges forming the turns or corners.
Remarks
This style wraps chains in a manner similar to WRAPPED_WITH_NODES_AT_TURNS, but instead of positioning nodes at the turns, it allows the edges themselves to form the bends or corners. This creates a more flexible arrangement, where the focus is on maintaining the chain's path rather than emphasizing node placement at corners.
See Also
Sample Graphs
Chains are wrapped, with nodes positioned at the turns or corners of the layout.
Remarks
In this style, chains are arranged to wrap in a line or column, where each node in the chain is placed at the bends or corners of the arrangement. This approach emphasizes the presence of nodes at key turning points, making it useful for layouts where node placement at corners is desired.
See Also
Sample Graphs
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 - OrthogonalLayoutChainSubstructureStyle
- The value to convert to an enum constant.
Returns
- ↪OrthogonalLayoutChainSubstructureStyle
- 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 - OrthogonalLayoutChainSubstructureStyle
- 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.