Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ticker

Hierarchy

  • Ticker

Index

Properties

FPS

FPS: number

Protected _head

Protected _maxElapsedMS

_maxElapsedMS: number

Protected _requestId

_requestId: number | null

Protected _tick

_tick: function

Type declaration

    • (time: number): void
    • Parameters

      • time: number

      Returns void

autoStart

autoStart: boolean

deltaTime

deltaTime: number

elapsedMS

elapsedMS: number

lastTime

lastTime: number

minFPS

minFPS: number

speed

speed: number

started

started: boolean

Methods

Protected _addListener

  • Parameters

    Returns Ticker

Protected _cancelIfNeeded

  • _cancelIfNeeded(): void
  • Returns void

Protected _requestIfNeeded

  • _requestIfNeeded(): void
  • Returns void

Protected _startIfPossible

  • _startIfPossible(): void
  • Returns void

add

  • add(fn: function, context?: any, priority?: number): Ticker
  • Parameters

    • fn: function
        • (deltaTime: number): void
        • Parameters

          • deltaTime: number

          Returns void

    • Optional context: any
    • Optional priority: number

    Returns Ticker

addOnce

  • addOnce(fn: function, context?: any, priority?: number): Ticker
  • Parameters

    • fn: function
        • (deltaTime: number): void
        • Parameters

          • deltaTime: number

          Returns void

    • Optional context: any
    • Optional priority: number

    Returns Ticker

destroy

  • destroy(): void
  • Returns void

remove

  • remove(fn: Function, context?: any, priority?: number): Ticker
  • Parameters

    • fn: Function
    • Optional context: any
    • Optional priority: number

    Returns Ticker

start

  • start(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(currentTime?: number): void
  • Parameters

    • Optional currentTime: number

    Returns void

Generated using TypeDoc