diff --git a/src/rectangle.js b/src/rectangle.js index c6644546..8f255506 100644 --- a/src/rectangle.js +++ b/src/rectangle.js @@ -78,6 +78,11 @@ $.Rect = function(x, y, width, height, degrees) { */ this.height = typeof (height) === "number" ? height : 0; + /** + * The rotation of the rectangle, in degrees. + * @member {Number} degrees + * @memberof OpenSeadragon.Rect# + */ this.degrees = typeof (degrees) === "number" ? degrees : 0; // Normalizes the rectangle. diff --git a/src/viewport.js b/src/viewport.js index 07c941c6..43011914 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -875,6 +875,7 @@ $.Viewport.prototype = { /** * Rotates this viewport to the angle specified. * @function + * @param {Number} degrees The degrees to set the rotation to. * @return {OpenSeadragon.Viewport} Chainable. */ setRotation: function(degrees) {