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' bounding boxes (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
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.layout.PortAdjustmentPolicy
See Also
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 owners 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.
Port locations should not be adjusted at all.
Static Methods
Converts the argument to PortAdjustmentPolicy.
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 PortAdjustmentPolicy.
Returns
- ↪PortAdjustmentPolicy
- Either
value
if it is already a PortAdjustmentPolicy or an appropriate converted value.