mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Fix doc and debug message.
This commit is contained in:
parent
81f439d430
commit
cd7bb8a8c4
@ -423,8 +423,8 @@
|
||||
* @returns {OpenSeadragon.Rect} overlay bounds
|
||||
*/
|
||||
getBounds: function(viewport) {
|
||||
$.console.assert(viewport, 'Calling Overlay.getBounds withouth ' +
|
||||
'specifying a viewport is deprecated.');
|
||||
$.console.assert(viewport,
|
||||
'A viewport must now be passed to Overlay.getBounds.');
|
||||
var width = this.width;
|
||||
var height = this.height;
|
||||
if (width === null || height === null) {
|
||||
@ -442,6 +442,7 @@
|
||||
viewport, new $.Rect(location.x, location.y, width, height));
|
||||
},
|
||||
|
||||
// private
|
||||
_adjustBoundsForRotation: function(viewport, bounds) {
|
||||
if (!viewport ||
|
||||
viewport.degrees === 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user