@carbon/charts 1.23.13 → 1.23.15
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 +26 -0
- package/dist/{choropleth-CnQNALge.mjs → choropleth-DvuP75LI.mjs} +484 -483
- package/dist/choropleth-DvuP75LI.mjs.map +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/umd/bundle.umd.cjs +3 -2
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +3 -2
- package/package.json +2 -2
- package/dist/choropleth-CnQNALge.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Br, $ as al, i as rl, a0 as ol, a1 as zr, a2 as Ur, a3 as ll, a4 as cl, a5 as ul, a6 as hl, a7 as Fr, a8 as ya, a9 as sn, g as O, p as Kt, a as nn, C as Ea, aa as xt, w as Mt, ab as Cn, E as xa, H as jt, ac as Wr, ad as Os, c as dl, ae as xe, I as hi, K as di, e as se, af as yn, ag as ge, f as ye, x as ve, ah as pl, h as Ke, O as fl, ai as Re, z as Et, l as qt, aj as Gt, ak as gl, M as ml, al as Xr, y as _t, q as hn, n as Hn, am as Ps, an as vl, ao as yl, ap as pi, aq as Sa, A as Ae, ar as
|
|
2
|
-
import { y as at, $ as
|
|
1
|
+
import { t as Br, $ as al, i as rl, a0 as ol, a1 as zr, a2 as Ur, a3 as ll, a4 as cl, a5 as ul, a6 as hl, a7 as Fr, a8 as ya, a9 as sn, g as O, p as Kt, a as nn, C as Ea, aa as xt, w as Mt, ab as Cn, E as xa, H as jt, ac as Wr, ad as Os, c as dl, ae as xe, I as hi, K as di, e as se, af as yn, ag as ge, f as ye, x as ve, ah as pl, h as Ke, O as fl, ai as Re, z as Et, l as qt, aj as Gt, ak as gl, M as ml, al as Xr, y as _t, q as hn, n as Hn, am as Ps, an as vl, ao as yl, ap as pi, aq as Sa, A as Ae, ar as ba, as as Yr, at as El } from "./color-scale-utils-BPsvYA85.mjs";
|
|
2
|
+
import { y as at, $ as T, N as bt, r as Te, q as ze, L as xl, A as te, m as nt, s as Me, W as Je, S as kt, e as J, Z as Ue, i as Xt, f as Ta, J as $s, d as Sl, F as Bn, n as Vs, H as Gs, C as Hs, p as zn, b as Oa, D as Bs, U as bl, x as we, a0 as Un, O as zs } from "./axis-scales-CPuwbFQf.mjs";
|
|
3
3
|
import { R as lt } from "./a11y-ePqvrObQ.mjs";
|
|
4
|
-
import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Us, i as Aa, j as Ma, k as Qe, l as Dt, n as wa, o as
|
|
4
|
+
import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Us, i as Aa, j as Ma, k as Qe, l as Dt, n as wa, o as Tl, q as Ol, u as Bi, D as I, v as Ll, w as fi, G as Ca, x as zi, y as Al, a as Ml, p as Tt, r as ka, b as wl } from "./angle-utils-Re7uVv7K.mjs";
|
|
5
5
|
import { b as Zr, c as pt, a as Ui, s as Cl } from "./array-CLq6Q40W.mjs";
|
|
6
6
|
function kl(i, t, e, n) {
|
|
7
7
|
for (var s = -1, a = i == null ? 0 : i.length; ++s < a; )
|
|
@@ -254,17 +254,17 @@ function Sc(i, t, e) {
|
|
|
254
254
|
i.apply(void 0, e);
|
|
255
255
|
}, t);
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var bc = al(function(i, t, e) {
|
|
258
258
|
return Sc(i, ns(t) || 0, e);
|
|
259
259
|
});
|
|
260
|
-
function
|
|
260
|
+
function Tc(i, t) {
|
|
261
261
|
var e = -1, n = rl(i) ? Array(i.length) : [];
|
|
262
262
|
return Zr(i, function(s, a, r) {
|
|
263
263
|
n[++e] = t(s, a, r);
|
|
264
264
|
}), n;
|
|
265
265
|
}
|
|
266
266
|
function Oc(i, t) {
|
|
267
|
-
var e = Ur(i) ? ol :
|
|
267
|
+
var e = Ur(i) ? ol : Tc;
|
|
268
268
|
return e(i, zr(t));
|
|
269
269
|
}
|
|
270
270
|
var Lc = 1 / 0;
|
|
@@ -340,13 +340,13 @@ function Nc() {
|
|
|
340
340
|
function Ls(i, t) {
|
|
341
341
|
var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i === gi ? _c : Ic;
|
|
342
342
|
function u(p) {
|
|
343
|
-
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : kc), m = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Dc : Rc)(t.copy(), c), x = p.selection ? p.selection() : p,
|
|
344
|
-
|
|
343
|
+
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : kc), m = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Dc : Rc)(t.copy(), c), x = p.selection ? p.selection() : p, b = x.selectAll(".domain").data([null]), k = x.selectAll(".tick").data(f, t).order(), _ = k.exit(), G = k.enter().append("g").attr("class", "tick"), R = k.select("line"), A = k.select("text");
|
|
344
|
+
b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), k = k.merge(G), R = R.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", i === is ? "0em" : i === gi ? "0.71em" : "0.32em")), p !== x && (b = b.transition(p), k = k.transition(p), R = R.transition(p), A = A.transition(p), _ = _.transition(p).attr("opacity", Na).attr("transform", function(H) {
|
|
345
345
|
return isFinite(H = E(H)) ? d(H + c) : this.getAttribute("transform");
|
|
346
346
|
}), G.attr("opacity", Na).attr("transform", function(H) {
|
|
347
347
|
var N = this.parentNode.__axis;
|
|
348
348
|
return d((N && isFinite(N = N(H)) ? N : E(H)) + c);
|
|
349
|
-
})), _.remove(),
|
|
349
|
+
})), _.remove(), b.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y), k.attr("opacity", 1).attr("transform", function(H) {
|
|
350
350
|
return d(E(H) + c);
|
|
351
351
|
}), R.attr(h + "2", l * a), A.attr(h, l * m).text(g), x.filter(Nc).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", i === as ? "start" : i === En ? "end" : "middle"), x.each(function() {
|
|
352
352
|
this.__axis = E;
|
|
@@ -538,14 +538,14 @@ function jc(i) {
|
|
|
538
538
|
}).on("interrupt.brush end.brush", function(y) {
|
|
539
539
|
h(this, arguments).end(y);
|
|
540
540
|
}).tween("brush", function() {
|
|
541
|
-
var y = this, E = y.__brush, x = h(y, arguments),
|
|
541
|
+
var y = this, E = y.__brush, x = h(y, arguments), b = E.selection, k = i.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), _ = Fr(b, k);
|
|
542
542
|
function G(R) {
|
|
543
543
|
E.selection = R === 1 && k === null ? null : _(R), l.call(y), x.brush();
|
|
544
544
|
}
|
|
545
|
-
return
|
|
545
|
+
return b !== null && k !== null ? G : G(1);
|
|
546
546
|
}) : m.each(function() {
|
|
547
|
-
var y = this, E = arguments, x = y.__brush,
|
|
548
|
-
ya(y), x.selection =
|
|
547
|
+
var y = this, E = arguments, x = y.__brush, b = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent), k = h(y, E).beforestart();
|
|
548
|
+
ya(y), x.selection = b === null ? null : b, l.call(y), k.start(S).brush(S).end(S);
|
|
549
549
|
});
|
|
550
550
|
}, c.clear = function(m, v) {
|
|
551
551
|
c.move(m, null, v);
|
|
@@ -600,7 +600,7 @@ function jc(i) {
|
|
|
600
600
|
};
|
|
601
601
|
function u(m) {
|
|
602
602
|
if (o && !m.touches || !e.apply(this, arguments)) return;
|
|
603
|
-
var v = this, S = m.target.__data__.type, y = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && m.altKey ? Xe : We, E = i === Ys ? null : Fc[S], x = i === rs ? null : Wc[S],
|
|
603
|
+
var v = this, S = m.target.__data__.type, y = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && m.altKey ? Xe : We, E = i === Ys ? null : Fc[S], x = i === rs ? null : Wc[S], b = Zs(v), k = b.extent, _ = b.selection, G = k[0][0], R, A, H = k[0][1], N, M, L = k[1][0], P, $, C = k[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
|
|
604
604
|
const yt = et.identifier;
|
|
605
605
|
return et = sn(et, v), et.point0 = et.slice(), et.identifier = yt, et;
|
|
606
606
|
});
|
|
@@ -609,7 +609,7 @@ function jc(i) {
|
|
|
609
609
|
if (S === "overlay") {
|
|
610
610
|
_ && (Z = !0);
|
|
611
611
|
const et = [K[0], K[1] || K[0]];
|
|
612
|
-
|
|
612
|
+
b.selection = _ = [[
|
|
613
613
|
R = i === Ys ? G : Pt(et[0][0], et[1][0]),
|
|
614
614
|
N = i === rs ? H : Pt(et[0][1], et[1][1])
|
|
615
615
|
], [
|
|
@@ -624,7 +624,7 @@ function jc(i) {
|
|
|
624
624
|
ot.moved = z, ot.ended = U;
|
|
625
625
|
else {
|
|
626
626
|
var it = D(m.view).on("mousemove.brush", z, !0).on("mouseup.brush", U, !0);
|
|
627
|
-
s && it.on("keydown.brush", wt, !0).on("keyup.brush",
|
|
627
|
+
s && it.on("keydown.brush", wt, !0).on("keyup.brush", be, !0), Vc(m.view);
|
|
628
628
|
}
|
|
629
629
|
l.call(v), ot.start(m, y.name);
|
|
630
630
|
function z(et) {
|
|
@@ -657,7 +657,7 @@ function jc(i) {
|
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
$ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = V, V = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])),
|
|
660
|
+
$ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = V, V = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), b.selection && (_ = b.selection), j && (A = _[0][0], $ = _[1][0]), Y && (M = _[0][1], q = _[1][1]), (_[0][0] !== A || _[0][1] !== M || _[1][0] !== $ || _[1][1] !== q) && (b.selection = [[A, M], [$, q]], l.call(v), ot.brush(et, y.name));
|
|
661
661
|
}
|
|
662
662
|
function U(et) {
|
|
663
663
|
if (Uc(et), et.touches) {
|
|
@@ -667,7 +667,7 @@ function jc(i) {
|
|
|
667
667
|
}, 500);
|
|
668
668
|
} else
|
|
669
669
|
Gc(et.view, Z), it.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
|
|
670
|
-
ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay),
|
|
670
|
+
ct.attr("pointer-events", "all"), st.attr("cursor", fe.overlay), b.selection && (_ = b.selection), qc(_) && (b.selection = null, l.call(v)), ot.end(et, y.name);
|
|
671
671
|
}
|
|
672
672
|
function wt(et) {
|
|
673
673
|
switch (et.keyCode) {
|
|
@@ -688,7 +688,7 @@ function jc(i) {
|
|
|
688
688
|
}
|
|
689
689
|
Ws(et);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function be(et) {
|
|
692
692
|
switch (et.keyCode) {
|
|
693
693
|
case 16: {
|
|
694
694
|
rt && (j = Y = rt = !1, B(et));
|
|
@@ -858,7 +858,7 @@ function Wa(i, t) {
|
|
|
858
858
|
function qe(i, t) {
|
|
859
859
|
i && Ua.hasOwnProperty(i.type) ? Ua[i.type](i, t) : hs(i, t);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function bi(i) {
|
|
862
862
|
return [Ne(i[1], i[0]), Se(i[2])];
|
|
863
863
|
}
|
|
864
864
|
function an(i) {
|
|
@@ -877,7 +877,7 @@ function qs(i, t) {
|
|
|
877
877
|
function Wn(i, t) {
|
|
878
878
|
return [i[0] * t, i[1] * t, i[2] * t];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Ti(i) {
|
|
881
881
|
var t = ae(i[0] * i[0] + i[1] * i[1] + i[2] * i[2]);
|
|
882
882
|
i[0] /= t, i[1] /= t, i[2] /= t;
|
|
883
883
|
}
|
|
@@ -936,11 +936,11 @@ function au(i, t, e, n, s, a) {
|
|
|
936
936
|
var r = mt(t), o = ft(t), c = n * e;
|
|
937
937
|
s == null ? (s = t + n * Yt, a = t - c / 2) : (s = qa(r, s), a = qa(r, a), (n > 0 ? s < a : s > a) && (s += n * Yt));
|
|
938
938
|
for (var l, h = s; n > 0 ? h > a : h < a; h -= c)
|
|
939
|
-
l =
|
|
939
|
+
l = bi([r, -o * mt(h), -o * ft(h)]), i.point(l[0], l[1]);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
function qa(i, t) {
|
|
943
|
-
t = an(t), t[0] -= i,
|
|
943
|
+
t = an(t), t[0] -= i, Ti(t);
|
|
944
944
|
var e = su(-t[1]);
|
|
945
945
|
return ((-t[2] < 0 ? -e : e) + Yt - vt) % Yt;
|
|
946
946
|
}
|
|
@@ -1025,13 +1025,13 @@ function ru(i, t) {
|
|
|
1025
1025
|
s === 1 ? n = Ft + vt : s === -1 && (n = -Ft - vt);
|
|
1026
1026
|
for (var l = 0, h = i.length; l < h; ++l)
|
|
1027
1027
|
if (u = (d = i[l]).length)
|
|
1028
|
-
for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + za, m = ft(g), v = mt(g), S = 0; S < u; ++S, f = E, m =
|
|
1029
|
-
var y = d[S], E = js(y), x = y[1] / 2 + za,
|
|
1028
|
+
for (var d, u, p = d[u - 1], f = js(p), g = p[1] / 2 + za, m = ft(g), v = mt(g), S = 0; S < u; ++S, f = E, m = b, v = k, p = y) {
|
|
1029
|
+
var y = d[S], E = js(y), x = y[1] / 2 + za, b = ft(x), k = mt(x), _ = E - f, G = _ >= 0 ? 1 : -1, R = G * _, A = R > ht, H = m * b;
|
|
1030
1030
|
if (c.add(Ne(H * G * ft(R), v * k + H * mt(R))), r += A ? _ + G * Yt : _, A ^ f >= e ^ E >= e) {
|
|
1031
1031
|
var N = ds(an(p), an(y));
|
|
1032
|
-
|
|
1032
|
+
Ti(N);
|
|
1033
1033
|
var M = ds(a, N);
|
|
1034
|
-
|
|
1034
|
+
Ti(M);
|
|
1035
1035
|
var L = (A ^ _ >= 0 ? -1 : 1) * Se(M[2]);
|
|
1036
1036
|
(n > L || n === L && (N[0] || N[1])) && (o += A ^ _ >= 0 ? 1 : -1);
|
|
1037
1037
|
}
|
|
@@ -1076,11 +1076,11 @@ function Eo(i, t, e, n) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function y() {
|
|
1078
1078
|
v(d[0][0], d[0][1]), o.lineEnd();
|
|
1079
|
-
var E = o.clean(), x = r.result(),
|
|
1079
|
+
var E = o.clean(), x = r.result(), b, k = x.length, _, G, R;
|
|
1080
1080
|
if (d.pop(), l.push(d), d = null, !!k) {
|
|
1081
1081
|
if (E & 1) {
|
|
1082
1082
|
if (G = x[0], (_ = G.length - 1) > 0) {
|
|
1083
|
-
for (c || (s.polygonStart(), c = !0), s.lineStart(),
|
|
1083
|
+
for (c || (s.polygonStart(), c = !0), s.lineStart(), b = 0; b < _; ++b) s.point((R = G[b])[0], R[1]);
|
|
1084
1084
|
s.lineEnd();
|
|
1085
1085
|
}
|
|
1086
1086
|
return;
|
|
@@ -1156,8 +1156,8 @@ function du(i) {
|
|
|
1156
1156
|
if (!d && (f = p = E) && h.lineStart(), E !== p && (y = c(d, S), (!y || os(d, y) || os(S, y)) && (S[2] = 1)), E !== p)
|
|
1157
1157
|
g = 0, E ? (h.lineStart(), y = c(S, d), h.point(y[0], y[1])) : (y = c(d, S), h.point(y[0], y[1], 2), h.lineEnd()), d = y;
|
|
1158
1158
|
else if (s && d && n ^ E) {
|
|
1159
|
-
var
|
|
1160
|
-
!(x & u) && (
|
|
1159
|
+
var b;
|
|
1160
|
+
!(x & u) && (b = c(S, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(b[0][0], b[0][1]), h.point(b[1][0], b[1][1]), h.lineEnd()) : (h.point(b[1][0], b[1][1]), h.lineEnd(), h.lineStart(), h.point(b[0][0], b[0][1], 3)));
|
|
1161
1161
|
}
|
|
1162
1162
|
E && (!d || !os(d, S)) && h.point(S[0], S[1]), d = S, p = E, u = x;
|
|
1163
1163
|
},
|
|
@@ -1174,18 +1174,18 @@ function du(i) {
|
|
|
1174
1174
|
function c(h, d, u) {
|
|
1175
1175
|
var p = an(h), f = an(d), g = [1, 0, 0], m = ds(p, f), v = Fn(m, m), S = m[0], y = v - S * S;
|
|
1176
1176
|
if (!y) return !u && h;
|
|
1177
|
-
var E = t * v / y, x = -t * S / y,
|
|
1177
|
+
var E = t * v / y, x = -t * S / y, b = ds(g, m), k = Wn(g, E), _ = Wn(m, x);
|
|
1178
1178
|
qs(k, _);
|
|
1179
|
-
var G =
|
|
1179
|
+
var G = b, R = Fn(k, G), A = Fn(G, G), H = R * R - A * (Fn(k, k) - 1);
|
|
1180
1180
|
if (!(H < 0)) {
|
|
1181
1181
|
var N = ae(H), M = Wn(G, (-R - N) / A);
|
|
1182
|
-
if (qs(M, k), M =
|
|
1182
|
+
if (qs(M, k), M = bi(M), !u) return M;
|
|
1183
1183
|
var L = h[0], P = d[0], $ = h[1], C = d[1], V;
|
|
1184
1184
|
P < L && (V = L, L = P, P = V);
|
|
1185
1185
|
var q = P - L, X = gt(q - ht) < vt, F = X || q < vt;
|
|
1186
1186
|
if (!X && C < $ && (V = $, $ = C, C = V), F ? X ? $ + C > 0 ^ M[1] < (gt(M[0] - L) < vt ? $ : C) : $ <= M[1] && M[1] <= C : q > ht ^ (L <= M[0] && M[0] <= P)) {
|
|
1187
1187
|
var Z = Wn(G, (-R + N) / A);
|
|
1188
|
-
return qs(Z, k), [M,
|
|
1188
|
+
return qs(Z, k), [M, bi(Z)];
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
@@ -1260,7 +1260,7 @@ function fu(i, t, e, n) {
|
|
|
1260
1260
|
return d !== u ? d - u : d === 0 ? h[1] - l[1] : d === 1 ? l[0] - h[0] : d === 2 ? l[1] - h[1] : h[0] - l[0];
|
|
1261
1261
|
}
|
|
1262
1262
|
return function(l) {
|
|
1263
|
-
var h = l, d = vo(), u, p, f, g, m, v, S, y, E, x,
|
|
1263
|
+
var h = l, d = vo(), u, p, f, g, m, v, S, y, E, x, b, k = {
|
|
1264
1264
|
point: _,
|
|
1265
1265
|
lineStart: H,
|
|
1266
1266
|
lineEnd: N,
|
|
@@ -1277,10 +1277,10 @@ function fu(i, t, e, n) {
|
|
|
1277
1277
|
return L;
|
|
1278
1278
|
}
|
|
1279
1279
|
function R() {
|
|
1280
|
-
h = d, u = [], p = [],
|
|
1280
|
+
h = d, u = [], p = [], b = !0;
|
|
1281
1281
|
}
|
|
1282
1282
|
function A() {
|
|
1283
|
-
var L = G(), P =
|
|
1283
|
+
var L = G(), P = b && L, $ = (u = uo(u)).length;
|
|
1284
1284
|
(P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && yo(u, o, L, a, l), l.polygonEnd()), h = l, u = p = f = null;
|
|
1285
1285
|
}
|
|
1286
1286
|
function H() {
|
|
@@ -1296,7 +1296,7 @@ function fu(i, t, e, n) {
|
|
|
1296
1296
|
else if ($ && E) h.point(L, P);
|
|
1297
1297
|
else {
|
|
1298
1298
|
var C = [S = Math.max(Zn, Math.min(Yn, S)), y = Math.max(Zn, Math.min(Yn, y))], V = [L = Math.max(Zn, Math.min(Yn, L)), P = Math.max(Zn, Math.min(Yn, P))];
|
|
1299
|
-
pu(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(),
|
|
1299
|
+
pu(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), b = !1) : $ && (h.lineStart(), h.point(L, P), b = !1);
|
|
1300
1300
|
}
|
|
1301
1301
|
S = L, y = P, E = $;
|
|
1302
1302
|
}
|
|
@@ -1323,13 +1323,13 @@ function gu() {
|
|
|
1323
1323
|
Ee.point = mu;
|
|
1324
1324
|
}
|
|
1325
1325
|
function mu(i, t) {
|
|
1326
|
-
Ee.point =
|
|
1326
|
+
Ee.point = bo, xo = wi = i, So = Ci = t;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function bo(i, t) {
|
|
1329
1329
|
Mi.add(Ci * i - wi * t), wi = i, Ci = t;
|
|
1330
1330
|
}
|
|
1331
1331
|
function vu() {
|
|
1332
|
-
|
|
1332
|
+
bo(xo, So);
|
|
1333
1333
|
}
|
|
1334
1334
|
var rn = 1 / 0, ps = rn, kn = -rn, fs = kn, gs = {
|
|
1335
1335
|
point: yu,
|
|
@@ -1345,12 +1345,12 @@ var rn = 1 / 0, ps = rn, kn = -rn, fs = kn, gs = {
|
|
|
1345
1345
|
function yu(i, t) {
|
|
1346
1346
|
i < rn && (rn = i), i > kn && (kn = i), t < ps && (ps = t), t > fs && (fs = t);
|
|
1347
1347
|
}
|
|
1348
|
-
var ki = 0, _i = 0, xn = 0, ms = 0, vs = 0, tn = 0, Ii = 0, Ri = 0, Sn = 0,
|
|
1348
|
+
var ki = 0, _i = 0, xn = 0, ms = 0, vs = 0, tn = 0, Ii = 0, Ri = 0, Sn = 0, To, Oo, le, ce, Jt = {
|
|
1349
1349
|
point: Pe,
|
|
1350
1350
|
lineStart: Ja,
|
|
1351
1351
|
lineEnd: Qa,
|
|
1352
1352
|
polygonStart: function() {
|
|
1353
|
-
Jt.lineStart = Su, Jt.lineEnd =
|
|
1353
|
+
Jt.lineStart = Su, Jt.lineEnd = bu;
|
|
1354
1354
|
},
|
|
1355
1355
|
polygonEnd: function() {
|
|
1356
1356
|
Jt.point = Pe, Jt.lineStart = Ja, Jt.lineEnd = Qa;
|
|
@@ -1377,13 +1377,13 @@ function Qa() {
|
|
|
1377
1377
|
Jt.point = Pe;
|
|
1378
1378
|
}
|
|
1379
1379
|
function Su() {
|
|
1380
|
-
Jt.point =
|
|
1380
|
+
Jt.point = Tu;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
Lo(
|
|
1382
|
+
function bu() {
|
|
1383
|
+
Lo(To, Oo);
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
Jt.point = Lo, Pe(
|
|
1385
|
+
function Tu(i, t) {
|
|
1386
|
+
Jt.point = Lo, Pe(To = le = i, Oo = ce = t);
|
|
1387
1387
|
}
|
|
1388
1388
|
function Lo(i, t) {
|
|
1389
1389
|
var e = i - le, n = t - ce, s = ae(e * e + n * n);
|
|
@@ -1427,7 +1427,7 @@ Ao.prototype = {
|
|
|
1427
1427
|
},
|
|
1428
1428
|
result: Qt
|
|
1429
1429
|
};
|
|
1430
|
-
var Di = new De(), Js, Mo, wo,
|
|
1430
|
+
var Di = new De(), Js, Mo, wo, bn, Tn, _n = {
|
|
1431
1431
|
point: Qt,
|
|
1432
1432
|
lineStart: function() {
|
|
1433
1433
|
_n.point = Ou;
|
|
@@ -1447,10 +1447,10 @@ var Di = new De(), Js, Mo, wo, Tn, bn, _n = {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
};
|
|
1449
1449
|
function Ou(i, t) {
|
|
1450
|
-
_n.point = Co, Mo =
|
|
1450
|
+
_n.point = Co, Mo = bn = i, wo = Tn = t;
|
|
1451
1451
|
}
|
|
1452
1452
|
function Co(i, t) {
|
|
1453
|
-
|
|
1453
|
+
bn -= i, Tn -= t, Di.add(ae(bn * bn + Tn * Tn)), bn = i, Tn = t;
|
|
1454
1454
|
}
|
|
1455
1455
|
let tr, ys, er, nr;
|
|
1456
1456
|
class sr {
|
|
@@ -1618,8 +1618,8 @@ function Iu(i, t) {
|
|
|
1618
1618
|
function e(n, s, a, r, o, c, l, h, d, u, p, f, g, m) {
|
|
1619
1619
|
var v = l - n, S = h - s, y = v * v + S * S;
|
|
1620
1620
|
if (y > 4 * t && g--) {
|
|
1621
|
-
var E = r + u, x = o + p,
|
|
1622
|
-
(L * L / y > t || gt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < ku) && (e(n, s, a, r, o, c, A, H, G, E /= k, x /= k,
|
|
1621
|
+
var E = r + u, x = o + p, b = c + f, k = ae(E * E + x * x + b * b), _ = Se(b /= k), G = gt(gt(b) - 1) < vt || gt(a - d) < vt ? (a + d) / 2 : Ne(x, E), R = i(G, _), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - v * M;
|
|
1622
|
+
(L * L / y > t || gt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < ku) && (e(n, s, a, r, o, c, A, H, G, E /= k, x /= k, b, g, m), m.point(A, H), e(A, H, G, E, x, b, l, h, d, u, p, f, g, m));
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
return function(n) {
|
|
@@ -1648,9 +1648,9 @@ function Iu(i, t) {
|
|
|
1648
1648
|
m.point = v, n.lineEnd();
|
|
1649
1649
|
}
|
|
1650
1650
|
function x() {
|
|
1651
|
-
S(), m.point =
|
|
1651
|
+
S(), m.point = b, m.lineEnd = k;
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function b(_, G) {
|
|
1654
1654
|
y(s = _, G), a = d, r = u, o = p, c = f, l = g, m.point = y;
|
|
1655
1655
|
}
|
|
1656
1656
|
function k() {
|
|
@@ -1696,7 +1696,7 @@ function Ms(i) {
|
|
|
1696
1696
|
})();
|
|
1697
1697
|
}
|
|
1698
1698
|
function Io(i) {
|
|
1699
|
-
var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = Ka, m = null, v, S, y, E = Ai, x = 0.5,
|
|
1699
|
+
var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = Ka, m = null, v, S, y, E = Ai, x = 0.5, b, k, _, G, R;
|
|
1700
1700
|
function A(L) {
|
|
1701
1701
|
return _(L[0] * Ot, L[1] * Ot);
|
|
1702
1702
|
}
|
|
@@ -1704,7 +1704,7 @@ function Io(i) {
|
|
|
1704
1704
|
return L = _.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
|
|
1705
1705
|
}
|
|
1706
1706
|
A.stream = function(L) {
|
|
1707
|
-
return G && R === L ? G : G = Ru(Du(h)(g(
|
|
1707
|
+
return G && R === L ? G : G = Ru(Du(h)(g(b(E(R = L)))));
|
|
1708
1708
|
}, A.preclip = function(L) {
|
|
1709
1709
|
return arguments.length ? (g = L, f = void 0, M()) : g;
|
|
1710
1710
|
}, A.postclip = function(L) {
|
|
@@ -1728,7 +1728,7 @@ function Io(i) {
|
|
|
1728
1728
|
}, A.reflectY = function(L) {
|
|
1729
1729
|
return arguments.length ? (p = L ? -1 : 1, N()) : p < 0;
|
|
1730
1730
|
}, A.precision = function(L) {
|
|
1731
|
-
return arguments.length ? (
|
|
1731
|
+
return arguments.length ? (b = ar(k, x = L * L), M()) : ae(x);
|
|
1732
1732
|
}, A.fitExtent = function(L, P) {
|
|
1733
1733
|
return _o(A, L, P);
|
|
1734
1734
|
}, A.fitSize = function(L, P) {
|
|
@@ -1740,7 +1740,7 @@ function Io(i) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
function N() {
|
|
1742
1742
|
var L = rr(e, 0, 0, u, p, d).apply(null, t(a, r)), P = rr(e, n - L[0], s - L[1], u, p, d);
|
|
1743
|
-
return h = mo(o, c, l), k = Oi(t, P), _ = Oi(h, k),
|
|
1743
|
+
return h = mo(o, c, l), k = Oi(t, P), _ = Oi(h, k), b = ar(k, x), M();
|
|
1744
1744
|
}
|
|
1745
1745
|
function M() {
|
|
1746
1746
|
return G = R = null, A;
|
|
@@ -2069,10 +2069,10 @@ function je(i) {
|
|
|
2069
2069
|
return i;
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
|
-
const
|
|
2072
|
+
const bh = 1664525, Th = 1013904223, or = 4294967296;
|
|
2073
2073
|
function Oh() {
|
|
2074
2074
|
let i = 1;
|
|
2075
|
-
return () => (i = (
|
|
2075
|
+
return () => (i = (bh * i + Th) % or) / or;
|
|
2076
2076
|
}
|
|
2077
2077
|
function Lh(i) {
|
|
2078
2078
|
return typeof i == "object" && "length" in i ? i : Array.from(i);
|
|
@@ -2140,9 +2140,9 @@ function On(i, t) {
|
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
2142
|
function Go(i, t, e) {
|
|
2143
|
-
var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, g = s - h, m = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * g,
|
|
2143
|
+
var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, g = s - h, m = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * g, b = (f * E - g * y) / (x * 2) - n, k = (g * m - f * v) / x, _ = (p * y - u * E) / (x * 2) - s, G = (u * v - p * m) / x, R = k * k + G * G - 1, A = 2 * (a + b * k + _ * G), H = b * b + _ * _ - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
|
|
2144
2144
|
return {
|
|
2145
|
-
x: n +
|
|
2145
|
+
x: n + b + k * N,
|
|
2146
2146
|
y: s + _ + G * N,
|
|
2147
2147
|
r: N
|
|
2148
2148
|
};
|
|
@@ -2325,13 +2325,13 @@ function zh(i, t, e, n, s) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
var Uh = (1 + Math.sqrt(5)) / 2;
|
|
2327
2327
|
function Fh(i, t, e, n, s, a) {
|
|
2328
|
-
for (var r = [], o = t.children, c, l, h = 0, d = 0, u = o.length, p, f, g = t.value, m, v, S, y, E, x,
|
|
2328
|
+
for (var r = [], o = t.children, c, l, h = 0, d = 0, u = o.length, p, f, g = t.value, m, v, S, y, E, x, b; h < u; ) {
|
|
2329
2329
|
p = s - e, f = a - n;
|
|
2330
2330
|
do
|
|
2331
2331
|
m = o[d++].value;
|
|
2332
2332
|
while (!m && d < u);
|
|
2333
|
-
for (v = S = m, x = Math.max(f / p, p / f) / (g * i),
|
|
2334
|
-
if (m += l = o[d].value, l < v && (v = l), l > S && (S = l),
|
|
2333
|
+
for (v = S = m, x = Math.max(f / p, p / f) / (g * i), b = m * m * x, E = Math.max(S / b, b / v); d < u; ++d) {
|
|
2334
|
+
if (m += l = o[d].value, l < v && (v = l), l > S && (S = l), b = m * m * x, y = Math.max(S / b, b / v), y > E) {
|
|
2335
2335
|
m -= l;
|
|
2336
2336
|
break;
|
|
2337
2337
|
}
|
|
@@ -2415,7 +2415,7 @@ function Jh(i, t, e, n, s, a, r, o) {
|
|
|
2415
2415
|
return u = (h * (t - a) - d * (i - s)) / u, [i + u * c, t + u * l];
|
|
2416
2416
|
}
|
|
2417
2417
|
function Kn(i, t, e, n, s, a, r) {
|
|
2418
|
-
var o = i - e, c = t - n, l = (r ? a : -a) / Qe(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, v = (p + g) / 2, S = f - u, y = g - p, E = S * S + y * y, x = s - a,
|
|
2418
|
+
var o = i - e, c = t - n, l = (r ? a : -a) / Qe(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, v = (p + g) / 2, S = f - u, y = g - p, E = S * S + y * y, x = s - a, b = u * g - f * p, k = (y < 0 ? -1 : 1) * Qe(Ol(0, x * x * E - b * b)), _ = (b * y - S * k) / E, G = (-b * S - y * k) / E, R = (b * y + S * k) / E, A = (-b * S + y * k) / E, H = _ - m, N = G - v, M = R - m, L = A - v;
|
|
2419
2419
|
return H * H + N * N > M * M + L * L && (_ = R, G = A), {
|
|
2420
2420
|
cx: _,
|
|
2421
2421
|
cy: G,
|
|
@@ -2433,22 +2433,22 @@ function Rn() {
|
|
|
2433
2433
|
else if (m > ss - Ut)
|
|
2434
2434
|
o.moveTo(p * Ce(f), p * oe(f)), o.arc(0, 0, p, f, g, !v), u > Ut && (o.moveTo(u * Ce(g), u * oe(g)), o.arc(0, 0, u, g, f, v));
|
|
2435
2435
|
else {
|
|
2436
|
-
var S = f, y = g, E = f, x = g,
|
|
2436
|
+
var S = f, y = g, E = f, x = g, b = m, k = m, _ = r.apply(this, arguments) / 2, G = _ > Ut && (n ? +n.apply(this, arguments) : Qe(u * u + p * p)), R = Us(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
|
|
2437
2437
|
if (G > Ut) {
|
|
2438
2438
|
var L = wa(G / u * oe(_)), P = wa(G / p * oe(_));
|
|
2439
|
-
(
|
|
2439
|
+
(b -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (b = 0, E = x = (f + g) / 2), (k -= P * 2) > Ut ? (P *= v ? 1 : -1, S += P, y -= P) : (k = 0, S = y = (f + g) / 2);
|
|
2440
2440
|
}
|
|
2441
2441
|
var $ = p * Ce(S), C = p * oe(S), V = u * Ce(x), q = u * oe(x);
|
|
2442
2442
|
if (R > Ut) {
|
|
2443
2443
|
var X = p * Ce(y), F = p * oe(y), Z = u * Ce(E), rt = u * oe(E), j;
|
|
2444
2444
|
if (m < Ma)
|
|
2445
2445
|
if (j = Jh($, C, Z, rt, X, F, V, q)) {
|
|
2446
|
-
var Y = $ - j[0], K = C - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(
|
|
2446
|
+
var Y = $ - j[0], K = C - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(Tl((Y * ot + K * ct) / (Qe(Y * Y + K * K) * Qe(ot * ot + ct * ct))) / 2), it = Qe(j[0] * j[0] + j[1] * j[1]);
|
|
2447
2447
|
A = Us(R, (u - it) / (st - 1)), H = Us(R, (p - it) / (st + 1));
|
|
2448
2448
|
} else
|
|
2449
2449
|
A = H = 0;
|
|
2450
2450
|
}
|
|
2451
|
-
k > Ut ? H > Ut ? (N = Kn(Z, rt, $, C, p, H, v), M = Kn(X, F, V, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, C), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, C), !(u > Ut) || !(
|
|
2451
|
+
k > Ut ? H > Ut ? (N = Kn(Z, rt, $, C, p, H, v), M = Kn(X, F, V, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, C), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, C), !(u > Ut) || !(b > Ut) ? o.lineTo(V, q) : A > Ut ? (N = Kn(V, q, X, F, u, -A, v), M = Kn($, C, Z, rt, u, -A, v), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), v), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : o.arc(0, 0, u, x, E, v);
|
|
2452
2452
|
}
|
|
2453
2453
|
if (o.closePath(), h) return o = null, h + "" || null;
|
|
2454
2454
|
}
|
|
@@ -2559,10 +2559,10 @@ function ed() {
|
|
|
2559
2559
|
var c, l = (o = Ui(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(ss, Math.max(-ss, s.apply(this, arguments) - g)), v, S = Math.min(Math.abs(m) / l, a.apply(this, arguments)), y = S * (m < 0 ? -1 : 1), E;
|
|
2560
2560
|
for (c = 0; c < l; ++c)
|
|
2561
2561
|
(E = f[p[c] = c] = +i(o[c], c, o)) > 0 && (u += E);
|
|
2562
|
-
for (t != null ? p.sort(function(x,
|
|
2563
|
-
return t(f[x], f[
|
|
2564
|
-
}) : e != null && p.sort(function(x,
|
|
2565
|
-
return e(o[x], o[
|
|
2562
|
+
for (t != null ? p.sort(function(x, b) {
|
|
2563
|
+
return t(f[x], f[b]);
|
|
2564
|
+
}) : e != null && p.sort(function(x, b) {
|
|
2565
|
+
return e(o[x], o[b]);
|
|
2566
2566
|
}), c = 0, d = u ? (m - l * y) / u : 0; c < l; ++c, g = v)
|
|
2567
2567
|
h = p[c], E = f[h], v = g + (E > 0 ? E * d : 0) + y, f[h] = {
|
|
2568
2568
|
data: o[h],
|
|
@@ -2843,7 +2843,7 @@ function gn(i, t) {
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return e;
|
|
2845
2845
|
}
|
|
2846
|
-
const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ii = Ht(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ai = Ht(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), xd = Ht(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ri = Ht(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sd = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = Ht(["#text"]), yr = Ht(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), oi = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = Ht(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]),
|
|
2846
|
+
const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ii = Ht(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ai = Ht(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), xd = Ht(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ri = Ht(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sd = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = Ht(["#text"]), yr = Ht(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), oi = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = Ht(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bd = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Td = ee(/<%[\w\W]*|[\w\W]*%>/gm), Od = ee(/\$\{[\w\W]*/gm), Ld = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ad = ee(/^aria-[\-\w]+$/), Fo = ee(
|
|
2847
2847
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2848
2848
|
// eslint-disable-line no-useless-escape
|
|
2849
2849
|
), Md = ee(/^(?:\w+script|data):/i), wd = ee(
|
|
@@ -2857,10 +2857,10 @@ var xr = /* @__PURE__ */ Object.freeze({
|
|
|
2857
2857
|
CUSTOM_ELEMENT: Cd,
|
|
2858
2858
|
DATA_ATTR: Ld,
|
|
2859
2859
|
DOCTYPE_NAME: Wo,
|
|
2860
|
-
ERB_EXPR:
|
|
2860
|
+
ERB_EXPR: Td,
|
|
2861
2861
|
IS_ALLOWED_URI: Fo,
|
|
2862
2862
|
IS_SCRIPT_OR_DATA: Md,
|
|
2863
|
-
MUSTACHE_EXPR:
|
|
2863
|
+
MUSTACHE_EXPR: bd,
|
|
2864
2864
|
TMPLIT_EXPR: Od
|
|
2865
2865
|
});
|
|
2866
2866
|
const mn = {
|
|
@@ -2929,7 +2929,7 @@ function Xo() {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
let E, x = "";
|
|
2931
2931
|
const {
|
|
2932
|
-
implementation:
|
|
2932
|
+
implementation: b,
|
|
2933
2933
|
createNodeIterator: k,
|
|
2934
2934
|
createDocumentFragment: _,
|
|
2935
2935
|
getElementsByTagName: G
|
|
@@ -2937,7 +2937,7 @@ function Xo() {
|
|
|
2937
2937
|
importNode: R
|
|
2938
2938
|
} = n;
|
|
2939
2939
|
let A = Sr();
|
|
2940
|
-
t.isSupported = typeof zo == "function" && typeof y == "function" &&
|
|
2940
|
+
t.isSupported = typeof zo == "function" && typeof y == "function" && b && b.createHTMLDocument !== void 0;
|
|
2941
2941
|
const {
|
|
2942
2942
|
MUSTACHE_EXPR: H,
|
|
2943
2943
|
ERB_EXPR: N,
|
|
@@ -2973,7 +2973,7 @@ function Xo() {
|
|
|
2973
2973
|
enumerable: !0,
|
|
2974
2974
|
value: !1
|
|
2975
2975
|
}
|
|
2976
|
-
})), Y = null, K = null, ot = !0, ct = !0, st = !1, it = !0, z = !1, B = !0, U = !1, wt = !1,
|
|
2976
|
+
})), Y = null, K = null, ot = !0, ct = !0, st = !1, it = !0, z = !1, B = !0, U = !1, wt = !1, be = !1, et = !1, yt = !1, Zt = !1, Wt = !0, on = !1;
|
|
2977
2977
|
const ln = "user-content-";
|
|
2978
2978
|
let Le = !0, ne = !1, $e = {}, Ve = null;
|
|
2979
2979
|
const na = ut({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -2994,7 +2994,7 @@ function Xo() {
|
|
|
2994
2994
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2995
2995
|
if (!(He && He === w)) {
|
|
2996
2996
|
if ((!w || typeof w != "object") && (w = {}), w = me(w), cn = // eslint-disable-next-line unicorn/prefer-includes
|
|
2997
|
-
tl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? el : w.PARSER_MEDIA_TYPE, Ct = cn === "application/xhtml+xml" ? si : cs, X = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, Ct) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, Ct) : rt, Is = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, si) : Jo, ks = ie(w, "ADD_URI_SAFE_ATTR") ? ut(me(aa), w.ADD_URI_SAFE_ATTR, Ct) : aa, sa = ie(w, "ADD_DATA_URI_TAGS") ? ut(me(ia), w.ADD_DATA_URI_TAGS, Ct) : ia, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, Ct) : na, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, Ct) : me({}), K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, Ct) : me({}), $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = w.SAFE_FOR_TEMPLATES || !1, B = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1,
|
|
2997
|
+
tl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? el : w.PARSER_MEDIA_TYPE, Ct = cn === "application/xhtml+xml" ? si : cs, X = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, Ct) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, Ct) : rt, Is = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, si) : Jo, ks = ie(w, "ADD_URI_SAFE_ATTR") ? ut(me(aa), w.ADD_URI_SAFE_ATTR, Ct) : aa, sa = ie(w, "ADD_DATA_URI_TAGS") ? ut(me(ia), w.ADD_DATA_URI_TAGS, Ct) : ia, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, Ct) : na, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, Ct) : me({}), K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, Ct) : me({}), $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = w.SAFE_FOR_TEMPLATES || !1, B = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1, be = w.FORCE_BODY || !1, Wt = w.SANITIZE_DOM !== !1, on = w.SANITIZE_NAMED_PROPS || !1, Le = w.KEEP_CONTENT !== !1, ne = w.IN_PLACE || !1, q = w.ALLOWED_URI_REGEXP || Fo, Ge = w.NAMESPACE || he, Vn = w.MATHML_TEXT_INTEGRATION_POINTS || Vn, Gn = w.HTML_INTEGRATION_POINTS || Gn, j = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), z && (ct = !1), yt && (et = !0), $e && (X = ut({}, vr), Z = [], $e.html === !0 && (ut(X, mr), ut(Z, yr)), $e.svg === !0 && (ut(X, ii), ut(Z, oi), ut(Z, Qn)), $e.svgFilters === !0 && (ut(X, ai), ut(Z, oi), ut(Z, Qn)), $e.mathMl === !0 && (ut(X, ri), ut(Z, Er), ut(Z, Qn))), w.ADD_TAGS && (X === F && (X = me(X)), ut(X, w.ADD_TAGS, Ct)), w.ADD_ATTR && (Z === rt && (Z = me(Z)), ut(Z, w.ADD_ATTR, Ct)), w.ADD_URI_SAFE_ATTR && ut(ks, w.ADD_URI_SAFE_ATTR, Ct), w.FORBID_CONTENTS && (Ve === na && (Ve = me(Ve)), ut(Ve, w.FORBID_CONTENTS, Ct)), Le && (X["#text"] = !0), U && ut(X, ["html", "head", "body"]), X.table && (ut(X, ["tbody"]), delete Y.tbody), w.TRUSTED_TYPES_POLICY) {
|
|
2998
2998
|
if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2999
2999
|
throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3000
3000
|
if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3046,7 +3046,7 @@ function Xo() {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
}, ca = function(w) {
|
|
3048
3048
|
let W = null, Q = null;
|
|
3049
|
-
if (
|
|
3049
|
+
if (be)
|
|
3050
3050
|
w = "<remove></remove>" + w;
|
|
3051
3051
|
else {
|
|
3052
3052
|
const At = gr(w, /^[\r\n\t ]+/);
|
|
@@ -3060,7 +3060,7 @@ function Xo() {
|
|
|
3060
3060
|
} catch {
|
|
3061
3061
|
}
|
|
3062
3062
|
if (!W || !W.documentElement) {
|
|
3063
|
-
W =
|
|
3063
|
+
W = b.createDocument(Ge, "template", null);
|
|
3064
3064
|
try {
|
|
3065
3065
|
W.documentElement.innerHTML = _s ? x : St;
|
|
3066
3066
|
} catch {
|
|
@@ -3240,7 +3240,7 @@ function Xo() {
|
|
|
3240
3240
|
if (W = ca(tt), !W)
|
|
3241
3241
|
return et ? null : Zt ? x : "";
|
|
3242
3242
|
}
|
|
3243
|
-
W &&
|
|
3243
|
+
W && be && re(W.firstChild);
|
|
3244
3244
|
const At = ua(ne ? tt : W);
|
|
3245
3245
|
for (; St = At.nextNode(); )
|
|
3246
3246
|
da(St), ga(St), St.content instanceof a && il(St.content);
|
|
@@ -3296,15 +3296,15 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3296
3296
|
svg: !0,
|
|
3297
3297
|
svgFilters: !0
|
|
3298
3298
|
}
|
|
3299
|
-
}), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }),
|
|
3299
|
+
}), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }), bs = class bs extends dt {
|
|
3300
3300
|
constructor() {
|
|
3301
3301
|
super(...arguments), this.type = "toolbar", this.renderType = at.HTML;
|
|
3302
3302
|
}
|
|
3303
3303
|
init() {
|
|
3304
3304
|
const t = () => this.updateOverflowMenu(!1);
|
|
3305
|
-
this.services.events.addEventListener(
|
|
3305
|
+
this.services.events.addEventListener(T.Toolbar.SHOW_OVERFLOW_MENU, () => {
|
|
3306
3306
|
this.renderOverflowMenu(), document.body.addEventListener("click", t);
|
|
3307
|
-
}), this.services.events.addEventListener(
|
|
3307
|
+
}), this.services.events.addEventListener(T.Toolbar.HIDE_OVERFLOW_MENU, () => {
|
|
3308
3308
|
document.body.removeEventListener("click", t);
|
|
3309
3309
|
});
|
|
3310
3310
|
}
|
|
@@ -3329,6 +3329,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3329
3329
|
const o = r.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu"), c = this;
|
|
3330
3330
|
o.merge(r).classed("disabled", (l) => l.shouldBeDisabled()).attr("role", "button").attr("aria-disabled", (l) => l.shouldBeDisabled()).attr("aria-label", (l) => l.title).html((l) => `
|
|
3331
3331
|
<button
|
|
3332
|
+
type="button"
|
|
3332
3333
|
class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
|
|
3333
3334
|
aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(
|
|
3334
3335
|
`control-${ue(l.id)}`
|
|
@@ -3339,7 +3340,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3339
3340
|
</button>`).each(function(l, h) {
|
|
3340
3341
|
D(this).select("svg").style("pointer-events", "none").style("will-change", "transform").style("width", l.iconSVG.width !== void 0 ? l.iconSVG.width : "20px").style("height", l.iconSVG.height !== void 0 ? l.iconSVG.height : "20px"), D(this).select("button").on("mouseover focus", function(d) {
|
|
3341
3342
|
const u = D(this);
|
|
3342
|
-
u.classed("hovered", !0), c.services.events.dispatchEvent(
|
|
3343
|
+
u.classed("hovered", !0), c.services.events.dispatchEvent(T.Toolbar.SHOW_TOOLTIP, {
|
|
3343
3344
|
event: d,
|
|
3344
3345
|
hoveredElement: u,
|
|
3345
3346
|
content: l.title,
|
|
@@ -3347,7 +3348,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3347
3348
|
placements: ["top", "bottom"]
|
|
3348
3349
|
});
|
|
3349
3350
|
}).on("mouseout blur", function() {
|
|
3350
|
-
c.services.events.dispatchEvent(
|
|
3351
|
+
c.services.events.dispatchEvent(T.Toolbar.HIDE_TOOLTIP);
|
|
3351
3352
|
}).on("click", (d) => {
|
|
3352
3353
|
l.shouldBeDisabled() || c.triggerFunctionAndEvent(l, d, this);
|
|
3353
3354
|
}).on("keydown", (d) => {
|
|
@@ -3364,14 +3365,14 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3364
3365
|
const { overflowMenuItemList: t } = this.getControlConfigs(), e = this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(t, (s) => O(s, "id"));
|
|
3365
3366
|
e.exit().remove();
|
|
3366
3367
|
const n = e.enter().append("li").attr("id", (s) => this.services.domUtils.generateElementIDString(`control-${s.id}`)).attr("class", "cds--overflow-menu-options__option cds--overflow-menu-options__option").attr("role", "menuitem").attr("tabindex", 1);
|
|
3367
|
-
n.append("button").attr("class", "cds--overflow-menu-options__btn cds--overflow-menu-options__btn"), n.merge(e).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).attr("aria-disabled", (s) => s.shouldBeDisabled()).selectAll("button").text((s) => s.title);
|
|
3368
|
+
n.append("button").attr("type", "button").attr("class", "cds--overflow-menu-options__btn cds--overflow-menu-options__btn"), n.merge(e).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).attr("aria-disabled", (s) => s.shouldBeDisabled()).selectAll("button").text((s) => s.title);
|
|
3368
3369
|
}
|
|
3369
3370
|
isOverflowMenuOpen() {
|
|
3370
3371
|
return this.overflowMenu.classed("is-open");
|
|
3371
3372
|
}
|
|
3372
3373
|
// show/hide overflow menu
|
|
3373
3374
|
updateOverflowMenu(t) {
|
|
3374
|
-
this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), D(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(
|
|
3375
|
+
this.overflowMenu && (this.overflowMenu.classed("is-open", t), this.overflowButton && (this.overflowButton.attr("aria-expanded", t), D(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open", t).classed("cds--overflow-menu--open", t)), t ? this.services.events.dispatchEvent(T.Toolbar.SHOW_OVERFLOW_MENU) : this.services.events.dispatchEvent(T.Toolbar.HIDE_OVERFLOW_MENU));
|
|
3375
3376
|
}
|
|
3376
3377
|
// Toolbar controllers
|
|
3377
3378
|
focusOnPreviousEnabledToolbarItem(t) {
|
|
@@ -3463,7 +3464,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3463
3464
|
}
|
|
3464
3465
|
// Calls passed function && dispatches event
|
|
3465
3466
|
triggerFunctionAndEvent(t, e, n) {
|
|
3466
|
-
typeof t.shouldBeDisabled == "function" && t.shouldBeDisabled() || (typeof t.clickFunction == "function" && t.clickFunction(e), this.services.events.dispatchEvent(
|
|
3467
|
+
typeof t.shouldBeDisabled == "function" && t.shouldBeDisabled() || (typeof t.clickFunction == "function" && t.clickFunction(e), this.services.events.dispatchEvent(T.Toolbar.BUTTON_CLICK, {
|
|
3467
3468
|
control: t,
|
|
3468
3469
|
event: e,
|
|
3469
3470
|
element: n
|
|
@@ -3473,11 +3474,11 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3473
3474
|
const t = O(this.getOptions(), "toolbar", "numberOfIcons") - 1, e = O(this.getOptions(), "toolbar", "controls"), n = [], s = [], a = [];
|
|
3474
3475
|
return e.forEach((r) => {
|
|
3475
3476
|
let o = null;
|
|
3476
|
-
if (r.type ===
|
|
3477
|
-
O(r, "id") === null && (r.id = `toolbar-button-${
|
|
3477
|
+
if (r.type === bt.CUSTOM)
|
|
3478
|
+
O(r, "id") === null && (r.id = `toolbar-button-${bs.buttonID++}`), O(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
|
|
3478
3479
|
else {
|
|
3479
3480
|
const c = this.services.domUtils.isFullScreenMode();
|
|
3480
|
-
r.type ===
|
|
3481
|
+
r.type === bt.MAKE_FULLSCREEN && c ? r.type = bt.EXIT_FULLSCREEN : r.type === bt.EXIT_FULLSCREEN && !c && (r.type = bt.MAKE_FULLSCREEN), o = this.getControlConfigByType(r.type);
|
|
3481
3482
|
}
|
|
3482
3483
|
o && (o.text = r.text ? r.text : r.type, o.id.indexOf("toolbar-export") !== -1 ? n.push(o) : s.length < t ? O(o, "iconSVG", "content") === null ? a.push(o) : s.push(o) : a.push(o));
|
|
3483
3484
|
}), a.push(...n), a.length ? {
|
|
@@ -3529,7 +3530,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3529
3530
|
} = O(s, "locale", "translations", "toolbar");
|
|
3530
3531
|
let f;
|
|
3531
3532
|
switch (t) {
|
|
3532
|
-
case
|
|
3533
|
+
case bt.ZOOM_IN:
|
|
3533
3534
|
e && (f = {
|
|
3534
3535
|
id: "toolbar-zoomIn",
|
|
3535
3536
|
title: c,
|
|
@@ -3540,7 +3541,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3540
3541
|
clickFunction: () => this.services.zoom.zoomIn()
|
|
3541
3542
|
});
|
|
3542
3543
|
break;
|
|
3543
|
-
case
|
|
3544
|
+
case bt.ZOOM_OUT:
|
|
3544
3545
|
e && (f = {
|
|
3545
3546
|
id: "toolbar-zoomOut",
|
|
3546
3547
|
title: l,
|
|
@@ -3551,7 +3552,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3551
3552
|
clickFunction: () => this.services.zoom.zoomOut()
|
|
3552
3553
|
});
|
|
3553
3554
|
break;
|
|
3554
|
-
case
|
|
3555
|
+
case bt.RESET_ZOOM:
|
|
3555
3556
|
e && (f = {
|
|
3556
3557
|
id: "toolbar-resetZoom",
|
|
3557
3558
|
title: h,
|
|
@@ -3562,7 +3563,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3562
3563
|
clickFunction: () => this.services.zoom.resetZoomDomain()
|
|
3563
3564
|
});
|
|
3564
3565
|
break;
|
|
3565
|
-
case
|
|
3566
|
+
case bt.MAKE_FULLSCREEN:
|
|
3566
3567
|
f = {
|
|
3567
3568
|
id: "toolbar-makefullscreen",
|
|
3568
3569
|
iconSVG: {
|
|
@@ -3577,7 +3578,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3577
3578
|
}
|
|
3578
3579
|
};
|
|
3579
3580
|
break;
|
|
3580
|
-
case
|
|
3581
|
+
case bt.EXIT_FULLSCREEN:
|
|
3581
3582
|
f = {
|
|
3582
3583
|
id: "toolbar-exitfullscreen",
|
|
3583
3584
|
iconSVG: {
|
|
@@ -3592,7 +3593,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3592
3593
|
}
|
|
3593
3594
|
};
|
|
3594
3595
|
break;
|
|
3595
|
-
case
|
|
3596
|
+
case bt.SHOW_AS_DATATABLE:
|
|
3596
3597
|
f = {
|
|
3597
3598
|
id: "toolbar-showasdatatable",
|
|
3598
3599
|
iconSVG: {
|
|
@@ -3600,10 +3601,10 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3600
3601
|
},
|
|
3601
3602
|
title: p,
|
|
3602
3603
|
shouldBeDisabled: () => n.length === 0,
|
|
3603
|
-
clickFunction: () => this.services.events.dispatchEvent(
|
|
3604
|
+
clickFunction: () => this.services.events.dispatchEvent(T.Modal.SHOW)
|
|
3604
3605
|
};
|
|
3605
3606
|
break;
|
|
3606
|
-
case
|
|
3607
|
+
case bt.EXPORT_CSV:
|
|
3607
3608
|
f = {
|
|
3608
3609
|
id: "toolbar-export-CSV",
|
|
3609
3610
|
title: a,
|
|
@@ -3614,7 +3615,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3614
3615
|
clickFunction: () => this.model.exportToCSV()
|
|
3615
3616
|
};
|
|
3616
3617
|
break;
|
|
3617
|
-
case
|
|
3618
|
+
case bt.EXPORT_PNG:
|
|
3618
3619
|
f = {
|
|
3619
3620
|
id: "toolbar-export-PNG",
|
|
3620
3621
|
title: o,
|
|
@@ -3625,7 +3626,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3625
3626
|
clickFunction: () => this.services.domUtils.exportToPNG()
|
|
3626
3627
|
};
|
|
3627
3628
|
break;
|
|
3628
|
-
case
|
|
3629
|
+
case bt.EXPORT_JPG:
|
|
3629
3630
|
f = {
|
|
3630
3631
|
id: "toolbar-export-JPG",
|
|
3631
3632
|
title: r,
|
|
@@ -3644,25 +3645,25 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3644
3645
|
}
|
|
3645
3646
|
getControlIconByType(t) {
|
|
3646
3647
|
switch (t) {
|
|
3647
|
-
case
|
|
3648
|
+
case bt.ZOOM_IN:
|
|
3648
3649
|
return `<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>
|
|
3649
3650
|
<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;
|
|
3650
|
-
case
|
|
3651
|
+
case bt.ZOOM_OUT:
|
|
3651
3652
|
return `<rect x="9" y="13" width="10" height="2"/>
|
|
3652
3653
|
<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;
|
|
3653
|
-
case
|
|
3654
|
+
case bt.RESET_ZOOM:
|
|
3654
3655
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
3655
|
-
case
|
|
3656
|
+
case bt.MAKE_FULLSCREEN:
|
|
3656
3657
|
return '<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';
|
|
3657
|
-
case
|
|
3658
|
+
case bt.EXIT_FULLSCREEN:
|
|
3658
3659
|
return '<polygon points="4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18"/><polygon points="30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416"/>';
|
|
3659
|
-
case
|
|
3660
|
+
case bt.SHOW_AS_DATATABLE:
|
|
3660
3661
|
return '<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';
|
|
3661
|
-
case
|
|
3662
|
+
case bt.EXPORT_CSV:
|
|
3662
3663
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
3663
|
-
case
|
|
3664
|
+
case bt.EXPORT_JPG:
|
|
3664
3665
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
3665
|
-
case
|
|
3666
|
+
case bt.EXPORT_PNG:
|
|
3666
3667
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
3667
3668
|
// add more icons here
|
|
3668
3669
|
// svg icon must be with 32x32 viewBox
|
|
@@ -3671,11 +3672,11 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3671
3672
|
}
|
|
3672
3673
|
}
|
|
3673
3674
|
};
|
|
3674
|
-
|
|
3675
|
-
let
|
|
3676
|
-
const
|
|
3675
|
+
bs.buttonID = 0;
|
|
3676
|
+
let br = bs;
|
|
3677
|
+
const Ts = class Ts extends dt {
|
|
3677
3678
|
constructor(t, e, n, s) {
|
|
3678
|
-
super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID =
|
|
3679
|
+
super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Ts.instanceID++, this.init();
|
|
3679
3680
|
}
|
|
3680
3681
|
init() {
|
|
3681
3682
|
this.children.forEach((t) => {
|
|
@@ -3689,13 +3690,13 @@ const bs = class bs extends dt {
|
|
|
3689
3690
|
let e = 0;
|
|
3690
3691
|
return t.selectAll(`div.layout-child-${this._instanceID}`).filter((n) => {
|
|
3691
3692
|
const s = O(n, "growth");
|
|
3692
|
-
return s ===
|
|
3693
|
+
return s === Te.PREFERRED || s === Te.FIXED;
|
|
3693
3694
|
}).each(function(n) {
|
|
3694
3695
|
e += n.size;
|
|
3695
3696
|
}), e;
|
|
3696
3697
|
}
|
|
3697
3698
|
getNumOfStretchChildren() {
|
|
3698
|
-
return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((e) => O(e, "growth") ===
|
|
3699
|
+
return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((e) => O(e, "growth") === Te.STRETCH).size();
|
|
3699
3700
|
}
|
|
3700
3701
|
render(t = !0) {
|
|
3701
3702
|
const e = this.model.getOptions(), n = this.parent, { width: s, height: a } = I.getHTMLElementSize(n.node()), r = this.configs.direction === ze.ROW || this.configs.direction === ze.ROW_REVERSE, o = O(this.model.getOptions(), "style", "prefix"), c = n.classed(
|
|
@@ -3722,23 +3723,23 @@ const bs = class bs extends dt {
|
|
|
3722
3723
|
g ? I.appendOrSelect(p, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : p
|
|
3723
3724
|
), g && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((v = e == null ? void 0 : e.accessibility) == null ? void 0 : v.svgAriaLabel) || (e == null ? void 0 : e.title));
|
|
3724
3725
|
const m = O(d, "growth");
|
|
3725
|
-
(m ===
|
|
3726
|
+
(m === Te.PREFERRED || m === Te.FIXED) && u.render(t);
|
|
3726
3727
|
});
|
|
3727
3728
|
}), n.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
|
|
3728
3729
|
const u = O(d, "growth"), f = O(d, "renderType") === at.SVG ? I.getSVGElementSize(D(this).select("svg.layout-svg-wrapper"), {
|
|
3729
3730
|
useBBox: !0
|
|
3730
3731
|
}) : I.getHTMLElementSize(this);
|
|
3731
|
-
if (u ===
|
|
3732
|
+
if (u === Te.PREFERRED) {
|
|
3732
3733
|
const g = r ? f.width : f.height, m = r ? s : a;
|
|
3733
3734
|
d.size = g / m * 100;
|
|
3734
3735
|
}
|
|
3735
|
-
}), c.exit().remove(), this.children.filter((d) => O(d, "growth") ===
|
|
3736
|
+
}), c.exit().remove(), this.children.filter((d) => O(d, "growth") === Te.STRETCH).forEach((d) => {
|
|
3736
3737
|
d.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
|
|
3737
3738
|
});
|
|
3738
3739
|
const h = n.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
|
|
3739
3740
|
r ? h.style("width", (d) => `${d.size / 100 * s}px`).style("height", "100%") : h.style("height", (d) => `${d.size / 100 * a}px`).style("width", "100%"), h.each(function(d) {
|
|
3740
3741
|
d.components.forEach((u) => {
|
|
3741
|
-
O(d, "growth") ===
|
|
3742
|
+
O(d, "growth") === Te.STRETCH && u.render(t);
|
|
3742
3743
|
});
|
|
3743
3744
|
});
|
|
3744
3745
|
}
|
|
@@ -3760,8 +3761,8 @@ const bs = class bs extends dt {
|
|
|
3760
3761
|
});
|
|
3761
3762
|
}
|
|
3762
3763
|
};
|
|
3763
|
-
|
|
3764
|
-
let
|
|
3764
|
+
Ts.instanceID = Math.floor(Math.random() * 99999999999);
|
|
3765
|
+
let Tr = Ts;
|
|
3765
3766
|
class om extends dt {
|
|
3766
3767
|
constructor() {
|
|
3767
3768
|
super(...arguments), this.type = "spacer";
|
|
@@ -3789,10 +3790,10 @@ class lm extends dt {
|
|
|
3789
3790
|
}, this.init();
|
|
3790
3791
|
}
|
|
3791
3792
|
addEventListeners() {
|
|
3792
|
-
this.services.events.addEventListener(
|
|
3793
|
+
this.services.events.addEventListener(T.Modal.SHOW, this.handleShowModal);
|
|
3793
3794
|
}
|
|
3794
3795
|
removeEventListeners() {
|
|
3795
|
-
this.services.events.removeEventListener(
|
|
3796
|
+
this.services.events.removeEventListener(T.Modal.SHOW, this.handleShowModal);
|
|
3796
3797
|
}
|
|
3797
3798
|
getModalHTML() {
|
|
3798
3799
|
const t = this.services.domUtils.getChartID(), e = this.model.getOptions(), { title: n, downloadAsCSV: s } = O(e, "locale", "translations", "tabularRep"), a = O(e, "style", "prefix"), r = this.model.getTabularDataArray();
|
|
@@ -3867,17 +3868,17 @@ class Rd extends dt {
|
|
|
3867
3868
|
if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => ue(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
|
|
3868
3869
|
const a = this;
|
|
3869
3870
|
s.on("mouseover", function(r) {
|
|
3870
|
-
a.services.events.dispatchEvent(
|
|
3871
|
+
a.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
3871
3872
|
event: r,
|
|
3872
3873
|
hoveredElement: s,
|
|
3873
3874
|
content: s.text()
|
|
3874
3875
|
});
|
|
3875
3876
|
}).on("mousemove", function(r) {
|
|
3876
|
-
a.services.events.dispatchEvent(
|
|
3877
|
+
a.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
3877
3878
|
event: r
|
|
3878
3879
|
});
|
|
3879
3880
|
}).on("mouseout", function() {
|
|
3880
|
-
a.services.events.dispatchEvent(
|
|
3881
|
+
a.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
3881
3882
|
});
|
|
3882
3883
|
}
|
|
3883
3884
|
s.exit().remove();
|
|
@@ -3900,17 +3901,17 @@ class Rd extends dt {
|
|
|
3900
3901
|
t.html(a.substring(0, r - 1)).append("tspan").text("...");
|
|
3901
3902
|
const o = this;
|
|
3902
3903
|
t.on("mouseover", function(c) {
|
|
3903
|
-
o.services.events.dispatchEvent(
|
|
3904
|
+
o.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
3904
3905
|
event: c,
|
|
3905
3906
|
hoveredElement: t,
|
|
3906
3907
|
content: n
|
|
3907
3908
|
});
|
|
3908
3909
|
}).on("mousemove", function(c) {
|
|
3909
|
-
o.services.events.dispatchEvent(
|
|
3910
|
+
o.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
3910
3911
|
event: c
|
|
3911
3912
|
});
|
|
3912
3913
|
}).on("mouseout", function() {
|
|
3913
|
-
o.services.events.dispatchEvent(
|
|
3914
|
+
o.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
3914
3915
|
});
|
|
3915
3916
|
}
|
|
3916
3917
|
}
|
|
@@ -3971,17 +3972,17 @@ class Dd extends dt {
|
|
|
3971
3972
|
if (v && r.length) {
|
|
3972
3973
|
const S = this, y = h.selectAll("div.additional-item").data(v);
|
|
3973
3974
|
y.exit().remove();
|
|
3974
|
-
const E = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
|
|
3975
|
+
const E = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
|
|
3975
3976
|
"aria-labelledby",
|
|
3976
3977
|
(k, _) => this.services.domUtils.generateElementIDString(
|
|
3977
3978
|
`legend-datagroup-${m.size() + _}-title`
|
|
3978
3979
|
)
|
|
3979
3980
|
);
|
|
3980
3981
|
E.selectAll("*").remove();
|
|
3981
|
-
let x,
|
|
3982
|
+
let x, b = 1;
|
|
3982
3983
|
E.append("svg").classed("icon", !0).each(function(k) {
|
|
3983
3984
|
const _ = D(this);
|
|
3984
|
-
!x || x != k.type ? (x = k.type,
|
|
3985
|
+
!x || x != k.type ? (x = k.type, b = 1) : b++, S.addAdditionalItem(_, k, b);
|
|
3985
3986
|
}), E.append("p").merge(E.select("p")), this.truncateLegendText();
|
|
3986
3987
|
}
|
|
3987
3988
|
d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
|
|
@@ -4037,43 +4038,43 @@ class Dd extends dt {
|
|
|
4037
4038
|
addEventListeners() {
|
|
4038
4039
|
const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = O(n, "legend"), a = O(s, "truncation");
|
|
4039
4040
|
e.selectAll("div.legend-item").on("mouseover", function(r) {
|
|
4040
|
-
t.services.events.dispatchEvent(
|
|
4041
|
+
t.services.events.dispatchEvent(T.Legend.ITEM_HOVER, {
|
|
4041
4042
|
hoveredElement: D(this)
|
|
4042
4043
|
});
|
|
4043
4044
|
const o = D(this);
|
|
4044
4045
|
o.select("div.checkbox").classed("hovered", !0);
|
|
4045
4046
|
const c = o.datum();
|
|
4046
|
-
c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !== Je.NONE && t.services.events.dispatchEvent(
|
|
4047
|
+
c.name.length > a.threshold && a.numCharacter < c.name.length && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
4047
4048
|
event: r,
|
|
4048
4049
|
hoveredElement: o,
|
|
4049
4050
|
content: c.name
|
|
4050
4051
|
});
|
|
4051
4052
|
}).on("mousemove", function(r) {
|
|
4052
|
-
D(this).datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(
|
|
4053
|
+
D(this).datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
4053
4054
|
event: r
|
|
4054
4055
|
});
|
|
4055
4056
|
}).on("click", function() {
|
|
4056
|
-
t.services.events.dispatchEvent(
|
|
4057
|
+
t.services.events.dispatchEvent(T.Legend.ITEM_CLICK, {
|
|
4057
4058
|
clickedElement: D(this)
|
|
4058
4059
|
});
|
|
4059
4060
|
const o = D(this).datum();
|
|
4060
4061
|
t.model.toggleDataLabel(o.name);
|
|
4061
4062
|
}).on("mouseout", function() {
|
|
4062
4063
|
const r = D(this);
|
|
4063
|
-
r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(
|
|
4064
|
+
r.select("div.checkbox").classed("hovered", !1), r.datum().name.length > a.threshold && a.type !== Je.NONE && t.services.events.dispatchEvent(T.Tooltip.HIDE), t.services.events.dispatchEvent(T.Legend.ITEM_MOUSEOUT, {
|
|
4064
4065
|
hoveredElement: r
|
|
4065
4066
|
});
|
|
4066
4067
|
}), e.selectAll("div.legend-item div.checkbox").on("keyup", function(r) {
|
|
4067
|
-
r.key && r.key === "Tab" && t.services.events.dispatchEvent(
|
|
4068
|
+
r.key && r.key === "Tab" && t.services.events.dispatchEvent(T.Legend.ITEM_HOVER, {
|
|
4068
4069
|
hoveredElement: D(this)
|
|
4069
4070
|
});
|
|
4070
4071
|
}), e.selectAll("div.legend-item div.checkbox").on("keydown", function(r, o) {
|
|
4071
|
-
r.key && r.key === " " ? (r.preventDefault(), t.model.toggleDataLabel(o.name)) : r.key && r.key === "Tab" && t.services.events.dispatchEvent(
|
|
4072
|
+
r.key && r.key === " " ? (r.preventDefault(), t.model.toggleDataLabel(o.name)) : r.key && r.key === "Tab" && t.services.events.dispatchEvent(T.Legend.ITEM_MOUSEOUT, {
|
|
4072
4073
|
hoveredElement: D(this)
|
|
4073
4074
|
});
|
|
4074
4075
|
}), e.selectAll("g.additional-item").on("mouseover", function(r) {
|
|
4075
4076
|
const o = D(this), c = o.datum();
|
|
4076
|
-
c.name.length > a.threshold && t.services.events.dispatchEvent(
|
|
4077
|
+
c.name.length > a.threshold && t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
4077
4078
|
event: r,
|
|
4078
4079
|
hoveredElement: o,
|
|
4079
4080
|
content: c.name
|
|
@@ -4271,12 +4272,12 @@ class Pd extends dt {
|
|
|
4271
4272
|
}, this.init();
|
|
4272
4273
|
}
|
|
4273
4274
|
addTooltipEventListener() {
|
|
4274
|
-
this.services.events.addEventListener(
|
|
4275
|
-
this.lastTriggeredEventType !==
|
|
4276
|
-
}), this.services.events.addEventListener(
|
|
4275
|
+
this.services.events.addEventListener(T.Tooltip.MOVE, (t) => {
|
|
4276
|
+
this.lastTriggeredEventType !== T.Toolbar.SHOW_TOOLTIP && this.tooltip.classed("hidden") === !1 && this.positionTooltip(t);
|
|
4277
|
+
}), this.services.events.addEventListener(T.Tooltip.SHOW, this.handleShowTooltip), this.services.events.addEventListener(T.Tooltip.HIDE, this.handleHideTooltip), this.services.events.addEventListener(T.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.addEventListener(T.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.addEventListener(T.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
|
|
4277
4278
|
}
|
|
4278
4279
|
removeTooltipEventListener() {
|
|
4279
|
-
this.services.events.removeEventListener(
|
|
4280
|
+
this.services.events.removeEventListener(T.Tooltip.MOVE, null), this.services.events.removeEventListener(T.Tooltip.SHOW, this.handleShowTooltip), this.services.events.removeEventListener(T.Tooltip.HIDE, this.handleHideTooltip), this.services.events.removeEventListener(T.Chart.MOUSEOUT, this.handleHideTooltip), this.services.events.removeEventListener(T.Toolbar.SHOW_TOOLTIP, this.handleShowTooltip), this.services.events.removeEventListener(T.Toolbar.HIDE_TOOLTIP, this.handleHideTooltip);
|
|
4280
4281
|
}
|
|
4281
4282
|
getItems(t) {
|
|
4282
4283
|
return t.detail.items ? t.detail.items : [];
|
|
@@ -4427,24 +4428,24 @@ const en = class en extends dt {
|
|
|
4427
4428
|
let f = this.model.get("zoomDomain");
|
|
4428
4429
|
f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
|
|
4429
4430
|
const g = (x) => {
|
|
4430
|
-
const
|
|
4431
|
-
let k = "0," +
|
|
4431
|
+
const b = x[1] - x[0];
|
|
4432
|
+
let k = "0," + b.toString();
|
|
4432
4433
|
const _ = Math.floor(c / en.DASH_LENGTH), G = _ * en.DASH_LENGTH;
|
|
4433
4434
|
for (let R = 0; R < _; R++)
|
|
4434
4435
|
k += "," + en.DASH_LENGTH;
|
|
4435
|
-
k += "," + (c - G), _ % 2 === 1 && (k += ",0"), k += "," +
|
|
4436
|
+
k += "," + (c - G), _ % 2 === 1 && (k += ",0"), k += "," + b.toString(), k += "," + c.toString(), p.attr("stroke-dasharray", k);
|
|
4436
4437
|
}, m = (x) => {
|
|
4437
|
-
const
|
|
4438
|
-
|
|
4439
|
-
}, v = (x,
|
|
4438
|
+
const b = x.selection;
|
|
4439
|
+
b === null || b[0] === b[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), g(b));
|
|
4440
|
+
}, v = (x, b) => {
|
|
4440
4441
|
const k = Ll().range([0, o]).domain(f);
|
|
4441
|
-
let _ = [k.invert(x), k.invert(
|
|
4442
|
+
let _ = [k.invert(x), k.invert(b)];
|
|
4442
4443
|
_[0].valueOf() === _[1].valueOf() && (_ = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_);
|
|
4443
4444
|
};
|
|
4444
4445
|
let S;
|
|
4445
4446
|
const y = (x) => {
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4447
|
+
const b = x.selection;
|
|
4448
|
+
b !== null && (v(b[0], b[1]), a.call(S.move, null), p.style("display", "none"));
|
|
4448
4449
|
};
|
|
4449
4450
|
c != 0 && o != 0 && (S = po().extent([
|
|
4450
4451
|
[0, 0],
|
|
@@ -4453,7 +4454,7 @@ const en = class en extends dt {
|
|
|
4453
4454
|
const E = this.services.zoom.getZoomRatio();
|
|
4454
4455
|
s.on("click", function(x) {
|
|
4455
4456
|
if (x.shiftKey) {
|
|
4456
|
-
const
|
|
4457
|
+
const b = this.services.domUtils.getHolder(), k = sn(a.node(), b)[0];
|
|
4457
4458
|
let _ = k - o * E / 2;
|
|
4458
4459
|
_ < 0 && (_ = 0);
|
|
4459
4460
|
let G = k + o * E / 2;
|
|
@@ -4470,7 +4471,7 @@ class um extends dt {
|
|
|
4470
4471
|
super(...arguments), this.type = "zoom-bar", this.renderType = at.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = po(), this.highlightStrokeWidth = 1;
|
|
4471
4472
|
}
|
|
4472
4473
|
init() {
|
|
4473
|
-
this.services.events.addEventListener(
|
|
4474
|
+
this.services.events.addEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
|
|
4474
4475
|
const t = O(this.getOptions(), "zoomBar", J.TOP, "data");
|
|
4475
4476
|
this.model.setZoomBarData(t);
|
|
4476
4477
|
}
|
|
@@ -4526,14 +4527,14 @@ class um extends dt {
|
|
|
4526
4527
|
zoomDomain: nn([], v)
|
|
4527
4528
|
},
|
|
4528
4529
|
{ skipUpdate: !0 }
|
|
4529
|
-
), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Os(m, (
|
|
4530
|
+
), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Os(m, (b) => b.value));
|
|
4530
4531
|
const E = this.model.get("zoomDomain");
|
|
4531
4532
|
if (a === Ue.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, l, c), r)) {
|
|
4532
|
-
const
|
|
4533
|
+
const b = r.highlightStartMapsTo, k = r.highlightEndMapsTo, _ = r.color, G = r.labelMapsTo;
|
|
4533
4534
|
r.data.forEach((R, A) => {
|
|
4534
|
-
I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[
|
|
4535
|
+
I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[b])).attr(
|
|
4535
4536
|
"width",
|
|
4536
|
-
this.xScale(R[k]) - this.xScale(R[
|
|
4537
|
+
this.xScale(R[k]) - this.xScale(R[b])
|
|
4537
4538
|
).style(
|
|
4538
4539
|
"fill",
|
|
4539
4540
|
_ && _.scale[R[G]] ? _.scale[R[G]] : null
|
|
@@ -4548,8 +4549,8 @@ class um extends dt {
|
|
|
4548
4549
|
if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
|
|
4549
4550
|
x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
|
|
4550
4551
|
else {
|
|
4551
|
-
const
|
|
4552
|
-
|
|
4552
|
+
const b = E.map((k) => this.xScale(k));
|
|
4553
|
+
b[1] - b[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, b), this.updateBrushHandle(this.getComponentContainer(), b));
|
|
4553
4554
|
}
|
|
4554
4555
|
s && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
|
|
4555
4556
|
}
|
|
@@ -4572,7 +4573,7 @@ class um extends dt {
|
|
|
4572
4573
|
dispatchEvent: !1
|
|
4573
4574
|
});
|
|
4574
4575
|
let r;
|
|
4575
|
-
t.type === "start" ? r =
|
|
4576
|
+
t.type === "start" ? r = T.ZoomBar.SELECTION_START : t.type === "brush" ? r = T.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (r = T.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(T.ZoomDomain.CHANGE, {
|
|
4576
4577
|
newDomain: a
|
|
4577
4578
|
})), this.services.events.dispatchEvent(r, {
|
|
4578
4579
|
selection: s,
|
|
@@ -4657,7 +4658,7 @@ class um extends dt {
|
|
|
4657
4658
|
this.renderZoomBarArea(t, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(t, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), I.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), O(this.getOptions(), "zoomBar", J.TOP, "type") === Ue.GRAPH_VIEW && this.renderZoomBarBaseline(t, e, n, !0);
|
|
4658
4659
|
}
|
|
4659
4660
|
destroy() {
|
|
4660
|
-
this.brush.on("start brush end", null), this.services.events.removeEventListener(
|
|
4661
|
+
this.brush.on("start brush end", null), this.services.events.removeEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
|
|
4661
4662
|
}
|
|
4662
4663
|
}
|
|
4663
4664
|
class hm extends dt {
|
|
@@ -4697,7 +4698,7 @@ class hm extends dt {
|
|
|
4697
4698
|
), f = d.services.cartesianScales.getScaleTypeByPosition(u);
|
|
4698
4699
|
let g = null, m = null;
|
|
4699
4700
|
u === J.LEFT || u === J.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
|
|
4700
|
-
const v = f === kt.LABELS, [S, y] = g.range(), [E, x] = m.range(), { cartesianScales:
|
|
4701
|
+
const v = f === kt.LABELS, [S, y] = g.range(), [E, x] = m.range(), { cartesianScales: b } = d.services, k = b.getOrientation(), _ = (N) => b.getDomainValue(N), G = (N) => b.getRangeValue(N), [R, A] = xe(
|
|
4701
4702
|
_,
|
|
4702
4703
|
G,
|
|
4703
4704
|
k
|
|
@@ -4727,9 +4728,9 @@ class hm extends dt {
|
|
|
4727
4728
|
"y2",
|
|
4728
4729
|
({ datum: N }) => A(N) + (v ? p.step() / 2 : 0)
|
|
4729
4730
|
).style("stroke", ({ fillColor: N }) => N), H.selectAll("rect.threshold-hoverable-area").attr("x", S).attr("y", ({ datum: N }) => A(N)).attr("width", Math.abs(y - S)).classed("rotate", !1));
|
|
4730
|
-
}), this.services.events.addEventListener(
|
|
4731
|
+
}), this.services.events.addEventListener(T.Threshold.SHOW, (u) => {
|
|
4731
4732
|
this.setThresholdLabelPosition(u.detail), this.label.classed("hidden", !1);
|
|
4732
|
-
}), this.services.events.addEventListener(
|
|
4733
|
+
}), this.services.events.addEventListener(T.Threshold.HIDE, () => {
|
|
4733
4734
|
this.label.classed("hidden", !0);
|
|
4734
4735
|
}), this.appendThresholdLabel(), this.addEventListeners();
|
|
4735
4736
|
}
|
|
@@ -4787,13 +4788,13 @@ class hm extends dt {
|
|
|
4787
4788
|
addEventListeners() {
|
|
4788
4789
|
const t = this;
|
|
4789
4790
|
this.getComponentContainer({ withinChartClip: !0 }).selectAll("rect.threshold-hoverable-area").on("mouseover mousemove", function(n) {
|
|
4790
|
-
D(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(
|
|
4791
|
+
D(this.parentNode).select("line.threshold-line").classed("active", !0), t.services.events.dispatchEvent(T.Threshold.SHOW, {
|
|
4791
4792
|
event: n,
|
|
4792
4793
|
hoveredElement: D(this),
|
|
4793
4794
|
datum: D(this).datum()
|
|
4794
4795
|
});
|
|
4795
4796
|
}).on("mouseout", function(n) {
|
|
4796
|
-
D(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(
|
|
4797
|
+
D(this.parentNode).select("line.threshold-line").classed("active", !1), t.services.events.dispatchEvent(T.Threshold.HIDE, {
|
|
4797
4798
|
event: n,
|
|
4798
4799
|
hoveredElement: D(this),
|
|
4799
4800
|
datum: D(this).datum()
|
|
@@ -4835,9 +4836,9 @@ class dm extends dt {
|
|
|
4835
4836
|
l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
|
|
4836
4837
|
const d = this;
|
|
4837
4838
|
o.each(function({ axisPosition: u }) {
|
|
4838
|
-
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R),
|
|
4839
|
+
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), b = (R) => y.getRangeValue(R), [k, _] = xe(
|
|
4839
4840
|
x,
|
|
4840
|
-
|
|
4841
|
+
b,
|
|
4841
4842
|
E
|
|
4842
4843
|
), G = D(this);
|
|
4843
4844
|
u === J.TOP || u === J.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
|
|
@@ -5140,10 +5141,10 @@ function Ud() {
|
|
|
5140
5141
|
r = Math.min(a, (n - t) / (Mr(P, ($) => $.length) - 1)), E(P);
|
|
5141
5142
|
for (let $ = 0; $ < p; ++$) {
|
|
5142
5143
|
const C = Math.pow(0.99, $), V = Math.max(1 - C, ($ + 1) / p);
|
|
5143
|
-
k(P, C, V),
|
|
5144
|
+
k(P, C, V), b(P, C, V);
|
|
5144
5145
|
}
|
|
5145
5146
|
}
|
|
5146
|
-
function
|
|
5147
|
+
function b(L, P, $) {
|
|
5147
5148
|
for (let C = 1, V = L.length; C < V; ++C) {
|
|
5148
5149
|
const q = L[C];
|
|
5149
5150
|
for (const X of q) {
|
|
@@ -5376,11 +5377,11 @@ class fm extends dt {
|
|
|
5376
5377
|
).style("font-size", "14px").text((y) => u[y] ? u[y] : "").attr("y", 20).attr("x", (y, E) => {
|
|
5377
5378
|
const x = this.services.domUtils.generateElementIDString(
|
|
5378
5379
|
`alluvial-category-${E}`
|
|
5379
|
-
), { width:
|
|
5380
|
+
), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
|
|
5380
5381
|
useBBox: !0
|
|
5381
5382
|
});
|
|
5382
5383
|
let k = 0;
|
|
5383
|
-
return y + k >=
|
|
5384
|
+
return y + k >= b && (k = -b + 4), k;
|
|
5384
5385
|
});
|
|
5385
5386
|
const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
|
|
5386
5387
|
if (f.exit().remove(), o) {
|
|
@@ -5425,18 +5426,18 @@ class fm extends dt {
|
|
|
5425
5426
|
).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((y) => `${y.name} (${S(y.value, v)})`).attr("aria-label", (y) => `${y.name} (${y.value})`), m.append("rect").classed("node-text-bg", !0).attr("width", (y, E) => {
|
|
5426
5427
|
const x = this.services.domUtils.generateElementIDString(
|
|
5427
5428
|
`alluvial-node-text-${E}`
|
|
5428
|
-
), { width:
|
|
5429
|
+
), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
|
|
5429
5430
|
useBBox: !0
|
|
5430
5431
|
});
|
|
5431
|
-
return
|
|
5432
|
+
return b + 8;
|
|
5432
5433
|
}).attr("height", 18).attr("stroke-width", 2).lower(), m.attr("transform", (y, E) => {
|
|
5433
5434
|
const x = this.services.domUtils.generateElementIDString(
|
|
5434
5435
|
`alluvial-node-text-${E}`
|
|
5435
|
-
), { width:
|
|
5436
|
+
), { width: b } = I.getSVGElementSize(D(`text#${x}`), {
|
|
5436
5437
|
useBBox: !0
|
|
5437
5438
|
}), k = (y.y1 - y.y0) / 2 - 9;
|
|
5438
5439
|
let _ = y.x1 - y.x0;
|
|
5439
|
-
return y.x1 >=
|
|
5440
|
+
return y.x1 >= b ? _ = _ - (b + 16) : _ += 4, `translate(${_}, ${k})`;
|
|
5440
5441
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
5441
5442
|
}
|
|
5442
5443
|
addLineEventListener() {
|
|
@@ -5455,11 +5456,11 @@ class fm extends dt {
|
|
|
5455
5456
|
const c = D(this);
|
|
5456
5457
|
a(this, "mouseover"), c.classed("link-hovered", !0);
|
|
5457
5458
|
const l = getComputedStyle(this).getPropertyValue("stroke");
|
|
5458
|
-
e.services.events.dispatchEvent(
|
|
5459
|
+
e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEOVER, {
|
|
5459
5460
|
event: r,
|
|
5460
5461
|
element: c,
|
|
5461
5462
|
datum: o
|
|
5462
|
-
}), e.services.events.dispatchEvent(
|
|
5463
|
+
}), e.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
5463
5464
|
event: r,
|
|
5464
5465
|
hoveredElement: c,
|
|
5465
5466
|
items: [
|
|
@@ -5472,26 +5473,26 @@ class fm extends dt {
|
|
|
5472
5473
|
]
|
|
5473
5474
|
});
|
|
5474
5475
|
}).on("mousemove", function(r, o) {
|
|
5475
|
-
e.services.events.dispatchEvent(
|
|
5476
|
+
e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEMOVE, {
|
|
5476
5477
|
event: r,
|
|
5477
5478
|
element: D(this),
|
|
5478
5479
|
datum: o
|
|
5479
|
-
}), e.services.events.dispatchEvent(
|
|
5480
|
+
}), e.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
5480
5481
|
event: r
|
|
5481
5482
|
});
|
|
5482
5483
|
}).on("click", function(r, o) {
|
|
5483
|
-
e.services.events.dispatchEvent(
|
|
5484
|
+
e.services.events.dispatchEvent(T.Alluvial.LINE_CLICK, {
|
|
5484
5485
|
event: r,
|
|
5485
5486
|
element: D(this),
|
|
5486
5487
|
datum: o
|
|
5487
5488
|
});
|
|
5488
5489
|
}).on("mouseout", function(r, o) {
|
|
5489
5490
|
const c = D(this);
|
|
5490
|
-
a(this, "mouseout"), c.classed("link-hovered", !1), e.services.events.dispatchEvent(
|
|
5491
|
+
a(this, "mouseout"), c.classed("link-hovered", !1), e.services.events.dispatchEvent(T.Alluvial.LINE_MOUSEOUT, {
|
|
5491
5492
|
event: r,
|
|
5492
5493
|
element: c,
|
|
5493
5494
|
datum: o
|
|
5494
|
-
}), e.services.events.dispatchEvent(
|
|
5495
|
+
}), e.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
5495
5496
|
event: r,
|
|
5496
5497
|
hoveredElement: c
|
|
5497
5498
|
});
|
|
@@ -5525,22 +5526,22 @@ class fm extends dt {
|
|
|
5525
5526
|
const c = t.services.domUtils.generateElementIDString(
|
|
5526
5527
|
`alluvial-node-text-${s.index}`
|
|
5527
5528
|
);
|
|
5528
|
-
t.parent.select(`text#${c}`).style("font-weight", "bold"), e(r, "mouseover"), t.services.events.dispatchEvent(
|
|
5529
|
+
t.parent.select(`text#${c}`).style("font-weight", "bold"), e(r, "mouseover"), t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEOVER, {
|
|
5529
5530
|
event: n,
|
|
5530
5531
|
element: a,
|
|
5531
5532
|
datum: s
|
|
5532
5533
|
});
|
|
5533
5534
|
}
|
|
5534
5535
|
}).on("mousemove", function(n, s) {
|
|
5535
|
-
t.services.events.dispatchEvent(
|
|
5536
|
+
t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEMOVE, {
|
|
5536
5537
|
event: n,
|
|
5537
5538
|
element: D(this),
|
|
5538
5539
|
datum: s
|
|
5539
|
-
}), t.services.events.dispatchEvent(
|
|
5540
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
5540
5541
|
event: n
|
|
5541
5542
|
});
|
|
5542
5543
|
}).on("click", function(n, s) {
|
|
5543
|
-
t.services.events.dispatchEvent(
|
|
5544
|
+
t.services.events.dispatchEvent(T.Alluvial.NODE_CLICK, {
|
|
5544
5545
|
event: n,
|
|
5545
5546
|
element: D(this),
|
|
5546
5547
|
datum: s
|
|
@@ -5556,11 +5557,11 @@ class fm extends dt {
|
|
|
5556
5557
|
const o = t.services.domUtils.generateElementIDString(
|
|
5557
5558
|
`alluvial-node-text-${s.index}`
|
|
5558
5559
|
);
|
|
5559
|
-
t.parent.select(`text#${o}`).style("font-weight", "normal"), e([], "mouseout"), t.services.events.dispatchEvent(
|
|
5560
|
+
t.parent.select(`text#${o}`).style("font-weight", "normal"), e([], "mouseout"), t.services.events.dispatchEvent(T.Alluvial.NODE_MOUSEOUT, {
|
|
5560
5561
|
event: n,
|
|
5561
5562
|
element: a,
|
|
5562
5563
|
datum: s
|
|
5563
|
-
}), t.services.events.dispatchEvent(
|
|
5564
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
5564
5565
|
hoveredElement: a
|
|
5565
5566
|
});
|
|
5566
5567
|
});
|
|
@@ -5701,21 +5702,21 @@ class mm extends dt {
|
|
|
5701
5702
|
}
|
|
5702
5703
|
init() {
|
|
5703
5704
|
const t = this.services.events;
|
|
5704
|
-
t.addEventListener(
|
|
5705
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5705
5706
|
}
|
|
5706
5707
|
render(t = !0) {
|
|
5707
5708
|
const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
|
|
5708
5709
|
let s = [0, 0];
|
|
5709
5710
|
const { cartesianScales: a } = this.services, r = a.getOrientation(), o = Ki().curve(this.services.curves.getD3Curve()).defined((x) => {
|
|
5710
|
-
const
|
|
5711
|
+
const b = a.getRangeIdentifier(), k = x[b];
|
|
5711
5712
|
return k != null;
|
|
5712
5713
|
}), c = this.model.getGroupedData(this.configs.groups), l = O(n, "bounds"), h = l && c && c.length === 1;
|
|
5713
5714
|
!h && l && console.warn(
|
|
5714
5715
|
`Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
|
|
5715
5716
|
);
|
|
5716
5717
|
let d = 0;
|
|
5717
|
-
const u = (x,
|
|
5718
|
-
O(n, "axes", x, "includeZero") === !1 &&
|
|
5718
|
+
const u = (x, b) => {
|
|
5719
|
+
O(n, "axes", x, "includeZero") === !1 && b[0] > 0 && b[1] > 0 && (d = b[0]);
|
|
5719
5720
|
}, p = (x) => h ? a.getBoundedScaledValues(x)[0] : a.getRangeValue(d), f = (x) => h ? a.getBoundedScaledValues(x)[1] : a.getRangeValue(x);
|
|
5720
5721
|
r === Xt.VERTICAL ? (s = a.getMainYScale().domain(), u(a.getMainYAxisPosition(), s), o.x((x) => a.getDomainValue(x)).y0((x) => p(x)).y1((x) => f(x))) : (s = a.getMainXScale().domain(), u(a.getMainXAxisPosition(), s), o.x0((x) => p(x)).x1((x) => f(x)).y((x) => a.getDomainValue(x)));
|
|
5721
5722
|
const g = O(n, "color", "gradient", "enabled"), m = c && c.length === 1 && g;
|
|
@@ -5730,16 +5731,16 @@ class mm extends dt {
|
|
|
5730
5731
|
dataGroupName: c[0].name
|
|
5731
5732
|
})}`
|
|
5732
5733
|
).node();
|
|
5733
|
-
let
|
|
5734
|
+
let b;
|
|
5734
5735
|
if (x)
|
|
5735
|
-
|
|
5736
|
+
b = getComputedStyle(x, null).getPropertyValue(
|
|
5736
5737
|
"stroke"
|
|
5737
5738
|
);
|
|
5738
5739
|
else {
|
|
5739
5740
|
const k = O(this.model.getOptions(), "color", "scale");
|
|
5740
5741
|
if (k !== null) {
|
|
5741
5742
|
const _ = Object.keys(k);
|
|
5742
|
-
|
|
5743
|
+
b = k[_[0]];
|
|
5743
5744
|
}
|
|
5744
5745
|
}
|
|
5745
5746
|
Ca.appendOrUpdateLinearGradient({
|
|
@@ -5751,7 +5752,7 @@ class mm extends dt {
|
|
|
5751
5752
|
x2: "0%",
|
|
5752
5753
|
y1: "0%",
|
|
5753
5754
|
y2: "100%",
|
|
5754
|
-
stops: Ca.getStops(s,
|
|
5755
|
+
stops: Ca.getStops(s, b)
|
|
5755
5756
|
});
|
|
5756
5757
|
} else
|
|
5757
5758
|
this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
|
|
@@ -5771,8 +5772,8 @@ class mm extends dt {
|
|
|
5771
5772
|
originalClassName: "area"
|
|
5772
5773
|
})
|
|
5773
5774
|
).attr("d", (x) => {
|
|
5774
|
-
const { data:
|
|
5775
|
-
return o(
|
|
5775
|
+
const { data: b } = x;
|
|
5776
|
+
return o(b);
|
|
5776
5777
|
}) : (E.attr("opacity", 0).merge(v).attr("class", "area").attr(
|
|
5777
5778
|
"class",
|
|
5778
5779
|
(x) => this.model.getColorClassName({
|
|
@@ -5787,13 +5788,13 @@ class mm extends dt {
|
|
|
5787
5788
|
animate: t
|
|
5788
5789
|
})
|
|
5789
5790
|
).attr("opacity", h ? 1 : ye.opacity.selected).attr("d", (x) => {
|
|
5790
|
-
const { data:
|
|
5791
|
-
return o(
|
|
5791
|
+
const { data: b } = x;
|
|
5792
|
+
return o(b);
|
|
5792
5793
|
}), h && E.attr("fill-opacity", ye.opacity.selected).style("stroke", (x) => y.model.getStrokeColor(x.name, null, x.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
|
|
5793
5794
|
}
|
|
5794
5795
|
destroy() {
|
|
5795
5796
|
const t = this.services.events;
|
|
5796
|
-
t.removeEventListener(
|
|
5797
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5797
5798
|
}
|
|
5798
5799
|
}
|
|
5799
5800
|
class vm extends dt {
|
|
@@ -5817,7 +5818,7 @@ class vm extends dt {
|
|
|
5817
5818
|
}
|
|
5818
5819
|
init() {
|
|
5819
5820
|
const { events: t } = this.services;
|
|
5820
|
-
t.addEventListener(
|
|
5821
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5821
5822
|
}
|
|
5822
5823
|
render(t = !0) {
|
|
5823
5824
|
const e = navigator.userAgent.toLowerCase().indexOf("firefox") > -1, n = this.model.get("zoomDomain") !== void 0, s = e && n ? this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !1 }) : this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), { cartesianScales: a, curves: r } = this.services, o = (v) => a.getDomainValue(v), c = (v) => a.getRangeValue(v), [l, h] = xe(
|
|
@@ -5835,13 +5836,13 @@ class vm extends dt {
|
|
|
5835
5836
|
groups: this.configs.groups,
|
|
5836
5837
|
percentage: v
|
|
5837
5838
|
}).map((E) => {
|
|
5838
|
-
const x = this.services.cartesianScales.getDomainIdentifier(E),
|
|
5839
|
+
const x = this.services.cartesianScales.getDomainIdentifier(E), b = this.services.cartesianScales.getRangeIdentifier(E);
|
|
5839
5840
|
return {
|
|
5840
5841
|
name: O(E, 0, S),
|
|
5841
5842
|
data: E.map((k) => ({
|
|
5842
5843
|
[x]: k.data.sharedStackKey,
|
|
5843
5844
|
[S]: k[S],
|
|
5844
|
-
[
|
|
5845
|
+
[b]: k[1]
|
|
5845
5846
|
})),
|
|
5846
5847
|
hidden: !wc(E, (k) => k[0] !== k[1])
|
|
5847
5848
|
};
|
|
@@ -5867,8 +5868,8 @@ class vm extends dt {
|
|
|
5867
5868
|
if (e && n) {
|
|
5868
5869
|
const v = a.getMainXScale(), S = a.getMainYScale();
|
|
5869
5870
|
if (v && S) {
|
|
5870
|
-
const [y, E] = v.range(), [x,
|
|
5871
|
-
s.style("overflow", "hidden").style("clip", `rect(${
|
|
5871
|
+
const [y, E] = v.range(), [x, b] = S.range();
|
|
5872
|
+
s.style("overflow", "hidden").style("clip", `rect(${b}px, ${E}px, ${x}px, ${y}px)`);
|
|
5872
5873
|
}
|
|
5873
5874
|
}
|
|
5874
5875
|
m.transition().call(
|
|
@@ -5884,7 +5885,7 @@ class vm extends dt {
|
|
|
5884
5885
|
}
|
|
5885
5886
|
destroy() {
|
|
5886
5887
|
const t = this.services.events;
|
|
5887
|
-
t.removeEventListener(
|
|
5888
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
5888
5889
|
}
|
|
5889
5890
|
}
|
|
5890
5891
|
const Rr = 5;
|
|
@@ -5914,7 +5915,7 @@ class qo extends dt {
|
|
|
5914
5915
|
originalData: m
|
|
5915
5916
|
})).filter((m) => np(m.domainValue, h));
|
|
5916
5917
|
if (this.pointsWithinLine && f.length === this.pointsWithinLine.length && f.map((m) => m.domainValue).join() === this.pointsWithinLine.map((m) => m.domainValue).join())
|
|
5917
|
-
return this.pointsWithinLine = f, this.services.events.dispatchEvent(
|
|
5918
|
+
return this.pointsWithinLine = f, this.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
5918
5919
|
mousePosition: [e, n]
|
|
5919
5920
|
});
|
|
5920
5921
|
this.pointsWithinLine = f;
|
|
@@ -5926,15 +5927,15 @@ class qo extends dt {
|
|
|
5926
5927
|
}, []);
|
|
5927
5928
|
if (g.length > 0) {
|
|
5928
5929
|
const m = g.map((E) => E.originalData).filter((E) => {
|
|
5929
|
-
const x = this.services.cartesianScales.getRangeIdentifier(E),
|
|
5930
|
-
return
|
|
5930
|
+
const x = this.services.cartesianScales.getRangeIdentifier(E), b = E[x];
|
|
5931
|
+
return b != null;
|
|
5931
5932
|
}), v = g.map(
|
|
5932
5933
|
(E) => E.domainValue
|
|
5933
5934
|
), S = p.filter((E) => {
|
|
5934
5935
|
const x = this.services.cartesianScales.getDomainValue(E);
|
|
5935
5936
|
return v.includes(x);
|
|
5936
5937
|
});
|
|
5937
|
-
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !co(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(
|
|
5938
|
+
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !co(this.elementsToHighlight, S) && this.hideRuler(), S.dispatch("mouseover"), this.elementsToHighlight = S, this.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
5938
5939
|
event: t,
|
|
5939
5940
|
mousePosition: [e, n],
|
|
5940
5941
|
hoveredElement: u,
|
|
@@ -5947,7 +5948,7 @@ class qo extends dt {
|
|
|
5947
5948
|
}
|
|
5948
5949
|
hideRuler() {
|
|
5949
5950
|
const t = this.parent, e = I.appendOrSelect(t, "g.ruler");
|
|
5950
|
-
t.selectAll("[role=graphics-symbol]").dispatch("mouseout"), this.services.events.dispatchEvent(
|
|
5951
|
+
t.selectAll("[role=graphics-symbol]").dispatch("mouseout"), this.services.events.dispatchEvent(T.Tooltip.HIDE), e.attr("opacity", 0);
|
|
5951
5952
|
}
|
|
5952
5953
|
/**
|
|
5953
5954
|
* Adds the listener on the X grid to trigger multiple point tooltips along the x axis.
|
|
@@ -6030,11 +6031,11 @@ class Qi extends dt {
|
|
|
6030
6031
|
const { events: t } = this.services;
|
|
6031
6032
|
if (!t) throw new Error("Services events are undefined.");
|
|
6032
6033
|
t.addEventListener(
|
|
6033
|
-
|
|
6034
|
+
T.Legend.ITEM_HOVER,
|
|
6034
6035
|
this.handleLegendOnHover
|
|
6035
|
-
), t.addEventListener(
|
|
6036
|
+
), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6036
6037
|
const { fadeInOnChartHolderMouseover: e } = this.configs;
|
|
6037
|
-
e && (t.addEventListener(
|
|
6038
|
+
e && (t.addEventListener(T.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.addEventListener(T.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut));
|
|
6038
6039
|
}
|
|
6039
6040
|
filterBasedOnZoomDomain(t) {
|
|
6040
6041
|
const { cartesianScales: e } = this.services;
|
|
@@ -6160,12 +6161,12 @@ class Qi extends dt {
|
|
|
6160
6161
|
var h;
|
|
6161
6162
|
const l = (h = t.services.cartesianScales) == null ? void 0 : h.getDomainIdentifier(c);
|
|
6162
6163
|
return t.model.getFillColor(c[e], c[l], c);
|
|
6163
|
-
}).classed("unfilled", !1), (r = t.services.events) == null || r.dispatchEvent(
|
|
6164
|
+
}).classed("unfilled", !1), (r = t.services.events) == null || r.dispatchEvent(T.Tooltip.SHOW, {
|
|
6164
6165
|
event: n,
|
|
6165
6166
|
hoveredElement: a,
|
|
6166
6167
|
data: [s],
|
|
6167
6168
|
additionalItems: t.getTooltipAdditionalItems(s)
|
|
6168
|
-
}), (o = t.services.events) == null || o.dispatchEvent(
|
|
6169
|
+
}), (o = t.services.events) == null || o.dispatchEvent(T.Scatter.SCATTER_MOUSEOVER, {
|
|
6169
6170
|
event: n,
|
|
6170
6171
|
element: a,
|
|
6171
6172
|
datum: s
|
|
@@ -6173,16 +6174,16 @@ class Qi extends dt {
|
|
|
6173
6174
|
}).on("mousemove", function(n, s) {
|
|
6174
6175
|
var r, o;
|
|
6175
6176
|
const a = D(this);
|
|
6176
|
-
(r = t.services.events) == null || r.dispatchEvent(
|
|
6177
|
+
(r = t.services.events) == null || r.dispatchEvent(T.Scatter.SCATTER_MOUSEMOVE, {
|
|
6177
6178
|
event: n,
|
|
6178
6179
|
element: a,
|
|
6179
6180
|
datum: s
|
|
6180
|
-
}), (o = t.services.events) == null || o.dispatchEvent(
|
|
6181
|
+
}), (o = t.services.events) == null || o.dispatchEvent(T.Tooltip.MOVE, {
|
|
6181
6182
|
event: n
|
|
6182
6183
|
});
|
|
6183
6184
|
}).on("click", function(n, s) {
|
|
6184
6185
|
var a;
|
|
6185
|
-
(a = t.services.events) == null || a.dispatchEvent(
|
|
6186
|
+
(a = t.services.events) == null || a.dispatchEvent(T.Scatter.SCATTER_CLICK, {
|
|
6186
6187
|
event: n,
|
|
6187
6188
|
element: D(this),
|
|
6188
6189
|
datum: s
|
|
@@ -6199,11 +6200,11 @@ class Qi extends dt {
|
|
|
6199
6200
|
);
|
|
6200
6201
|
a.classed("unfilled", !d).style("fill", (u) => d || l ? t.model.getFillColor(u[e], u[h], u) : null);
|
|
6201
6202
|
}
|
|
6202
|
-
(o = t.services.events) == null || o.dispatchEvent(
|
|
6203
|
+
(o = t.services.events) == null || o.dispatchEvent(T.Scatter.SCATTER_MOUSEOUT, {
|
|
6203
6204
|
event: n,
|
|
6204
6205
|
element: a,
|
|
6205
6206
|
datum: s
|
|
6206
|
-
}), (c = t.services.events) == null || c.dispatchEvent(
|
|
6207
|
+
}), (c = t.services.events) == null || c.dispatchEvent(T.Tooltip.HIDE, {
|
|
6207
6208
|
hoveredElement: a
|
|
6208
6209
|
});
|
|
6209
6210
|
});
|
|
@@ -6214,9 +6215,9 @@ class Qi extends dt {
|
|
|
6214
6215
|
const { events: t } = this.services;
|
|
6215
6216
|
if (!t) throw new Error("Services events undefined");
|
|
6216
6217
|
t.removeEventListener(
|
|
6217
|
-
|
|
6218
|
+
T.Legend.ITEM_HOVER,
|
|
6218
6219
|
this.handleLegendOnHover
|
|
6219
|
-
), t.removeEventListener(
|
|
6220
|
+
), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(T.Chart.MOUSEOVER, this.handleChartHolderOnHover), t.removeEventListener(T.Chart.MOUSEOUT, this.handleChartHolderOnMouseOut);
|
|
6220
6221
|
}
|
|
6221
6222
|
}
|
|
6222
6223
|
class jo extends dt {
|
|
@@ -6262,14 +6263,14 @@ class jo extends dt {
|
|
|
6262
6263
|
f.attr("aria-hidden", !0);
|
|
6263
6264
|
return;
|
|
6264
6265
|
}
|
|
6265
|
-
const E = O(m, "scaleType"), x = O(n, "data", "loading"),
|
|
6266
|
+
const E = O(m, "scaleType"), x = O(n, "data", "loading"), b = O(m, "ticks", "number"), k = O(m, "ticks", "values"), _ = O(m, "truncation", "type"), G = O(m, "truncation", "threshold"), R = O(m, "truncation", "numCharacter"), A = b !== null, H = O(n, "timeScale"), N = I.appendOrSelect(g, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
|
|
6266
6267
|
useBBox: !0
|
|
6267
6268
|
}).height;
|
|
6268
6269
|
N.remove();
|
|
6269
6270
|
const P = this.scaleType || m.scaleType || kt.LINEAR, $ = u(d).tickSizeOuter(0);
|
|
6270
6271
|
if (d.ticks) {
|
|
6271
6272
|
let Y;
|
|
6272
|
-
if (A ? Y =
|
|
6273
|
+
if (A ? Y = b : (Y = Ke.ticks.number, S && (Y = this.getNumberOfFittingTicks(
|
|
6273
6274
|
o,
|
|
6274
6275
|
L,
|
|
6275
6276
|
Ke.ticks.verticalSpaceRatio
|
|
@@ -6345,7 +6346,7 @@ class jo extends dt {
|
|
|
6345
6346
|
let ot;
|
|
6346
6347
|
switch (e) {
|
|
6347
6348
|
case J.LEFT:
|
|
6348
|
-
K ===
|
|
6349
|
+
K === Ta.RIGHT ? Y.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : Y.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
6349
6350
|
break;
|
|
6350
6351
|
case J.BOTTOM:
|
|
6351
6352
|
Y.attr(
|
|
@@ -6354,7 +6355,7 @@ class jo extends dt {
|
|
|
6354
6355
|
).style("text-anchor", "middle");
|
|
6355
6356
|
break;
|
|
6356
6357
|
case J.RIGHT:
|
|
6357
|
-
K ===
|
|
6358
|
+
K === Ta.LEFT ? Y.attr("transform", "rotate(-90)").attr("y", r).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : Y.attr("transform", "rotate(90)").attr("y", -r).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
6358
6359
|
break;
|
|
6359
6360
|
case J.TOP:
|
|
6360
6361
|
ot = I.getSVGElementSize(Y, {
|
|
@@ -6436,35 +6437,35 @@ class jo extends dt {
|
|
|
6436
6437
|
addEventListeners() {
|
|
6437
6438
|
const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
|
|
6438
6439
|
n.selectAll("g.tick text").on("mouseover", function(l, h) {
|
|
6439
|
-
c.services.events.dispatchEvent(
|
|
6440
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
|
|
6440
6441
|
event: l,
|
|
6441
6442
|
element: D(this),
|
|
6442
6443
|
datum: h
|
|
6443
|
-
}), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(
|
|
6444
|
+
}), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
6444
6445
|
event: l,
|
|
6445
6446
|
hoveredElement: D(this),
|
|
6446
6447
|
content: h
|
|
6447
6448
|
});
|
|
6448
6449
|
}).on("mousemove", function(l, h) {
|
|
6449
|
-
c.services.events.dispatchEvent(
|
|
6450
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEMOVE, {
|
|
6450
6451
|
event: l,
|
|
6451
6452
|
element: D(this),
|
|
6452
6453
|
datum: h
|
|
6453
|
-
}), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(
|
|
6454
|
+
}), r === kt.LABELS && h.length > o && c.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
6454
6455
|
event: l
|
|
6455
6456
|
});
|
|
6456
6457
|
}).on("click", function(l, h) {
|
|
6457
|
-
c.services.events.dispatchEvent(
|
|
6458
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_CLICK, {
|
|
6458
6459
|
event: l,
|
|
6459
6460
|
element: D(this),
|
|
6460
6461
|
datum: h
|
|
6461
6462
|
});
|
|
6462
6463
|
}).on("mouseout", function(l, h) {
|
|
6463
|
-
c.services.events.dispatchEvent(
|
|
6464
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOUT, {
|
|
6464
6465
|
event: l,
|
|
6465
6466
|
element: D(this),
|
|
6466
6467
|
datum: h
|
|
6467
|
-
}), r === kt.LABELS && c.services.events.dispatchEvent(
|
|
6468
|
+
}), r === kt.LABELS && c.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
6468
6469
|
});
|
|
6469
6470
|
}
|
|
6470
6471
|
getInvisibleAxisRef() {
|
|
@@ -6521,36 +6522,36 @@ class sp extends jo {
|
|
|
6521
6522
|
const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
|
|
6522
6523
|
n.selectAll("g.tick.tick-hover").on("mouseover", function(l) {
|
|
6523
6524
|
const h = D(this).select("text"), d = h.datum();
|
|
6524
|
-
c.services.events.dispatchEvent(
|
|
6525
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
|
|
6525
6526
|
event: l,
|
|
6526
6527
|
element: h,
|
|
6527
6528
|
datum: d
|
|
6528
|
-
}), r === kt.LABELS && d.length > o && c.services.events.dispatchEvent(
|
|
6529
|
+
}), r === kt.LABELS && d.length > o && c.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
6529
6530
|
event: l,
|
|
6530
6531
|
element: h,
|
|
6531
6532
|
datum: d
|
|
6532
6533
|
});
|
|
6533
6534
|
}).on("mousemove", function(l) {
|
|
6534
6535
|
const h = D(this).select("text"), d = h.datum();
|
|
6535
|
-
c.services.events.dispatchEvent(
|
|
6536
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEMOVE, {
|
|
6536
6537
|
event: l,
|
|
6537
6538
|
element: h,
|
|
6538
6539
|
datum: d
|
|
6539
|
-
}), c.services.events.dispatchEvent(
|
|
6540
|
+
}), c.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
6540
6541
|
event: l
|
|
6541
6542
|
});
|
|
6542
6543
|
}).on("click", function(l) {
|
|
6543
|
-
c.services.events.dispatchEvent(
|
|
6544
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_CLICK, {
|
|
6544
6545
|
event: l,
|
|
6545
6546
|
element: D(this).select("text"),
|
|
6546
6547
|
datum: D(this).select("text").datum()
|
|
6547
6548
|
});
|
|
6548
6549
|
}).on("mouseout", function(l) {
|
|
6549
|
-
c.services.events.dispatchEvent(
|
|
6550
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOUT, {
|
|
6550
6551
|
event: l,
|
|
6551
6552
|
element: D(this).select("text"),
|
|
6552
6553
|
datum: D(this).select("text").datum()
|
|
6553
|
-
}), r === kt.LABELS && c.services.events.dispatchEvent(
|
|
6554
|
+
}), r === kt.LABELS && c.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
6554
6555
|
}).on("focus", function(l) {
|
|
6555
6556
|
const h = { clientX: 0, clientY: 0 };
|
|
6556
6557
|
if (l.target) {
|
|
@@ -6558,19 +6559,19 @@ class sp extends jo {
|
|
|
6558
6559
|
const d = l.target.getBoundingClientRect();
|
|
6559
6560
|
h.clientX = d.x, h.clientY = d.y;
|
|
6560
6561
|
}
|
|
6561
|
-
c.services.events.dispatchEvent(
|
|
6562
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_FOCUS, {
|
|
6562
6563
|
event: { ...l, ...h },
|
|
6563
6564
|
element: D(this),
|
|
6564
6565
|
datum: D(this).select("text").datum()
|
|
6565
6566
|
});
|
|
6566
6567
|
}).on("blur", function(l) {
|
|
6567
|
-
c.services.events.dispatchEvent(
|
|
6568
|
+
c.services.events.dispatchEvent(T.Axis.LABEL_BLUR, {
|
|
6568
6569
|
event: l,
|
|
6569
6570
|
element: D(this),
|
|
6570
6571
|
datum: D(this).select("text").datum()
|
|
6571
6572
|
});
|
|
6572
6573
|
}).on("keydown", function(l) {
|
|
6573
|
-
l.key && l.key === "Escape" && (c.services.events.dispatchEvent(
|
|
6574
|
+
l.key && l.key === "Escape" && (c.services.events.dispatchEvent(T.Tooltip.HIDE), c.services.events.dispatchEvent(T.Axis.LABEL_BLUR, {
|
|
6574
6575
|
event: l,
|
|
6575
6576
|
element: D(this),
|
|
6576
6577
|
datum: D(this).select("text").datum()
|
|
@@ -6636,9 +6637,9 @@ class ym extends dt {
|
|
|
6636
6637
|
a.right = d + p;
|
|
6637
6638
|
break;
|
|
6638
6639
|
}
|
|
6639
|
-
}), this.services.events.dispatchEvent(
|
|
6640
|
+
}), this.services.events.dispatchEvent(T.Axis.RENDER_COMPLETE), Object.keys(a).some(
|
|
6640
6641
|
(o) => this.margins[o] !== a[o]
|
|
6641
|
-
) && (this.margins = Object.assign(this.margins, a), this.model.set({ axesMargins: this.margins }, { skipUpdate: !0 }), this.services.events.dispatchEvent(
|
|
6642
|
+
) && (this.margins = Object.assign(this.margins, a), this.model.set({ axesMargins: this.margins }, { skipUpdate: !0 }), this.services.events.dispatchEvent(T.ZoomBar.UPDATE), Object.keys(this.children).forEach((o) => {
|
|
6642
6643
|
const c = this.children[o];
|
|
6643
6644
|
c.margins = this.margins;
|
|
6644
6645
|
}), this.render(!0));
|
|
@@ -6767,10 +6768,10 @@ class Em extends dt {
|
|
|
6767
6768
|
(A) => this.services.cartesianScales.getDomainValue(A),
|
|
6768
6769
|
(A) => this.services.cartesianScales.getRangeValue(A),
|
|
6769
6770
|
g
|
|
6770
|
-
), y = Math.floor((m ? u : p) / a.length), E = Math.min(y / 2, 16), x = this.model.getBoxplotData(),
|
|
6771
|
-
|
|
6772
|
-
const k =
|
|
6773
|
-
k.append("path").merge(
|
|
6771
|
+
), y = Math.floor((m ? u : p) / a.length), E = Math.min(y / 2, 16), x = this.model.getBoxplotData(), b = e.selectAll(".box-group").data(x);
|
|
6772
|
+
b.exit().remove();
|
|
6773
|
+
const k = b.enter().append("g").attr("class", "box-group"), _ = b.merge(k);
|
|
6774
|
+
k.append("path").merge(b.select("path.vertical-line.start")).attr(
|
|
6774
6775
|
"class",
|
|
6775
6776
|
() => this.model.getColorClassName({
|
|
6776
6777
|
classNameTypes: [nt.STROKE],
|
|
@@ -6785,7 +6786,7 @@ class Em extends dt {
|
|
|
6785
6786
|
).attr("d", (A) => {
|
|
6786
6787
|
const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.quartiles.q_25);
|
|
6787
6788
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
|
|
6788
|
-
}), k.append("path").merge(
|
|
6789
|
+
}), k.append("path").merge(b.select("path.vertical-line.end")).attr(
|
|
6789
6790
|
"class",
|
|
6790
6791
|
() => this.model.getColorClassName({
|
|
6791
6792
|
classNameTypes: [nt.STROKE],
|
|
@@ -6800,7 +6801,7 @@ class Em extends dt {
|
|
|
6800
6801
|
).attr("d", (A) => {
|
|
6801
6802
|
const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.quartiles.q_75);
|
|
6802
6803
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
|
|
6803
|
-
}), k.append("path").merge(
|
|
6804
|
+
}), k.append("path").merge(b.select("path.box")).attr(
|
|
6804
6805
|
"class",
|
|
6805
6806
|
() => this.model.getColorClassName({
|
|
6806
6807
|
classNameTypes: [nt.FILL, nt.STROKE],
|
|
@@ -6819,10 +6820,10 @@ class Em extends dt {
|
|
|
6819
6820
|
f.getRangeValue(A.quartiles.q_75) - f.getRangeValue(A.quartiles.q_25)
|
|
6820
6821
|
);
|
|
6821
6822
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
|
|
6822
|
-
}), k.append("path").merge(
|
|
6823
|
+
}), k.append("path").merge(b.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
|
|
6823
6824
|
const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.max);
|
|
6824
6825
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
|
|
6825
|
-
}), k.append("path").merge(
|
|
6826
|
+
}), k.append("path").merge(b.select("path.whisker.start")).attr(
|
|
6826
6827
|
"class",
|
|
6827
6828
|
() => this.model.getColorClassName({
|
|
6828
6829
|
classNameTypes: [nt.STROKE],
|
|
@@ -6837,7 +6838,7 @@ class Em extends dt {
|
|
|
6837
6838
|
).attr("d", (A) => {
|
|
6838
6839
|
const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.min);
|
|
6839
6840
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
|
|
6840
|
-
}), k.append("path").merge(
|
|
6841
|
+
}), k.append("path").merge(b.select("path.median")).attr("fill", "none").attr(
|
|
6841
6842
|
"class",
|
|
6842
6843
|
() => this.model.getColorClassName({
|
|
6843
6844
|
classNameTypes: [nt.STROKE],
|
|
@@ -6852,7 +6853,7 @@ class Em extends dt {
|
|
|
6852
6853
|
).attr("d", (A) => {
|
|
6853
6854
|
const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.quartiles.q_50);
|
|
6854
6855
|
return Gt({ x0: H, x1: N, y0: M, y1: M }, g);
|
|
6855
|
-
}), k.append("path").merge(
|
|
6856
|
+
}), k.append("path").merge(b.select("path.whisker.end")).attr(
|
|
6856
6857
|
"class",
|
|
6857
6858
|
() => this.model.getColorClassName({
|
|
6858
6859
|
classNameTypes: [nt.STROKE],
|
|
@@ -6896,7 +6897,7 @@ class Em extends dt {
|
|
|
6896
6897
|
const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data;
|
|
6897
6898
|
this.parent.selectAll("path.highlight-area").on("mouseover", function(s, a) {
|
|
6898
6899
|
const r = D(this);
|
|
6899
|
-
D(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", qt.box.opacity.hovered), t.services.events.dispatchEvent(
|
|
6900
|
+
D(this.parentNode).select("path.box").classed("hovered", !0).attr("fill-opacity", qt.box.opacity.hovered), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
6900
6901
|
event: s,
|
|
6901
6902
|
hoveredElement: r,
|
|
6902
6903
|
items: [
|
|
@@ -6932,33 +6933,33 @@ class Em extends dt {
|
|
|
6932
6933
|
value: a.quartiles.q_75 - a.quartiles.q_25
|
|
6933
6934
|
}
|
|
6934
6935
|
]
|
|
6935
|
-
}), t.services.events.dispatchEvent(
|
|
6936
|
+
}), t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEOVER, {
|
|
6936
6937
|
event: s,
|
|
6937
6938
|
element: r,
|
|
6938
6939
|
datum: a
|
|
6939
6940
|
});
|
|
6940
6941
|
}).on("mousemove", function(s, a) {
|
|
6941
6942
|
const r = D(this);
|
|
6942
|
-
t.services.events.dispatchEvent(
|
|
6943
|
+
t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEMOVE, {
|
|
6943
6944
|
event: s,
|
|
6944
6945
|
element: r,
|
|
6945
6946
|
datum: a
|
|
6946
|
-
}), t.services.events.dispatchEvent(
|
|
6947
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
6947
6948
|
event: s
|
|
6948
6949
|
});
|
|
6949
6950
|
}).on("click", function(s, a) {
|
|
6950
|
-
t.services.events.dispatchEvent(
|
|
6951
|
+
t.services.events.dispatchEvent(T.Boxplot.BOX_CLICK, {
|
|
6951
6952
|
event: s,
|
|
6952
6953
|
element: D(this),
|
|
6953
6954
|
datum: a
|
|
6954
6955
|
});
|
|
6955
6956
|
}).on("mouseout", function(s, a) {
|
|
6956
6957
|
const r = D(this);
|
|
6957
|
-
D(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", qt.box.opacity.default), t.services.events.dispatchEvent(
|
|
6958
|
+
D(this.parentNode).select("path.box").classed("hovered", !1).attr("fill-opacity", qt.box.opacity.default), t.services.events.dispatchEvent(T.Boxplot.BOX_MOUSEOUT, {
|
|
6958
6959
|
event: s,
|
|
6959
6960
|
element: r,
|
|
6960
6961
|
datum: a
|
|
6961
|
-
}), t.services.events.dispatchEvent(
|
|
6962
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
6962
6963
|
hoveredElement: r
|
|
6963
6964
|
});
|
|
6964
6965
|
});
|
|
@@ -6967,7 +6968,7 @@ class Em extends dt {
|
|
|
6967
6968
|
const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier();
|
|
6968
6969
|
this.parent.selectAll("circle").on("mouseover", function(a, r) {
|
|
6969
6970
|
const o = D(this);
|
|
6970
|
-
o.classed("hovered", !0).attr("fill-opacity", qt.circle.opacity.hovered).classed("unfilled", !1), t.services.events.dispatchEvent(
|
|
6971
|
+
o.classed("hovered", !0).attr("fill-opacity", qt.circle.opacity.hovered).classed("unfilled", !1), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
6971
6972
|
event: a,
|
|
6972
6973
|
hoveredElement: o,
|
|
6973
6974
|
items: [
|
|
@@ -6983,33 +6984,33 @@ class Em extends dt {
|
|
|
6983
6984
|
value: r[s]
|
|
6984
6985
|
}
|
|
6985
6986
|
]
|
|
6986
|
-
}), t.services.events.dispatchEvent(
|
|
6987
|
+
}), t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEOVER, {
|
|
6987
6988
|
event: a,
|
|
6988
6989
|
element: o,
|
|
6989
6990
|
datum: r
|
|
6990
6991
|
});
|
|
6991
6992
|
}).on("mousemove", function(a, r) {
|
|
6992
6993
|
const o = D(this);
|
|
6993
|
-
t.services.events.dispatchEvent(
|
|
6994
|
+
t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEMOVE, {
|
|
6994
6995
|
event: a,
|
|
6995
6996
|
element: o,
|
|
6996
6997
|
datum: r
|
|
6997
|
-
}), t.services.events.dispatchEvent(
|
|
6998
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
6998
6999
|
event: a
|
|
6999
7000
|
});
|
|
7000
7001
|
}).on("click", function(a, r) {
|
|
7001
|
-
t.services.events.dispatchEvent(
|
|
7002
|
+
t.services.events.dispatchEvent(T.Boxplot.OUTLIER_CLICK, {
|
|
7002
7003
|
event: a,
|
|
7003
7004
|
element: D(this),
|
|
7004
7005
|
datum: r
|
|
7005
7006
|
});
|
|
7006
7007
|
}).on("mouseout", function(a, r) {
|
|
7007
7008
|
const o = D(this);
|
|
7008
|
-
o.classed("hovered", !1).attr("fill-opacity", qt.circle.opacity.default), t.services.events.dispatchEvent(
|
|
7009
|
+
o.classed("hovered", !1).attr("fill-opacity", qt.circle.opacity.default), t.services.events.dispatchEvent(T.Boxplot.OUTLIER_MOUSEOUT, {
|
|
7009
7010
|
event: a,
|
|
7010
7011
|
element: o,
|
|
7011
7012
|
datum: r
|
|
7012
|
-
}), t.services.events.dispatchEvent(
|
|
7013
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
7013
7014
|
hoveredElement: o
|
|
7014
7015
|
});
|
|
7015
7016
|
});
|
|
@@ -7098,7 +7099,7 @@ class Sm extends Qi {
|
|
|
7098
7099
|
];
|
|
7099
7100
|
}
|
|
7100
7101
|
}
|
|
7101
|
-
class
|
|
7102
|
+
class bm extends dt {
|
|
7102
7103
|
constructor() {
|
|
7103
7104
|
super(...arguments), this.type = "bullet", this.renderType = at.SVG, this.handleLegendOnHover = (t) => {
|
|
7104
7105
|
const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
@@ -7119,7 +7120,7 @@ class Tm extends dt {
|
|
|
7119
7120
|
}
|
|
7120
7121
|
init() {
|
|
7121
7122
|
const t = this.services.events;
|
|
7122
|
-
t.addEventListener(
|
|
7123
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7123
7124
|
}
|
|
7124
7125
|
render(t) {
|
|
7125
7126
|
const e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.getComponentContainer({ ariaLabel: "bullet graphs", withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), r = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [c, l] = r.range(), [, h] = r.domain(), d = () => {
|
|
@@ -7144,9 +7145,9 @@ class Tm extends dt {
|
|
|
7144
7145
|
animate: t
|
|
7145
7146
|
})
|
|
7146
7147
|
).attr("d", (S) => {
|
|
7147
|
-
let E, x,
|
|
7148
|
-
return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16,
|
|
7149
|
-
{ x0: E, x1: x, y0:
|
|
7148
|
+
let E, x, b, k;
|
|
7149
|
+
return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, b = l - 2, k = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, b = this.services.cartesianScales.getRangeValue(S.value), k = l), Gt(
|
|
7150
|
+
{ x0: E, x1: x, y0: b, y1: k },
|
|
7150
7151
|
this.services.cartesianScales.getOrientation()
|
|
7151
7152
|
);
|
|
7152
7153
|
}).attr("opacity", 1);
|
|
@@ -7169,9 +7170,9 @@ class Tm extends dt {
|
|
|
7169
7170
|
const S = this.services.cartesianScales.getDomainIdentifier(v);
|
|
7170
7171
|
return this.model.getFillColor(v[n], v[S], v);
|
|
7171
7172
|
}).attr("d", (v) => {
|
|
7172
|
-
const y = this.services.cartesianScales.getDomainValue(v) - 4, E = y + 8, x = this.services.cartesianScales.getRangeValue(0) + 1,
|
|
7173
|
+
const y = this.services.cartesianScales.getDomainValue(v) - 4, E = y + 8, x = this.services.cartesianScales.getRangeValue(0) + 1, b = this.services.cartesianScales.getRangeValue(v);
|
|
7173
7174
|
return Gt(
|
|
7174
|
-
{ x0: y, x1: E, y0: x, y1:
|
|
7175
|
+
{ x0: y, x1: E, y0: x, y1: b },
|
|
7175
7176
|
this.services.cartesianScales.getOrientation()
|
|
7176
7177
|
);
|
|
7177
7178
|
}).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (v) => v.value);
|
|
@@ -7213,9 +7214,9 @@ class Tm extends dt {
|
|
|
7213
7214
|
).attr("d", ({ datum: S, value: y }) => {
|
|
7214
7215
|
let E = 4;
|
|
7215
7216
|
S.ranges && S.ranges.indexOf(y) !== -1 && (E = 8);
|
|
7216
|
-
const x = this.services.cartesianScales.getDomainValue(S) - E / 2,
|
|
7217
|
+
const x = this.services.cartesianScales.getDomainValue(S) - E / 2, b = x + E, k = this.services.cartesianScales.getRangeValue(y);
|
|
7217
7218
|
return Gt(
|
|
7218
|
-
{ x0: x, x1:
|
|
7219
|
+
{ x0: x, x1: b, y0: k, y1: k },
|
|
7219
7220
|
this.services.cartesianScales.getOrientation()
|
|
7220
7221
|
);
|
|
7221
7222
|
}).attr("opacity", 1);
|
|
@@ -7226,13 +7227,13 @@ class Tm extends dt {
|
|
|
7226
7227
|
const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier(), { code: a, number: r } = O(e, "locale");
|
|
7227
7228
|
this.parent.selectAll("path.bar").on("mouseover", function(o, c) {
|
|
7228
7229
|
const l = D(this);
|
|
7229
|
-
l.classed("hovered", !0), t.services.events.dispatchEvent(
|
|
7230
|
+
l.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
|
|
7230
7231
|
event: o,
|
|
7231
7232
|
element: l,
|
|
7232
7233
|
datum: c
|
|
7233
7234
|
});
|
|
7234
7235
|
const h = O(e, "bullet", "performanceAreaTitles"), d = t.model.getMatchingRangeIndexForDatapoint(c);
|
|
7235
|
-
t.services.events.dispatchEvent(
|
|
7236
|
+
t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
7236
7237
|
event: o,
|
|
7237
7238
|
hoveredElement: l,
|
|
7238
7239
|
items: [
|
|
@@ -7263,26 +7264,26 @@ class Tm extends dt {
|
|
|
7263
7264
|
]
|
|
7264
7265
|
});
|
|
7265
7266
|
}).on("mousemove", function(o, c) {
|
|
7266
|
-
t.services.events.dispatchEvent(
|
|
7267
|
+
t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
|
|
7267
7268
|
event: o,
|
|
7268
7269
|
element: D(this),
|
|
7269
7270
|
datum: c
|
|
7270
|
-
}), t.services.events.dispatchEvent(
|
|
7271
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
7271
7272
|
event: o
|
|
7272
7273
|
});
|
|
7273
7274
|
}).on("click", function(o, c) {
|
|
7274
|
-
t.services.events.dispatchEvent(
|
|
7275
|
+
t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
|
|
7275
7276
|
event: o,
|
|
7276
7277
|
element: D(this),
|
|
7277
7278
|
datum: c
|
|
7278
7279
|
});
|
|
7279
7280
|
}).on("mouseout", function(o, c) {
|
|
7280
7281
|
const l = D(this);
|
|
7281
|
-
l.classed("hovered", !1), t.services.events.dispatchEvent(
|
|
7282
|
+
l.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
|
|
7282
7283
|
event: o,
|
|
7283
7284
|
element: l,
|
|
7284
7285
|
datum: c
|
|
7285
|
-
}), t.services.events.dispatchEvent(
|
|
7286
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
7286
7287
|
hoveredElement: l
|
|
7287
7288
|
});
|
|
7288
7289
|
});
|
|
@@ -7290,7 +7291,7 @@ class Tm extends dt {
|
|
|
7290
7291
|
destroy() {
|
|
7291
7292
|
this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
7292
7293
|
const t = this.services.events;
|
|
7293
|
-
t.removeEventListener(
|
|
7294
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7294
7295
|
}
|
|
7295
7296
|
}
|
|
7296
7297
|
function ap(i) {
|
|
@@ -7478,7 +7479,7 @@ function dp(i, t) {
|
|
|
7478
7479
|
})
|
|
7479
7480
|
};
|
|
7480
7481
|
}
|
|
7481
|
-
class
|
|
7482
|
+
class Tm extends qo {
|
|
7482
7483
|
constructor() {
|
|
7483
7484
|
super(...arguments), this.type = "ruler-binned", this.renderType = at.SVG;
|
|
7484
7485
|
}
|
|
@@ -7500,7 +7501,7 @@ class bm extends qo {
|
|
|
7500
7501
|
})
|
|
7501
7502
|
})).filter((k) => k.value !== 0);
|
|
7502
7503
|
if (x.length > 0) {
|
|
7503
|
-
this.services.events.dispatchEvent(
|
|
7504
|
+
this.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
7504
7505
|
event: t,
|
|
7505
7506
|
mousePosition: [e, n],
|
|
7506
7507
|
hoveredElement: f,
|
|
@@ -7594,7 +7595,7 @@ class Dm extends Dd {
|
|
|
7594
7595
|
}, this.chartType = n.chartType;
|
|
7595
7596
|
}
|
|
7596
7597
|
init() {
|
|
7597
|
-
this.chartType === "heatmap" && this.services.events.addEventListener(
|
|
7598
|
+
this.chartType === "heatmap" && this.services.events.addEventListener(T.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
7598
7599
|
}
|
|
7599
7600
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7600
7601
|
// @ts-ignore
|
|
@@ -7627,8 +7628,8 @@ class Dm extends Dd {
|
|
|
7627
7628
|
v.push(
|
|
7628
7629
|
r === Vs.LINEAR ? `stop-color-${m}-${o}-${R}` : `fill-${m}-${o}-${R}`
|
|
7629
7630
|
);
|
|
7630
|
-
const y = Xr(d[0], d[1]), E = Hc(y, 3), x = Re().domain(d).range([0, p]),
|
|
7631
|
-
|
|
7631
|
+
const y = Xr(d[0], d[1]), E = Hc(y, 3), x = Re().domain(d).range([0, p]), b = Fi(x).tickSize(0).tickValues(E), { code: k, number: _ } = O(e, "locale");
|
|
7632
|
+
b.tickFormat((R) => _(R, k));
|
|
7632
7633
|
let G;
|
|
7633
7634
|
switch (r) {
|
|
7634
7635
|
case Vs.LINEAR:
|
|
@@ -7646,7 +7647,7 @@ class Dm extends Dd {
|
|
|
7646
7647
|
default:
|
|
7647
7648
|
throw Error("Entered color legend type is not supported.");
|
|
7648
7649
|
}
|
|
7649
|
-
g.attr("transform", `translate(0,${Mt.color.axisYTranslation})`).call(
|
|
7650
|
+
g.attr("transform", `translate(0,${Mt.color.axisYTranslation})`).call(b), g.select(".domain").remove(), g.select("g.tick:last-of-type text").style("text-anchor", u ? "middle" : "end"), g.select("g.tick:first-of-type text").style(
|
|
7650
7651
|
"text-anchor",
|
|
7651
7652
|
u && this.chartType !== "choropleth" ? "middle" : "start"
|
|
7652
7653
|
);
|
|
@@ -7666,7 +7667,7 @@ class Dm extends Dd {
|
|
|
7666
7667
|
return I.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(r.domain()).join("rect").attr("x", (c) => r(c)).attr("y", 0).attr("width", Math.max(0, r.bandwidth() - 1)).attr("height", Mt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? r.bandwidth() - 1 : 0;
|
|
7667
7668
|
}
|
|
7668
7669
|
destroy() {
|
|
7669
|
-
this.chartType === "heatmap" && this.services.events.removeEventListener(
|
|
7670
|
+
this.chartType === "heatmap" && this.services.events.removeEventListener(T.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
7670
7671
|
}
|
|
7671
7672
|
}
|
|
7672
7673
|
class Nm extends Rd {
|
|
@@ -7866,7 +7867,7 @@ class Pm extends dt {
|
|
|
7866
7867
|
}
|
|
7867
7868
|
addLegendListeners() {
|
|
7868
7869
|
const { events: t } = this.services;
|
|
7869
|
-
t.addEventListener(
|
|
7870
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7870
7871
|
}
|
|
7871
7872
|
removeBackgroundListeners() {
|
|
7872
7873
|
D(this.services.domUtils.getMainContainer()).on("click", () => null);
|
|
@@ -7918,7 +7919,7 @@ class Pm extends dt {
|
|
|
7918
7919
|
} else
|
|
7919
7920
|
d = n.value;
|
|
7920
7921
|
const u = getComputedStyle(this, null).getPropertyValue("fill");
|
|
7921
|
-
t.services.events.dispatchEvent(
|
|
7922
|
+
t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
7922
7923
|
event: e,
|
|
7923
7924
|
hoveredElement: s,
|
|
7924
7925
|
items: [
|
|
@@ -7933,27 +7934,27 @@ class Pm extends dt {
|
|
|
7933
7934
|
]
|
|
7934
7935
|
});
|
|
7935
7936
|
}
|
|
7936
|
-
t.services.events.dispatchEvent(
|
|
7937
|
+
t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEOVER, {
|
|
7937
7938
|
event: e,
|
|
7938
7939
|
element: s,
|
|
7939
7940
|
datum: n
|
|
7940
7941
|
});
|
|
7941
7942
|
}).on("mousemove", function(e, n) {
|
|
7942
7943
|
const s = D(this);
|
|
7943
|
-
t.services.events.dispatchEvent(
|
|
7944
|
+
t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEMOVE, {
|
|
7944
7945
|
event: e,
|
|
7945
7946
|
element: s,
|
|
7946
7947
|
datum: n
|
|
7947
|
-
}), t.services.events.dispatchEvent(
|
|
7948
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
7948
7949
|
event: e
|
|
7949
7950
|
});
|
|
7950
7951
|
}).on("mouseout", function(e, n) {
|
|
7951
7952
|
const s = D(this);
|
|
7952
|
-
s.classed("hovered", !1), n.children && t.unhighlightChildren(n.children), t.services.events.dispatchEvent(
|
|
7953
|
+
s.classed("hovered", !1), n.children && t.unhighlightChildren(n.children), t.services.events.dispatchEvent(T.CirclePack.CIRCLE_MOUSEOUT, {
|
|
7953
7954
|
event: e,
|
|
7954
7955
|
element: s,
|
|
7955
7956
|
datum: n
|
|
7956
|
-
}), t.services.events.dispatchEvent(
|
|
7957
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
7957
7958
|
hoveredElement: s
|
|
7958
7959
|
});
|
|
7959
7960
|
}).on("click", function(e, n) {
|
|
@@ -7965,7 +7966,7 @@ class Pm extends dt {
|
|
|
7965
7966
|
const o = t.parent.selectAll("circle.node");
|
|
7966
7967
|
D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Hn), e.stopPropagation();
|
|
7967
7968
|
}
|
|
7968
|
-
t.services.events.dispatchEvent(
|
|
7969
|
+
t.services.events.dispatchEvent(T.CirclePack.CIRCLE_CLICK, {
|
|
7969
7970
|
event: e,
|
|
7970
7971
|
element: s,
|
|
7971
7972
|
datum: n
|
|
@@ -7975,7 +7976,7 @@ class Pm extends dt {
|
|
|
7975
7976
|
destroy() {
|
|
7976
7977
|
this.parent.selectAll("circle.node").on("mouseover", null).on("mousemove", null).on("mouseout", null).on("click", null);
|
|
7977
7978
|
const t = this.services.events;
|
|
7978
|
-
t.removeEventListener(
|
|
7979
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), this.removeBackgroundListeners();
|
|
7979
7980
|
}
|
|
7980
7981
|
}
|
|
7981
7982
|
function pp(i, t) {
|
|
@@ -8006,7 +8007,7 @@ class fp extends dt {
|
|
|
8006
8007
|
}
|
|
8007
8008
|
init() {
|
|
8008
8009
|
const t = this.services.events;
|
|
8009
|
-
t.addEventListener(
|
|
8010
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8010
8011
|
}
|
|
8011
8012
|
getInnerRadius() {
|
|
8012
8013
|
return Et.innerRadius;
|
|
@@ -8043,7 +8044,7 @@ class fp extends dt {
|
|
|
8043
8044
|
});
|
|
8044
8045
|
const { code: g, number: m } = O(s, "locale"), v = s.pie.labels.enabled, S = v ? h.filter((M) => M.data[r] > 0) : [], E = I.appendOrSelect(n, "g.labels").attr("role", lt.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(S, (M) => M.data[a]);
|
|
8045
8046
|
E.exit().attr("opacity", 0).remove();
|
|
8046
|
-
const x = E.enter().append("text").classed("pie-label", !0),
|
|
8047
|
+
const x = E.enter().append("text").classed("pie-label", !0), b = [];
|
|
8047
8048
|
x.merge(E).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
|
|
8048
8049
|
...M,
|
|
8049
8050
|
percentageValue: Ps(
|
|
@@ -8062,17 +8063,17 @@ class fp extends dt {
|
|
|
8062
8063
|
const P = S.length, $ = (M.endAngle - M.startAngle) * (180 / Math.PI);
|
|
8063
8064
|
if (L >= P - 2 && $ < Et.callout.minSliceDegree) {
|
|
8064
8065
|
let C, V;
|
|
8065
|
-
return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.RIGHT,
|
|
8066
|
+
return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.RIGHT, b.push(M)) : (C = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.LEFT, b.push(M)), `translate(${C}, ${V})`;
|
|
8066
8067
|
}
|
|
8067
8068
|
return `translate(${M.xPosition}, ${M.yPosition})`;
|
|
8068
|
-
}), this.renderCallouts(
|
|
8069
|
+
}), this.renderCallouts(b);
|
|
8069
8070
|
const k = O(s, "donut") ? "donut" : "pie", _ = O(s, k, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
|
|
8070
8071
|
useAttrs: !0
|
|
8071
8072
|
}), R = v ? Et.xOffset : 0, A = v ? Et.yOffset : 0;
|
|
8072
8073
|
let H = c + R;
|
|
8073
8074
|
_ === te.CENTER ? H = G / 2 : _ === te.RIGHT && (H = G - c - Et.xOffset);
|
|
8074
8075
|
let N = c + A;
|
|
8075
|
-
|
|
8076
|
+
b.length > 0 && (N += Et.yOffsetCallout), n.attr("x", H + 7).attr("y", N), this.addEventListeners();
|
|
8076
8077
|
}
|
|
8077
8078
|
renderCallouts(t) {
|
|
8078
8079
|
const e = I.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", lt.GROUP).attr("data-name", "callouts"), n = e.selectAll("g.callout").data(t);
|
|
@@ -8108,13 +8109,13 @@ class fp extends dt {
|
|
|
8108
8109
|
transition: o,
|
|
8109
8110
|
name: "pie_slice_mouseover"
|
|
8110
8111
|
})
|
|
8111
|
-
).attr("d", t.hoverArc), t.services.events.dispatchEvent(
|
|
8112
|
+
).attr("d", t.hoverArc), t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEOVER, {
|
|
8112
8113
|
event: e,
|
|
8113
8114
|
element: D(this),
|
|
8114
8115
|
datum: n
|
|
8115
8116
|
});
|
|
8116
8117
|
const { groupMapsTo: a } = t.getOptions().data, { valueMapsTo: r } = t.getOptions().pie;
|
|
8117
|
-
t.services.events.dispatchEvent(
|
|
8118
|
+
t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8118
8119
|
event: e,
|
|
8119
8120
|
hoveredElement: s,
|
|
8120
8121
|
items: [
|
|
@@ -8126,33 +8127,33 @@ class fp extends dt {
|
|
|
8126
8127
|
});
|
|
8127
8128
|
}).on("mousemove", function(e, n) {
|
|
8128
8129
|
const s = D(this);
|
|
8129
|
-
t.services.events.dispatchEvent(
|
|
8130
|
+
t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEMOVE, {
|
|
8130
8131
|
event: e,
|
|
8131
8132
|
element: s,
|
|
8132
8133
|
datum: n
|
|
8133
|
-
}), t.services.events.dispatchEvent(
|
|
8134
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
8134
8135
|
event: e
|
|
8135
8136
|
});
|
|
8136
8137
|
}).on("click", function(e, n) {
|
|
8137
|
-
t.services.events.dispatchEvent(
|
|
8138
|
+
t.services.events.dispatchEvent(T.Pie.SLICE_CLICK, {
|
|
8138
8139
|
event: e,
|
|
8139
8140
|
element: D(this),
|
|
8140
8141
|
datum: n
|
|
8141
8142
|
});
|
|
8142
8143
|
}).on("mouseout", function(e, n) {
|
|
8143
8144
|
const s = D(this);
|
|
8144
|
-
|
|
8145
|
+
bc(() => {
|
|
8145
8146
|
t.isRendering || s.classed("hovered", !1).transition("pie_slice_mouseout").call(
|
|
8146
8147
|
(a) => t.services.transitions.setupTransition({
|
|
8147
8148
|
transition: a,
|
|
8148
8149
|
name: "pie_slice_mouseout"
|
|
8149
8150
|
})
|
|
8150
8151
|
).attr("d", t.arc);
|
|
8151
|
-
}, 100), t.services.events.dispatchEvent(
|
|
8152
|
+
}, 100), t.services.events.dispatchEvent(T.Pie.SLICE_MOUSEOUT, {
|
|
8152
8153
|
event: e,
|
|
8153
8154
|
element: s,
|
|
8154
8155
|
datum: n
|
|
8155
|
-
}), t.services.events.dispatchEvent(
|
|
8156
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
8156
8157
|
hoveredElement: s
|
|
8157
8158
|
});
|
|
8158
8159
|
});
|
|
@@ -8296,10 +8297,10 @@ class Vm extends dt {
|
|
|
8296
8297
|
const { width: y } = I.getSVGElementSize(
|
|
8297
8298
|
I.appendOrSelect(t, "text.gauge-value-number"),
|
|
8298
8299
|
{ useBBox: !0 }
|
|
8299
|
-
), E = p / 2, x = h ? "%" : "",
|
|
8300
|
+
), E = p / 2, x = h ? "%" : "", b = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width: k, height: _ } = I.getSVGElementSize(b, {
|
|
8300
8301
|
useBBox: !0
|
|
8301
8302
|
});
|
|
8302
|
-
|
|
8303
|
+
b.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${k / 2}, 0)`);
|
|
8303
8304
|
}
|
|
8304
8305
|
/**
|
|
8305
8306
|
* adds the delta number for the gauge
|
|
@@ -8337,27 +8338,27 @@ class Vm extends dt {
|
|
|
8337
8338
|
addEventListeners() {
|
|
8338
8339
|
const t = this;
|
|
8339
8340
|
this.parent.selectAll("path.arc-foreground").on("mouseover", function(e, n) {
|
|
8340
|
-
t.services.events.dispatchEvent(
|
|
8341
|
+
t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEOVER, {
|
|
8341
8342
|
event: e,
|
|
8342
8343
|
element: D(this),
|
|
8343
8344
|
datum: n
|
|
8344
8345
|
});
|
|
8345
8346
|
}).on("mousemove", function(e, n) {
|
|
8346
8347
|
const s = D(this);
|
|
8347
|
-
t.services.events.dispatchEvent(
|
|
8348
|
+
t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEMOVE, {
|
|
8348
8349
|
event: e,
|
|
8349
8350
|
element: s,
|
|
8350
8351
|
datum: n
|
|
8351
8352
|
});
|
|
8352
8353
|
}).on("click", function(e, n) {
|
|
8353
|
-
t.services.events.dispatchEvent(
|
|
8354
|
+
t.services.events.dispatchEvent(T.Gauge.ARC_CLICK, {
|
|
8354
8355
|
event: e,
|
|
8355
8356
|
element: D(this),
|
|
8356
8357
|
datum: n
|
|
8357
8358
|
});
|
|
8358
8359
|
}).on("mouseout", function(e, n) {
|
|
8359
8360
|
const s = D(this);
|
|
8360
|
-
t.services.events.dispatchEvent(
|
|
8361
|
+
t.services.events.dispatchEvent(T.Gauge.ARC_MOUSEOUT, {
|
|
8361
8362
|
event: e,
|
|
8362
8363
|
element: s,
|
|
8363
8364
|
datum: n
|
|
@@ -8393,7 +8394,7 @@ class Gm extends ea {
|
|
|
8393
8394
|
}
|
|
8394
8395
|
init() {
|
|
8395
8396
|
const t = this.services.events;
|
|
8396
|
-
t.addEventListener(
|
|
8397
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8397
8398
|
}
|
|
8398
8399
|
render(t) {
|
|
8399
8400
|
const e = this.model.getDisplayData(this.configs.groups), n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
@@ -8437,8 +8438,8 @@ class Gm extends ea {
|
|
|
8437
8438
|
const p = this.services.cartesianScales.getDomainIdentifier(u);
|
|
8438
8439
|
return this.model.getFillColor(u[s], u[p], u);
|
|
8439
8440
|
}).attr("d", (u) => {
|
|
8440
|
-
const p = this.groupScale(u[s]), f = this.getBarWidth(), g = p, m = p + f, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), S = this.services.cartesianScales.getDomainLowerBound(v), y = this.services.cartesianScales.getValueThroughAxisPosition(v, S), E = this.services.cartesianScales.getRangeValue(u), x = this.services.cartesianScales.getDomainValue(u) - f / 2,
|
|
8441
|
-
if (!this.isOutsideZoomedDomain(x,
|
|
8441
|
+
const p = this.groupScale(u[s]), f = this.getBarWidth(), g = p, m = p + f, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), S = this.services.cartesianScales.getDomainLowerBound(v), y = this.services.cartesianScales.getValueThroughAxisPosition(v, S), E = this.services.cartesianScales.getRangeValue(u), x = this.services.cartesianScales.getDomainValue(u) - f / 2, b = x + f;
|
|
8442
|
+
if (!this.isOutsideZoomedDomain(x, b))
|
|
8442
8443
|
return Gt(
|
|
8443
8444
|
{ x0: g, x1: m, y0: y, y1: E },
|
|
8444
8445
|
this.services.cartesianScales.getOrientation()
|
|
@@ -8449,37 +8450,37 @@ class Gm extends ea {
|
|
|
8449
8450
|
const t = this;
|
|
8450
8451
|
this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
|
|
8451
8452
|
const s = D(this);
|
|
8452
|
-
s.classed("hovered", !0), t.services.events.dispatchEvent(
|
|
8453
|
+
s.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
|
|
8453
8454
|
event: e,
|
|
8454
8455
|
element: s,
|
|
8455
8456
|
datum: n
|
|
8456
|
-
}), t.services.events.dispatchEvent(
|
|
8457
|
+
}), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8457
8458
|
event: e,
|
|
8458
8459
|
hoveredElement: s,
|
|
8459
8460
|
data: [n]
|
|
8460
8461
|
});
|
|
8461
8462
|
}).on("mousemove", function(e, n) {
|
|
8462
8463
|
const s = D(this);
|
|
8463
|
-
t.services.events.dispatchEvent(
|
|
8464
|
+
t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
|
|
8464
8465
|
event: e,
|
|
8465
8466
|
element: s,
|
|
8466
8467
|
datum: n
|
|
8467
|
-
}), t.services.events.dispatchEvent(
|
|
8468
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
8468
8469
|
event: e
|
|
8469
8470
|
});
|
|
8470
8471
|
}).on("click", function(e, n) {
|
|
8471
|
-
t.services.events.dispatchEvent(
|
|
8472
|
+
t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
|
|
8472
8473
|
event: e,
|
|
8473
8474
|
element: D(this),
|
|
8474
8475
|
datum: n
|
|
8475
8476
|
});
|
|
8476
8477
|
}).on("mouseout", function(e, n) {
|
|
8477
8478
|
const s = D(this);
|
|
8478
|
-
s.classed("hovered", !1), t.services.events.dispatchEvent(
|
|
8479
|
+
s.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
|
|
8479
8480
|
event: e,
|
|
8480
8481
|
element: s,
|
|
8481
8482
|
datum: n
|
|
8482
|
-
}), t.services.events.dispatchEvent(
|
|
8483
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
8483
8484
|
hoveredElement: s
|
|
8484
8485
|
});
|
|
8485
8486
|
});
|
|
@@ -8487,7 +8488,7 @@ class Gm extends ea {
|
|
|
8487
8488
|
destroy() {
|
|
8488
8489
|
this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
8489
8490
|
const t = this.services.events;
|
|
8490
|
-
t.removeEventListener(
|
|
8491
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8491
8492
|
}
|
|
8492
8493
|
getDataCorrespondingToLabel(t) {
|
|
8493
8494
|
return this.model.getDisplayData(this.configs.groups).filter((n) => {
|
|
@@ -8564,7 +8565,7 @@ class Hm extends dt {
|
|
|
8564
8565
|
}
|
|
8565
8566
|
d += g, u = g < u ? g : u, p = g > p ? g : p;
|
|
8566
8567
|
}
|
|
8567
|
-
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${pi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${pi(c.range())},${l(n)})`), this.services.events.dispatchEvent(
|
|
8568
|
+
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${pi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${pi(c.range())},${l(n)})`), this.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8568
8569
|
event: e.event,
|
|
8569
8570
|
hoveredElement: D(t.detail.element),
|
|
8570
8571
|
items: [
|
|
@@ -8588,14 +8589,14 @@ class Hm extends dt {
|
|
|
8588
8589
|
]
|
|
8589
8590
|
});
|
|
8590
8591
|
}, this.handleAxisMouseOut = (t) => {
|
|
8591
|
-
this.parent.selectAll("g.multi-cell").classed("highlighter-hidden", !0), this.services.events.dispatchEvent(
|
|
8592
|
+
this.parent.selectAll("g.multi-cell").classed("highlighter-hidden", !0), this.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
8592
8593
|
event: t
|
|
8593
8594
|
});
|
|
8594
8595
|
};
|
|
8595
8596
|
}
|
|
8596
8597
|
init() {
|
|
8597
8598
|
const t = this.services.events;
|
|
8598
|
-
t.addEventListener(
|
|
8599
|
+
t.addEventListener(T.Axis.LABEL_MOUSEOVER, this.handleAxisOnHover), t.addEventListener(T.Axis.LABEL_MOUSEOUT, this.handleAxisMouseOut), t.addEventListener(T.Axis.LABEL_FOCUS, this.handleAxisOnHover), t.addEventListener(T.Axis.LABEL_BLUR, this.handleAxisMouseOut);
|
|
8599
8600
|
}
|
|
8600
8601
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8601
8602
|
// @ts-ignore
|
|
@@ -8657,11 +8658,11 @@ class Hm extends dt {
|
|
|
8657
8658
|
t.parent.select("g.cell-highlight").attr(
|
|
8658
8659
|
"transform",
|
|
8659
8660
|
`translate(${f.x + t.translationUnits.x}, ${f.y + t.translationUnits.y})`
|
|
8660
|
-
).classed("highlighter-hidden", !1), t.services.events.dispatchEvent(
|
|
8661
|
+
).classed("highlighter-hidden", !1), t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEOVER, {
|
|
8661
8662
|
event: l,
|
|
8662
8663
|
element: u,
|
|
8663
8664
|
datum: h
|
|
8664
|
-
}), t.services.events.dispatchEvent(
|
|
8665
|
+
}), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8665
8666
|
event: l,
|
|
8666
8667
|
items: [
|
|
8667
8668
|
{
|
|
@@ -8681,26 +8682,26 @@ class Hm extends dt {
|
|
|
8681
8682
|
});
|
|
8682
8683
|
}
|
|
8683
8684
|
}).on("mousemove", function(l, h) {
|
|
8684
|
-
t.services.events.dispatchEvent(
|
|
8685
|
+
t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEMOVE, {
|
|
8685
8686
|
event: l,
|
|
8686
8687
|
element: D(this),
|
|
8687
8688
|
datum: h
|
|
8688
|
-
}), t.services.events.dispatchEvent(
|
|
8689
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
8689
8690
|
event: l
|
|
8690
8691
|
});
|
|
8691
8692
|
}).on("click", function(l, h) {
|
|
8692
|
-
t.services.events.dispatchEvent(
|
|
8693
|
+
t.services.events.dispatchEvent(T.Heatmap.HEATMAP_CLICK, {
|
|
8693
8694
|
event: l,
|
|
8694
8695
|
element: D(this),
|
|
8695
8696
|
datum: h
|
|
8696
8697
|
});
|
|
8697
8698
|
}).on("mouseout", function(l, h) {
|
|
8698
8699
|
const u = D(this).select("rect.heat"), p = u.classed("null-state");
|
|
8699
|
-
t.parent.select("g.cell-highlight").classed("highlighter-hidden", !0), p || (t.services.events.dispatchEvent(
|
|
8700
|
+
t.parent.select("g.cell-highlight").classed("highlighter-hidden", !0), p || (t.services.events.dispatchEvent(T.Heatmap.HEATMAP_MOUSEOUT, {
|
|
8700
8701
|
event: l,
|
|
8701
8702
|
element: u,
|
|
8702
8703
|
datum: h
|
|
8703
|
-
}), t.services.events.dispatchEvent(
|
|
8704
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
8704
8705
|
event: l,
|
|
8705
8706
|
hoveredElement: u
|
|
8706
8707
|
}));
|
|
@@ -8710,7 +8711,7 @@ class Hm extends dt {
|
|
|
8710
8711
|
destroy() {
|
|
8711
8712
|
this.parent.selectAll("rect.heat").on("mouseover", null).on("mousemove", null).on("click", null).on("mouseout", null);
|
|
8712
8713
|
const t = this.services.events;
|
|
8713
|
-
t.removeEventListener(
|
|
8714
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleAxisOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
8714
8715
|
}
|
|
8715
8716
|
}
|
|
8716
8717
|
class Bm extends dt {
|
|
@@ -8734,7 +8735,7 @@ class Bm extends dt {
|
|
|
8734
8735
|
}
|
|
8735
8736
|
init() {
|
|
8736
8737
|
const t = this.services.events;
|
|
8737
|
-
t.addEventListener(
|
|
8738
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8738
8739
|
}
|
|
8739
8740
|
render(t) {
|
|
8740
8741
|
const e = this.getComponentContainer({
|
|
@@ -8773,7 +8774,7 @@ class Bm extends dt {
|
|
|
8773
8774
|
const c = D(this);
|
|
8774
8775
|
c.classed("hovered", !0);
|
|
8775
8776
|
const l = s(parseFloat(xt(o, "data.x0")), n), h = s(parseFloat(xt(o, "data.x1")), n), d = a.services.cartesianScales.getRangeAxisPosition(), u = a.services.cartesianScales.getScaleLabel(d);
|
|
8776
|
-
a.services.events.dispatchEvent(
|
|
8777
|
+
a.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8777
8778
|
event: r,
|
|
8778
8779
|
hoveredElement: c,
|
|
8779
8780
|
items: [
|
|
@@ -8796,17 +8797,17 @@ class Bm extends dt {
|
|
|
8796
8797
|
]
|
|
8797
8798
|
});
|
|
8798
8799
|
}).on("mousemove", function(r) {
|
|
8799
|
-
a.services.events.dispatchEvent(
|
|
8800
|
+
a.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
8800
8801
|
event: r
|
|
8801
8802
|
});
|
|
8802
8803
|
}).on("mouseout", function() {
|
|
8803
|
-
D(this).classed("hovered", !1), a.services.events.dispatchEvent(
|
|
8804
|
+
D(this).classed("hovered", !1), a.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
8804
8805
|
});
|
|
8805
8806
|
}
|
|
8806
8807
|
destroy() {
|
|
8807
8808
|
this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
8808
8809
|
const t = this.services.events;
|
|
8809
|
-
t.removeEventListener(
|
|
8810
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8810
8811
|
}
|
|
8811
8812
|
}
|
|
8812
8813
|
class zm extends Qi {
|
|
@@ -8835,7 +8836,7 @@ class zm extends Qi {
|
|
|
8835
8836
|
}
|
|
8836
8837
|
init() {
|
|
8837
8838
|
const { events: t } = this.services;
|
|
8838
|
-
t.addEventListener(
|
|
8839
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
8839
8840
|
}
|
|
8840
8841
|
render(t) {
|
|
8841
8842
|
const e = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), n = this.model.getOptions(), { groupMapsTo: s } = n.data, { cartesianScales: a } = this.services, r = a.getMainXScale(), o = a.getMainYScale(), c = a.getDomainIdentifier(), l = (v) => a.getDomainValue(v), h = (v) => a.getRangeValue(v), d = a.getOrientation(), [u, p] = xe(
|
|
@@ -8866,17 +8867,17 @@ class zm extends Qi {
|
|
|
8866
8867
|
// listen for when individual datapoints are hovered
|
|
8867
8868
|
addScatterPointEventListeners() {
|
|
8868
8869
|
this.services.events.addEventListener(
|
|
8869
|
-
|
|
8870
|
+
T.Scatter.SCATTER_MOUSEOVER,
|
|
8870
8871
|
this.handleScatterOnHover
|
|
8871
8872
|
), this.services.events.addEventListener(
|
|
8872
|
-
|
|
8873
|
+
T.Scatter.SCATTER_MOUSEOUT,
|
|
8873
8874
|
this.handleScatterOnMouseOut
|
|
8874
8875
|
);
|
|
8875
8876
|
}
|
|
8876
8877
|
destroy() {
|
|
8877
8878
|
const t = this.services.events;
|
|
8878
|
-
t.removeEventListener(
|
|
8879
|
-
|
|
8879
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut), t.removeEventListener(T.Scatter.SCATTER_MOUSEOVER, this.handleScatterOnHover), t.removeEventListener(
|
|
8880
|
+
T.Scatter.SCATTER_MOUSEOUT,
|
|
8880
8881
|
this.handleScatterOnMouseOut
|
|
8881
8882
|
);
|
|
8882
8883
|
}
|
|
@@ -8950,11 +8951,11 @@ class Um extends dt {
|
|
|
8950
8951
|
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = O(t, "meter", "proportional");
|
|
8951
8952
|
this.parent.selectAll("rect.value").on("mouseover", function(a, r) {
|
|
8952
8953
|
const o = D(this);
|
|
8953
|
-
n.services.events.dispatchEvent(
|
|
8954
|
+
n.services.events.dispatchEvent(T.Meter.METER_MOUSEOVER, {
|
|
8954
8955
|
event: a,
|
|
8955
8956
|
element: o,
|
|
8956
8957
|
datum: r
|
|
8957
|
-
}), s && (o.classed("hovered", !0), n.services.events.dispatchEvent(
|
|
8958
|
+
}), s && (o.classed("hovered", !0), n.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
8958
8959
|
event: a,
|
|
8959
8960
|
hoveredElement: o,
|
|
8960
8961
|
items: [
|
|
@@ -8966,26 +8967,26 @@ class Um extends dt {
|
|
|
8966
8967
|
}));
|
|
8967
8968
|
}).on("mousemove", function(a, r) {
|
|
8968
8969
|
const o = D(this);
|
|
8969
|
-
n.services.events.dispatchEvent(
|
|
8970
|
+
n.services.events.dispatchEvent(T.Meter.METER_MOUSEMOVE, {
|
|
8970
8971
|
event: a,
|
|
8971
8972
|
element: o,
|
|
8972
8973
|
datum: r
|
|
8973
|
-
}), s && n.services.events.dispatchEvent(
|
|
8974
|
+
}), s && n.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
8974
8975
|
event: a
|
|
8975
8976
|
});
|
|
8976
8977
|
}).on("click", function(a, r) {
|
|
8977
|
-
n.services.events.dispatchEvent(
|
|
8978
|
+
n.services.events.dispatchEvent(T.Meter.METER_CLICK, {
|
|
8978
8979
|
event: a,
|
|
8979
8980
|
element: D(this),
|
|
8980
8981
|
datum: r
|
|
8981
8982
|
});
|
|
8982
8983
|
}).on("mouseout", function(a, r) {
|
|
8983
8984
|
const o = D(this);
|
|
8984
|
-
n.services.events.dispatchEvent(
|
|
8985
|
+
n.services.events.dispatchEvent(T.Meter.METER_MOUSEOUT, {
|
|
8985
8986
|
event: a,
|
|
8986
8987
|
element: o,
|
|
8987
8988
|
datum: r
|
|
8988
|
-
}), s && (o.classed("hovered", !1), n.services.events.dispatchEvent(
|
|
8989
|
+
}), s && (o.classed("hovered", !1), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
8989
8990
|
hoveredElement: o
|
|
8990
8991
|
}));
|
|
8991
8992
|
});
|
|
@@ -9037,7 +9038,7 @@ class Fm extends dt {
|
|
|
9037
9038
|
}
|
|
9038
9039
|
init() {
|
|
9039
9040
|
const { events: t } = this.services;
|
|
9040
|
-
t.addEventListener(
|
|
9041
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9041
9042
|
}
|
|
9042
9043
|
render(t = !0) {
|
|
9043
9044
|
const e = this.getComponentContainer({
|
|
@@ -9049,17 +9050,17 @@ class Fm extends dt {
|
|
|
9049
9050
|
const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), x = (Math.min(n, s) - S) / 2;
|
|
9050
9051
|
if (x <= 0)
|
|
9051
9052
|
return;
|
|
9052
|
-
const
|
|
9053
|
+
const b = zi().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), k = pi(this.fullDataNormalized.map((z) => z[d])), _ = Re().domain([
|
|
9053
9054
|
k >= 0 ? 0 : k,
|
|
9054
|
-
|
|
9055
|
-
]).range([g, x]).nice(f), G = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = id().angle((z) =>
|
|
9055
|
+
ba(this.fullDataNormalized.map((z) => z[d]))
|
|
9056
|
+
]).range([g, x]).nice(f), G = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = id().angle((z) => b(z[h]) + Math.PI / 2).radius((z) => _(z[d])).curve(Al), H = this.uniqueKeys.map((z) => {
|
|
9056
9057
|
const B = this.getLabelDimensions(z).width, U = Ml(
|
|
9057
|
-
|
|
9058
|
+
b(z),
|
|
9058
9059
|
x
|
|
9059
9060
|
);
|
|
9060
9061
|
return B + U;
|
|
9061
9062
|
}), M = {
|
|
9062
|
-
x:
|
|
9063
|
+
x: ba(H) + u,
|
|
9063
9064
|
y: s / 2
|
|
9064
9065
|
}, P = I.appendOrSelect(e, "g.y-axes").attr("role", lt.GROUP).selectAll("path").data(G, (z) => z), $ = (z) => this.uniqueKeys.map((B) => ({ [h]: B, [d]: z }));
|
|
9065
9066
|
P.join(
|
|
@@ -9091,14 +9092,14 @@ class Fm extends dt {
|
|
|
9091
9092
|
).attr("d", (U) => A($(U))).attr("opacity", 0).remove()
|
|
9092
9093
|
)
|
|
9093
9094
|
), I.appendOrSelect(e, "g.x-axes").attr("role", lt.GROUP).selectAll("line").data(this.uniqueKeys, (z) => z).join(
|
|
9094
|
-
(z) => z.append("line").attr("opacity", 0).attr("class", (B) => `x-axis-${Fe(B)}`).attr("stroke-dasharray", "0").attr("x1", (B) =>
|
|
9095
|
+
(z) => z.append("line").attr("opacity", 0).attr("class", (B) => `x-axis-${Fe(B)}`).attr("stroke-dasharray", "0").attr("x1", (B) => Tt(b(B), 0, M).x).attr("y1", (B) => Tt(b(B), 0, M).y).attr("x2", (B) => Tt(b(B), 0, M).x).attr("y2", (B) => Tt(b(B), 0, M).y).call(
|
|
9095
9096
|
(B) => B.transition().call(
|
|
9096
9097
|
(U) => this.services.transitions.setupTransition({
|
|
9097
9098
|
transition: U,
|
|
9098
9099
|
name: "radar_x_axes_enter",
|
|
9099
9100
|
animate: t
|
|
9100
9101
|
})
|
|
9101
|
-
).attr("opacity", 1).attr("x1", (U) =>
|
|
9102
|
+
).attr("opacity", 1).attr("x1", (U) => Tt(b(U), _.range()[0], M).x).attr("y1", (U) => Tt(b(U), _.range()[0], M).y).attr("x2", (U) => Tt(b(U), _.range()[1], M).x).attr("y2", (U) => Tt(b(U), _.range()[1], M).y)
|
|
9102
9103
|
),
|
|
9103
9104
|
(z) => z.call(
|
|
9104
9105
|
(B) => B.transition().call(
|
|
@@ -9107,7 +9108,7 @@ class Fm extends dt {
|
|
|
9107
9108
|
name: "radar_x_axes_update",
|
|
9108
9109
|
animate: t
|
|
9109
9110
|
})
|
|
9110
|
-
).attr("opacity", 1).attr("x1", (U) =>
|
|
9111
|
+
).attr("opacity", 1).attr("x1", (U) => Tt(b(U), _.range()[0], M).x).attr("y1", (U) => Tt(b(U), _.range()[0], M).y).attr("x2", (U) => Tt(b(U), _.range()[1], M).x).attr("y2", (U) => Tt(b(U), _.range()[1], M).y)
|
|
9111
9112
|
),
|
|
9112
9113
|
(z) => z.call(
|
|
9113
9114
|
(B) => B.transition().call(
|
|
@@ -9121,13 +9122,13 @@ class Fm extends dt {
|
|
|
9121
9122
|
), I.appendOrSelect(e, "g.x-labels").attr("role", lt.GROUP).selectAll("text").data(this.uniqueKeys).join(
|
|
9122
9123
|
(z) => z.append("text").text((B) => B).attr("opacity", 0).attr(
|
|
9123
9124
|
"x",
|
|
9124
|
-
(B) =>
|
|
9125
|
+
(B) => Tt(b(B), _.range()[1] + u, M).x
|
|
9125
9126
|
).attr(
|
|
9126
9127
|
"y",
|
|
9127
|
-
(B) =>
|
|
9128
|
-
).style("text-anchor", (B) => ka(
|
|
9128
|
+
(B) => Tt(b(B), _.range()[1] + u, M).y
|
|
9129
|
+
).style("text-anchor", (B) => ka(b(B)).textAnchor).style(
|
|
9129
9130
|
"dominant-baseline",
|
|
9130
|
-
(B) => ka(
|
|
9131
|
+
(B) => ka(b(B)).dominantBaseline
|
|
9131
9132
|
).call(
|
|
9132
9133
|
(B) => B.transition().call(
|
|
9133
9134
|
(U) => this.services.transitions.setupTransition({
|
|
@@ -9146,10 +9147,10 @@ class Fm extends dt {
|
|
|
9146
9147
|
})
|
|
9147
9148
|
).attr("opacity", 1).attr(
|
|
9148
9149
|
"x",
|
|
9149
|
-
(U) =>
|
|
9150
|
+
(U) => Tt(b(U), _.range()[1] + u, M).x
|
|
9150
9151
|
).attr(
|
|
9151
9152
|
"y",
|
|
9152
|
-
(U) =>
|
|
9153
|
+
(U) => Tt(b(U), _.range()[1] + u, M).y
|
|
9153
9154
|
).end().finally(() => {
|
|
9154
9155
|
const U = O(o, "radar", "alignment"), wt = this.getAlignmentXOffset(U, e, this.getParent());
|
|
9155
9156
|
e.attr("x", wt);
|
|
@@ -9225,17 +9226,17 @@ class Fm extends dt {
|
|
|
9225
9226
|
dataGroupName: z[c],
|
|
9226
9227
|
originalClassName: Fe(z[h])
|
|
9227
9228
|
})
|
|
9228
|
-
).attr("cx", (z) =>
|
|
9229
|
+
).attr("cx", (z) => Tt(b(z[h]), _(z[d]), M).x).attr("cy", (z) => Tt(b(z[h]), _(z[d]), M).y).attr("r", 0).attr("opacity", 0).style("fill", (z) => R(z[c])), I.appendOrSelect(e, "g.x-axes-rect").attr("role", lt.GROUP).selectAll("rect").data(this.uniqueKeys).join(
|
|
9229
9230
|
(z) => z.append("rect"),
|
|
9230
9231
|
(z) => z,
|
|
9231
9232
|
(z) => z.remove()
|
|
9232
|
-
).attr("x", M.x).attr("y", M.y - m / 2).attr("width", _.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${wl(
|
|
9233
|
+
).attr("x", M.x).attr("y", M.y - m / 2).attr("width", _.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${wl(b(z))}, ${M.x}, ${M.y})`);
|
|
9233
9234
|
const { code: ot, number: ct } = O(o, "locale");
|
|
9234
9235
|
I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Os(G)).join(
|
|
9235
9236
|
(z) => z.append("text").attr("opacity", 0).text((B) => ct(B, ot)).attr(
|
|
9236
9237
|
"x",
|
|
9237
|
-
(B) =>
|
|
9238
|
-
).attr("y", (B) =>
|
|
9238
|
+
(B) => Tt(-Math.PI / 2, _(B), M).x + p
|
|
9239
|
+
).attr("y", (B) => Tt(-Math.PI / 2, _(B), M).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
|
|
9239
9240
|
(B) => B.transition().call(
|
|
9240
9241
|
(U) => this.services.transitions.setupTransition({
|
|
9241
9242
|
transition: U,
|
|
@@ -9253,8 +9254,8 @@ class Fm extends dt {
|
|
|
9253
9254
|
})
|
|
9254
9255
|
).text((U) => U).attr("opacity", 1).attr(
|
|
9255
9256
|
"x",
|
|
9256
|
-
(U) =>
|
|
9257
|
-
).attr("y", (U) =>
|
|
9257
|
+
(U) => Tt(-Math.PI / 2, _(U), M).x + p
|
|
9258
|
+
).attr("y", (U) => Tt(-Math.PI / 2, _(U), M).y)
|
|
9258
9259
|
),
|
|
9259
9260
|
(z) => z.call(
|
|
9260
9261
|
(B) => B.transition().call(
|
|
@@ -9279,7 +9280,7 @@ class Fm extends dt {
|
|
|
9279
9280
|
destroy() {
|
|
9280
9281
|
this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
9281
9282
|
const t = this.services.events;
|
|
9282
|
-
t.removeEventListener(
|
|
9283
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9283
9284
|
}
|
|
9284
9285
|
addEventListeners() {
|
|
9285
9286
|
const t = this, {
|
|
@@ -9287,7 +9288,7 @@ class Fm extends dt {
|
|
|
9287
9288
|
} = O(this.getOptions(), "radar");
|
|
9288
9289
|
this.parent.selectAll(".x-axes-rect > rect").on("mouseover", function(n, s) {
|
|
9289
9290
|
const a = D(this);
|
|
9290
|
-
t.services.events.dispatchEvent(
|
|
9291
|
+
t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEOVER, {
|
|
9291
9292
|
event: n,
|
|
9292
9293
|
element: a,
|
|
9293
9294
|
datum: s
|
|
@@ -9300,7 +9301,7 @@ class Fm extends dt {
|
|
|
9300
9301
|
const u = t.fullDataNormalized.filter(
|
|
9301
9302
|
(p) => p[e] === s && c.indexOf(p[h]) !== -1
|
|
9302
9303
|
);
|
|
9303
|
-
t.services.events.dispatchEvent(
|
|
9304
|
+
t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
9304
9305
|
event: n,
|
|
9305
9306
|
hoveredElement: a,
|
|
9306
9307
|
items: u.filter((p) => typeof p[d] == "number").map((p) => ({
|
|
@@ -9315,26 +9316,26 @@ class Fm extends dt {
|
|
|
9315
9316
|
});
|
|
9316
9317
|
}).on("mousemove", function(n, s) {
|
|
9317
9318
|
const a = D(this);
|
|
9318
|
-
t.services.events.dispatchEvent(
|
|
9319
|
+
t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEMOVE, {
|
|
9319
9320
|
event: n,
|
|
9320
9321
|
element: a,
|
|
9321
9322
|
datum: s
|
|
9322
|
-
}), t.services.events.dispatchEvent(
|
|
9323
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
9323
9324
|
event: n
|
|
9324
9325
|
});
|
|
9325
9326
|
}).on("click", function(n, s) {
|
|
9326
|
-
t.services.events.dispatchEvent(
|
|
9327
|
+
t.services.events.dispatchEvent(T.Radar.X_AXIS_CLICK, {
|
|
9327
9328
|
event: n,
|
|
9328
9329
|
element: D(this),
|
|
9329
9330
|
datum: s
|
|
9330
9331
|
});
|
|
9331
9332
|
}).on("mouseout", function(n, s) {
|
|
9332
9333
|
const a = D(this), r = t.parent.select(`.x-axes .x-axis-${Fe(s)}`), o = t.parent.selectAll(`.dots circle.${Fe(s)}`);
|
|
9333
|
-
r.classed("hovered", !1).attr("stroke-dasharray", "0"), o.classed("hovered", !1).attr("opacity", 0).attr("r", 0), t.services.events.dispatchEvent(
|
|
9334
|
+
r.classed("hovered", !1).attr("stroke-dasharray", "0"), o.classed("hovered", !1).attr("opacity", 0).attr("r", 0), t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEOUT, {
|
|
9334
9335
|
event: n,
|
|
9335
9336
|
element: a,
|
|
9336
9337
|
datum: s
|
|
9337
|
-
}), t.services.events.dispatchEvent(
|
|
9338
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE);
|
|
9338
9339
|
});
|
|
9339
9340
|
}
|
|
9340
9341
|
}
|
|
@@ -9359,7 +9360,7 @@ class Wm extends ea {
|
|
|
9359
9360
|
}
|
|
9360
9361
|
init() {
|
|
9361
9362
|
const t = this.services.events;
|
|
9362
|
-
t.addEventListener(
|
|
9363
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9363
9364
|
}
|
|
9364
9365
|
render(t) {
|
|
9365
9366
|
const e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.getComponentContainer({
|
|
@@ -9400,36 +9401,36 @@ class Wm extends ea {
|
|
|
9400
9401
|
const t = this;
|
|
9401
9402
|
this.parent.selectAll("path.bar").on("mouseover", function(e, n) {
|
|
9402
9403
|
const s = D(this);
|
|
9403
|
-
s.classed("hovered", !0), t.services.events.dispatchEvent(
|
|
9404
|
+
s.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
|
|
9404
9405
|
event: e,
|
|
9405
9406
|
element: s,
|
|
9406
9407
|
datum: n
|
|
9407
|
-
}), t.services.events.dispatchEvent(
|
|
9408
|
+
}), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
9408
9409
|
event: e,
|
|
9409
9410
|
hoveredElement: s,
|
|
9410
9411
|
data: [n]
|
|
9411
9412
|
});
|
|
9412
9413
|
}).on("mousemove", function(e, n) {
|
|
9413
|
-
t.services.events.dispatchEvent(
|
|
9414
|
+
t.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
|
|
9414
9415
|
event: e,
|
|
9415
9416
|
element: D(this),
|
|
9416
9417
|
datum: n
|
|
9417
|
-
}), t.services.events.dispatchEvent(
|
|
9418
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
9418
9419
|
event: e
|
|
9419
9420
|
});
|
|
9420
9421
|
}).on("click", function(e, n) {
|
|
9421
|
-
t.services.events.dispatchEvent(
|
|
9422
|
+
t.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
|
|
9422
9423
|
event: e,
|
|
9423
9424
|
element: D(this),
|
|
9424
9425
|
datum: n
|
|
9425
9426
|
});
|
|
9426
9427
|
}).on("mouseout", function(e, n) {
|
|
9427
9428
|
const s = D(this);
|
|
9428
|
-
s.classed("hovered", !1), t.services.events.dispatchEvent(
|
|
9429
|
+
s.classed("hovered", !1), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
|
|
9429
9430
|
event: e,
|
|
9430
9431
|
element: s,
|
|
9431
9432
|
datum: n
|
|
9432
|
-
}), t.services.events.dispatchEvent(
|
|
9433
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
9433
9434
|
hoveredElement: s
|
|
9434
9435
|
});
|
|
9435
9436
|
});
|
|
@@ -9437,7 +9438,7 @@ class Wm extends ea {
|
|
|
9437
9438
|
destroy() {
|
|
9438
9439
|
this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
9439
9440
|
const t = this.services.events;
|
|
9440
|
-
t.removeEventListener(
|
|
9441
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9441
9442
|
}
|
|
9442
9443
|
}
|
|
9443
9444
|
class Xm extends ip {
|
|
@@ -9490,7 +9491,7 @@ class Ym extends dt {
|
|
|
9490
9491
|
}
|
|
9491
9492
|
init() {
|
|
9492
9493
|
const t = this.services.events;
|
|
9493
|
-
t.addEventListener(
|
|
9494
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9494
9495
|
}
|
|
9495
9496
|
render(t = !0) {
|
|
9496
9497
|
const e = this.getComponentContainer({
|
|
@@ -9542,7 +9543,7 @@ class Zm extends ea {
|
|
|
9542
9543
|
}
|
|
9543
9544
|
init() {
|
|
9544
9545
|
const t = this.services.events;
|
|
9545
|
-
t.addEventListener(
|
|
9546
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9546
9547
|
}
|
|
9547
9548
|
render(t) {
|
|
9548
9549
|
const e = this.getComponentContainer({ ariaLabel: "stacked bar graphs", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getStackedData({
|
|
@@ -9589,7 +9590,7 @@ class Zm extends ea {
|
|
|
9589
9590
|
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this;
|
|
9590
9591
|
this.parent.selectAll("path.bar").on("mouseover", function(s, a) {
|
|
9591
9592
|
const r = D(this);
|
|
9592
|
-
r.classed("hovered", !0), n.services.events.dispatchEvent(
|
|
9593
|
+
r.classed("hovered", !0), n.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
|
|
9593
9594
|
event: s,
|
|
9594
9595
|
element: r,
|
|
9595
9596
|
datum: a
|
|
@@ -9606,33 +9607,33 @@ class Zm extends ea {
|
|
|
9606
9607
|
[e]: a[e]
|
|
9607
9608
|
};
|
|
9608
9609
|
}
|
|
9609
|
-
n.services.events.dispatchEvent(
|
|
9610
|
+
n.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
9610
9611
|
event: s,
|
|
9611
9612
|
hoveredElement: r,
|
|
9612
9613
|
data: [c]
|
|
9613
9614
|
});
|
|
9614
9615
|
}).on("mousemove", function(s, a) {
|
|
9615
9616
|
const r = D(this);
|
|
9616
|
-
n.services.events.dispatchEvent(
|
|
9617
|
+
n.services.events.dispatchEvent(T.Bar.BAR_MOUSEMOVE, {
|
|
9617
9618
|
event: s,
|
|
9618
9619
|
element: r,
|
|
9619
9620
|
datum: a
|
|
9620
|
-
}), n.services.events.dispatchEvent(
|
|
9621
|
+
}), n.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
9621
9622
|
event: s
|
|
9622
9623
|
});
|
|
9623
9624
|
}).on("click", function(s, a) {
|
|
9624
|
-
n.services.events.dispatchEvent(
|
|
9625
|
+
n.services.events.dispatchEvent(T.Bar.BAR_CLICK, {
|
|
9625
9626
|
event: s,
|
|
9626
9627
|
element: D(this),
|
|
9627
9628
|
datum: a
|
|
9628
9629
|
});
|
|
9629
9630
|
}).on("mouseout", function(s, a) {
|
|
9630
9631
|
const r = D(this);
|
|
9631
|
-
r.classed("hovered", !1), n.services.events.dispatchEvent(
|
|
9632
|
+
r.classed("hovered", !1), n.services.events.dispatchEvent(T.Bar.BAR_MOUSEOUT, {
|
|
9632
9633
|
event: s,
|
|
9633
9634
|
element: r,
|
|
9634
9635
|
datum: a
|
|
9635
|
-
}), n.services.events.dispatchEvent(
|
|
9636
|
+
}), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
9636
9637
|
hoveredElement: r
|
|
9637
9638
|
});
|
|
9638
9639
|
});
|
|
@@ -9649,7 +9650,7 @@ class Zm extends ea {
|
|
|
9649
9650
|
destroy() {
|
|
9650
9651
|
this.parent.selectAll("path.bar").on("mouseover", null).on("mousemove", null).on("mouseout", null);
|
|
9651
9652
|
const t = this.services.events;
|
|
9652
|
-
t.removeEventListener(
|
|
9653
|
+
t.removeEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9653
9654
|
}
|
|
9654
9655
|
}
|
|
9655
9656
|
class qm extends Qi {
|
|
@@ -9736,7 +9737,7 @@ class jm extends dt {
|
|
|
9736
9737
|
}, u = Dn({
|
|
9737
9738
|
name: o,
|
|
9738
9739
|
children: r
|
|
9739
|
-
}), p = 10, f = n / 6, g = (
|
|
9740
|
+
}), p = 10, f = n / 6, g = (b) => {
|
|
9740
9741
|
const k = u.descendants().reverse(), _ = u.links();
|
|
9741
9742
|
let G = u, R = u;
|
|
9742
9743
|
u.eachBefore((C) => {
|
|
@@ -9748,61 +9749,61 @@ class jm extends dt {
|
|
|
9748
9749
|
name: "tree-update-viewbox",
|
|
9749
9750
|
animate: !0
|
|
9750
9751
|
})
|
|
9751
|
-
).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(k, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${
|
|
9752
|
+
).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(k, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${b.y0},${b.x0})`).attr(
|
|
9752
9753
|
"class",
|
|
9753
9754
|
(C) => C.depth !== 0 && C.children && C.children.length > 0 ? "clickable" : null
|
|
9754
9755
|
).on("mouseover", function(C, V) {
|
|
9755
|
-
M.services.events.dispatchEvent(
|
|
9756
|
+
M.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
|
|
9756
9757
|
event: C,
|
|
9757
9758
|
element: D(this),
|
|
9758
9759
|
datum: V
|
|
9759
9760
|
});
|
|
9760
9761
|
}).on("click", function(C, V) {
|
|
9761
|
-
V.depth !== 0 && (V.children = V.children ? null : V._children, g(V)), M.services.events.dispatchEvent(
|
|
9762
|
+
V.depth !== 0 && (V.children = V.children ? null : V._children, g(V)), M.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
|
|
9762
9763
|
event: C,
|
|
9763
9764
|
element: D(this),
|
|
9764
9765
|
datum: V
|
|
9765
9766
|
});
|
|
9766
9767
|
}).on("mouseout", function(C, V) {
|
|
9767
|
-
M.services.events.dispatchEvent(
|
|
9768
|
+
M.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
|
|
9768
9769
|
event: C,
|
|
9769
9770
|
element: D(this),
|
|
9770
9771
|
datum: V
|
|
9771
9772
|
});
|
|
9772
9773
|
});
|
|
9773
|
-
L.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : vn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${
|
|
9774
|
+
L.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : vn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${b.y},${b.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
9774
9775
|
const P = E.selectAll("path").data(_, (C) => C.target.id), $ = P.enter().append("path").attr("d", () => {
|
|
9775
|
-
const C = { x:
|
|
9776
|
+
const C = { x: b.x0, y: b.y0 };
|
|
9776
9777
|
return y({ source: C, target: C });
|
|
9777
9778
|
});
|
|
9778
9779
|
P.merge($).transition(H).attr("d", y), P.exit().transition(H).remove().attr("d", () => {
|
|
9779
|
-
const C = { x:
|
|
9780
|
+
const C = { x: b.x, y: b.y };
|
|
9780
9781
|
return y({ source: C, target: C });
|
|
9781
9782
|
}), u.eachBefore((C) => {
|
|
9782
9783
|
C.x0 = C.x, C.y0 = C.y;
|
|
9783
9784
|
});
|
|
9784
|
-
}, m = u.descendants(), v = m[m.length - 1].depth, S = O(a, "tree", "type") ===
|
|
9785
|
+
}, m = u.descendants(), v = m[m.length - 1].depth, S = O(a, "tree", "type") === bl.DENDROGRAM ? th().size([
|
|
9785
9786
|
s,
|
|
9786
9787
|
n - h - v * vn - c
|
|
9787
9788
|
]) : Bh().nodeSize([p, f]).size([
|
|
9788
9789
|
s,
|
|
9789
9790
|
n - h - v * vn - c
|
|
9790
|
-
]), y = ud().x((
|
|
9791
|
-
u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((
|
|
9792
|
-
|
|
9791
|
+
]), y = ud().x((b) => b.y).y((b) => b.x);
|
|
9792
|
+
u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((b, k) => {
|
|
9793
|
+
b.id = k, b._children = b.children;
|
|
9793
9794
|
}), S(u), e.attr("viewBox", [-d.left, -0, n, p]).style("user-select", "none");
|
|
9794
9795
|
const E = e.append("g").attr("class", "links"), x = e.append("g").attr("class", "nodes");
|
|
9795
9796
|
g(u);
|
|
9796
9797
|
}
|
|
9797
9798
|
}
|
|
9798
|
-
var gp = "#000000", mp = "#ffffff", vp = "#fcf4d6", yp = "#fddc69", Ep = "#f1c21b", xp = "#d2a106", Sp = "#b28600",
|
|
9799
|
+
var gp = "#000000", mp = "#ffffff", vp = "#fcf4d6", yp = "#fddc69", Ep = "#f1c21b", xp = "#d2a106", Sp = "#b28600", bp = "#8e6a00", Tp = "#684e00", Op = "#483700", Lp = "#302400", Ap = "#1c1500", Mp = {
|
|
9799
9800
|
10: vp,
|
|
9800
9801
|
20: yp,
|
|
9801
9802
|
30: Ep,
|
|
9802
9803
|
40: xp,
|
|
9803
9804
|
50: Sp,
|
|
9804
|
-
60:
|
|
9805
|
-
70:
|
|
9805
|
+
60: bp,
|
|
9806
|
+
70: Tp,
|
|
9806
9807
|
80: Op,
|
|
9807
9808
|
90: Lp,
|
|
9808
9809
|
100: Ap
|
|
@@ -9850,12 +9851,12 @@ var gp = "#000000", mp = "#ffffff", vp = "#fcf4d6", yp = "#fddc69", Ep = "#f1c21
|
|
|
9850
9851
|
80: gf,
|
|
9851
9852
|
90: mf,
|
|
9852
9853
|
100: vf
|
|
9853
|
-
}, Ef = "#edf5ff", xf = "#d0e2ff", Sf = "#a6c8ff",
|
|
9854
|
+
}, Ef = "#edf5ff", xf = "#d0e2ff", Sf = "#a6c8ff", bf = "#78a9ff", Tf = "#4589ff", Of = "#0f62fe", Lf = "#0043ce", Af = "#002d9c", Mf = "#001d6c", wf = "#001141", Cf = {
|
|
9854
9855
|
10: Ef,
|
|
9855
9856
|
20: xf,
|
|
9856
9857
|
30: Sf,
|
|
9857
|
-
40:
|
|
9858
|
-
50:
|
|
9858
|
+
40: bf,
|
|
9859
|
+
50: Tf,
|
|
9859
9860
|
60: Of,
|
|
9860
9861
|
70: Lf,
|
|
9861
9862
|
80: Af,
|
|
@@ -9905,11 +9906,11 @@ var gp = "#000000", mp = "#ffffff", vp = "#fcf4d6", yp = "#fddc69", Ep = "#f1c21
|
|
|
9905
9906
|
80: mg,
|
|
9906
9907
|
90: vg,
|
|
9907
9908
|
100: yg
|
|
9908
|
-
}, xg = "#f4f4f4", Sg = "#e0e0e0",
|
|
9909
|
+
}, xg = "#f4f4f4", Sg = "#e0e0e0", bg = "#c6c6c6", Tg = "#a8a8a8", Og = "#8d8d8d", Lg = "#6f6f6f", Ag = "#525252", Mg = "#393939", wg = "#262626", Cg = "#161616", kg = {
|
|
9909
9910
|
10: xg,
|
|
9910
9911
|
20: Sg,
|
|
9911
|
-
30:
|
|
9912
|
-
40:
|
|
9912
|
+
30: bg,
|
|
9913
|
+
40: Tg,
|
|
9913
9914
|
50: Og,
|
|
9914
9915
|
60: Lg,
|
|
9915
9916
|
70: Ag,
|
|
@@ -9991,7 +9992,7 @@ class Km extends dt {
|
|
|
9991
9992
|
}
|
|
9992
9993
|
init() {
|
|
9993
9994
|
const { events: t } = this.services;
|
|
9994
|
-
t.addEventListener(
|
|
9995
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
9995
9996
|
}
|
|
9996
9997
|
render(t = !0) {
|
|
9997
9998
|
const e = this.getComponentContainer({
|
|
@@ -10091,7 +10092,7 @@ class Km extends dt {
|
|
|
10091
10092
|
).style("fill", (o) => {
|
|
10092
10093
|
const c = t.model.getFillColor(o.parent.data.name, null, o.data);
|
|
10093
10094
|
return c && (a = c), Yr(a).darker(0.7).toString();
|
|
10094
|
-
}), t.services.events.dispatchEvent(
|
|
10095
|
+
}), t.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
10095
10096
|
event: e,
|
|
10096
10097
|
hoveredElement: s,
|
|
10097
10098
|
items: [
|
|
@@ -10105,22 +10106,22 @@ class Km extends dt {
|
|
|
10105
10106
|
value: n.data.value
|
|
10106
10107
|
}
|
|
10107
10108
|
]
|
|
10108
|
-
}), t.services.events.dispatchEvent(
|
|
10109
|
+
}), t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEOVER, {
|
|
10109
10110
|
event: e,
|
|
10110
10111
|
element: s,
|
|
10111
10112
|
datum: n
|
|
10112
10113
|
});
|
|
10113
10114
|
}).on("mousemove", function(e, n) {
|
|
10114
10115
|
const s = D(this);
|
|
10115
|
-
t.services.events.dispatchEvent(
|
|
10116
|
+
t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEMOVE, {
|
|
10116
10117
|
event: e,
|
|
10117
10118
|
element: s,
|
|
10118
10119
|
datum: n
|
|
10119
|
-
}), t.services.events.dispatchEvent(
|
|
10120
|
+
}), t.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
10120
10121
|
event: e
|
|
10121
10122
|
});
|
|
10122
10123
|
}).on("click", function(e, n) {
|
|
10123
|
-
t.services.events.dispatchEvent(
|
|
10124
|
+
t.services.events.dispatchEvent(T.Treemap.LEAF_CLICK, {
|
|
10124
10125
|
event: e,
|
|
10125
10126
|
element: D(this),
|
|
10126
10127
|
datum: n
|
|
@@ -10135,11 +10136,11 @@ class Km extends dt {
|
|
|
10135
10136
|
transition: r,
|
|
10136
10137
|
name: "graph_element_mouseout_fill_update"
|
|
10137
10138
|
})
|
|
10138
|
-
).style("fill", (r) => t.model.getFillColor(r.parent.data.name, null, r.data)), t.services.events.dispatchEvent(
|
|
10139
|
+
).style("fill", (r) => t.model.getFillColor(r.parent.data.name, null, r.data)), t.services.events.dispatchEvent(T.Treemap.LEAF_MOUSEOUT, {
|
|
10139
10140
|
event: e,
|
|
10140
10141
|
element: s,
|
|
10141
10142
|
datum: n
|
|
10142
|
-
}), t.services.events.dispatchEvent(
|
|
10143
|
+
}), t.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
10143
10144
|
hoveredElement: s
|
|
10144
10145
|
});
|
|
10145
10146
|
});
|
|
@@ -10241,12 +10242,12 @@ function Kg() {
|
|
|
10241
10242
|
rectangular: m
|
|
10242
10243
|
}, n = 64, s = 2048;
|
|
10243
10244
|
ui = function() {
|
|
10244
|
-
var E = [256, 256], x = a,
|
|
10245
|
+
var E = [256, 256], x = a, b = r, k = c, _ = o, G = o, R = l, A = h, H = g, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
|
|
10245
10246
|
C.canvas = function(F) {
|
|
10246
10247
|
return arguments.length ? (V = y(F), C) : V;
|
|
10247
10248
|
}, C.start = function() {
|
|
10248
10249
|
var F = q(V()), Z = v((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
|
|
10249
|
-
return st.text = x.call(this, st, it), st.font =
|
|
10250
|
+
return st.text = x.call(this, st, it), st.font = b.call(this, st, it), st.style = _.call(this, st, it), st.weight = G.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~k.call(this, st, it), st.padding = A.call(this, st, it), st;
|
|
10250
10251
|
}).sort(function(st, it) {
|
|
10251
10252
|
return it.size - st.size;
|
|
10252
10253
|
});
|
|
@@ -10274,11 +10275,11 @@ function Kg() {
|
|
|
10274
10275
|
E[0], E[1];
|
|
10275
10276
|
for (var j = Z.x, Y = Z.y, K = Math.sqrt(E[0] * E[0] + E[1] * E[1]), ot = H(E), ct = $() < 0.5 ? 1 : -1, st = -ct, it, z, B; (it = ot(st += ct)) && (z = ~~it[0], B = ~~it[1], !(Math.min(Math.abs(z), Math.abs(B)) >= K)); )
|
|
10276
10277
|
if (Z.x = j + z, Z.y = Y + B, !(Z.x + Z.x0 < 0 || Z.y + Z.y0 < 0 || Z.x + Z.x1 > E[0] || Z.y + Z.y1 > E[1]) && (!rt || f(Z, rt)) && !u(Z, F, E[0])) {
|
|
10277
|
-
for (var U = Z.sprite, wt = Z.width >> 5,
|
|
10278
|
+
for (var U = Z.sprite, wt = Z.width >> 5, be = E[0] >> 5, et = Z.x - (wt << 4), yt = et & 127, Zt = 32 - yt, Wt = Z.y1 - Z.y0, on = (Z.y + Z.y0) * be + (et >> 5), ln, Le = 0; Le < Wt; Le++) {
|
|
10278
10279
|
ln = 0;
|
|
10279
10280
|
for (var ne = 0; ne <= wt; ne++)
|
|
10280
10281
|
F[on + ne] |= ln << Zt | (ne < wt ? (ln = U[Le * wt + ne]) >>> yt : 0);
|
|
10281
|
-
on +=
|
|
10282
|
+
on += be;
|
|
10282
10283
|
}
|
|
10283
10284
|
return !0;
|
|
10284
10285
|
}
|
|
@@ -10291,7 +10292,7 @@ function Kg() {
|
|
|
10291
10292
|
}, C.size = function(F) {
|
|
10292
10293
|
return arguments.length ? (E = [+F[0], +F[1]], C) : E;
|
|
10293
10294
|
}, C.font = function(F) {
|
|
10294
|
-
return arguments.length ? (
|
|
10295
|
+
return arguments.length ? (b = y(F), C) : b;
|
|
10295
10296
|
}, C.fontStyle = function(F) {
|
|
10296
10297
|
return arguments.length ? (_ = y(F), C) : _;
|
|
10297
10298
|
}, C.fontWeight = function(F) {
|
|
@@ -10331,13 +10332,13 @@ function Kg() {
|
|
|
10331
10332
|
function h() {
|
|
10332
10333
|
return 1;
|
|
10333
10334
|
}
|
|
10334
|
-
function d(E, x,
|
|
10335
|
+
function d(E, x, b, k) {
|
|
10335
10336
|
if (!x.sprite) {
|
|
10336
10337
|
var _ = E.context, G = E.ratio;
|
|
10337
10338
|
_.clearRect(0, 0, (n << 5) / G, s / G);
|
|
10338
|
-
var R = 0, A = 0, H = 0, N =
|
|
10339
|
+
var R = 0, A = 0, H = 0, N = b.length;
|
|
10339
10340
|
for (--k; ++k < N; ) {
|
|
10340
|
-
x =
|
|
10341
|
+
x = b[k], _.save(), _.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / G) + "px " + x.font;
|
|
10341
10342
|
const it = _.measureText(x.text), z = -Math.floor(it.width / 2);
|
|
10342
10343
|
let B = (it.width + 1) * G, U = x.size << 1;
|
|
10343
10344
|
if (x.rotate) {
|
|
@@ -10349,7 +10350,7 @@ function Kg() {
|
|
|
10349
10350
|
_.translate((R + (B >> 1)) / G, (A + (U >> 1)) / G), x.rotate && _.rotate(x.rotate * t), _.fillText(x.text, z, 0), x.padding && (_.lineWidth = 2 * x.padding, _.strokeText(x.text, z, 0)), _.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
|
|
10350
10351
|
}
|
|
10351
10352
|
for (var q = _.getImageData(0, 0, (n << 5) / G, s / G).data, X = []; --k >= 0; )
|
|
10352
|
-
if (x =
|
|
10353
|
+
if (x = b[k], !!x.hasText) {
|
|
10353
10354
|
for (var F = x.width, Z = F >> 5, rt = x.y1 - x.y0, j = 0; j < rt * Z; j++) X[j] = 0;
|
|
10354
10355
|
if (R = x.xoff, R == null) return;
|
|
10355
10356
|
A = x.yoff;
|
|
@@ -10364,42 +10365,42 @@ function Kg() {
|
|
|
10364
10365
|
}
|
|
10365
10366
|
}
|
|
10366
10367
|
}
|
|
10367
|
-
function u(E, x,
|
|
10368
|
-
|
|
10369
|
-
for (var k = E.sprite, _ = E.width >> 5, G = E.x - (_ << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) *
|
|
10368
|
+
function u(E, x, b) {
|
|
10369
|
+
b >>= 5;
|
|
10370
|
+
for (var k = E.sprite, _ = E.width >> 5, G = E.x - (_ << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * b + (G >> 5), M, L = 0; L < H; L++) {
|
|
10370
10371
|
M = 0;
|
|
10371
10372
|
for (var P = 0; P <= _; P++)
|
|
10372
10373
|
if ((M << A | (P < _ ? (M = k[L * _ + P]) >>> R : 0)) & x[N + P]) return !0;
|
|
10373
|
-
N +=
|
|
10374
|
+
N += b;
|
|
10374
10375
|
}
|
|
10375
10376
|
return !1;
|
|
10376
10377
|
}
|
|
10377
10378
|
function p(E, x) {
|
|
10378
|
-
var
|
|
10379
|
-
x.x + x.x0 <
|
|
10379
|
+
var b = E[0], k = E[1];
|
|
10380
|
+
x.x + x.x0 < b.x && (b.x = x.x + x.x0), x.y + x.y0 < b.y && (b.y = x.y + x.y0), x.x + x.x1 > k.x && (k.x = x.x + x.x1), x.y + x.y1 > k.y && (k.y = x.y + x.y1);
|
|
10380
10381
|
}
|
|
10381
10382
|
function f(E, x) {
|
|
10382
10383
|
return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
|
|
10383
10384
|
}
|
|
10384
10385
|
function g(E) {
|
|
10385
10386
|
var x = E[0] / E[1];
|
|
10386
|
-
return function(
|
|
10387
|
-
return [x * (
|
|
10387
|
+
return function(b) {
|
|
10388
|
+
return [x * (b *= 0.1) * Math.cos(b), b * Math.sin(b)];
|
|
10388
10389
|
};
|
|
10389
10390
|
}
|
|
10390
10391
|
function m(E) {
|
|
10391
|
-
var x = 4,
|
|
10392
|
+
var x = 4, b = x * E[0] / E[1], k = 0, _ = 0;
|
|
10392
10393
|
return function(G) {
|
|
10393
10394
|
var R = G < 0 ? -1 : 1;
|
|
10394
10395
|
switch (Math.sqrt(1 + 4 * R * G) - R & 3) {
|
|
10395
10396
|
case 0:
|
|
10396
|
-
k +=
|
|
10397
|
+
k += b;
|
|
10397
10398
|
break;
|
|
10398
10399
|
case 1:
|
|
10399
10400
|
_ += x;
|
|
10400
10401
|
break;
|
|
10401
10402
|
case 2:
|
|
10402
|
-
k -=
|
|
10403
|
+
k -= b;
|
|
10403
10404
|
break;
|
|
10404
10405
|
default:
|
|
10405
10406
|
_ -= x;
|
|
@@ -10409,7 +10410,7 @@ function Kg() {
|
|
|
10409
10410
|
};
|
|
10410
10411
|
}
|
|
10411
10412
|
function v(E) {
|
|
10412
|
-
for (var x = [],
|
|
10413
|
+
for (var x = [], b = -1; ++b < E; ) x[b] = 0;
|
|
10413
10414
|
return x;
|
|
10414
10415
|
}
|
|
10415
10416
|
function S() {
|
|
@@ -10445,7 +10446,7 @@ class Jm extends dt {
|
|
|
10445
10446
|
}
|
|
10446
10447
|
init() {
|
|
10447
10448
|
const t = this.services.events;
|
|
10448
|
-
t.addEventListener(
|
|
10449
|
+
t.addEventListener(T.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(T.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
10449
10450
|
}
|
|
10450
10451
|
render(t = !0) {
|
|
10451
10452
|
const e = this, n = this.getComponentContainer({
|
|
@@ -10512,11 +10513,11 @@ class Jm extends dt {
|
|
|
10512
10513
|
}, 6);
|
|
10513
10514
|
this.parent.selectAll("text.word").on("mouseover", function(a, r) {
|
|
10514
10515
|
const o = this;
|
|
10515
|
-
s(o), n.services.events.dispatchEvent(
|
|
10516
|
+
s(o), n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEOVER, {
|
|
10516
10517
|
event: a,
|
|
10517
10518
|
element: D(this),
|
|
10518
10519
|
datum: r
|
|
10519
|
-
}), n.services.events.dispatchEvent(
|
|
10520
|
+
}), n.services.events.dispatchEvent(T.Tooltip.SHOW, {
|
|
10520
10521
|
event: a,
|
|
10521
10522
|
hoveredElement: o,
|
|
10522
10523
|
items: [
|
|
@@ -10540,25 +10541,25 @@ class Jm extends dt {
|
|
|
10540
10541
|
});
|
|
10541
10542
|
}).on("mousemove", function(a, r) {
|
|
10542
10543
|
const o = D(this);
|
|
10543
|
-
n.services.events.dispatchEvent(
|
|
10544
|
+
n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEMOVE, {
|
|
10544
10545
|
element: o,
|
|
10545
10546
|
datum: r
|
|
10546
|
-
}), n.services.events.dispatchEvent(
|
|
10547
|
+
}), n.services.events.dispatchEvent(T.Tooltip.MOVE, {
|
|
10547
10548
|
event: a
|
|
10548
10549
|
});
|
|
10549
10550
|
}).on("click", function(a, r) {
|
|
10550
|
-
n.services.events.dispatchEvent(
|
|
10551
|
+
n.services.events.dispatchEvent(T.WordCloud.WORD_CLICK, {
|
|
10551
10552
|
event: a,
|
|
10552
10553
|
element: D(this),
|
|
10553
10554
|
datum: r
|
|
10554
10555
|
});
|
|
10555
10556
|
}).on("mouseout", function(a, r) {
|
|
10556
10557
|
const o = D(this);
|
|
10557
|
-
s(null), n.services.events.dispatchEvent(
|
|
10558
|
+
s(null), n.services.events.dispatchEvent(T.WordCloud.WORD_MOUSEOUT, {
|
|
10558
10559
|
event: a,
|
|
10559
10560
|
element: o,
|
|
10560
10561
|
datum: r
|
|
10561
|
-
}), n.services.events.dispatchEvent(
|
|
10562
|
+
}), n.services.events.dispatchEvent(T.Tooltip.HIDE, {
|
|
10562
10563
|
hoveredElement: o
|
|
10563
10564
|
});
|
|
10564
10565
|
});
|
|
@@ -10707,7 +10708,7 @@ export {
|
|
|
10707
10708
|
cm as C,
|
|
10708
10709
|
$m as D,
|
|
10709
10710
|
Hm as E,
|
|
10710
|
-
|
|
10711
|
+
Tm as F,
|
|
10711
10712
|
gm as G,
|
|
10712
10713
|
dm as H,
|
|
10713
10714
|
Bm as I,
|
|
@@ -10729,7 +10730,7 @@ export {
|
|
|
10729
10730
|
sp as Y,
|
|
10730
10731
|
um as Z,
|
|
10731
10732
|
wm as _,
|
|
10732
|
-
|
|
10733
|
+
br as a,
|
|
10733
10734
|
Mm as a0,
|
|
10734
10735
|
Am as a1,
|
|
10735
10736
|
Lm as a2,
|
|
@@ -10740,7 +10741,7 @@ export {
|
|
|
10740
10741
|
tm as a7,
|
|
10741
10742
|
ea as a8,
|
|
10742
10743
|
dt as a9,
|
|
10743
|
-
|
|
10744
|
+
Tr as b,
|
|
10744
10745
|
yc as c,
|
|
10745
10746
|
Pd as d,
|
|
10746
10747
|
Nd as e,
|
|
@@ -10754,7 +10755,7 @@ export {
|
|
|
10754
10755
|
ip as m,
|
|
10755
10756
|
xm as n,
|
|
10756
10757
|
Sm as o,
|
|
10757
|
-
|
|
10758
|
+
bm as p,
|
|
10758
10759
|
Dm as q,
|
|
10759
10760
|
Qm as r,
|
|
10760
10761
|
Pm as s,
|
|
@@ -10766,4 +10767,4 @@ export {
|
|
|
10766
10767
|
qm as y,
|
|
10767
10768
|
Vm as z
|
|
10768
10769
|
};
|
|
10769
|
-
//# sourceMappingURL=choropleth-
|
|
10770
|
+
//# sourceMappingURL=choropleth-DvuP75LI.mjs.map
|