src/tiledimage.js
function(degrees, immediately) {
        if (this._degreesSpring.target.value === degrees &&
            this._degreesSpring.isAtTargetValue()) {
            return;
        }
        if (immediately) {
            this._degreesSpring.resetTo(degrees);
        } else {
            this._degreesSpring.springTo(degrees);
        }
        this._needsDraw = true;
        this._raiseBoundsChange();
    }
function(degrees, immediately) {
        if (this._degreesSpring.target.value === degrees &&
            this._degreesSpring.isAtTargetValue()) {
            return;
        }
        if (immediately) {
            this._degreesSpring.resetTo(degrees);
        } else {
            this._degreesSpring.springTo(degrees);
        }
        this._needsDraw = true;
        this._raiseBoundsChange();
    }
function ( degrees , immediately ) { if ( this . _degreesSpring . target . value === degrees && this . _degreesSpring . isAtTargetValue ( ) ) { return ; } if ( immediately ) { this . _degreesSpring . resetTo ( degrees ) ; } else { this . _degreesSpring . springTo ( degrees ) ; } this . _needsDraw = true ; this . _raiseBoundsChange ( ) ; }
Set the current rotation of this tiled image in degrees.
@param {Number} degrees the rotation in degrees.
@param {Boolean} [immediately=false] Whether to animate to the new angle
or rotate immediately.
@fires OpenSeadragon.TiledImage.event:bounds-change
Set the current rotation of this tiled image in degrees .