From 6f3b0a6d75e929166d29583dac30b0011cf75604 Mon Sep 17 00:00:00 2001 From: Robert Saric Date: Sat, 3 Jun 2017 16:10:57 +0200 Subject: [PATCH 01/19] fix for #1165 (Reference strip not updated for initially set page) --- src/viewer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index ded3ef4d..1fb5027e 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -530,6 +530,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, prefixUrl: this.prefixUrl, viewer: this }); + + this.referenceStrip.setFocus( this._sequenceIndex ); } } From 265625df7509380a687c7d83aee50c44a1cd4a23 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 5 Jun 2017 16:37:02 -0700 Subject: [PATCH 02/19] Changelog for #1208 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index edee4454..39c24d5e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -45,6 +45,7 @@ OPENSEADRAGON CHANGELOG * Fixed: setItemIndex method not working with navigator inside "open" event (#1201) * The navigator now picks up opacity and compositeOperation changes (#1203) * New events for opacity and compositeOperation changes (#1203) +* Fixed: The reference strip didn't show the initial page if it wasn't the first page (#1208) 2.2.1: From a783edc76f797a684ec894f580e5f940207007ca Mon Sep 17 00:00:00 2001 From: Robert Saric Date: Tue, 6 Jun 2017 18:21:14 +0200 Subject: [PATCH 03/19] fix for #1210 (Dinamically show ReferenceStrip) --- src/viewer.js | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index 1fb5027e..5f693d1f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2132,6 +2132,58 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, */ _cancelPendingImages: function() { this._loadQueue = []; + }, + + /** + * Remove the reference strip. + * @function + * @return {OpenSeadragon.Viewer} Chainable. + */ + removeReferenceStrip: function() { + this.showReferenceStrip = false; + + if (this.sequenceMode) { + if (this.referenceStrip) { + this.referenceStrip.destroy(); + this.referenceStrip = null; + } + } + + return this; + }, + + /** + * Display the reference strip based on the currently set tileSources. + * @function + * @return {OpenSeadragon.Viewer} Chainable. + */ + addReferenceStrip: function() { + this.showReferenceStrip = true; + + if (this.sequenceMode) { + if (this.referenceStrip) { + this.referenceStrip.destroy(); + this.referenceStrip = null; + } + + if (this.tileSources.length && this.tileSources.length > 1) { + this.referenceStrip = new $.ReferenceStrip({ + id: this.referenceStripElement, + position: this.referenceStripPosition, + sizeRatio: this.referenceStripSizeRatio, + scroll: this.referenceStripScroll, + height: this.referenceStripHeight, + width: this.referenceStripWidth, + tileSources: this.tileSources, + prefixUrl: this.prefixUrl, + viewer: this + }); + + this.referenceStrip.setFocus( this._sequenceIndex ); + } + } + + return this; } }); From e4393cc4dc131f92c8785c91dea90be755513b02 Mon Sep 17 00:00:00 2001 From: Sean Nichols Date: Tue, 6 Jun 2017 15:30:09 -0400 Subject: [PATCH 04/19] Use TileSource.getClosestLevel to set TileCache release cutoff --- src/tiledimage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index d705240b..f7080aa7 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1468,8 +1468,7 @@ function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) { } var finish = function() { - var cutoff = Math.ceil( Math.log( - tiledImage.source.getTileWidth(tile.level) ) / Math.log( 2 ) ); + var cutoff = tiledImage.source.getClosestLevel(); setTileLoaded(tiledImage, tile, image, cutoff, tileRequest); }; From d71ceebd726b169237e4d259aab3ddcca888c6a3 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 15 Jun 2017 17:28:04 -0700 Subject: [PATCH 05/19] Fixed issue with transparent images disappearing on Safari --- src/drawer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drawer.js b/src/drawer.js index 4485da98..eed97719 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -426,22 +426,22 @@ $.Drawer.prototype = { this.context.globalCompositeOperation = compositeOperation; } if (bounds) { - // Internet Explorer and Microsoft Edge throw IndexSizeError + // Internet Explorer, Microsoft Edge, and Safari have problems // when you call context.drawImage with negative x or y - // or width or height greater than the canvas width or height respectively + // or x + width or y + height greater than the canvas width or height respectively. if (bounds.x < 0) { bounds.width += bounds.x; bounds.x = 0; } - if (bounds.width > this.canvas.width) { - bounds.width = this.canvas.width; + if (bounds.x + bounds.width > this.canvas.width) { + bounds.width = this.canvas.width - bounds.x; } if (bounds.y < 0) { bounds.height += bounds.y; bounds.y = 0; } - if (bounds.height > this.canvas.height) { - bounds.height = this.canvas.height; + if (bounds.y + bounds.height > this.canvas.height) { + bounds.height = this.canvas.height - bounds.y; } this.context.drawImage( From 319d27f0c07eaea13d14750f118c649c825d03dd Mon Sep 17 00:00:00 2001 From: larissasmith Date: Fri, 16 Jun 2017 14:05:35 -0600 Subject: [PATCH 06/19] Fix image stuck to mouse when right-clicking and left-clicking simultaneously. Mouseup and mousedown events are lost when two buttons are pressed at the same time. Pressing buttons in the order left-button down, right-button down (ignored), left-button up (ignored), right-button up was leaving drag state active. --- src/mousetracker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mousetracker.js b/src/mousetracker.js index 3dbcf595..5887f4aa 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -2879,6 +2879,12 @@ } } + // A primary mouse button may have been released while the non-primary button was down + if (pointsList.contacts > 0 && pointsList.type === 'mouse') { + // Stop tracking the mouse + pointsList.contacts--; + return true; + } return false; } From bfa0ac0137a0cc2b8dbec5d43635cb3b9df69473 Mon Sep 17 00:00:00 2001 From: John Perdue Date: Mon, 19 Jun 2017 21:29:41 +0100 Subject: [PATCH 07/19] Added setDebugMode function to Viewer. Added SetDebugMode tests. Update in respose to PR review. --- src/viewer.js | 16 ++++++++++++++ test/demo/setdebugmode.html | 44 +++++++++++++++++++++++++++++++++++++ test/modules/basic.js | 34 ++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 test/demo/setdebugmode.html diff --git a/src/viewer.js b/src/viewer.js index 1fb5027e..64f9490e 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -860,6 +860,22 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, return this; }, + /** + * Turns debugging mode on or off for this viewer. + * + * @function + * @param {Boolean} true to turn debug on, false to turn debug off. + */ + setDebugMode: function(debugMode){ + + for (var i = 0; i < this.world.getItemCount(); i++) { + this.world.getItemAt(i).debugMode = debugMode; + } + + this.debugMode = debugMode; + this.forceRedraw(); + }, + /** * @function * @return {Boolean} diff --git a/test/demo/setdebugmode.html b/test/demo/setdebugmode.html new file mode 100644 index 00000000..838e62ca --- /dev/null +++ b/test/demo/setdebugmode.html @@ -0,0 +1,44 @@ + + + + + OpenSeadragon Basic Demo + + + + + + +
+ Turn debug mode on and off after viewer has been created. + + +
+
+ + + + diff --git a/test/modules/basic.js b/test/modules/basic.js index 7dc2a9ef..1e630f9b 100644 --- a/test/modules/basic.js +++ b/test/modules/basic.js @@ -424,6 +424,40 @@ } ); + + asyncTest('SetDebugMode', function() { + ok(viewer, 'Viewer exists'); + + var checkImageTilesDebugState = function (expectedState) { + + for (var i = 0; i < viewer.world.getItemCount(); i++) { + if(viewer.world.getItemAt(i).debugMode != expectedState) { + return false; + } + } + return true; + }; + + var openHandler = function(event) { + viewer.removeHandler('open', openHandler); + + //Ensure we start with debug mode turned off + viewer.setDebugMode(false); + ok(checkImageTilesDebugState(false), "All image tiles have debug mode turned off."); + ok(!viewer.debugMode, "Viewer debug mode is turned off."); + + //Turn debug mode on and check that the Viewer and all tiled images are in debug mode. + viewer.setDebugMode(true); + ok(checkImageTilesDebugState(true), "All image tiles have debug mode turned on."); + ok(viewer.debugMode, "Viewer debug mode is turned on."); + + start(); + }; + + viewer.addHandler('open', openHandler); + viewer.open('/test/data/testpattern.dzi'); + }); + test('version object', function() { equal(typeof OpenSeadragon.version.versionStr, "string", "versionStr should be a string"); ok(OpenSeadragon.version.major >= 0, "major should be a positive number"); From 4808d7f54d06f26b5abac37673b9319dfc27e4de Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 20 Jun 2017 10:15:02 -0700 Subject: [PATCH 08/19] Changelog for #1224 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 39c24d5e..0fe01652 100644 --- a/changelog.txt +++ b/changelog.txt @@ -46,6 +46,7 @@ OPENSEADRAGON CHANGELOG * The navigator now picks up opacity and compositeOperation changes (#1203) * New events for opacity and compositeOperation changes (#1203) * Fixed: The reference strip didn't show the initial page if it wasn't the first page (#1208) +* Added support for setting debug mode after the Viewer object has been constructed (#1224) 2.2.1: From 191cf81d6b8f81c6f45e295c67f8cd9e0bad56dc Mon Sep 17 00:00:00 2001 From: John Perdue Date: Tue, 20 Jun 2017 22:30:58 +0100 Subject: [PATCH 09/19] Skip version tests when running coverage. --- test/coverage.html | 5 +++++ test/modules/basic.js | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/test/coverage.html b/test/coverage.html index 7fda4329..36e2e056 100644 --- a/test/coverage.html +++ b/test/coverage.html @@ -10,6 +10,11 @@
+ + + diff --git a/test/modules/basic.js b/test/modules/basic.js index 1e630f9b..4cecce2a 100644 --- a/test/modules/basic.js +++ b/test/modules/basic.js @@ -458,11 +458,13 @@ viewer.open('/test/data/testpattern.dzi'); }); - test('version object', function() { - equal(typeof OpenSeadragon.version.versionStr, "string", "versionStr should be a string"); - ok(OpenSeadragon.version.major >= 0, "major should be a positive number"); - ok(OpenSeadragon.version.minor >= 0, "minor should be a positive number"); - ok(OpenSeadragon.version.revision >= 0, "revision should be a positive number"); - }); - + //Version numbers are injected by the build process, so skip version tests if we are only running code coverage + if(!window.isCoverageTest ){ + test('version object', function() { + equal(typeof OpenSeadragon.version.versionStr, "string", "versionStr should be a string"); + ok(OpenSeadragon.version.major >= 0, "major should be a positive number"); + ok(OpenSeadragon.version.minor >= 0, "minor should be a positive number"); + ok(OpenSeadragon.version.revision >= 0, "revision should be a positive number"); + }); + } })(); From ad206a7738ecf1016a3911df5ecc9d80dc96923b Mon Sep 17 00:00:00 2001 From: larissasmith Date: Tue, 20 Jun 2017 16:35:00 -0600 Subject: [PATCH 10/19] Add reference to github discussion on mouse tracking bug fix. --- src/mousetracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index 5887f4aa..d81f5561 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -2881,7 +2881,7 @@ // A primary mouse button may have been released while the non-primary button was down if (pointsList.contacts > 0 && pointsList.type === 'mouse') { - // Stop tracking the mouse + // Stop tracking the mouse; see https://github.com/openseadragon/openseadragon/pull/1223 pointsList.contacts--; return true; } From 101a734aaf689896161e86224ff367a01a74b124 Mon Sep 17 00:00:00 2001 From: endevea Date: Thu, 22 Jun 2017 13:43:34 +0800 Subject: [PATCH 11/19] process ready items always even if others fail --- .eslintrc.json | 2 +- src/viewer.js | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7e027656..7f71c301 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,7 @@ ], "linebreak-style": [ "error", - "unix" + "windows" ], "quotes": [ "off", diff --git a/src/viewer.js b/src/viewer.js index 64f9490e..46321afd 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1383,11 +1383,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, this._loadQueue.push(myQueueItem); - getTileSourceImplementation( this, options.tileSource, options, function( tileSource ) { - - myQueueItem.tileSource = tileSource; - - // add everybody at the front of the queue that's ready to go + function processReadyItems() { var queueItem, tiledImage, optionsClone; while (_this._loadQueue.length) { queueItem = _this._loadQueue[0]; @@ -1473,9 +1469,20 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }); } } + } + + getTileSourceImplementation( this, options.tileSource, options, function( tileSource ) { + + myQueueItem.tileSource = tileSource; + + // add everybody at the front of the queue that's ready to go + processReadyItems(); }, function( event ) { event.options = options; raiseAddItemFailed(event); + + // add everybody at the front of the queue that's ready to go + processReadyItems(); } ); }, From 74149a97b123efa0e6bc3706f00cdc9d882f142b Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 22 Jun 2017 13:50:59 -0700 Subject: [PATCH 12/19] Changelog for #1223 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 0fe01652..9d4b1379 100644 --- a/changelog.txt +++ b/changelog.txt @@ -47,6 +47,7 @@ OPENSEADRAGON CHANGELOG * New events for opacity and compositeOperation changes (#1203) * Fixed: The reference strip didn't show the initial page if it wasn't the first page (#1208) * Added support for setting debug mode after the Viewer object has been constructed (#1224) +* Fixed: Sometimes the image would stick to the mouse when right-clicking and left-clicking simultaneously (#1223) 2.2.1: From 433752273d17deec52ce5fb5f36ccb57e90e17d8 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 23 Jun 2017 10:42:11 -0700 Subject: [PATCH 13/19] Changelog for #1222 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 9d4b1379..2c11b3b6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -48,6 +48,7 @@ OPENSEADRAGON CHANGELOG * Fixed: The reference strip didn't show the initial page if it wasn't the first page (#1208) * Added support for setting debug mode after the Viewer object has been constructed (#1224) * Fixed: Sometimes the image would stick to the mouse when right-clicking and left-clicking simultaneously (#1223) +* Fixed issue with transparent images sometimes disappearing on Safari (#1222) 2.2.1: From e6438abe8d616a47fac38993fd13239e33c3b0b0 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 23 Jun 2017 11:18:42 -0700 Subject: [PATCH 14/19] Changelog for #1214 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 2c11b3b6..07332f18 100644 --- a/changelog.txt +++ b/changelog.txt @@ -49,6 +49,7 @@ OPENSEADRAGON CHANGELOG * Added support for setting debug mode after the Viewer object has been constructed (#1224) * Fixed: Sometimes the image would stick to the mouse when right-clicking and left-clicking simultaneously (#1223) * Fixed issue with transparent images sometimes disappearing on Safari (#1222) +* Better calculation for TileCache release cutoff (#1214) 2.2.1: From 4cb9dead8956915f4e51d86dbeca5ca133f7345b Mon Sep 17 00:00:00 2001 From: endevea Date: Sat, 24 Jun 2017 16:58:33 +0800 Subject: [PATCH 15/19] Reverted eslintrc rule to unix cflf --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7f71c301..7e027656 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,7 @@ ], "linebreak-style": [ "error", - "windows" + "unix" ], "quotes": [ "off", From ec7e5e541902e86d8218668f826f40bd489f1e2f Mon Sep 17 00:00:00 2001 From: Robert Saric Date: Sat, 24 Jun 2017 17:58:19 +0200 Subject: [PATCH 16/19] fix for #1210 (Dinamically show ReferenceStrip) additional changes --- src/viewer.js | 40 +++++++++++----------------------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 5f693d1f..e6a630ee 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -504,10 +504,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, } if (this.sequenceMode && $.isArray(tileSources)) { - if (this.referenceStrip) { - this.referenceStrip.destroy(); - this.referenceStrip = null; - } + this.removeReferenceStrip(); if (typeof initialPage != 'undefined' && !isNaN(initialPage)) { this.initialPage = initialPage; @@ -519,19 +516,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, this.open(this.tileSources[this._sequenceIndex]); if ( this.showReferenceStrip ){ - this.referenceStrip = new $.ReferenceStrip({ - id: this.referenceStripElement, - position: this.referenceStripPosition, - sizeRatio: this.referenceStripSizeRatio, - scroll: this.referenceStripScroll, - height: this.referenceStripHeight, - width: this.referenceStripWidth, - tileSources: this.tileSources, - prefixUrl: this.prefixUrl, - viewer: this - }); - - this.referenceStrip.setFocus( this._sequenceIndex ); + this.addReferenceStrip(); } } @@ -2136,20 +2121,18 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, /** * Remove the reference strip. + * @param {Boolean} hide - Disables automatic showing of the reference strip in the future until manually re-enabled. * @function - * @return {OpenSeadragon.Viewer} Chainable. */ - removeReferenceStrip: function() { - this.showReferenceStrip = false; - - if (this.sequenceMode) { - if (this.referenceStrip) { - this.referenceStrip.destroy(); - this.referenceStrip = null; - } + removeReferenceStrip: function(hide) { + if (hide) { + this.showReferenceStrip = false; } - return this; + if (this.referenceStrip) { + this.referenceStrip.destroy(); + this.referenceStrip = null; + } }, /** @@ -2162,8 +2145,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, if (this.sequenceMode) { if (this.referenceStrip) { - this.referenceStrip.destroy(); - this.referenceStrip = null; + return this; } if (this.tileSources.length && this.tileSources.length > 1) { From f42322503d74983d850be544c84fd2ba032e39a6 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 30 Jun 2017 11:14:30 -0700 Subject: [PATCH 17/19] Changelog for #1229 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 07332f18..9a23c24a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -50,6 +50,7 @@ OPENSEADRAGON CHANGELOG * Fixed: Sometimes the image would stick to the mouse when right-clicking and left-clicking simultaneously (#1223) * Fixed issue with transparent images sometimes disappearing on Safari (#1222) * Better calculation for TileCache release cutoff (#1214) +* Fixed: One image failing to load could cause the others to never load (#1229) 2.2.1: From 51cf6201cf1a8fe3db343e0dbe5c19683ede219a Mon Sep 17 00:00:00 2001 From: Robert Saric Date: Sat, 1 Jul 2017 09:57:36 +0200 Subject: [PATCH 18/19] fix for #1210 (Dinamically show ReferenceStrip) yet additional changes --- src/viewer.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index e6a630ee..5a3cfa8f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -504,7 +504,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, } if (this.sequenceMode && $.isArray(tileSources)) { - this.removeReferenceStrip(); + if (this.referenceStrip) { + this.referenceStrip.destroy(); + this.referenceStrip = null; + } if (typeof initialPage != 'undefined' && !isNaN(initialPage)) { this.initialPage = initialPage; @@ -2120,14 +2123,11 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }, /** - * Remove the reference strip. - * @param {Boolean} hide - Disables automatic showing of the reference strip in the future until manually re-enabled. + * Removes the reference strip and disables displaying it. * @function */ - removeReferenceStrip: function(hide) { - if (hide) { - this.showReferenceStrip = false; - } + removeReferenceStrip: function() { + this.showReferenceStrip = false; if (this.referenceStrip) { this.referenceStrip.destroy(); @@ -2136,16 +2136,15 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }, /** - * Display the reference strip based on the currently set tileSources. + * Enables and displays the reference strip based on the currently set tileSources. * @function - * @return {OpenSeadragon.Viewer} Chainable. */ addReferenceStrip: function() { this.showReferenceStrip = true; if (this.sequenceMode) { if (this.referenceStrip) { - return this; + return; } if (this.tileSources.length && this.tileSources.length > 1) { @@ -2163,9 +2162,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, this.referenceStrip.setFocus( this._sequenceIndex ); } + } else { + $.console.warn('Attempting to display a reference strip while "sequenceMode" is off.'); } - - return this; } }); From f0a943281b14b737c0735cd3d6e358beab678cb3 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 5 Jul 2017 09:42:10 -0700 Subject: [PATCH 19/19] Changelog for #1213 --- changelog.txt | 1 + src/viewer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index 9a23c24a..8d2e670c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -51,6 +51,7 @@ OPENSEADRAGON CHANGELOG * Fixed issue with transparent images sometimes disappearing on Safari (#1222) * Better calculation for TileCache release cutoff (#1214) * Fixed: One image failing to load could cause the others to never load (#1229) +* Added functions for dynamically adding and removing the reference strip in sequence mode (#1213) 2.2.1: diff --git a/src/viewer.js b/src/viewer.js index 6cbb8846..10e6e4a4 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2160,6 +2160,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, /** * Enables and displays the reference strip based on the currently set tileSources. + * Works only when the Viewer has sequenceMode set to true. * @function */ addReferenceStrip: function() {