mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
More rotation documentation.
This commit is contained in:
parent
767c897e7f
commit
d4467477ad
@ -571,8 +571,10 @@ $.Viewport.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Currently only supports 90 degree rotation.
|
* Currently only 90 degree rotation is supported and it only works
|
||||||
* Currently only works with canvas.
|
* with the canvas. Additionally, the navigator does not rotate yet,
|
||||||
|
* debug mode doesn't rotate yet, and overlay rotation is only
|
||||||
|
* partially supported.
|
||||||
* @function
|
* @function
|
||||||
* @name OpenSeadragon.Viewport.prototype.setRotation
|
* @name OpenSeadragon.Viewport.prototype.setRotation
|
||||||
* @return {OpenSeadragon.Viewport} Chainable.
|
* @return {OpenSeadragon.Viewport} Chainable.
|
||||||
@ -587,9 +589,8 @@ $.Viewport.prototype = {
|
|||||||
throw new Error('Currently only 0, 90, 180, and 270 degrees are supported.');
|
throw new Error('Currently only 0, 90, 180, and 270 degrees are supported.');
|
||||||
}
|
}
|
||||||
this.degrees = degrees;
|
this.degrees = degrees;
|
||||||
if( this.viewer ) {
|
this.viewer.drawer.update();
|
||||||
this.viewer.drawer.update();
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user