VectorKeyframeTrack.js 725 B

123456789101112131415161718192021222324252627282930313233
  1. import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
  2. import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
  3. /**
  4. *
  5. * A Track of vectored keyframe values.
  6. *
  7. *
  8. * @author Ben Houston / http://clara.io/
  9. * @author David Sarno / http://lighthaus.us/
  10. * @author tschw
  11. */
  12. function VectorKeyframeTrack( name, times, values, interpolation ) {
  13. KeyframeTrackConstructor.call( this, name, times, values, interpolation );
  14. }
  15. VectorKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrackPrototype ), {
  16. constructor: VectorKeyframeTrack,
  17. ValueTypeName: 'vector'
  18. // ValueBufferType is inherited
  19. // DefaultInterpolation is inherited
  20. } );
  21. export { VectorKeyframeTrack };