mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
apply pixelDensityRatio after flip
This commit is contained in:
parent
3adb001b9f
commit
0c2c506d88
@ -1929,14 +1929,15 @@ function drawTiles( tiledImage, lastDrawn ) {
|
|||||||
// sketch canvas we are going to use for performance reasons.
|
// sketch canvas we are going to use for performance reasons.
|
||||||
bounds = tiledImage.viewport.viewportToViewerElementRectangle(
|
bounds = tiledImage.viewport.viewportToViewerElementRectangle(
|
||||||
tiledImage.getClippedBounds(true))
|
tiledImage.getClippedBounds(true))
|
||||||
.getIntegerBoundingBox()
|
.getIntegerBoundingBox();
|
||||||
.times($.pixelDensityRatio);
|
|
||||||
|
|
||||||
if(tiledImage._drawer.viewer.viewport.getFlip()) {
|
if(tiledImage._drawer.viewer.viewport.getFlip()) {
|
||||||
if (tiledImage.viewport.degrees !== 0 || tiledImage.getRotation(true) % 360 !== 0){
|
if (tiledImage.viewport.degrees !== 0 || tiledImage.getRotation(true) % 360 !== 0){
|
||||||
bounds.x = tiledImage._drawer.viewer.container.clientWidth - (bounds.x + bounds.width);
|
bounds.x = tiledImage._drawer.viewer.container.clientWidth - (bounds.x + bounds.width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bounds = bounds.times($.pixelDensityRatio);
|
||||||
}
|
}
|
||||||
tiledImage._drawer._clear(true, bounds);
|
tiledImage._drawer._clear(true, bounds);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user