alanaberdeen / AIDA

Annotation of Image Data by Assignment.
https://alanaberdeen.github.io/AIDA
MIT License
56 stars 15 forks source link

Display mouse XY coordinates on Navigator #15

Open rcasero opened 5 years ago

rcasero commented 5 years ago

Hi @alanaberdeen ,

I think it'd be very useful to have on the bottom-left corner of the navigator the pixel XY coordinates of the mouse pointer. Then, that can be used to write down locations of interest for offline processing.

Maybe I can have a go at implementing that. Which file would that go in?

alanaberdeen commented 5 years ago

Hi @rcasero,

Sure, I can see how this would be useful!

If you'd like to take a stab at it the Navigator component is in src/components/editor/studio/Navigator.vue. I think you'd want to add some kind of mouse listener, from the OpenSeadragon docs this MouseTracker moveHandler might be a good starting point.

I'll keep this in mind too for future changes