UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 0f4db7d2 authored by Raj Manandhar's avatar Raj Manandhar Committed by graham.smith
Browse files

Pass router functions instead of assigning in joint.routers

parent 2edb2814
No related branches found
Tags v0.5.52
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