getObjectPosition(id, originX, originY) {
    const targetObj = this.getObject(id);
    if (!targetObj) {
      return null;
    }

    return targetObj.getPointByOrigin(originX, originY);
  }
Get object position by originX, originY
@param {number} id - object id
@param {string} originX - can be 'left', 'center', 'right'
@param {string} originY - can be 'top', 'center', 'bottom'
@returns {Object} {{x:number, y: number}} position by origin if id is valid, or null