@hpcc-js/common 2.71.4 → 2.71.6
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.
- package/dist/index.es6.js +792 -213
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +799 -220
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { classID2Meta, hashSum, isArray } from '@hpcc-js/util';
|
|
2
2
|
|
|
3
3
|
var PKG_NAME = "@hpcc-js/common";
|
|
4
|
-
var PKG_VERSION = "2.71.
|
|
5
|
-
var BUILD_VERSION = "2.104.
|
|
4
|
+
var PKG_VERSION = "2.71.6";
|
|
5
|
+
var BUILD_VERSION = "2.104.13";
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1411,34 +1411,34 @@ function selection_interrupt(name) {
|
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
function define(constructor, factory, prototype) {
|
|
1414
|
+
function define$1(constructor, factory, prototype) {
|
|
1415
1415
|
constructor.prototype = factory.prototype = prototype;
|
|
1416
1416
|
prototype.constructor = constructor;
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
|
-
function extend(parent, definition) {
|
|
1419
|
+
function extend$1(parent, definition) {
|
|
1420
1420
|
var prototype = Object.create(parent.prototype);
|
|
1421
1421
|
for (var key in definition) prototype[key] = definition[key];
|
|
1422
1422
|
return prototype;
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
|
-
function Color() {}
|
|
1425
|
+
function Color$1() {}
|
|
1426
1426
|
|
|
1427
|
-
var darker = 0.7;
|
|
1428
|
-
var brighter = 1 / darker;
|
|
1427
|
+
var darker$1 = 0.7;
|
|
1428
|
+
var brighter$1 = 1 / darker$1;
|
|
1429
1429
|
|
|
1430
|
-
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
1431
|
-
reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
1432
|
-
reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
1433
|
-
reHex = /^#([0-9a-f]{3,8})$/,
|
|
1434
|
-
reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
|
|
1435
|
-
reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
|
|
1436
|
-
reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
|
|
1437
|
-
reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
|
|
1438
|
-
reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
|
|
1439
|
-
reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
1430
|
+
var reI$1 = "\\s*([+-]?\\d+)\\s*",
|
|
1431
|
+
reN$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
1432
|
+
reP$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
1433
|
+
reHex$1 = /^#([0-9a-f]{3,8})$/,
|
|
1434
|
+
reRgbInteger$1 = new RegExp("^rgb\\(" + [reI$1, reI$1, reI$1] + "\\)$"),
|
|
1435
|
+
reRgbPercent$1 = new RegExp("^rgb\\(" + [reP$1, reP$1, reP$1] + "\\)$"),
|
|
1436
|
+
reRgbaInteger$1 = new RegExp("^rgba\\(" + [reI$1, reI$1, reI$1, reN$1] + "\\)$"),
|
|
1437
|
+
reRgbaPercent$1 = new RegExp("^rgba\\(" + [reP$1, reP$1, reP$1, reN$1] + "\\)$"),
|
|
1438
|
+
reHslPercent$1 = new RegExp("^hsl\\(" + [reN$1, reP$1, reP$1] + "\\)$"),
|
|
1439
|
+
reHslaPercent$1 = new RegExp("^hsla\\(" + [reN$1, reP$1, reP$1, reN$1] + "\\)$");
|
|
1440
1440
|
|
|
1441
|
-
var named = {
|
|
1441
|
+
var named$1 = {
|
|
1442
1442
|
aliceblue: 0xf0f8ff,
|
|
1443
1443
|
antiquewhite: 0xfaebd7,
|
|
1444
1444
|
aqua: 0x00ffff,
|
|
@@ -1589,86 +1589,86 @@ var named = {
|
|
|
1589
1589
|
yellowgreen: 0x9acd32
|
|
1590
1590
|
};
|
|
1591
1591
|
|
|
1592
|
-
define(Color, color, {
|
|
1592
|
+
define$1(Color$1, color$1, {
|
|
1593
1593
|
copy: function(channels) {
|
|
1594
1594
|
return Object.assign(new this.constructor, this, channels);
|
|
1595
1595
|
},
|
|
1596
1596
|
displayable: function() {
|
|
1597
1597
|
return this.rgb().displayable();
|
|
1598
1598
|
},
|
|
1599
|
-
hex: color_formatHex, // Deprecated! Use color.formatHex.
|
|
1600
|
-
formatHex: color_formatHex,
|
|
1601
|
-
formatHsl: color_formatHsl,
|
|
1602
|
-
formatRgb: color_formatRgb,
|
|
1603
|
-
toString: color_formatRgb
|
|
1599
|
+
hex: color_formatHex$1, // Deprecated! Use color.formatHex.
|
|
1600
|
+
formatHex: color_formatHex$1,
|
|
1601
|
+
formatHsl: color_formatHsl$1,
|
|
1602
|
+
formatRgb: color_formatRgb$1,
|
|
1603
|
+
toString: color_formatRgb$1
|
|
1604
1604
|
});
|
|
1605
1605
|
|
|
1606
|
-
function color_formatHex() {
|
|
1606
|
+
function color_formatHex$1() {
|
|
1607
1607
|
return this.rgb().formatHex();
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
function color_formatHsl() {
|
|
1611
|
-
return hslConvert(this).formatHsl();
|
|
1610
|
+
function color_formatHsl$1() {
|
|
1611
|
+
return hslConvert$1(this).formatHsl();
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
|
-
function color_formatRgb() {
|
|
1614
|
+
function color_formatRgb$1() {
|
|
1615
1615
|
return this.rgb().formatRgb();
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
|
-
function color(format) {
|
|
1618
|
+
function color$1(format) {
|
|
1619
1619
|
var m, l;
|
|
1620
1620
|
format = (format + "").trim().toLowerCase();
|
|
1621
|
-
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
|
|
1622
|
-
: l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
|
|
1623
|
-
: l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
|
1624
|
-
: l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
|
|
1621
|
+
return (m = reHex$1.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn$1(m) // #ff0000
|
|
1622
|
+
: l === 3 ? new Rgb$1((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
|
|
1623
|
+
: l === 8 ? rgba$1(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
|
1624
|
+
: l === 4 ? rgba$1((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
|
|
1625
1625
|
: null) // invalid hex
|
|
1626
|
-
: (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
|
1627
|
-
: (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
|
1628
|
-
: (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
|
1629
|
-
: (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
|
1630
|
-
: (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
|
1631
|
-
: (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
|
1632
|
-
: named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
|
|
1633
|
-
: format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
|
|
1626
|
+
: (m = reRgbInteger$1.exec(format)) ? new Rgb$1(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
|
1627
|
+
: (m = reRgbPercent$1.exec(format)) ? new Rgb$1(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
|
1628
|
+
: (m = reRgbaInteger$1.exec(format)) ? rgba$1(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
|
1629
|
+
: (m = reRgbaPercent$1.exec(format)) ? rgba$1(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
|
1630
|
+
: (m = reHslPercent$1.exec(format)) ? hsla$1(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
|
1631
|
+
: (m = reHslaPercent$1.exec(format)) ? hsla$1(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
|
1632
|
+
: named$1.hasOwnProperty(format) ? rgbn$1(named$1[format]) // eslint-disable-line no-prototype-builtins
|
|
1633
|
+
: format === "transparent" ? new Rgb$1(NaN, NaN, NaN, 0)
|
|
1634
1634
|
: null;
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
function rgbn(n) {
|
|
1638
|
-
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
|
1637
|
+
function rgbn$1(n) {
|
|
1638
|
+
return new Rgb$1(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
|
-
function rgba(r, g, b, a) {
|
|
1641
|
+
function rgba$1(r, g, b, a) {
|
|
1642
1642
|
if (a <= 0) r = g = b = NaN;
|
|
1643
|
-
return new Rgb(r, g, b, a);
|
|
1643
|
+
return new Rgb$1(r, g, b, a);
|
|
1644
1644
|
}
|
|
1645
1645
|
|
|
1646
|
-
function rgbConvert(o) {
|
|
1647
|
-
if (!(o instanceof Color)) o = color(o);
|
|
1648
|
-
if (!o) return new Rgb;
|
|
1646
|
+
function rgbConvert$1(o) {
|
|
1647
|
+
if (!(o instanceof Color$1)) o = color$1(o);
|
|
1648
|
+
if (!o) return new Rgb$1;
|
|
1649
1649
|
o = o.rgb();
|
|
1650
|
-
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
1650
|
+
return new Rgb$1(o.r, o.g, o.b, o.opacity);
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
|
-
function rgb(r, g, b, opacity) {
|
|
1654
|
-
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
|
1653
|
+
function rgb$1(r, g, b, opacity) {
|
|
1654
|
+
return arguments.length === 1 ? rgbConvert$1(r) : new Rgb$1(r, g, b, opacity == null ? 1 : opacity);
|
|
1655
1655
|
}
|
|
1656
1656
|
|
|
1657
|
-
function Rgb(r, g, b, opacity) {
|
|
1657
|
+
function Rgb$1(r, g, b, opacity) {
|
|
1658
1658
|
this.r = +r;
|
|
1659
1659
|
this.g = +g;
|
|
1660
1660
|
this.b = +b;
|
|
1661
1661
|
this.opacity = +opacity;
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
-
define(Rgb, rgb, extend(Color, {
|
|
1664
|
+
define$1(Rgb$1, rgb$1, extend$1(Color$1, {
|
|
1665
1665
|
brighter: function(k) {
|
|
1666
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
1667
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1666
|
+
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
1667
|
+
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1668
1668
|
},
|
|
1669
1669
|
darker: function(k) {
|
|
1670
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
1671
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1670
|
+
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
1671
|
+
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1672
1672
|
},
|
|
1673
1673
|
rgb: function() {
|
|
1674
1674
|
return this;
|
|
@@ -1679,17 +1679,17 @@ define(Rgb, rgb, extend(Color, {
|
|
|
1679
1679
|
&& (-0.5 <= this.b && this.b < 255.5)
|
|
1680
1680
|
&& (0 <= this.opacity && this.opacity <= 1);
|
|
1681
1681
|
},
|
|
1682
|
-
hex: rgb_formatHex, // Deprecated! Use color.formatHex.
|
|
1683
|
-
formatHex: rgb_formatHex,
|
|
1684
|
-
formatRgb: rgb_formatRgb,
|
|
1685
|
-
toString: rgb_formatRgb
|
|
1682
|
+
hex: rgb_formatHex$1, // Deprecated! Use color.formatHex.
|
|
1683
|
+
formatHex: rgb_formatHex$1,
|
|
1684
|
+
formatRgb: rgb_formatRgb$1,
|
|
1685
|
+
toString: rgb_formatRgb$1
|
|
1686
1686
|
}));
|
|
1687
1687
|
|
|
1688
|
-
function rgb_formatHex() {
|
|
1689
|
-
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
1688
|
+
function rgb_formatHex$1() {
|
|
1689
|
+
return "#" + hex$1(this.r) + hex$1(this.g) + hex$1(this.b);
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
|
-
function rgb_formatRgb() {
|
|
1692
|
+
function rgb_formatRgb$1() {
|
|
1693
1693
|
var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
|
|
1694
1694
|
return (a === 1 ? "rgb(" : "rgba(")
|
|
1695
1695
|
+ Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
|
|
@@ -1698,23 +1698,23 @@ function rgb_formatRgb() {
|
|
|
1698
1698
|
+ (a === 1 ? ")" : ", " + a + ")");
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
function hex(value) {
|
|
1701
|
+
function hex$1(value) {
|
|
1702
1702
|
value = Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
1703
1703
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
|
-
function hsla(h, s, l, a) {
|
|
1706
|
+
function hsla$1(h, s, l, a) {
|
|
1707
1707
|
if (a <= 0) h = s = l = NaN;
|
|
1708
1708
|
else if (l <= 0 || l >= 1) h = s = NaN;
|
|
1709
1709
|
else if (s <= 0) h = NaN;
|
|
1710
|
-
return new Hsl(h, s, l, a);
|
|
1710
|
+
return new Hsl$1(h, s, l, a);
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
|
-
function hslConvert(o) {
|
|
1714
|
-
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
1715
|
-
if (!(o instanceof Color)) o = color(o);
|
|
1716
|
-
if (!o) return new Hsl;
|
|
1717
|
-
if (o instanceof Hsl) return o;
|
|
1713
|
+
function hslConvert$1(o) {
|
|
1714
|
+
if (o instanceof Hsl$1) return new Hsl$1(o.h, o.s, o.l, o.opacity);
|
|
1715
|
+
if (!(o instanceof Color$1)) o = color$1(o);
|
|
1716
|
+
if (!o) return new Hsl$1;
|
|
1717
|
+
if (o instanceof Hsl$1) return o;
|
|
1718
1718
|
o = o.rgb();
|
|
1719
1719
|
var r = o.r / 255,
|
|
1720
1720
|
g = o.g / 255,
|
|
@@ -1733,28 +1733,28 @@ function hslConvert(o) {
|
|
|
1733
1733
|
} else {
|
|
1734
1734
|
s = l > 0 && l < 1 ? 0 : h;
|
|
1735
1735
|
}
|
|
1736
|
-
return new Hsl(h, s, l, o.opacity);
|
|
1736
|
+
return new Hsl$1(h, s, l, o.opacity);
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
|
-
function hsl$
|
|
1740
|
-
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
|
1739
|
+
function hsl$3(h, s, l, opacity) {
|
|
1740
|
+
return arguments.length === 1 ? hslConvert$1(h) : new Hsl$1(h, s, l, opacity == null ? 1 : opacity);
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
|
-
function Hsl(h, s, l, opacity) {
|
|
1743
|
+
function Hsl$1(h, s, l, opacity) {
|
|
1744
1744
|
this.h = +h;
|
|
1745
1745
|
this.s = +s;
|
|
1746
1746
|
this.l = +l;
|
|
1747
1747
|
this.opacity = +opacity;
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
|
-
define(Hsl, hsl$
|
|
1750
|
+
define$1(Hsl$1, hsl$3, extend$1(Color$1, {
|
|
1751
1751
|
brighter: function(k) {
|
|
1752
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
1753
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
1752
|
+
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
1753
|
+
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
1754
1754
|
},
|
|
1755
1755
|
darker: function(k) {
|
|
1756
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
1757
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
1756
|
+
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
1757
|
+
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
1758
1758
|
},
|
|
1759
1759
|
rgb: function() {
|
|
1760
1760
|
var h = this.h % 360 + (this.h < 0) * 360,
|
|
@@ -1762,10 +1762,10 @@ define(Hsl, hsl$2, extend(Color, {
|
|
|
1762
1762
|
l = this.l,
|
|
1763
1763
|
m2 = l + (l < 0.5 ? l : 1 - l) * s,
|
|
1764
1764
|
m1 = 2 * l - m2;
|
|
1765
|
-
return new Rgb(
|
|
1766
|
-
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
1767
|
-
hsl2rgb(h, m1, m2),
|
|
1768
|
-
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
1765
|
+
return new Rgb$1(
|
|
1766
|
+
hsl2rgb$1(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
1767
|
+
hsl2rgb$1(h, m1, m2),
|
|
1768
|
+
hsl2rgb$1(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
1769
1769
|
this.opacity
|
|
1770
1770
|
);
|
|
1771
1771
|
},
|
|
@@ -1785,7 +1785,7 @@ define(Hsl, hsl$2, extend(Color, {
|
|
|
1785
1785
|
}));
|
|
1786
1786
|
|
|
1787
1787
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
1788
|
-
function hsl2rgb(h, m1, m2) {
|
|
1788
|
+
function hsl2rgb$1(h, m1, m2) {
|
|
1789
1789
|
return (h < 60 ? m1 + (m2 - m1) * h / 60
|
|
1790
1790
|
: h < 180 ? m2
|
|
1791
1791
|
: h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
|
|
@@ -1796,167 +1796,159 @@ var deg2rad = Math.PI / 180;
|
|
|
1796
1796
|
var rad2deg = 180 / Math.PI;
|
|
1797
1797
|
|
|
1798
1798
|
// https://observablehq.com/@mbostock/lab-and-rgb
|
|
1799
|
-
var K = 18,
|
|
1800
|
-
Xn = 0.96422,
|
|
1801
|
-
Yn = 1,
|
|
1802
|
-
Zn = 0.82521,
|
|
1803
|
-
t0$
|
|
1804
|
-
t1$
|
|
1805
|
-
t2 = 3 * t1$
|
|
1806
|
-
t3 = t1$
|
|
1807
|
-
|
|
1808
|
-
function labConvert(o) {
|
|
1809
|
-
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
1810
|
-
if (o instanceof Hcl) return hcl2lab(o);
|
|
1811
|
-
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
1812
|
-
var r = rgb2lrgb(o.r),
|
|
1813
|
-
g = rgb2lrgb(o.g),
|
|
1814
|
-
b = rgb2lrgb(o.b),
|
|
1815
|
-
y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
|
|
1799
|
+
var K$1 = 18,
|
|
1800
|
+
Xn$1 = 0.96422,
|
|
1801
|
+
Yn$1 = 1,
|
|
1802
|
+
Zn$1 = 0.82521,
|
|
1803
|
+
t0$2 = 4 / 29,
|
|
1804
|
+
t1$2 = 6 / 29,
|
|
1805
|
+
t2$1 = 3 * t1$2 * t1$2,
|
|
1806
|
+
t3$1 = t1$2 * t1$2 * t1$2;
|
|
1807
|
+
|
|
1808
|
+
function labConvert$1(o) {
|
|
1809
|
+
if (o instanceof Lab$1) return new Lab$1(o.l, o.a, o.b, o.opacity);
|
|
1810
|
+
if (o instanceof Hcl$1) return hcl2lab$1(o);
|
|
1811
|
+
if (!(o instanceof Rgb$1)) o = rgbConvert$1(o);
|
|
1812
|
+
var r = rgb2lrgb$1(o.r),
|
|
1813
|
+
g = rgb2lrgb$1(o.g),
|
|
1814
|
+
b = rgb2lrgb$1(o.b),
|
|
1815
|
+
y = xyz2lab$1((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn$1), x, z;
|
|
1816
1816
|
if (r === g && g === b) x = z = y; else {
|
|
1817
|
-
x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
|
|
1818
|
-
z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
|
|
1817
|
+
x = xyz2lab$1((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn$1);
|
|
1818
|
+
z = xyz2lab$1((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn$1);
|
|
1819
1819
|
}
|
|
1820
|
-
return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
1820
|
+
return new Lab$1(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
|
-
function
|
|
1824
|
-
return new Lab(l,
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
function lab$1(l, a, b, opacity) {
|
|
1828
|
-
return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
|
|
1823
|
+
function lab$2(l, a, b, opacity) {
|
|
1824
|
+
return arguments.length === 1 ? labConvert$1(l) : new Lab$1(l, a, b, opacity == null ? 1 : opacity);
|
|
1829
1825
|
}
|
|
1830
1826
|
|
|
1831
|
-
function Lab(l, a, b, opacity) {
|
|
1827
|
+
function Lab$1(l, a, b, opacity) {
|
|
1832
1828
|
this.l = +l;
|
|
1833
1829
|
this.a = +a;
|
|
1834
1830
|
this.b = +b;
|
|
1835
1831
|
this.opacity = +opacity;
|
|
1836
1832
|
}
|
|
1837
1833
|
|
|
1838
|
-
define(Lab, lab$
|
|
1834
|
+
define$1(Lab$1, lab$2, extend$1(Color$1, {
|
|
1839
1835
|
brighter: function(k) {
|
|
1840
|
-
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
1836
|
+
return new Lab$1(this.l + K$1 * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
1841
1837
|
},
|
|
1842
1838
|
darker: function(k) {
|
|
1843
|
-
return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
1839
|
+
return new Lab$1(this.l - K$1 * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
1844
1840
|
},
|
|
1845
1841
|
rgb: function() {
|
|
1846
1842
|
var y = (this.l + 16) / 116,
|
|
1847
1843
|
x = isNaN(this.a) ? y : y + this.a / 500,
|
|
1848
1844
|
z = isNaN(this.b) ? y : y - this.b / 200;
|
|
1849
|
-
x = Xn * lab2xyz(x);
|
|
1850
|
-
y = Yn * lab2xyz(y);
|
|
1851
|
-
z = Zn * lab2xyz(z);
|
|
1852
|
-
return new Rgb(
|
|
1853
|
-
lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
|
|
1854
|
-
lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
|
|
1855
|
-
lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
|
|
1845
|
+
x = Xn$1 * lab2xyz$1(x);
|
|
1846
|
+
y = Yn$1 * lab2xyz$1(y);
|
|
1847
|
+
z = Zn$1 * lab2xyz$1(z);
|
|
1848
|
+
return new Rgb$1(
|
|
1849
|
+
lrgb2rgb$1( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
|
|
1850
|
+
lrgb2rgb$1(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
|
|
1851
|
+
lrgb2rgb$1( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
|
|
1856
1852
|
this.opacity
|
|
1857
1853
|
);
|
|
1858
1854
|
}
|
|
1859
1855
|
}));
|
|
1860
1856
|
|
|
1861
|
-
function xyz2lab(t) {
|
|
1862
|
-
return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0$
|
|
1857
|
+
function xyz2lab$1(t) {
|
|
1858
|
+
return t > t3$1 ? Math.pow(t, 1 / 3) : t / t2$1 + t0$2;
|
|
1863
1859
|
}
|
|
1864
1860
|
|
|
1865
|
-
function lab2xyz(t) {
|
|
1866
|
-
return t > t1$
|
|
1861
|
+
function lab2xyz$1(t) {
|
|
1862
|
+
return t > t1$2 ? t * t * t : t2$1 * (t - t0$2);
|
|
1867
1863
|
}
|
|
1868
1864
|
|
|
1869
|
-
function lrgb2rgb(x) {
|
|
1865
|
+
function lrgb2rgb$1(x) {
|
|
1870
1866
|
return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
|
|
1871
1867
|
}
|
|
1872
1868
|
|
|
1873
|
-
function rgb2lrgb(x) {
|
|
1869
|
+
function rgb2lrgb$1(x) {
|
|
1874
1870
|
return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
|
|
1875
1871
|
}
|
|
1876
1872
|
|
|
1877
|
-
function hclConvert(o) {
|
|
1878
|
-
if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
|
|
1879
|
-
if (!(o instanceof Lab)) o = labConvert(o);
|
|
1880
|
-
if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
1873
|
+
function hclConvert$1(o) {
|
|
1874
|
+
if (o instanceof Hcl$1) return new Hcl$1(o.h, o.c, o.l, o.opacity);
|
|
1875
|
+
if (!(o instanceof Lab$1)) o = labConvert$1(o);
|
|
1876
|
+
if (o.a === 0 && o.b === 0) return new Hcl$1(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
1881
1877
|
var h = Math.atan2(o.b, o.a) * rad2deg;
|
|
1882
|
-
return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
1878
|
+
return new Hcl$1(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
1883
1879
|
}
|
|
1884
1880
|
|
|
1885
|
-
function
|
|
1886
|
-
return arguments.length === 1 ? hclConvert(
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
function hcl$2(h, c, l, opacity) {
|
|
1890
|
-
return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
1881
|
+
function hcl$3(h, c, l, opacity) {
|
|
1882
|
+
return arguments.length === 1 ? hclConvert$1(h) : new Hcl$1(h, c, l, opacity == null ? 1 : opacity);
|
|
1891
1883
|
}
|
|
1892
1884
|
|
|
1893
|
-
function Hcl(h, c, l, opacity) {
|
|
1885
|
+
function Hcl$1(h, c, l, opacity) {
|
|
1894
1886
|
this.h = +h;
|
|
1895
1887
|
this.c = +c;
|
|
1896
1888
|
this.l = +l;
|
|
1897
1889
|
this.opacity = +opacity;
|
|
1898
1890
|
}
|
|
1899
1891
|
|
|
1900
|
-
function hcl2lab(o) {
|
|
1901
|
-
if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
|
|
1892
|
+
function hcl2lab$1(o) {
|
|
1893
|
+
if (isNaN(o.h)) return new Lab$1(o.l, 0, 0, o.opacity);
|
|
1902
1894
|
var h = o.h * deg2rad;
|
|
1903
|
-
return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
1895
|
+
return new Lab$1(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
1904
1896
|
}
|
|
1905
1897
|
|
|
1906
|
-
define(Hcl, hcl$
|
|
1898
|
+
define$1(Hcl$1, hcl$3, extend$1(Color$1, {
|
|
1907
1899
|
brighter: function(k) {
|
|
1908
|
-
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
1900
|
+
return new Hcl$1(this.h, this.c, this.l + K$1 * (k == null ? 1 : k), this.opacity);
|
|
1909
1901
|
},
|
|
1910
1902
|
darker: function(k) {
|
|
1911
|
-
return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
|
|
1903
|
+
return new Hcl$1(this.h, this.c, this.l - K$1 * (k == null ? 1 : k), this.opacity);
|
|
1912
1904
|
},
|
|
1913
1905
|
rgb: function() {
|
|
1914
|
-
return hcl2lab(this).rgb();
|
|
1906
|
+
return hcl2lab$1(this).rgb();
|
|
1915
1907
|
}
|
|
1916
1908
|
}));
|
|
1917
1909
|
|
|
1918
|
-
var A = -0.14861,
|
|
1919
|
-
B = +1.78277,
|
|
1920
|
-
C = -0.29227,
|
|
1921
|
-
D = -0.90649,
|
|
1922
|
-
E = +1.97294,
|
|
1923
|
-
ED = E * D,
|
|
1924
|
-
EB = E * B,
|
|
1925
|
-
BC_DA = B * C - D * A;
|
|
1926
|
-
|
|
1927
|
-
function cubehelixConvert(o) {
|
|
1928
|
-
if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
|
|
1929
|
-
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
1910
|
+
var A$1 = -0.14861,
|
|
1911
|
+
B$1 = +1.78277,
|
|
1912
|
+
C$1 = -0.29227,
|
|
1913
|
+
D$1 = -0.90649,
|
|
1914
|
+
E$1 = +1.97294,
|
|
1915
|
+
ED$1 = E$1 * D$1,
|
|
1916
|
+
EB$1 = E$1 * B$1,
|
|
1917
|
+
BC_DA$1 = B$1 * C$1 - D$1 * A$1;
|
|
1918
|
+
|
|
1919
|
+
function cubehelixConvert$1(o) {
|
|
1920
|
+
if (o instanceof Cubehelix$1) return new Cubehelix$1(o.h, o.s, o.l, o.opacity);
|
|
1921
|
+
if (!(o instanceof Rgb$1)) o = rgbConvert$1(o);
|
|
1930
1922
|
var r = o.r / 255,
|
|
1931
1923
|
g = o.g / 255,
|
|
1932
1924
|
b = o.b / 255,
|
|
1933
|
-
l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
|
|
1925
|
+
l = (BC_DA$1 * b + ED$1 * r - EB$1 * g) / (BC_DA$1 + ED$1 - EB$1),
|
|
1934
1926
|
bl = b - l,
|
|
1935
|
-
k = (E * (g - l) - C * bl) / D,
|
|
1936
|
-
s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
|
|
1927
|
+
k = (E$1 * (g - l) - C$1 * bl) / D$1,
|
|
1928
|
+
s = Math.sqrt(k * k + bl * bl) / (E$1 * l * (1 - l)), // NaN if l=0 or l=1
|
|
1937
1929
|
h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;
|
|
1938
|
-
return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
|
|
1930
|
+
return new Cubehelix$1(h < 0 ? h + 360 : h, s, l, o.opacity);
|
|
1939
1931
|
}
|
|
1940
1932
|
|
|
1941
|
-
function cubehelix$
|
|
1942
|
-
return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
|
|
1933
|
+
function cubehelix$4(h, s, l, opacity) {
|
|
1934
|
+
return arguments.length === 1 ? cubehelixConvert$1(h) : new Cubehelix$1(h, s, l, opacity == null ? 1 : opacity);
|
|
1943
1935
|
}
|
|
1944
1936
|
|
|
1945
|
-
function Cubehelix(h, s, l, opacity) {
|
|
1937
|
+
function Cubehelix$1(h, s, l, opacity) {
|
|
1946
1938
|
this.h = +h;
|
|
1947
1939
|
this.s = +s;
|
|
1948
1940
|
this.l = +l;
|
|
1949
1941
|
this.opacity = +opacity;
|
|
1950
1942
|
}
|
|
1951
1943
|
|
|
1952
|
-
define(Cubehelix, cubehelix$
|
|
1944
|
+
define$1(Cubehelix$1, cubehelix$4, extend$1(Color$1, {
|
|
1953
1945
|
brighter: function(k) {
|
|
1954
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
1955
|
-
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
1946
|
+
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
1947
|
+
return new Cubehelix$1(this.h, this.s, this.l * k, this.opacity);
|
|
1956
1948
|
},
|
|
1957
1949
|
darker: function(k) {
|
|
1958
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
1959
|
-
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
1950
|
+
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
1951
|
+
return new Cubehelix$1(this.h, this.s, this.l * k, this.opacity);
|
|
1960
1952
|
},
|
|
1961
1953
|
rgb: function() {
|
|
1962
1954
|
var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,
|
|
@@ -1964,10 +1956,10 @@ define(Cubehelix, cubehelix$3, extend(Color, {
|
|
|
1964
1956
|
a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
|
|
1965
1957
|
cosh = Math.cos(h),
|
|
1966
1958
|
sinh = Math.sin(h);
|
|
1967
|
-
return new Rgb(
|
|
1968
|
-
255 * (l + a * (A * cosh + B * sinh)),
|
|
1969
|
-
255 * (l + a * (C * cosh + D * sinh)),
|
|
1970
|
-
255 * (l + a * (E * cosh)),
|
|
1959
|
+
return new Rgb$1(
|
|
1960
|
+
255 * (l + a * (A$1 * cosh + B$1 * sinh)),
|
|
1961
|
+
255 * (l + a * (C$1 * cosh + D$1 * sinh)),
|
|
1962
|
+
255 * (l + a * (E$1 * cosh)),
|
|
1971
1963
|
this.opacity
|
|
1972
1964
|
);
|
|
1973
1965
|
}
|
|
@@ -2042,8 +2034,8 @@ function nogamma(a, b) {
|
|
|
2042
2034
|
var interpolateRgb = (function rgbGamma(y) {
|
|
2043
2035
|
var color = gamma(y);
|
|
2044
2036
|
|
|
2045
|
-
function rgb
|
|
2046
|
-
var r = color((start = rgb(start)).r, (end = rgb(end)).r),
|
|
2037
|
+
function rgb(start, end) {
|
|
2038
|
+
var r = color((start = rgb$1(start)).r, (end = rgb$1(end)).r),
|
|
2047
2039
|
g = color(start.g, end.g),
|
|
2048
2040
|
b = color(start.b, end.b),
|
|
2049
2041
|
opacity = nogamma(start.opacity, end.opacity);
|
|
@@ -2056,9 +2048,9 @@ var interpolateRgb = (function rgbGamma(y) {
|
|
|
2056
2048
|
};
|
|
2057
2049
|
}
|
|
2058
2050
|
|
|
2059
|
-
rgb
|
|
2051
|
+
rgb.gamma = rgbGamma;
|
|
2060
2052
|
|
|
2061
|
-
return rgb
|
|
2053
|
+
return rgb;
|
|
2062
2054
|
})(1);
|
|
2063
2055
|
|
|
2064
2056
|
function rgbSpline(spline) {
|
|
@@ -2069,7 +2061,7 @@ function rgbSpline(spline) {
|
|
|
2069
2061
|
b = new Array(n),
|
|
2070
2062
|
i, color;
|
|
2071
2063
|
for (i = 0; i < n; ++i) {
|
|
2072
|
-
color = rgb(colors[i]);
|
|
2064
|
+
color = rgb$1(colors[i]);
|
|
2073
2065
|
r[i] = color.r || 0;
|
|
2074
2066
|
g[i] = color.g || 0;
|
|
2075
2067
|
b[i] = color.b || 0;
|
|
@@ -2227,8 +2219,8 @@ function interpolate$1(a, b) {
|
|
|
2227
2219
|
var t = typeof b, c;
|
|
2228
2220
|
return b == null || t === "boolean" ? constant$5(b)
|
|
2229
2221
|
: (t === "number" ? reinterpolate$1
|
|
2230
|
-
: t === "string" ? ((c = color(b)) ? (b = c, interpolateRgb) : interpolateString)
|
|
2231
|
-
: b instanceof color ? interpolateRgb
|
|
2222
|
+
: t === "string" ? ((c = color$1(b)) ? (b = c, interpolateRgb) : interpolateString)
|
|
2223
|
+
: b instanceof color$1 ? interpolateRgb
|
|
2232
2224
|
: b instanceof Date ? date$1
|
|
2233
2225
|
: isNumberArray(b) ? numberArray
|
|
2234
2226
|
: Array.isArray(b) ? genericArray
|
|
@@ -2257,7 +2249,7 @@ function interpolateRound(a, b) {
|
|
|
2257
2249
|
};
|
|
2258
2250
|
}
|
|
2259
2251
|
|
|
2260
|
-
var degrees = 180 / Math.PI;
|
|
2252
|
+
var degrees$1 = 180 / Math.PI;
|
|
2261
2253
|
|
|
2262
2254
|
var identity$4 = {
|
|
2263
2255
|
translateX: 0,
|
|
@@ -2277,8 +2269,8 @@ function decompose(a, b, c, d, e, f) {
|
|
|
2277
2269
|
return {
|
|
2278
2270
|
translateX: e,
|
|
2279
2271
|
translateY: f,
|
|
2280
|
-
rotate: Math.atan2(b, a) * degrees,
|
|
2281
|
-
skewX: Math.atan(skewX) * degrees,
|
|
2272
|
+
rotate: Math.atan2(b, a) * degrees$1,
|
|
2273
|
+
skewX: Math.atan(skewX) * degrees$1,
|
|
2282
2274
|
scaleX: scaleX,
|
|
2283
2275
|
scaleY: scaleY
|
|
2284
2276
|
};
|
|
@@ -2434,9 +2426,9 @@ function interpolateZoom(p0, p1) {
|
|
|
2434
2426
|
return i;
|
|
2435
2427
|
}
|
|
2436
2428
|
|
|
2437
|
-
function hsl(hue) {
|
|
2429
|
+
function hsl$1(hue) {
|
|
2438
2430
|
return function(start, end) {
|
|
2439
|
-
var h = hue((start = hsl$
|
|
2431
|
+
var h = hue((start = hsl$3(start)).h, (end = hsl$3(end)).h),
|
|
2440
2432
|
s = nogamma(start.s, end.s),
|
|
2441
2433
|
l = nogamma(start.l, end.l),
|
|
2442
2434
|
opacity = nogamma(start.opacity, end.opacity);
|
|
@@ -2450,11 +2442,11 @@ function hsl(hue) {
|
|
|
2450
2442
|
}
|
|
2451
2443
|
}
|
|
2452
2444
|
|
|
2453
|
-
var hsl$
|
|
2454
|
-
var hslLong = hsl(nogamma);
|
|
2445
|
+
var hsl$2 = hsl$1(hue$1);
|
|
2446
|
+
var hslLong = hsl$1(nogamma);
|
|
2455
2447
|
|
|
2456
|
-
function lab(start, end) {
|
|
2457
|
-
var l = nogamma((start = lab$
|
|
2448
|
+
function lab$1(start, end) {
|
|
2449
|
+
var l = nogamma((start = lab$2(start)).l, (end = lab$2(end)).l),
|
|
2458
2450
|
a = nogamma(start.a, end.a),
|
|
2459
2451
|
b = nogamma(start.b, end.b),
|
|
2460
2452
|
opacity = nogamma(start.opacity, end.opacity);
|
|
@@ -2467,9 +2459,9 @@ function lab(start, end) {
|
|
|
2467
2459
|
};
|
|
2468
2460
|
}
|
|
2469
2461
|
|
|
2470
|
-
function hcl(hue) {
|
|
2462
|
+
function hcl$1(hue) {
|
|
2471
2463
|
return function(start, end) {
|
|
2472
|
-
var h = hue((start = hcl$
|
|
2464
|
+
var h = hue((start = hcl$3(start)).h, (end = hcl$3(end)).h),
|
|
2473
2465
|
c = nogamma(start.c, end.c),
|
|
2474
2466
|
l = nogamma(start.l, end.l),
|
|
2475
2467
|
opacity = nogamma(start.opacity, end.opacity);
|
|
@@ -2483,15 +2475,15 @@ function hcl(hue) {
|
|
|
2483
2475
|
}
|
|
2484
2476
|
}
|
|
2485
2477
|
|
|
2486
|
-
var hcl$
|
|
2487
|
-
var hclLong = hcl(nogamma);
|
|
2478
|
+
var hcl$2 = hcl$1(hue$1);
|
|
2479
|
+
var hclLong = hcl$1(nogamma);
|
|
2488
2480
|
|
|
2489
|
-
function cubehelix$
|
|
2481
|
+
function cubehelix$2(hue) {
|
|
2490
2482
|
return (function cubehelixGamma(y) {
|
|
2491
2483
|
y = +y;
|
|
2492
2484
|
|
|
2493
2485
|
function cubehelix(start, end) {
|
|
2494
|
-
var h = hue((start = cubehelix$
|
|
2486
|
+
var h = hue((start = cubehelix$4(start)).h, (end = cubehelix$4(end)).h),
|
|
2495
2487
|
s = nogamma(start.s, end.s),
|
|
2496
2488
|
l = nogamma(start.l, end.l),
|
|
2497
2489
|
opacity = nogamma(start.opacity, end.opacity);
|
|
@@ -2510,8 +2502,8 @@ function cubehelix$1(hue) {
|
|
|
2510
2502
|
})(1);
|
|
2511
2503
|
}
|
|
2512
2504
|
|
|
2513
|
-
var cubehelix$
|
|
2514
|
-
var cubehelixLong = cubehelix$
|
|
2505
|
+
var cubehelix$3 = cubehelix$2(hue$1);
|
|
2506
|
+
var cubehelixLong = cubehelix$2(nogamma);
|
|
2515
2507
|
|
|
2516
2508
|
function piecewise(interpolate, values) {
|
|
2517
2509
|
var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
|
|
@@ -2611,8 +2603,8 @@ function tweenValue(transition, name, value) {
|
|
|
2611
2603
|
function interpolate(a, b) {
|
|
2612
2604
|
var c;
|
|
2613
2605
|
return (typeof b === "number" ? reinterpolate$1
|
|
2614
|
-
: b instanceof color ? interpolateRgb
|
|
2615
|
-
: (c = color(b)) ? (b = c, interpolateRgb)
|
|
2606
|
+
: b instanceof color$1 ? interpolateRgb
|
|
2607
|
+
: (c = color$1(b)) ? (b = c, interpolateRgb)
|
|
2616
2608
|
: interpolateString)(a, b);
|
|
2617
2609
|
}
|
|
2618
2610
|
|
|
@@ -4713,8 +4705,8 @@ function precisionRound(step, max) {
|
|
|
4713
4705
|
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
4714
4706
|
}
|
|
4715
4707
|
|
|
4716
|
-
var t0 = new Date,
|
|
4717
|
-
t1 = new Date;
|
|
4708
|
+
var t0$1 = new Date,
|
|
4709
|
+
t1$1 = new Date;
|
|
4718
4710
|
|
|
4719
4711
|
function newInterval(floori, offseti, count, field) {
|
|
4720
4712
|
|
|
@@ -4766,9 +4758,9 @@ function newInterval(floori, offseti, count, field) {
|
|
|
4766
4758
|
|
|
4767
4759
|
if (count) {
|
|
4768
4760
|
interval.count = function(start, end) {
|
|
4769
|
-
t0.setTime(+start), t1.setTime(+end);
|
|
4770
|
-
floori(t0), floori(t1);
|
|
4771
|
-
return Math.floor(count(t0, t1));
|
|
4761
|
+
t0$1.setTime(+start), t1$1.setTime(+end);
|
|
4762
|
+
floori(t0$1), floori(t1$1);
|
|
4763
|
+
return Math.floor(count(t0$1, t1$1));
|
|
4772
4764
|
};
|
|
4773
4765
|
|
|
4774
4766
|
interval.every = function(step) {
|
|
@@ -8956,6 +8948,593 @@ var CanvasWidget = /** @class */ (function (_super) {
|
|
|
8956
8948
|
}(HTMLWidget));
|
|
8957
8949
|
CanvasWidget.prototype._class += " common_CanvasWidget";
|
|
8958
8950
|
|
|
8951
|
+
function define(constructor, factory, prototype) {
|
|
8952
|
+
constructor.prototype = factory.prototype = prototype;
|
|
8953
|
+
prototype.constructor = constructor;
|
|
8954
|
+
}
|
|
8955
|
+
|
|
8956
|
+
function extend(parent, definition) {
|
|
8957
|
+
var prototype = Object.create(parent.prototype);
|
|
8958
|
+
for (var key in definition) prototype[key] = definition[key];
|
|
8959
|
+
return prototype;
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8962
|
+
function Color() {}
|
|
8963
|
+
|
|
8964
|
+
var darker = 0.7;
|
|
8965
|
+
var brighter = 1 / darker;
|
|
8966
|
+
|
|
8967
|
+
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
8968
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
8969
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
8970
|
+
reHex = /^#([0-9a-f]{3,8})$/,
|
|
8971
|
+
reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
|
|
8972
|
+
reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
|
|
8973
|
+
reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
|
|
8974
|
+
reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
|
|
8975
|
+
reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
|
|
8976
|
+
reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
|
8977
|
+
|
|
8978
|
+
var named = {
|
|
8979
|
+
aliceblue: 0xf0f8ff,
|
|
8980
|
+
antiquewhite: 0xfaebd7,
|
|
8981
|
+
aqua: 0x00ffff,
|
|
8982
|
+
aquamarine: 0x7fffd4,
|
|
8983
|
+
azure: 0xf0ffff,
|
|
8984
|
+
beige: 0xf5f5dc,
|
|
8985
|
+
bisque: 0xffe4c4,
|
|
8986
|
+
black: 0x000000,
|
|
8987
|
+
blanchedalmond: 0xffebcd,
|
|
8988
|
+
blue: 0x0000ff,
|
|
8989
|
+
blueviolet: 0x8a2be2,
|
|
8990
|
+
brown: 0xa52a2a,
|
|
8991
|
+
burlywood: 0xdeb887,
|
|
8992
|
+
cadetblue: 0x5f9ea0,
|
|
8993
|
+
chartreuse: 0x7fff00,
|
|
8994
|
+
chocolate: 0xd2691e,
|
|
8995
|
+
coral: 0xff7f50,
|
|
8996
|
+
cornflowerblue: 0x6495ed,
|
|
8997
|
+
cornsilk: 0xfff8dc,
|
|
8998
|
+
crimson: 0xdc143c,
|
|
8999
|
+
cyan: 0x00ffff,
|
|
9000
|
+
darkblue: 0x00008b,
|
|
9001
|
+
darkcyan: 0x008b8b,
|
|
9002
|
+
darkgoldenrod: 0xb8860b,
|
|
9003
|
+
darkgray: 0xa9a9a9,
|
|
9004
|
+
darkgreen: 0x006400,
|
|
9005
|
+
darkgrey: 0xa9a9a9,
|
|
9006
|
+
darkkhaki: 0xbdb76b,
|
|
9007
|
+
darkmagenta: 0x8b008b,
|
|
9008
|
+
darkolivegreen: 0x556b2f,
|
|
9009
|
+
darkorange: 0xff8c00,
|
|
9010
|
+
darkorchid: 0x9932cc,
|
|
9011
|
+
darkred: 0x8b0000,
|
|
9012
|
+
darksalmon: 0xe9967a,
|
|
9013
|
+
darkseagreen: 0x8fbc8f,
|
|
9014
|
+
darkslateblue: 0x483d8b,
|
|
9015
|
+
darkslategray: 0x2f4f4f,
|
|
9016
|
+
darkslategrey: 0x2f4f4f,
|
|
9017
|
+
darkturquoise: 0x00ced1,
|
|
9018
|
+
darkviolet: 0x9400d3,
|
|
9019
|
+
deeppink: 0xff1493,
|
|
9020
|
+
deepskyblue: 0x00bfff,
|
|
9021
|
+
dimgray: 0x696969,
|
|
9022
|
+
dimgrey: 0x696969,
|
|
9023
|
+
dodgerblue: 0x1e90ff,
|
|
9024
|
+
firebrick: 0xb22222,
|
|
9025
|
+
floralwhite: 0xfffaf0,
|
|
9026
|
+
forestgreen: 0x228b22,
|
|
9027
|
+
fuchsia: 0xff00ff,
|
|
9028
|
+
gainsboro: 0xdcdcdc,
|
|
9029
|
+
ghostwhite: 0xf8f8ff,
|
|
9030
|
+
gold: 0xffd700,
|
|
9031
|
+
goldenrod: 0xdaa520,
|
|
9032
|
+
gray: 0x808080,
|
|
9033
|
+
green: 0x008000,
|
|
9034
|
+
greenyellow: 0xadff2f,
|
|
9035
|
+
grey: 0x808080,
|
|
9036
|
+
honeydew: 0xf0fff0,
|
|
9037
|
+
hotpink: 0xff69b4,
|
|
9038
|
+
indianred: 0xcd5c5c,
|
|
9039
|
+
indigo: 0x4b0082,
|
|
9040
|
+
ivory: 0xfffff0,
|
|
9041
|
+
khaki: 0xf0e68c,
|
|
9042
|
+
lavender: 0xe6e6fa,
|
|
9043
|
+
lavenderblush: 0xfff0f5,
|
|
9044
|
+
lawngreen: 0x7cfc00,
|
|
9045
|
+
lemonchiffon: 0xfffacd,
|
|
9046
|
+
lightblue: 0xadd8e6,
|
|
9047
|
+
lightcoral: 0xf08080,
|
|
9048
|
+
lightcyan: 0xe0ffff,
|
|
9049
|
+
lightgoldenrodyellow: 0xfafad2,
|
|
9050
|
+
lightgray: 0xd3d3d3,
|
|
9051
|
+
lightgreen: 0x90ee90,
|
|
9052
|
+
lightgrey: 0xd3d3d3,
|
|
9053
|
+
lightpink: 0xffb6c1,
|
|
9054
|
+
lightsalmon: 0xffa07a,
|
|
9055
|
+
lightseagreen: 0x20b2aa,
|
|
9056
|
+
lightskyblue: 0x87cefa,
|
|
9057
|
+
lightslategray: 0x778899,
|
|
9058
|
+
lightslategrey: 0x778899,
|
|
9059
|
+
lightsteelblue: 0xb0c4de,
|
|
9060
|
+
lightyellow: 0xffffe0,
|
|
9061
|
+
lime: 0x00ff00,
|
|
9062
|
+
limegreen: 0x32cd32,
|
|
9063
|
+
linen: 0xfaf0e6,
|
|
9064
|
+
magenta: 0xff00ff,
|
|
9065
|
+
maroon: 0x800000,
|
|
9066
|
+
mediumaquamarine: 0x66cdaa,
|
|
9067
|
+
mediumblue: 0x0000cd,
|
|
9068
|
+
mediumorchid: 0xba55d3,
|
|
9069
|
+
mediumpurple: 0x9370db,
|
|
9070
|
+
mediumseagreen: 0x3cb371,
|
|
9071
|
+
mediumslateblue: 0x7b68ee,
|
|
9072
|
+
mediumspringgreen: 0x00fa9a,
|
|
9073
|
+
mediumturquoise: 0x48d1cc,
|
|
9074
|
+
mediumvioletred: 0xc71585,
|
|
9075
|
+
midnightblue: 0x191970,
|
|
9076
|
+
mintcream: 0xf5fffa,
|
|
9077
|
+
mistyrose: 0xffe4e1,
|
|
9078
|
+
moccasin: 0xffe4b5,
|
|
9079
|
+
navajowhite: 0xffdead,
|
|
9080
|
+
navy: 0x000080,
|
|
9081
|
+
oldlace: 0xfdf5e6,
|
|
9082
|
+
olive: 0x808000,
|
|
9083
|
+
olivedrab: 0x6b8e23,
|
|
9084
|
+
orange: 0xffa500,
|
|
9085
|
+
orangered: 0xff4500,
|
|
9086
|
+
orchid: 0xda70d6,
|
|
9087
|
+
palegoldenrod: 0xeee8aa,
|
|
9088
|
+
palegreen: 0x98fb98,
|
|
9089
|
+
paleturquoise: 0xafeeee,
|
|
9090
|
+
palevioletred: 0xdb7093,
|
|
9091
|
+
papayawhip: 0xffefd5,
|
|
9092
|
+
peachpuff: 0xffdab9,
|
|
9093
|
+
peru: 0xcd853f,
|
|
9094
|
+
pink: 0xffc0cb,
|
|
9095
|
+
plum: 0xdda0dd,
|
|
9096
|
+
powderblue: 0xb0e0e6,
|
|
9097
|
+
purple: 0x800080,
|
|
9098
|
+
rebeccapurple: 0x663399,
|
|
9099
|
+
red: 0xff0000,
|
|
9100
|
+
rosybrown: 0xbc8f8f,
|
|
9101
|
+
royalblue: 0x4169e1,
|
|
9102
|
+
saddlebrown: 0x8b4513,
|
|
9103
|
+
salmon: 0xfa8072,
|
|
9104
|
+
sandybrown: 0xf4a460,
|
|
9105
|
+
seagreen: 0x2e8b57,
|
|
9106
|
+
seashell: 0xfff5ee,
|
|
9107
|
+
sienna: 0xa0522d,
|
|
9108
|
+
silver: 0xc0c0c0,
|
|
9109
|
+
skyblue: 0x87ceeb,
|
|
9110
|
+
slateblue: 0x6a5acd,
|
|
9111
|
+
slategray: 0x708090,
|
|
9112
|
+
slategrey: 0x708090,
|
|
9113
|
+
snow: 0xfffafa,
|
|
9114
|
+
springgreen: 0x00ff7f,
|
|
9115
|
+
steelblue: 0x4682b4,
|
|
9116
|
+
tan: 0xd2b48c,
|
|
9117
|
+
teal: 0x008080,
|
|
9118
|
+
thistle: 0xd8bfd8,
|
|
9119
|
+
tomato: 0xff6347,
|
|
9120
|
+
turquoise: 0x40e0d0,
|
|
9121
|
+
violet: 0xee82ee,
|
|
9122
|
+
wheat: 0xf5deb3,
|
|
9123
|
+
white: 0xffffff,
|
|
9124
|
+
whitesmoke: 0xf5f5f5,
|
|
9125
|
+
yellow: 0xffff00,
|
|
9126
|
+
yellowgreen: 0x9acd32
|
|
9127
|
+
};
|
|
9128
|
+
|
|
9129
|
+
define(Color, color, {
|
|
9130
|
+
copy(channels) {
|
|
9131
|
+
return Object.assign(new this.constructor, this, channels);
|
|
9132
|
+
},
|
|
9133
|
+
displayable() {
|
|
9134
|
+
return this.rgb().displayable();
|
|
9135
|
+
},
|
|
9136
|
+
hex: color_formatHex, // Deprecated! Use color.formatHex.
|
|
9137
|
+
formatHex: color_formatHex,
|
|
9138
|
+
formatHex8: color_formatHex8,
|
|
9139
|
+
formatHsl: color_formatHsl,
|
|
9140
|
+
formatRgb: color_formatRgb,
|
|
9141
|
+
toString: color_formatRgb
|
|
9142
|
+
});
|
|
9143
|
+
|
|
9144
|
+
function color_formatHex() {
|
|
9145
|
+
return this.rgb().formatHex();
|
|
9146
|
+
}
|
|
9147
|
+
|
|
9148
|
+
function color_formatHex8() {
|
|
9149
|
+
return this.rgb().formatHex8();
|
|
9150
|
+
}
|
|
9151
|
+
|
|
9152
|
+
function color_formatHsl() {
|
|
9153
|
+
return hslConvert(this).formatHsl();
|
|
9154
|
+
}
|
|
9155
|
+
|
|
9156
|
+
function color_formatRgb() {
|
|
9157
|
+
return this.rgb().formatRgb();
|
|
9158
|
+
}
|
|
9159
|
+
|
|
9160
|
+
function color(format) {
|
|
9161
|
+
var m, l;
|
|
9162
|
+
format = (format + "").trim().toLowerCase();
|
|
9163
|
+
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
|
|
9164
|
+
: l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
|
|
9165
|
+
: l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
|
9166
|
+
: l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
|
|
9167
|
+
: null) // invalid hex
|
|
9168
|
+
: (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
|
9169
|
+
: (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
|
9170
|
+
: (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
|
9171
|
+
: (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
|
9172
|
+
: (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
|
9173
|
+
: (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
|
9174
|
+
: named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
|
|
9175
|
+
: format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
|
|
9176
|
+
: null;
|
|
9177
|
+
}
|
|
9178
|
+
|
|
9179
|
+
function rgbn(n) {
|
|
9180
|
+
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
|
9181
|
+
}
|
|
9182
|
+
|
|
9183
|
+
function rgba(r, g, b, a) {
|
|
9184
|
+
if (a <= 0) r = g = b = NaN;
|
|
9185
|
+
return new Rgb(r, g, b, a);
|
|
9186
|
+
}
|
|
9187
|
+
|
|
9188
|
+
function rgbConvert(o) {
|
|
9189
|
+
if (!(o instanceof Color)) o = color(o);
|
|
9190
|
+
if (!o) return new Rgb;
|
|
9191
|
+
o = o.rgb();
|
|
9192
|
+
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
9193
|
+
}
|
|
9194
|
+
|
|
9195
|
+
function rgb(r, g, b, opacity) {
|
|
9196
|
+
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
|
9197
|
+
}
|
|
9198
|
+
|
|
9199
|
+
function Rgb(r, g, b, opacity) {
|
|
9200
|
+
this.r = +r;
|
|
9201
|
+
this.g = +g;
|
|
9202
|
+
this.b = +b;
|
|
9203
|
+
this.opacity = +opacity;
|
|
9204
|
+
}
|
|
9205
|
+
|
|
9206
|
+
define(Rgb, rgb, extend(Color, {
|
|
9207
|
+
brighter(k) {
|
|
9208
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
9209
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
9210
|
+
},
|
|
9211
|
+
darker(k) {
|
|
9212
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
9213
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
9214
|
+
},
|
|
9215
|
+
rgb() {
|
|
9216
|
+
return this;
|
|
9217
|
+
},
|
|
9218
|
+
clamp() {
|
|
9219
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
9220
|
+
},
|
|
9221
|
+
displayable() {
|
|
9222
|
+
return (-0.5 <= this.r && this.r < 255.5)
|
|
9223
|
+
&& (-0.5 <= this.g && this.g < 255.5)
|
|
9224
|
+
&& (-0.5 <= this.b && this.b < 255.5)
|
|
9225
|
+
&& (0 <= this.opacity && this.opacity <= 1);
|
|
9226
|
+
},
|
|
9227
|
+
hex: rgb_formatHex, // Deprecated! Use color.formatHex.
|
|
9228
|
+
formatHex: rgb_formatHex,
|
|
9229
|
+
formatHex8: rgb_formatHex8,
|
|
9230
|
+
formatRgb: rgb_formatRgb,
|
|
9231
|
+
toString: rgb_formatRgb
|
|
9232
|
+
}));
|
|
9233
|
+
|
|
9234
|
+
function rgb_formatHex() {
|
|
9235
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
9236
|
+
}
|
|
9237
|
+
|
|
9238
|
+
function rgb_formatHex8() {
|
|
9239
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
9240
|
+
}
|
|
9241
|
+
|
|
9242
|
+
function rgb_formatRgb() {
|
|
9243
|
+
const a = clampa(this.opacity);
|
|
9244
|
+
return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
|
|
9245
|
+
}
|
|
9246
|
+
|
|
9247
|
+
function clampa(opacity) {
|
|
9248
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
9249
|
+
}
|
|
9250
|
+
|
|
9251
|
+
function clampi(value) {
|
|
9252
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
9253
|
+
}
|
|
9254
|
+
|
|
9255
|
+
function hex(value) {
|
|
9256
|
+
value = clampi(value);
|
|
9257
|
+
return (value < 16 ? "0" : "") + value.toString(16);
|
|
9258
|
+
}
|
|
9259
|
+
|
|
9260
|
+
function hsla(h, s, l, a) {
|
|
9261
|
+
if (a <= 0) h = s = l = NaN;
|
|
9262
|
+
else if (l <= 0 || l >= 1) h = s = NaN;
|
|
9263
|
+
else if (s <= 0) h = NaN;
|
|
9264
|
+
return new Hsl(h, s, l, a);
|
|
9265
|
+
}
|
|
9266
|
+
|
|
9267
|
+
function hslConvert(o) {
|
|
9268
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
9269
|
+
if (!(o instanceof Color)) o = color(o);
|
|
9270
|
+
if (!o) return new Hsl;
|
|
9271
|
+
if (o instanceof Hsl) return o;
|
|
9272
|
+
o = o.rgb();
|
|
9273
|
+
var r = o.r / 255,
|
|
9274
|
+
g = o.g / 255,
|
|
9275
|
+
b = o.b / 255,
|
|
9276
|
+
min = Math.min(r, g, b),
|
|
9277
|
+
max = Math.max(r, g, b),
|
|
9278
|
+
h = NaN,
|
|
9279
|
+
s = max - min,
|
|
9280
|
+
l = (max + min) / 2;
|
|
9281
|
+
if (s) {
|
|
9282
|
+
if (r === max) h = (g - b) / s + (g < b) * 6;
|
|
9283
|
+
else if (g === max) h = (b - r) / s + 2;
|
|
9284
|
+
else h = (r - g) / s + 4;
|
|
9285
|
+
s /= l < 0.5 ? max + min : 2 - max - min;
|
|
9286
|
+
h *= 60;
|
|
9287
|
+
} else {
|
|
9288
|
+
s = l > 0 && l < 1 ? 0 : h;
|
|
9289
|
+
}
|
|
9290
|
+
return new Hsl(h, s, l, o.opacity);
|
|
9291
|
+
}
|
|
9292
|
+
|
|
9293
|
+
function hsl(h, s, l, opacity) {
|
|
9294
|
+
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
|
9295
|
+
}
|
|
9296
|
+
|
|
9297
|
+
function Hsl(h, s, l, opacity) {
|
|
9298
|
+
this.h = +h;
|
|
9299
|
+
this.s = +s;
|
|
9300
|
+
this.l = +l;
|
|
9301
|
+
this.opacity = +opacity;
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
define(Hsl, hsl, extend(Color, {
|
|
9305
|
+
brighter(k) {
|
|
9306
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
9307
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
9308
|
+
},
|
|
9309
|
+
darker(k) {
|
|
9310
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
9311
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
9312
|
+
},
|
|
9313
|
+
rgb() {
|
|
9314
|
+
var h = this.h % 360 + (this.h < 0) * 360,
|
|
9315
|
+
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
|
9316
|
+
l = this.l,
|
|
9317
|
+
m2 = l + (l < 0.5 ? l : 1 - l) * s,
|
|
9318
|
+
m1 = 2 * l - m2;
|
|
9319
|
+
return new Rgb(
|
|
9320
|
+
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
9321
|
+
hsl2rgb(h, m1, m2),
|
|
9322
|
+
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
9323
|
+
this.opacity
|
|
9324
|
+
);
|
|
9325
|
+
},
|
|
9326
|
+
clamp() {
|
|
9327
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
9328
|
+
},
|
|
9329
|
+
displayable() {
|
|
9330
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s))
|
|
9331
|
+
&& (0 <= this.l && this.l <= 1)
|
|
9332
|
+
&& (0 <= this.opacity && this.opacity <= 1);
|
|
9333
|
+
},
|
|
9334
|
+
formatHsl() {
|
|
9335
|
+
const a = clampa(this.opacity);
|
|
9336
|
+
return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
|
|
9337
|
+
}
|
|
9338
|
+
}));
|
|
9339
|
+
|
|
9340
|
+
function clamph(value) {
|
|
9341
|
+
value = (value || 0) % 360;
|
|
9342
|
+
return value < 0 ? value + 360 : value;
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9345
|
+
function clampt(value) {
|
|
9346
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
9347
|
+
}
|
|
9348
|
+
|
|
9349
|
+
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
9350
|
+
function hsl2rgb(h, m1, m2) {
|
|
9351
|
+
return (h < 60 ? m1 + (m2 - m1) * h / 60
|
|
9352
|
+
: h < 180 ? m2
|
|
9353
|
+
: h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
|
|
9354
|
+
: m1) * 255;
|
|
9355
|
+
}
|
|
9356
|
+
|
|
9357
|
+
const radians = Math.PI / 180;
|
|
9358
|
+
const degrees = 180 / Math.PI;
|
|
9359
|
+
|
|
9360
|
+
// https://observablehq.com/@mbostock/lab-and-rgb
|
|
9361
|
+
const K = 18,
|
|
9362
|
+
Xn = 0.96422,
|
|
9363
|
+
Yn = 1,
|
|
9364
|
+
Zn = 0.82521,
|
|
9365
|
+
t0 = 4 / 29,
|
|
9366
|
+
t1 = 6 / 29,
|
|
9367
|
+
t2 = 3 * t1 * t1,
|
|
9368
|
+
t3 = t1 * t1 * t1;
|
|
9369
|
+
|
|
9370
|
+
function labConvert(o) {
|
|
9371
|
+
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
9372
|
+
if (o instanceof Hcl) return hcl2lab(o);
|
|
9373
|
+
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
9374
|
+
var r = rgb2lrgb(o.r),
|
|
9375
|
+
g = rgb2lrgb(o.g),
|
|
9376
|
+
b = rgb2lrgb(o.b),
|
|
9377
|
+
y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
|
|
9378
|
+
if (r === g && g === b) x = z = y; else {
|
|
9379
|
+
x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
|
|
9380
|
+
z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
|
|
9381
|
+
}
|
|
9382
|
+
return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
9383
|
+
}
|
|
9384
|
+
|
|
9385
|
+
function gray(l, opacity) {
|
|
9386
|
+
return new Lab(l, 0, 0, opacity == null ? 1 : opacity);
|
|
9387
|
+
}
|
|
9388
|
+
|
|
9389
|
+
function lab(l, a, b, opacity) {
|
|
9390
|
+
return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
function Lab(l, a, b, opacity) {
|
|
9394
|
+
this.l = +l;
|
|
9395
|
+
this.a = +a;
|
|
9396
|
+
this.b = +b;
|
|
9397
|
+
this.opacity = +opacity;
|
|
9398
|
+
}
|
|
9399
|
+
|
|
9400
|
+
define(Lab, lab, extend(Color, {
|
|
9401
|
+
brighter(k) {
|
|
9402
|
+
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
9403
|
+
},
|
|
9404
|
+
darker(k) {
|
|
9405
|
+
return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
9406
|
+
},
|
|
9407
|
+
rgb() {
|
|
9408
|
+
var y = (this.l + 16) / 116,
|
|
9409
|
+
x = isNaN(this.a) ? y : y + this.a / 500,
|
|
9410
|
+
z = isNaN(this.b) ? y : y - this.b / 200;
|
|
9411
|
+
x = Xn * lab2xyz(x);
|
|
9412
|
+
y = Yn * lab2xyz(y);
|
|
9413
|
+
z = Zn * lab2xyz(z);
|
|
9414
|
+
return new Rgb(
|
|
9415
|
+
lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
|
|
9416
|
+
lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
|
|
9417
|
+
lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
|
|
9418
|
+
this.opacity
|
|
9419
|
+
);
|
|
9420
|
+
}
|
|
9421
|
+
}));
|
|
9422
|
+
|
|
9423
|
+
function xyz2lab(t) {
|
|
9424
|
+
return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
|
|
9425
|
+
}
|
|
9426
|
+
|
|
9427
|
+
function lab2xyz(t) {
|
|
9428
|
+
return t > t1 ? t * t * t : t2 * (t - t0);
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
function lrgb2rgb(x) {
|
|
9432
|
+
return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
|
|
9433
|
+
}
|
|
9434
|
+
|
|
9435
|
+
function rgb2lrgb(x) {
|
|
9436
|
+
return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
|
|
9437
|
+
}
|
|
9438
|
+
|
|
9439
|
+
function hclConvert(o) {
|
|
9440
|
+
if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
|
|
9441
|
+
if (!(o instanceof Lab)) o = labConvert(o);
|
|
9442
|
+
if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
9443
|
+
var h = Math.atan2(o.b, o.a) * degrees;
|
|
9444
|
+
return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
9445
|
+
}
|
|
9446
|
+
|
|
9447
|
+
function lch(l, c, h, opacity) {
|
|
9448
|
+
return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
9449
|
+
}
|
|
9450
|
+
|
|
9451
|
+
function hcl(h, c, l, opacity) {
|
|
9452
|
+
return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
9453
|
+
}
|
|
9454
|
+
|
|
9455
|
+
function Hcl(h, c, l, opacity) {
|
|
9456
|
+
this.h = +h;
|
|
9457
|
+
this.c = +c;
|
|
9458
|
+
this.l = +l;
|
|
9459
|
+
this.opacity = +opacity;
|
|
9460
|
+
}
|
|
9461
|
+
|
|
9462
|
+
function hcl2lab(o) {
|
|
9463
|
+
if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
|
|
9464
|
+
var h = o.h * radians;
|
|
9465
|
+
return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
9466
|
+
}
|
|
9467
|
+
|
|
9468
|
+
define(Hcl, hcl, extend(Color, {
|
|
9469
|
+
brighter(k) {
|
|
9470
|
+
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
9471
|
+
},
|
|
9472
|
+
darker(k) {
|
|
9473
|
+
return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
|
|
9474
|
+
},
|
|
9475
|
+
rgb() {
|
|
9476
|
+
return hcl2lab(this).rgb();
|
|
9477
|
+
}
|
|
9478
|
+
}));
|
|
9479
|
+
|
|
9480
|
+
var A = -0.14861,
|
|
9481
|
+
B = +1.78277,
|
|
9482
|
+
C = -0.29227,
|
|
9483
|
+
D = -0.90649,
|
|
9484
|
+
E = +1.97294,
|
|
9485
|
+
ED = E * D,
|
|
9486
|
+
EB = E * B,
|
|
9487
|
+
BC_DA = B * C - D * A;
|
|
9488
|
+
|
|
9489
|
+
function cubehelixConvert(o) {
|
|
9490
|
+
if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
|
|
9491
|
+
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
9492
|
+
var r = o.r / 255,
|
|
9493
|
+
g = o.g / 255,
|
|
9494
|
+
b = o.b / 255,
|
|
9495
|
+
l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
|
|
9496
|
+
bl = b - l,
|
|
9497
|
+
k = (E * (g - l) - C * bl) / D,
|
|
9498
|
+
s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
|
|
9499
|
+
h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;
|
|
9500
|
+
return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
|
|
9501
|
+
}
|
|
9502
|
+
|
|
9503
|
+
function cubehelix$1(h, s, l, opacity) {
|
|
9504
|
+
return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
|
|
9505
|
+
}
|
|
9506
|
+
|
|
9507
|
+
function Cubehelix(h, s, l, opacity) {
|
|
9508
|
+
this.h = +h;
|
|
9509
|
+
this.s = +s;
|
|
9510
|
+
this.l = +l;
|
|
9511
|
+
this.opacity = +opacity;
|
|
9512
|
+
}
|
|
9513
|
+
|
|
9514
|
+
define(Cubehelix, cubehelix$1, extend(Color, {
|
|
9515
|
+
brighter(k) {
|
|
9516
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
9517
|
+
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
9518
|
+
},
|
|
9519
|
+
darker(k) {
|
|
9520
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
9521
|
+
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
9522
|
+
},
|
|
9523
|
+
rgb() {
|
|
9524
|
+
var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,
|
|
9525
|
+
l = +this.l,
|
|
9526
|
+
a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
|
|
9527
|
+
cosh = Math.cos(h),
|
|
9528
|
+
sinh = Math.sin(h);
|
|
9529
|
+
return new Rgb(
|
|
9530
|
+
255 * (l + a * (A * cosh + B * sinh)),
|
|
9531
|
+
255 * (l + a * (C * cosh + D * sinh)),
|
|
9532
|
+
255 * (l + a * (E * cosh)),
|
|
9533
|
+
this.opacity
|
|
9534
|
+
);
|
|
9535
|
+
}
|
|
9536
|
+
}));
|
|
9537
|
+
|
|
8959
9538
|
var _version = "1.14.2-dev";
|
|
8960
9539
|
function version() {
|
|
8961
9540
|
return _version;
|
|
@@ -10906,13 +11485,13 @@ var d3SchemeCategory20c = colors("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0
|
|
|
10906
11485
|
|
|
10907
11486
|
var d3SchemeCategory20 = colors("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");
|
|
10908
11487
|
|
|
10909
|
-
var cubehelix = cubehelixLong(cubehelix$
|
|
11488
|
+
var cubehelix = cubehelixLong(cubehelix$4(300, 0.5, 0.0), cubehelix$4(-240, 0.5, 1.0));
|
|
10910
11489
|
|
|
10911
|
-
var warm = cubehelixLong(cubehelix$
|
|
11490
|
+
var warm = cubehelixLong(cubehelix$4(-100, 0.75, 0.35), cubehelix$4(80, 1.50, 0.8));
|
|
10912
11491
|
|
|
10913
|
-
var cool = cubehelixLong(cubehelix$
|
|
11492
|
+
var cool = cubehelixLong(cubehelix$4(260, 0.75, 0.35), cubehelix$4(80, 1.50, 0.8));
|
|
10914
11493
|
|
|
10915
|
-
var rainbow$1 = cubehelix$
|
|
11494
|
+
var rainbow$1 = cubehelix$4();
|
|
10916
11495
|
|
|
10917
11496
|
function rainbow$2(t) {
|
|
10918
11497
|
if (t < 0 || t > 1) t -= Math.floor(t);
|
|
@@ -11135,7 +11714,7 @@ function palette_rainbow(id, _colors, _steps) {
|
|
|
11135
11714
|
var scale_1 = linear()
|
|
11136
11715
|
.domain([0, subPaletteSize])
|
|
11137
11716
|
.range([prevColor, color])
|
|
11138
|
-
.interpolate(lab);
|
|
11717
|
+
.interpolate(lab$1);
|
|
11139
11718
|
for (var i = 0; i < subPaletteSize; ++i) {
|
|
11140
11719
|
range.push(scale_1(i));
|
|
11141
11720
|
}
|
|
@@ -15054,5 +15633,5 @@ function brush$1(dim) {
|
|
|
15054
15633
|
|
|
15055
15634
|
var d3Event = function () { return event; };
|
|
15056
15635
|
|
|
15057
|
-
export { BUILD_VERSION, Button, CanvasWidget, Class, Database, Entity, EntityCard, EntityPin, EntityRect, EntityRectList, EntityVertex, FAChar, FormatSpecifier, HTMLWidget, Icon, IconBar, Image$1 as Image, List, Menu, Meta, PKG_NAME, PKG_VERSION, Palette, Platform, ProgressBar, PropertyExt, ResizeSurface, SVGGlowFilter, SVGWidget, SVGZoomWidget, SelectDropDown, SelectionBar, SelectionButton, Shape, Spacer, StickyButton, Surface, Text, TextBox, TitleBar, ToggleButton, Utility, Widget, WidgetArray, active, ascending, autoType, bisectRight as bisect, bisectLeft, bisectRight, bisector, brush, brushSelection, brushX, brushY, point$1 as clientPoint, color, create$1 as create, creator, cross, csvFormat, csvFormatBody, csvFormatRow, csvFormatRows, csvFormatValue, csvParse, csvParseRows, cubehelix$
|
|
15636
|
+
export { BUILD_VERSION, Button, CanvasWidget, Class, Database, Entity, EntityCard, EntityPin, EntityRect, EntityRectList, EntityVertex, FAChar, FormatSpecifier, HTMLWidget, Icon, IconBar, Image$1 as Image, List, Menu, Meta, PKG_NAME, PKG_VERSION, Palette, Platform, ProgressBar, PropertyExt, ResizeSurface, SVGGlowFilter, SVGWidget, SVGZoomWidget, SelectDropDown, SelectionBar, SelectionButton, Shape, Spacer, StickyButton, Surface, Text, TextBox, TitleBar, ToggleButton, Utility, Widget, WidgetArray, active, ascending, autoType, bisectRight as bisect, bisectLeft, bisectRight, bisector, brush, brushSelection, brushX, brushY, point$1 as clientPoint, color, create$1 as create, creator, cross, csvFormat, csvFormatBody, csvFormatRow, csvFormatRows, csvFormatValue, csvParse, csvParseRows, cubehelix$1 as cubehelix, customEvent, d3Event, d3Descending as descending, d3Deviation as deviation, dispatch, d3Drag as drag, dragDisable, yesdrag as dragEnable, dsv as dsvFormat, backInOut as easeBack, backIn as easeBackIn, backInOut as easeBackInOut, backOut as easeBackOut, bounceOut as easeBounce, bounceIn as easeBounceIn, bounceInOut as easeBounceInOut, bounceOut as easeBounceOut, circleInOut as easeCircle, circleIn as easeCircleIn, circleInOut as easeCircleInOut, circleOut as easeCircleOut, cubicInOut as easeCubic, cubicIn as easeCubicIn, cubicInOut as easeCubicInOut, cubicOut as easeCubicOut, elasticOut as easeElastic, elasticIn as easeElasticIn, elasticInOut as easeElasticInOut, elasticOut as easeElasticOut, expInOut as easeExp, expIn as easeExpIn, expInOut as easeExpInOut, expOut as easeExpOut, linear$1 as easeLinear, polyInOut as easePoly, polyIn as easePolyIn, polyInOut as easePolyInOut, polyOut as easePolyOut, quadInOut as easeQuad, quadIn as easeQuadIn, quadInOut as easeQuadInOut, quadOut as easeQuadOut, sinInOut as easeSin, sinIn as easeSinIn, sinInOut as easeSinInOut, sinOut as easeSinOut, entries, event, extent, fontAwsesomeStyle, format, defaultLocale$1 as formatDefaultLocale, formatLocale$1 as formatLocale, formatPrefix, formatSpecifier, gray, hcl, histogram, hsl, interpolate$1 as interpolate, array$2 as interpolateArray, basis$1 as interpolateBasis, basisClosed as interpolateBasisClosed, cool as interpolateCool, cubehelix$3 as interpolateCubehelix, cubehelix as interpolateCubehelixDefault, cubehelixLong as interpolateCubehelixLong, date$1 as interpolateDate, discrete as interpolateDiscrete, hcl$2 as interpolateHcl, hclLong as interpolateHclLong, hsl$2 as interpolateHsl, hslLong as interpolateHslLong, hue as interpolateHue, inferno as interpolateInferno, lab$1 as interpolateLab, magma as interpolateMagma, reinterpolate$1 as interpolateNumber, numberArray as interpolateNumberArray, object as interpolateObject, plasma as interpolatePlasma, rainbow$2 as interpolateRainbow, interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, d3InterpolateViridis as interpolateViridis, warm as interpolateWarm, interpolateZoom, interrupt, formatIso$1 as isoFormat, parseIso$1 as isoParse, keys, lab, lch, local$1 as local, map$2 as map, matcher, d3Max as max, d3Mean as mean, d3Median as median, merge, d3Min as min, mouse, namespace, namespaces, d3Nest as nest, pairs, permute, piecewise, precisionFixed, precisionPrefix, precisionRound, publish, publishProxy, threshold$1 as quantile, quantize$1 as quantize, sequence as range, rgb, band as scaleBand, identity$1 as scaleIdentity, implicit as scaleImplicit, linear as scaleLinear, log as scaleLog, ordinal$1 as scaleOrdinal, point as scalePoint, pow as scalePow, quantile as scaleQuantile, quantize as scaleQuantize, sequential as scaleSequential, sqrt as scaleSqrt, threshold as scaleThreshold, time as scaleTime, utcTime as scaleUtc, scan, d3SchemeCategory10 as schemeCategory10, d3SchemeCategory20 as schemeCategory20, d3SchemeCategory20b as schemeCategory20b, d3SchemeCategory20c as schemeCategory20c, select, selectAll, selection, selector, selectorAll, set, shuffle, styleValue as style, d3Sum as sum, freedmanDiaconis as thresholdFreedmanDiaconis, scott as thresholdScott, sturges as thresholdSturges, tickIncrement, tickStep, ticks, timeFormat, defaultLocale as timeFormatDefaultLocale, formatLocale as timeFormatLocale, timeParse, touch, touches, transition, transpose, tsvFormat, tsvFormatBody, tsvFormatRow, tsvFormatRows, tsvFormatValue, tsvParse, tsvParseRows, utcFormat, utcParse, d3Values as values, d3Variance as variance, defaultView as window, zip, d3Zoom as zoom, identity as zoomIdentity, transform as zoomTransform };
|
|
15058
15637
|
//# sourceMappingURL=index.es6.js.map
|