@carbon/charts 1.13.0 → 1.13.2
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/CHANGELOG.md +22 -0
- package/dist/{_baseEach-76cda8a8.mjs → _baseEach-8433307e.mjs} +2 -2
- package/dist/{_baseEach-76cda8a8.mjs.map → _baseEach-8433307e.mjs.map} +1 -1
- package/dist/{angle-utils-7844066d.mjs → angle-utils-8034b0e5.mjs} +2 -2
- package/dist/{angle-utils-7844066d.mjs.map → angle-utils-8034b0e5.mjs.map} +1 -1
- package/dist/{choropleth-d4b2bac9.mjs → choropleth-75258a8a.mjs} +261 -253
- package/dist/{choropleth-d4b2bac9.mjs.map → choropleth-75258a8a.mjs.map} +1 -1
- package/dist/{color-scale-utils-faf67b75.mjs → color-scale-utils-2eb80bd2.mjs} +798 -798
- package/dist/color-scale-utils-2eb80bd2.mjs.map +1 -0
- package/dist/components/index.mjs +4 -4
- package/dist/demo/index.mjs +71 -142
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +3176 -2894
- package/dist/demo/styles.css.map +1 -1
- package/dist/{index-0bab3ec3.mjs → index-e91144ae.mjs} +3 -3
- package/dist/{index-0bab3ec3.mjs.map → index-e91144ae.mjs.map} +1 -1
- package/dist/index.mjs +8 -8
- package/dist/model/index.mjs +2 -2
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +538 -441
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/umd/bundle.umd.js +13 -13
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +16 -29
- package/styles.css +538 -441
- package/styles.min.css +1 -1
- package/dist/color-scale-utils-faf67b75.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { select as x, pointer as Je, brushX as ms, scaleTime as qs, extent as Qe, area as
|
|
2
|
-
import { t as Es, i as En, S as Ss, U as Sn, V as xs, W as xn, X as On, Y as Tn, Z as Ln, g as y, d as he, f as Re, F as
|
|
3
|
-
import { y as H, _ as f, K as ee, r as ye, q as Te, L as Dn, A as ue, m as $, s as Se, V as Ie, S as te, e as V, Z as Le, i as le, f as Wt, J as
|
|
1
|
+
import { select as x, pointer as Je, brushX as ms, scaleTime as qs, extent as Qe, area as It, line as Rt, axisBottom as Dt, axisLeft as fs, axisTop as Ks, axisRight as Js, scaleLinear as Oe, arc as $e, easeLinear as Qs, path as _t, interpolateNumber as vs, quantize as en, scaleBand as Pt, hierarchy as Vt, pack as tn, pie as sn, interpolate as nn, interpolateRound as an, min as ut, max as Ht, lineRadial as rn, curveLinearClosed as on, cluster as ln, tree as cn, linkHorizontal as dn, treemap as hn, hsl as ys, color as bs, geoPath as un, geoNaturalEarth1 as pn, geoMercator as gn, geoEquirectangular as mn, geoConicEquidistant as fn, geoConicEqualArea as vn, geoAlbers as yn, geoEqualEarth as bn } from "d3";
|
|
2
|
+
import { t as Es, i as En, S as Ss, U as Sn, V as xs, W as xn, X as On, Y as Tn, Z as Ln, g as y, d as he, f as Re, F as Ut, _ as Q, z as K, $ as Ge, a0 as zt, K as de, H as wn, a1 as Os, e as Mn, a2 as ve, L as pt, N as gt, j as pe, a3 as Ve, a4 as ge, l as fe, A as me, a5 as An, n as ke, R as Cn, C as Z, q as ce, a6 as ie, a7 as kn, P as In, B as se, u as Pe, s as He, a8 as nt, a9 as Rn, aa as Ft, D as Ee } from "./color-scale-utils-2eb80bd2.mjs";
|
|
3
|
+
import { y as H, _ as f, K as ee, r as ye, q as Te, L as Dn, A as ue, m as $, s as Se, V as Ie, S as te, e as V, Z as Le, i as le, f as Wt, J as at, d as _n, F as Ue, n as it, H as rt, C as ot, p as ze, b as jt, D as lt, Q as Pn, x as xe, $ as Fe, N as ct } from "./enums-a96ef472.mjs";
|
|
4
4
|
import { R as U } from "./a11y-7bad4f48.mjs";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as dt, D as E, c as mt, G as Zt, a as Vn, p as Y, r as Xt, b as Bn } from "./angle-utils-8034b0e5.mjs";
|
|
6
6
|
import { sankey as $n, sankeyLinkHorizontal as Gn, sankeyJustify as Nn, sankeyLeft as Hn, sankeyRight as Un } from "d3-sankey";
|
|
7
|
-
import { b as Ts } from "./_baseEach-
|
|
7
|
+
import { b as Ts } from "./_baseEach-8433307e.mjs";
|
|
8
8
|
import zn from "d3-cloud";
|
|
9
9
|
function Fn(o, e, t, s) {
|
|
10
10
|
var n = -1, a = o == null ? 0 : o.length;
|
|
@@ -250,7 +250,7 @@ function _a(o, e, t) {
|
|
|
250
250
|
return o === o && (t !== void 0 && (o = o <= t ? o : t), e !== void 0 && (o = o >= e ? o : e)), o;
|
|
251
251
|
}
|
|
252
252
|
function $s(o, e, t) {
|
|
253
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t =
|
|
253
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = dt(t), t = t === t ? t : 0), e !== void 0 && (e = dt(e), e = e === e ? e : 0), _a(dt(o), e, t);
|
|
254
254
|
}
|
|
255
255
|
function Pa(o, e) {
|
|
256
256
|
var t = -1, s = En(o) ? Array(o.length) : [];
|
|
@@ -766,7 +766,7 @@ class ic extends z {
|
|
|
766
766
|
// @ts-ignore
|
|
767
767
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
768
768
|
render(e = !1) {
|
|
769
|
-
this.getComponentContainer().style("width", `${this.configs.size ||
|
|
769
|
+
this.getComponentContainer().style("width", `${this.configs.size || Ut.default.size}px`).style("height", `${this.configs.size || Ut.default.size}px`).attr("opacity", 0);
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
var Ua = {
|
|
@@ -783,7 +783,7 @@ var Ua = {
|
|
|
783
783
|
textarea:not([disabled]),
|
|
784
784
|
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
785
785
|
`
|
|
786
|
-
},
|
|
786
|
+
}, ht = Ua;
|
|
787
787
|
function Qt(o, e) {
|
|
788
788
|
for (var t = 0; t < e.length; t++) {
|
|
789
789
|
var s = e[t];
|
|
@@ -809,12 +809,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
809
809
|
function Za(o, e) {
|
|
810
810
|
if (o) {
|
|
811
811
|
if (typeof o == "string")
|
|
812
|
-
return
|
|
812
|
+
return ft(o, e);
|
|
813
813
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
814
814
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
815
815
|
return Array.from(o);
|
|
816
816
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
817
|
-
return
|
|
817
|
+
return ft(o, e);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
function Xa(o) {
|
|
@@ -823,9 +823,9 @@ function Xa(o) {
|
|
|
823
823
|
}
|
|
824
824
|
function Ya(o) {
|
|
825
825
|
if (Array.isArray(o))
|
|
826
|
-
return
|
|
826
|
+
return ft(o);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function ft(o, e) {
|
|
829
829
|
(e == null || e > o.length) && (e = o.length);
|
|
830
830
|
for (var t = 0, s = new Array(e); t < e; t++)
|
|
831
831
|
s[t] = o[t];
|
|
@@ -848,13 +848,13 @@ function qa() {
|
|
|
848
848
|
return za(s);
|
|
849
849
|
}());
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function vt(o) {
|
|
852
852
|
"@babel/helpers - typeof";
|
|
853
|
-
return
|
|
853
|
+
return vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
854
854
|
return typeof e;
|
|
855
855
|
} : function(e) {
|
|
856
856
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
857
|
-
},
|
|
857
|
+
}, vt(o);
|
|
858
858
|
}
|
|
859
859
|
function Ka(o, e) {
|
|
860
860
|
if (!(o instanceof e))
|
|
@@ -882,12 +882,12 @@ function Qa(o, e) {
|
|
|
882
882
|
}
|
|
883
883
|
}), Object.defineProperty(o, "prototype", {
|
|
884
884
|
writable: !1
|
|
885
|
-
}), e &&
|
|
885
|
+
}), e && yt(o, e);
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
887
|
+
function yt(o, e) {
|
|
888
|
+
return yt = Object.setPrototypeOf || function(s, n) {
|
|
889
889
|
return s.__proto__ = n, s;
|
|
890
|
-
},
|
|
890
|
+
}, yt(o, e);
|
|
891
891
|
}
|
|
892
892
|
function ei(o) {
|
|
893
893
|
var e = si();
|
|
@@ -902,7 +902,7 @@ function ei(o) {
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
function ti(o, e) {
|
|
905
|
-
if (e && (
|
|
905
|
+
if (e && (vt(e) === "object" || typeof e == "function"))
|
|
906
906
|
return e;
|
|
907
907
|
if (e !== void 0)
|
|
908
908
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -961,13 +961,13 @@ function ni(o) {
|
|
|
961
961
|
}(o);
|
|
962
962
|
return e;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function bt(o) {
|
|
965
965
|
"@babel/helpers - typeof";
|
|
966
|
-
return
|
|
966
|
+
return bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
967
967
|
return typeof e;
|
|
968
968
|
} : function(e) {
|
|
969
969
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
970
|
-
},
|
|
970
|
+
}, bt(o);
|
|
971
971
|
}
|
|
972
972
|
function ai(o, e) {
|
|
973
973
|
if (!(o instanceof e))
|
|
@@ -1009,12 +1009,12 @@ function oi(o, e) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
}), Object.defineProperty(o, "prototype", {
|
|
1011
1011
|
writable: !1
|
|
1012
|
-
}), e &&
|
|
1012
|
+
}), e && Et(o, e);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1014
|
+
function Et(o, e) {
|
|
1015
|
+
return Et = Object.setPrototypeOf || function(s, n) {
|
|
1016
1016
|
return s.__proto__ = n, s;
|
|
1017
|
-
},
|
|
1017
|
+
}, Et(o, e);
|
|
1018
1018
|
}
|
|
1019
1019
|
function li(o) {
|
|
1020
1020
|
var e = hi();
|
|
@@ -1029,7 +1029,7 @@ function li(o) {
|
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
function ci(o, e) {
|
|
1032
|
-
if (e && (
|
|
1032
|
+
if (e && (bt(e) === "object" || typeof e == "function"))
|
|
1033
1033
|
return e;
|
|
1034
1034
|
if (e !== void 0)
|
|
1035
1035
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1111,13 +1111,13 @@ function Be(o) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function St(o) {
|
|
1115
1115
|
"@babel/helpers - typeof";
|
|
1116
|
-
return
|
|
1116
|
+
return St = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1117
1117
|
return typeof e;
|
|
1118
1118
|
} : function(e) {
|
|
1119
1119
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1120
|
-
},
|
|
1120
|
+
}, St(o);
|
|
1121
1121
|
}
|
|
1122
1122
|
function pi(o) {
|
|
1123
1123
|
return vi(o) || fi(o) || mi(o) || gi();
|
|
@@ -1129,12 +1129,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1129
1129
|
function mi(o, e) {
|
|
1130
1130
|
if (o) {
|
|
1131
1131
|
if (typeof o == "string")
|
|
1132
|
-
return
|
|
1132
|
+
return xt(o, e);
|
|
1133
1133
|
var t = Object.prototype.toString.call(o).slice(8, -1);
|
|
1134
1134
|
if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
|
|
1135
1135
|
return Array.from(o);
|
|
1136
1136
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
1137
|
-
return
|
|
1137
|
+
return xt(o, e);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
function fi(o) {
|
|
@@ -1143,9 +1143,9 @@ function fi(o) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function vi(o) {
|
|
1145
1145
|
if (Array.isArray(o))
|
|
1146
|
-
return
|
|
1146
|
+
return xt(o);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function xt(o, e) {
|
|
1149
1149
|
(e == null || e > o.length) && (e = o.length);
|
|
1150
1150
|
for (var t = 0, s = new Array(e); t < e; t++)
|
|
1151
1151
|
s[t] = o[t];
|
|
@@ -1177,12 +1177,12 @@ function Ei(o, e) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
}), Object.defineProperty(o, "prototype", {
|
|
1179
1179
|
writable: !1
|
|
1180
|
-
}), e &&
|
|
1180
|
+
}), e && Ot(o, e);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1182
|
+
function Ot(o, e) {
|
|
1183
|
+
return Ot = Object.setPrototypeOf || function(s, n) {
|
|
1184
1184
|
return s.__proto__ = n, s;
|
|
1185
|
-
},
|
|
1185
|
+
}, Ot(o, e);
|
|
1186
1186
|
}
|
|
1187
1187
|
function Si(o) {
|
|
1188
1188
|
var e = Ti();
|
|
@@ -1197,7 +1197,7 @@ function Si(o) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
1199
|
function xi(o, e) {
|
|
1200
|
-
if (e && (
|
|
1200
|
+
if (e && (St(e) === "object" || typeof e == "function"))
|
|
1201
1201
|
return e;
|
|
1202
1202
|
if (e !== void 0)
|
|
1203
1203
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1270,8 +1270,8 @@ function Li(o) {
|
|
|
1270
1270
|
var u = {
|
|
1271
1271
|
group: p && p.group,
|
|
1272
1272
|
state: d
|
|
1273
|
-
}, g = [u.group, d].filter(Boolean).join("-").split("-").map(function(
|
|
1274
|
-
return
|
|
1273
|
+
}, g = [u.group, d].filter(Boolean).join("-").split("-").map(function(M) {
|
|
1274
|
+
return M[0].toUpperCase() + M.substr(1);
|
|
1275
1275
|
}).join(""), m = new CustomEvent(this.options["eventBefore".concat(g)], {
|
|
1276
1276
|
bubbles: !0,
|
|
1277
1277
|
cancelable: !0,
|
|
@@ -1309,7 +1309,7 @@ function Li(o) {
|
|
|
1309
1309
|
}(o);
|
|
1310
1310
|
return e;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Tt(o, e) {
|
|
1313
1313
|
var t = o.target, s = o.currentTarget;
|
|
1314
1314
|
if (typeof t.matches == "function") {
|
|
1315
1315
|
if (t.matches(e))
|
|
@@ -1337,13 +1337,13 @@ function ns(o) {
|
|
|
1337
1337
|
launchingEvent: t
|
|
1338
1338
|
};
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Lt(o) {
|
|
1341
1341
|
"@babel/helpers - typeof";
|
|
1342
|
-
return
|
|
1342
|
+
return Lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1343
1343
|
return typeof e;
|
|
1344
1344
|
} : function(e) {
|
|
1345
1345
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1346
|
-
},
|
|
1346
|
+
}, Lt(o);
|
|
1347
1347
|
}
|
|
1348
1348
|
function wi(o, e) {
|
|
1349
1349
|
if (!(o instanceof e))
|
|
@@ -1371,12 +1371,12 @@ function Ai(o, e) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
}), Object.defineProperty(o, "prototype", {
|
|
1373
1373
|
writable: !1
|
|
1374
|
-
}), e &&
|
|
1374
|
+
}), e && wt(o, e);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1376
|
+
function wt(o, e) {
|
|
1377
|
+
return wt = Object.setPrototypeOf || function(s, n) {
|
|
1378
1378
|
return s.__proto__ = n, s;
|
|
1379
|
-
},
|
|
1379
|
+
}, wt(o, e);
|
|
1380
1380
|
}
|
|
1381
1381
|
function Ci(o) {
|
|
1382
1382
|
var e = Ri();
|
|
@@ -1391,7 +1391,7 @@ function Ci(o) {
|
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
function ki(o, e) {
|
|
1394
|
-
if (e && (
|
|
1394
|
+
if (e && (Lt(e) === "object" || typeof e == "function"))
|
|
1395
1395
|
return e;
|
|
1396
1396
|
if (e !== void 0)
|
|
1397
1397
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1487,13 +1487,13 @@ process.env.NODE_ENV !== "production" && (js = function(o, e, t) {
|
|
|
1487
1487
|
});
|
|
1488
1488
|
var Bi = js;
|
|
1489
1489
|
const $i = /* @__PURE__ */ Vi(Bi);
|
|
1490
|
-
function
|
|
1490
|
+
function Mt(o) {
|
|
1491
1491
|
"@babel/helpers - typeof";
|
|
1492
|
-
return
|
|
1492
|
+
return Mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1493
1493
|
return typeof e;
|
|
1494
1494
|
} : function(e) {
|
|
1495
1495
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1496
|
-
},
|
|
1496
|
+
}, Mt(o);
|
|
1497
1497
|
}
|
|
1498
1498
|
function Gi(o, e) {
|
|
1499
1499
|
if (!(o instanceof e))
|
|
@@ -1521,12 +1521,12 @@ function Hi(o, e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}), Object.defineProperty(o, "prototype", {
|
|
1523
1523
|
writable: !1
|
|
1524
|
-
}), e &&
|
|
1524
|
+
}), e && At(o, e);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1526
|
+
function At(o, e) {
|
|
1527
|
+
return At = Object.setPrototypeOf || function(s, n) {
|
|
1528
1528
|
return s.__proto__ = n, s;
|
|
1529
|
-
},
|
|
1529
|
+
}, At(o, e);
|
|
1530
1530
|
}
|
|
1531
1531
|
function Ui(o) {
|
|
1532
1532
|
var e = Wi();
|
|
@@ -1541,7 +1541,7 @@ function Ui(o) {
|
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
1543
|
function zi(o, e) {
|
|
1544
|
-
if (e && (
|
|
1544
|
+
if (e && (Mt(e) === "object" || typeof e == "function"))
|
|
1545
1545
|
return e;
|
|
1546
1546
|
if (e !== void 0)
|
|
1547
1547
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1603,7 +1603,7 @@ function ji(o) {
|
|
|
1603
1603
|
else {
|
|
1604
1604
|
var d = c.initEventNames.map(function(p) {
|
|
1605
1605
|
return Be(r, p, function(h) {
|
|
1606
|
-
var u =
|
|
1606
|
+
var u = Tt(h, "[".concat(c.attribInitTarget, "]"));
|
|
1607
1607
|
if (u) {
|
|
1608
1608
|
h.delegateTarget = u;
|
|
1609
1609
|
var g = u.ownerDocument.querySelectorAll(u.getAttribute(c.attribInitTarget));
|
|
@@ -1631,13 +1631,13 @@ function ji(o) {
|
|
|
1631
1631
|
}(o);
|
|
1632
1632
|
return e;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function Ct(o) {
|
|
1635
1635
|
"@babel/helpers - typeof";
|
|
1636
|
-
return
|
|
1636
|
+
return Ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1637
1637
|
return typeof e;
|
|
1638
1638
|
} : function(e) {
|
|
1639
1639
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1640
|
-
},
|
|
1640
|
+
}, Ct(o);
|
|
1641
1641
|
}
|
|
1642
1642
|
function Zi(o, e) {
|
|
1643
1643
|
if (!(o instanceof e))
|
|
@@ -1665,12 +1665,12 @@ function Yi(o, e) {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
}), Object.defineProperty(o, "prototype", {
|
|
1667
1667
|
writable: !1
|
|
1668
|
-
}), e &&
|
|
1668
|
+
}), e && kt(o, e);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1670
|
+
function kt(o, e) {
|
|
1671
|
+
return kt = Object.setPrototypeOf || function(s, n) {
|
|
1672
1672
|
return s.__proto__ = n, s;
|
|
1673
|
-
},
|
|
1673
|
+
}, kt(o, e);
|
|
1674
1674
|
}
|
|
1675
1675
|
function qi(o) {
|
|
1676
1676
|
var e = Qi();
|
|
@@ -1685,7 +1685,7 @@ function qi(o) {
|
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
1687
|
function Ki(o, e) {
|
|
1688
|
-
if (e && (
|
|
1688
|
+
if (e && (Ct(e) === "object" || typeof e == "function"))
|
|
1689
1689
|
return e;
|
|
1690
1690
|
if (e !== void 0)
|
|
1691
1691
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1721,8 +1721,8 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1721
1721
|
return Zi(this, t), a = e.call(this, s, n), a._handleFocusinListener = void 0, a._handleKeydownListener = void 0, a._handleFocusin = function(i) {
|
|
1722
1722
|
var r = a.element.querySelector(a.options.selectorModalContainer) || a.element;
|
|
1723
1723
|
a.element.classList.contains(a.options.classVisible) && !r.contains(i.target) && a.options.selectorsFloatingMenus.every(function(l) {
|
|
1724
|
-
return !
|
|
1725
|
-
}) && a.element.querySelector(
|
|
1724
|
+
return !Tt(i, l);
|
|
1725
|
+
}) && a.element.querySelector(ht.selectorTabbable).focus();
|
|
1726
1726
|
}, a._hookCloseActions(), a;
|
|
1727
1727
|
}
|
|
1728
1728
|
return Xi(t, [{
|
|
@@ -1759,7 +1759,7 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1759
1759
|
var r = this, l, c = function() {
|
|
1760
1760
|
if (l && (l = r.unmanage(l).release()), n === "shown" && r.element.offsetWidth > 0 && r.element.offsetHeight > 0) {
|
|
1761
1761
|
r.previouslyFocusedNode = r.element.ownerDocument.activeElement;
|
|
1762
|
-
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(
|
|
1762
|
+
var u = r.element.querySelector(r.options.selectorPrimaryFocus) || r.element.querySelector(ht.selectorTabbable);
|
|
1763
1763
|
u.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && $i(u, "Modals need to contain a focusable element by either using " + "`".concat(r.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
|
|
1764
1764
|
}
|
|
1765
1765
|
i();
|
|
@@ -1775,7 +1775,7 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1775
1775
|
value: function() {
|
|
1776
1776
|
var n = this;
|
|
1777
1777
|
this.manage(Be(this.element, "click", function(a) {
|
|
1778
|
-
var i =
|
|
1778
|
+
var i = Tt(a, n.options.selectorModalClose);
|
|
1779
1779
|
i && (a.delegateTarget = i), (i || a.target === n.element) && n.hide(a);
|
|
1780
1780
|
})), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(Be(this.element.ownerDocument.body, "keydown", function(a) {
|
|
1781
1781
|
a.which === 27 && n.shouldStateBeChanged("hidden") && (a.stopPropagation(), n.hide(a));
|
|
@@ -1822,7 +1822,7 @@ var er = /* @__PURE__ */ function(o) {
|
|
|
1822
1822
|
* without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
|
|
1823
1823
|
*/
|
|
1824
1824
|
function() {
|
|
1825
|
-
var n =
|
|
1825
|
+
var n = ht.prefix;
|
|
1826
1826
|
return {
|
|
1827
1827
|
selectorInit: "[data-modal]",
|
|
1828
1828
|
selectorModalClose: "[data-modal-close]",
|
|
@@ -2029,18 +2029,18 @@ class nr extends z {
|
|
|
2029
2029
|
if (v && i.length) {
|
|
2030
2030
|
const S = this, T = d.selectAll("div.additional-item").data(v);
|
|
2031
2031
|
T.exit().remove();
|
|
2032
|
-
const
|
|
2032
|
+
const M = T.enter().append("div").merge(T).classed("legend-item", !0).classed("additional", !0).attr(
|
|
2033
2033
|
"aria-labelledby",
|
|
2034
2034
|
(k, I) => this.services.domUtils.generateElementIDString(
|
|
2035
2035
|
`legend-datagroup-${b.size() + I}-title`
|
|
2036
2036
|
)
|
|
2037
2037
|
);
|
|
2038
|
-
|
|
2038
|
+
M.selectAll("*").remove();
|
|
2039
2039
|
let L, O = 1;
|
|
2040
|
-
|
|
2040
|
+
M.append("svg").classed("icon", !0).each(function(k) {
|
|
2041
2041
|
const I = x(this);
|
|
2042
2042
|
!L || L != k.type ? (L = k.type, O = 1) : O++, S.addAdditionalItem(I, k, O);
|
|
2043
|
-
}),
|
|
2043
|
+
}), M.append("p").merge(M.select("p")), this.truncateLegendText();
|
|
2044
2044
|
}
|
|
2045
2045
|
p.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), u && h.size() > 1 && this.addEventListeners();
|
|
2046
2046
|
}
|
|
@@ -2361,10 +2361,10 @@ class ir extends z {
|
|
|
2361
2361
|
if (n)
|
|
2362
2362
|
return n(e, t);
|
|
2363
2363
|
if (typeof e.getTime == "function")
|
|
2364
|
-
return
|
|
2364
|
+
return zt(e, "MMM d, yyyy");
|
|
2365
2365
|
try {
|
|
2366
2366
|
if (typeof e == "string" && /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(e))
|
|
2367
|
-
return
|
|
2367
|
+
return zt(Date.parse(e), "MMM d, yyyy");
|
|
2368
2368
|
} catch {
|
|
2369
2369
|
}
|
|
2370
2370
|
return e.toLocaleString();
|
|
@@ -2464,13 +2464,13 @@ const Zs = class je extends z {
|
|
|
2464
2464
|
[0, 0],
|
|
2465
2465
|
[r - 1, l]
|
|
2466
2466
|
]).on("start brush end", b).on("end.brushed", T), a.call(S));
|
|
2467
|
-
const
|
|
2467
|
+
const M = this.services.zoom.getZoomRatio();
|
|
2468
2468
|
n.on("click", function(L) {
|
|
2469
2469
|
if (L.shiftKey) {
|
|
2470
2470
|
const O = this.services.domUtils.getHolder(), k = Je(a.node(), O)[0];
|
|
2471
|
-
let I = k - r *
|
|
2471
|
+
let I = k - r * M / 2;
|
|
2472
2472
|
I < 0 && (I = 0);
|
|
2473
|
-
let F = k + r *
|
|
2473
|
+
let F = k + r * M / 2;
|
|
2474
2474
|
F > r && (F = r), v(I, F);
|
|
2475
2475
|
}
|
|
2476
2476
|
});
|
|
@@ -2539,7 +2539,7 @@ class cc extends z {
|
|
|
2539
2539
|
},
|
|
2540
2540
|
{ skipUpdate: !0 }
|
|
2541
2541
|
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Qe(b, (O) => O.value));
|
|
2542
|
-
const
|
|
2542
|
+
const M = this.model.get("zoomDomain");
|
|
2543
2543
|
if (a === Le.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", b, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", b, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
|
|
2544
2544
|
const O = i.highlightStartMapsTo, k = i.highlightEndMapsTo, I = i.color, F = i.labelMapsTo;
|
|
2545
2545
|
i.data.forEach((P, A) => {
|
|
@@ -2555,13 +2555,13 @@ class cc extends z {
|
|
|
2555
2555
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
2556
2556
|
});
|
|
2557
2557
|
}
|
|
2558
|
-
this.addBrushEventListener(
|
|
2558
|
+
this.addBrushEventListener(M, c, l);
|
|
2559
2559
|
const L = E.appendOrSelect(t, this.brushSelector).call(this.brush);
|
|
2560
|
-
if (
|
|
2561
|
-
if (
|
|
2560
|
+
if (M !== void 0)
|
|
2561
|
+
if (M[0].valueOf() === M[1].valueOf())
|
|
2562
2562
|
L.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
|
|
2563
2563
|
else {
|
|
2564
|
-
const O =
|
|
2564
|
+
const O = M.map((k) => this.xScale(k));
|
|
2565
2565
|
O[1] - O[0] < this.MIN_SELECTION_DIFF || (L.call(this.brush.move, O), this.updateBrushHandle(this.getComponentContainer(), O));
|
|
2566
2566
|
}
|
|
2567
2567
|
n && (this.brush.filter(() => !1), L.selectAll("rect").attr("cursor", "auto"));
|
|
@@ -2629,7 +2629,7 @@ class cc extends z {
|
|
|
2629
2629
|
E.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", s / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
|
|
2630
2630
|
}
|
|
2631
2631
|
renderZoomBarArea(e, t, s, n) {
|
|
2632
|
-
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, S, T) => (
|
|
2632
|
+
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (v, S, T) => (M) => a.getValueFromScale(v, S, T, M), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = y(this.getOptions(), "zoomBar", V.TOP, "type"), g = de.height[u], m = It().x((v) => p(v)).y0(g).y1((v) => g - h(v)), b = E.appendOrSelect(e, t).datum(s).attr("d", m);
|
|
2633
2633
|
n && b.attr("clip-path", `url(#${n})`);
|
|
2634
2634
|
}
|
|
2635
2635
|
updateClipPath(e, t, s, n, a, i) {
|
|
@@ -2657,7 +2657,7 @@ class cc extends z {
|
|
|
2657
2657
|
"zoomBar",
|
|
2658
2658
|
V.TOP,
|
|
2659
2659
|
"type"
|
|
2660
|
-
), i = de.height[a], r =
|
|
2660
|
+
), i = de.height[a], r = Rt()([
|
|
2661
2661
|
[t, i],
|
|
2662
2662
|
[s, i]
|
|
2663
2663
|
]);
|
|
@@ -2707,24 +2707,24 @@ class dc extends z {
|
|
|
2707
2707
|
), g = p.services.cartesianScales.getScaleTypeByPosition(h);
|
|
2708
2708
|
let m = null, b = null;
|
|
2709
2709
|
h === V.LEFT || h === V.RIGHT ? (b = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, b = p.services.cartesianScales.getMainYScale());
|
|
2710
|
-
const v = g === te.LABELS, [S, T] = m.range(), [
|
|
2710
|
+
const v = g === te.LABELS, [S, T] = m.range(), [M, L] = b.range(), { cartesianScales: O } = p.services, k = O.getOrientation(), I = (G) => O.getDomainValue(G), F = (G) => O.getRangeValue(G), [P, A] = ve(
|
|
2711
2711
|
I,
|
|
2712
2712
|
F,
|
|
2713
2713
|
k
|
|
2714
|
-
),
|
|
2715
|
-
h === V.TOP || h === V.BOTTOM ? (
|
|
2714
|
+
), w = x(this);
|
|
2715
|
+
h === V.TOP || h === V.BOTTOM ? (w.selectAll("line.threshold-line").transition().call(
|
|
2716
2716
|
(G) => p.services.transitions.setupTransition({
|
|
2717
2717
|
transition: G,
|
|
2718
2718
|
name: "threshold-line-update",
|
|
2719
2719
|
animate: e
|
|
2720
2720
|
})
|
|
2721
|
-
).attr("y1", L).attr("y2",
|
|
2721
|
+
).attr("y1", L).attr("y2", M).attr(
|
|
2722
2722
|
"x1",
|
|
2723
2723
|
({ datum: G }) => P(G) + (v ? u.step() / 2 : 0)
|
|
2724
2724
|
).attr(
|
|
2725
2725
|
"x2",
|
|
2726
2726
|
({ datum: G }) => P(G) + (v ? u.step() / 2 : 0)
|
|
2727
|
-
).style("stroke", ({ fillColor: G }) => G),
|
|
2727
|
+
).style("stroke", ({ fillColor: G }) => G), w.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: G }) => -P(G)).attr("width", Math.abs(M - L)).classed("rotate", !0)) : (w.selectAll("line.threshold-line").transition().call(
|
|
2728
2728
|
(G) => p.services.transitions.setupTransition({
|
|
2729
2729
|
transition: G,
|
|
2730
2730
|
name: "threshold-line-update",
|
|
@@ -2736,7 +2736,7 @@ class dc extends z {
|
|
|
2736
2736
|
).attr(
|
|
2737
2737
|
"y2",
|
|
2738
2738
|
({ datum: G }) => A(G) + (v ? u.step() / 2 : 0)
|
|
2739
|
-
).style("stroke", ({ fillColor: G }) => G),
|
|
2739
|
+
).style("stroke", ({ fillColor: G }) => G), w.selectAll("rect.threshold-hoverable-area").attr("x", S).attr("y", ({ datum: G }) => A(G)).attr("width", Math.abs(T - S)).classed("rotate", !1));
|
|
2740
2740
|
}), this.services.events.addEventListener(f.Threshold.SHOW, (h) => {
|
|
2741
2741
|
this.setThresholdLabelPosition(h.detail), this.label.classed("hidden", !1);
|
|
2742
2742
|
}), this.services.events.addEventListener(f.Threshold.HIDE, () => {
|
|
@@ -2746,11 +2746,11 @@ class dc extends z {
|
|
|
2746
2746
|
getFormattedValue(e) {
|
|
2747
2747
|
const { value: t, axisPosition: s } = e, n = this.getOptions();
|
|
2748
2748
|
if (this.services.cartesianScales.getScaleTypeByPosition(s) === te.TIME) {
|
|
2749
|
-
const i = [V.LEFT, V.RIGHT].includes(s), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(n, "timeScale"), p =
|
|
2749
|
+
const i = [V.LEFT, V.RIGHT].includes(s), r = this.services.cartesianScales.getMainXScale(), l = this.services.cartesianScales.getMainYScale(), c = i ? l : r, d = y(n, "timeScale"), p = pt(
|
|
2750
2750
|
c.ticks(),
|
|
2751
2751
|
y(d, "timeInterval")
|
|
2752
2752
|
);
|
|
2753
|
-
return
|
|
2753
|
+
return gt(t, 0, c.ticks(), p, d);
|
|
2754
2754
|
}
|
|
2755
2755
|
return t.toLocaleString("en");
|
|
2756
2756
|
}
|
|
@@ -2842,10 +2842,10 @@ class hc extends z {
|
|
|
2842
2842
|
c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
|
|
2843
2843
|
const p = this;
|
|
2844
2844
|
r.each(function({ axisPosition: h }) {
|
|
2845
|
-
const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, b] = u.range(), [v, S] = g.range(), { cartesianScales: T } = p.services,
|
|
2845
|
+
const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, b] = u.range(), [v, S] = g.range(), { cartesianScales: T } = p.services, M = T.getOrientation(), L = (P) => T.getDomainValue(P), O = (P) => T.getRangeValue(P), [k, I] = ve(
|
|
2846
2846
|
L,
|
|
2847
2847
|
O,
|
|
2848
|
-
|
|
2848
|
+
M
|
|
2849
2849
|
), F = x(this);
|
|
2850
2850
|
h === V.TOP || h === V.BOTTOM ? F.selectAll("rect.highlight-bar").transition().call(
|
|
2851
2851
|
(P) => p.services.transitions.setupTransition({
|
|
@@ -2855,8 +2855,8 @@ class hc extends z {
|
|
|
2855
2855
|
})
|
|
2856
2856
|
).attr("y", Math.max(S + p.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: P, ...A }) => k(A[P])).attr(
|
|
2857
2857
|
"width",
|
|
2858
|
-
({ highlightStartMapsTo: P, highlightEndMapsTo: A, ...
|
|
2859
|
-
).style("stroke", ({ color: P, labelMapsTo: A, ...
|
|
2858
|
+
({ highlightStartMapsTo: P, highlightEndMapsTo: A, ...w }) => Math.max(k(w[A]) - k(w[P]), 0)
|
|
2859
|
+
).style("stroke", ({ color: P, labelMapsTo: A, ...w }) => P && P.scale[w[A]] ? P.scale[w[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: P, labelMapsTo: A, ...w }) => P && P.scale[w[A]] ? P.scale[w[A]] : null) : F.selectAll("rect.highlight-bar").transition().call(
|
|
2860
2860
|
(P) => p.services.transitions.setupTransition({
|
|
2861
2861
|
transition: P,
|
|
2862
2862
|
name: "highlight-bar-update",
|
|
@@ -2864,8 +2864,8 @@ class hc extends z {
|
|
|
2864
2864
|
})
|
|
2865
2865
|
).attr("x", m).attr("width", Math.max(b - m, 0)).attr("y", ({ highlightEndMapsTo: P, ...A }) => I(A[P])).attr(
|
|
2866
2866
|
"height",
|
|
2867
|
-
({ highlightStartMapsTo: P, highlightEndMapsTo: A, ...
|
|
2868
|
-
).style("stroke", ({ color: P, labelMapsTo: A, ...
|
|
2867
|
+
({ highlightStartMapsTo: P, highlightEndMapsTo: A, ...w }) => Math.max(I(w[P]) - I(w[A]), 0)
|
|
2868
|
+
).style("stroke", ({ color: P, labelMapsTo: A, ...w }) => P && P.scale[w[A]] ? P.scale[w[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: P, labelMapsTo: A, ...w }) => P && P.scale[w[A]] ? P.scale[w[A]] : null);
|
|
2869
2869
|
});
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
@@ -3000,9 +3000,9 @@ class pc extends z {
|
|
|
3000
3000
|
).style("font-size", "14px").text((v) => h[v] ? h[v] : "").attr("y", 20).attr("x", (v, S) => {
|
|
3001
3001
|
const T = this.services.domUtils.generateElementIDString(
|
|
3002
3002
|
`alluvial-category-${S}`
|
|
3003
|
-
), { width:
|
|
3003
|
+
), { width: M } = E.getSVGElementSize(x(`text#${T}`), { useBBox: !0 });
|
|
3004
3004
|
let L = 0;
|
|
3005
|
-
return v + L >=
|
|
3005
|
+
return v + L >= M && (L = -M + 4), L;
|
|
3006
3006
|
});
|
|
3007
3007
|
const g = t.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
|
|
3008
3008
|
if (g.exit().remove(), r) {
|
|
@@ -3043,18 +3043,18 @@ class pc extends z {
|
|
|
3043
3043
|
).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((v) => `${v.name} (${v.value})`).attr("aria-label", (v) => `${v.name} (${v.value})`), b.append("rect").classed("node-text-bg", !0).attr("width", (v, S) => {
|
|
3044
3044
|
const T = this.services.domUtils.generateElementIDString(
|
|
3045
3045
|
`alluvial-node-text-${S}`
|
|
3046
|
-
), { width:
|
|
3047
|
-
return
|
|
3046
|
+
), { width: M } = E.getSVGElementSize(x(`text#${T}`), { useBBox: !0 });
|
|
3047
|
+
return M + 8;
|
|
3048
3048
|
}).attr("height", 18).attr("stroke-width", 2).lower(), b.attr("transform", (v, S) => {
|
|
3049
3049
|
const T = this.services.domUtils.generateElementIDString(
|
|
3050
3050
|
`alluvial-node-text-${S}`
|
|
3051
|
-
), { width:
|
|
3051
|
+
), { width: M } = E.getSVGElementSize(x(`text#${T}`), { useBBox: !0 }), L = (v.y1 - v.y0) / 2 - 9;
|
|
3052
3052
|
let O = v.x1 - v.x0;
|
|
3053
|
-
return v.x1 >=
|
|
3053
|
+
return v.x1 >= M ? O = O - (M + 16) : O += 4, `translate(${O}, ${L})`;
|
|
3054
3054
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
3055
3055
|
}
|
|
3056
3056
|
addLineEventListener() {
|
|
3057
|
-
const e = this.getOptions(), t = this, s =
|
|
3057
|
+
const e = this.getOptions(), t = this, s = mt((n, a = "mouseover") => {
|
|
3058
3058
|
const i = t.parent.selectAll("path.link").transition().call(
|
|
3059
3059
|
(r) => t.services.transitions.setupTransition({
|
|
3060
3060
|
transition: r,
|
|
@@ -3112,7 +3112,7 @@ class pc extends z {
|
|
|
3112
3112
|
});
|
|
3113
3113
|
}
|
|
3114
3114
|
addNodeEventListener() {
|
|
3115
|
-
const e = this, t =
|
|
3115
|
+
const e = this, t = mt((s = [], n = "mouseover") => {
|
|
3116
3116
|
if (n === "mouseout" || s.length === 0) {
|
|
3117
3117
|
e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", pe.opacity.default);
|
|
3118
3118
|
return;
|
|
@@ -3204,7 +3204,7 @@ class gc extends z {
|
|
|
3204
3204
|
this.drawBackdrop(t, s), !(!t && !s) && (t && (E.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(e)), s && (E.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(e)));
|
|
3205
3205
|
}
|
|
3206
3206
|
drawXGrid(e) {
|
|
3207
|
-
const t = this.parent, s = this.backdrop.attr("height"), n = this.services.cartesianScales.getMainXScale(), a =
|
|
3207
|
+
const t = this.parent, s = this.backdrop.attr("height"), n = this.services.cartesianScales.getMainXScale(), a = Dt(n).tickSizeInner(-s).tickSizeOuter(0);
|
|
3208
3208
|
if (y(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
|
|
3209
3209
|
const l = this.services.cartesianScales.getDomainAxisPosition(), c = y(this.getOptions(), "axes", l, "ticks", "values");
|
|
3210
3210
|
c && a.tickValues(c);
|
|
@@ -3317,7 +3317,7 @@ class mc extends z {
|
|
|
3317
3317
|
render(e = !0) {
|
|
3318
3318
|
const t = this.getComponentContainer({ withinChartClip: !0 }), s = this.getOptions();
|
|
3319
3319
|
let n = [0, 0];
|
|
3320
|
-
const { cartesianScales: a } = this.services, i = a.getOrientation(), r =
|
|
3320
|
+
const { cartesianScales: a } = this.services, i = a.getOrientation(), r = It().curve(this.services.curves.getD3Curve()).defined((L) => {
|
|
3321
3321
|
const O = a.getRangeIdentifier(), k = L[O];
|
|
3322
3322
|
return k != null;
|
|
3323
3323
|
}), l = this.model.getGroupedData(this.configs.groups), c = y(s, "bounds"), d = c && l && l.length === 1;
|
|
@@ -3368,8 +3368,8 @@ class mc extends z {
|
|
|
3368
3368
|
this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
|
|
3369
3369
|
this.parentNode.remove();
|
|
3370
3370
|
});
|
|
3371
|
-
const T = this,
|
|
3372
|
-
b ?
|
|
3371
|
+
const T = this, M = v.enter().append("path");
|
|
3372
|
+
b ? M.merge(v).style(
|
|
3373
3373
|
"fill",
|
|
3374
3374
|
(L) => `url(#${this.services.domUtils.generateElementIDString(
|
|
3375
3375
|
`${L.name.replace(" ", "")}_${this.gradient_id}`
|
|
@@ -3384,7 +3384,7 @@ class mc extends z {
|
|
|
3384
3384
|
).attr("d", (L) => {
|
|
3385
3385
|
const { data: O } = L;
|
|
3386
3386
|
return r(O);
|
|
3387
|
-
}) : (
|
|
3387
|
+
}) : (M.attr("opacity", 0).merge(v).attr("class", "area").attr(
|
|
3388
3388
|
"class",
|
|
3389
3389
|
(L) => this.model.getColorClassName({
|
|
3390
3390
|
classNameTypes: [$.FILL, $.STROKE],
|
|
@@ -3400,7 +3400,7 @@ class mc extends z {
|
|
|
3400
3400
|
).attr("opacity", d ? 1 : fe.opacity.selected).attr("d", (L) => {
|
|
3401
3401
|
const { data: O } = L;
|
|
3402
3402
|
return r(O);
|
|
3403
|
-
}), d &&
|
|
3403
|
+
}), d && M.attr("fill-opacity", fe.opacity.selected).style("stroke", (L) => T.model.getStrokeColor(L.name)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
|
|
3404
3404
|
}
|
|
3405
3405
|
destroy() {
|
|
3406
3406
|
const e = this.services.events;
|
|
@@ -3435,7 +3435,7 @@ class fc extends z {
|
|
|
3435
3435
|
a,
|
|
3436
3436
|
i,
|
|
3437
3437
|
s.getOrientation()
|
|
3438
|
-
), c = this.getOptions(), d =
|
|
3438
|
+
), c = this.getOptions(), d = Rt().x(r).y(l).curve(n.getD3Curve()).defined((g) => {
|
|
3439
3439
|
const m = s.getRangeIdentifier(g), b = g[m];
|
|
3440
3440
|
return b != null;
|
|
3441
3441
|
});
|
|
@@ -3449,12 +3449,12 @@ class fc extends z {
|
|
|
3449
3449
|
const S = this.services.cartesianScales.getDomainIdentifier(v), T = this.services.cartesianScales.getRangeIdentifier(v);
|
|
3450
3450
|
return {
|
|
3451
3451
|
name: y(v, 0, m),
|
|
3452
|
-
data: v.map((
|
|
3453
|
-
[S]:
|
|
3454
|
-
[m]:
|
|
3455
|
-
[T]:
|
|
3452
|
+
data: v.map((M) => ({
|
|
3453
|
+
[S]: M.data.sharedStackKey,
|
|
3454
|
+
[m]: M[m],
|
|
3455
|
+
[T]: M[1]
|
|
3456
3456
|
})),
|
|
3457
|
-
hidden: !Ha(v, (
|
|
3457
|
+
hidden: !Ha(v, (M) => M[0] !== M[1])
|
|
3458
3458
|
};
|
|
3459
3459
|
});
|
|
3460
3460
|
} else
|
|
@@ -3526,17 +3526,17 @@ class Xs extends z {
|
|
|
3526
3526
|
const m = this.pointsWithinLine.reduce((b, v) => {
|
|
3527
3527
|
if (b.length === 0)
|
|
3528
3528
|
return b.push(v), b;
|
|
3529
|
-
const S = b[0].domainValue, T = Math.abs(d - v.domainValue),
|
|
3530
|
-
return T >
|
|
3529
|
+
const S = b[0].domainValue, T = Math.abs(d - v.domainValue), M = Math.abs(d - S);
|
|
3530
|
+
return T > M || (T < M ? b = [v] : b.push(v)), b;
|
|
3531
3531
|
}, []);
|
|
3532
3532
|
if (m.length > 0) {
|
|
3533
|
-
const b = m.map((
|
|
3534
|
-
const L = this.services.cartesianScales.getRangeIdentifier(
|
|
3533
|
+
const b = m.map((M) => M.originalData).filter((M) => {
|
|
3534
|
+
const L = this.services.cartesianScales.getRangeIdentifier(M), O = M[L];
|
|
3535
3535
|
return O != null;
|
|
3536
3536
|
}), v = m.map(
|
|
3537
|
-
(
|
|
3538
|
-
), S = u.filter((
|
|
3539
|
-
const L = this.services.cartesianScales.getDomainValue(
|
|
3537
|
+
(M) => M.domainValue
|
|
3538
|
+
), S = u.filter((M) => {
|
|
3539
|
+
const L = this.services.cartesianScales.getDomainValue(M);
|
|
3540
3540
|
return v.includes(L);
|
|
3541
3541
|
});
|
|
3542
3542
|
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Gs(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
@@ -3581,7 +3581,7 @@ class Xs extends z {
|
|
|
3581
3581
|
this.backdrop = E.appendOrSelect(e, "svg.chart-grid-backdrop");
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
|
-
class
|
|
3584
|
+
class Bt extends z {
|
|
3585
3585
|
constructor() {
|
|
3586
3586
|
super(...arguments), this.type = "scatter", this.renderType = H.SVG, this.handleChartHolderOnHover = () => {
|
|
3587
3587
|
if (!this.parent)
|
|
@@ -3853,7 +3853,7 @@ class Ys extends z {
|
|
|
3853
3853
|
h = fs;
|
|
3854
3854
|
break;
|
|
3855
3855
|
case V.BOTTOM:
|
|
3856
|
-
h =
|
|
3856
|
+
h = Dt;
|
|
3857
3857
|
break;
|
|
3858
3858
|
case V.RIGHT:
|
|
3859
3859
|
h = Js;
|
|
@@ -3871,7 +3871,7 @@ class Ys extends z {
|
|
|
3871
3871
|
g.attr("aria-hidden", !0);
|
|
3872
3872
|
return;
|
|
3873
3873
|
}
|
|
3874
|
-
const
|
|
3874
|
+
const M = y(b, "scaleType"), L = y(s, "data", "loading"), O = y(b, "ticks", "number"), k = y(b, "ticks", "values"), I = y(b, "truncation", "type"), F = y(b, "truncation", "threshold"), P = y(b, "truncation", "numCharacter"), A = O !== null, w = y(s, "timeScale"), G = E.appendOrSelect(m, "g.tick"), D = E.appendOrSelect(G, "text").text("0"), X = E.getSVGElementSize(D.node(), {
|
|
3875
3875
|
useBBox: !0
|
|
3876
3876
|
}).height;
|
|
3877
3877
|
G.remove();
|
|
@@ -3895,17 +3895,17 @@ class Ys extends z {
|
|
|
3895
3895
|
let N;
|
|
3896
3896
|
const ae = y(b, "ticks", "formatter");
|
|
3897
3897
|
if (v) {
|
|
3898
|
-
const B =
|
|
3898
|
+
const B = pt(
|
|
3899
3899
|
W.tickValues(),
|
|
3900
3900
|
y(s, "timeScale", "timeInterval")
|
|
3901
3901
|
);
|
|
3902
|
-
ae === null ? N = (j, q) =>
|
|
3903
|
-
const J =
|
|
3902
|
+
ae === null ? N = (j, q) => gt(j, q, W.tickValues(), B, w) : N = (j, q) => {
|
|
3903
|
+
const J = gt(
|
|
3904
3904
|
j,
|
|
3905
3905
|
q,
|
|
3906
3906
|
W.tickValues(),
|
|
3907
3907
|
B,
|
|
3908
|
-
|
|
3908
|
+
w
|
|
3909
3909
|
);
|
|
3910
3910
|
return ae(j, q, J);
|
|
3911
3911
|
};
|
|
@@ -3922,7 +3922,7 @@ class Ys extends z {
|
|
|
3922
3922
|
const j = B.getTime();
|
|
3923
3923
|
return j >= new Date(tt).getTime() && j <= new Date(st).getTime();
|
|
3924
3924
|
});
|
|
3925
|
-
else if (
|
|
3925
|
+
else if (M === te.LABELS) {
|
|
3926
3926
|
const B = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
3927
3927
|
_e = k.filter((j) => B.includes(j));
|
|
3928
3928
|
} else
|
|
@@ -3945,10 +3945,10 @@ class Ys extends z {
|
|
|
3945
3945
|
g.attr("transform", `translate(0, ${this.margins.top})`);
|
|
3946
3946
|
break;
|
|
3947
3947
|
}
|
|
3948
|
-
const
|
|
3948
|
+
const Nt = this.model.isDataEmpty();
|
|
3949
3949
|
if (b.title) {
|
|
3950
3950
|
const B = E.appendOrSelect(l, "text.axis-title").html(
|
|
3951
|
-
|
|
3951
|
+
Nt || L ? "" : b.title
|
|
3952
3952
|
), j = y(b, "titleOrientation");
|
|
3953
3953
|
let q;
|
|
3954
3954
|
switch (t) {
|
|
@@ -3975,10 +3975,10 @@ class Ys extends z {
|
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
if (v) {
|
|
3978
|
-
const B =
|
|
3978
|
+
const B = pt(
|
|
3979
3979
|
W.tickValues(),
|
|
3980
3980
|
y(s, "timeScale", "timeInterval")
|
|
3981
|
-
), j =
|
|
3981
|
+
), j = w.showDayName, q = g;
|
|
3982
3982
|
e && (g = g.transition().call(
|
|
3983
3983
|
(oe) => this.services.transitions.setupTransition({
|
|
3984
3984
|
transition: oe,
|
|
@@ -3997,11 +3997,11 @@ class Ys extends z {
|
|
|
3997
3997
|
if (m.call(W), t === V.BOTTOM || t === V.TOP) {
|
|
3998
3998
|
let B = !1;
|
|
3999
3999
|
const j = y(b, "ticks", "rotation");
|
|
4000
|
-
if (j ===
|
|
4000
|
+
if (j === at.ALWAYS)
|
|
4001
4001
|
B = !0;
|
|
4002
|
-
else if (j ===
|
|
4002
|
+
else if (j === at.NEVER)
|
|
4003
4003
|
B = !1;
|
|
4004
|
-
else if (!j || j ===
|
|
4004
|
+
else if (!j || j === at.AUTO)
|
|
4005
4005
|
if (p.step)
|
|
4006
4006
|
B = m.selectAll("g.tick text").nodes().some(
|
|
4007
4007
|
(J) => E.getSVGElementSize(J, {
|
|
@@ -4023,7 +4023,7 @@ class Ys extends z {
|
|
|
4023
4023
|
this.getNumberOfFittingTicks(i, X, ke.ticks.horizontalSpaceRatio)
|
|
4024
4024
|
), m.call(W), g.call(W)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === V.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
4025
4025
|
}
|
|
4026
|
-
if (L ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (B) => B), m.selectAll("g.tick").attr("aria-label", (B) => B), I !== Ie.NONE &&
|
|
4026
|
+
if (L ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (B) => B), m.selectAll("g.tick").attr("aria-label", (B) => B), I !== Ie.NONE && M === te.LABELS && !k) {
|
|
4027
4027
|
const B = this.services.cartesianScales.getScaleDomain(t);
|
|
4028
4028
|
if (B.length > 0) {
|
|
4029
4029
|
const j = a.select(`g.axis.${t} g.ticks g.tick`).html();
|
|
@@ -4368,7 +4368,7 @@ class yc extends z {
|
|
|
4368
4368
|
(A) => this.services.cartesianScales.getDomainValue(A),
|
|
4369
4369
|
(A) => this.services.cartesianScales.getRangeValue(A),
|
|
4370
4370
|
m
|
|
4371
|
-
), T = Math.floor((b ? h : u) / a.length),
|
|
4371
|
+
), T = Math.floor((b ? h : u) / a.length), M = Math.min(T / 2, 16), L = this.model.getBoxplotData(), O = t.selectAll(".box-group").data(L);
|
|
4372
4372
|
O.exit().remove();
|
|
4373
4373
|
const k = O.enter().append("g").attr("class", "box-group"), I = O.merge(k);
|
|
4374
4374
|
k.append("path").merge(O.select("path.vertical-line.start")).attr(
|
|
@@ -4384,8 +4384,8 @@ class yc extends z {
|
|
|
4384
4384
|
animate: e
|
|
4385
4385
|
})
|
|
4386
4386
|
).attr("d", (A) => {
|
|
4387
|
-
const
|
|
4388
|
-
return ie({ x0:
|
|
4387
|
+
const w = g.getDomainValue(A[n]), G = w, D = g.getRangeValue(A.whiskers.min), X = g.getRangeValue(A.quartiles.q_25);
|
|
4388
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4389
4389
|
}), k.append("path").merge(O.select("path.vertical-line.end")).attr(
|
|
4390
4390
|
"class",
|
|
4391
4391
|
() => this.model.getColorClassName({
|
|
@@ -4399,8 +4399,8 @@ class yc extends z {
|
|
|
4399
4399
|
animate: e
|
|
4400
4400
|
})
|
|
4401
4401
|
).attr("d", (A) => {
|
|
4402
|
-
const
|
|
4403
|
-
return ie({ x0:
|
|
4402
|
+
const w = g.getDomainValue(A[n]), G = w, D = g.getRangeValue(A.whiskers.max), X = g.getRangeValue(A.quartiles.q_75);
|
|
4403
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4404
4404
|
}), k.append("path").merge(O.select("path.box")).attr(
|
|
4405
4405
|
"class",
|
|
4406
4406
|
() => this.model.getColorClassName({
|
|
@@ -4414,15 +4414,15 @@ class yc extends z {
|
|
|
4414
4414
|
animate: e
|
|
4415
4415
|
})
|
|
4416
4416
|
).attr("d", (A) => {
|
|
4417
|
-
const
|
|
4417
|
+
const w = g.getDomainValue(A[n]) - M / 2, G = w + M, D = g.getRangeValue(
|
|
4418
4418
|
Math[b ? "max" : "min"](A.quartiles.q_75, A.quartiles.q_25)
|
|
4419
4419
|
), X = D + Math.abs(
|
|
4420
4420
|
g.getRangeValue(A.quartiles.q_75) - g.getRangeValue(A.quartiles.q_25)
|
|
4421
4421
|
);
|
|
4422
|
-
return ie({ x0:
|
|
4422
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4423
4423
|
}), k.append("path").merge(O.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
|
|
4424
|
-
const
|
|
4425
|
-
return ie({ x0:
|
|
4424
|
+
const w = g.getDomainValue(A[n]) - M / 2, G = w + M, D = g.getRangeValue(A.whiskers.min), X = g.getRangeValue(A.whiskers.max);
|
|
4425
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4426
4426
|
}), k.append("path").merge(O.select("path.whisker.start")).attr(
|
|
4427
4427
|
"class",
|
|
4428
4428
|
() => this.model.getColorClassName({
|
|
@@ -4436,8 +4436,8 @@ class yc extends z {
|
|
|
4436
4436
|
animate: e
|
|
4437
4437
|
})
|
|
4438
4438
|
).attr("d", (A) => {
|
|
4439
|
-
const
|
|
4440
|
-
return ie({ x0:
|
|
4439
|
+
const w = g.getDomainValue(A[n]) - M / 4, G = w + M / 2, D = g.getRangeValue(A.whiskers.min), X = g.getRangeValue(A.whiskers.min);
|
|
4440
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4441
4441
|
}), k.append("path").merge(O.select("path.median")).attr("fill", "none").attr(
|
|
4442
4442
|
"class",
|
|
4443
4443
|
() => this.model.getColorClassName({
|
|
@@ -4451,8 +4451,8 @@ class yc extends z {
|
|
|
4451
4451
|
animate: e
|
|
4452
4452
|
})
|
|
4453
4453
|
).attr("d", (A) => {
|
|
4454
|
-
const
|
|
4455
|
-
return ie({ x0:
|
|
4454
|
+
const w = g.getDomainValue(A[n]) - M / 2, G = w + M, D = g.getRangeValue(A.quartiles.q_50);
|
|
4455
|
+
return ie({ x0: w, x1: G, y0: D, y1: D }, m);
|
|
4456
4456
|
}), k.append("path").merge(O.select("path.whisker.end")).attr(
|
|
4457
4457
|
"class",
|
|
4458
4458
|
() => this.model.getColorClassName({
|
|
@@ -4466,15 +4466,15 @@ class yc extends z {
|
|
|
4466
4466
|
animate: e
|
|
4467
4467
|
})
|
|
4468
4468
|
).attr("d", (A) => {
|
|
4469
|
-
const
|
|
4470
|
-
return ie({ x0:
|
|
4469
|
+
const w = g.getDomainValue(A[n]) - M / 4, G = w + M / 2, D = g.getRangeValue(A.whiskers.max), X = g.getRangeValue(A.whiskers.max);
|
|
4470
|
+
return ie({ x0: w, x1: G, y0: D, y1: X }, m);
|
|
4471
4471
|
});
|
|
4472
4472
|
const F = I.selectAll("circle.outlier").data(
|
|
4473
|
-
(A) => A.outliers.map((
|
|
4473
|
+
(A) => A.outliers.map((w) => ({
|
|
4474
4474
|
min: A.whiskers.min,
|
|
4475
4475
|
max: A.whiskers.max,
|
|
4476
4476
|
[n]: A[n],
|
|
4477
|
-
value:
|
|
4477
|
+
value: w
|
|
4478
4478
|
}))
|
|
4479
4479
|
);
|
|
4480
4480
|
F.exit().remove();
|
|
@@ -4649,7 +4649,7 @@ class bc extends z {
|
|
|
4649
4649
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
4650
4650
|
}
|
|
4651
4651
|
}
|
|
4652
|
-
class Ec extends
|
|
4652
|
+
class Ec extends Bt {
|
|
4653
4653
|
constructor() {
|
|
4654
4654
|
super(...arguments), this.type = "bubble", this.renderType = H.SVG;
|
|
4655
4655
|
}
|
|
@@ -4724,11 +4724,11 @@ class Sc extends z {
|
|
|
4724
4724
|
const t = this.getOptions(), { groupMapsTo: s } = t.data, n = this.getComponentContainer({ withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), i = this.services.cartesianScales.getRangeScale(), r = this.services.cartesianScales.getRangeIdentifier(), [l, c] = i.range(), [, d] = i.domain(), p = () => {
|
|
4725
4725
|
const m = [];
|
|
4726
4726
|
a.forEach((S) => {
|
|
4727
|
-
S.ranges ? S.ranges.forEach((T,
|
|
4727
|
+
S.ranges ? S.ranges.forEach((T, M) => {
|
|
4728
4728
|
T != null && T < d && m.push({
|
|
4729
4729
|
datum: S,
|
|
4730
4730
|
value: T,
|
|
4731
|
-
order:
|
|
4731
|
+
order: M + 1
|
|
4732
4732
|
});
|
|
4733
4733
|
}) : m.push({
|
|
4734
4734
|
datum: S,
|
|
@@ -4743,9 +4743,9 @@ class Sc extends z {
|
|
|
4743
4743
|
animate: e
|
|
4744
4744
|
})
|
|
4745
4745
|
).attr("d", (S) => {
|
|
4746
|
-
let
|
|
4747
|
-
return S.order === 1 ? (
|
|
4748
|
-
{ x0:
|
|
4746
|
+
let M, L, O, k;
|
|
4747
|
+
return S.order === 1 ? (M = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, L = M + 16, O = c - 2, k = l + 1) : (M = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, L = M + 16, O = this.services.cartesianScales.getRangeValue(S.value), k = c), ie(
|
|
4748
|
+
{ x0: M, x1: L, y0: O, y1: k },
|
|
4749
4749
|
this.services.cartesianScales.getOrientation()
|
|
4750
4750
|
);
|
|
4751
4751
|
}).attr("opacity", 1);
|
|
@@ -4765,9 +4765,9 @@ class Sc extends z {
|
|
|
4765
4765
|
originalClassName: "bar"
|
|
4766
4766
|
})
|
|
4767
4767
|
).style("fill", (v) => this.model.getFillColor(v[s])).attr("d", (v) => {
|
|
4768
|
-
const T = this.services.cartesianScales.getDomainValue(v) - 4,
|
|
4768
|
+
const T = this.services.cartesianScales.getDomainValue(v) - 4, M = T + 8, L = this.services.cartesianScales.getRangeValue(0) + 1, O = this.services.cartesianScales.getRangeValue(v);
|
|
4769
4769
|
return ie(
|
|
4770
|
-
{ x0: T, x1:
|
|
4770
|
+
{ x0: T, x1: M, y0: L, y1: O },
|
|
4771
4771
|
this.services.cartesianScales.getOrientation()
|
|
4772
4772
|
);
|
|
4773
4773
|
}).attr("opacity", 1).attr("role", U.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (v) => v.value);
|
|
@@ -4783,20 +4783,20 @@ class Sc extends z {
|
|
|
4783
4783
|
animate: e
|
|
4784
4784
|
})
|
|
4785
4785
|
).attr("d", (v) => {
|
|
4786
|
-
const T = this.services.cartesianScales.getDomainValue(v) - 12,
|
|
4786
|
+
const T = this.services.cartesianScales.getDomainValue(v) - 12, M = T + 24, L = this.services.cartesianScales.getRangeValue(v.marker);
|
|
4787
4787
|
return ie(
|
|
4788
|
-
{ x0: T, x1:
|
|
4788
|
+
{ x0: T, x1: M, y0: L, y1: L },
|
|
4789
4789
|
this.services.cartesianScales.getOrientation()
|
|
4790
4790
|
);
|
|
4791
4791
|
}).attr("opacity", 1);
|
|
4792
4792
|
}, g = () => {
|
|
4793
4793
|
let m = [];
|
|
4794
4794
|
a.filter((S) => y(S, "marker") !== null).forEach((S) => {
|
|
4795
|
-
const T = S.marker,
|
|
4795
|
+
const T = S.marker, M = S[r];
|
|
4796
4796
|
m = m.concat([
|
|
4797
|
-
{ datum: S, value: T * 0.25, barValue:
|
|
4798
|
-
{ datum: S, value: T * 0.5, barValue:
|
|
4799
|
-
{ datum: S, value: T * 0.75, barValue:
|
|
4797
|
+
{ datum: S, value: T * 0.25, barValue: M },
|
|
4798
|
+
{ datum: S, value: T * 0.5, barValue: M },
|
|
4799
|
+
{ datum: S, value: T * 0.75, barValue: M }
|
|
4800
4800
|
]);
|
|
4801
4801
|
});
|
|
4802
4802
|
const b = E.appendOrSelect(n, "g.quartiles").selectAll("path.quartile").data(m, (S) => S[s]);
|
|
@@ -4807,9 +4807,9 @@ class Sc extends z {
|
|
|
4807
4807
|
animate: e
|
|
4808
4808
|
})
|
|
4809
4809
|
).attr("d", ({ datum: S, value: T }) => {
|
|
4810
|
-
let
|
|
4811
|
-
S.ranges && S.ranges.indexOf(T) !== -1 && (
|
|
4812
|
-
const L = this.services.cartesianScales.getDomainValue(S) -
|
|
4810
|
+
let M = 4;
|
|
4811
|
+
S.ranges && S.ranges.indexOf(T) !== -1 && (M = 8);
|
|
4812
|
+
const L = this.services.cartesianScales.getDomainValue(S) - M / 2, O = L + M, k = this.services.cartesianScales.getRangeValue(T);
|
|
4813
4813
|
return ie(
|
|
4814
4814
|
{ x0: L, x1: O, y0: k, y1: k },
|
|
4815
4815
|
this.services.cartesianScales.getOrientation()
|
|
@@ -4914,10 +4914,10 @@ function ur(o, e) {
|
|
|
4914
4914
|
}) } : ds(o, e);
|
|
4915
4915
|
}
|
|
4916
4916
|
function ds(o, e) {
|
|
4917
|
-
var t = e.id, s = e.bbox, n = e.properties == null ? {} : e.properties, a =
|
|
4917
|
+
var t = e.id, s = e.bbox, n = e.properties == null ? {} : e.properties, a = $t(o, e);
|
|
4918
4918
|
return t == null && s == null ? { type: "Feature", properties: n, geometry: a } : s == null ? { type: "Feature", id: t, properties: n, geometry: a } : { type: "Feature", id: t, bbox: s, properties: n, geometry: a };
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function $t(o, e) {
|
|
4921
4921
|
var t = dr(o.transform), s = o.arcs;
|
|
4922
4922
|
function n(d, p) {
|
|
4923
4923
|
p.length && p.pop();
|
|
@@ -5019,7 +5019,7 @@ function gr(o) {
|
|
|
5019
5019
|
return Math.abs(a);
|
|
5020
5020
|
}
|
|
5021
5021
|
function mr(o) {
|
|
5022
|
-
return
|
|
5022
|
+
return $t(o, fr.apply(this, arguments));
|
|
5023
5023
|
}
|
|
5024
5024
|
function fr(o, e) {
|
|
5025
5025
|
var t = {}, s = [], n = [];
|
|
@@ -5045,7 +5045,7 @@ function fr(o, e) {
|
|
|
5045
5045
|
}), s.push(l);
|
|
5046
5046
|
}
|
|
5047
5047
|
function r(l) {
|
|
5048
|
-
return gr(
|
|
5048
|
+
return gr($t(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5049
5049
|
}
|
|
5050
5050
|
return s.forEach(function(l) {
|
|
5051
5051
|
if (!l._) {
|
|
@@ -5096,7 +5096,7 @@ class xc extends Xs {
|
|
|
5096
5096
|
});
|
|
5097
5097
|
if (b.size() > 0) {
|
|
5098
5098
|
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Gs(this.elementsToHighlight, b) && this.hideRuler(), b.dispatch("mouseover"), this.elementsToHighlight = b;
|
|
5099
|
-
const v = x(b.nodes()[0]).datum(), S = parseFloat(Q(v, "data.x0")), T = parseFloat(Q(v, "data.x1")),
|
|
5099
|
+
const v = x(b.nodes()[0]).datum(), S = parseFloat(Q(v, "data.x0")), T = parseFloat(Q(v, "data.x1")), M = this.model.getActiveDataGroupNames(), L = M.reverse().map((k) => ({
|
|
5100
5100
|
label: k,
|
|
5101
5101
|
value: Q(v, `data.${k}`),
|
|
5102
5102
|
class: this.model.getColorClassName({
|
|
@@ -5117,7 +5117,7 @@ class xc extends Xs {
|
|
|
5117
5117
|
...y(a, "tooltip", "showTotal") === !0 ? [
|
|
5118
5118
|
{
|
|
5119
5119
|
label: Q(a, "tooltip.totalLabel") || "Total",
|
|
5120
|
-
value:
|
|
5120
|
+
value: M.reduce(
|
|
5121
5121
|
(I, F) => I + parseFloat(Q(v, `data.${F}`)),
|
|
5122
5122
|
0
|
|
5123
5123
|
)
|
|
@@ -5139,13 +5139,13 @@ class Oc extends Xs {
|
|
|
5139
5139
|
}
|
|
5140
5140
|
}
|
|
5141
5141
|
const Tc = (o, e) => {
|
|
5142
|
-
const t = o.x, s = o.y, n = e.x, a = e.y, i =
|
|
5142
|
+
const t = o.x, s = o.y, n = e.x, a = e.y, i = _t();
|
|
5143
5143
|
return i.moveTo(t, s), i.lineTo(n, a), i.toString();
|
|
5144
5144
|
}, Lc = (o, e, t = 0.5) => {
|
|
5145
|
-
const s = o.x, n = o.y, a = e.x, i = e.y, r =
|
|
5145
|
+
const s = o.x, n = o.y, a = e.x, i = e.y, r = _t();
|
|
5146
5146
|
return r.moveTo(s, n), r.lineTo(s + (a - s) * t, n), r.lineTo(s + (a - s) * t, i), r.lineTo(a, i), r.toString();
|
|
5147
5147
|
}, wc = (o, e, t, s, n, a) => {
|
|
5148
|
-
const i = o.x, r = o.y, l = e.x, c = e.y, d =
|
|
5148
|
+
const i = o.x, r = o.y, l = e.x, c = e.y, d = _t();
|
|
5149
5149
|
return d.moveTo(i, r), d.bezierCurveTo(t, s, n, a, l, c), d.toString();
|
|
5150
5150
|
}, Mc = {
|
|
5151
5151
|
d: "M7 0v8L0 4z",
|
|
@@ -5235,15 +5235,15 @@ class Dc extends nr {
|
|
|
5235
5235
|
else
|
|
5236
5236
|
for (let I = 1; I < S + 1; I++)
|
|
5237
5237
|
v.push(
|
|
5238
|
-
i ===
|
|
5238
|
+
i === it.LINEAR ? `stop-color-${b}-${r}-${I}` : `fill-${b}-${r}-${I}`
|
|
5239
5239
|
);
|
|
5240
|
-
const T = vs(p[0], p[1]),
|
|
5240
|
+
const T = vs(p[0], p[1]), M = en(T, 3), L = Oe().domain(p).range([0, u]), O = Dt(L).tickSize(0).tickValues(M);
|
|
5241
5241
|
let k;
|
|
5242
5242
|
switch (i) {
|
|
5243
|
-
case
|
|
5243
|
+
case it.LINEAR:
|
|
5244
5244
|
this.drawLinear(v, g, u);
|
|
5245
5245
|
break;
|
|
5246
|
-
case
|
|
5246
|
+
case it.QUANTIZE:
|
|
5247
5247
|
k = this.drawQuantize(
|
|
5248
5248
|
v,
|
|
5249
5249
|
b,
|
|
@@ -5271,7 +5271,7 @@ class Dc extends nr {
|
|
|
5271
5271
|
*/
|
|
5272
5272
|
drawQuantize(e, t, s, n, a) {
|
|
5273
5273
|
!s && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5274
|
-
const i =
|
|
5274
|
+
const i = Pt().domain(e).range([0, a]);
|
|
5275
5275
|
return E.appendOrSelect(n, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", K.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!s && t) === "mono" ? i.bandwidth() - 1 : 0;
|
|
5276
5276
|
}
|
|
5277
5277
|
destroy() {
|
|
@@ -5374,16 +5374,16 @@ class _c extends sr {
|
|
|
5374
5374
|
*/
|
|
5375
5375
|
getStatusIconPathString(e) {
|
|
5376
5376
|
switch (e) {
|
|
5377
|
-
case
|
|
5377
|
+
case rt.SUCCESS:
|
|
5378
5378
|
return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
|
|
5379
|
-
case
|
|
5379
|
+
case rt.DANGER:
|
|
5380
5380
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
5381
|
-
case
|
|
5381
|
+
case rt.WARNING:
|
|
5382
5382
|
return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
|
|
5383
5383
|
}
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
|
-
class
|
|
5386
|
+
class Gt extends z {
|
|
5387
5387
|
// Gets the correct width for bars based on options & configurations
|
|
5388
5388
|
getBarWidth() {
|
|
5389
5389
|
const e = this.getOptions();
|
|
@@ -5440,7 +5440,7 @@ class Pc extends z {
|
|
|
5440
5440
|
let a = this.model.getDisplayData();
|
|
5441
5441
|
const i = this.model.hasParentNode(), r = this.model.getHierarchyLevel(), l = this.getOptions(), c = y(l, "canvasZoom", "enabled");
|
|
5442
5442
|
i && y(a, 0, "children") && (a = y(a, 0, "children"));
|
|
5443
|
-
const d =
|
|
5443
|
+
const d = Vt({ children: a }).sum((m) => m.value).sort((m, b) => b.value - m.value), h = tn().size([s, n]).padding((m) => m.depth >= 1 ? Pe.padding.children + 3 : Pe.padding.mainGroup + 3)(d).descendants().splice(1).filter((m) => m.depth <= r), u = t.selectAll("circle.node").data(h);
|
|
5444
5444
|
u.exit().attr("width", 0).attr("height", 0).remove();
|
|
5445
5445
|
const g = u.enter().append("circle").classed("node", !0);
|
|
5446
5446
|
g.merge(u).attr("class", (m) => {
|
|
@@ -5618,49 +5618,57 @@ class yr extends z {
|
|
|
5618
5618
|
return Z.innerRadius;
|
|
5619
5619
|
}
|
|
5620
5620
|
render(e = !0) {
|
|
5621
|
-
const t = this, s = this.getComponentContainer(), n = this.getOptions(), { groupMapsTo: a } = n.data, { valueMapsTo: i } = n.pie, r = this.model.getDisplayData().filter((
|
|
5621
|
+
const t = this, s = this.getComponentContainer(), n = this.getOptions(), { groupMapsTo: a } = n.data, { valueMapsTo: i } = n.pie, r = this.model.getDisplayData().filter((w) => w[i] > 0), l = this.computeRadius();
|
|
5622
5622
|
this.arc = $e().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = $e().innerRadius(this.getInnerRadius()).outerRadius(l + Z.hoverArc.outerRadiusOffset);
|
|
5623
|
-
const d = sn().value((
|
|
5623
|
+
const d = sn().value((w) => w[i]).sort(y(n, "pie", "sortFunction")).padAngle(Z.padAngle)(r), h = E.appendOrSelect(s, "g.slices").attr("role", U.GROUP).attr("data-name", "slices").selectAll("path.slice").data(d, (w) => w.data[a]);
|
|
5624
5624
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
|
|
5625
5625
|
"class",
|
|
5626
|
-
(
|
|
5626
|
+
(w) => this.model.getColorClassName({
|
|
5627
5627
|
classNameTypes: [$.FILL],
|
|
5628
|
-
dataGroupName:
|
|
5628
|
+
dataGroupName: w.data[a],
|
|
5629
5629
|
originalClassName: "slice"
|
|
5630
5630
|
})
|
|
5631
|
-
).style("fill", (
|
|
5632
|
-
(
|
|
5633
|
-
transition:
|
|
5631
|
+
).style("fill", (w) => t.model.getFillColor(w.data[a])).attr("d", this.arc).transition().call(
|
|
5632
|
+
(w) => this.services.transitions.setupTransition({
|
|
5633
|
+
transition: w,
|
|
5634
5634
|
name: "pie_slice_enter_update",
|
|
5635
5635
|
animate: e
|
|
5636
5636
|
})
|
|
5637
5637
|
).attr("opacity", 1).attr("role", U.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
|
|
5638
5638
|
"aria-label",
|
|
5639
|
-
(
|
|
5640
|
-
).attrTween("d", function(
|
|
5641
|
-
return vr.bind(this)(
|
|
5639
|
+
(w) => `${w[i]}, ${nt(w.data[i], r, i) + "%"}`
|
|
5640
|
+
).attrTween("d", function(w) {
|
|
5641
|
+
return vr.bind(this)(w, t.arc);
|
|
5642
5642
|
});
|
|
5643
|
-
const m = n.pie.labels.enabled, b = m ? d.filter((
|
|
5643
|
+
const m = n.pie.labels.enabled, b = m ? d.filter((w) => w.data[i] > 0) : [], S = E.appendOrSelect(s, "g.labels").attr("role", U.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(b, (w) => w.data[a]);
|
|
5644
5644
|
S.exit().attr("opacity", 0).remove();
|
|
5645
|
-
const T = S.enter().append("text").classed("pie-label", !0),
|
|
5646
|
-
T.merge(S).style("text-anchor", "middle").text((
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5645
|
+
const T = S.enter().append("text").classed("pie-label", !0), M = [];
|
|
5646
|
+
T.merge(S).style("text-anchor", "middle").text((w) => n.pie.labels.formatter ? n.pie.labels.formatter({
|
|
5647
|
+
...w,
|
|
5648
|
+
percentageValue: nt(
|
|
5649
|
+
w.data[i],
|
|
5650
|
+
r,
|
|
5651
|
+
i,
|
|
5652
|
+
!0
|
|
5653
|
+
)
|
|
5654
|
+
}) : nt(w.data[i], r, i) + "%").datum(function(w) {
|
|
5655
|
+
const G = l + 7, D = (w.endAngle - w.startAngle) / 2 + w.startAngle, X = D / Math.PI * 180, re = this.getComputedTextLength();
|
|
5656
|
+
return w.textOffsetX = re / 2, w.textOffsetY = X > 90 && X < 270 ? 10 : 0, w.xPosition = (w.textOffsetX + G) * Math.sin(D), w.yPosition = (w.textOffsetY + G) * -Math.cos(D), w;
|
|
5657
|
+
}).attr("transform", function(w, G) {
|
|
5658
|
+
const D = b.length, X = (w.endAngle - w.startAngle) * (180 / Math.PI);
|
|
5651
5659
|
if (G >= D - 2 && X < Z.callout.minSliceDegree) {
|
|
5652
5660
|
let re, W;
|
|
5653
|
-
return
|
|
5661
|
+
return w.index === D - 1 ? (re = w.xPosition + Z.callout.offsetX + Z.callout.textMargin + w.textOffsetX, W = w.yPosition - Z.callout.offsetY, w.direction = ot.RIGHT, M.push(w)) : (re = w.xPosition - Z.callout.offsetX - w.textOffsetX - Z.callout.textMargin, W = w.yPosition - Z.callout.offsetY, w.direction = ot.LEFT, M.push(w)), `translate(${re}, ${W})`;
|
|
5654
5662
|
}
|
|
5655
|
-
return `translate(${
|
|
5656
|
-
}), this.renderCallouts(
|
|
5663
|
+
return `translate(${w.xPosition}, ${w.yPosition})`;
|
|
5664
|
+
}), this.renderCallouts(M);
|
|
5657
5665
|
const L = y(n, "donut") ? "donut" : "pie", O = y(n, L, "alignment"), { width: k } = E.getSVGElementSize(this.getParent(), {
|
|
5658
5666
|
useAttrs: !0
|
|
5659
5667
|
}), I = m ? Z.xOffset : 0, F = m ? Z.yOffset : 0;
|
|
5660
5668
|
let P = l + I;
|
|
5661
5669
|
O === ue.CENTER ? P = k / 2 : O === ue.RIGHT && (P = k - l - Z.xOffset);
|
|
5662
5670
|
let A = l + F;
|
|
5663
|
-
|
|
5671
|
+
M.length > 0 && (A += Z.yOffsetCallout), s.attr("x", P + 7).attr("y", A), this.addEventListeners();
|
|
5664
5672
|
}
|
|
5665
5673
|
renderCallouts(e) {
|
|
5666
5674
|
const t = E.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", U.GROUP).attr("data-name", "callouts"), s = t.selectAll("g.callout").data(e);
|
|
@@ -5668,7 +5676,7 @@ class yr extends z {
|
|
|
5668
5676
|
const n = s.enter().append("g").classed("callout", !0).attr("role", U.GROUP).attr("aria-roledescription", "label callout");
|
|
5669
5677
|
n.merge(s).datum(function(r) {
|
|
5670
5678
|
const { xPosition: l, yPosition: c, direction: d } = r;
|
|
5671
|
-
return d ===
|
|
5679
|
+
return d === ot.RIGHT ? (r.startPos = {
|
|
5672
5680
|
x: l,
|
|
5673
5681
|
y: c + r.textOffsetY
|
|
5674
5682
|
}, r.endPos = {
|
|
@@ -5865,10 +5873,10 @@ class Bc extends z {
|
|
|
5865
5873
|
const { width: v } = E.getSVGElementSize(
|
|
5866
5874
|
E.appendOrSelect(e, "text.gauge-value-number"),
|
|
5867
5875
|
{ useBBox: !0 }
|
|
5868
|
-
), S = u / 2, T = d ? "%" : "",
|
|
5876
|
+
), S = u / 2, T = d ? "%" : "", M = E.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(T), { width: L, height: O } = E.getSVGElementSize(M, {
|
|
5869
5877
|
useBBox: !0
|
|
5870
5878
|
});
|
|
5871
|
-
|
|
5879
|
+
M.attr("y", `-${O / 2}px`), g.attr("transform", `translate(-${L / 2}, 0)`);
|
|
5872
5880
|
}
|
|
5873
5881
|
/**
|
|
5874
5882
|
* adds the delta number for the gauge
|
|
@@ -5938,7 +5946,7 @@ class Bc extends z {
|
|
|
5938
5946
|
return t === ze.SEMI ? Math.min(s / 2, n) : Math.min(s / 2, n / 2);
|
|
5939
5947
|
}
|
|
5940
5948
|
}
|
|
5941
|
-
class $c extends
|
|
5949
|
+
class $c extends Gt {
|
|
5942
5950
|
constructor() {
|
|
5943
5951
|
super(...arguments), this.type = "grouped-bar", this.renderType = H.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
5944
5952
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -6000,8 +6008,8 @@ class $c extends $t {
|
|
|
6000
6008
|
originalClassName: "bar"
|
|
6001
6009
|
})
|
|
6002
6010
|
).style("fill", (h) => this.model.getFillColor(h[n])).attr("d", (h) => {
|
|
6003
|
-
const u = this.groupScale(h[n]), g = this.getBarWidth(), m = u, b = u + g, v = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), S = this.services.cartesianScales.getValueThroughAxisPosition(v, 0), T = this.services.cartesianScales.getRangeValue(h),
|
|
6004
|
-
if (!this.isOutsideZoomedDomain(
|
|
6011
|
+
const u = this.groupScale(h[n]), g = this.getBarWidth(), m = u, b = u + g, v = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), S = this.services.cartesianScales.getValueThroughAxisPosition(v, 0), T = this.services.cartesianScales.getRangeValue(h), M = this.services.cartesianScales.getDomainValue(h) - g / 2, L = M + g;
|
|
6012
|
+
if (!this.isOutsideZoomedDomain(M, L))
|
|
6005
6013
|
return ie(
|
|
6006
6014
|
{ x0: m, x1: b, y0: S, y1: T },
|
|
6007
6015
|
this.services.cartesianScales.getOrientation()
|
|
@@ -6098,7 +6106,7 @@ class $c extends $t {
|
|
|
6098
6106
|
}
|
|
6099
6107
|
setGroupScale() {
|
|
6100
6108
|
const e = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
6101
|
-
this.groupScale =
|
|
6109
|
+
this.groupScale = Pt().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6102
6110
|
}
|
|
6103
6111
|
}
|
|
6104
6112
|
class Gc extends z {
|
|
@@ -6127,7 +6135,7 @@ class Gc extends z {
|
|
|
6127
6135
|
}
|
|
6128
6136
|
p += m, h = m < h ? m : h, u = m > u ? m : u;
|
|
6129
6137
|
}
|
|
6130
|
-
})), l(s) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(s)}, ${
|
|
6138
|
+
})), l(s) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${l(s)}, ${ut(c.range())})`) : c(s) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${ut(l.range())},${c(s)})`), this.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
6131
6139
|
event: t.event,
|
|
6132
6140
|
hoveredElement: x(e.detail.element),
|
|
6133
6141
|
items: [
|
|
@@ -6206,7 +6214,7 @@ class Gc extends z {
|
|
|
6206
6214
|
}
|
|
6207
6215
|
determineDividerStatus() {
|
|
6208
6216
|
const e = y(this.getOptions(), "heatmap", "divider", "state");
|
|
6209
|
-
return e !==
|
|
6217
|
+
return e !== lt.OFF && (e === lt.AUTO && Ft.minCellDividerDimension <= this.xBandwidth && Ft.minCellDividerDimension <= this.yBandwidth || e === lt.ON);
|
|
6210
6218
|
}
|
|
6211
6219
|
addEventListener() {
|
|
6212
6220
|
const e = this, { cartesianScales: t } = this.services, s = this.getOptions(), n = Q(s, "tooltip.totalLabel"), a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), r = t.getDomainLabel(), l = t.getRangeLabel();
|
|
@@ -6367,7 +6375,7 @@ class Nc extends z {
|
|
|
6367
6375
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6368
6376
|
}
|
|
6369
6377
|
}
|
|
6370
|
-
class Hc extends
|
|
6378
|
+
class Hc extends Bt {
|
|
6371
6379
|
constructor() {
|
|
6372
6380
|
super(...arguments), this.type = "lollipop", this.renderType = H.SVG, this.handleScatterOnHover = (e) => {
|
|
6373
6381
|
const t = e.detail, s = this.getOptions(), { groupMapsTo: n } = s.data;
|
|
@@ -6603,17 +6611,17 @@ class zc extends z {
|
|
|
6603
6611
|
const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), L = (Math.min(s, n) - S) / 2;
|
|
6604
6612
|
if (L <= 0)
|
|
6605
6613
|
return;
|
|
6606
|
-
const O =
|
|
6614
|
+
const O = Pt().domain(this.fullDataNormalized.map((C) => C[d])).range([0, 2 * Math.PI].map((C) => C - Math.PI / 2)), k = ut(this.fullDataNormalized.map((C) => C[p])), I = Oe().domain([
|
|
6607
6615
|
k >= 0 ? 0 : k,
|
|
6608
|
-
|
|
6609
|
-
]).range([m, L]).nice(g), F = I.ticks(g), P = (C) => this.model.getFillColor(C), A = rn().angle((C) => O(C[d]) + Math.PI / 2).radius((C) => I(C[p])).curve(on),
|
|
6616
|
+
Ht(this.fullDataNormalized.map((C) => C[p]))
|
|
6617
|
+
]).range([m, L]).nice(g), F = I.ticks(g), P = (C) => this.model.getFillColor(C), A = rn().angle((C) => O(C[d]) + Math.PI / 2).radius((C) => I(C[p])).curve(on), w = this.uniqueKeys.map((C) => {
|
|
6610
6618
|
const R = this.getLabelDimensions(C).width, _ = Vn(
|
|
6611
6619
|
O(C),
|
|
6612
6620
|
L
|
|
6613
6621
|
);
|
|
6614
6622
|
return R + _;
|
|
6615
6623
|
}), D = {
|
|
6616
|
-
x:
|
|
6624
|
+
x: Ht(w) + h,
|
|
6617
6625
|
y: n / 2
|
|
6618
6626
|
}, re = E.appendOrSelect(t, "g.y-axes").attr("role", U.GROUP).selectAll("path").data(F, (C) => C), W = (C) => this.uniqueKeys.map((R) => ({ [d]: R, [p]: C }));
|
|
6619
6627
|
re.join(
|
|
@@ -6890,7 +6898,7 @@ class zc extends z {
|
|
|
6890
6898
|
});
|
|
6891
6899
|
}
|
|
6892
6900
|
}
|
|
6893
|
-
class Fc extends
|
|
6901
|
+
class Fc extends Gt {
|
|
6894
6902
|
constructor() {
|
|
6895
6903
|
super(...arguments), this.type = "simple-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
6896
6904
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.getOptions().data;
|
|
@@ -7040,7 +7048,7 @@ class jc extends z {
|
|
|
7040
7048
|
percentage: i,
|
|
7041
7049
|
groups: this.configs.groups
|
|
7042
7050
|
}), l = y(r, 0, 0), c = this.services.cartesianScales.getDomainAxisPosition({ datum: l }), d = this.services.cartesianScales.getRangeAxisPosition({ datum: l }), p = this.services.cartesianScales.getScaleByPosition(d), h = t.selectAll("path.area").data(r, (g) => y(g, 0, a));
|
|
7043
|
-
this.areaGenerator =
|
|
7051
|
+
this.areaGenerator = It().x(
|
|
7044
7052
|
(g) => this.services.cartesianScales.getValueThroughAxisPosition(
|
|
7045
7053
|
c,
|
|
7046
7054
|
g.data.sharedStackKey
|
|
@@ -7061,7 +7069,7 @@ class jc extends z {
|
|
|
7061
7069
|
).attr("opacity", fe.opacity.selected).attr("d", this.areaGenerator);
|
|
7062
7070
|
}
|
|
7063
7071
|
}
|
|
7064
|
-
class Zc extends
|
|
7072
|
+
class Zc extends Gt {
|
|
7065
7073
|
constructor() {
|
|
7066
7074
|
super(...arguments), this.type = "stacked-bar", this.renderType = H.SVG, this.handleLegendOnHover = (e) => {
|
|
7067
7075
|
const { hoveredElement: t } = e.detail, { groupMapsTo: s } = this.model.getOptions().data;
|
|
@@ -7189,7 +7197,7 @@ class Zc extends $t {
|
|
|
7189
7197
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7190
7198
|
}
|
|
7191
7199
|
}
|
|
7192
|
-
class Xc extends
|
|
7200
|
+
class Xc extends Bt {
|
|
7193
7201
|
constructor() {
|
|
7194
7202
|
super(...arguments), this.type = "scatter-stacked", this.renderType = H.SVG;
|
|
7195
7203
|
}
|
|
@@ -7271,7 +7279,7 @@ class Yc extends z {
|
|
|
7271
7279
|
right: 0,
|
|
7272
7280
|
bottom: 0,
|
|
7273
7281
|
left: l > 0 ? l + Ae : 30 - Ae
|
|
7274
|
-
}, h =
|
|
7282
|
+
}, h = Vt({
|
|
7275
7283
|
name: r,
|
|
7276
7284
|
children: i
|
|
7277
7285
|
}), u = 10, g = s / 6, m = (O) => {
|
|
@@ -7280,7 +7288,7 @@ class Yc extends z {
|
|
|
7280
7288
|
h.eachBefore((N) => {
|
|
7281
7289
|
N.x < F.x && (F = N), N.x > P.x && (P = N);
|
|
7282
7290
|
});
|
|
7283
|
-
const A = P.x - F.x,
|
|
7291
|
+
const A = P.x - F.x, w = t.transition().call(
|
|
7284
7292
|
(N) => this.services.transitions.setupTransition({
|
|
7285
7293
|
transition: N,
|
|
7286
7294
|
name: "tree-update-viewbox",
|
|
@@ -7308,12 +7316,12 @@ class Yc extends z {
|
|
|
7308
7316
|
datum: ae
|
|
7309
7317
|
});
|
|
7310
7318
|
});
|
|
7311
|
-
X.append("circle").attr("r", 2.5).attr("class", (N) => N._children ? "parent" : "child").attr("stroke-width", 10), X.append("text").attr("dy", "0.31em").attr("x", (N) => N._children ? -Ae : Ae).attr("text-anchor", (N) => N._children ? "end" : "start").text((N) => N.data.name).clone(!0).attr("class", "text-stroke").lower(), G.merge(X).transition(
|
|
7312
|
-
const re =
|
|
7319
|
+
X.append("circle").attr("r", 2.5).attr("class", (N) => N._children ? "parent" : "child").attr("stroke-width", 10), X.append("text").attr("dy", "0.31em").attr("x", (N) => N._children ? -Ae : Ae).attr("text-anchor", (N) => N._children ? "end" : "start").text((N) => N.data.name).clone(!0).attr("class", "text-stroke").lower(), G.merge(X).transition(w).attr("transform", (N) => `translate(${N.y},${N.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), G.exit().transition(w).remove().attr("transform", () => `translate(${O.y},${O.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
7320
|
+
const re = M.selectAll("path").data(I, (N) => N.target.id), W = re.enter().append("path").attr("d", () => {
|
|
7313
7321
|
const N = { x: O.x0, y: O.y0 };
|
|
7314
7322
|
return T({ source: N, target: N });
|
|
7315
7323
|
});
|
|
7316
|
-
re.merge(W).transition(
|
|
7324
|
+
re.merge(W).transition(w).attr("d", T), re.exit().transition(w).remove().attr("d", () => {
|
|
7317
7325
|
const N = { x: O.x, y: O.y };
|
|
7318
7326
|
return T({ source: N, target: N });
|
|
7319
7327
|
}), h.eachBefore((N) => {
|
|
@@ -7329,7 +7337,7 @@ class Yc extends z {
|
|
|
7329
7337
|
h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((O, k) => {
|
|
7330
7338
|
O.id = k, O._children = O.children;
|
|
7331
7339
|
}), S(h), t.attr("viewBox", [-p.left, -p.top, s, u]).style("user-select", "none");
|
|
7332
|
-
const
|
|
7340
|
+
const M = t.append("g").attr("class", "links"), L = t.append("g").attr("class", "nodes");
|
|
7333
7341
|
m(h);
|
|
7334
7342
|
}
|
|
7335
7343
|
}
|
|
@@ -7538,7 +7546,7 @@ class qc extends z {
|
|
|
7538
7546
|
this.model.getData();
|
|
7539
7547
|
const s = this.model.getDisplayData(), n = this.model.getOptions(), a = y(window, "location"), { width: i, height: r } = E.getSVGElementSize(t, {
|
|
7540
7548
|
useAttrs: !0
|
|
7541
|
-
}), l =
|
|
7549
|
+
}), l = Vt({
|
|
7542
7550
|
name: n.title || "Treemap",
|
|
7543
7551
|
children: s
|
|
7544
7552
|
}).sum((m) => m.value).sort((m, b) => b.value - m.value), c = hn().size([i, r]).paddingInner(1).paddingOuter(0).round(!0)(
|
|
@@ -7762,7 +7770,7 @@ class Kc extends z {
|
|
|
7762
7770
|
return Oe().domain(r).range(i ? t.wordCloud.fontSizeRange(a, e) : [4, 4]);
|
|
7763
7771
|
}
|
|
7764
7772
|
addEventListeners() {
|
|
7765
|
-
const e = this.getOptions(), { groupMapsTo: t } = e.data, s = this, n =
|
|
7773
|
+
const e = this.getOptions(), { groupMapsTo: t } = e.data, s = this, n = mt((a) => {
|
|
7766
7774
|
const i = s.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
7767
7775
|
(r) => s.services.transitions.setupTransition({
|
|
7768
7776
|
transition: r,
|
|
@@ -7850,7 +7858,7 @@ class Xl extends z {
|
|
|
7850
7858
|
const g = this.services.domUtils.generateElementIDString("geo-pattern-stripes"), m = E.appendOrSelect(e, "defs");
|
|
7851
7859
|
E.appendOrSelect(m, "pattern").attr("id", g).attr("width", 5).attr("height", 10).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("path").classed("pattern-fill", !0).attr(
|
|
7852
7860
|
"d",
|
|
7853
|
-
|
|
7861
|
+
Rt()([
|
|
7854
7862
|
[0, 0],
|
|
7855
7863
|
[0, 10]
|
|
7856
7864
|
])
|
|
@@ -7919,7 +7927,7 @@ class Jc extends Xl {
|
|
|
7919
7927
|
event: s,
|
|
7920
7928
|
element: a,
|
|
7921
7929
|
datum: t[n.properties.NAME]
|
|
7922
|
-
}), e.services.events.dispatchEvent(
|
|
7930
|
+
}), e.services.events.dispatchEvent(ct.SHOW, {
|
|
7923
7931
|
event: s,
|
|
7924
7932
|
hoveredElement: a,
|
|
7925
7933
|
items: [
|
|
@@ -7934,7 +7942,7 @@ class Jc extends Xl {
|
|
|
7934
7942
|
event: s,
|
|
7935
7943
|
element: x(this),
|
|
7936
7944
|
datum: t[n.properties.NAME]
|
|
7937
|
-
}), e.services.events.dispatchEvent(
|
|
7945
|
+
}), e.services.events.dispatchEvent(ct.MOVE, {
|
|
7938
7946
|
event: s
|
|
7939
7947
|
});
|
|
7940
7948
|
}).on("click", function(s, n) {
|
|
@@ -7949,7 +7957,7 @@ class Jc extends Xl {
|
|
|
7949
7957
|
event: s,
|
|
7950
7958
|
element: a,
|
|
7951
7959
|
datum: t[n.properties.NAME]
|
|
7952
|
-
}), e.services.events.dispatchEvent(
|
|
7960
|
+
}), e.services.events.dispatchEvent(ct.HIDE, {
|
|
7953
7961
|
event: s,
|
|
7954
7962
|
hoveredElement: a
|
|
7955
7963
|
});
|
|
@@ -7994,7 +8002,7 @@ export {
|
|
|
7994
8002
|
Ic as a5,
|
|
7995
8003
|
Rc as a6,
|
|
7996
8004
|
Xl as a7,
|
|
7997
|
-
|
|
8005
|
+
Gt as a8,
|
|
7998
8006
|
z as a9,
|
|
7999
8007
|
ac as b,
|
|
8000
8008
|
Da as c,
|
|
@@ -8006,7 +8014,7 @@ export {
|
|
|
8006
8014
|
vc as i,
|
|
8007
8015
|
fc as j,
|
|
8008
8016
|
mc as k,
|
|
8009
|
-
|
|
8017
|
+
Bt as l,
|
|
8010
8018
|
lr as m,
|
|
8011
8019
|
bc as n,
|
|
8012
8020
|
Ec as o,
|
|
@@ -8022,4 +8030,4 @@ export {
|
|
|
8022
8030
|
Zc as y,
|
|
8023
8031
|
Bc as z
|
|
8024
8032
|
};
|
|
8025
|
-
//# sourceMappingURL=choropleth-
|
|
8033
|
+
//# sourceMappingURL=choropleth-75258a8a.mjs.map
|