- itsm/ -> workspace/guardia-itsm/ - manager/ -> workspace/guardia-manager/ - app/ -> workspace/guardia-messenger/ - manual/ -> workspace/guardia-docs/ workspace/zioinfo-web/ unchanged. git mv preserves full commit history. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
642 B
JavaScript
27 lines
642 B
JavaScript
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;
|
|
}
|