Skip to main content

KeyframeTrack

StringKeyframeTrack

A Track of string keyframe values.

Constructor

StringKeyframeTrack

function StringKeyframeTrack( name: String, times: Array, values: Array ):
void;

name - (required) identifier for the KeyframeTrack.
times - (required) array of keyframe times.
values - values for the keyframes at the times specified.
interpolation - the type of interpolation to use. See Animation Constants for possible values. Default is InterpolateDiscrete.

Properties

See KeyframeTrack for inherited properties.

DefaultInterpolation

DefaultInterpolation: Constant;  

The default interpolation type to use, InterpolateDiscrete.

ValueBufferType

ValueBufferType: Array;  

A normal Array (no Float32Array in this case, unlike ValueBufferType of KeyframeTrack).

ValueTypeName

ValueTypeName: String;  

String 'string'.

Methods

See KeyframeTrack for inherited methods.

InterpolantFactoryMethodLinear

function InterpolantFactoryMethodLinear( ): undefined;  

The value of this method here is 'undefined', as it does not make sense for discrete properties.

InterpolantFactoryMethodSmooth

function InterpolantFactoryMethodSmooth( ): undefined;  

The value of this method here is 'undefined', as it does not make sense for discrete properties.

Source

src/animation/tracks/StringKeyframeTrack.js