mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +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;
|
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;
|
this.degrees = typeof (degrees) === "number" ? degrees : 0;
|
||||||
|
|
||||||
// Normalizes the rectangle.
|
// Normalizes the rectangle.
|
||||||
|
@ -875,6 +875,7 @@ $.Viewport.prototype = {
|
|||||||
/**
|
/**
|
||||||
* Rotates this viewport to the angle specified.
|
* Rotates this viewport to the angle specified.
|
||||||
* @function
|
* @function
|
||||||
|
* @param {Number} degrees The degrees to set the rotation to.
|
||||||
* @return {OpenSeadragon.Viewport} Chainable.
|
* @return {OpenSeadragon.Viewport} Chainable.
|
||||||
*/
|
*/
|
||||||
setRotation: function(degrees) {
|
setRotation: function(degrees) {
|
||||||
|
Loading…
Reference in New Issue
Block a user