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.
Type Details
- yFiles module
- view-layout-bridge
The coordinates of a port will not be changed if the port is associated with a strong port constraint.
Constants
Edges at ports are lengthened or shortened if their port is not on its owner's outline.
Remarks
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 Methods
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 - PortAdjustmentPolicy
- The value to convert to an enum constant.
Returns
- ↪PortAdjustmentPolicy
- The enum constant that corresponds to the given argument.
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 - PortAdjustmentPolicy
- 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.