Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a command timeline.

A command timeline contains all commands of the same type that occur in a sprite.

Type Parameters

  • T

Hierarchy

  • CommandTimeline

Implements

Index

Constructors

Properties

The parameter command type of the command timeline.

The type of the command timeline.

Accessors

  • get endTime(): number
  • get endValue(): null | T
  • get hasCommands(): boolean
  • get startTime(): number
  • get startValue(): null | T

Methods

  • add(easing: Easing, startTime: number, endTime: number, startValue: T, endValue: T): void
  • Adds a command to this command timeline.

    Parameters

    • easing: Easing

      The easing to apply.

    • startTime: number

      The start time of the command.

    • endTime: number

      The end time of the command.

    • startValue: T

      The start value of the command.

    • endValue: T

      The end value of the command.

    Returns void

Generated using TypeDoc