Used by GraphCopier and ClipboardGraphCopier to indicate which types of objects should be cloned during copy operations.
Remarks
The object types are such as styles or tags.
Type Details
- yFiles module
- view
Constants
Indicates that IEdgeStyles should be cloned when their edge is copied.
Remarks
If set, the copied item will get a clone of the original's style.
Indicates that ILabelStyles should be cloned when their label is copied.
Remarks
If set, the copied item will get a clone of the original's style.
Indicates that INodeStyles should be cloned when their node is copied.
Remarks
If set, the copied item will get a clone of the original's style.
Indicates that IPortStyles should be cloned when their port is copied.
Remarks
If set, the copied item will get a clone of the original's style.
Indicates that tags should be cloned when their owner is copied.
Remarks
If set, the copied item will get a clone of the original's tag.
Note that the tag will only be cloned if its class implements ICloneable.
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 - CloneTypes
- The value to convert to an enum constant.
Returns
- ↪CloneTypes
- 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 - CloneTypes
- 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.