Specifies how port locations should be adjusted after a layout has been calculated.
Remarks
Layout algorithms only consider rectangular nodes even though the actual shape of a node is, for example, circular. Hence, the ports are usually placed at the border of the nodes' bounds (except for some layout algorithms that produce straight-line edge routes and place the ports at the nodes' center).
Based on this setting the edges will be shortened or lengthened in a way that their sourcePorts and targetPorts will be placed on the node's outline.
Members
No filters for this type
Constants
Edges at ports are lengthened or shortened if their port is not on its owner's outline.
Edges at ports are lengthened or shortened if their port is not on its owner's outline.
The port is moved along the (lengthened) edge until it hits the outline. If starting outside and prolonging the edge wouldn't hit the outline, the port location is kept.
static
The port is moved along the lengthened edge until it hits the outline. If prolonging the edge wouldn't hit the outline, the port location is kept.
static
See Also
Developer's Guide
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: PortAdjustmentPolicy
- The value to convert to an enum constant.
Return Value
- PortAdjustmentPolicy
- 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: PortAdjustmentPolicy
- 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.