Class Command<T>

A storyboard command.

Type Parameters

  • T = any

Constructors

Properties

easing: EasingType

The easing of the storyboard command.

endTime: number

The time at which the command ends.

endValue: T

Ending value of this command.

parameter: ParameterType

Command type.

startTime: number

The time at which the command starts.

startValue: T

Starting value of this command.

Command type.

Accessors

Methods

  • Calculates the progress of this command.

    Parameters

    • time: number

      Current time in milliseconds.

    Returns number

    Progress of this command in range from 0 to 1.

  • Calculates the value of this command at a given progress.

    Parameters

    • progress: number

      Current progress in range from 0 to 1.

    Returns T

    Calculated value.

  • Calculates the value of this command at a given momemnt of time.

    Parameters

    • time: number

      Current time in milliseconds.

    Returns T

    Calculated value.