setObjectPosition(id, posInfo) {
    const targetObj = this.getObject(id);
    const { x, y, originX, originY } = posInfo;
    if (!targetObj) {
      return false;
    }

    const targetOrigin = targetObj.getPointByOrigin(originX, originY);
    const centerOrigin = targetObj.getPointByOrigin('center', 'center');
    const diffX = centerOrigin.x - targetOrigin.x;
    const diffY = centerOrigin.y - targetOrigin.y;

    targetObj.set({
      left: x + diffX,
      top: y + diffY,
    });

    targetObj.setCoords();

    return true;
  }
Set object position  by originX, originY
@param {number} id - object id
@param {Object} posInfo - position object
 @param {number} posInfo.x - x position
 @param {number} posInfo.y - y position
 @param {string} posInfo.originX - can be 'left', 'center', 'right'
 @param {string} posInfo.originY - can be 'top', 'center', 'bottom'
@returns {boolean} true if target id is valid or false