source: node_modules/victory-vendor/lib-vendor/d3-scale/src/init.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 830 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.initInterpolator = initInterpolator;
7exports.initRange = initRange;
8function initRange(domain, range) {
9 switch (arguments.length) {
10 case 0:
11 break;
12 case 1:
13 this.range(domain);
14 break;
15 default:
16 this.range(range).domain(domain);
17 break;
18 }
19 return this;
20}
21function initInterpolator(domain, interpolator) {
22 switch (arguments.length) {
23 case 0:
24 break;
25 case 1:
26 {
27 if (typeof domain === "function") this.interpolator(domain);else this.range(domain);
28 break;
29 }
30 default:
31 {
32 this.domain(domain);
33 if (typeof interpolator === "function") this.interpolator(interpolator);else this.range(interpolator);
34 break;
35 }
36 }
37 return this;
38}
Note: See TracBrowser for help on using the repository browser.