E

MoveTypes
flags

Describes the type of movement of a point during an edit in the context of GraphSnapContext.

Members

No filters for this type

Constants

The element moves in both directions but not linearly/predictably with the mouse.

A typical example is a port whose position is adjusted during a resize of its owning node.

Elements which do not move linearly with the mouse cannot snap to a defined position.

static
The element moves in horizontal direction but not linearly/predictably with the mouse.

A typical example is a port whose position is adjusted during a resize of its owning node.

Elements which do not move linearly with the mouse cannot snap to a defined position.

static
The element moves in vertical direction but not linearly/predictably with the mouse.

A typical example is a port whose position is adjusted during a resize of its owning node.

Elements which do not move linearly with the mouse cannot snap to a defined position.

static
The element does not move at all during the edit.
The element moves linearly with the mouse in both directions.
The element moves linearly with the mouse in horizontal direction.
The element moves linearly with the mouse in vertical direction.
The bitwise combination of LINEAR_MOVE_X and ARBITRARY_MOVE_X
The bitwise combination of LINEAR_MOVE_Y and ARBITRARY_MOVE_Y

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: MoveTypes
The value to convert to an enum constant.

Return Value

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

Parameters

value: MoveTypes
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.