Download node_modules/d3-interpolate/src/round.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 122 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/round.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-interpolate/src/round.js
-
curl -L -o round.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/round.js
122 Bytes
| export default function(a, b) { | |
| return a = +a, b = +b, function(t) { | |
| return Math.round(a * (1 - t) + b * t); | |
| }; | |
| } | |