From ef297a2c2cacb85e46c51245842513390ab618c2 Mon Sep 17 00:00:00 2001 From: Tammy DiPrima Date: Tue, 22 Jun 2021 12:32:59 -0400 Subject: [PATCH 1/2] Reference globalCompositeOperation doc Fixes openseadragon/openseadragon#1994 --- src/openseadragon.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 01cfc864..cf4331d8 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -195,8 +195,9 @@ * * @property {String} [compositeOperation=null] * Valid values are 'source-over', 'source-atop', 'source-in', 'source-out', - * 'destination-over', 'destination-atop', 'destination-in', - * 'destination-out', 'lighter', 'copy' or 'xor' + * 'destination-over', 'destination-atop', 'destination-in', 'destination-out', + * 'lighter', 'destination', 'copy', 'xor', etc. + * For complete list of modes, please @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation/ globalCompositeOperation} * * @property {Boolean} [imageSmoothingEnabled=true] * Image smoothing for canvas rendering (only if canvas is used). Note: Ignored From 1ca9b161583dc2f7bdfb97214e644b428c56f503 Mon Sep 17 00:00:00 2001 From: Tammy DiPrima Date: Tue, 22 Jun 2021 14:52:06 -0400 Subject: [PATCH 2/2] correction difference; not destination --- src/openseadragon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index cf4331d8..d7362ae2 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -196,7 +196,7 @@ * @property {String} [compositeOperation=null] * Valid values are 'source-over', 'source-atop', 'source-in', 'source-out', * 'destination-over', 'destination-atop', 'destination-in', 'destination-out', - * 'lighter', 'destination', 'copy', 'xor', etc. + * 'lighter', 'difference', 'copy', 'xor', etc. * For complete list of modes, please @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation/ globalCompositeOperation} * * @property {Boolean} [imageSmoothingEnabled=true]