mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge pull request #1698 from alvaromartmart/master
Added missing Rect.degrees and Viewport.setRotation(degrees) documentation
This commit is contained in:
commit
bb559d064d
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user