NumberKeyframeTrack.js 617 B

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