From d4467477ad63c7022ba3bdf5060a5282f3a5fcc9 Mon Sep 17 00:00:00 2001 From: Robert Hickman Date: Mon, 19 Aug 2013 16:27:00 -0600 Subject: [PATCH] More rotation documentation. --- src/viewport.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/viewport.js b/src/viewport.js index e79492e5..4d994fd9 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -571,8 +571,10 @@ $.Viewport.prototype = { }, /** - * Currently only supports 90 degree rotation. - * Currently only works with canvas. + * Currently only 90 degree rotation is supported and it only works + * with the canvas. Additionally, the navigator does not rotate yet, + * debug mode doesn't rotate yet, and overlay rotation is only + * partially supported. * @function * @name OpenSeadragon.Viewport.prototype.setRotation * @return {OpenSeadragon.Viewport} Chainable. @@ -587,9 +589,8 @@ $.Viewport.prototype = { throw new Error('Currently only 0, 90, 180, and 270 degrees are supported.'); } this.degrees = degrees; - if( this.viewer ) { - this.viewer.drawer.update(); - } + this.viewer.drawer.update(); + return this; },