Download node_modules/d3-scale/src/init.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-scale/src/init.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-scale/src/init.js
-
curl -L -o init.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-scale/src/init.js
642 Bytes
| export function initRange(domain, range) { | |
| switch (arguments.length) { | |
| case 0: break; | |
| case 1: this.range(domain); break; | |
| default: this.range(range).domain(domain); break; | |
| } | |
| return this; | |
| } | |
| export function initInterpolator(domain, interpolator) { | |
| switch (arguments.length) { | |
| case 0: break; | |
| case 1: { | |
| if (typeof domain === "function") this.interpolator(domain); | |
| else this.range(domain); | |
| break; | |
| } | |
| default: { | |
| this.domain(domain); | |
| if (typeof interpolator === "function") this.interpolator(interpolator); | |
| else this.range(interpolator); | |
| break; | |
| } | |
| } | |
| return this; | |
| } | |