documentationfor yFiles for HTML 2.6

PortAdjustmentPolicy

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

Static Methods