code: function(rect) {
          var scale = this._scaleSpring.current.value;
          rect = rect.rotate(-this.getRotation(true), this._getRotationPoint(true));
          return new $.Rect(
              (rect.x - this._xSpring.current.value) / scale,
              (rect.y - this._ySpring.current.value) / scale,
              rect.width / scale,
              rect.height / scale,
              rect.degrees);
      }
docs: private Convert rectangle in viewport coordinates to this tiled image point coordinates (x in [0, 1] and y in [0, aspectRatio])