UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 483cb0ef authored by graham.smith's avatar graham.smith
Browse files

Merge branch 'BULL-2084' into 'master'

Pass router functions instead of assigning in joint.routers

See merge request !246
parents 2edb2814 0f4db7d2
No related branches found
No related tags found
1 merge request!246Pass router functions instead of assigning in joint.routers
...@@ -402,9 +402,9 @@ export default { ...@@ -402,9 +402,9 @@ export default {
}) })
); );
joint.routers.orthogonal2 = function (_vertices, _args, linkView) { function routerOrthogonal2(_vertices, _args, linkView) {
return orthogonal2Routing(linkView); return orthogonal2Routing(linkView);
}; }
[ [
["Docker File Lint", "Build"], ["Docker File Lint", "Build"],
...@@ -451,14 +451,14 @@ export default { ...@@ -451,14 +451,14 @@ export default {
strokeWidth: 1, strokeWidth: 1,
}, },
}); });
link.router("orthogonal2"); link.router(routerOrthogonal2);
link.connector("rounded"); link.connector("rounded");
link.addTo(graph); link.addTo(graph);
}); });
joint.routers.orthogonalAround = function (_vertices, _args, linkView) { function routerOrthogonalAround(_vertices, _args, linkView) {
return orthogonalAroundRouting(linkView); return orthogonalAroundRouting(linkView);
}; }
const link = new joint.shapes.standard.Link(); const link = new joint.shapes.standard.Link();
link.source(stepsMap.get("Release Job (Production Only)").element, { link.source(stepsMap.get("Release Job (Production Only)").element, {
...@@ -482,7 +482,7 @@ export default { ...@@ -482,7 +482,7 @@ export default {
strokeDasharray: "4 2", strokeDasharray: "4 2",
}, },
}); });
link.router("orthogonalAround"); link.router(routerOrthogonalAround);
link.connector("rounded"); link.connector("rounded");
link.addTo(graph); link.addTo(graph);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment