Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AnimationPlayer

Shared interface for [[EndingAnimationPlayer]] and [[PortraitAnimationPlayer]].

Hierarchy

  • AnimationPlayer

Implemented by

Index

Methods

getHeight

  • getHeight(): number

getNextDelay

  • getNextDelay(): number
  • Returns the delay to wait before rendering the next frame.

    Returns number

    The next delay in milliseconds.

getSpeed

  • getSpeed(): number
  • Returns the animation speed in milliseconds per time unit. Default is 50.

    Returns number

    The animation speed in milliseconds per time unit.

getWidth

  • getWidth(): number

next

  • next(): void

reset

  • reset(): void

setSpeed

  • setSpeed(speed: number): void
  • Sets the animation speed in milliseconds per time unit. Default is 50.

    Parameters

    • speed: number

      The animation speed to set.

    Returns void

start

  • start(): void

stop

  • stop(): void

Generated using TypeDoc