Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • TState

  • TData

Hierarchy

  • AnimationState

Index

Constructors

constructor

  • Parameters

    • context: CanvasRenderingContext2D | CanvasRenderingContext2D[]
    • target: AnimationTarget
    • duration: number
    • Default value options: Readonly<AnimationStateOptions<TState, TData>> = {}

    Returns AnimationState

Properties

Private _finishEventWasTriggered

_finishEventWasTriggered: boolean = false

contexts

contexts: CanvasRenderingContext2D[]

duration

duration: number

executed

executed: boolean = false

options

options: Readonly<AnimationStateOptions<TState, TData>>

Private startTime

startTime: number = performance.now()

Private stepsCount

stepsCount: number

target

Private timePerStep

timePerStep: number

Accessors

currentStep

currentStep:

data

data:

finishEventWasTriggered

finishEventWasTriggered:

from

from:

isFinished

isFinished:

to

to:

Methods

Private applyEasing

  • Parameters

    Returns number

applyToNumber

  • applyToNumber(from: number, to: number, easing?: EasingEffect): number
  • Parameters

    • from: number
    • to: number
    • Default value easing: EasingEffect = EasingEffect.linear

    Returns number

applyToVBounds

cancel

  • cancel(): void
  • Returns void

finish

  • finish(): void
  • Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc