mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Changelog for #853
This commit is contained in:
parent
cb1318de1f
commit
856f00994b
@ -23,6 +23,7 @@ Viewport.contentAspectY have been removed.
|
|||||||
* Fixed navigator not being rotated when viewport rotation is set in constructor (#840)
|
* 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: 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)
|
* Fixed: with scrollToZoom disabled, the viewer caused page scrolling to slow down (#858)
|
||||||
|
* Added Viewer.getOverlayById and Overlay.getBounds functions (#853)
|
||||||
|
|
||||||
2.1.0:
|
2.1.0:
|
||||||
|
|
||||||
|
@ -313,15 +313,14 @@
|
|||||||
placement :
|
placement :
|
||||||
$.OverlayPlacement.TOP_LEFT;
|
$.OverlayPlacement.TOP_LEFT;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @function
|
* @function
|
||||||
* @returns {OpenSeadragon.Rect} overlay bounds
|
* @returns {OpenSeadragon.Rect} overlay bounds
|
||||||
*/
|
*/
|
||||||
getBounds: function() {
|
getBounds: function() {
|
||||||
|
|
||||||
return this.bounds.clone();
|
return this.bounds.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}( OpenSeadragon ));
|
}( OpenSeadragon ));
|
||||||
|
@ -1944,28 +1944,28 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
this.raiseEvent( 'clear-overlay', {} );
|
this.raiseEvent( 'clear-overlay', {} );
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds an overlay identified by the reference element or element id
|
* Finds an overlay identified by the reference element or element id
|
||||||
* and returns it as an object, return null if not found.
|
* and returns it as an object, return null if not found.
|
||||||
* @method
|
* @method
|
||||||
* @param {Element|String} element - A reference to the element or an
|
* @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.
|
* @return {OpenSeadragon.Overlay} the matching overlay or null if none found.
|
||||||
*/
|
*/
|
||||||
getOverlayById: function( element ) {
|
getOverlayById: function( element ) {
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
element = $.getElement( element );
|
element = $.getElement( element );
|
||||||
i = getOverlayIndex( this.currentOverlays, element );
|
i = getOverlayIndex( this.currentOverlays, element );
|
||||||
|
|
||||||
if (i>=0) {
|
if (i>=0) {
|
||||||
return this.currentOverlays[i];
|
return this.currentOverlays[i];
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the sequence buttons.
|
* Updates the sequence buttons.
|
||||||
* @function OpenSeadragon.Viewer.prototype._updateSequenceButtons
|
* @function OpenSeadragon.Viewer.prototype._updateSequenceButtons
|
||||||
|
Loading…
Reference in New Issue
Block a user