mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Merge pull request #1162 from acorncom/patch-1
Documents the return type for imageToViewportRectangle
This commit is contained in:
commit
e771911058
@ -1208,6 +1208,7 @@ $.Viewport.prototype = {
|
|||||||
* in image coordinate system.
|
* in image coordinate system.
|
||||||
* @param {Number} [pixelWidth] the width in pixel of the rectangle.
|
* @param {Number} [pixelWidth] the width in pixel of the rectangle.
|
||||||
* @param {Number} [pixelHeight] the height in pixel of the rectangle.
|
* @param {Number} [pixelHeight] the height in pixel of the rectangle.
|
||||||
|
* @returns {OpenSeadragon.Rect} This image's bounds in viewport coordinates
|
||||||
*/
|
*/
|
||||||
imageToViewportRectangle: function(imageX, imageY, pixelWidth, pixelHeight) {
|
imageToViewportRectangle: function(imageX, imageY, pixelWidth, pixelHeight) {
|
||||||
var rect = imageX;
|
var rect = imageX;
|
||||||
|
Loading…
Reference in New Issue
Block a user