Get outgoing element links

I want to get all outbound links associated with an item. What is the way to achieve this in collaborative projects. In fact, I tried something like this, but it gives the result for both outgoing and incoming.

paper.findViewByModel(start).options.inbound=true;
alert(graph.getConnectedLinks(start));
+4
source share
1 answer

Just use

var outboundLinks = graph.getConnectedLinks(myElement, { outbound: true })

See the JointJS API link here http://jointjs.com/api#joint.dia.Graph:getConnectedLinks .

+8
source

All Articles