Enum constants that specify how a node and its surrounding nodes are handled by OrganicLayout.
Type Details
- yFiles module
- algorithms
See Also
Constants
Constant indicating that the algorithm should place the node.
Constant indicating that the algorithm must not move the node, unless it is affected by nodes close to it.
Constant indicating that the algorithm should place a node but may to a certain degree also move nodes that are geometrically close to a node from the subset.
Remarks
Nodes may be moved if they are geometrically close to the given node. To measure the geometric distance, the euclidean distance between node bounds is calculated and if a node that has a distance smaller than some threshold, it may be moved. The threshold depends on the specified preferred edge length and minimum node distance of the algorithm. Larger values of these properties increase the threshold.
See Also
Sample Graphs
Constant indicating that the algorithm should place a node but may to a certain degree also move nodes that are structurally close to the node.
Remarks
Nodes that don't belong to the actual subset may be moved if they are structurally close to the given node, but they will keep their relative positions to the other nodes outside the subset.
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 - OrganicScope
- The value to convert to an enum constant.
Returns
- ↪OrganicScope
- 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 - OrganicScope
- 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.