Spaces:
Running
Running
Download backend/libs/three/animation/tracks/BooleanKeyframeTrack.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/animation/tracks/BooleanKeyframeTrack.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/animation/tracks/BooleanKeyframeTrack.js
-
curl -L -o BooleanKeyframeTrack.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/animation/tracks/BooleanKeyframeTrack.js
757 Bytes
| import { InterpolateDiscrete } from '../../constants.js'; | |
| import { KeyframeTrack } from '../KeyframeTrack.js'; | |
| /** | |
| * A Track of Boolean keyframe values. | |
| */ | |
| class BooleanKeyframeTrack extends KeyframeTrack {} | |
| BooleanKeyframeTrack.prototype.ValueTypeName = 'bool'; | |
| BooleanKeyframeTrack.prototype.ValueBufferType = Array; | |
| BooleanKeyframeTrack.prototype.DefaultInterpolation = InterpolateDiscrete; | |
| BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear = undefined; | |
| BooleanKeyframeTrack.prototype.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 }; | |