magland / sortingview

Web app for viewing results of ephys spike sorting
Apache License 2.0
23 stars 7 forks source link

Make `vv.Image` zoomable #219

Open alejoe91 opened 12 months ago

alejoe91 commented 12 months ago

Hi @magland

would it be possible to make the vv.Image view zoomable with shigt+scroll? (of course at whatever resolution is given!)

Probably this would only affect the spikesortingview side

magland commented 12 months ago

That is possible, but not that easy, because right now it's a simple html image element. It would require a rewrite to use html5 canvas, and handing the mouse movements. I don't think I would be able to get to that soon. But if it's very high priority, let me know and I can put it on my list.

Here's the source code for it: https://github.com/magland/figurl-core-views/blob/master/test-gui/src/package/view-image/ImageView.tsx