computeRotate method

num computeRotate(
  1. Point newPoint
)

Compute the new angle given a point. If the Shift key is pressed, this method ignores the #snapAngleMultiple and #snapAngleEpsilon.

If the angle is close (by #snapAngleEpsilon degrees) to a multiple of #snapAngleMultiple degrees, make it exactly that multiple.

This method is called by both #doMouseMove and #doMouseUp. 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 in document coordinates. @return {number} the new angle, in degrees.

Implementation

_i2.num computeRotate(_i3.Point newPoint) => _i4.callMethod(
      this,
      'computeRotate',
      [newPoint],
    );