An enumeration for use in various properties that can take a bitwise combination of item types that make up an IGraph
Remarks
The values may be used to create a bitwise combination of the types.
Type Details
- yFiles module
- view
Constants
Constant for edge bends.
See Also
Constant for edges.
See Also
Constant for edge labels.
See Also
Constant for all kinds of labels.
Constant for all kinds of ILabelOwner.
Constant for nodes.
See Also
Constant for node labels.
See Also
Constant for ports.
See Also
Constant for port labels.
See Also
Static Methods
Determines whether the specified items collection contains any of the types described by types
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- types - GraphItemTypes
- The types.
- items - IEnumerable<IModelItem>
- The items.
Returns
- ↪boolean
true
if the specified items contain any of the types;false
otherwise.
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 - GraphItemTypes
- The value to convert to an enum constant.
Returns
- ↪GraphItemTypes
- The enum constant that corresponds to the given argument.
Gets the type of the item.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- item - IModelItem
- The item.
Returns
- ↪GraphItemTypes
- The type.
Determines the types of the items contained in the collection of items.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- items - IEnumerable<IModelItem>
- The items.
Returns
- ↪GraphItemTypes
- The types of the items.
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 - GraphItemTypes
- 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.
Determines whether the item
is of the specified types
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- types - GraphItemTypes
- The type.
- item - IModelItem
- The item.
Returns
- ↪boolean
true
if theitem
is of the specifiedtypes
;false
otherwise.