From 29f973029ff2a1f73ea8b0880ec494c35deb5924 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 15 May 2017 10:13:34 -0700 Subject: [PATCH] Changelog for #1196 and doc tweaks --- changelog.txt | 1 + src/viewer.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 47bbb5a7..110d1905 100644 --- a/changelog.txt +++ b/changelog.txt @@ -38,6 +38,7 @@ OPENSEADRAGON CHANGELOG * Added fix for supporting weird filenames that look like JSONs (#1189) * Fixed: zoomTo/zoomBy ignore refPoint if immediately is true (#1184) * Enabled configuration of ImageLoader timeout (#1192) +* Viewer.open() now supports an initialPage argument for sequenceMode (#1196) 2.2.1: diff --git a/src/viewer.js b/src/viewer.js index 6d95515b..ded3ef4d 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -97,7 +97,7 @@ $.Viewer = function( options ) { id: options.id, hash: options.hash || nextHash++, /** - * If sequenceMode is true, display this page initially for the given tileSources. + * Index for page to be shown first next time open() is called (only used in sequenceMode). * @member {Number} initialPage * @memberof OpenSeadragon.Viewer# */ @@ -489,7 +489,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, * A TileSource specifier is anything you could pass as the tileSource property * of the options parameter for {@link OpenSeadragon.Viewer#addTiledImage}. * @param {Number} initialPage - If sequenceMode is true, display this page initially - * for the given tileSources. If specified, will overwrite the existing homonymous option. + * for the given tileSources. If specified, will overwrite the Viewer's existing initialPage property. * @return {OpenSeadragon.Viewer} Chainable. * @fires OpenSeadragon.Viewer.event:open * @fires OpenSeadragon.Viewer.event:open-failed