d3-rails 5.5.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/app/assets/javascripts/d3.js +212 -148
- data/app/assets/javascripts/d3.min.js +2 -2
- data/app/assets/javascripts/d3.v5.js +212 -148
- data/app/assets/javascripts/d3.v5.min.js +2 -2
- data/lib/d3/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6cd47f285146a34396fa1925924bb1a5006733b333f0a77d08133f51aec6b36
|
4
|
+
data.tar.gz: 274fba6604e2d018d492238a30b3507dea8955db9ffe665a25aea9518d52c907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e350fbd34bb84c4a9b9abb72bedbbff16f5ec3523628a4523b59821704251a40d0d4521bb9f4969bf3729fd265accb59d72b5af0daa7c8f0ad425befd009827e
|
7
|
+
data.tar.gz: 227723e1a154f1a9eb4b80a537eda9e6885a2467e819fc52cfad7037ed8f8ad5bbe6578ce9f259a6ee1fcd2862821dde9242466b7853559a1b1d70489b523e8d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ d3-rails provides D3 for Rails 3.1 and higher.
|
|
8
8
|
|
9
9
|
## Version
|
10
10
|
|
11
|
-
d3-rails comes with version 5.
|
11
|
+
d3-rails comes with version 5.7.0 of D3.js. The d3-rails version will
|
12
12
|
always mirror the version of D3. If you need a newer version of
|
13
13
|
d3-rails, see section Development (below).
|
14
14
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
// https://d3js.org
|
1
|
+
// https://d3js.org v5.7.0 Copyright 2018 Mike Bostock
|
2
2
|
(function (global, factory) {
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
5
|
+
(factory((global.d3 = global.d3 || {})));
|
6
6
|
}(this, (function (exports) { 'use strict';
|
7
7
|
|
8
|
-
var version = "5.
|
8
|
+
var version = "5.7.0";
|
9
9
|
|
10
10
|
function ascending(a, b) {
|
11
11
|
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
@@ -269,7 +269,7 @@ function histogram() {
|
|
269
269
|
// Convert number of thresholds into uniform thresholds.
|
270
270
|
if (!Array.isArray(tz)) {
|
271
271
|
tz = tickStep(x0, x1, tz);
|
272
|
-
tz = sequence(Math.ceil(x0 / tz) * tz,
|
272
|
+
tz = sequence(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
|
273
273
|
}
|
274
274
|
|
275
275
|
// Remove any thresholds outside the domain.
|
@@ -622,16 +622,16 @@ function axis(orient, scale) {
|
|
622
622
|
|
623
623
|
path = path.merge(path.enter().insert("path", ".tick")
|
624
624
|
.attr("class", "domain")
|
625
|
-
.attr("stroke", "
|
625
|
+
.attr("stroke", "currentColor"));
|
626
626
|
|
627
627
|
tick = tick.merge(tickEnter);
|
628
628
|
|
629
629
|
line = line.merge(tickEnter.append("line")
|
630
|
-
.attr("stroke", "
|
630
|
+
.attr("stroke", "currentColor")
|
631
631
|
.attr(x + "2", k * tickSizeInner));
|
632
632
|
|
633
633
|
text = text.merge(tickEnter.append("text")
|
634
|
-
.attr("fill", "
|
634
|
+
.attr("fill", "currentColor")
|
635
635
|
.attr(x, k * spacing)
|
636
636
|
.attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
|
637
637
|
|
@@ -654,8 +654,8 @@ function axis(orient, scale) {
|
|
654
654
|
|
655
655
|
path
|
656
656
|
.attr("d", orient === left || orient == right
|
657
|
-
? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter
|
658
|
-
: "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter);
|
657
|
+
? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1)
|
658
|
+
: (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1));
|
659
659
|
|
660
660
|
tick
|
661
661
|
.attr("opacity", 1)
|
@@ -2672,7 +2672,7 @@ function date(a, b) {
|
|
2672
2672
|
};
|
2673
2673
|
}
|
2674
2674
|
|
2675
|
-
function
|
2675
|
+
function interpolateNumber(a, b) {
|
2676
2676
|
return a = +a, b -= a, function(t) {
|
2677
2677
|
return a + b * t;
|
2678
2678
|
};
|
@@ -2740,7 +2740,7 @@ function interpolateString(a, b) {
|
|
2740
2740
|
else s[++i] = bm;
|
2741
2741
|
} else { // interpolate non-matching numbers
|
2742
2742
|
s[++i] = null;
|
2743
|
-
q.push({i: i, x:
|
2743
|
+
q.push({i: i, x: interpolateNumber(am, bm)});
|
2744
2744
|
}
|
2745
2745
|
bi = reB.lastIndex;
|
2746
2746
|
}
|
@@ -2766,13 +2766,28 @@ function interpolateString(a, b) {
|
|
2766
2766
|
function interpolateValue(a, b) {
|
2767
2767
|
var t = typeof b, c;
|
2768
2768
|
return b == null || t === "boolean" ? constant$3(b)
|
2769
|
-
: (t === "number" ?
|
2769
|
+
: (t === "number" ? interpolateNumber
|
2770
2770
|
: t === "string" ? ((c = color(b)) ? (b = c, interpolateRgb) : interpolateString)
|
2771
2771
|
: b instanceof color ? interpolateRgb
|
2772
2772
|
: b instanceof Date ? date
|
2773
2773
|
: Array.isArray(b) ? array$1
|
2774
2774
|
: typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
|
2775
|
-
:
|
2775
|
+
: interpolateNumber)(a, b);
|
2776
|
+
}
|
2777
|
+
|
2778
|
+
function discrete(range) {
|
2779
|
+
var n = range.length;
|
2780
|
+
return function(t) {
|
2781
|
+
return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
2782
|
+
};
|
2783
|
+
}
|
2784
|
+
|
2785
|
+
function hue$1(a, b) {
|
2786
|
+
var i = hue(+a, +b);
|
2787
|
+
return function(t) {
|
2788
|
+
var x = i(t);
|
2789
|
+
return x - 360 * Math.floor(x / 360);
|
2790
|
+
};
|
2776
2791
|
}
|
2777
2792
|
|
2778
2793
|
function interpolateRound(a, b) {
|
@@ -2841,7 +2856,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
2841
2856
|
function translate(xa, ya, xb, yb, s, q) {
|
2842
2857
|
if (xa !== xb || ya !== yb) {
|
2843
2858
|
var i = s.push("translate(", null, pxComma, null, pxParen);
|
2844
|
-
q.push({i: i - 4, x:
|
2859
|
+
q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
|
2845
2860
|
} else if (xb || yb) {
|
2846
2861
|
s.push("translate(" + xb + pxComma + yb + pxParen);
|
2847
2862
|
}
|
@@ -2850,7 +2865,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
2850
2865
|
function rotate(a, b, s, q) {
|
2851
2866
|
if (a !== b) {
|
2852
2867
|
if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
|
2853
|
-
q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x:
|
2868
|
+
q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: interpolateNumber(a, b)});
|
2854
2869
|
} else if (b) {
|
2855
2870
|
s.push(pop(s) + "rotate(" + b + degParen);
|
2856
2871
|
}
|
@@ -2858,7 +2873,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
2858
2873
|
|
2859
2874
|
function skewX(a, b, s, q) {
|
2860
2875
|
if (a !== b) {
|
2861
|
-
q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x:
|
2876
|
+
q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: interpolateNumber(a, b)});
|
2862
2877
|
} else if (b) {
|
2863
2878
|
s.push(pop(s) + "skewX(" + b + degParen);
|
2864
2879
|
}
|
@@ -2867,7 +2882,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
2867
2882
|
function scale(xa, ya, xb, yb, s, q) {
|
2868
2883
|
if (xa !== xb || ya !== yb) {
|
2869
2884
|
var i = s.push(pop(s) + "scale(", null, ",", null, ")");
|
2870
|
-
q.push({i: i - 4, x:
|
2885
|
+
q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
|
2871
2886
|
} else if (xb !== 1 || yb !== 1) {
|
2872
2887
|
s.push(pop(s) + "scale(" + xb + "," + yb + ")");
|
2873
2888
|
}
|
@@ -3449,7 +3464,7 @@ function tweenValue(transition, name, value) {
|
|
3449
3464
|
|
3450
3465
|
function interpolate(a, b) {
|
3451
3466
|
var c;
|
3452
|
-
return (typeof b === "number" ?
|
3467
|
+
return (typeof b === "number" ? interpolateNumber
|
3453
3468
|
: b instanceof color ? interpolateRgb
|
3454
3469
|
: (c = color(b)) ? (b = c, interpolateRgb)
|
3455
3470
|
: interpolateString)(a, b);
|
@@ -4909,7 +4924,7 @@ Path.prototype = path.prototype = {
|
|
4909
4924
|
}
|
4910
4925
|
|
4911
4926
|
// Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
|
4912
|
-
else if (!(l01_2 > epsilon$1))
|
4927
|
+
else if (!(l01_2 > epsilon$1));
|
4913
4928
|
|
4914
4929
|
// Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
|
4915
4930
|
// Equivalently, is (x1,y1) coincident with (x2,y2)?
|
@@ -5061,7 +5076,7 @@ function ribbon() {
|
|
5061
5076
|
};
|
5062
5077
|
|
5063
5078
|
ribbon.context = function(_) {
|
5064
|
-
return arguments.length ? (context = _ == null ? null : _, ribbon) : context;
|
5079
|
+
return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;
|
5065
5080
|
};
|
5066
5081
|
|
5067
5082
|
return ribbon;
|
@@ -5565,9 +5580,14 @@ function defaultY(d) {
|
|
5565
5580
|
return d[1];
|
5566
5581
|
}
|
5567
5582
|
|
5583
|
+
function defaultWeight() {
|
5584
|
+
return 1;
|
5585
|
+
}
|
5586
|
+
|
5568
5587
|
function density() {
|
5569
5588
|
var x = defaultX,
|
5570
5589
|
y = defaultY,
|
5590
|
+
weight = defaultWeight,
|
5571
5591
|
dx = 960,
|
5572
5592
|
dy = 500,
|
5573
5593
|
r = 20, // blur radius
|
@@ -5582,10 +5602,11 @@ function density() {
|
|
5582
5602
|
values1 = new Float32Array(n * m);
|
5583
5603
|
|
5584
5604
|
data.forEach(function(d, i, data) {
|
5585
|
-
var xi = (x(d, i, data) + o) >> k,
|
5586
|
-
yi = (y(d, i, data) + o) >> k
|
5605
|
+
var xi = (+x(d, i, data) + o) >> k,
|
5606
|
+
yi = (+y(d, i, data) + o) >> k,
|
5607
|
+
wi = +weight(d, i, data);
|
5587
5608
|
if (xi >= 0 && xi < n && yi >= 0 && yi < m) {
|
5588
|
-
|
5609
|
+
values0[xi + yi * n] += wi;
|
5589
5610
|
}
|
5590
5611
|
});
|
5591
5612
|
|
@@ -5649,6 +5670,10 @@ function density() {
|
|
5649
5670
|
return arguments.length ? (y = typeof _ === "function" ? _ : constant$6(+_), density) : y;
|
5650
5671
|
};
|
5651
5672
|
|
5673
|
+
density.weight = function(_) {
|
5674
|
+
return arguments.length ? (weight = typeof _ === "function" ? _ : constant$6(+_), density) : weight;
|
5675
|
+
};
|
5676
|
+
|
5652
5677
|
density.size = function(_) {
|
5653
5678
|
if (!arguments.length) return [dx, dy];
|
5654
5679
|
var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
|
@@ -6219,7 +6244,7 @@ function tree_remove(d) {
|
|
6219
6244
|
if (next = node.next) delete node.next;
|
6220
6245
|
|
6221
6246
|
// If there are multiple coincident points, remove just the point.
|
6222
|
-
if (previous) return next ? previous.next = next : delete previous.next, this;
|
6247
|
+
if (previous) return (next ? previous.next = next : delete previous.next), this;
|
6223
6248
|
|
6224
6249
|
// If this is the root point, remove it.
|
6225
6250
|
if (!parent) return this._root = next, this;
|
@@ -6683,7 +6708,7 @@ function simulation(nodes) {
|
|
6683
6708
|
},
|
6684
6709
|
|
6685
6710
|
force: function(name, _) {
|
6686
|
-
return arguments.length > 1 ? (_ == null ? forces.remove(name) : forces.set(name, initializeForce(_)), simulation) : forces.get(name);
|
6711
|
+
return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);
|
6687
6712
|
},
|
6688
6713
|
|
6689
6714
|
find: function(x, y, radius) {
|
@@ -7008,7 +7033,7 @@ function formatNumerals(numerals) {
|
|
7008
7033
|
}
|
7009
7034
|
|
7010
7035
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
7011
|
-
var re = /^(?:(.)?([<>=^]))?([
|
7036
|
+
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
7012
7037
|
|
7013
7038
|
function formatSpecifier(specifier) {
|
7014
7039
|
return new FormatSpecifier(specifier);
|
@@ -9875,7 +9900,8 @@ function albersUsa() {
|
|
9875
9900
|
|
9876
9901
|
function albersUsa(coordinates) {
|
9877
9902
|
var x = coordinates[0], y = coordinates[1];
|
9878
|
-
return point = null,
|
9903
|
+
return point = null,
|
9904
|
+
(lower48Point.point(x, y), point)
|
9879
9905
|
|| (alaskaPoint.point(x, y), point)
|
9880
9906
|
|| (hawaiiPoint.point(x, y), point);
|
9881
9907
|
}
|
@@ -10039,7 +10065,7 @@ function mercatorProjection(project) {
|
|
10039
10065
|
};
|
10040
10066
|
|
10041
10067
|
m.clipExtent = function(_) {
|
10042
|
-
return arguments.length ? (_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];
|
10068
|
+
return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];
|
10043
10069
|
};
|
10044
10070
|
|
10045
10071
|
function reclip() {
|
@@ -10123,6 +10149,40 @@ function conicEquidistant() {
|
|
10123
10149
|
.center([0, 13.9389]);
|
10124
10150
|
}
|
10125
10151
|
|
10152
|
+
var A1 = 1.340264,
|
10153
|
+
A2 = -0.081106,
|
10154
|
+
A3 = 0.000893,
|
10155
|
+
A4 = 0.003796,
|
10156
|
+
M = sqrt(3) / 2,
|
10157
|
+
iterations = 12;
|
10158
|
+
|
10159
|
+
function equalEarthRaw(lambda, phi) {
|
10160
|
+
var l = asin(M * sin$1(phi)), l2 = l * l, l6 = l2 * l2 * l2;
|
10161
|
+
return [
|
10162
|
+
lambda * cos$1(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),
|
10163
|
+
l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))
|
10164
|
+
];
|
10165
|
+
}
|
10166
|
+
|
10167
|
+
equalEarthRaw.invert = function(x, y) {
|
10168
|
+
var l = y, l2 = l * l, l6 = l2 * l2 * l2;
|
10169
|
+
for (var i = 0, delta, fy, fpy; i < iterations; ++i) {
|
10170
|
+
fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;
|
10171
|
+
fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);
|
10172
|
+
l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;
|
10173
|
+
if (abs(delta) < epsilon2$1) break;
|
10174
|
+
}
|
10175
|
+
return [
|
10176
|
+
M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos$1(l),
|
10177
|
+
asin(sin$1(l) / M)
|
10178
|
+
];
|
10179
|
+
};
|
10180
|
+
|
10181
|
+
function equalEarth() {
|
10182
|
+
return projection(equalEarthRaw)
|
10183
|
+
.scale(177.158);
|
10184
|
+
}
|
10185
|
+
|
10126
10186
|
function gnomonicRaw(x, y) {
|
10127
10187
|
var cy = cos$1(y), k = cos$1(x) * cy;
|
10128
10188
|
return [cy * sin$1(x) / k, sin$1(y) / k];
|
@@ -11916,7 +11976,7 @@ function point$1() {
|
|
11916
11976
|
return pointish(band().paddingInner(1));
|
11917
11977
|
}
|
11918
11978
|
|
11919
|
-
function constant$
|
11979
|
+
function constant$a(x) {
|
11920
11980
|
return function() {
|
11921
11981
|
return x;
|
11922
11982
|
};
|
@@ -11931,7 +11991,7 @@ var unit = [0, 1];
|
|
11931
11991
|
function deinterpolateLinear(a, b) {
|
11932
11992
|
return (b -= (a = +a))
|
11933
11993
|
? function(x) { return (x - a) / b; }
|
11934
|
-
: constant$
|
11994
|
+
: constant$a(b);
|
11935
11995
|
}
|
11936
11996
|
|
11937
11997
|
function deinterpolateClamp(deinterpolate) {
|
@@ -11941,21 +12001,21 @@ function deinterpolateClamp(deinterpolate) {
|
|
11941
12001
|
};
|
11942
12002
|
}
|
11943
12003
|
|
11944
|
-
function reinterpolateClamp(reinterpolate
|
12004
|
+
function reinterpolateClamp(reinterpolate) {
|
11945
12005
|
return function(a, b) {
|
11946
|
-
var r = reinterpolate
|
12006
|
+
var r = reinterpolate(a = +a, b = +b);
|
11947
12007
|
return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); };
|
11948
12008
|
};
|
11949
12009
|
}
|
11950
12010
|
|
11951
|
-
function bimap(domain, range, deinterpolate, reinterpolate
|
12011
|
+
function bimap(domain, range, deinterpolate, reinterpolate) {
|
11952
12012
|
var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
|
11953
|
-
if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate
|
11954
|
-
else d0 = deinterpolate(d0, d1), r0 = reinterpolate
|
12013
|
+
if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0);
|
12014
|
+
else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1);
|
11955
12015
|
return function(x) { return r0(d0(x)); };
|
11956
12016
|
}
|
11957
12017
|
|
11958
|
-
function polymap(domain, range, deinterpolate, reinterpolate
|
12018
|
+
function polymap(domain, range, deinterpolate, reinterpolate) {
|
11959
12019
|
var j = Math.min(domain.length, range.length) - 1,
|
11960
12020
|
d = new Array(j),
|
11961
12021
|
r = new Array(j),
|
@@ -11969,7 +12029,7 @@ function polymap(domain, range, deinterpolate, reinterpolate$$1) {
|
|
11969
12029
|
|
11970
12030
|
while (++i < j) {
|
11971
12031
|
d[i] = deinterpolate(domain[i], domain[i + 1]);
|
11972
|
-
r[i] = reinterpolate
|
12032
|
+
r[i] = reinterpolate(range[i], range[i + 1]);
|
11973
12033
|
}
|
11974
12034
|
|
11975
12035
|
return function(x) {
|
@@ -11988,7 +12048,7 @@ function copy(source, target) {
|
|
11988
12048
|
|
11989
12049
|
// deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
11990
12050
|
// reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b].
|
11991
|
-
function continuous(deinterpolate, reinterpolate
|
12051
|
+
function continuous(deinterpolate, reinterpolate) {
|
11992
12052
|
var domain = unit,
|
11993
12053
|
range = unit,
|
11994
12054
|
interpolate$$1 = interpolateValue,
|
@@ -12008,7 +12068,7 @@ function continuous(deinterpolate, reinterpolate$$1) {
|
|
12008
12068
|
}
|
12009
12069
|
|
12010
12070
|
scale.invert = function(y) {
|
12011
|
-
return (input || (input = piecewise$$1(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate
|
12071
|
+
return (input || (input = piecewise$$1(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y);
|
12012
12072
|
};
|
12013
12073
|
|
12014
12074
|
scale.domain = function(_) {
|
@@ -12119,7 +12179,7 @@ function linearish(scale) {
|
|
12119
12179
|
}
|
12120
12180
|
|
12121
12181
|
function linear$2() {
|
12122
|
-
var scale = continuous(deinterpolateLinear,
|
12182
|
+
var scale = continuous(deinterpolateLinear, interpolateNumber);
|
12123
12183
|
|
12124
12184
|
scale.copy = function() {
|
12125
12185
|
return copy(scale, linear$2());
|
@@ -12170,10 +12230,10 @@ function nice(domain, interval) {
|
|
12170
12230
|
function deinterpolate(a, b) {
|
12171
12231
|
return (b = Math.log(b / a))
|
12172
12232
|
? function(x) { return Math.log(x / a) / b; }
|
12173
|
-
: constant$
|
12233
|
+
: constant$a(b);
|
12174
12234
|
}
|
12175
12235
|
|
12176
|
-
function reinterpolate
|
12236
|
+
function reinterpolate(a, b) {
|
12177
12237
|
return a < 0
|
12178
12238
|
? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); }
|
12179
12239
|
: function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); };
|
@@ -12203,7 +12263,7 @@ function reflect(f) {
|
|
12203
12263
|
}
|
12204
12264
|
|
12205
12265
|
function log$1() {
|
12206
|
-
var scale = continuous(deinterpolate, reinterpolate
|
12266
|
+
var scale = continuous(deinterpolate, reinterpolate).domain([1, 10]),
|
12207
12267
|
domain = scale.domain,
|
12208
12268
|
base = 10,
|
12209
12269
|
logs = logp(10),
|
@@ -12302,7 +12362,7 @@ function pow$1() {
|
|
12302
12362
|
function deinterpolate(a, b) {
|
12303
12363
|
return (b = raise$1(b, exponent) - (a = raise$1(a, exponent)))
|
12304
12364
|
? function(x) { return (raise$1(x, exponent) - a) / b; }
|
12305
|
-
: constant$
|
12365
|
+
: constant$a(b);
|
12306
12366
|
}
|
12307
12367
|
|
12308
12368
|
function reinterpolate(a, b) {
|
@@ -13435,7 +13495,7 @@ function number$3(t) {
|
|
13435
13495
|
}
|
13436
13496
|
|
13437
13497
|
function calendar(year$$1, month$$1, week, day$$1, hour$$1, minute$$1, second$$1, millisecond$$1, format) {
|
13438
|
-
var scale = continuous(deinterpolateLinear,
|
13498
|
+
var scale = continuous(deinterpolateLinear, interpolateNumber),
|
13439
13499
|
invert = scale.invert,
|
13440
13500
|
domain = scale.domain;
|
13441
13501
|
|
@@ -13778,7 +13838,7 @@ var scheme$9 = new Array(3).concat(
|
|
13778
13838
|
|
13779
13839
|
var BuGn = ramp(scheme$9);
|
13780
13840
|
|
13781
|
-
var scheme$
|
13841
|
+
var scheme$a = new Array(3).concat(
|
13782
13842
|
"e0ecf49ebcda8856a7",
|
13783
13843
|
"edf8fbb3cde38c96c688419d",
|
13784
13844
|
"edf8fbb3cde38c96c68856a7810f7c",
|
@@ -13788,9 +13848,9 @@ var scheme$10 = new Array(3).concat(
|
|
13788
13848
|
"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
|
13789
13849
|
).map(colors);
|
13790
13850
|
|
13791
|
-
var BuPu = ramp(scheme$
|
13851
|
+
var BuPu = ramp(scheme$a);
|
13792
13852
|
|
13793
|
-
var scheme$
|
13853
|
+
var scheme$b = new Array(3).concat(
|
13794
13854
|
"e0f3dba8ddb543a2ca",
|
13795
13855
|
"f0f9e8bae4bc7bccc42b8cbe",
|
13796
13856
|
"f0f9e8bae4bc7bccc443a2ca0868ac",
|
@@ -13800,9 +13860,9 @@ var scheme$11 = new Array(3).concat(
|
|
13800
13860
|
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
|
13801
13861
|
).map(colors);
|
13802
13862
|
|
13803
|
-
var GnBu = ramp(scheme$
|
13863
|
+
var GnBu = ramp(scheme$b);
|
13804
13864
|
|
13805
|
-
var scheme$
|
13865
|
+
var scheme$c = new Array(3).concat(
|
13806
13866
|
"fee8c8fdbb84e34a33",
|
13807
13867
|
"fef0d9fdcc8afc8d59d7301f",
|
13808
13868
|
"fef0d9fdcc8afc8d59e34a33b30000",
|
@@ -13812,9 +13872,9 @@ var scheme$12 = new Array(3).concat(
|
|
13812
13872
|
"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
|
13813
13873
|
).map(colors);
|
13814
13874
|
|
13815
|
-
var OrRd = ramp(scheme$
|
13875
|
+
var OrRd = ramp(scheme$c);
|
13816
13876
|
|
13817
|
-
var scheme$
|
13877
|
+
var scheme$d = new Array(3).concat(
|
13818
13878
|
"ece2f0a6bddb1c9099",
|
13819
13879
|
"f6eff7bdc9e167a9cf02818a",
|
13820
13880
|
"f6eff7bdc9e167a9cf1c9099016c59",
|
@@ -13824,9 +13884,9 @@ var scheme$13 = new Array(3).concat(
|
|
13824
13884
|
"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
|
13825
13885
|
).map(colors);
|
13826
13886
|
|
13827
|
-
var PuBuGn = ramp(scheme$
|
13887
|
+
var PuBuGn = ramp(scheme$d);
|
13828
13888
|
|
13829
|
-
var scheme$
|
13889
|
+
var scheme$e = new Array(3).concat(
|
13830
13890
|
"ece7f2a6bddb2b8cbe",
|
13831
13891
|
"f1eef6bdc9e174a9cf0570b0",
|
13832
13892
|
"f1eef6bdc9e174a9cf2b8cbe045a8d",
|
@@ -13836,9 +13896,9 @@ var scheme$14 = new Array(3).concat(
|
|
13836
13896
|
"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
|
13837
13897
|
).map(colors);
|
13838
13898
|
|
13839
|
-
var PuBu = ramp(scheme$
|
13899
|
+
var PuBu = ramp(scheme$e);
|
13840
13900
|
|
13841
|
-
var scheme$
|
13901
|
+
var scheme$f = new Array(3).concat(
|
13842
13902
|
"e7e1efc994c7dd1c77",
|
13843
13903
|
"f1eef6d7b5d8df65b0ce1256",
|
13844
13904
|
"f1eef6d7b5d8df65b0dd1c77980043",
|
@@ -13848,9 +13908,9 @@ var scheme$15 = new Array(3).concat(
|
|
13848
13908
|
"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
|
13849
13909
|
).map(colors);
|
13850
13910
|
|
13851
|
-
var PuRd = ramp(scheme$
|
13911
|
+
var PuRd = ramp(scheme$f);
|
13852
13912
|
|
13853
|
-
var scheme$
|
13913
|
+
var scheme$g = new Array(3).concat(
|
13854
13914
|
"fde0ddfa9fb5c51b8a",
|
13855
13915
|
"feebe2fbb4b9f768a1ae017e",
|
13856
13916
|
"feebe2fbb4b9f768a1c51b8a7a0177",
|
@@ -13860,9 +13920,9 @@ var scheme$16 = new Array(3).concat(
|
|
13860
13920
|
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
|
13861
13921
|
).map(colors);
|
13862
13922
|
|
13863
|
-
var RdPu = ramp(scheme$
|
13923
|
+
var RdPu = ramp(scheme$g);
|
13864
13924
|
|
13865
|
-
var scheme$
|
13925
|
+
var scheme$h = new Array(3).concat(
|
13866
13926
|
"edf8b17fcdbb2c7fb8",
|
13867
13927
|
"ffffcca1dab441b6c4225ea8",
|
13868
13928
|
"ffffcca1dab441b6c42c7fb8253494",
|
@@ -13872,9 +13932,9 @@ var scheme$17 = new Array(3).concat(
|
|
13872
13932
|
"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
|
13873
13933
|
).map(colors);
|
13874
13934
|
|
13875
|
-
var YlGnBu = ramp(scheme$
|
13935
|
+
var YlGnBu = ramp(scheme$h);
|
13876
13936
|
|
13877
|
-
var scheme$
|
13937
|
+
var scheme$i = new Array(3).concat(
|
13878
13938
|
"f7fcb9addd8e31a354",
|
13879
13939
|
"ffffccc2e69978c679238443",
|
13880
13940
|
"ffffccc2e69978c67931a354006837",
|
@@ -13884,9 +13944,9 @@ var scheme$18 = new Array(3).concat(
|
|
13884
13944
|
"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
|
13885
13945
|
).map(colors);
|
13886
13946
|
|
13887
|
-
var YlGn = ramp(scheme$
|
13947
|
+
var YlGn = ramp(scheme$i);
|
13888
13948
|
|
13889
|
-
var scheme$
|
13949
|
+
var scheme$j = new Array(3).concat(
|
13890
13950
|
"fff7bcfec44fd95f0e",
|
13891
13951
|
"ffffd4fed98efe9929cc4c02",
|
13892
13952
|
"ffffd4fed98efe9929d95f0e993404",
|
@@ -13896,9 +13956,9 @@ var scheme$19 = new Array(3).concat(
|
|
13896
13956
|
"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
|
13897
13957
|
).map(colors);
|
13898
13958
|
|
13899
|
-
var YlOrBr = ramp(scheme$
|
13959
|
+
var YlOrBr = ramp(scheme$j);
|
13900
13960
|
|
13901
|
-
var scheme$
|
13961
|
+
var scheme$k = new Array(3).concat(
|
13902
13962
|
"ffeda0feb24cf03b20",
|
13903
13963
|
"ffffb2fecc5cfd8d3ce31a1c",
|
13904
13964
|
"ffffb2fecc5cfd8d3cf03b20bd0026",
|
@@ -13908,9 +13968,9 @@ var scheme$20 = new Array(3).concat(
|
|
13908
13968
|
"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
|
13909
13969
|
).map(colors);
|
13910
13970
|
|
13911
|
-
var YlOrRd = ramp(scheme$
|
13971
|
+
var YlOrRd = ramp(scheme$k);
|
13912
13972
|
|
13913
|
-
var scheme$
|
13973
|
+
var scheme$l = new Array(3).concat(
|
13914
13974
|
"deebf79ecae13182bd",
|
13915
13975
|
"eff3ffbdd7e76baed62171b5",
|
13916
13976
|
"eff3ffbdd7e76baed63182bd08519c",
|
@@ -13920,9 +13980,9 @@ var scheme$21 = new Array(3).concat(
|
|
13920
13980
|
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
|
13921
13981
|
).map(colors);
|
13922
13982
|
|
13923
|
-
var Blues = ramp(scheme$
|
13983
|
+
var Blues = ramp(scheme$l);
|
13924
13984
|
|
13925
|
-
var scheme$
|
13985
|
+
var scheme$m = new Array(3).concat(
|
13926
13986
|
"e5f5e0a1d99b31a354",
|
13927
13987
|
"edf8e9bae4b374c476238b45",
|
13928
13988
|
"edf8e9bae4b374c47631a354006d2c",
|
@@ -13932,9 +13992,9 @@ var scheme$22 = new Array(3).concat(
|
|
13932
13992
|
"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
|
13933
13993
|
).map(colors);
|
13934
13994
|
|
13935
|
-
var Greens = ramp(scheme$
|
13995
|
+
var Greens = ramp(scheme$m);
|
13936
13996
|
|
13937
|
-
var scheme$
|
13997
|
+
var scheme$n = new Array(3).concat(
|
13938
13998
|
"f0f0f0bdbdbd636363",
|
13939
13999
|
"f7f7f7cccccc969696525252",
|
13940
14000
|
"f7f7f7cccccc969696636363252525",
|
@@ -13944,9 +14004,9 @@ var scheme$23 = new Array(3).concat(
|
|
13944
14004
|
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
|
13945
14005
|
).map(colors);
|
13946
14006
|
|
13947
|
-
var Greys = ramp(scheme$
|
14007
|
+
var Greys = ramp(scheme$n);
|
13948
14008
|
|
13949
|
-
var scheme$
|
14009
|
+
var scheme$o = new Array(3).concat(
|
13950
14010
|
"efedf5bcbddc756bb1",
|
13951
14011
|
"f2f0f7cbc9e29e9ac86a51a3",
|
13952
14012
|
"f2f0f7cbc9e29e9ac8756bb154278f",
|
@@ -13956,9 +14016,9 @@ var scheme$24 = new Array(3).concat(
|
|
13956
14016
|
"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
|
13957
14017
|
).map(colors);
|
13958
14018
|
|
13959
|
-
var Purples = ramp(scheme$
|
14019
|
+
var Purples = ramp(scheme$o);
|
13960
14020
|
|
13961
|
-
var scheme$
|
14021
|
+
var scheme$p = new Array(3).concat(
|
13962
14022
|
"fee0d2fc9272de2d26",
|
13963
14023
|
"fee5d9fcae91fb6a4acb181d",
|
13964
14024
|
"fee5d9fcae91fb6a4ade2d26a50f15",
|
@@ -13968,9 +14028,9 @@ var scheme$25 = new Array(3).concat(
|
|
13968
14028
|
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
|
13969
14029
|
).map(colors);
|
13970
14030
|
|
13971
|
-
var Reds = ramp(scheme$
|
14031
|
+
var Reds = ramp(scheme$p);
|
13972
14032
|
|
13973
|
-
var scheme$
|
14033
|
+
var scheme$q = new Array(3).concat(
|
13974
14034
|
"fee6cefdae6be6550d",
|
13975
14035
|
"feeddefdbe85fd8d3cd94701",
|
13976
14036
|
"feeddefdbe85fd8d3ce6550da63603",
|
@@ -13980,7 +14040,7 @@ var scheme$26 = new Array(3).concat(
|
|
13980
14040
|
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
|
13981
14041
|
).map(colors);
|
13982
14042
|
|
13983
|
-
var Oranges = ramp(scheme$
|
14043
|
+
var Oranges = ramp(scheme$q);
|
13984
14044
|
|
13985
14045
|
var cubehelix$3 = cubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));
|
13986
14046
|
|
@@ -14027,7 +14087,7 @@ var inferno = ramp$1(colors("00000401000501010601010802010a02020c02020e030210040
|
|
14027
14087
|
|
14028
14088
|
var plasma = ramp$1(colors("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
14029
14089
|
|
14030
|
-
function constant$
|
14090
|
+
function constant$b(x) {
|
14031
14091
|
return function constant() {
|
14032
14092
|
return x;
|
14033
14093
|
};
|
@@ -14127,7 +14187,7 @@ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
14127
14187
|
function arc() {
|
14128
14188
|
var innerRadius = arcInnerRadius,
|
14129
14189
|
outerRadius = arcOuterRadius,
|
14130
|
-
cornerRadius = constant$
|
14190
|
+
cornerRadius = constant$b(0),
|
14131
14191
|
padRadius = null,
|
14132
14192
|
startAngle = arcStartAngle,
|
14133
14193
|
endAngle = arcEndAngle,
|
@@ -14276,35 +14336,35 @@ function arc() {
|
|
14276
14336
|
};
|
14277
14337
|
|
14278
14338
|
arc.innerRadius = function(_) {
|
14279
|
-
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$
|
14339
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$b(+_), arc) : innerRadius;
|
14280
14340
|
};
|
14281
14341
|
|
14282
14342
|
arc.outerRadius = function(_) {
|
14283
|
-
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$
|
14343
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$b(+_), arc) : outerRadius;
|
14284
14344
|
};
|
14285
14345
|
|
14286
14346
|
arc.cornerRadius = function(_) {
|
14287
|
-
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$
|
14347
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$b(+_), arc) : cornerRadius;
|
14288
14348
|
};
|
14289
14349
|
|
14290
14350
|
arc.padRadius = function(_) {
|
14291
|
-
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$
|
14351
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$b(+_), arc) : padRadius;
|
14292
14352
|
};
|
14293
14353
|
|
14294
14354
|
arc.startAngle = function(_) {
|
14295
|
-
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$
|
14355
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$b(+_), arc) : startAngle;
|
14296
14356
|
};
|
14297
14357
|
|
14298
14358
|
arc.endAngle = function(_) {
|
14299
|
-
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$
|
14359
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$b(+_), arc) : endAngle;
|
14300
14360
|
};
|
14301
14361
|
|
14302
14362
|
arc.padAngle = function(_) {
|
14303
|
-
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$
|
14363
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$b(+_), arc) : padAngle;
|
14304
14364
|
};
|
14305
14365
|
|
14306
14366
|
arc.context = function(_) {
|
14307
|
-
return arguments.length ? (context = _ == null ? null : _, arc) : context;
|
14367
|
+
return arguments.length ? ((context = _ == null ? null : _), arc) : context;
|
14308
14368
|
};
|
14309
14369
|
|
14310
14370
|
return arc;
|
@@ -14353,7 +14413,7 @@ function y$3(p) {
|
|
14353
14413
|
function line() {
|
14354
14414
|
var x$$1 = x$3,
|
14355
14415
|
y$$1 = y$3,
|
14356
|
-
defined = constant$
|
14416
|
+
defined = constant$b(true),
|
14357
14417
|
context = null,
|
14358
14418
|
curve = curveLinear,
|
14359
14419
|
output = null;
|
@@ -14379,15 +14439,15 @@ function line() {
|
|
14379
14439
|
}
|
14380
14440
|
|
14381
14441
|
line.x = function(_) {
|
14382
|
-
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$
|
14442
|
+
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$b(+_), line) : x$$1;
|
14383
14443
|
};
|
14384
14444
|
|
14385
14445
|
line.y = function(_) {
|
14386
|
-
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$
|
14446
|
+
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$b(+_), line) : y$$1;
|
14387
14447
|
};
|
14388
14448
|
|
14389
14449
|
line.defined = function(_) {
|
14390
|
-
return arguments.length ? (defined = typeof _ === "function" ? _ : constant$
|
14450
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant$b(!!_), line) : defined;
|
14391
14451
|
};
|
14392
14452
|
|
14393
14453
|
line.curve = function(_) {
|
@@ -14404,9 +14464,9 @@ function line() {
|
|
14404
14464
|
function area$3() {
|
14405
14465
|
var x0 = x$3,
|
14406
14466
|
x1 = null,
|
14407
|
-
y0 = constant$
|
14467
|
+
y0 = constant$b(0),
|
14408
14468
|
y1 = y$3,
|
14409
|
-
defined = constant$
|
14469
|
+
defined = constant$b(true),
|
14410
14470
|
context = null,
|
14411
14471
|
curve = curveLinear,
|
14412
14472
|
output = null;
|
@@ -14454,27 +14514,27 @@ function area$3() {
|
|
14454
14514
|
}
|
14455
14515
|
|
14456
14516
|
area.x = function(_) {
|
14457
|
-
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$
|
14517
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$b(+_), x1 = null, area) : x0;
|
14458
14518
|
};
|
14459
14519
|
|
14460
14520
|
area.x0 = function(_) {
|
14461
|
-
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$
|
14521
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$b(+_), area) : x0;
|
14462
14522
|
};
|
14463
14523
|
|
14464
14524
|
area.x1 = function(_) {
|
14465
|
-
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant$
|
14525
|
+
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant$b(+_), area) : x1;
|
14466
14526
|
};
|
14467
14527
|
|
14468
14528
|
area.y = function(_) {
|
14469
|
-
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$
|
14529
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$b(+_), y1 = null, area) : y0;
|
14470
14530
|
};
|
14471
14531
|
|
14472
14532
|
area.y0 = function(_) {
|
14473
|
-
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$
|
14533
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$b(+_), area) : y0;
|
14474
14534
|
};
|
14475
14535
|
|
14476
14536
|
area.y1 = function(_) {
|
14477
|
-
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant$
|
14537
|
+
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant$b(+_), area) : y1;
|
14478
14538
|
};
|
14479
14539
|
|
14480
14540
|
area.lineX0 =
|
@@ -14491,7 +14551,7 @@ function area$3() {
|
|
14491
14551
|
};
|
14492
14552
|
|
14493
14553
|
area.defined = function(_) {
|
14494
|
-
return arguments.length ? (defined = typeof _ === "function" ? _ : constant$
|
14554
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant$b(!!_), area) : defined;
|
14495
14555
|
};
|
14496
14556
|
|
14497
14557
|
area.curve = function(_) {
|
@@ -14517,9 +14577,9 @@ function pie() {
|
|
14517
14577
|
var value = identity$7,
|
14518
14578
|
sortValues = descending$1,
|
14519
14579
|
sort = null,
|
14520
|
-
startAngle = constant$
|
14521
|
-
endAngle = constant$
|
14522
|
-
padAngle = constant$
|
14580
|
+
startAngle = constant$b(0),
|
14581
|
+
endAngle = constant$b(tau$4),
|
14582
|
+
padAngle = constant$b(0);
|
14523
14583
|
|
14524
14584
|
function pie(data) {
|
14525
14585
|
var i,
|
@@ -14562,7 +14622,7 @@ function pie() {
|
|
14562
14622
|
}
|
14563
14623
|
|
14564
14624
|
pie.value = function(_) {
|
14565
|
-
return arguments.length ? (value = typeof _ === "function" ? _ : constant$
|
14625
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant$b(+_), pie) : value;
|
14566
14626
|
};
|
14567
14627
|
|
14568
14628
|
pie.sortValues = function(_) {
|
@@ -14574,15 +14634,15 @@ function pie() {
|
|
14574
14634
|
};
|
14575
14635
|
|
14576
14636
|
pie.startAngle = function(_) {
|
14577
|
-
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$
|
14637
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$b(+_), pie) : startAngle;
|
14578
14638
|
};
|
14579
14639
|
|
14580
14640
|
pie.endAngle = function(_) {
|
14581
|
-
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$
|
14641
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$b(+_), pie) : endAngle;
|
14582
14642
|
};
|
14583
14643
|
|
14584
14644
|
pie.padAngle = function(_) {
|
14585
|
-
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$
|
14645
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$b(+_), pie) : padAngle;
|
14586
14646
|
};
|
14587
14647
|
|
14588
14648
|
return pie;
|
@@ -14703,15 +14763,15 @@ function link$2(curve) {
|
|
14703
14763
|
};
|
14704
14764
|
|
14705
14765
|
link.x = function(_) {
|
14706
|
-
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$
|
14766
|
+
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$b(+_), link) : x$$1;
|
14707
14767
|
};
|
14708
14768
|
|
14709
14769
|
link.y = function(_) {
|
14710
|
-
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$
|
14770
|
+
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$b(+_), link) : y$$1;
|
14711
14771
|
};
|
14712
14772
|
|
14713
14773
|
link.context = function(_) {
|
14714
|
-
return arguments.length ? (context = _ == null ? null : _, link) : context;
|
14774
|
+
return arguments.length ? ((context = _ == null ? null : _), link) : context;
|
14715
14775
|
};
|
14716
14776
|
|
14717
14777
|
return link;
|
@@ -14874,8 +14934,8 @@ var symbols = [
|
|
14874
14934
|
];
|
14875
14935
|
|
14876
14936
|
function symbol() {
|
14877
|
-
var type = constant$
|
14878
|
-
size = constant$
|
14937
|
+
var type = constant$b(circle$2),
|
14938
|
+
size = constant$b(64),
|
14879
14939
|
context = null;
|
14880
14940
|
|
14881
14941
|
function symbol() {
|
@@ -14886,11 +14946,11 @@ function symbol() {
|
|
14886
14946
|
}
|
14887
14947
|
|
14888
14948
|
symbol.type = function(_) {
|
14889
|
-
return arguments.length ? (type = typeof _ === "function" ? _ : constant$
|
14949
|
+
return arguments.length ? (type = typeof _ === "function" ? _ : constant$b(_), symbol) : type;
|
14890
14950
|
};
|
14891
14951
|
|
14892
14952
|
symbol.size = function(_) {
|
14893
|
-
return arguments.length ? (size = typeof _ === "function" ? _ : constant$
|
14953
|
+
return arguments.length ? (size = typeof _ === "function" ? _ : constant$b(+_), symbol) : size;
|
14894
14954
|
};
|
14895
14955
|
|
14896
14956
|
symbol.context = function(_) {
|
@@ -15753,7 +15813,7 @@ function stackValue(d, key) {
|
|
15753
15813
|
}
|
15754
15814
|
|
15755
15815
|
function stack() {
|
15756
|
-
var keys = constant$
|
15816
|
+
var keys = constant$b([]),
|
15757
15817
|
order = none$2,
|
15758
15818
|
offset = none$1,
|
15759
15819
|
value = stackValue;
|
@@ -15783,15 +15843,15 @@ function stack() {
|
|
15783
15843
|
}
|
15784
15844
|
|
15785
15845
|
stack.keys = function(_) {
|
15786
|
-
return arguments.length ? (keys = typeof _ === "function" ? _ : constant$
|
15846
|
+
return arguments.length ? (keys = typeof _ === "function" ? _ : constant$b(slice$6.call(_)), stack) : keys;
|
15787
15847
|
};
|
15788
15848
|
|
15789
15849
|
stack.value = function(_) {
|
15790
|
-
return arguments.length ? (value = typeof _ === "function" ? _ : constant$
|
15850
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant$b(+_), stack) : value;
|
15791
15851
|
};
|
15792
15852
|
|
15793
15853
|
stack.order = function(_) {
|
15794
|
-
return arguments.length ? (order = _ == null ? none$2 : typeof _ === "function" ? _ : constant$
|
15854
|
+
return arguments.length ? (order = _ == null ? none$2 : typeof _ === "function" ? _ : constant$b(slice$6.call(_)), stack) : order;
|
15795
15855
|
};
|
15796
15856
|
|
15797
15857
|
stack.offset = function(_) {
|
@@ -15901,7 +15961,7 @@ function reverse(series) {
|
|
15901
15961
|
return none$2(series).reverse();
|
15902
15962
|
}
|
15903
15963
|
|
15904
|
-
function constant$
|
15964
|
+
function constant$c(x) {
|
15905
15965
|
return function() {
|
15906
15966
|
return x;
|
15907
15967
|
};
|
@@ -16870,11 +16930,11 @@ function voronoi() {
|
|
16870
16930
|
};
|
16871
16931
|
|
16872
16932
|
voronoi.x = function(_) {
|
16873
|
-
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$
|
16933
|
+
return arguments.length ? (x$$1 = typeof _ === "function" ? _ : constant$c(+_), voronoi) : x$$1;
|
16874
16934
|
};
|
16875
16935
|
|
16876
16936
|
voronoi.y = function(_) {
|
16877
|
-
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$
|
16937
|
+
return arguments.length ? (y$$1 = typeof _ === "function" ? _ : constant$c(+_), voronoi) : y$$1;
|
16878
16938
|
};
|
16879
16939
|
|
16880
16940
|
voronoi.extent = function(_) {
|
@@ -16888,7 +16948,7 @@ function voronoi() {
|
|
16888
16948
|
return voronoi;
|
16889
16949
|
}
|
16890
16950
|
|
16891
|
-
function constant$
|
16951
|
+
function constant$d(x) {
|
16892
16952
|
return function() {
|
16893
16953
|
return x;
|
16894
16954
|
};
|
@@ -17329,19 +17389,19 @@ function zoom() {
|
|
17329
17389
|
}
|
17330
17390
|
|
17331
17391
|
zoom.wheelDelta = function(_) {
|
17332
|
-
return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : constant$
|
17392
|
+
return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : constant$d(+_), zoom) : wheelDelta;
|
17333
17393
|
};
|
17334
17394
|
|
17335
17395
|
zoom.filter = function(_) {
|
17336
|
-
return arguments.length ? (filter = typeof _ === "function" ? _ : constant$
|
17396
|
+
return arguments.length ? (filter = typeof _ === "function" ? _ : constant$d(!!_), zoom) : filter;
|
17337
17397
|
};
|
17338
17398
|
|
17339
17399
|
zoom.touchable = function(_) {
|
17340
|
-
return arguments.length ? (touchable = typeof _ === "function" ? _ : constant$
|
17400
|
+
return arguments.length ? (touchable = typeof _ === "function" ? _ : constant$d(!!_), zoom) : touchable;
|
17341
17401
|
};
|
17342
17402
|
|
17343
17403
|
zoom.extent = function(_) {
|
17344
|
-
return arguments.length ? (extent = typeof _ === "function" ? _ : constant$
|
17404
|
+
return arguments.length ? (extent = typeof _ === "function" ? _ : constant$d([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;
|
17345
17405
|
};
|
17346
17406
|
|
17347
17407
|
zoom.scaleExtent = function(_) {
|
@@ -17536,6 +17596,8 @@ exports.geoConicEqualArea = conicEqualArea;
|
|
17536
17596
|
exports.geoConicEqualAreaRaw = conicEqualAreaRaw;
|
17537
17597
|
exports.geoConicEquidistant = conicEquidistant;
|
17538
17598
|
exports.geoConicEquidistantRaw = conicEquidistantRaw;
|
17599
|
+
exports.geoEqualEarth = equalEarth;
|
17600
|
+
exports.geoEqualEarthRaw = equalEarthRaw;
|
17539
17601
|
exports.geoEquirectangular = equirectangular;
|
17540
17602
|
exports.geoEquirectangularRaw = equirectangularRaw;
|
17541
17603
|
exports.geoGnomonic = gnomonic;
|
@@ -17576,7 +17638,9 @@ exports.interpolateArray = array$1;
|
|
17576
17638
|
exports.interpolateBasis = basis$1;
|
17577
17639
|
exports.interpolateBasisClosed = basisClosed;
|
17578
17640
|
exports.interpolateDate = date;
|
17579
|
-
exports.
|
17641
|
+
exports.interpolateDiscrete = discrete;
|
17642
|
+
exports.interpolateHue = hue$1;
|
17643
|
+
exports.interpolateNumber = interpolateNumber;
|
17580
17644
|
exports.interpolateObject = object;
|
17581
17645
|
exports.interpolateRound = interpolateRound;
|
17582
17646
|
exports.interpolateString = interpolateString;
|
@@ -17654,39 +17718,39 @@ exports.schemeSpectral = scheme$8;
|
|
17654
17718
|
exports.interpolateBuGn = BuGn;
|
17655
17719
|
exports.schemeBuGn = scheme$9;
|
17656
17720
|
exports.interpolateBuPu = BuPu;
|
17657
|
-
exports.schemeBuPu = scheme$
|
17721
|
+
exports.schemeBuPu = scheme$a;
|
17658
17722
|
exports.interpolateGnBu = GnBu;
|
17659
|
-
exports.schemeGnBu = scheme$
|
17723
|
+
exports.schemeGnBu = scheme$b;
|
17660
17724
|
exports.interpolateOrRd = OrRd;
|
17661
|
-
exports.schemeOrRd = scheme$
|
17725
|
+
exports.schemeOrRd = scheme$c;
|
17662
17726
|
exports.interpolatePuBuGn = PuBuGn;
|
17663
|
-
exports.schemePuBuGn = scheme$
|
17727
|
+
exports.schemePuBuGn = scheme$d;
|
17664
17728
|
exports.interpolatePuBu = PuBu;
|
17665
|
-
exports.schemePuBu = scheme$
|
17729
|
+
exports.schemePuBu = scheme$e;
|
17666
17730
|
exports.interpolatePuRd = PuRd;
|
17667
|
-
exports.schemePuRd = scheme$
|
17731
|
+
exports.schemePuRd = scheme$f;
|
17668
17732
|
exports.interpolateRdPu = RdPu;
|
17669
|
-
exports.schemeRdPu = scheme$
|
17733
|
+
exports.schemeRdPu = scheme$g;
|
17670
17734
|
exports.interpolateYlGnBu = YlGnBu;
|
17671
|
-
exports.schemeYlGnBu = scheme$
|
17735
|
+
exports.schemeYlGnBu = scheme$h;
|
17672
17736
|
exports.interpolateYlGn = YlGn;
|
17673
|
-
exports.schemeYlGn = scheme$
|
17737
|
+
exports.schemeYlGn = scheme$i;
|
17674
17738
|
exports.interpolateYlOrBr = YlOrBr;
|
17675
|
-
exports.schemeYlOrBr = scheme$
|
17739
|
+
exports.schemeYlOrBr = scheme$j;
|
17676
17740
|
exports.interpolateYlOrRd = YlOrRd;
|
17677
|
-
exports.schemeYlOrRd = scheme$
|
17741
|
+
exports.schemeYlOrRd = scheme$k;
|
17678
17742
|
exports.interpolateBlues = Blues;
|
17679
|
-
exports.schemeBlues = scheme$
|
17743
|
+
exports.schemeBlues = scheme$l;
|
17680
17744
|
exports.interpolateGreens = Greens;
|
17681
|
-
exports.schemeGreens = scheme$
|
17745
|
+
exports.schemeGreens = scheme$m;
|
17682
17746
|
exports.interpolateGreys = Greys;
|
17683
|
-
exports.schemeGreys = scheme$
|
17747
|
+
exports.schemeGreys = scheme$n;
|
17684
17748
|
exports.interpolatePurples = Purples;
|
17685
|
-
exports.schemePurples = scheme$
|
17749
|
+
exports.schemePurples = scheme$o;
|
17686
17750
|
exports.interpolateReds = Reds;
|
17687
|
-
exports.schemeReds = scheme$
|
17751
|
+
exports.schemeReds = scheme$p;
|
17688
17752
|
exports.interpolateOranges = Oranges;
|
17689
|
-
exports.schemeOranges = scheme$
|
17753
|
+
exports.schemeOranges = scheme$q;
|
17690
17754
|
exports.interpolateCubehelixDefault = cubehelix$3;
|
17691
17755
|
exports.interpolateRainbow = rainbow;
|
17692
17756
|
exports.interpolateWarm = warm;
|