mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-12 12:59:23 +03:00
Fixed some code
This commit is contained in:
parent
484ae63db1
commit
a2ee81d7cb
@ -265,6 +265,8 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context.save();
|
||||||
|
|
||||||
context.globalAlpha = this.opacity;
|
context.globalAlpha = this.opacity;
|
||||||
|
|
||||||
//if we are supposed to be rendering fully opaque rectangle,
|
//if we are supposed to be rendering fully opaque rectangle,
|
||||||
@ -298,6 +300,8 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{
|
|||||||
size.x * $.pixelDensityRatio,
|
size.x * $.pixelDensityRatio,
|
||||||
size.y * $.pixelDensityRatio
|
size.y * $.pixelDensityRatio
|
||||||
);
|
);
|
||||||
|
|
||||||
|
context.restore();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1152,7 +1152,7 @@ function blendTile( tiledImage, tile, x, y, level, levelOpacity, currentTime ){
|
|||||||
|
|
||||||
if ( opacity == 1 ) {
|
if ( opacity == 1 ) {
|
||||||
setCoverage( tiledImage.coverage, level, x, y, true );
|
setCoverage( tiledImage.coverage, level, x, y, true );
|
||||||
this._hasOpaqueTile = true;
|
tiledImage._hasOpaqueTile = true;
|
||||||
} else if ( deltaTime < blendTimeMillis ) {
|
} else if ( deltaTime < blendTimeMillis ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1301,7 +1301,7 @@ function drawTiles( tiledImage, lastDrawn ) {
|
|||||||
usedClip = true;
|
usedClip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( tiledImage.placeholderFillStyle && this._hasOpaqueTile === false ) {
|
if ( tiledImage.placeholderFillStyle && tiledImage._hasOpaqueTile === false ) {
|
||||||
var placeholderRect = tiledImage._drawer.viewportToDrawerRectangle(tiledImage.getBounds(true));
|
var placeholderRect = tiledImage._drawer.viewportToDrawerRectangle(tiledImage.getBounds(true));
|
||||||
|
|
||||||
var fillStyle = null;
|
var fillStyle = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user