MCPcopy Create free account
hub / github.com/breck7/scroll / initInterpolator

Function initInterpolator

external/.d3.js:14781–14797  ·  view source on GitHub ↗
(domain, interpolator)

Source from the content-addressed store, hash-verified

14779}
14780
14781function initInterpolator(domain, interpolator) {
14782 switch (arguments.length) {
14783 case 0: break;
14784 case 1: {
14785 if (typeof domain === "function") this.interpolator(domain);
14786 else this.range(domain);
14787 break;
14788 }
14789 default: {
14790 this.domain(domain);
14791 if (typeof interpolator === "function") this.interpolator(interpolator);
14792 else this.range(interpolator);
14793 break;
14794 }
14795 }
14796 return this;
14797}
14798
14799const implicit = Symbol("implicit");
14800

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected