Options
All
  • Public
  • Public/Protected
  • All
Menu

A type of ping that produces an arrow pointing in a given direction.

property

{PIXI.Point} origin The canvas co-ordinates of the origin of the ping. This becomes the arrow's tip.

property

{PulsePingOptions} [options] Additional options to configure the ping animation.

property

{number} [options.rotation=0] The angle of the arrow in radians.

Hierarchy

Index

Constructors

  • new ArrowPing(origin: any, __namedParameters?: { rotation: number }): ArrowPing

Properties

rotation: any
_color2: number | utils.Color
_r: number
_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