documentationfor yFiles for HTML 2.6

FixPortLocationStage

FixPortLocationStage ensures that layout algorithms that cannot handle port constraints keep the ports of edges with strong PortConstraints.

Inheritance Hierarchy
LayoutStageBase
FixPortLocationStage
Implemented Interfaces

Remarks

Without this stage, the port locations get lost.

For each edge with strong PortConstraints, this stage simply stores the original port and restores it after applying the core layout algorithm. Therefore, it either replaces the source/target port by the original port or adds the original port to the edge path calculated by the core layout algorithm (see method keepCalculatedPorts).

Default Values of Properties

coreLayoutnull
keepCalculatedPortstrueThe edge paths contain the port locations calculated by the core layout algorithm.

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.FixPortLocationStage

See Also

Constructors

Properties

Methods