I want to check if this is a link bug?

So if links crossover each other and they have the same from node Link.JumpGap or Link.JumpOver does not work. Please take a look at this screenshot.

Yes, links coming from the same port will not jump each-other. This is intentional.

Could we have several different ports on the same place? And let every link starts from own port?

Yes you could. I guess that’s a clever but inefficient way to get what you want.

Walter, I just tried this and even if my links use different ports on the same place, old behavior is still present. Only if I change location of ports (they are not in the same place) things works as you and Simon told me it should.

Ah, I was wrong – it actually checks for the links starting or ending at approximately the same point in document coordinates.

But I think you can get the behavior the way you want: define and use a subclass of Link and override this undocumented method:

CustomLink.prototype.usesSamePort = function(otherlink) { return false; }

I haven’t tried this. And you might not like the results if you do try it.

It works. Thanks!