These are chat archives for openseadragon/openseadragon

26th
Oct 2016
John Hoffer
@thejohnhoffer
Oct 26 2016 14:49
tiledImage.lastDrawn[n].context2D == undefined
John Hoffer
@thejohnhoffer
Oct 26 2016 14:58
tiledImage.lastDrawn[n].cacheImageRecord._renderedContext is a CanvasRenderingContext2D but this is highly undocumented and making me nervous.
John Hoffer
@thejohnhoffer
Oct 26 2016 15:20
So that problem's 'solved' for now- it might actually only be a problem in the latest master branch. Not sure.
Ian Gilman
@iangilman
Oct 26 2016 16:24
@thejohnhoffer Good point... it looks like internally we use tile.context2D || tile.cacheImageRecord.getRenderedContext(). I suppose making an accessor for that might be a good addition as well
Ian Gilman
@iangilman
Oct 26 2016 17:03
Thanks to @avandecreme rotation of individual images has now landed on master! openseadragon/openseadragon#1006 If you're interested in this feature, please help us test it!
Grant Echols
@gechols
Oct 26 2016 19:36
I'm trying to track down an issue with a viewport.zoomBy that doesn't seem to do anything. We are trying to zoom 'out' and the image dimensions and the viewport dimensions are really close to being equal (so the whole image would be visible). Nothing seems to happen when the zoomBy is executed. When I look at the internal zoomTo function I see that when it fails there's a call to springTo(0.0006558958740162139) followed by a call to resetTo(0.0009838438110243205).
When it looks like it works I see only a call to springTo(0.001008155684754522) (the numbers change a bit when it works) but not when it fails
When the zoom stops working the image and viewport bounds are: View: Width: 1016 Height: 295
and Image: Width: 1024 Height: 295
Ian Gilman
@iangilman
Oct 26 2016 20:46
@avandecreme Those are awesome! I'm going to have to plan some new trips :)
@gechols Yes, I think we have some problems with extremely subtle moves.
...though I'm not sure what the reset is doing in that scenario. Can you trace and figure out what is calling the reset? Looks like it's probably in zoomTo, but what's calling zoomTo to make it happen?
Do you have a repro you can share?