documentationfor yFiles for HTML 2.6

OrthogonalPatternEdgeRouter

OrthogonalPatternEdgeRouter routes edges orthogonally such that the resulting layout of the edges consists only of vertical and horizontal segments.

Inheritance Hierarchy
LayoutStageBase
OrthogonalPatternEdgeRouter
Implemented Interfaces

Remarks

Note that the location and size of the nodes in a diagram remains unchanged.

The edge router will not try to find a perfect route from source to edge (unlike to what EdgeRouter does) but chooses the best path out of a set of fixed paths. The best path out of these possible paths is determined by its cost. The costs may be influenced by setting several cost factors. The distance that an edge will have from its source and target node is determined by minimumDistance.

The edges whose paths have to be routed can be defined registering a IDataProvider with key DEFAULT_AFFECTED_EDGES_DP_KEY.

Default Values of Properties

affectedEdgesDpKeyDEFAULT_AFFECTED_EDGES_DP_KEY
bendCost1
edgeCrossingCost5
edgeOverlapCost0
gridRoutingfalseEdges are not routed on a grid.
gridSpacing10.0
minimumDistance10.0
monotonicPathRestrictionNONE
nodeCrossingCost50

Type Details

yfiles module
router-other
yfiles-umd modules
layout-familytree, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-other
Legacy UMD name
yfiles.router.OrthogonalPatternEdgeRouter

See Also

Constructors

Properties

Methods

Constants