These are chat archives for openseadragon/openseadragon

11th
Jul 2016
William Lee
@WilliamCarlos
Jul 11 2016 03:46
is it possible use addOverlay() and have the overlay not rotate with the base image? I have var code="overlays: [{
rotationMode: OpenSeadragon.OverlayRotationMode.NO_ROTATION
}]") in the OpenSeadragon viewer declaration but that doesn't seem to do anything (I believe my implementation is correct, I'm guessing this is only for overlays created pre-runtime? (i.e. does not change the rotation mode of all overlays, but of specific ones created initially)
whoops, not familiar with markdown, ignore the var code=" "
William Lee
@WilliamCarlos
Jul 11 2016 04:02
Nevermind, figured it out :smile:
Ian Gilman
@iangilman
Jul 11 2016 16:35
:)
Illya Moskvin
@IllyaMoskvin
Jul 11 2016 23:05
Given a viewer instance, is there a way to access its initial options? In this case, I'm looking for something pretty specific – resetting a viewer to its initial rotation (degrees), and I can definitely store these sorts of options outside of the viewer instance for later reference, but I was wondering if there is a cleaner way to do it that I might be missing.
Illya Moskvin
@IllyaMoskvin
Jul 11 2016 23:13
Oh, I see. viewer.degrees refers to the initial rotation, not to its current rotation. Oops.