computeResize method

Rect computeResize(
  1. Point newPoint,
  2. Spot spot,
  3. Size min,
  4. Size max,
  5. Size cell,
  6. bool reshape,
)

Given a Spot in the original bounds of the object being resized and a new Point, compute the new Rect.

This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Point} newPoint a Point in local coordinates. @param {Spot} spot the alignment spot of the handle being dragged. @param {Size} min the result of the call to #computeMinSize. @param {Size} max the result of the call to #computeMaxSize. @param {Size} cell the result of the call to #computeCellSize. @param {boolean} reshape true if the new size may change the aspect ratio from that of the natural bounds of the #adornedObject. @return {Rect} a Rectangle in the #adornedObject's local coordinates, not in document coordinates

Implementation

_i3.Rect computeResize(
  _i3.Point newPoint,
  _i3.Spot spot,
  _i3.Size min,
  _i3.Size max,
  _i3.Size cell,
  _i2.bool reshape,
) =>
    _i4.callMethod(
      this,
      'computeResize',
      [
        newPoint,
        spot,
        min,
        max,
        cell,
        reshape,
      ],
    );