dist/cropper.common.js
function moveTo(x) {
    var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : x;
    var canvasData = this.canvasData;
    var changed = false;
    x = Number(x);
    y = Number(y);

    if (this.ready && !this.disabled && this.options.movable) {
      if (isNumber(x)) {
        canvasData.left = x;
        changed = true;
      }

      if (isNumber(y)) {
        canvasData.top = y;
        changed = true;
      }

      if (changed) {
        this.renderCanvas(true);
      }
    }

    return this;
  }
function moveTo(x) {
    var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : x;
    var canvasData = this.canvasData;
    var changed = false;
    x = Number(x);
    y = Number(y);

    if (this.ready && !this.disabled && this.options.movable) {
      if (isNumber(x)) {
        canvasData.left = x;
        changed = true;
      }

      if (isNumber(y)) {
        canvasData.top = y;
        changed = true;
      }

      if (changed) {
        this.renderCanvas(true);
      }
    }

    return this;
  }
function moveTo ( x ) { var y = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : x ; var canvasData = this . canvasData ; var changed = false ; x = Number ( x ) ; y = Number ( y ) ; if ( this . ready && ! this . disabled && this . options . movable ) { if ( isNumber ( x ) ) { canvasData . left = x ; changed = true ; } if ( isNumber ( y ) ) { canvasData . top = y ; changed = true ; } if ( changed ) { this . renderCanvas ( true ) ; } } return this ; }
Move the canvas to an absolute point
@param {number} x - The x-axis coordinate.
@param {number} [y=x] - The y-axis coordinate.
@returns {Cropper} this
Move the canvas to an absolute point