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