# Contextmenu location

**URL:** <https://discourse.nodered.org/t/contextmenu-location/22780>\
**Category:** Developing Nodes\
**Created:** [7 March 2020 22:46 UTC](https://discourse.nodered.org/t/contextmenu-location/22780 "2020-03-07T22:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 74

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [21 June 2020 20:34 UTC](https://discourse.nodered.org/t/contextmenu-location/22780/74 "2020-06-21T20:34:35Z")

</div>

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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54a950088020d0e05969bcf641d922bade0f0b18.png)

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:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/37258356d2806e806cc62f63f47d89f973e10e93.png)

---

_[View the full topic](https://discourse.nodered.org/t/contextmenu-location/22780)._
