I want to get all the outgoing links associated with an element .What is the way to achieve this in jointJs .Actually I have tried something like this but It is giving result for both outgoing and incoming .
paper.findViewByModel(start).options.inbound=true;
alert(graph.getConnectedLinks(start));
Just use
var outboundLinks = graph.getConnectedLinks(myElement, { outbound: true })
See the JointJS API reference here http://jointjs.com/api#joint.dia.Graph:getConnectedLinks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With