annotorious / annotorious-openseadragon

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

bug in fragementUnit: "percentage" #93

Closed dnoneill closed 2 years ago

dnoneill commented 3 years ago

When you try to load percentage annotations into the viewer I get a large bug. See below.

TypeError: undefined is not an object (evaluating 't.naturalWidth')

rsimon commented 3 years ago

Thanks for reporting! Yikes... that's a nasty one - and definitely an oversight on my part. Looks like annotation loading happens before the image is actually loaded in the OSD viewer, which means the image width/height (necessary to sort/draw) the annotations isn't known yet.

This is likely to remain broken for a while, until I find the time to sort out the load sequence.