Options
All
  • Public
  • Public/Protected
  • All
Menu

A type of ping that produces a pulse warning sign animation.

param origin

The canvas co-ordinates of the origin of the ping.

param [options]

Additional options to configure the ping animation.

Hierarchy

Index

Constructors

  • new AlertPing(origin: any, __namedParameters?: { color: string }): AlertPing

Properties

_r: any
_color2: number | utils.Color
_r0: number
_timeSlice: number
_timeSlice2: number
_timeSlice15: number
_timeSlice25: number
_timeSlice45: number
filters: any[]
x: any
y: any
options: any
_color: number | utils.Color

Methods

  • _drawShape(g: any, color: any, alpha: any, size: any): void
  • Draw the shape for this ping.

    Parameters

    • g: any

      The graphics object to draw to.

    • color: any

      The color of the shape.

    • alpha: any

      The alpha of the shape.

    • size: any

      The size of the shape to draw.

    Returns void

  • animate(): Promise<boolean>
  • Start the ping animation.

    Returns Promise<boolean>

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

  • _animateFrame(dt: any, animation: any): void
  • On each tick, advance the animation.

    Parameters

    • dt: any

      The number of ms that elapsed since the previous frame.

    • animation: any

      The animation state.

    Returns void

  • destroy(options?: {}): void