mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Tidy up the tile/image flip check
Don't need double negation and brackets here.
This commit is contained in:
parent
7552806a47
commit
409620fa38
@ -1500,7 +1500,7 @@ function getTile(
|
|||||||
tilesMatrix[ level ][ x ] = {};
|
tilesMatrix[ level ][ x ] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !tilesMatrix[ level ][ x ][ y ] || ((!!tilesMatrix[ level ][ x ][ y ].flipped) !== (!!tiledImage.flipped)) ) {
|
if ( !tilesMatrix[ level ][ x ][ y ] || !tilesMatrix[ level ][ x ][ y ].flipped !== !tiledImage.flipped ) {
|
||||||
xMod = ( numTiles.x + ( x % numTiles.x ) ) % numTiles.x;
|
xMod = ( numTiles.x + ( x % numTiles.x ) ) % numTiles.x;
|
||||||
yMod = ( numTiles.y + ( y % numTiles.y ) ) % numTiles.y;
|
yMod = ( numTiles.y + ( y % numTiles.y ) ) % numTiles.y;
|
||||||
bounds = tiledImage.getTileBounds( level, x, y );
|
bounds = tiledImage.getTileBounds( level, x, y );
|
||||||
|
Loading…
Reference in New Issue
Block a user