mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
updated rotateBy
This commit is contained in:
parent
7f2725ba49
commit
2f174ad552
@ -1026,14 +1026,14 @@ $.Viewport.prototype = {
|
|||||||
* Rotates this viewport by the angle specified.
|
* Rotates this viewport by the angle specified.
|
||||||
* @function
|
* @function
|
||||||
* @param {Number} degrees The degrees by which to rotate the viewport.
|
* @param {Number} degrees The degrees by which to rotate the viewport.
|
||||||
* @param {Boolean} [immediately=false] Whether to animate to the new angle
|
|
||||||
* or rotate immediately.
|
|
||||||
* @param {OpenSeadragon.Point} [pivot] (Optional) point in viewport coordinates
|
* @param {OpenSeadragon.Point} [pivot] (Optional) point in viewport coordinates
|
||||||
* around which the rotation should be performed. Defaults to the center of the viewport.
|
* around which the rotation should be performed. Defaults to the center of the viewport.
|
||||||
|
* * @param {Boolean} [immediately=false] Whether to animate to the new angle
|
||||||
|
* or rotate immediately.
|
||||||
* @returns {OpenSeadragon.Viewport} Chainable.
|
* @returns {OpenSeadragon.Viewport} Chainable.
|
||||||
*/
|
*/
|
||||||
rotateBy: function(degrees, pivot, immediately){
|
rotateBy: function(degrees, pivot, immediately){
|
||||||
return this.setRotation(this.degreesSpring.target.value + degrees, immediately, pivot);
|
return this.rotateTo(this.degreesSpring.target.value + degrees, pivot, immediately);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user