clean up code added for testing

This commit is contained in:
Tom 2024-02-09 18:16:30 -05:00
parent c734de531f
commit 3f21f84df4
2 changed files with 2 additions and 7 deletions

View File

@ -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;

View File

@ -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;
} }