Classdesc

Implementation of inertial deceleration for map movement.

Api

Constructors

  • Parameters

    • decay: number

      Rate of decay (must be negative).

    • minVelocity: number

      Minimum velocity (pixels/millisecond).

    • delay: number

      Delay to consider to calculate the kinetic initial values (milliseconds).

    Returns Kinetic

Methods

  • FIXME empty description for jsdoc

    Returns void

  • Returns boolean

    Whether we should do kinetic animation.

  • Returns number

    Angle of the kinetic panning animation (radians).

  • Returns number

    Total distance travelled (pixels).

  • Parameters

    • x: number

      X.

    • y: number

      Y.

    Returns void