0

I have written a custom UI extension by following the procedure that cystoscape.js recommends. I am using jcanvas library to draw shapes on this ui extension. Everything works great except the click events on these shapes (jcanvas library provides events to bind on the shapes drawn)are not working. Click on these shapes makes only cytoscape core click. jcanvas events are not fired because I think cytoscape eats all the events. Could someone please help me to how to listen to events on the canvas which are overlayed using ui extension?

Thanks Prakash

1 Answer 1

0

Your overlay needs to be on top of the Cytoscape canvases to get events. Take a look at the existing extensions for examples, like panzoom.

1
  • Thanks maxkfranz. I made some mistake in jcanvas api, that is why I was not able to receive events. But your answer helped me to solve other problems like dragging the shapes Apr 19, 2017 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.