These are chat archives for openseadragon/openseadragon

19th
Jan 2017
Ian Gilman
@iangilman
Jan 19 2017 17:26
@Houliganzz_twitter I'm not familiar with the OpenSeadragonGL demo... you have a link to it?
axptwig
@axptwig
Jan 19 2017 22:22
Hi everyone! Can anyone help me with an issue about an openseadragon container for my php web project?

i am trying to add this zoom feature to the openseadragon window: https://github.com/Gargron/zoomie

is this even possible?

Ian Gilman
@iangilman
Jan 19 2017 22:29
@axptwig Hello! Do you want to have both normal OSD zoom and also the hover to zoom thing at the same time?
axptwig
@axptwig
Jan 19 2017 22:29
yes!
Ian Gilman
@iangilman
Jan 19 2017 22:30
Seems like it might be a little confusing for the user...
axptwig
@axptwig
Jan 19 2017 22:30
it is just a demo, is it even possible?
Ian Gilman
@iangilman
Jan 19 2017 22:30
Anyway, it's probably not possible directly with zoomie, unless zoomie can work with OSD's canvas (and I guess maybe a larger off screen OSD for the zoomed in version)
axptwig
@axptwig
Jan 19 2017 22:31
the documentation on the zoomie github page is very simple but i cant select the canvas for zoomie
Ian Gilman
@iangilman
Jan 19 2017 22:32
Another approach would be to skip zoomie and do it all in OSD. You'd make a second viewer that you would place over top of the main viewer. You'd have to move it around to follow the mouse, and you'd have to zoom and pan it appropriately
...and you'd have to add a border-radius to it so it had the circular look
axptwig
@axptwig
Jan 19 2017 22:33
is there any example of this online?
Ian Gilman
@iangilman
Jan 19 2017 22:34
No, I don't know of anyone who's done it
axptwig
@axptwig
Jan 19 2017 22:35
how about this then
whould it be possible to implement hover zoom in openseadragon?
in my current canvas
Ian Gilman
@iangilman
Jan 19 2017 22:36
How's that different from what I just suggested?
You mean you hover and it zooms the whole thing, rather than having a floating zoom bubble?
axptwig
@axptwig
Jan 19 2017 22:37
yeah focused on the cursor
Ian Gilman
@iangilman
Jan 19 2017 22:40
That should be relatively easy... you'll want to use OpenSeadragon.MouseTracker to know where the mouse is, and then translate that into viewer.viewport.zoomTo() and panTo() commands
Btw, looks like this is kind of like what I was suggesting relative to a zoomie replacement: https://github.com/picturae/OpenSeadragonMagnifier
Looks like this is pretty similar to the hover zoom: http://codepen.io/imoskvin/pen/RaeWaL
(you'd just want to pop it back out to home when the mouse exits the viewer)
axptwig
@axptwig
Jan 19 2017 22:44
awesome this is actually perfect!
Ian Gilman
@iangilman
Jan 19 2017 22:44
Cool :)
axptwig
@axptwig
Jan 19 2017 22:45
i kinda dont understand how the code is working though
but its a good start to expand off of
Ian Gilman
@iangilman
Jan 19 2017 22:46
Cool... let me know if you have questions
axptwig
@axptwig
Jan 19 2017 22:46
thx!