Changelog for #853

This commit is contained in:
Ian Gilman 2016-02-23 09:22:53 -08:00
parent cb1318de1f
commit 856f00994b
3 changed files with 7 additions and 7 deletions

View File

@ -23,6 +23,7 @@ Viewport.contentAspectY have been removed.
* Fixed navigator not being rotated when viewport rotation is set in constructor (#840)
* Fixed: Viewer.setMouseNavEnabled wasn't affecting all of the viewer's trackers (#845)
* Fixed: with scrollToZoom disabled, the viewer caused page scrolling to slow down (#858)
* Added Viewer.getOverlayById and Overlay.getBounds functions (#853)
2.1.0:

View File

@ -313,15 +313,14 @@
placement :
$.OverlayPlacement.TOP_LEFT;
},
/**
* @function
* @returns {OpenSeadragon.Rect} overlay bounds
*/
getBounds: function() {
return this.bounds.clone();
}
};
}( OpenSeadragon ));

View File

@ -1950,7 +1950,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
* and returns it as an object, return null if not found.
* @method
* @param {Element|String} element - A reference to the element or an
* element id which represent the overlay content.
* element id which represents the overlay content.
* @return {OpenSeadragon.Overlay} the matching overlay or null if none found.
*/
getOverlayById: function( element ) {
@ -1964,8 +1964,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
} else {
return null;
}
},
/**
* Updates the sequence buttons.
* @function OpenSeadragon.Viewer.prototype._updateSequenceButtons