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
JavaScript
![]() |
---|
get crossingCost() {} |
Number
A number specifying the crossing cost. The default is 4.
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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2025 MindFusion |