Change default fallbackRouter for manhattan #2851
IntroductionThe manhattan router documentation says "The default fallbackRouter is an orthogonal router." Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS |
Answered by
kumilingus
Jan 11, 2025
Replies: 2 comments
|
Yes. You can introduce a new router or override the default new joint.dia.Paper({
/* ... */
routerNamespace: {
...joint.routers,
manhattan: (vertices, userOpt, linkView) => {
const opt = { fallbackRouter: joint.routers.rightAngle, ...userOpt };
return joint.routers.manhattan(vertices, opt, linkView);
}
}
}); |
0 replies
Answer selected by
trufak
|
I love you even more! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes.
You can introduce a new router or override the default
manhattanrouter: