bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
94 stars 27 forks source link

Show mouse coordinates if requested #9

Closed bartbutenaers closed 5 years ago

bartbutenaers commented 5 years ago

When putting extra icons on a background image, you have to guess the coordinates. Then you have to look at the result in the dashboard, and adjust the coordinates ...

To simplify this process, the user should be able (e.g. via a checkbox in the config screen) to show the mouse coordinates in the dashboard drawing.

bartbutenaers commented 5 years ago

I managed to implement this, however I had to show the tooltip at OffsetX/OffsetY while I had expect it had to be ClientX/ClientY. Got here this nice picture:

image