The modes used to detect group nodes to paste other nodes into.
Type Details
- yFiles module
- view
Constants
A node should be pasted into the group node at the location where the node is pasted to.
Remarks
A node will not be pasted into its original node. Note that it can be pasted into a copy of its original, though.
This mode is preceded by SELECTION but has precedence over PREVIOUS_PARENT.
A node should be pasted into its original parent or ancestor, if it has not been moved away too much.
Remarks
If the previous parent has been removed from the graph or moved too far away in between the copy and paste operation, the detection will proceed with the parent's parent.
If this setting is combined with SELECTION or AT_LOCATION it is preceded by both.
If exactly one group node is selected, the nodes should be pasted into that group.
Remarks
A node will not be pasted into its original node. Note that it can be pasted into a copy of its original, though.
This mode has precedence over all other detection modes, so the other modes will only be used if no suitable single group node can be detected.
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 - ParentNodeDetectionModes
- The value to convert to an enum constant.
Returns
- ↪ParentNodeDetectionModes
- 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 - ParentNodeDetectionModes
- 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.