-
Notifications
You must be signed in to change notification settings - Fork 879
Open
Labels
Description
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:
var CustomLink = joint.dia.Link.define('standard.Link', {
attrs: {
line: {
connection: true,
stroke: '#3498DB',
strokeWidth: 3,
strokeLinejoin: 'round',
targetMarker: {
'type': 'path',
'd': 'M 10 -5 0 0 10 5 z'
}
}
},
router: { name: 'metro' },
connector: { name: 'rounded', args: { radius: 20 } }
}, {
markup: [{
tagName: 'path',
selector: 'wrapper',
attributes: {
'cursor': 'pointer'
}
}, {
tagName: 'path',
selector: 'line',
attributes: {
'fill': 'none'
}
}]
});
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.