E

SnappableItems
flags

An enumeration that specifies which items will be snapped by the GraphSnapContext.

Members

No filters for this type

Constants

Constant for snapping all kinds of items.
This is a bitwise combination of all other types declared in this enum.
static
Constant indicating that bends should be snapped.
static

See Also

API
IEdge
Constant indicating that segments adjacent to port should be orthogonally snapped.
Constant for snapping all kinds of edge-related item types.
This is a bitwise combination of BEND, PORT, ORTHOGONAL_SEGMENT, PORT_ADJACENT_SEGMENT, and BEND_ADJACENT_SEGMENT.
static

See Also

API
IEdge
Constant indicating that edge labels should be snapped.
static

See Also

API
IEdge, ILabel
Constant for snapping all kinds of labels.
This is a bitwise combination of NODE_LABEL, EDGE_LABEL, and PORT_LABEL.
static

See Also

Developer's Guide
API
ILabel
Constant for snapping all kinds of items that may have labels.
This is a bitwise combination of NODE, EDGE, and PORT.
static

See Also

API
INode, IEdge, IPort, ILabel
Constant indicating that nodes should be snapped.
Constant indicating that node labels should be snapped.
static

See Also

API
INode, ILabel
Constant for snapping no items.
Constant indicating that the pointer movement should be snapped to the horizontal or vertical axis.
Constant indicating that orthogonal segments should be snapped.
Constant indicating that ports should be snapped.
Constant indicating that segments adjacent to port should be orthogonally snapped.
Constant indicating that port labels should be snapped.
static

See Also

API
IPort, ILabel

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: SnappableItems
The value to convert to an enum constant.

Return Value

SnappableItems
The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
static

Parameters

value: SnappableItems
The numeric value of an enum constant.

Return Value

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.