Download node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js
-
curl -L -o BooleanKeyframeTrack.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/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 }; | |