function adjustOriginByMovingPointer(pointer, shape) {
  const origin = shape.startPoint;
  const angle = -shape.angle;
  const originPositions = getPositionsOfRotatedOrigin(origin, pointer, angle);
  const { originX, originY } = originPositions;

  shape.setPositionByOrigin(origin, originX, originY);
  shape.setCoords();
}
Adjust the origin of shape by the moving pointer value
@param {{x: number, y: number}} pointer - Pointer value
@param {fabric.Object} shape - Shape object
@ignore