resize(shape, pointer, isScaling) {
    if (hasCenterOrigin(shape)) {
      adjustOriginByStartPoint(pointer, shape);
      setStartPoint(shape);
    }

    if (isScaling) {
      adjustDimensionOnScaling(shape, pointer);
    } else {
      adjustDimensionOnMouseMove(pointer, shape);
    }

    adjustOriginByMovingPointer(pointer, shape);
  }
Resize the shape
@param {fabric.Object} shape - Shape object
@param {{x: number, y: number}} pointer - Mouse pointer values on canvas
@param {boolean} isScaling - Whether the resizing action is scaling or not