Source: animation/keyframe/VectorKeyframeTrack.js

  1. import { KeyframeTrack } from './KeyframeTrack.js';
  2. /**
  3. * Used for vector property track.
  4. * @constructor
  5. * @memberof zen3d
  6. * @param {zen3d.Object3D} target
  7. * @param {string} propertyPath
  8. * @param {Array} times
  9. * @param {Array} values
  10. * @param {Boolean} interpolant
  11. */
  12. function VectorKeyframeTrack(target, propertyPath, times, values, interpolant) {
  13. KeyframeTrack.call(this, target, propertyPath, times, values, interpolant);
  14. }
  15. VectorKeyframeTrack.prototype = Object.assign(Object.create(KeyframeTrack.prototype), {
  16. constructor: VectorKeyframeTrack,
  17. valueTypeName: 'vector'
  18. });
  19. export { VectorKeyframeTrack };