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 {
})
);
joint.routers.orthogonal2 = function (_vertices, _args, linkView) {
function routerOrthogonal2(_vertices, _args, linkView) {
return orthogonal2Routing(linkView);
};
}
[
["Docker File Lint", "Build"],
......@@ -451,14 +451,14 @@ export default {
strokeWidth: 1,
},
});
link.router("orthogonal2");
link.router(routerOrthogonal2);
link.connector("rounded");
link.addTo(graph);
});
joint.routers.orthogonalAround = function (_vertices, _args, linkView) {
function routerOrthogonalAround(_vertices, _args, linkView) {
return orthogonalAroundRouting(linkView);
};
}
const link = new joint.shapes.standard.Link();
link.source(stepsMap.get("Release Job (Production Only)").element, {
......@@ -482,7 +482,7 @@ export default {
strokeDasharray: "4 2",
},
});
link.router("orthogonalAround");
link.router(routerOrthogonalAround);
link.connector("rounded");
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