dist/viewer.common.js
function moveTo(x) {
    var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : x;
    var imageData = this.imageData;


    x = Number(x);
    y = Number(y);

    if (this.viewed && !this.played && this.options.movable) {
      var changed = false;

      if (isNumber(x)) {
        imageData.left = x;
        changed = true;
      }

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

      if (changed) {
        this.renderImage();
      }
    }

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


    x = Number(x);
    y = Number(y);

    if (this.viewed && !this.played && this.options.movable) {
      var changed = false;

      if (isNumber(x)) {
        imageData.left = x;
        changed = true;
      }

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

      if (changed) {
        this.renderImage();
      }
    }

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