@cccode/fxr - v22.0.0

    Class HermiteProperty<T>

    Type Parameters

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    function: Hermite
    keyframes: IHermiteKeyframe<T>[] = []
    loop: boolean = false
    modifiers: IModifier<T>[]
    valueType: T

    Accessors

    • get componentCount(): 1 | 2 | 3 | 4

      Returns 1 | 2 | 3 | 4

    • get duration(): number

      Returns number

    • set duration(value: number): void

      Parameters

      • value: number

      Returns void

    • get fieldCount(): number

      Returns number

    Methods

    • Returns an equal property that works with the given game.

      If the property has multiple modifiers, there is a chance that the output of this method will not be perfectly equal, but it should still be close.

      Parameters

      • game: Game

        The game to ensure that the property works with.

      Returns Property<T, Hermite>

    • Creates a new sequence property that smoothly transitions from one value to another using an easing function that starts slowly, speeds up towards the midpoint, and then slows down towards the end.

      This is very similar to the ease keyword in CSS.

      Type Parameters

      Parameters

      • loop: boolean

        Controls whether the animation should loop or not.

      • duration: number

        The duration of the animation.

      • startValue: TypeMap.PropertyValue[T]

        The value at the start of the animation.

      • endValue: TypeMap.PropertyValue[T]

        The value at the end of the animation.

      Returns HermiteProperty<T>

    • Creates a new sequence property that smoothly transitions from one value to another using an easing function that starts slowly, speeds up towards the midpoint, and then slows down towards the end.

      This is very similar to the ease-in-out keyword in CSS.

      Type Parameters

      Parameters

      • loop: boolean

        Controls whether the animation should loop or not.

      • duration: number

        The duration of the animation.

      • startValue: TypeMap.PropertyValue[T]

        The value at the start of the animation.

      • endValue: TypeMap.PropertyValue[T]

        The value at the end of the animation.

      Returns HermiteProperty<T>

    MMNEPVFCICPMFPCPTTAAATR