Hello,
I am running into an issue in my application where the transparent bounding box around the connections end up on top of some element such as buttons or endpoints and blocks the mouse click or drag events from getting to that element.
Please take a look at this example jsFiddle I made to show what I mean:
http://jsfiddle.net/a2aVf/2/I also attach an image to show the bounding box around the SVG element that is on top of the button.
One way to deal with this issue is to change the z-index of the connection to be lower that the button (or any other interactive elements). However, that does not look good, and breaks the visual continuity of the connection. This is specially a problem when elements are not transparent, so you cant see the connections passing under them at all.
My question is: is there a way to render connections on top, but pass mouse events through the transparent areas of the bounding box of the connection and capture it only when the mouse is on top of a rendered path? If that is asking for too much from SVG elements -- is there a way to pass the mouse events through the whole area of the connection?
I think this is more of a browser SVG rendering question, but I would appreciate any help that I can get in dealing with this problem.
Cheers,
Aras