-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link head out of place with "metro" router. #1246
Labels
Comments
Hi, perhaps you can work around this issue by moving the link anchors. e.g if you have 2 port groups (one on the left paper.options.defaultAnchor = function(...args) {
const magnet = args[1];
const endType = args[4];
const endView = this.getEndView(endType);
if (endView) {
const group = endView.findAttribute('port-group', magnet);
if (group) {
if (group === 'in') {
return joint.anchors.left(...args);
}
if (group === 'out') {
return joint.anchors.right(...args);
}
}
}
return joint.anchors.center(...args);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, something is happening with the links head using "metro" router. When I have 2 boxes connected by a link, depending of the boxes position, the head of the link seams to move out of its natural place.
It happens the same with bouth APIS, "joint.dia.Link" and " joint.shapes.standard.Link".
Here is my Link code:
To solve the problem I'm using "manhattan router":
router: { name: 'manhattan', args: { padding: 20 } },
This is the JointJS Google Group thread:
https://groups.google.com/forum/#!topic/jointjs/BQc1qjR6pJ4
Greetings, Emilio.
The text was updated successfully, but these errors were encountered: