These are chat archives for openseadragon/openseadragon

7th
Sep 2016
Toke Eskildsen
@tokee
Sep 07 2016 11:58
I want to add a demo-mode to a (virtually) large image using OpenSeadragon, where focus should switch between random parts of the image. The "Ken Burns"-effect works well by calling zoomTo, but since the project is about newspapers, I was thinking about occasionally a "rotating newspaper" effect for maximum vertigo during transitions.
It seems that setRotation is an immediate action and as I would like the rotation, zooming and panning to be one smooth transition, even a spring-supporting rotation would not help me. I can probably make my own rotatingZoomTo(zoom, position, angle)method, but first I would like to hear if I am missing something or re-inventing an already existing functionality?
Alexey Tikhonov
@altert
Sep 07 2016 13:57
@tokee there is not smooth rotation built in OSD as far as I know. I’ve used Tween.js when I needed similar functionality
Toke Eskildsen
@tokee
Sep 07 2016 14:01
@altert So I could start zoom+pan with zoomToand meanwhile rotate the OpenSeadragon DIV with Tween.js?
Alexey Tikhonov
@altert
Sep 07 2016 14:02
you can add use tween with setRotation
Toke Eskildsen
@tokee
Sep 07 2016 14:03
Ah, okay. Thanks, I'll try that.
Alexey Tikhonov
@altert
Sep 07 2016 14:03
btw, if you want zoom to specific parts it might be more useful to use fitBounds()
instead of zoomTo
Toke Eskildsen
@tokee
Sep 07 2016 15:37
@altert My image is a mosaic: fitBoundscould work well for alternating between "multiple visible sub images at a random point" and "a specific sub image at full visible size" for the demo mode. I think I can also use it for a "search within the large image" function, with zoomTo(fitBounds(rectangle_from_search)). Thanks.
Alexey Tikhonov
@altert
Sep 07 2016 15:38
yeah. you don’t need to zoomTo(fitBounds(rectangle_from_search))
fitBounds(rectangle_from_search) does the zoom
Toke Eskildsen
@tokee
Sep 07 2016 15:41
Ah, of course.
John Hoffer
@thejohnhoffer
Sep 07 2016 20:11
Update on the openSeadragonGL plugin — Documentation is here! Please file an Issue if any part makes no sense. I'm confident that all of the API could be simplified/improved.
Ian Gilman
@iangilman
Sep 07 2016 21:03
@thejohnhoffer Nice! Looks good to me on first blush.
One thing: seems like it would be nice to be able to pass the shaders in as strings instead of paths if you wanted.
(I mean it would be nice to have both options)