A class to manage a user ping on the canvas.

Param: origin

The canvas coordinates of the origin of the ping.

Param: options

Additional options to configure the ping animation.

Hierarchy (view full)

Methods

  • Parameters

    • options: {} = {}

      Returns void

      Inherit Doc

    • Start the ping animation.

      Returns Promise<boolean>

      Returns true if the animation ran to completion, false otherwise.

    • Protected

      On each tick, advance the animation.

      Parameters

      • dt: number

        The number of ms that elapsed since the previous frame.

      • animation: CanvasAnimationData

        The animation state.

      Returns void