17 lines
258 B
JavaScript
17 lines
258 B
JavaScript
|
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 {
|
||
|
initRange as i
|
||
|
};
|