Contextmenu location

Finally found some time to implement this on our "panzoom" branch on Github (which will become our version 2.0). This is the output message when an SVG element is clicked:

image

As you can see we have an extra set of coordinates (SvgX and SvgY), which are not available in the other 2 nodes above. These represent the coordinates inside the SVG coordinate system.

Wanted to solve this without breaking change, but unfortunately we already used the msg.event field in the past to send the type of event (e.g. "click"). Cannot solve that. And since we have now a breaking change anyway, I have also remove our msg.position and msg.coordinates also. Have added this to our 2.0 migration guide:

1 Like