annotorious / annotorious-openseadragon

An OpenSeadragon plugin for annotating high-res zoomable images
https://annotorious.github.io
BSD 3-Clause "New" or "Revised" License
121 stars 43 forks source link

Annotorious selection box and OSD rotation #195

Open ferropasha opened 6 months ago

ferropasha commented 6 months ago

I have noticed, that when I apply rotation to OSD with controls or programmatically like this viewer.viewport.setRotation(angle); annotation box rotates along with the underlying image. Is it by any chance possible to separate the two, so that if I rotate the image by 1 degree for example, the box stays put at 0 degree rotation?

rsimon commented 6 months ago

That's the desired behavior. The annotations are always anchored to the base image. (Because they represent a selected image region.)