Specifies discrete positions for placing node labels with the GenericLabeling algorithm.
Remarks
The DiscreteNodeLabelPositions enum provides several predefined constants that represent various label positions around and within a node. These positions can be combined to allow flexibility in label placement, depending on the specific requirements of your graph layout.
See Also
Members
No filters for this type
Constants
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom-left position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom-left position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom-right position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the bottom-right position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the center position
static
Sample Graphs
ShownSetting: Label positions at the corners of the node are valid
See Also
static
Sample Graphs
ShownSetting: All positions inside the node are valid
See Also
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the left position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the left position
static
Sample Graphs
ShownSetting: Positions outside the node are valid
See Also
API
- TOP, RIGHT, BOTTOM, LEFT, TOP_RIGHT, TOP_LEFT, BOTTOM_RIGHT, BOTTOM_LEFT
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the right position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the right position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the top position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the top position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the top-left position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the top-left position
To define multiple valid placements for a label, all position specifiers can be combined with a logical
or-operation.static
Sample Graphs
ShownSetting: Label at the top-right position
Static Methods
Converts the given argument to an enum constant of this enum type.
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: DiscreteNodeLabelPositions
- The value to convert to an enum constant.
Return Value
- DiscreteNodeLabelPositions
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Returns the name of the given enum constant.
static
Parameters
- value: DiscreteNodeLabelPositions
- 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.