NumberKeyframeTrack.js 567 B

123456789101112131415161718192021222324252627
  1. /**
  2. *
  3. * A Track of numeric keyframe values.
  4. *
  5. * @author Ben Houston / http://clara.io/
  6. * @author David Sarno / http://lighthaus.us/
  7. * @author tschw
  8. */
  9. THREE.NumberKeyframeTrack = function ( name, times, values, interpolation ) {
  10. THREE.KeyframeTrack.call( this, name, times, values, interpolation );
  11. };
  12. THREE.NumberKeyframeTrack.prototype =
  13. Object.assign( Object.create( THREE.KeyframeTrack.prototype ), {
  14. constructor: THREE.NumberKeyframeTrack,
  15. ValueTypeName: 'number',
  16. // ValueBufferType is inherited
  17. // DefaultInterpolation is inherited
  18. } );