mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
clean up code added for testing
This commit is contained in:
parent
c734de531f
commit
3f21f84df4
@ -402,9 +402,7 @@ class CanvasDrawer extends OpenSeadragon.DrawerBase{
|
|||||||
|
|
||||||
this._drawRectangle(placeholderRect, fillStyle, useSketch);
|
this._drawRectangle(placeholderRect, fillStyle, useSketch);
|
||||||
}
|
}
|
||||||
if(!window.draw){
|
|
||||||
lastDrawn = [];
|
|
||||||
}
|
|
||||||
var subPixelRoundingRule = determineSubPixelRoundingRule(tiledImage.subPixelRoundingForTransparency);
|
var subPixelRoundingRule = determineSubPixelRoundingRule(tiledImage.subPixelRoundingForTransparency);
|
||||||
|
|
||||||
var shouldRoundPositionAndSize = false;
|
var shouldRoundPositionAndSize = false;
|
||||||
|
@ -242,10 +242,7 @@
|
|||||||
if ( tiledImage.placeholderFillStyle && tiledImage._hasOpaqueTile === false ) {
|
if ( tiledImage.placeholderFillStyle && tiledImage._hasOpaqueTile === false ) {
|
||||||
this._drawPlaceholder(tiledImage);
|
this._drawPlaceholder(tiledImage);
|
||||||
}
|
}
|
||||||
this._drawPlaceholder(tiledImage);
|
|
||||||
if(!window.draw){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(tilesToDraw.length === 0 || tiledImage.getOpacity() === 0){
|
if(tilesToDraw.length === 0 || tiledImage.getOpacity() === 0){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user