From a8dba2a494adc11b49ed9302a39745b829114f1f Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 12 Apr 2017 16:12:47 -0600 Subject: [PATCH] Documents the return type for imageToViewportRectangle --- src/viewport.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewport.js b/src/viewport.js index 7d5418bd..d34ab539 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -1208,6 +1208,7 @@ $.Viewport.prototype = { * in image coordinate system. * @param {Number} [pixelWidth] the width 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) { var rect = imageX;