Search
GridRouter.crossingCost Property
See Also
 





Gets or sets a value added to the total cost of a route which causes a link to cross another link.

Namespace: MindFusion.Diagramming
File: GridRouter.js

 Syntax

JavaScript  Copy Code

get crossingCost() {}
set crossingCost(value) {}

 Property Value

Number

A number specifying the crossing cost. The default is 4.

 Remarks

This is a penalty value added to the total cost of an evaluated link route if it crosses another link. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to crossingCost leads to fewer link intersections. This value is considered only when routing multiple links at once, e.g. by routeAllLinks method. 

 See Also