@carbon/charts-react 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +245 -237
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.cjs +8 -8
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.js +8 -8
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3516,7 +3516,7 @@ function yT(e) {
|
|
|
3516
3516
|
d = es(d);
|
|
3517
3517
|
var h = d.fill, p = d.align, f = d.sign, g = d.symbol, m = d.zero, v = d.width, b = d.comma, _ = d.precision, E = d.trim, x = d.type;
|
|
3518
3518
|
x === "n" ? (b = !0, x = "g") : wh[x] || (_ === void 0 && (_ = 12), E = !0, x = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
|
|
3519
|
-
var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = g === "$" ? r : /[%p]/.test(x) ? a : "", D = wh[x],
|
|
3519
|
+
var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = g === "$" ? r : /[%p]/.test(x) ? a : "", D = wh[x], C = /[defgprs%]/.test(x);
|
|
3520
3520
|
_ = _ === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
3521
3521
|
function R($) {
|
|
3522
3522
|
var H = S, P = M, B, O, w;
|
|
@@ -3525,7 +3525,7 @@ function yT(e) {
|
|
|
3525
3525
|
else {
|
|
3526
3526
|
$ = +$;
|
|
3527
3527
|
var k = $ < 0 || 1 / $ < 0;
|
|
3528
|
-
if ($ = isNaN($) ? l : D(Math.abs($), _), E && ($ = gT($)), k && +$ == 0 && f !== "+" && (k = !1), H = (k ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (k && f === "(" ? ")" : ""),
|
|
3528
|
+
if ($ = isNaN($) ? l : D(Math.abs($), _), E && ($ = gT($)), k && +$ == 0 && f !== "+" && (k = !1), H = (k ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (k && f === "(" ? ")" : ""), C) {
|
|
3529
3529
|
for (B = -1, O = $.length; ++B < O; )
|
|
3530
3530
|
if (w = $.charCodeAt(B), 48 > w || w > 57) {
|
|
3531
3531
|
P = (w === 46 ? i + $.slice(B + 1) : $.slice(B)) + P, $ = $.slice(0, B);
|
|
@@ -7023,8 +7023,8 @@ function ba(e, t, n) {
|
|
|
7023
7023
|
return c = S, o = setTimeout(v, t), u ? p(S) : a;
|
|
7024
7024
|
}
|
|
7025
7025
|
function g(S) {
|
|
7026
|
-
var M = S - l, D = S - c,
|
|
7027
|
-
return d ? b$(
|
|
7026
|
+
var M = S - l, D = S - c, C = t - M;
|
|
7027
|
+
return d ? b$(C, s - D) : C;
|
|
7028
7028
|
}
|
|
7029
7029
|
function m(S) {
|
|
7030
7030
|
var M = S - l, D = S - c;
|
|
@@ -7395,7 +7395,7 @@ function P$(e) {
|
|
|
7395
7395
|
L: Q$,
|
|
7396
7396
|
m: Y$,
|
|
7397
7397
|
M: Z$,
|
|
7398
|
-
p:
|
|
7398
|
+
p: C,
|
|
7399
7399
|
q: q$,
|
|
7400
7400
|
Q: eM,
|
|
7401
7401
|
s: nM,
|
|
@@ -7444,7 +7444,7 @@ function P$(e) {
|
|
|
7444
7444
|
}
|
|
7445
7445
|
return V;
|
|
7446
7446
|
}
|
|
7447
|
-
function
|
|
7447
|
+
function C(z, W, X) {
|
|
7448
7448
|
var V = c.exec(W.slice(X));
|
|
7449
7449
|
return V ? (z.p = u.get(V[0].toLowerCase()), X + V[0].length) : -1;
|
|
7450
7450
|
}
|
|
@@ -8956,10 +8956,10 @@ function VC() {
|
|
|
8956
8956
|
function co(e, t) {
|
|
8957
8957
|
var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Qs || e === Ci ? -1 : 1, u = e === Ci || e === Js ? "x" : "y", d = e === Qs || e === Nl ? PC : UC;
|
|
8958
8958
|
function h(p) {
|
|
8959
|
-
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : NC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? HC : BC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), D = M.exit(),
|
|
8960
|
-
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(
|
|
8959
|
+
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : NC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? HC : BC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), D = M.exit(), C = M.enter().append("g").attr("class", "tick"), R = M.select("line"), $ = M.select("text");
|
|
8960
|
+
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), $ = $.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), M = M.transition(p), R = R.transition(p), $ = $.transition(p), D = D.transition(p).attr("opacity", vd).attr("transform", function(H) {
|
|
8961
8961
|
return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
|
|
8962
|
-
}),
|
|
8962
|
+
}), C.attr("opacity", vd).attr("transform", function(H) {
|
|
8963
8963
|
var P = this.parentNode.__axis;
|
|
8964
8964
|
return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
|
|
8965
8965
|
})), D.remove(), S.attr("d", e === Ci || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), M.attr("opacity", 1).attr("transform", function(H) {
|
|
@@ -9155,10 +9155,10 @@ function nA(e) {
|
|
|
9155
9155
|
u(this, arguments).end(_);
|
|
9156
9156
|
}).tween("brush", function() {
|
|
9157
9157
|
var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, M = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = ms(S, M);
|
|
9158
|
-
function
|
|
9158
|
+
function C(R) {
|
|
9159
9159
|
E.selection = R === 1 && M === null ? null : D(R), c.call(_), x.brush();
|
|
9160
9160
|
}
|
|
9161
|
-
return S !== null && M !== null ?
|
|
9161
|
+
return S !== null && M !== null ? C : C(1);
|
|
9162
9162
|
}) : m.each(function() {
|
|
9163
9163
|
var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), M = u(_, E).beforestart();
|
|
9164
9164
|
Ml(_), x.selection = S === null ? null : S, c.call(_), M.start(b).brush(b).end(b);
|
|
@@ -9216,7 +9216,7 @@ function nA(e) {
|
|
|
9216
9216
|
};
|
|
9217
9217
|
function h(m) {
|
|
9218
9218
|
if (o && !m.touches || !n.apply(this, arguments)) return;
|
|
9219
|
-
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : ZC[b], x = e === ta ? null : KC[b], S = qo(v), M = S.extent, D = S.selection,
|
|
9219
|
+
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : ZC[b], x = e === ta ? null : KC[b], S = qo(v), M = S.extent, D = S.selection, C = M[0][0], R, $, H = M[0][1], P, B, O = M[1][0], w, k, L = M[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
|
|
9220
9220
|
const yt = nt.identifier;
|
|
9221
9221
|
return nt = rr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
|
|
9222
9222
|
});
|
|
@@ -9226,7 +9226,7 @@ function nA(e) {
|
|
|
9226
9226
|
D && (Y = !0);
|
|
9227
9227
|
const nt = [tt[0], tt[1] || tt[0]];
|
|
9228
9228
|
S.selection = D = [[
|
|
9229
|
-
R = e === Wo ?
|
|
9229
|
+
R = e === Wo ? C : ee(nt[0][0], nt[1][0]),
|
|
9230
9230
|
P = e === ta ? H : ee(nt[0][1], nt[1][1])
|
|
9231
9231
|
], [
|
|
9232
9232
|
w = e === Wo ? O : te(nt[0][0], nt[1][0]),
|
|
@@ -9261,15 +9261,15 @@ function nA(e) {
|
|
|
9261
9261
|
switch (j = yt[0] - Se[0], F = yt[1] - Se[1], _) {
|
|
9262
9262
|
case jo:
|
|
9263
9263
|
case yd: {
|
|
9264
|
-
E && (j = te(
|
|
9264
|
+
E && (j = te(C - R, ee(O - w, j)), $ = R + j, k = w + j), x && (F = te(H - P, ee(L - U, F)), B = P + F, Z = U + F);
|
|
9265
9265
|
break;
|
|
9266
9266
|
}
|
|
9267
9267
|
case wr: {
|
|
9268
|
-
tt[1] ? (E && ($ = te(
|
|
9268
|
+
tt[1] ? (E && ($ = te(C, ee(O, tt[0][0])), k = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(L, tt[0][1])), Z = te(H, ee(L, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), $ = R + j, k = w) : E > 0 && (j = te(C - w, ee(O - w, j)), $ = R, k = w + j), x < 0 ? (F = te(H - P, ee(L - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(L - U, F)), B = P, Z = U + F));
|
|
9269
9269
|
break;
|
|
9270
9270
|
}
|
|
9271
9271
|
case $r: {
|
|
9272
|
-
E && ($ = te(
|
|
9272
|
+
E && ($ = te(C, ee(O, R - j * E)), k = te(C, ee(O, w + j * E))), x && (B = te(H, ee(L, P - F * x)), Z = te(H, ee(L, U + F * x)));
|
|
9273
9273
|
break;
|
|
9274
9274
|
}
|
|
9275
9275
|
}
|
|
@@ -9642,8 +9642,8 @@ function hA(e, t) {
|
|
|
9642
9642
|
for (var c = 0, u = e.length; c < u; ++c)
|
|
9643
9643
|
if (h = (d = e[c]).length)
|
|
9644
9644
|
for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = M, p = _) {
|
|
9645
|
-
var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), M = Tt(x), D = E - f,
|
|
9646
|
-
if (l.add(lr(H *
|
|
9645
|
+
var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), M = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, $ = R > ft, H = m * S;
|
|
9646
|
+
if (l.add(lr(H * C * xt(R), v * M + H * Tt(R))), a += $ ? D + C * Ee : D, $ ^ f >= n ^ E >= n) {
|
|
9647
9647
|
var P = Ma(ei(p), ei(_));
|
|
9648
9648
|
Fl(P);
|
|
9649
9649
|
var B = Ma(s, P);
|
|
@@ -9692,11 +9692,11 @@ function Bg(e, t, n, r) {
|
|
|
9692
9692
|
}
|
|
9693
9693
|
function _() {
|
|
9694
9694
|
v(d[0][0], d[0][1]), o.lineEnd();
|
|
9695
|
-
var E = o.clean(), x = a.result(), S, M = x.length, D,
|
|
9695
|
+
var E = o.clean(), x = a.result(), S, M = x.length, D, C, R;
|
|
9696
9696
|
if (d.pop(), c.push(d), d = null, !!M) {
|
|
9697
9697
|
if (E & 1) {
|
|
9698
|
-
if (
|
|
9699
|
-
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R =
|
|
9698
|
+
if (C = x[0], (D = C.length - 1) > 0) {
|
|
9699
|
+
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
|
|
9700
9700
|
i.lineEnd();
|
|
9701
9701
|
}
|
|
9702
9702
|
return;
|
|
@@ -9792,15 +9792,15 @@ function vA(e) {
|
|
|
9792
9792
|
if (!_) return !h && u;
|
|
9793
9793
|
var E = t * v / _, x = -t * b / _, S = Ma(g, m), M = Rs(g, E), D = Rs(m, x);
|
|
9794
9794
|
Yo(M, D);
|
|
9795
|
-
var
|
|
9795
|
+
var C = S, R = Ds(M, C), $ = Ds(C, C), H = R * R - $ * (Ds(M, M) - 1);
|
|
9796
9796
|
if (!(H < 0)) {
|
|
9797
|
-
var P = je(H), B = Rs(
|
|
9797
|
+
var P = je(H), B = Rs(C, (-R - P) / $);
|
|
9798
9798
|
if (Yo(B, M), B = zl(B), !h) return B;
|
|
9799
9799
|
var O = u[0], w = d[0], k = u[1], L = d[1], U;
|
|
9800
9800
|
w < O && (U = O, O = w, w = U);
|
|
9801
9801
|
var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
|
|
9802
9802
|
if (!j && L < k && (U = k, k = L, L = U), F ? j ? k + L > 0 ^ B[1] < (St(B[0] - O) < Ot ? k : L) : k <= B[1] && B[1] <= L : Z > ft ^ (O <= B[0] && B[0] <= w)) {
|
|
9803
|
-
var Y = Rs(
|
|
9803
|
+
var Y = Rs(C, (-R + P) / $);
|
|
9804
9804
|
return Yo(Y, M), [B, zl(Y)];
|
|
9805
9805
|
}
|
|
9806
9806
|
}
|
|
@@ -9886,7 +9886,7 @@ function xA(e, t, n, r) {
|
|
|
9886
9886
|
function D(O, w) {
|
|
9887
9887
|
i(O, w) && u.point(O, w);
|
|
9888
9888
|
}
|
|
9889
|
-
function
|
|
9889
|
+
function C() {
|
|
9890
9890
|
for (var O = 0, w = 0, k = p.length; w < k; ++w)
|
|
9891
9891
|
for (var L = p[w], U = 1, Z = L.length, j = L[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
|
|
9892
9892
|
F = ot, Y = Q, j = L[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
|
|
@@ -9896,7 +9896,7 @@ function xA(e, t, n, r) {
|
|
|
9896
9896
|
u = d, h = [], p = [], S = !0;
|
|
9897
9897
|
}
|
|
9898
9898
|
function $() {
|
|
9899
|
-
var O =
|
|
9899
|
+
var O = C(), w = S && O, k = (h = Cg(h)).length;
|
|
9900
9900
|
(w || k) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), k && Ug(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
|
|
9901
9901
|
}
|
|
9902
9902
|
function H() {
|
|
@@ -10234,8 +10234,8 @@ function PA(e, t) {
|
|
|
10234
10234
|
function n(r, i, s, a, o, l, c, u, d, h, p, f, g, m) {
|
|
10235
10235
|
var v = c - r, b = u - i, _ = v * v + b * b;
|
|
10236
10236
|
if (_ > 4 * t && g--) {
|
|
10237
|
-
var E = a + h, x = o + p, S = l + f, M = je(E * E + x * x + S * S), D = Cn(S /= M),
|
|
10238
|
-
(O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < IA) && (n(r, i, s, a, o, l, $, H,
|
|
10237
|
+
var E = a + h, x = o + p, S = l + f, M = je(E * E + x * x + S * S), D = Cn(S /= M), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, D), $ = R[0], H = R[1], P = $ - r, B = H - i, O = b * P - v * B;
|
|
10238
|
+
(O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < IA) && (n(r, i, s, a, o, l, $, H, C, E /= M, x /= M, S, g, m), m.point($, H), n($, H, C, E, x, S, c, u, d, h, p, f, g, m));
|
|
10239
10239
|
}
|
|
10240
10240
|
}
|
|
10241
10241
|
return function(r) {
|
|
@@ -10250,14 +10250,14 @@ function PA(e, t) {
|
|
|
10250
10250
|
r.polygonEnd(), m.lineStart = b;
|
|
10251
10251
|
}
|
|
10252
10252
|
};
|
|
10253
|
-
function v(D,
|
|
10254
|
-
D = e(D,
|
|
10253
|
+
function v(D, C) {
|
|
10254
|
+
D = e(D, C), r.point(D[0], D[1]);
|
|
10255
10255
|
}
|
|
10256
10256
|
function b() {
|
|
10257
10257
|
d = NaN, m.point = _, r.lineStart();
|
|
10258
10258
|
}
|
|
10259
|
-
function _(D,
|
|
10260
|
-
var R = ei([D,
|
|
10259
|
+
function _(D, C) {
|
|
10260
|
+
var R = ei([D, C]), $ = e(D, C);
|
|
10261
10261
|
n(d, h, u, p, f, g, d = $[0], h = $[1], u = D, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
|
|
10262
10262
|
}
|
|
10263
10263
|
function E() {
|
|
@@ -10266,8 +10266,8 @@ function PA(e, t) {
|
|
|
10266
10266
|
function x() {
|
|
10267
10267
|
b(), m.point = S, m.lineEnd = M;
|
|
10268
10268
|
}
|
|
10269
|
-
function S(D,
|
|
10270
|
-
_(i = D,
|
|
10269
|
+
function S(D, C) {
|
|
10270
|
+
_(i = D, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
|
|
10271
10271
|
}
|
|
10272
10272
|
function M() {
|
|
10273
10273
|
n(d, h, u, p, f, g, s, a, i, o, l, c, Hd, r), m.lineEnd = E, E();
|
|
@@ -10312,7 +10312,7 @@ function uo(e) {
|
|
|
10312
10312
|
})();
|
|
10313
10313
|
}
|
|
10314
10314
|
function Qg(e) {
|
|
10315
|
-
var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = Dd, m = null, v, b, _, E = ql, x = 0.5, S, M, D,
|
|
10315
|
+
var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = Dd, m = null, v, b, _, E = ql, x = 0.5, S, M, D, C, R;
|
|
10316
10316
|
function $(O) {
|
|
10317
10317
|
return D(O[0] * Bt, O[1] * Bt);
|
|
10318
10318
|
}
|
|
@@ -10320,7 +10320,7 @@ function Qg(e) {
|
|
|
10320
10320
|
return O = D.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
|
|
10321
10321
|
}
|
|
10322
10322
|
$.stream = function(O) {
|
|
10323
|
-
return
|
|
10323
|
+
return C && R === O ? C : C = UA(BA(u)(g(S(E(R = O)))));
|
|
10324
10324
|
}, $.preclip = function(O) {
|
|
10325
10325
|
return arguments.length ? (g = O, f = void 0, B()) : g;
|
|
10326
10326
|
}, $.postclip = function(O) {
|
|
@@ -10359,7 +10359,7 @@ function Qg(e) {
|
|
|
10359
10359
|
return u = Ng(o, l, c), M = jl(t, w), D = jl(u, M), S = Vd(M, x), B();
|
|
10360
10360
|
}
|
|
10361
10361
|
function B() {
|
|
10362
|
-
return
|
|
10362
|
+
return C = R = null, $;
|
|
10363
10363
|
}
|
|
10364
10364
|
return function() {
|
|
10365
10365
|
return t = e.apply(this, arguments), $.invert = t.invert && H, P();
|
|
@@ -10756,10 +10756,10 @@ function Ii(e, t) {
|
|
|
10756
10756
|
};
|
|
10757
10757
|
}
|
|
10758
10758
|
function sv(e, t, n) {
|
|
10759
|
-
var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, M = (g * m - f * v) / x, D = (p * _ - h * E) / (x * 2) - i,
|
|
10759
|
+
var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, M = (g * m - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = M * M + C * C - 1, $ = 2 * (s + S * M + D * C), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? ($ + Math.sqrt($ * $ - 4 * R * H)) / (2 * R) : H / $);
|
|
10760
10760
|
return {
|
|
10761
10761
|
x: r + S + M * P,
|
|
10762
|
-
y: i + D +
|
|
10762
|
+
y: i + D + C * P,
|
|
10763
10763
|
r: P
|
|
10764
10764
|
};
|
|
10765
10765
|
}
|
|
@@ -11031,14 +11031,14 @@ function rL(e, t, n, r, i, s, a, o) {
|
|
|
11031
11031
|
return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
|
|
11032
11032
|
}
|
|
11033
11033
|
function Bs(e, t, n, r, i, s, a) {
|
|
11034
|
-
var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, M = (_ < 0 ? -1 : 1) * Hr(HM(0, x * x * E - S * S)), D = (S * _ - b * M) / E,
|
|
11035
|
-
return H * H + P * P > B * B + O * O && (D = R,
|
|
11034
|
+
var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, M = (_ < 0 ? -1 : 1) * Hr(HM(0, x * x * E - S * S)), D = (S * _ - b * M) / E, C = (-S * b - _ * M) / E, R = (S * _ + b * M) / E, $ = (-S * b + _ * M) / E, H = D - m, P = C - v, B = R - m, O = $ - v;
|
|
11035
|
+
return H * H + P * P > B * B + O * O && (D = R, C = $), {
|
|
11036
11036
|
cx: D,
|
|
11037
|
-
cy:
|
|
11037
|
+
cy: C,
|
|
11038
11038
|
x01: -u,
|
|
11039
11039
|
y01: -d,
|
|
11040
11040
|
x11: D * (i / x - 1),
|
|
11041
|
-
y11:
|
|
11041
|
+
y11: C * (i / x - 1)
|
|
11042
11042
|
};
|
|
11043
11043
|
}
|
|
11044
11044
|
function os() {
|
|
@@ -11049,9 +11049,9 @@ function os() {
|
|
|
11049
11049
|
else if (m > Ks - ne)
|
|
11050
11050
|
o.moveTo(p * qn(f), p * Ze(f)), o.arc(0, 0, p, f, g, !v), h > ne && (o.moveTo(h * qn(g), h * Ze(g)), o.arc(0, 0, h, g, f, v));
|
|
11051
11051
|
else {
|
|
11052
|
-
var b = f, _ = g, E = f, x = g, S = m, M = m, D = a.apply(this, arguments) / 2,
|
|
11053
|
-
if (
|
|
11054
|
-
var O = id(
|
|
11052
|
+
var b = f, _ = g, E = f, x = g, S = m, M = m, D = a.apply(this, arguments) / 2, C = D > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), $ = R, H = R, P, B;
|
|
11053
|
+
if (C > ne) {
|
|
11054
|
+
var O = id(C / h * Ze(D)), w = id(C / p * Ze(D));
|
|
11055
11055
|
(S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), (M -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : (M = 0, b = _ = (f + g) / 2);
|
|
11056
11056
|
}
|
|
11057
11057
|
var k = p * qn(b), L = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
|
|
@@ -11521,7 +11521,7 @@ const Si = {
|
|
|
11521
11521
|
};
|
|
11522
11522
|
function dv() {
|
|
11523
11523
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : IL();
|
|
11524
|
-
const t = (
|
|
11524
|
+
const t = (A) => dv(A);
|
|
11525
11525
|
if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== Si.document || !e.Element)
|
|
11526
11526
|
return t.isSupported = !1, t;
|
|
11527
11527
|
let {
|
|
@@ -11539,15 +11539,15 @@ function dv() {
|
|
|
11539
11539
|
trustedTypes: p
|
|
11540
11540
|
} = e, f = l.prototype, g = Oi(f, "cloneNode"), m = Oi(f, "remove"), v = Oi(f, "nextSibling"), b = Oi(f, "childNodes"), _ = Oi(f, "parentNode");
|
|
11541
11541
|
if (typeof a == "function") {
|
|
11542
|
-
const
|
|
11543
|
-
|
|
11542
|
+
const A = n.createElement("template");
|
|
11543
|
+
A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
|
|
11544
11544
|
}
|
|
11545
11545
|
let E, x = "";
|
|
11546
11546
|
const {
|
|
11547
11547
|
implementation: S,
|
|
11548
11548
|
createNodeIterator: M,
|
|
11549
11549
|
createDocumentFragment: D,
|
|
11550
|
-
getElementsByTagName:
|
|
11550
|
+
getElementsByTagName: C
|
|
11551
11551
|
} = n, {
|
|
11552
11552
|
importNode: R
|
|
11553
11553
|
} = r;
|
|
@@ -11603,43 +11603,43 @@ function dv() {
|
|
|
11603
11603
|
let ui = null;
|
|
11604
11604
|
const i1 = ["application/xhtml+xml", "text/html"], s1 = "text/html";
|
|
11605
11605
|
let qt = null, _r = null;
|
|
11606
|
-
const a1 = n.createElement("form"), Eu = function(
|
|
11607
|
-
return
|
|
11606
|
+
const a1 = n.createElement("form"), Eu = function(A) {
|
|
11607
|
+
return A instanceof RegExp || A instanceof Function;
|
|
11608
11608
|
}, _o = function() {
|
|
11609
|
-
let
|
|
11610
|
-
if (!(_r && _r ===
|
|
11611
|
-
if ((!
|
|
11612
|
-
i1.indexOf(
|
|
11613
|
-
if (typeof
|
|
11609
|
+
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
11610
|
+
if (!(_r && _r === A)) {
|
|
11611
|
+
if ((!A || typeof A != "object") && (A = {}), A = mn(A), ui = // eslint-disable-next-line unicorn/prefer-includes
|
|
11612
|
+
i1.indexOf(A.PARSER_MEDIA_TYPE) === -1 ? s1 : A.PARSER_MEDIA_TYPE, qt = ui === "application/xhtml+xml" ? nl : ra, j = Ue(A, "ALLOWED_TAGS") ? pt({}, A.ALLOWED_TAGS, qt) : F, Y = Ue(A, "ALLOWED_ATTR") ? pt({}, A.ALLOWED_ATTR, qt) : ot, bo = Ue(A, "ALLOWED_NAMESPACES") ? pt({}, A.ALLOWED_NAMESPACES, nl) : n1, yo = Ue(A, "ADD_URI_SAFE_ATTR") ? pt(mn(_u), A.ADD_URI_SAFE_ATTR, qt) : _u, xu = Ue(A, "ADD_DATA_URI_TAGS") ? pt(mn(bu), A.ADD_DATA_URI_TAGS, qt) : bu, xr = Ue(A, "FORBID_CONTENTS") ? pt({}, A.FORBID_CONTENTS, qt) : yu, q = Ue(A, "FORBID_TAGS") ? pt({}, A.FORBID_TAGS, qt) : mn({}), tt = Ue(A, "FORBID_ATTR") ? pt({}, A.FORBID_ATTR, qt) : mn({}), yr = Ue(A, "USE_PROFILES") ? A.USE_PROFILES : !1, lt = A.ALLOW_ARIA_ATTR !== !1, z = A.ALLOW_DATA_ATTR !== !1, W = A.ALLOW_UNKNOWN_PROTOCOLS || !1, X = A.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = A.SAFE_FOR_TEMPLATES || !1, ut = A.SAFE_FOR_XML !== !1, st = A.WHOLE_DOCUMENT || !1, nt = A.RETURN_DOM || !1, yt = A.RETURN_DOM_FRAGMENT || !1, Se = A.RETURN_TRUSTED_TYPE || !1, Nt = A.FORCE_BODY || !1, ge = A.SANITIZE_DOM !== !1, li = A.SANITIZE_NAMED_PROPS || !1, Fn = A.KEEP_CONTENT !== !1, Ie = A.IN_PLACE || !1, Z = A.ALLOWED_URI_REGEXP || uv, br = A.NAMESPACE || on, Ss = A.MATHML_TEXT_INTEGRATION_POINTS || Ss, Ts = A.HTML_INTEGRATION_POINTS || Ts, Q = A.CUSTOM_ELEMENT_HANDLING || {}, A.CUSTOM_ELEMENT_HANDLING && Eu(A.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = A.CUSTOM_ELEMENT_HANDLING.tagNameCheck), A.CUSTOM_ELEMENT_HANDLING && Eu(A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), A.CUSTOM_ELEMENT_HANDLING && typeof A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (z = !1), yt && (nt = !0), yr && (j = pt({}, Jd), Y = [], yr.html === !0 && (pt(j, Qd), pt(Y, tp)), yr.svg === !0 && (pt(j, rl), pt(Y, al), pt(Y, Vs)), yr.svgFilters === !0 && (pt(j, il), pt(Y, al), pt(Y, Vs)), yr.mathMl === !0 && (pt(j, sl), pt(Y, ep), pt(Y, Vs))), A.ADD_TAGS && (j === F && (j = mn(j)), pt(j, A.ADD_TAGS, qt)), A.ADD_ATTR && (Y === ot && (Y = mn(Y)), pt(Y, A.ADD_ATTR, qt)), A.ADD_URI_SAFE_ATTR && pt(yo, A.ADD_URI_SAFE_ATTR, qt), A.FORBID_CONTENTS && (xr === yu && (xr = mn(xr)), pt(xr, A.FORBID_CONTENTS, qt)), Fn && (j["#text"] = !0), st && pt(j, ["html", "head", "body"]), j.table && (pt(j, ["tbody"]), delete q.tbody), A.TRUSTED_TYPES_POLICY) {
|
|
11613
|
+
if (typeof A.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
11614
11614
|
throw Ei('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
11615
|
-
if (typeof
|
|
11615
|
+
if (typeof A.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
11616
11616
|
throw Ei('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
11617
|
-
E =
|
|
11617
|
+
E = A.TRUSTED_TYPES_POLICY, x = E.createHTML("");
|
|
11618
11618
|
} else
|
|
11619
11619
|
E === void 0 && (E = NL(p, i)), E !== null && typeof x == "string" && (x = E.createHTML(""));
|
|
11620
|
-
oe && oe(
|
|
11620
|
+
oe && oe(A), _r = A;
|
|
11621
11621
|
}
|
|
11622
|
-
}, Ou = pt({}, [...rl, ...il, ...TL]), Su = pt({}, [...sl, ...wL]), o1 = function(
|
|
11623
|
-
let J = _(
|
|
11622
|
+
}, Ou = pt({}, [...rl, ...il, ...TL]), Su = pt({}, [...sl, ...wL]), o1 = function(A) {
|
|
11623
|
+
let J = _(A);
|
|
11624
11624
|
(!J || !J.tagName) && (J = {
|
|
11625
11625
|
namespaceURI: br,
|
|
11626
11626
|
tagName: "template"
|
|
11627
11627
|
});
|
|
11628
|
-
const K = ra(
|
|
11629
|
-
return bo[
|
|
11630
|
-
}, jn = function(
|
|
11628
|
+
const K = ra(A.tagName), bt = ra(J.tagName);
|
|
11629
|
+
return bo[A.namespaceURI] ? A.namespaceURI === Os ? J.namespaceURI === on ? K === "svg" : J.namespaceURI === Es ? K === "svg" && (bt === "annotation-xml" || Ss[bt]) : !!Ou[K] : A.namespaceURI === Es ? J.namespaceURI === on ? K === "math" : J.namespaceURI === Os ? K === "math" && Ts[bt] : !!Su[K] : A.namespaceURI === on ? J.namespaceURI === Os && !Ts[bt] || J.namespaceURI === Es && !Ss[bt] ? !1 : !Su[K] && (r1[K] || !Ou[K]) : !!(ui === "application/xhtml+xml" && bo[A.namespaceURI]) : !1;
|
|
11630
|
+
}, jn = function(A) {
|
|
11631
11631
|
bi(t.removed, {
|
|
11632
|
-
element:
|
|
11632
|
+
element: A
|
|
11633
11633
|
});
|
|
11634
11634
|
try {
|
|
11635
|
-
_(
|
|
11635
|
+
_(A).removeChild(A);
|
|
11636
11636
|
} catch {
|
|
11637
|
-
m(
|
|
11637
|
+
m(A);
|
|
11638
11638
|
}
|
|
11639
|
-
}, Er = function(
|
|
11639
|
+
}, Er = function(A, J) {
|
|
11640
11640
|
try {
|
|
11641
11641
|
bi(t.removed, {
|
|
11642
|
-
attribute: J.getAttributeNode(
|
|
11642
|
+
attribute: J.getAttributeNode(A),
|
|
11643
11643
|
from: J
|
|
11644
11644
|
});
|
|
11645
11645
|
} catch {
|
|
@@ -11648,7 +11648,7 @@ function dv() {
|
|
|
11648
11648
|
from: J
|
|
11649
11649
|
});
|
|
11650
11650
|
}
|
|
11651
|
-
if (J.removeAttribute(
|
|
11651
|
+
if (J.removeAttribute(A), A === "is")
|
|
11652
11652
|
if (nt || yt)
|
|
11653
11653
|
try {
|
|
11654
11654
|
jn(J);
|
|
@@ -11656,19 +11656,19 @@ function dv() {
|
|
|
11656
11656
|
}
|
|
11657
11657
|
else
|
|
11658
11658
|
try {
|
|
11659
|
-
J.setAttribute(
|
|
11659
|
+
J.setAttribute(A, "");
|
|
11660
11660
|
} catch {
|
|
11661
11661
|
}
|
|
11662
|
-
}, Tu = function(
|
|
11662
|
+
}, Tu = function(A) {
|
|
11663
11663
|
let J = null, K = null;
|
|
11664
11664
|
if (Nt)
|
|
11665
|
-
|
|
11665
|
+
A = "<remove></remove>" + A;
|
|
11666
11666
|
else {
|
|
11667
|
-
const Pt = Kd(
|
|
11667
|
+
const Pt = Kd(A, /^[\r\n\t ]+/);
|
|
11668
11668
|
K = Pt && Pt[0];
|
|
11669
11669
|
}
|
|
11670
|
-
ui === "application/xhtml+xml" && br === on && (
|
|
11671
|
-
const bt = E ? E.createHTML(
|
|
11670
|
+
ui === "application/xhtml+xml" && br === on && (A = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + A + "</body></html>");
|
|
11671
|
+
const bt = E ? E.createHTML(A) : A;
|
|
11672
11672
|
if (br === on)
|
|
11673
11673
|
try {
|
|
11674
11674
|
J = new h().parseFromString(bt, ui);
|
|
@@ -11682,56 +11682,56 @@ function dv() {
|
|
|
11682
11682
|
}
|
|
11683
11683
|
}
|
|
11684
11684
|
const Xt = J.body || J.documentElement;
|
|
11685
|
-
return
|
|
11686
|
-
}, wu = function(
|
|
11685
|
+
return A && K && Xt.insertBefore(n.createTextNode(K), Xt.childNodes[0] || null), br === on ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Xt;
|
|
11686
|
+
}, wu = function(A) {
|
|
11687
11687
|
return M.call(
|
|
11688
|
-
|
|
11689
|
-
|
|
11688
|
+
A.ownerDocument || A,
|
|
11689
|
+
A,
|
|
11690
11690
|
// eslint-disable-next-line no-bitwise
|
|
11691
11691
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
11692
11692
|
null
|
|
11693
11693
|
);
|
|
11694
|
-
}, Eo = function(
|
|
11695
|
-
return
|
|
11696
|
-
}, $u = function(
|
|
11697
|
-
return typeof o == "function" &&
|
|
11694
|
+
}, Eo = function(A) {
|
|
11695
|
+
return A instanceof d && (typeof A.nodeName != "string" || typeof A.textContent != "string" || typeof A.removeChild != "function" || !(A.attributes instanceof u) || typeof A.removeAttribute != "function" || typeof A.setAttribute != "function" || typeof A.namespaceURI != "string" || typeof A.insertBefore != "function" || typeof A.hasChildNodes != "function");
|
|
11696
|
+
}, $u = function(A) {
|
|
11697
|
+
return typeof o == "function" && A instanceof o;
|
|
11698
11698
|
};
|
|
11699
|
-
function ln(
|
|
11700
|
-
Hs(
|
|
11699
|
+
function ln(A, J, K) {
|
|
11700
|
+
Hs(A, (bt) => {
|
|
11701
11701
|
bt.call(t, J, K, _r);
|
|
11702
11702
|
});
|
|
11703
11703
|
}
|
|
11704
|
-
const Mu = function(
|
|
11704
|
+
const Mu = function(A) {
|
|
11705
11705
|
let J = null;
|
|
11706
|
-
if (ln($.beforeSanitizeElements,
|
|
11707
|
-
return jn(
|
|
11708
|
-
const K = qt(
|
|
11709
|
-
if (ln($.uponSanitizeElement,
|
|
11706
|
+
if (ln($.beforeSanitizeElements, A, null), Eo(A))
|
|
11707
|
+
return jn(A), !0;
|
|
11708
|
+
const K = qt(A.nodeName);
|
|
11709
|
+
if (ln($.uponSanitizeElement, A, {
|
|
11710
11710
|
tagName: K,
|
|
11711
11711
|
allowedTags: j
|
|
11712
|
-
}), ut &&
|
|
11713
|
-
return jn(
|
|
11712
|
+
}), ut && A.hasChildNodes() && !$u(A.firstElementChild) && ie(/<[/\w!]/g, A.innerHTML) && ie(/<[/\w!]/g, A.textContent) || A.nodeType === Si.progressingInstruction || ut && A.nodeType === Si.comment && ie(/<[/\w]/g, A.data))
|
|
11713
|
+
return jn(A), !0;
|
|
11714
11714
|
if (!j[K] || q[K]) {
|
|
11715
11715
|
if (!q[K] && Au(K) && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
|
|
11716
11716
|
return !1;
|
|
11717
11717
|
if (Fn && !xr[K]) {
|
|
11718
|
-
const bt = _(
|
|
11718
|
+
const bt = _(A) || A.parentNode, Xt = b(A) || A.childNodes;
|
|
11719
11719
|
if (Xt && bt) {
|
|
11720
11720
|
const Pt = Xt.length;
|
|
11721
11721
|
for (let cn = Pt - 1; cn >= 0; --cn) {
|
|
11722
11722
|
const Ne = g(Xt[cn], !0);
|
|
11723
|
-
Ne.__removalCount = (
|
|
11723
|
+
Ne.__removalCount = (A.__removalCount || 0) + 1, bt.insertBefore(Ne, v(A));
|
|
11724
11724
|
}
|
|
11725
11725
|
}
|
|
11726
11726
|
}
|
|
11727
|
-
return jn(
|
|
11727
|
+
return jn(A), !0;
|
|
11728
11728
|
}
|
|
11729
|
-
return
|
|
11729
|
+
return A instanceof l && !o1(A) || (K === "noscript" || K === "noembed" || K === "noframes") && ie(/<\/no(script|embed|frames)/i, A.innerHTML) ? (jn(A), !0) : (V && A.nodeType === Si.text && (J = A.textContent, Hs([H, P, B], (bt) => {
|
|
11730
11730
|
J = _i(J, bt, " ");
|
|
11731
|
-
}),
|
|
11732
|
-
element:
|
|
11733
|
-
}),
|
|
11734
|
-
}, Cu = function(
|
|
11731
|
+
}), A.textContent !== J && (bi(t.removed, {
|
|
11732
|
+
element: A.cloneNode()
|
|
11733
|
+
}), A.textContent = J)), ln($.afterSanitizeElements, A, null), !1);
|
|
11734
|
+
}, Cu = function(A, J, K) {
|
|
11735
11735
|
if (ge && (J === "id" || J === "name") && (K in n || K in a1))
|
|
11736
11736
|
return !1;
|
|
11737
11737
|
if (!(z && !tt[J] && ie(O, J)) && !(lt && ie(w, J))) {
|
|
@@ -11740,22 +11740,22 @@ function dv() {
|
|
|
11740
11740
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
11741
11741
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11742
11742
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
11743
|
-
!(Au(
|
|
11743
|
+
!(Au(A) && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, A) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(A)) && (Q.attributeNameCheck instanceof RegExp && ie(Q.attributeNameCheck, J) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(J)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
11744
11744
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11745
11745
|
J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
|
|
11746
11746
|
) return !1;
|
|
11747
|
-
} else if (!yo[J] && !ie(Z, _i(K, L, "")) && !((J === "src" || J === "xlink:href" || J === "href") &&
|
|
11747
|
+
} else if (!yo[J] && !ie(Z, _i(K, L, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && _L(K, "data:") === 0 && xu[A]) && !(W && !ie(k, _i(K, L, ""))) && K)
|
|
11748
11748
|
return !1;
|
|
11749
11749
|
}
|
|
11750
11750
|
return !0;
|
|
11751
|
-
}, Au = function(
|
|
11752
|
-
return
|
|
11753
|
-
}, ku = function(
|
|
11754
|
-
ln($.beforeSanitizeAttributes,
|
|
11751
|
+
}, Au = function(A) {
|
|
11752
|
+
return A !== "annotation-xml" && Kd(A, U);
|
|
11753
|
+
}, ku = function(A) {
|
|
11754
|
+
ln($.beforeSanitizeAttributes, A, null);
|
|
11755
11755
|
const {
|
|
11756
11756
|
attributes: J
|
|
11757
|
-
} =
|
|
11758
|
-
if (!J || Eo(
|
|
11757
|
+
} = A;
|
|
11758
|
+
if (!J || Eo(A))
|
|
11759
11759
|
return;
|
|
11760
11760
|
const K = {
|
|
11761
11761
|
attrName: "",
|
|
@@ -11772,26 +11772,26 @@ function dv() {
|
|
|
11772
11772
|
value: Ne
|
|
11773
11773
|
} = Xt, Xe = qt(Pt), Oo = Ne;
|
|
11774
11774
|
let Qt = Pt === "value" ? Oo : EL(Oo);
|
|
11775
|
-
if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln($.uponSanitizeAttribute,
|
|
11776
|
-
Er(Pt,
|
|
11775
|
+
if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln($.uponSanitizeAttribute, A, K), Qt = K.attrValue, li && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ci + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
|
|
11776
|
+
Er(Pt, A);
|
|
11777
11777
|
continue;
|
|
11778
11778
|
}
|
|
11779
11779
|
if (K.forceKeepAttr)
|
|
11780
11780
|
continue;
|
|
11781
11781
|
if (!K.keepAttr) {
|
|
11782
|
-
Er(Pt,
|
|
11782
|
+
Er(Pt, A);
|
|
11783
11783
|
continue;
|
|
11784
11784
|
}
|
|
11785
11785
|
if (!X && ie(/\/>/i, Qt)) {
|
|
11786
|
-
Er(Pt,
|
|
11786
|
+
Er(Pt, A);
|
|
11787
11787
|
continue;
|
|
11788
11788
|
}
|
|
11789
11789
|
V && Hs([H, P, B], (c1) => {
|
|
11790
11790
|
Qt = _i(Qt, c1, " ");
|
|
11791
11791
|
});
|
|
11792
|
-
const Lu = qt(
|
|
11792
|
+
const Lu = qt(A.nodeName);
|
|
11793
11793
|
if (!Cu(Lu, Xe, Qt)) {
|
|
11794
|
-
Er(Pt,
|
|
11794
|
+
Er(Pt, A);
|
|
11795
11795
|
continue;
|
|
11796
11796
|
}
|
|
11797
11797
|
if (E && typeof p == "object" && typeof p.getAttributeType == "function" && !cn)
|
|
@@ -11807,50 +11807,50 @@ function dv() {
|
|
|
11807
11807
|
}
|
|
11808
11808
|
if (Qt !== Oo)
|
|
11809
11809
|
try {
|
|
11810
|
-
cn ?
|
|
11810
|
+
cn ? A.setAttributeNS(cn, Pt, Qt) : A.setAttribute(Pt, Qt), Eo(A) ? jn(A) : Zd(t.removed);
|
|
11811
11811
|
} catch {
|
|
11812
|
-
Er(Pt,
|
|
11812
|
+
Er(Pt, A);
|
|
11813
11813
|
}
|
|
11814
11814
|
}
|
|
11815
|
-
ln($.afterSanitizeAttributes,
|
|
11816
|
-
}, l1 = function
|
|
11815
|
+
ln($.afterSanitizeAttributes, A, null);
|
|
11816
|
+
}, l1 = function A(J) {
|
|
11817
11817
|
let K = null;
|
|
11818
11818
|
const bt = wu(J);
|
|
11819
11819
|
for (ln($.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
|
|
11820
|
-
ln($.uponSanitizeShadowNode, K, null), Mu(K), ku(K), K.content instanceof s &&
|
|
11820
|
+
ln($.uponSanitizeShadowNode, K, null), Mu(K), ku(K), K.content instanceof s && A(K.content);
|
|
11821
11821
|
ln($.afterSanitizeShadowDOM, J, null);
|
|
11822
11822
|
};
|
|
11823
|
-
return t.sanitize = function(
|
|
11823
|
+
return t.sanitize = function(A) {
|
|
11824
11824
|
let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Xt = null, Pt = null;
|
|
11825
|
-
if (xo = !
|
|
11826
|
-
if (typeof
|
|
11827
|
-
if (
|
|
11825
|
+
if (xo = !A, xo && (A = "<!-->"), typeof A != "string" && !$u(A))
|
|
11826
|
+
if (typeof A.toString == "function") {
|
|
11827
|
+
if (A = A.toString(), typeof A != "string")
|
|
11828
11828
|
throw Ei("dirty is not a string, aborting");
|
|
11829
11829
|
} else
|
|
11830
11830
|
throw Ei("toString is not a function");
|
|
11831
11831
|
if (!t.isSupported)
|
|
11832
|
-
return
|
|
11833
|
-
if (Dt || _o(J), t.removed = [], typeof
|
|
11834
|
-
if (
|
|
11835
|
-
const Xe = qt(
|
|
11832
|
+
return A;
|
|
11833
|
+
if (Dt || _o(J), t.removed = [], typeof A == "string" && (Ie = !1), Ie) {
|
|
11834
|
+
if (A.nodeName) {
|
|
11835
|
+
const Xe = qt(A.nodeName);
|
|
11836
11836
|
if (!j[Xe] || q[Xe])
|
|
11837
11837
|
throw Ei("root node is forbidden and cannot be sanitized in-place");
|
|
11838
11838
|
}
|
|
11839
|
-
} else if (
|
|
11840
|
-
K = Tu("<!---->"), bt = K.ownerDocument.importNode(
|
|
11839
|
+
} else if (A instanceof o)
|
|
11840
|
+
K = Tu("<!---->"), bt = K.ownerDocument.importNode(A, !0), bt.nodeType === Si.element && bt.nodeName === "BODY" || bt.nodeName === "HTML" ? K = bt : K.appendChild(bt);
|
|
11841
11841
|
else {
|
|
11842
11842
|
if (!nt && !V && !st && // eslint-disable-next-line unicorn/prefer-includes
|
|
11843
|
-
|
|
11844
|
-
return E && Se ? E.createHTML(
|
|
11845
|
-
if (K = Tu(
|
|
11843
|
+
A.indexOf("<") === -1)
|
|
11844
|
+
return E && Se ? E.createHTML(A) : A;
|
|
11845
|
+
if (K = Tu(A), !K)
|
|
11846
11846
|
return nt ? null : Se ? x : "";
|
|
11847
11847
|
}
|
|
11848
11848
|
K && Nt && jn(K.firstChild);
|
|
11849
|
-
const cn = wu(Ie ?
|
|
11849
|
+
const cn = wu(Ie ? A : K);
|
|
11850
11850
|
for (; Xt = cn.nextNode(); )
|
|
11851
11851
|
Mu(Xt), ku(Xt), Xt.content instanceof s && l1(Xt.content);
|
|
11852
11852
|
if (Ie)
|
|
11853
|
-
return
|
|
11853
|
+
return A;
|
|
11854
11854
|
if (nt) {
|
|
11855
11855
|
if (yt)
|
|
11856
11856
|
for (Pt = D.call(K.ownerDocument); K.firstChild; )
|
|
@@ -11865,24 +11865,24 @@ function dv() {
|
|
|
11865
11865
|
Ne = _i(Ne, Xe, " ");
|
|
11866
11866
|
}), E && Se ? E.createHTML(Ne) : Ne;
|
|
11867
11867
|
}, t.setConfig = function() {
|
|
11868
|
-
let
|
|
11869
|
-
_o(
|
|
11868
|
+
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
11869
|
+
_o(A), Dt = !0;
|
|
11870
11870
|
}, t.clearConfig = function() {
|
|
11871
11871
|
_r = null, Dt = !1;
|
|
11872
|
-
}, t.isValidAttribute = function(
|
|
11872
|
+
}, t.isValidAttribute = function(A, J, K) {
|
|
11873
11873
|
_r || _o({});
|
|
11874
|
-
const bt = qt(
|
|
11874
|
+
const bt = qt(A), Xt = qt(J);
|
|
11875
11875
|
return Cu(bt, Xt, K);
|
|
11876
|
-
}, t.addHook = function(
|
|
11877
|
-
typeof J == "function" && bi($[
|
|
11878
|
-
}, t.removeHook = function(
|
|
11876
|
+
}, t.addHook = function(A, J) {
|
|
11877
|
+
typeof J == "function" && bi($[A], J);
|
|
11878
|
+
}, t.removeHook = function(A, J) {
|
|
11879
11879
|
if (J !== void 0) {
|
|
11880
|
-
const K = xL($[
|
|
11881
|
-
return K === -1 ? void 0 : bL($[
|
|
11880
|
+
const K = xL($[A], J);
|
|
11881
|
+
return K === -1 ? void 0 : bL($[A], K, 1)[0];
|
|
11882
11882
|
}
|
|
11883
|
-
return Zd($[
|
|
11884
|
-
}, t.removeHooks = function(
|
|
11885
|
-
$[
|
|
11883
|
+
return Zd($[A]);
|
|
11884
|
+
}, t.removeHooks = function(A) {
|
|
11885
|
+
$[A] = [];
|
|
11886
11886
|
}, t.removeAllHooks = function() {
|
|
11887
11887
|
$ = rp();
|
|
11888
11888
|
}, t;
|
|
@@ -13034,17 +13034,17 @@ const yv = class ia extends mt {
|
|
|
13034
13034
|
const g = (x) => {
|
|
13035
13035
|
const S = x[1] - x[0];
|
|
13036
13036
|
let M = "0," + S.toString();
|
|
13037
|
-
const D = Math.floor(l / ia.DASH_LENGTH),
|
|
13037
|
+
const D = Math.floor(l / ia.DASH_LENGTH), C = D * ia.DASH_LENGTH;
|
|
13038
13038
|
for (let R = 0; R < D; R++)
|
|
13039
13039
|
M += "," + ia.DASH_LENGTH;
|
|
13040
|
-
M += "," + (l -
|
|
13040
|
+
M += "," + (l - C), D % 2 === 1 && (M += ",0"), M += "," + S.toString(), M += "," + l.toString(), p.attr("stroke-dasharray", M);
|
|
13041
13041
|
}, m = (x) => {
|
|
13042
13042
|
const S = x.selection;
|
|
13043
13043
|
S === null || S[0] === S[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(S));
|
|
13044
13044
|
}, v = (x, S) => {
|
|
13045
13045
|
const M = tg().range([0, o]).domain(f);
|
|
13046
|
-
let D = [M.invert(x), M.invert(S)];
|
|
13047
|
-
D[0].valueOf() === D[1].valueOf()
|
|
13046
|
+
let D = [M.invert(x), M.invert(S)], C = "manual";
|
|
13047
|
+
D[0].valueOf() === D[1].valueOf() ? (D = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== D[0].valueOf() || f[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D, { dispatchEvent: !0, type: C });
|
|
13048
13048
|
};
|
|
13049
13049
|
let b;
|
|
13050
13050
|
const _ = (x) => {
|
|
@@ -13061,8 +13061,8 @@ const yv = class ia extends mt {
|
|
|
13061
13061
|
const S = this.services.domUtils.getHolder(), M = rr(s.node(), S)[0];
|
|
13062
13062
|
let D = M - o * E / 2;
|
|
13063
13063
|
D < 0 && (D = 0);
|
|
13064
|
-
let
|
|
13065
|
-
|
|
13064
|
+
let C = M + o * E / 2;
|
|
13065
|
+
C > o && (C = o), v(D, C);
|
|
13066
13066
|
}
|
|
13067
13067
|
});
|
|
13068
13068
|
}
|
|
@@ -13134,17 +13134,17 @@ class HL extends mt {
|
|
|
13134
13134
|
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ze(m, (S) => S.value));
|
|
13135
13135
|
const E = this.model.get("zoomDomain");
|
|
13136
13136
|
if (s === Ke.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(n, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, c, l), a)) {
|
|
13137
|
-
const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, D = a.color,
|
|
13137
|
+
const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
|
|
13138
13138
|
a.data.forEach((R, $) => {
|
|
13139
13139
|
N.appendOrSelect(d, `rect.highlight-${$}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
|
|
13140
13140
|
"width",
|
|
13141
13141
|
this.xScale(R[M]) - this.xScale(R[S])
|
|
13142
13142
|
).style(
|
|
13143
13143
|
"fill",
|
|
13144
|
-
D && D.scale[R[
|
|
13144
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13145
13145
|
).style("fill-opacity", 0.1).style(
|
|
13146
13146
|
"stroke",
|
|
13147
|
-
D && D.scale[R[
|
|
13147
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13148
13148
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
13149
13149
|
});
|
|
13150
13150
|
}
|
|
@@ -13173,13 +13173,20 @@ class HL extends mt {
|
|
|
13173
13173
|
handleBrushedEvent(t, n, r, i) {
|
|
13174
13174
|
const s = [r.invert(i[0]), r.invert(i[1])];
|
|
13175
13175
|
if (this.updateBrushHandle(this.getComponentContainer(), i), t.sourceEvent != null && (t.sourceEvent.type === "mousemove" || t.sourceEvent.type === "mouseup" || t.sourceEvent.type === "mousedown" || t.sourceEvent.type === "touchstart" || t.sourceEvent.type === "touchmove" || t.sourceEvent.type === "touchend")) {
|
|
13176
|
+
let a = "manual";
|
|
13177
|
+
if (n && n[0] && n[1]) {
|
|
13178
|
+
const l = this.services.zoom.getDefaultZoomBarDomain();
|
|
13179
|
+
s[0].valueOf() === l[0].valueOf() && s[1].valueOf() === l[1].valueOf() ? a = "reset" : a = "manual";
|
|
13180
|
+
}
|
|
13176
13181
|
(n === void 0 || n[0] !== s[0] || n[1] !== s[1]) && this.services.zoom.handleDomainChange(s, {
|
|
13177
|
-
dispatchEvent: !1
|
|
13182
|
+
dispatchEvent: !1,
|
|
13183
|
+
type: a
|
|
13178
13184
|
});
|
|
13179
|
-
let
|
|
13180
|
-
t.type === "start" ?
|
|
13181
|
-
newDomain: s
|
|
13182
|
-
|
|
13185
|
+
let o;
|
|
13186
|
+
t.type === "start" ? o = T.ZoomBar.SELECTION_START : t.type === "brush" ? o = T.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (o = T.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(T.ZoomDomain.CHANGE, {
|
|
13187
|
+
newDomain: s,
|
|
13188
|
+
type: a
|
|
13189
|
+
})), this.services.events.dispatchEvent(o, {
|
|
13183
13190
|
selection: i,
|
|
13184
13191
|
newDomain: s
|
|
13185
13192
|
});
|
|
@@ -13306,8 +13313,8 @@ class VL extends mt {
|
|
|
13306
13313
|
x,
|
|
13307
13314
|
S,
|
|
13308
13315
|
E
|
|
13309
|
-
),
|
|
13310
|
-
c === G.TOP || c === G.BOTTOM ? (
|
|
13316
|
+
), C = I(this);
|
|
13317
|
+
c === G.TOP || c === G.BOTTOM ? (C.selectAll("line.threshold-line").transition().call(
|
|
13311
13318
|
(R) => l.services.transitions.setupTransition({
|
|
13312
13319
|
transition: R,
|
|
13313
13320
|
name: "threshold-line-update",
|
|
@@ -13319,7 +13326,7 @@ class VL extends mt {
|
|
|
13319
13326
|
).attr(
|
|
13320
13327
|
"x2",
|
|
13321
13328
|
({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
|
|
13322
|
-
).style("stroke", ({ fillColor: R }) => R),
|
|
13329
|
+
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -M(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
|
|
13323
13330
|
(R) => l.services.transitions.setupTransition({
|
|
13324
13331
|
transition: R,
|
|
13325
13332
|
name: "threshold-line-update",
|
|
@@ -13331,7 +13338,7 @@ class VL extends mt {
|
|
|
13331
13338
|
).attr(
|
|
13332
13339
|
"y2",
|
|
13333
13340
|
({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
|
|
13334
|
-
).style("stroke", ({ fillColor: R }) => R),
|
|
13341
|
+
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) => D(R)).attr("width", Math.abs(m - g)).classed("rotate", !1));
|
|
13335
13342
|
}), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
|
|
13336
13343
|
this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
|
|
13337
13344
|
}), this.services.events.addEventListener(T.Threshold.HIDE, () => {
|
|
@@ -13453,8 +13460,8 @@ class GL extends mt {
|
|
|
13453
13460
|
})
|
|
13454
13461
|
).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: M, ...D }) => E(D[M])).attr(
|
|
13455
13462
|
"width",
|
|
13456
|
-
({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...
|
|
13457
|
-
).style("stroke", ({ color: M, labelMapsTo: D, ...
|
|
13463
|
+
({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[M]), 0)
|
|
13464
|
+
).style("stroke", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
|
|
13458
13465
|
(M) => l.services.transitions.setupTransition({
|
|
13459
13466
|
transition: M,
|
|
13460
13467
|
name: "highlight-bar-update",
|
|
@@ -13462,8 +13469,8 @@ class GL extends mt {
|
|
|
13462
13469
|
})
|
|
13463
13470
|
).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: M, ...D }) => x(D[M])).attr(
|
|
13464
13471
|
"height",
|
|
13465
|
-
({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...
|
|
13466
|
-
).style("stroke", ({ color: M, labelMapsTo: D, ...
|
|
13472
|
+
({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...C }) => Math.max(x(C[M]) - x(C[D]), 0)
|
|
13473
|
+
).style("stroke", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null);
|
|
13467
13474
|
});
|
|
13468
13475
|
}
|
|
13469
13476
|
}
|
|
@@ -13782,9 +13789,9 @@ function XL() {
|
|
|
13782
13789
|
}
|
|
13783
13790
|
function D(O, w) {
|
|
13784
13791
|
const k = O.length >> 1, L = O[k];
|
|
13785
|
-
R(O, L.y0 - a, k - 1, w),
|
|
13792
|
+
R(O, L.y0 - a, k - 1, w), C(O, L.y1 + a, k + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
|
|
13786
13793
|
}
|
|
13787
|
-
function
|
|
13794
|
+
function C(O, w, k, L) {
|
|
13788
13795
|
for (; k < O.length; ++k) {
|
|
13789
13796
|
const U = O[k], Z = (w - U.y0) * L;
|
|
13790
13797
|
Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
|
|
@@ -14847,7 +14854,7 @@ class Ov extends mt {
|
|
|
14847
14854
|
f.attr("aria-hidden", !0);
|
|
14848
14855
|
return;
|
|
14849
14856
|
}
|
|
14850
|
-
const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), M = y(m, "ticks", "values"), D = y(m, "truncation", "type"),
|
|
14857
|
+
const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), M = y(m, "ticks", "values"), D = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), $ = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
|
|
14851
14858
|
useBBox: !0
|
|
14852
14859
|
}).height;
|
|
14853
14860
|
P.remove();
|
|
@@ -15010,9 +15017,9 @@ class Ov extends mt {
|
|
|
15010
15017
|
l.selectAll("g.ticks g.tick").html(tt);
|
|
15011
15018
|
const lt = this;
|
|
15012
15019
|
l.selectAll("g.tick text").data(q).text(function(z) {
|
|
15013
|
-
return z.length >
|
|
15020
|
+
return z.length > C ? (lt.truncation[n] = !0, ns(z, D, R)) : z;
|
|
15014
15021
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
|
|
15015
|
-
return z.length >
|
|
15022
|
+
return z.length > C ? ns(z, D, R) : z;
|
|
15016
15023
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
|
|
15017
15024
|
}
|
|
15018
15025
|
}
|
|
@@ -15453,7 +15460,7 @@ class hD extends mt {
|
|
|
15453
15460
|
const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.whiskers.max);
|
|
15454
15461
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15455
15462
|
});
|
|
15456
|
-
const
|
|
15463
|
+
const C = D.selectAll("circle.outlier").data(
|
|
15457
15464
|
($) => $.outliers.map((H) => ({
|
|
15458
15465
|
min: $.whiskers.min,
|
|
15459
15466
|
max: $.whiskers.max,
|
|
@@ -15461,9 +15468,9 @@ class hD extends mt {
|
|
|
15461
15468
|
value: H
|
|
15462
15469
|
}))
|
|
15463
15470
|
);
|
|
15464
|
-
|
|
15465
|
-
const R =
|
|
15466
|
-
|
|
15471
|
+
C.exit().remove();
|
|
15472
|
+
const R = C.enter().append("circle");
|
|
15473
|
+
C.merge(R).attr("r", Te.circle.radius).attr(
|
|
15467
15474
|
"class",
|
|
15468
15475
|
() => this.model.getColorClassName({
|
|
15469
15476
|
classNameTypes: [it.FILL, it.STROKE],
|
|
@@ -16174,8 +16181,8 @@ class Sv extends ou {
|
|
|
16174
16181
|
}
|
|
16175
16182
|
const c = !Be(s), u = Gm(this.model.getDisplayData()), d = !(i <= It.color.barWidth), h = d ? It.color.barWidth : i, p = N.appendOrSelect(r, "g.legend"), f = N.appendOrSelect(p, "g.legend-axis");
|
|
16176
16183
|
if (l) {
|
|
16177
|
-
const
|
|
16178
|
-
N.appendOrSelect(
|
|
16184
|
+
const C = N.appendOrSelect(r, "g.legend-title");
|
|
16185
|
+
N.appendOrSelect(C, "text").text(l).attr("dy", "0.7em"), p.attr("transform", "translate(0, 16)");
|
|
16179
16186
|
}
|
|
16180
16187
|
const g = u[0] < 0 && u[1] > 0 ? "diverge" : "mono";
|
|
16181
16188
|
(o < 1 && o > 4 && g === "mono" || o < 1 && o > 2 && g === "diverge") && (o = 1);
|
|
@@ -16184,12 +16191,12 @@ class Sv extends ou {
|
|
|
16184
16191
|
if (c)
|
|
16185
16192
|
m = s;
|
|
16186
16193
|
else
|
|
16187
|
-
for (let
|
|
16194
|
+
for (let C = 1; C < v + 1; C++)
|
|
16188
16195
|
m.push(
|
|
16189
|
-
a === qs.LINEAR ? `stop-color-${g}-${o}-${
|
|
16196
|
+
a === qs.LINEAR ? `stop-color-${g}-${o}-${C}` : `fill-${g}-${o}-${C}`
|
|
16190
16197
|
);
|
|
16191
16198
|
const b = xe(u[0], u[1]), _ = WC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: M } = y(n, "locale");
|
|
16192
|
-
x.tickFormat((
|
|
16199
|
+
x.tickFormat((C) => M(C, S));
|
|
16193
16200
|
let D;
|
|
16194
16201
|
switch (a) {
|
|
16195
16202
|
case qs.LINEAR:
|
|
@@ -16577,55 +16584,55 @@ class Tv extends mt {
|
|
|
16577
16584
|
ariaLabel: "pie graph"
|
|
16578
16585
|
}), i = this.getOptions(), { groupMapsTo: s } = i.data, { valueMapsTo: a } = i.pie;
|
|
16579
16586
|
this.isRendering = !0;
|
|
16580
|
-
const o = this.model.getDisplayData().filter((
|
|
16587
|
+
const o = this.model.getDisplayData().filter((C) => C[a] > 0), l = this.computeRadius();
|
|
16581
16588
|
this.arc = os().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = os().innerRadius(this.getInnerRadius()).outerRadius(l + Mt.hoverArc.outerRadiusOffset);
|
|
16582
|
-
const c = aL().value((
|
|
16589
|
+
const c = aL().value((C) => C[a]).sort(y(i, "pie", "sortFunction")).padAngle(Mt.padAngle)(o), u = N.appendOrSelect(r, "g.slices").attr("role", ht.GROUP).attr("data-name", "slices").selectAll("path.slice").data(c, (C) => C.data[s]);
|
|
16583
16590
|
u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
|
|
16584
16591
|
"class",
|
|
16585
|
-
(
|
|
16592
|
+
(C) => this.model.getColorClassName({
|
|
16586
16593
|
classNameTypes: [it.FILL],
|
|
16587
|
-
dataGroupName:
|
|
16594
|
+
dataGroupName: C.data[s],
|
|
16588
16595
|
originalClassName: "slice"
|
|
16589
16596
|
})
|
|
16590
|
-
).style("fill", (
|
|
16591
|
-
(
|
|
16592
|
-
transition:
|
|
16597
|
+
).style("fill", (C) => n.model.getFillColor(C.data[s], null, C.data)).attr("d", this.arc).transition().call(
|
|
16598
|
+
(C) => this.services.transitions.setupTransition({
|
|
16599
|
+
transition: C,
|
|
16593
16600
|
name: "pie_slice_enter_update",
|
|
16594
16601
|
animate: t
|
|
16595
16602
|
})
|
|
16596
|
-
).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (
|
|
16597
|
-
|
|
16598
|
-
Ao(
|
|
16599
|
-
|
|
16600
|
-
].filter(Boolean).join(", ")).attrTween("d", function(
|
|
16601
|
-
return LD.bind(this)(
|
|
16603
|
+
).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (C) => [
|
|
16604
|
+
C[a],
|
|
16605
|
+
Ao(C.data[a], o, a) + "%",
|
|
16606
|
+
C.data[s]
|
|
16607
|
+
].filter(Boolean).join(", ")).attrTween("d", function(C) {
|
|
16608
|
+
return LD.bind(this)(C, n.arc);
|
|
16602
16609
|
}).on("end", () => {
|
|
16603
16610
|
n.isRendering = !1;
|
|
16604
16611
|
});
|
|
16605
|
-
const { code: d, number: h } = y(i, "locale"), p = i.pie.labels.enabled, f = p ? c.filter((
|
|
16612
|
+
const { code: d, number: h } = y(i, "locale"), p = i.pie.labels.enabled, f = p ? c.filter((C) => C.data[a] > 0) : [], g = N.appendOrSelect(r, "g.labels").attr("role", ht.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(f, (C) => C.data[s]);
|
|
16606
16613
|
g.exit().attr("opacity", 0).remove();
|
|
16607
16614
|
const m = g.enter().append("text").classed("pie-label", !0), v = [];
|
|
16608
|
-
m.merge(g).style("text-anchor", "middle").text((
|
|
16609
|
-
...
|
|
16615
|
+
m.merge(g).style("text-anchor", "middle").text((C) => i.pie.labels.formatter ? i.pie.labels.formatter({
|
|
16616
|
+
...C,
|
|
16610
16617
|
percentageValue: Ao(
|
|
16611
|
-
|
|
16618
|
+
C.data[a],
|
|
16612
16619
|
o,
|
|
16613
16620
|
a,
|
|
16614
16621
|
!0
|
|
16615
16622
|
)
|
|
16616
16623
|
}) : h(
|
|
16617
|
-
Ao(
|
|
16624
|
+
Ao(C.data[a], o, a),
|
|
16618
16625
|
d
|
|
16619
|
-
) + "%").datum(function(
|
|
16620
|
-
const R = l + 7, $ = (
|
|
16621
|
-
return
|
|
16622
|
-
}).attr("transform", function(
|
|
16623
|
-
const $ = f.length, H = (
|
|
16626
|
+
) + "%").datum(function(C) {
|
|
16627
|
+
const R = l + 7, $ = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = $ / Math.PI * 180, P = this.getComputedTextLength();
|
|
16628
|
+
return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin($), C.yPosition = (C.textOffsetY + R) * -Math.cos($), C;
|
|
16629
|
+
}).attr("transform", function(C, R) {
|
|
16630
|
+
const $ = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
|
|
16624
16631
|
if (R >= $ - 2 && H < Mt.callout.minSliceDegree) {
|
|
16625
16632
|
let P, B;
|
|
16626
|
-
return
|
|
16633
|
+
return C.index === $ - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
|
|
16627
16634
|
}
|
|
16628
|
-
return `translate(${
|
|
16635
|
+
return `translate(${C.xPosition}, ${C.yPosition})`;
|
|
16629
16636
|
}), this.renderCallouts(v);
|
|
16630
16637
|
const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
|
|
16631
16638
|
useAttrs: !0
|
|
@@ -16848,9 +16855,9 @@ class RD extends mt {
|
|
|
16848
16855
|
"transform",
|
|
16849
16856
|
`translate(0, ${d})`
|
|
16850
16857
|
), p = o(a), f = N.appendOrSelect(h, "g.gauge-value-number"), { code: g, number: m } = y(n, "locale"), v = y(n, "gauge", "numberFormatter"), b = f.selectAll("text.gauge-value-number").data([i]);
|
|
16851
|
-
b.enter().append("text").attr("class", "gauge-value-number").merge(b).style("font-size", `${p}px`).attr("text-anchor", "middle").text((
|
|
16858
|
+
b.enter().append("text").attr("class", "gauge-value-number").merge(b).style("font-size", `${p}px`).attr("text-anchor", "middle").text((C) => {
|
|
16852
16859
|
let R;
|
|
16853
|
-
return
|
|
16860
|
+
return C != null ? R = Number(C.toFixed(2)) % 1 !== 0 ? C.toFixed(2) : C.toFixed() : R = 0, v ? v(R) : m(Number(R), g);
|
|
16854
16861
|
});
|
|
16855
16862
|
const { width: _ } = N.getSVGElementSize(
|
|
16856
16863
|
N.appendOrSelect(t, "text.gauge-value-number"),
|
|
@@ -17605,14 +17612,14 @@ class BD extends mt {
|
|
|
17605
17612
|
const _ = vs().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Bn(this.fullDataNormalized.map((O) => O[d])), x = Fe().domain([
|
|
17606
17613
|
E >= 0 ? 0 : E,
|
|
17607
17614
|
nr(this.fullDataNormalized.map((O) => O[d]))
|
|
17608
|
-
]).range([g, b]).nice(f), S = x.ticks(f), M = (O, w, k) => this.model.getFillColor(O, w, k), D = cL().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(rg),
|
|
17615
|
+
]).range([g, b]).nice(f), S = x.ticks(f), M = (O, w, k) => this.model.getFillColor(O, w, k), D = cL().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(rg), C = this.uniqueKeys.map((O) => {
|
|
17609
17616
|
const w = this.getLabelDimensions(O).width, k = N2(
|
|
17610
17617
|
_(O),
|
|
17611
17618
|
b
|
|
17612
17619
|
);
|
|
17613
17620
|
return w + k;
|
|
17614
17621
|
}), R = {
|
|
17615
|
-
x: nr(
|
|
17622
|
+
x: nr(C) + h,
|
|
17616
17623
|
y: i / 2
|
|
17617
17624
|
}, $ = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
|
|
17618
17625
|
$.join(
|
|
@@ -18293,17 +18300,17 @@ class VD extends mt {
|
|
|
18293
18300
|
children: a
|
|
18294
18301
|
}), p = 10, f = r / 6, g = (S) => {
|
|
18295
18302
|
const M = h.descendants().reverse(), D = h.links();
|
|
18296
|
-
let
|
|
18303
|
+
let C = h, R = h;
|
|
18297
18304
|
h.eachBefore((L) => {
|
|
18298
|
-
L.x <
|
|
18305
|
+
L.x < C.x && (C = L), L.x > R.x && (R = L);
|
|
18299
18306
|
});
|
|
18300
|
-
const $ = R.x -
|
|
18307
|
+
const $ = R.x - C.x, H = n.transition().call(
|
|
18301
18308
|
(L) => this.services.transitions.setupTransition({
|
|
18302
18309
|
transition: L,
|
|
18303
18310
|
name: "tree-update-viewbox",
|
|
18304
18311
|
animate: !0
|
|
18305
18312
|
})
|
|
18306
|
-
).attr("viewBox", [-d.left,
|
|
18313
|
+
).attr("viewBox", [-d.left, C.x, r, $].join(" ")), P = x.selectAll("g").data(M, (L) => L.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
|
|
18307
18314
|
"class",
|
|
18308
18315
|
(L) => L.depth !== 0 && L.children && L.children.length > 0 ? "clickable" : null
|
|
18309
18316
|
).on("mouseover", function(L, U) {
|
|
@@ -18801,12 +18808,12 @@ function SN() {
|
|
|
18801
18808
|
rectangular: m
|
|
18802
18809
|
}, r = 64, i = 2048;
|
|
18803
18810
|
cl = function() {
|
|
18804
|
-
var E = [256, 256], x = s, S = a, M = l, D = o,
|
|
18811
|
+
var E = [256, 256], x = s, S = a, M = l, D = o, C = o, R = c, $ = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, k = Math.random, L = {}, U = b;
|
|
18805
18812
|
L.canvas = function(F) {
|
|
18806
18813
|
return arguments.length ? (U = _(F), L) : U;
|
|
18807
18814
|
}, L.start = function() {
|
|
18808
18815
|
var F = Z(U()), Y = v((E[0] >> 5) * E[1]), ot = null, Q = P.length, q = -1, tt = [], lt = P.map(function(W, X) {
|
|
18809
|
-
return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight =
|
|
18816
|
+
return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~M.call(this, W, X), W.padding = $.call(this, W, X), W;
|
|
18810
18817
|
}).sort(function(W, X) {
|
|
18811
18818
|
return X.size - W.size;
|
|
18812
18819
|
});
|
|
@@ -18855,7 +18862,7 @@ function SN() {
|
|
|
18855
18862
|
}, L.fontStyle = function(F) {
|
|
18856
18863
|
return arguments.length ? (D = _(F), L) : D;
|
|
18857
18864
|
}, L.fontWeight = function(F) {
|
|
18858
|
-
return arguments.length ? (
|
|
18865
|
+
return arguments.length ? (C = _(F), L) : C;
|
|
18859
18866
|
}, L.rotate = function(F) {
|
|
18860
18867
|
return arguments.length ? (R = _(F), L) : R;
|
|
18861
18868
|
}, L.text = function(F) {
|
|
@@ -18893,22 +18900,22 @@ function SN() {
|
|
|
18893
18900
|
}
|
|
18894
18901
|
function d(E, x, S, M) {
|
|
18895
18902
|
if (!x.sprite) {
|
|
18896
|
-
var D = E.context,
|
|
18897
|
-
D.clearRect(0, 0, (r << 5) /
|
|
18903
|
+
var D = E.context, C = E.ratio;
|
|
18904
|
+
D.clearRect(0, 0, (r << 5) / C, i / C);
|
|
18898
18905
|
var R = 0, $ = 0, H = 0, P = S.length;
|
|
18899
18906
|
for (--M; ++M < P; ) {
|
|
18900
|
-
x = S[M], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) /
|
|
18907
|
+
x = S[M], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
|
|
18901
18908
|
const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
|
|
18902
|
-
let ut = (X.width + 1) *
|
|
18909
|
+
let ut = (X.width + 1) * C, st = x.size << 1;
|
|
18903
18910
|
if (x.rotate) {
|
|
18904
18911
|
var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, k = ut * B, L = st * O, U = st * B;
|
|
18905
18912
|
ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(k + L), Math.abs(k - L));
|
|
18906
18913
|
} else
|
|
18907
18914
|
ut = ut + 31 >> 5 << 5;
|
|
18908
18915
|
if (st > H && (H = st), R + ut >= r << 5 && (R = 0, $ += H, H = 0), $ + st >= i) break;
|
|
18909
|
-
D.translate((R + (ut >> 1)) /
|
|
18916
|
+
D.translate((R + (ut >> 1)) / C, ($ + (st >> 1)) / C), x.rotate && D.rotate(x.rotate * t), D.fillText(x.text, V, 0), x.padding && (D.lineWidth = 2 * x.padding, D.strokeText(x.text, V, 0)), D.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = $, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
|
|
18910
18917
|
}
|
|
18911
|
-
for (var Z = D.getImageData(0, 0, (r << 5) /
|
|
18918
|
+
for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --M >= 0; )
|
|
18912
18919
|
if (x = S[M], !!x.hasText) {
|
|
18913
18920
|
for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
|
|
18914
18921
|
if (R = x.xoff, R == null) return;
|
|
@@ -18926,7 +18933,7 @@ function SN() {
|
|
|
18926
18933
|
}
|
|
18927
18934
|
function h(E, x, S) {
|
|
18928
18935
|
S >>= 5;
|
|
18929
|
-
for (var M = E.sprite, D = E.width >> 5,
|
|
18936
|
+
for (var M = E.sprite, D = E.width >> 5, C = E.x - (D << 4), R = C & 127, $ = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
|
|
18930
18937
|
B = 0;
|
|
18931
18938
|
for (var w = 0; w <= D; w++)
|
|
18932
18939
|
if ((B << $ | (w < D ? (B = M[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
|
|
@@ -18949,9 +18956,9 @@ function SN() {
|
|
|
18949
18956
|
}
|
|
18950
18957
|
function m(E) {
|
|
18951
18958
|
var x = 4, S = x * E[0] / E[1], M = 0, D = 0;
|
|
18952
|
-
return function(
|
|
18953
|
-
var R =
|
|
18954
|
-
switch (Math.sqrt(1 + 4 * R *
|
|
18959
|
+
return function(C) {
|
|
18960
|
+
var R = C < 0 ? -1 : 1;
|
|
18961
|
+
switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
|
|
18955
18962
|
case 0:
|
|
18956
18963
|
M += S;
|
|
18957
18964
|
break;
|
|
@@ -20536,8 +20543,8 @@ class OP extends Dn {
|
|
|
20536
20543
|
b.forEach((x) => {
|
|
20537
20544
|
const { ...S } = x;
|
|
20538
20545
|
let M = 0, D = 0;
|
|
20539
|
-
Object.values(PN(S, "sharedStackKey")).forEach((
|
|
20540
|
-
isNaN(
|
|
20546
|
+
Object.values(PN(S, "sharedStackKey")).forEach((C) => {
|
|
20547
|
+
isNaN(C) || (C < 0 ? D += C : M += C);
|
|
20541
20548
|
}), E.push([D, M]);
|
|
20542
20549
|
}), g = [
|
|
20543
20550
|
...hu(E),
|
|
@@ -20674,9 +20681,10 @@ class $P extends Dn {
|
|
|
20674
20681
|
ze(n, (o) => o[s])
|
|
20675
20682
|
);
|
|
20676
20683
|
}
|
|
20677
|
-
handleDomainChange(t, n = { dispatchEvent: !0 }) {
|
|
20684
|
+
handleDomainChange(t, n = { dispatchEvent: !0, type: "manual" }) {
|
|
20678
20685
|
this.model.set({ zoomDomain: t }, { animate: !1 }), n.dispatchEvent && this.services.events?.dispatchEvent(T.ZoomDomain.CHANGE, {
|
|
20679
|
-
newDomain: t
|
|
20686
|
+
newDomain: t,
|
|
20687
|
+
type: n.type
|
|
20680
20688
|
});
|
|
20681
20689
|
}
|
|
20682
20690
|
getZoomRatio() {
|
|
@@ -20709,7 +20717,7 @@ class $P extends Dn {
|
|
|
20709
20717
|
let u = s + c, d = a - c;
|
|
20710
20718
|
u >= d && (u = s + l / 2 - r / 2, d = a - l / 2 + r / 2);
|
|
20711
20719
|
const h = [i.invert(u), i.invert(d)];
|
|
20712
|
-
(n[0].valueOf() !== h[0].valueOf() || n[1].valueOf() !== h[1].valueOf()) && this.handleDomainChange(h);
|
|
20720
|
+
(n[0].valueOf() !== h[0].valueOf() || n[1].valueOf() !== h[1].valueOf()) && this.handleDomainChange(h, { dispatchEvent: !0, type: "in" });
|
|
20713
20721
|
}
|
|
20714
20722
|
zoomOut(t = this.getZoomRatio()) {
|
|
20715
20723
|
const n = this.model.get("zoomDomain");
|
|
@@ -20717,11 +20725,11 @@ class $P extends Dn {
|
|
|
20717
20725
|
const r = this.services.cartesianScales.getMainXScale().copy();
|
|
20718
20726
|
r.domain(this.getDefaultZoomBarDomain());
|
|
20719
20727
|
const i = r(n[0]), s = r(n[1]), a = r.range(), o = (a[1] - a[0]) / 2 * (t / 2), l = Math.max(i - o, a[0]), c = Math.min(s + o, a[1]), u = [r.invert(l), r.invert(c)];
|
|
20720
|
-
(n[0].valueOf() !== u[0].valueOf() || n[1].valueOf() !== u[1].valueOf()) && this.handleDomainChange(u);
|
|
20728
|
+
(n[0].valueOf() !== u[0].valueOf() || n[1].valueOf() !== u[1].valueOf()) && this.handleDomainChange(u, { dispatchEvent: !0, type: "out" });
|
|
20721
20729
|
}
|
|
20722
20730
|
resetZoomDomain() {
|
|
20723
20731
|
const t = this.model.get("zoomDomain"), n = this.getDefaultZoomBarDomain();
|
|
20724
|
-
(t[0].valueOf() !== n[0].valueOf() || t[1].valueOf() !== n[1].valueOf()) && this.handleDomainChange(n);
|
|
20732
|
+
(t[0].valueOf() !== n[0].valueOf() || t[1].valueOf() !== n[1].valueOf()) && this.handleDomainChange(n, { dispatchEvent: !0, type: "reset" });
|
|
20725
20733
|
}
|
|
20726
20734
|
// check if current zoom domain is already the min zoom domain
|
|
20727
20735
|
// when toolbar is rendered, we don't render chart yet
|