openseadragon/test
Alistair Buxton 7552806a47 Force reload tiles when the tile's flip doesn't match the image
Flipping an image changes the bounds of each tile. The existing
code assumes that cannot happen. getTile() calculates the tile
bounds the first time it is asked for a particular tile. It then
caches and returns the same time on every subsequent call.

getTile() has a check to test if a tile exists in the cache. If
it does not, the tile is created and inserted. In order to make
tiles be rebuilt after a flip, we only need to check if the tile's
flip matches the image's flip. If not, we can recreate the tile
as if it did not exist.

To make this a bit clearer, the tile's flipped flag is now set
in getTile() rather than positionTile().

This makes setFlip() work.
2021-03-22 06:45:26 +00:00
..
data removed old files from test 2018-02-16 21:17:52 +01:00
demo Force reload tiles when the tile's flip doesn't match the image 2021-03-22 06:45:26 +00:00
helpers Remove support for IE < 11 (#1863) 2021-03-08 13:33:05 -08:00
lib Merge upstream. 2015-06-08 10:38:16 -04:00
modules more code cleanup 2021-03-17 16:18:49 -07:00
coverage.html Add iiif.js tests to coverage.html 2020-01-15 09:50:31 +01:00
test.html Add some unit tests for the handling of different IIIF versions 2020-01-06 13:42:32 +01:00