code: 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();
      }
docs: 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