mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
simplify the checks on compositeOperation
This commit is contained in:
parent
91ecd80a4f
commit
69cce5770c
@ -384,7 +384,7 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
|
||||
|
||||
this.context.save();
|
||||
this.context.globalAlpha = opacity;
|
||||
if (compositeOperation !== undefined && compositeOperation !== null) {
|
||||
if (compositeOperation) {
|
||||
this.context.globalCompositeOperation = compositeOperation;
|
||||
}
|
||||
this.context.drawImage(
|
||||
|
@ -1330,7 +1330,7 @@ function drawTiles( tiledImage, lastDrawn ) {
|
||||
return;
|
||||
}
|
||||
var useSketch = tiledImage.opacity < 1 ||
|
||||
(tiledImage.compositeOperation !== null && tiledImage.compositeOperation !== 'source-over');
|
||||
(tiledImage.compositeOperation && tiledImage.compositeOperation !== 'source-over');
|
||||
|
||||
var sketchScale;
|
||||
var sketchTranslate;
|
||||
|
Loading…
Reference in New Issue
Block a user