three
Version:
JavaScript 3D library
32 lines (21 loc) • 691 B
JavaScript
/**
*
* A Track that interpolates Strings
*
*
* @author Ben Houston / http://clara.io/
* @author David Sarno / http://lighthaus.us/
* @author tschw
*/
THREE.StringKeyframeTrack = function ( name, times, values, interpolation ) {
THREE.KeyframeTrack.call( this, name, times, values, interpolation );
};
THREE.StringKeyframeTrack.prototype =
Object.assign( Object.create( THREE.KeyframeTrack.prototype ), {
constructor: THREE.StringKeyframeTrack,
ValueTypeName: 'string',
ValueBufferType: Array,
DefaultInterpolation: THREE.InterpolateDiscrete,
InterpolantFactoryMethodLinear: undefined,
InterpolantFactoryMethodSmooth: undefined
} );