| 1234567891011121314151617181920212223242526272829303132 |
- import { InterpolateDiscrete } from '../../constants.js';
- import { KeyframeTrack } from '../KeyframeTrack.js';
- /**
- * A Track of Boolean keyframe values.
- */
- function BooleanKeyframeTrack( name, times, values ) {
- KeyframeTrack.call( this, name, times, values );
- }
- BooleanKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), {
- constructor: BooleanKeyframeTrack,
- ValueTypeName: 'bool',
- ValueBufferType: Array,
- DefaultInterpolation: InterpolateDiscrete,
- InterpolantFactoryMethodLinear: undefined,
- InterpolantFactoryMethodSmooth: undefined
- // Note: Actually this track could have a optimized / compressed
- // representation of a single value and a custom interpolant that
- // computes "firstValue ^ isOdd( index )".
- } );
- export { BooleanKeyframeTrack };
|