@carbon/charts-vue 1.26.1 → 1.27.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/CHANGELOG.md +13 -0
- package/dist/index.mjs +486 -470
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3516,40 +3516,40 @@ function vT(e) {
|
|
|
3516
3516
|
d = Qi(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") : Eh[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() : "",
|
|
3519
|
+
var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", $ = g === "$" ? r : /[%p]/.test(x) ? a : "", D = Eh[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
|
-
function R(
|
|
3522
|
-
var H = S, P =
|
|
3521
|
+
function R(M) {
|
|
3522
|
+
var H = S, P = $, B, O, w;
|
|
3523
3523
|
if (x === "c")
|
|
3524
|
-
P =
|
|
3524
|
+
P = D(M) + P, M = "";
|
|
3525
3525
|
else {
|
|
3526
|
-
|
|
3527
|
-
var L =
|
|
3528
|
-
if (
|
|
3529
|
-
for (B = -1, O =
|
|
3530
|
-
if (w =
|
|
3531
|
-
P = (w === 46 ? i +
|
|
3526
|
+
M = +M;
|
|
3527
|
+
var L = M < 0 || 1 / M < 0;
|
|
3528
|
+
if (M = isNaN(M) ? l : D(Math.abs(M), _), E && (M = mT(M)), L && +M == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Th[8 + ym / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
|
|
3529
|
+
for (B = -1, O = M.length; ++B < O; )
|
|
3530
|
+
if (w = M.charCodeAt(B), 48 > w || w > 57) {
|
|
3531
|
+
P = (w === 46 ? i + M.slice(B + 1) : M.slice(B)) + P, M = M.slice(0, B);
|
|
3532
3532
|
break;
|
|
3533
3533
|
}
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
b && !m && (
|
|
3537
|
-
var
|
|
3538
|
-
switch (b && m && (
|
|
3536
|
+
b && !m && (M = t(M, 1 / 0));
|
|
3537
|
+
var k = H.length + M.length + P.length, U = k < v ? new Array(v - k + 1).join(h) : "";
|
|
3538
|
+
switch (b && m && (M = t(U + M, U.length ? v - P.length : 1 / 0), U = ""), p) {
|
|
3539
3539
|
case "<":
|
|
3540
|
-
|
|
3540
|
+
M = H + M + P + U;
|
|
3541
3541
|
break;
|
|
3542
3542
|
case "=":
|
|
3543
|
-
|
|
3543
|
+
M = H + U + M + P;
|
|
3544
3544
|
break;
|
|
3545
3545
|
case "^":
|
|
3546
|
-
|
|
3546
|
+
M = U.slice(0, k = U.length >> 1) + H + M + P + U.slice(k);
|
|
3547
3547
|
break;
|
|
3548
3548
|
default:
|
|
3549
|
-
|
|
3549
|
+
M = U + H + M + P;
|
|
3550
3550
|
break;
|
|
3551
3551
|
}
|
|
3552
|
-
return s(
|
|
3552
|
+
return s(M);
|
|
3553
3553
|
}
|
|
3554
3554
|
return R.toString = function() {
|
|
3555
3555
|
return d + "";
|
|
@@ -7017,19 +7017,19 @@ function ga(e, t, n) {
|
|
|
7017
7017
|
throw new TypeError(v$);
|
|
7018
7018
|
t = Vr(t) || 0, De(n) && (u = !!n.leading, d = "maxWait" in n, s = d ? y$(Vr(n.maxWait) || 0, t) : s, h = "trailing" in n ? !!n.trailing : h);
|
|
7019
7019
|
function p(S) {
|
|
7020
|
-
var
|
|
7021
|
-
return r = i = void 0, c = S, a = e.apply(
|
|
7020
|
+
var $ = r, D = i;
|
|
7021
|
+
return r = i = void 0, c = S, a = e.apply(D, $), a;
|
|
7022
7022
|
}
|
|
7023
7023
|
function f(S) {
|
|
7024
7024
|
return c = S, o = setTimeout(v, t), u ? p(S) : a;
|
|
7025
7025
|
}
|
|
7026
7026
|
function g(S) {
|
|
7027
|
-
var
|
|
7028
|
-
return d ? x$(C, s -
|
|
7027
|
+
var $ = S - l, D = S - c, C = t - $;
|
|
7028
|
+
return d ? x$(C, s - D) : C;
|
|
7029
7029
|
}
|
|
7030
7030
|
function m(S) {
|
|
7031
|
-
var
|
|
7032
|
-
return l === void 0 ||
|
|
7031
|
+
var $ = S - l, D = S - c;
|
|
7032
|
+
return l === void 0 || $ >= t || $ < 0 || d && D >= s;
|
|
7033
7033
|
}
|
|
7034
7034
|
function v() {
|
|
7035
7035
|
var S = Lo();
|
|
@@ -7047,8 +7047,8 @@ function ga(e, t, n) {
|
|
|
7047
7047
|
return o === void 0 ? a : b(Lo());
|
|
7048
7048
|
}
|
|
7049
7049
|
function x() {
|
|
7050
|
-
var S = Lo(),
|
|
7051
|
-
if (r = arguments, i = this, l = S,
|
|
7050
|
+
var S = Lo(), $ = m(S);
|
|
7051
|
+
if (r = arguments, i = this, l = S, $) {
|
|
7052
7052
|
if (o === void 0)
|
|
7053
7053
|
return f(l);
|
|
7054
7054
|
if (d)
|
|
@@ -7315,7 +7315,7 @@ function fi(e, t, n) {
|
|
|
7315
7315
|
function N$(e) {
|
|
7316
7316
|
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, s = e.days, a = e.shortDays, o = e.months, l = e.shortMonths, c = mi(i), u = gi(i), d = mi(s), h = gi(s), p = mi(a), f = gi(a), g = mi(o), m = gi(o), v = mi(l), b = gi(l), _ = {
|
|
7317
7317
|
a: L,
|
|
7318
|
-
A:
|
|
7318
|
+
A: k,
|
|
7319
7319
|
b: U,
|
|
7320
7320
|
B: Z,
|
|
7321
7321
|
c: null,
|
|
@@ -7381,7 +7381,7 @@ function N$(e) {
|
|
|
7381
7381
|
"%": Zh
|
|
7382
7382
|
}, x = {
|
|
7383
7383
|
a: R,
|
|
7384
|
-
A:
|
|
7384
|
+
A: M,
|
|
7385
7385
|
b: H,
|
|
7386
7386
|
B: P,
|
|
7387
7387
|
c: B,
|
|
@@ -7422,9 +7422,9 @@ function N$(e) {
|
|
|
7422
7422
|
return V.push(z.slice(st, ut)), V.join("");
|
|
7423
7423
|
};
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7425
|
+
function $(z, W) {
|
|
7426
7426
|
return function(X) {
|
|
7427
|
-
var V = fi(1900, void 0, 1), ut =
|
|
7427
|
+
var V = fi(1900, void 0, 1), ut = D(V, z, X += "", 0), st, Dt;
|
|
7428
7428
|
if (ut != X.length) return null;
|
|
7429
7429
|
if ("Q" in V) return new Date(V.Q);
|
|
7430
7430
|
if ("s" in V) return new Date(V.s * 1e3 + ("L" in V ? V.L : 0));
|
|
@@ -7435,7 +7435,7 @@ function N$(e) {
|
|
|
7435
7435
|
return "Z" in V ? (V.H += V.Z / 100 | 0, V.M += V.Z % 100, No(V)) : Io(V);
|
|
7436
7436
|
};
|
|
7437
7437
|
}
|
|
7438
|
-
function
|
|
7438
|
+
function D(z, W, X, V) {
|
|
7439
7439
|
for (var ut = 0, st = W.length, Dt = X.length, It, nt; ut < st; ) {
|
|
7440
7440
|
if (V >= Dt) return -1;
|
|
7441
7441
|
if (It = W.charCodeAt(ut++), It === 37) {
|
|
@@ -7453,7 +7453,7 @@ function N$(e) {
|
|
|
7453
7453
|
var V = p.exec(W.slice(X));
|
|
7454
7454
|
return V ? (z.w = f.get(V[0].toLowerCase()), X + V[0].length) : -1;
|
|
7455
7455
|
}
|
|
7456
|
-
function
|
|
7456
|
+
function M(z, W, X) {
|
|
7457
7457
|
var V = d.exec(W.slice(X));
|
|
7458
7458
|
return V ? (z.w = h.get(V[0].toLowerCase()), X + V[0].length) : -1;
|
|
7459
7459
|
}
|
|
@@ -7466,18 +7466,18 @@ function N$(e) {
|
|
|
7466
7466
|
return V ? (z.m = m.get(V[0].toLowerCase()), X + V[0].length) : -1;
|
|
7467
7467
|
}
|
|
7468
7468
|
function B(z, W, X) {
|
|
7469
|
-
return
|
|
7469
|
+
return D(z, t, W, X);
|
|
7470
7470
|
}
|
|
7471
7471
|
function O(z, W, X) {
|
|
7472
|
-
return
|
|
7472
|
+
return D(z, n, W, X);
|
|
7473
7473
|
}
|
|
7474
7474
|
function w(z, W, X) {
|
|
7475
|
-
return
|
|
7475
|
+
return D(z, r, W, X);
|
|
7476
7476
|
}
|
|
7477
7477
|
function L(z) {
|
|
7478
7478
|
return a[z.getDay()];
|
|
7479
7479
|
}
|
|
7480
|
-
function
|
|
7480
|
+
function k(z) {
|
|
7481
7481
|
return s[z.getDay()];
|
|
7482
7482
|
}
|
|
7483
7483
|
function U(z) {
|
|
@@ -7518,7 +7518,7 @@ function N$(e) {
|
|
|
7518
7518
|
}, W;
|
|
7519
7519
|
},
|
|
7520
7520
|
parse: function(z) {
|
|
7521
|
-
var W =
|
|
7521
|
+
var W = $(z += "", !1);
|
|
7522
7522
|
return W.toString = function() {
|
|
7523
7523
|
return z;
|
|
7524
7524
|
}, W;
|
|
@@ -7530,7 +7530,7 @@ function N$(e) {
|
|
|
7530
7530
|
}, W;
|
|
7531
7531
|
},
|
|
7532
7532
|
utcParse: function(z) {
|
|
7533
|
-
var W =
|
|
7533
|
+
var W = $(z += "", !0);
|
|
7534
7534
|
return W.toString = function() {
|
|
7535
7535
|
return z;
|
|
7536
7536
|
}, W;
|
|
@@ -7797,13 +7797,13 @@ function Zm(e, t, n, r, i, s, a, o, l, c) {
|
|
|
7797
7797
|
}, u.domain = function(S) {
|
|
7798
7798
|
return arguments.length ? h(Array.from(S, UM)) : h().map(PM);
|
|
7799
7799
|
}, u.ticks = function(S) {
|
|
7800
|
-
var
|
|
7801
|
-
return e(
|
|
7802
|
-
}, u.tickFormat = function(S,
|
|
7803
|
-
return
|
|
7800
|
+
var $ = h();
|
|
7801
|
+
return e($[0], $[$.length - 1], S ?? 10);
|
|
7802
|
+
}, u.tickFormat = function(S, $) {
|
|
7803
|
+
return $ == null ? x : c($);
|
|
7804
7804
|
}, u.nice = function(S) {
|
|
7805
|
-
var
|
|
7806
|
-
return (!S || typeof S.range != "function") && (S = t(
|
|
7805
|
+
var $ = h();
|
|
7806
|
+
return (!S || typeof S.range != "function") && (S = t($[0], $[$.length - 1], S ?? 10)), S ? h(zm($, S)) : u;
|
|
7807
7807
|
}, u.copy = function() {
|
|
7808
7808
|
return Ic(u, Zm(e, t, n, r, i, s, a, o, l, c));
|
|
7809
7809
|
}, u;
|
|
@@ -8957,15 +8957,15 @@ function HC() {
|
|
|
8957
8957
|
function so(e, t) {
|
|
8958
8958
|
var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Ys || e === wi ? -1 : 1, u = e === wi || e === Xs ? "x" : "y", d = e === Ys || e === Ll ? NC : PC;
|
|
8959
8959
|
function h(p) {
|
|
8960
|
-
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : IC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? BC : UC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]),
|
|
8961
|
-
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")),
|
|
8960
|
+
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : IC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? BC : UC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), $ = x.selectAll(".tick").data(f, t).order(), D = $.exit(), C = $.enter().append("g").attr("class", "tick"), R = $.select("line"), M = $.select("text");
|
|
8961
|
+
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), $ = $.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), M = M.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Ys ? "0em" : e === Ll ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), $ = $.transition(p), R = R.transition(p), M = M.transition(p), D = D.transition(p).attr("opacity", pd).attr("transform", function(H) {
|
|
8962
8962
|
return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
|
|
8963
8963
|
}), C.attr("opacity", pd).attr("transform", function(H) {
|
|
8964
8964
|
var P = this.parentNode.__axis;
|
|
8965
8965
|
return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
|
|
8966
|
-
})),
|
|
8966
|
+
})), D.remove(), S.attr("d", e === wi || e === Xs ? 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" + _), $.attr("opacity", 1).attr("transform", function(H) {
|
|
8967
8967
|
return d(E(H) + l);
|
|
8968
|
-
}), R.attr(u + "2", c * s),
|
|
8968
|
+
}), R.attr(u + "2", c * s), M.attr(u, c * m).text(g), x.filter(HC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Xs ? "start" : e === wi ? "end" : "middle"), x.each(function() {
|
|
8969
8969
|
this.__axis = E;
|
|
8970
8970
|
});
|
|
8971
8971
|
}
|
|
@@ -9155,14 +9155,14 @@ function eA(e) {
|
|
|
9155
9155
|
}).on("interrupt.brush end.brush", function(_) {
|
|
9156
9156
|
u(this, arguments).end(_);
|
|
9157
9157
|
}).tween("brush", function() {
|
|
9158
|
-
var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection,
|
|
9158
|
+
var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, $ = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = ds(S, $);
|
|
9159
9159
|
function C(R) {
|
|
9160
|
-
E.selection = R === 1 &&
|
|
9160
|
+
E.selection = R === 1 && $ === null ? null : D(R), c.call(_), x.brush();
|
|
9161
9161
|
}
|
|
9162
|
-
return S !== null &&
|
|
9162
|
+
return S !== null && $ !== null ? C : C(1);
|
|
9163
9163
|
}) : m.each(function() {
|
|
9164
|
-
var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent),
|
|
9165
|
-
Ol(_), x.selection = S === null ? null : S, c.call(_),
|
|
9164
|
+
var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), $ = u(_, E).beforestart();
|
|
9165
|
+
Ol(_), x.selection = S === null ? null : S, c.call(_), $.start(b).brush(b).end(b);
|
|
9166
9166
|
});
|
|
9167
9167
|
}, l.clear = function(m, v) {
|
|
9168
9168
|
l.move(m, null, v);
|
|
@@ -9217,25 +9217,25 @@ function eA(e) {
|
|
|
9217
9217
|
};
|
|
9218
9218
|
function h(m) {
|
|
9219
9219
|
if (o && !m.touches || !n.apply(this, arguments)) return;
|
|
9220
|
-
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? fd : i && m.altKey ? Sr : Or, E = e === Go ? null : XC[b], x = e === Zs ? null : ZC[b], S = zo(v),
|
|
9220
|
+
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? fd : i && m.altKey ? Sr : Or, E = e === Go ? null : XC[b], x = e === Zs ? null : ZC[b], S = zo(v), $ = S.extent, D = S.selection, C = $[0][0], R, M, H = $[0][1], P, B, O = $[1][0], w, L, k = $[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
|
|
9221
9221
|
const yt = nt.identifier;
|
|
9222
9222
|
return nt = tr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
|
|
9223
9223
|
});
|
|
9224
9224
|
Ol(v);
|
|
9225
9225
|
var lt = u(v, arguments, !0).beforestart();
|
|
9226
9226
|
if (b === "overlay") {
|
|
9227
|
-
|
|
9227
|
+
D && (Y = !0);
|
|
9228
9228
|
const nt = [tt[0], tt[1] || tt[0]];
|
|
9229
|
-
S.selection =
|
|
9229
|
+
S.selection = D = [[
|
|
9230
9230
|
R = e === Go ? C : te(nt[0][0], nt[1][0]),
|
|
9231
9231
|
P = e === Zs ? H : te(nt[0][1], nt[1][1])
|
|
9232
9232
|
], [
|
|
9233
9233
|
w = e === Go ? O : Jt(nt[0][0], nt[1][0]),
|
|
9234
|
-
U = e === Zs ?
|
|
9234
|
+
U = e === Zs ? k : Jt(nt[0][1], nt[1][1])
|
|
9235
9235
|
]], tt.length > 1 && ut(m);
|
|
9236
9236
|
} else
|
|
9237
|
-
R =
|
|
9238
|
-
|
|
9237
|
+
R = D[0][0], P = D[0][1], w = D[1][0], U = D[1][1];
|
|
9238
|
+
M = R, B = P, L = w, Z = U;
|
|
9239
9239
|
var z = I(v).attr("pointer-events", "none"), W = z.selectAll(".overlay").attr("cursor", un[b]);
|
|
9240
9240
|
if (m.touches)
|
|
9241
9241
|
lt.moved = V, lt.ended = st;
|
|
@@ -9262,19 +9262,19 @@ function eA(e) {
|
|
|
9262
9262
|
switch (j = yt[0] - Oe[0], F = yt[1] - Oe[1], _) {
|
|
9263
9263
|
case Vo:
|
|
9264
9264
|
case fd: {
|
|
9265
|
-
E && (j = Jt(C - R, te(O - w, j)),
|
|
9265
|
+
E && (j = Jt(C - R, te(O - w, j)), M = R + j, L = w + j), x && (F = Jt(H - P, te(k - U, F)), B = P + F, Z = U + F);
|
|
9266
9266
|
break;
|
|
9267
9267
|
}
|
|
9268
9268
|
case Or: {
|
|
9269
|
-
tt[1] ? (E && (
|
|
9269
|
+
tt[1] ? (E && (M = Jt(C, te(O, tt[0][0])), L = Jt(C, te(O, tt[1][0])), E = 1), x && (B = Jt(H, te(k, tt[0][1])), Z = Jt(H, te(k, tt[1][1])), x = 1)) : (E < 0 ? (j = Jt(C - R, te(O - R, j)), M = R + j, L = w) : E > 0 && (j = Jt(C - w, te(O - w, j)), M = R, L = w + j), x < 0 ? (F = Jt(H - P, te(k - P, F)), B = P + F, Z = U) : x > 0 && (F = Jt(H - U, te(k - U, F)), B = P, Z = U + F));
|
|
9270
9270
|
break;
|
|
9271
9271
|
}
|
|
9272
9272
|
case Sr: {
|
|
9273
|
-
E && (
|
|
9273
|
+
E && (M = Jt(C, te(O, R - j * E)), L = Jt(C, te(O, w + j * E))), x && (B = Jt(H, te(k, P - F * x)), Z = Jt(H, te(k, U + F * x)));
|
|
9274
9274
|
break;
|
|
9275
9275
|
}
|
|
9276
9276
|
}
|
|
9277
|
-
L <
|
|
9277
|
+
L < M && (E *= -1, me = R, R = w, w = me, me = M, M = L, L = me, b in yd && W.attr("cursor", un[b = yd[b]])), Z < B && (x *= -1, me = P, P = U, U = me, me = B, B = Z, Z = me, b in xd && W.attr("cursor", un[b = xd[b]])), S.selection && (D = S.selection), Q && (M = D[0][0], L = D[1][0]), q && (B = D[0][1], Z = D[1][1]), (D[0][0] !== M || D[0][1] !== B || D[1][0] !== L || D[1][1] !== Z) && (S.selection = [[M, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
|
|
9278
9278
|
}
|
|
9279
9279
|
function st(nt) {
|
|
9280
9280
|
if (YC(nt), nt.touches) {
|
|
@@ -9284,7 +9284,7 @@ function eA(e) {
|
|
|
9284
9284
|
}, 500);
|
|
9285
9285
|
} else
|
|
9286
9286
|
FC(nt.view, Y), X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
|
|
9287
|
-
z.attr("pointer-events", "all"), W.attr("cursor", un.overlay), S.selection && (
|
|
9287
|
+
z.attr("pointer-events", "all"), W.attr("cursor", un.overlay), S.selection && (D = S.selection), tA(D) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
|
|
9288
9288
|
}
|
|
9289
9289
|
function Dt(nt) {
|
|
9290
9290
|
switch (nt.keyCode) {
|
|
@@ -9293,11 +9293,11 @@ function eA(e) {
|
|
|
9293
9293
|
break;
|
|
9294
9294
|
}
|
|
9295
9295
|
case 18: {
|
|
9296
|
-
_ === Or && (E && (w = L - j * E, R =
|
|
9296
|
+
_ === Or && (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = Sr, ut(nt));
|
|
9297
9297
|
break;
|
|
9298
9298
|
}
|
|
9299
9299
|
case 32: {
|
|
9300
|
-
(_ === Or || _ === Sr) && (E < 0 ? w = L - j : E > 0 && (R =
|
|
9300
|
+
(_ === Or || _ === Sr) && (E < 0 ? w = L - j : E > 0 && (R = M - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = Vo, W.attr("cursor", un.selection), ut(nt));
|
|
9301
9301
|
break;
|
|
9302
9302
|
}
|
|
9303
9303
|
default:
|
|
@@ -9312,11 +9312,11 @@ function eA(e) {
|
|
|
9312
9312
|
break;
|
|
9313
9313
|
}
|
|
9314
9314
|
case 18: {
|
|
9315
|
-
_ === Sr && (E < 0 ? w = L : E > 0 && (R =
|
|
9315
|
+
_ === Sr && (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = Or, ut(nt));
|
|
9316
9316
|
break;
|
|
9317
9317
|
}
|
|
9318
9318
|
case 32: {
|
|
9319
|
-
_ === Vo && (nt.altKey ? (E && (w = L - j * E, R =
|
|
9319
|
+
_ === Vo && (nt.altKey ? (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = Sr) : (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = Or), W.attr("cursor", un[b]), ut(nt));
|
|
9320
9320
|
break;
|
|
9321
9321
|
}
|
|
9322
9322
|
default:
|
|
@@ -9638,15 +9638,15 @@ function hA(e, t) {
|
|
|
9638
9638
|
i === 1 ? r = he + Ot : i === -1 && (r = -he - Ot);
|
|
9639
9639
|
for (var c = 0, u = e.length; c < u; ++c)
|
|
9640
9640
|
if (h = (d = e[c]).length)
|
|
9641
|
-
for (var d, h, p = d[h - 1], f = jo(p), g = p[1] / 2 + bd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v =
|
|
9642
|
-
var _ = d[b], E = jo(_), x = _[1] / 2 + bd, S = xt(x),
|
|
9643
|
-
if (l.add(sr(H * C * xt(R), v *
|
|
9641
|
+
for (var d, h, p = d[h - 1], f = jo(p), g = p[1] / 2 + bd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = $, p = _) {
|
|
9642
|
+
var _ = d[b], E = jo(_), x = _[1] / 2 + bd, S = xt(x), $ = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, M = R > ft, H = m * S;
|
|
9643
|
+
if (l.add(sr(H * C * xt(R), v * $ + H * Tt(R))), a += M ? D + C * _e : D, M ^ f >= n ^ E >= n) {
|
|
9644
9644
|
var P = Sa(Jr(p), Jr(_));
|
|
9645
9645
|
Bl(P);
|
|
9646
9646
|
var B = Sa(s, P);
|
|
9647
9647
|
Bl(B);
|
|
9648
|
-
var O = (
|
|
9649
|
-
(r > O || r === O && (P[0] || P[1])) && (o +=
|
|
9648
|
+
var O = (M ^ D >= 0 ? -1 : 1) * Mn(B[2]);
|
|
9649
|
+
(r > O || r === O && (P[0] || P[1])) && (o += M ^ D >= 0 ? 1 : -1);
|
|
9650
9650
|
}
|
|
9651
9651
|
}
|
|
9652
9652
|
return (a < -Ot || a < Ot && l < -Ag) ^ o & 1;
|
|
@@ -9689,16 +9689,16 @@ function Ig(e, t, n, r) {
|
|
|
9689
9689
|
}
|
|
9690
9690
|
function _() {
|
|
9691
9691
|
v(d[0][0], d[0][1]), o.lineEnd();
|
|
9692
|
-
var E = o.clean(), x = a.result(), S,
|
|
9693
|
-
if (d.pop(), c.push(d), d = null,
|
|
9692
|
+
var E = o.clean(), x = a.result(), S, $ = x.length, D, C, R;
|
|
9693
|
+
if (d.pop(), c.push(d), d = null, !!$) {
|
|
9694
9694
|
if (E & 1) {
|
|
9695
|
-
if (C = x[0], (
|
|
9696
|
-
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S <
|
|
9695
|
+
if (C = x[0], (D = C.length - 1) > 0) {
|
|
9696
|
+
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
|
|
9697
9697
|
i.lineEnd();
|
|
9698
9698
|
}
|
|
9699
9699
|
return;
|
|
9700
9700
|
}
|
|
9701
|
-
|
|
9701
|
+
$ > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(dA));
|
|
9702
9702
|
}
|
|
9703
9703
|
}
|
|
9704
9704
|
return h;
|
|
@@ -9787,18 +9787,18 @@ function vA(e) {
|
|
|
9787
9787
|
function l(u, d, h) {
|
|
9788
9788
|
var p = Jr(u), f = Jr(d), g = [1, 0, 0], m = Sa(p, f), v = Cs(m, m), b = m[0], _ = v - b * b;
|
|
9789
9789
|
if (!_) return !h && u;
|
|
9790
|
-
var E = t * v / _, x = -t * b / _, S = Sa(g, m),
|
|
9791
|
-
Fo(
|
|
9792
|
-
var C = S, R = Cs(
|
|
9790
|
+
var E = t * v / _, x = -t * b / _, S = Sa(g, m), $ = As(g, E), D = As(m, x);
|
|
9791
|
+
Fo($, D);
|
|
9792
|
+
var C = S, R = Cs($, C), M = Cs(C, C), H = R * R - M * (Cs($, $) - 1);
|
|
9793
9793
|
if (!(H < 0)) {
|
|
9794
|
-
var P = Fe(H), B = As(C, (-R - P) /
|
|
9795
|
-
if (Fo(B,
|
|
9796
|
-
var O = u[0], w = d[0], L = u[1],
|
|
9794
|
+
var P = Fe(H), B = As(C, (-R - P) / M);
|
|
9795
|
+
if (Fo(B, $), B = Ul(B), !h) return B;
|
|
9796
|
+
var O = u[0], w = d[0], L = u[1], k = d[1], U;
|
|
9797
9797
|
w < O && (U = O, O = w, w = U);
|
|
9798
9798
|
var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
|
|
9799
|
-
if (!j &&
|
|
9800
|
-
var Y = As(C, (-R + P) /
|
|
9801
|
-
return Fo(Y,
|
|
9799
|
+
if (!j && k < L && (U = L, L = k, k = U), F ? j ? L + k > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : k) : L <= B[1] && B[1] <= k : Z > ft ^ (O <= B[0] && B[0] <= w)) {
|
|
9800
|
+
var Y = As(C, (-R + P) / M);
|
|
9801
|
+
return Fo(Y, $), [B, Ul(Y)];
|
|
9802
9802
|
}
|
|
9803
9803
|
}
|
|
9804
9804
|
}
|
|
@@ -9873,34 +9873,34 @@ function xA(e, t, n, r) {
|
|
|
9873
9873
|
return d !== h ? d - h : d === 0 ? u[1] - c[1] : d === 1 ? c[0] - u[0] : d === 2 ? c[1] - u[1] : u[0] - c[0];
|
|
9874
9874
|
}
|
|
9875
9875
|
return function(c) {
|
|
9876
|
-
var u = c, d = kg(), h, p, f, g, m, v, b, _, E, x, S,
|
|
9877
|
-
point:
|
|
9876
|
+
var u = c, d = kg(), h, p, f, g, m, v, b, _, E, x, S, $ = {
|
|
9877
|
+
point: D,
|
|
9878
9878
|
lineStart: H,
|
|
9879
9879
|
lineEnd: P,
|
|
9880
9880
|
polygonStart: R,
|
|
9881
|
-
polygonEnd:
|
|
9881
|
+
polygonEnd: M
|
|
9882
9882
|
};
|
|
9883
|
-
function
|
|
9883
|
+
function D(O, w) {
|
|
9884
9884
|
i(O, w) && u.point(O, w);
|
|
9885
9885
|
}
|
|
9886
9886
|
function C() {
|
|
9887
9887
|
for (var O = 0, w = 0, L = p.length; w < L; ++w)
|
|
9888
|
-
for (var
|
|
9889
|
-
F = ot, Y = Q, j =
|
|
9888
|
+
for (var k = p[w], U = 1, Z = k.length, j = k[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
|
|
9889
|
+
F = ot, Y = Q, j = k[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;
|
|
9890
9890
|
return O;
|
|
9891
9891
|
}
|
|
9892
9892
|
function R() {
|
|
9893
9893
|
u = d, h = [], p = [], S = !0;
|
|
9894
9894
|
}
|
|
9895
|
-
function
|
|
9895
|
+
function M() {
|
|
9896
9896
|
var O = C(), w = S && O, L = (h = wg(h)).length;
|
|
9897
9897
|
(w || L) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), L && Rg(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
|
|
9898
9898
|
}
|
|
9899
9899
|
function H() {
|
|
9900
|
-
|
|
9900
|
+
$.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
|
|
9901
9901
|
}
|
|
9902
9902
|
function P() {
|
|
9903
|
-
h && (B(g, m), v && E && d.rejoin(), h.push(d.result())),
|
|
9903
|
+
h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), $.point = D, E && u.lineEnd();
|
|
9904
9904
|
}
|
|
9905
9905
|
function B(O, w) {
|
|
9906
9906
|
var L = i(O, w);
|
|
@@ -9908,12 +9908,12 @@ function xA(e, t, n, r) {
|
|
|
9908
9908
|
g = O, m = w, v = L, x = !1, L && (u.lineStart(), u.point(O, w));
|
|
9909
9909
|
else if (L && E) u.point(O, w);
|
|
9910
9910
|
else {
|
|
9911
|
-
var
|
|
9912
|
-
yA(
|
|
9911
|
+
var k = [b = Math.max(Ds, Math.min($i, b)), _ = Math.max(Ds, Math.min($i, _))], U = [O = Math.max(Ds, Math.min($i, O)), w = Math.max(Ds, Math.min($i, w))];
|
|
9912
|
+
yA(k, U, e, t, n, r) ? (E || (u.lineStart(), u.point(k[0], k[1])), u.point(U[0], U[1]), L || u.lineEnd(), S = !1) : L && (u.lineStart(), u.point(O, w), S = !1);
|
|
9913
9913
|
}
|
|
9914
9914
|
b = O, _ = w, E = L;
|
|
9915
9915
|
}
|
|
9916
|
-
return
|
|
9916
|
+
return $;
|
|
9917
9917
|
};
|
|
9918
9918
|
}
|
|
9919
9919
|
const Gl = (e) => e;
|
|
@@ -10231,8 +10231,8 @@ function PA(e, t) {
|
|
|
10231
10231
|
function n(r, i, s, a, o, l, c, u, d, h, p, f, g, m) {
|
|
10232
10232
|
var v = c - r, b = u - i, _ = v * v + b * b;
|
|
10233
10233
|
if (_ > 4 * t && g--) {
|
|
10234
|
-
var E = a + h, x = o + p, S = l + f,
|
|
10235
|
-
(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,
|
|
10234
|
+
var E = a + h, x = o + p, S = l + f, $ = Fe(E * E + x * x + S * S), D = Mn(S /= $), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : sr(x, E), R = e(C, D), M = R[0], H = R[1], P = M - r, B = H - i, O = b * P - v * B;
|
|
10235
|
+
(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, M, H, C, E /= $, x /= $, S, g, m), m.point(M, H), n(M, H, C, E, x, S, c, u, d, h, p, f, g, m));
|
|
10236
10236
|
}
|
|
10237
10237
|
}
|
|
10238
10238
|
return function(r) {
|
|
@@ -10247,26 +10247,26 @@ function PA(e, t) {
|
|
|
10247
10247
|
r.polygonEnd(), m.lineStart = b;
|
|
10248
10248
|
}
|
|
10249
10249
|
};
|
|
10250
|
-
function v(
|
|
10251
|
-
|
|
10250
|
+
function v(D, C) {
|
|
10251
|
+
D = e(D, C), r.point(D[0], D[1]);
|
|
10252
10252
|
}
|
|
10253
10253
|
function b() {
|
|
10254
10254
|
d = NaN, m.point = _, r.lineStart();
|
|
10255
10255
|
}
|
|
10256
|
-
function _(
|
|
10257
|
-
var R = Jr([
|
|
10258
|
-
n(d, h, u, p, f, g, d =
|
|
10256
|
+
function _(D, C) {
|
|
10257
|
+
var R = Jr([D, C]), M = e(D, C);
|
|
10258
|
+
n(d, h, u, p, f, g, d = M[0], h = M[1], u = D, p = R[0], f = R[1], g = R[2], Nd, r), r.point(d, h);
|
|
10259
10259
|
}
|
|
10260
10260
|
function E() {
|
|
10261
10261
|
m.point = v, r.lineEnd();
|
|
10262
10262
|
}
|
|
10263
10263
|
function x() {
|
|
10264
|
-
b(), m.point = S, m.lineEnd =
|
|
10264
|
+
b(), m.point = S, m.lineEnd = $;
|
|
10265
10265
|
}
|
|
10266
|
-
function S(
|
|
10267
|
-
_(i =
|
|
10266
|
+
function S(D, C) {
|
|
10267
|
+
_(i = D, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
|
|
10268
10268
|
}
|
|
10269
|
-
function
|
|
10269
|
+
function $() {
|
|
10270
10270
|
n(d, h, u, p, f, g, s, a, i, o, l, c, Nd, r), m.lineEnd = E, E();
|
|
10271
10271
|
}
|
|
10272
10272
|
return m;
|
|
@@ -10309,57 +10309,57 @@ function ao(e) {
|
|
|
10309
10309
|
})();
|
|
10310
10310
|
}
|
|
10311
10311
|
function Yg(e) {
|
|
10312
|
-
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 = Cd, m = null, v, b, _, E = Gl, x = 0.5, S,
|
|
10313
|
-
function
|
|
10314
|
-
return
|
|
10312
|
+
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 = Cd, m = null, v, b, _, E = Gl, x = 0.5, S, $, D, C, R;
|
|
10313
|
+
function M(O) {
|
|
10314
|
+
return D(O[0] * Ut, O[1] * Ut);
|
|
10315
10315
|
}
|
|
10316
10316
|
function H(O) {
|
|
10317
|
-
return O =
|
|
10317
|
+
return O = D.invert(O[0], O[1]), O && [O[0] * ie, O[1] * ie];
|
|
10318
10318
|
}
|
|
10319
|
-
|
|
10319
|
+
M.stream = function(O) {
|
|
10320
10320
|
return C && R === O ? C : C = UA(BA(u)(g(S(E(R = O)))));
|
|
10321
|
-
},
|
|
10321
|
+
}, M.preclip = function(O) {
|
|
10322
10322
|
return arguments.length ? (g = O, f = void 0, B()) : g;
|
|
10323
|
-
},
|
|
10323
|
+
}, M.postclip = function(O) {
|
|
10324
10324
|
return arguments.length ? (E = O, m = v = b = _ = null, B()) : E;
|
|
10325
|
-
},
|
|
10325
|
+
}, M.clipAngle = function(O) {
|
|
10326
10326
|
return arguments.length ? (g = +O ? vA(f = O * Ut) : (f = null, Cd), B()) : f * ie;
|
|
10327
|
-
},
|
|
10327
|
+
}, M.clipExtent = function(O) {
|
|
10328
10328
|
return arguments.length ? (E = O == null ? (m = v = b = _ = null, Gl) : xA(m = +O[0][0], v = +O[0][1], b = +O[1][0], _ = +O[1][1]), B()) : m == null ? null : [[m, v], [b, _]];
|
|
10329
|
-
},
|
|
10329
|
+
}, M.scale = function(O) {
|
|
10330
10330
|
return arguments.length ? (n = +O, P()) : n;
|
|
10331
|
-
},
|
|
10331
|
+
}, M.translate = function(O) {
|
|
10332
10332
|
return arguments.length ? (r = +O[0], i = +O[1], P()) : [r, i];
|
|
10333
|
-
},
|
|
10333
|
+
}, M.center = function(O) {
|
|
10334
10334
|
return arguments.length ? (s = O[0] % 360 * Ut, a = O[1] % 360 * Ut, P()) : [s * ie, a * ie];
|
|
10335
|
-
},
|
|
10335
|
+
}, M.rotate = function(O) {
|
|
10336
10336
|
return arguments.length ? (o = O[0] % 360 * Ut, l = O[1] % 360 * Ut, c = O.length > 2 ? O[2] % 360 * Ut : 0, P()) : [o * ie, l * ie, c * ie];
|
|
10337
|
-
},
|
|
10337
|
+
}, M.angle = function(O) {
|
|
10338
10338
|
return arguments.length ? (d = O % 360 * Ut, P()) : d * ie;
|
|
10339
|
-
},
|
|
10339
|
+
}, M.reflectX = function(O) {
|
|
10340
10340
|
return arguments.length ? (h = O ? -1 : 1, P()) : h < 0;
|
|
10341
|
-
},
|
|
10341
|
+
}, M.reflectY = function(O) {
|
|
10342
10342
|
return arguments.length ? (p = O ? -1 : 1, P()) : p < 0;
|
|
10343
|
-
},
|
|
10344
|
-
return arguments.length ? (S = Pd(
|
|
10345
|
-
},
|
|
10346
|
-
return qg(
|
|
10347
|
-
},
|
|
10348
|
-
return DA(
|
|
10349
|
-
},
|
|
10350
|
-
return kA(
|
|
10351
|
-
},
|
|
10352
|
-
return RA(
|
|
10343
|
+
}, M.precision = function(O) {
|
|
10344
|
+
return arguments.length ? (S = Pd($, x = O * O), B()) : Fe(x);
|
|
10345
|
+
}, M.fitExtent = function(O, w) {
|
|
10346
|
+
return qg(M, O, w);
|
|
10347
|
+
}, M.fitSize = function(O, w) {
|
|
10348
|
+
return DA(M, O, w);
|
|
10349
|
+
}, M.fitWidth = function(O, w) {
|
|
10350
|
+
return kA(M, O, w);
|
|
10351
|
+
}, M.fitHeight = function(O, w) {
|
|
10352
|
+
return RA(M, O, w);
|
|
10353
10353
|
};
|
|
10354
10354
|
function P() {
|
|
10355
10355
|
var O = Ud(n, 0, 0, h, p, d).apply(null, t(s, a)), w = Ud(n, r - O[0], i - O[1], h, p, d);
|
|
10356
|
-
return u = Dg(o, l, c),
|
|
10356
|
+
return u = Dg(o, l, c), $ = Hl(t, w), D = Hl(u, $), S = Pd($, x), B();
|
|
10357
10357
|
}
|
|
10358
10358
|
function B() {
|
|
10359
|
-
return C = R = null,
|
|
10359
|
+
return C = R = null, M;
|
|
10360
10360
|
}
|
|
10361
10361
|
return function() {
|
|
10362
|
-
return t = e.apply(this, arguments),
|
|
10362
|
+
return t = e.apply(this, arguments), M.invert = t.invert && H, P();
|
|
10363
10363
|
};
|
|
10364
10364
|
}
|
|
10365
10365
|
function Xg(e) {
|
|
@@ -10753,10 +10753,10 @@ function Di(e, t) {
|
|
|
10753
10753
|
};
|
|
10754
10754
|
}
|
|
10755
10755
|
function ev(e, t, n) {
|
|
10756
|
-
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,
|
|
10756
|
+
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, $ = (g * m - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = $ * $ + C * C - 1, M = 2 * (s + S * $ + D * C), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? (M + Math.sqrt(M * M - 4 * R * H)) / (2 * R) : H / M);
|
|
10757
10757
|
return {
|
|
10758
|
-
x: r + S +
|
|
10759
|
-
y: i +
|
|
10758
|
+
x: r + S + $ * P,
|
|
10759
|
+
y: i + D + C * P,
|
|
10760
10760
|
r: P
|
|
10761
10761
|
};
|
|
10762
10762
|
}
|
|
@@ -11028,13 +11028,13 @@ function rD(e, t, n, r, i, s, a, o) {
|
|
|
11028
11028
|
return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
|
|
11029
11029
|
}
|
|
11030
11030
|
function Is(e, t, n, r, i, s, a) {
|
|
11031
|
-
var o = e - n, l = t - r, c = (a ? s : -s) / Pr(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,
|
|
11032
|
-
return H * H + P * P > B * B + O * O && (
|
|
11033
|
-
cx:
|
|
11031
|
+
var o = e - n, l = t - r, c = (a ? s : -s) / Pr(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, $ = (_ < 0 ? -1 : 1) * Pr(BM(0, x * x * E - S * S)), D = (S * _ - b * $) / E, C = (-S * b - _ * $) / E, R = (S * _ + b * $) / E, M = (-S * b + _ * $) / E, H = D - m, P = C - v, B = R - m, O = M - v;
|
|
11032
|
+
return H * H + P * P > B * B + O * O && (D = R, C = M), {
|
|
11033
|
+
cx: D,
|
|
11034
11034
|
cy: C,
|
|
11035
11035
|
x01: -u,
|
|
11036
11036
|
y01: -d,
|
|
11037
|
-
x11:
|
|
11037
|
+
x11: D * (i / x - 1),
|
|
11038
11038
|
y11: C * (i / x - 1)
|
|
11039
11039
|
};
|
|
11040
11040
|
}
|
|
@@ -11046,22 +11046,22 @@ function is() {
|
|
|
11046
11046
|
else if (m > qs - ee)
|
|
11047
11047
|
o.moveTo(p * Fn(f), p * Xe(f)), o.arc(0, 0, p, f, g, !v), h > ee && (o.moveTo(h * Fn(g), h * Xe(g)), o.arc(0, 0, h, g, f, v));
|
|
11048
11048
|
else {
|
|
11049
|
-
var b = f, _ = g, E = f, x = g, S = m,
|
|
11049
|
+
var b = f, _ = g, E = f, x = g, S = m, $ = m, D = a.apply(this, arguments) / 2, C = D > ee && (r ? +r.apply(this, arguments) : Pr(h * h + p * p)), R = Po(Jh(p - h) / 2, +n.apply(this, arguments)), M = R, H = R, P, B;
|
|
11050
11050
|
if (C > ee) {
|
|
11051
|
-
var O = td(C / h * Xe(
|
|
11052
|
-
(S -= O * 2) > ee ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), (
|
|
11051
|
+
var O = td(C / h * Xe(D)), w = td(C / p * Xe(D));
|
|
11052
|
+
(S -= O * 2) > ee ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), ($ -= w * 2) > ee ? (w *= v ? 1 : -1, b += w, _ -= w) : ($ = 0, b = _ = (f + g) / 2);
|
|
11053
11053
|
}
|
|
11054
|
-
var L = p * Fn(b),
|
|
11054
|
+
var L = p * Fn(b), k = p * Xe(b), U = h * Fn(x), Z = h * Xe(x);
|
|
11055
11055
|
if (R > ee) {
|
|
11056
11056
|
var j = p * Fn(_), F = p * Xe(_), Y = h * Fn(E), ot = h * Xe(E), Q;
|
|
11057
11057
|
if (m < ts)
|
|
11058
|
-
if (Q = rD(L,
|
|
11059
|
-
var q = L - Q[0], tt =
|
|
11060
|
-
|
|
11058
|
+
if (Q = rD(L, k, Y, ot, j, F, U, Z)) {
|
|
11059
|
+
var q = L - Q[0], tt = k - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Xe(HM((q * lt + tt * z) / (Pr(q * q + tt * tt) * Pr(lt * lt + z * z))) / 2), X = Pr(Q[0] * Q[0] + Q[1] * Q[1]);
|
|
11060
|
+
M = Po(R, (h - X) / (W - 1)), H = Po(R, (p - X) / (W + 1));
|
|
11061
11061
|
} else
|
|
11062
|
-
|
|
11062
|
+
M = H = 0;
|
|
11063
11063
|
}
|
|
11064
|
-
|
|
11064
|
+
$ > ee ? H > ee ? (P = Is(Y, ot, L, k, p, H, v), B = Is(j, F, U, Z, p, H, v), o.moveTo(P.cx + P.x01, P.cy + P.y01), H < R ? o.arc(P.cx, P.cy, H, Qt(P.y01, P.x01), Qt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Qt(P.y01, P.x01), Qt(P.y11, P.x11), !v), o.arc(0, 0, p, Qt(P.cy + P.y11, P.cx + P.x11), Qt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Qt(B.y11, B.x11), Qt(B.y01, B.x01), !v))) : (o.moveTo(L, k), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, k), !(h > ee) || !(S > ee) ? o.lineTo(U, Z) : M > ee ? (P = Is(U, Z, j, F, h, -M, v), B = Is(L, k, Y, ot, h, -M, v), o.lineTo(P.cx + P.x01, P.cy + P.y01), M < R ? o.arc(P.cx, P.cy, M, Qt(P.y01, P.x01), Qt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, M, Qt(P.y01, P.x01), Qt(P.y11, P.x11), !v), o.arc(0, 0, h, Qt(P.cy + P.y11, P.cx + P.x11), Qt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, M, Qt(B.y11, B.x11), Qt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
|
|
11065
11065
|
}
|
|
11066
11066
|
if (o.closePath(), u) return o = null, u + "" || null;
|
|
11067
11067
|
}
|
|
@@ -11542,13 +11542,13 @@ function lv() {
|
|
|
11542
11542
|
let E, x = "";
|
|
11543
11543
|
const {
|
|
11544
11544
|
implementation: S,
|
|
11545
|
-
createNodeIterator:
|
|
11546
|
-
createDocumentFragment:
|
|
11545
|
+
createNodeIterator: $,
|
|
11546
|
+
createDocumentFragment: D,
|
|
11547
11547
|
getElementsByTagName: C
|
|
11548
11548
|
} = n, {
|
|
11549
11549
|
importNode: R
|
|
11550
11550
|
} = r;
|
|
11551
|
-
let
|
|
11551
|
+
let M = Jd();
|
|
11552
11552
|
t.isSupported = typeof iv == "function" && typeof _ == "function" && S && S.createHTMLDocument !== void 0;
|
|
11553
11553
|
const {
|
|
11554
11554
|
MUSTACHE_EXPR: H,
|
|
@@ -11557,7 +11557,7 @@ function lv() {
|
|
|
11557
11557
|
DATA_ATTR: O,
|
|
11558
11558
|
ARIA_ATTR: w,
|
|
11559
11559
|
IS_SCRIPT_OR_DATA: L,
|
|
11560
|
-
ATTR_WHITESPACE:
|
|
11560
|
+
ATTR_WHITESPACE: k,
|
|
11561
11561
|
CUSTOM_ELEMENT: U
|
|
11562
11562
|
} = Qd;
|
|
11563
11563
|
let {
|
|
@@ -11681,7 +11681,7 @@ function lv() {
|
|
|
11681
11681
|
const Yt = J.body || J.documentElement;
|
|
11682
11682
|
return A && K && Yt.insertBefore(n.createTextNode(K), Yt.childNodes[0] || null), vr === an ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Yt;
|
|
11683
11683
|
}, bu = function(A) {
|
|
11684
|
-
return
|
|
11684
|
+
return $.call(
|
|
11685
11685
|
A.ownerDocument || A,
|
|
11686
11686
|
A,
|
|
11687
11687
|
// eslint-disable-next-line no-bitwise
|
|
@@ -11700,10 +11700,10 @@ function lv() {
|
|
|
11700
11700
|
}
|
|
11701
11701
|
const Eu = function(A) {
|
|
11702
11702
|
let J = null;
|
|
11703
|
-
if (on(
|
|
11703
|
+
if (on(M.beforeSanitizeElements, A, null), yo(A))
|
|
11704
11704
|
return Gn(A), !0;
|
|
11705
11705
|
const K = Wt(A.nodeName);
|
|
11706
|
-
if (on(
|
|
11706
|
+
if (on(M.uponSanitizeElement, A, {
|
|
11707
11707
|
tagName: K,
|
|
11708
11708
|
allowedTags: j
|
|
11709
11709
|
}), ut && A.hasChildNodes() && !_u(A.firstElementChild) && re(/<[/\w!]/g, A.innerHTML) && re(/<[/\w!]/g, A.textContent) || A.nodeType === _i.progressingInstruction || ut && A.nodeType === _i.comment && re(/<[/\w]/g, A.data))
|
|
@@ -11727,7 +11727,7 @@ function lv() {
|
|
|
11727
11727
|
J = yi(J, bt, " ");
|
|
11728
11728
|
}), A.textContent !== J && (vi(t.removed, {
|
|
11729
11729
|
element: A.cloneNode()
|
|
11730
|
-
}), A.textContent = J)), on(
|
|
11730
|
+
}), A.textContent = J)), on(M.afterSanitizeElements, A, null), !1);
|
|
11731
11731
|
}, Ou = function(A, J, K) {
|
|
11732
11732
|
if (me && (J === "id" || J === "name") && (K in n || K in n1))
|
|
11733
11733
|
return !1;
|
|
@@ -11741,14 +11741,14 @@ function lv() {
|
|
|
11741
11741
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11742
11742
|
J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && re(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
|
|
11743
11743
|
) return !1;
|
|
11744
|
-
} else if (!fo[J] && !re(Z, yi(K,
|
|
11744
|
+
} else if (!fo[J] && !re(Z, yi(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && _D(K, "data:") === 0 && pu[A]) && !(W && !re(L, yi(K, k, ""))) && K)
|
|
11745
11745
|
return !1;
|
|
11746
11746
|
}
|
|
11747
11747
|
return !0;
|
|
11748
11748
|
}, Su = function(A) {
|
|
11749
11749
|
return A !== "annotation-xml" && qd(A, U);
|
|
11750
11750
|
}, Tu = function(A) {
|
|
11751
|
-
on(
|
|
11751
|
+
on(M.beforeSanitizeAttributes, A, null);
|
|
11752
11752
|
const {
|
|
11753
11753
|
attributes: J
|
|
11754
11754
|
} = A;
|
|
@@ -11769,7 +11769,7 @@ function lv() {
|
|
|
11769
11769
|
value: Ie
|
|
11770
11770
|
} = Yt, Ye = Wt(Nt), xo = Ie;
|
|
11771
11771
|
let Kt = Nt === "value" ? xo : ED(xo);
|
|
11772
|
-
if (K.attrName = Ye, K.attrValue = Kt, K.keepAttr = !0, K.forceKeepAttr = void 0, on(
|
|
11772
|
+
if (K.attrName = Ye, K.attrValue = Kt, K.keepAttr = !0, K.forceKeepAttr = void 0, on(M.uponSanitizeAttribute, A, K), Kt = K.attrValue, si && (Ye === "id" || Ye === "name") && (xr(Nt, A), Kt = ai + Kt), ut && re(/((--!?|])>)|<\/(style|title)/i, Kt)) {
|
|
11773
11773
|
xr(Nt, A);
|
|
11774
11774
|
continue;
|
|
11775
11775
|
}
|
|
@@ -11809,13 +11809,13 @@ function lv() {
|
|
|
11809
11809
|
xr(Nt, A);
|
|
11810
11810
|
}
|
|
11811
11811
|
}
|
|
11812
|
-
on(
|
|
11812
|
+
on(M.afterSanitizeAttributes, A, null);
|
|
11813
11813
|
}, i1 = function A(J) {
|
|
11814
11814
|
let K = null;
|
|
11815
11815
|
const bt = bu(J);
|
|
11816
|
-
for (on(
|
|
11817
|
-
on(
|
|
11818
|
-
on(
|
|
11816
|
+
for (on(M.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
|
|
11817
|
+
on(M.uponSanitizeShadowNode, K, null), Eu(K), Tu(K), K.content instanceof s && A(K.content);
|
|
11818
|
+
on(M.afterSanitizeShadowDOM, J, null);
|
|
11819
11819
|
};
|
|
11820
11820
|
return t.sanitize = function(A) {
|
|
11821
11821
|
let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Yt = null, Nt = null;
|
|
@@ -11850,7 +11850,7 @@ function lv() {
|
|
|
11850
11850
|
return A;
|
|
11851
11851
|
if (nt) {
|
|
11852
11852
|
if (yt)
|
|
11853
|
-
for (Nt =
|
|
11853
|
+
for (Nt = D.call(K.ownerDocument); K.firstChild; )
|
|
11854
11854
|
Nt.appendChild(K.firstChild);
|
|
11855
11855
|
else
|
|
11856
11856
|
Nt = K;
|
|
@@ -11871,17 +11871,17 @@ function lv() {
|
|
|
11871
11871
|
const bt = Wt(A), Yt = Wt(J);
|
|
11872
11872
|
return Ou(bt, Yt, K);
|
|
11873
11873
|
}, t.addHook = function(A, J) {
|
|
11874
|
-
typeof J == "function" && vi(
|
|
11874
|
+
typeof J == "function" && vi(M[A], J);
|
|
11875
11875
|
}, t.removeHook = function(A, J) {
|
|
11876
11876
|
if (J !== void 0) {
|
|
11877
|
-
const K = xD(
|
|
11878
|
-
return K === -1 ? void 0 : bD(
|
|
11877
|
+
const K = xD(M[A], J);
|
|
11878
|
+
return K === -1 ? void 0 : bD(M[A], K, 1)[0];
|
|
11879
11879
|
}
|
|
11880
|
-
return Wd(
|
|
11880
|
+
return Wd(M[A]);
|
|
11881
11881
|
}, t.removeHooks = function(A) {
|
|
11882
|
-
|
|
11882
|
+
M[A] = [];
|
|
11883
11883
|
}, t.removeAllHooks = function() {
|
|
11884
|
-
|
|
11884
|
+
M = Jd();
|
|
11885
11885
|
}, t;
|
|
11886
11886
|
}
|
|
11887
11887
|
var tu = lv();
|
|
@@ -12575,15 +12575,15 @@ class eu extends mt {
|
|
|
12575
12575
|
_.exit().remove();
|
|
12576
12576
|
const E = _.enter().append("div").merge(_).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
|
|
12577
12577
|
"aria-labelledby",
|
|
12578
|
-
(
|
|
12579
|
-
`legend-datagroup-${m.size() +
|
|
12578
|
+
($, D) => this.services.domUtils.generateElementIDString(
|
|
12579
|
+
`legend-datagroup-${m.size() + D}-title`
|
|
12580
12580
|
)
|
|
12581
12581
|
);
|
|
12582
12582
|
E.selectAll("*").remove();
|
|
12583
12583
|
let x, S = 1;
|
|
12584
|
-
E.append("svg").classed("icon", !0).each(function(
|
|
12585
|
-
const
|
|
12586
|
-
!x || x !=
|
|
12584
|
+
E.append("svg").classed("icon", !0).each(function($) {
|
|
12585
|
+
const D = I(this);
|
|
12586
|
+
!x || x != $.type ? (x = $.type, S = 1) : S++, b.addAdditionalItem(D, $, S);
|
|
12587
12587
|
}), E.append("p").merge(E.select("p")), this.truncateLegendText();
|
|
12588
12588
|
}
|
|
12589
12589
|
d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && h.size() > 1 && this.addEventListeners();
|
|
@@ -13030,18 +13030,18 @@ const fv = class ta extends mt {
|
|
|
13030
13030
|
f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
|
|
13031
13031
|
const g = (x) => {
|
|
13032
13032
|
const S = x[1] - x[0];
|
|
13033
|
-
let
|
|
13034
|
-
const
|
|
13035
|
-
for (let R = 0; R <
|
|
13036
|
-
|
|
13037
|
-
|
|
13033
|
+
let $ = "0," + S.toString();
|
|
13034
|
+
const D = Math.floor(l / ta.DASH_LENGTH), C = D * ta.DASH_LENGTH;
|
|
13035
|
+
for (let R = 0; R < D; R++)
|
|
13036
|
+
$ += "," + ta.DASH_LENGTH;
|
|
13037
|
+
$ += "," + (l - C), D % 2 === 1 && ($ += ",0"), $ += "," + S.toString(), $ += "," + l.toString(), p.attr("stroke-dasharray", $);
|
|
13038
13038
|
}, m = (x) => {
|
|
13039
13039
|
const S = x.selection;
|
|
13040
13040
|
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));
|
|
13041
13041
|
}, v = (x, S) => {
|
|
13042
|
-
const
|
|
13043
|
-
let
|
|
13044
|
-
|
|
13042
|
+
const $ = Km().range([0, o]).domain(f);
|
|
13043
|
+
let D = [$.invert(x), $.invert(S)], C = "manual";
|
|
13044
|
+
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 });
|
|
13045
13045
|
};
|
|
13046
13046
|
let b;
|
|
13047
13047
|
const _ = (x) => {
|
|
@@ -13055,11 +13055,11 @@ const fv = class ta extends mt {
|
|
|
13055
13055
|
const E = this.services.zoom.getZoomRatio();
|
|
13056
13056
|
i.on("click", function(x) {
|
|
13057
13057
|
if (x.shiftKey) {
|
|
13058
|
-
const S = this.services.domUtils.getHolder(),
|
|
13059
|
-
let
|
|
13060
|
-
|
|
13061
|
-
let C =
|
|
13062
|
-
C > o && (C = o), v(
|
|
13058
|
+
const S = this.services.domUtils.getHolder(), $ = tr(s.node(), S)[0];
|
|
13059
|
+
let D = $ - o * E / 2;
|
|
13060
|
+
D < 0 && (D = 0);
|
|
13061
|
+
let C = $ + o * E / 2;
|
|
13062
|
+
C > o && (C = o), v(D, C);
|
|
13063
13063
|
}
|
|
13064
13064
|
});
|
|
13065
13065
|
}
|
|
@@ -13131,17 +13131,17 @@ class HD extends mt {
|
|
|
13131
13131
|
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Ge(m, (S) => S.value));
|
|
13132
13132
|
const E = this.model.get("zoomDomain");
|
|
13133
13133
|
if (s === Ze.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)) {
|
|
13134
|
-
const S = a.highlightStartMapsTo,
|
|
13135
|
-
a.data.forEach((R,
|
|
13136
|
-
N.appendOrSelect(d, `rect.highlight-${
|
|
13134
|
+
const S = a.highlightStartMapsTo, $ = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
|
|
13135
|
+
a.data.forEach((R, M) => {
|
|
13136
|
+
N.appendOrSelect(d, `rect.highlight-${M}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
|
|
13137
13137
|
"width",
|
|
13138
|
-
this.xScale(R[
|
|
13138
|
+
this.xScale(R[$]) - this.xScale(R[S])
|
|
13139
13139
|
).style(
|
|
13140
13140
|
"fill",
|
|
13141
|
-
|
|
13141
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13142
13142
|
).style("fill-opacity", 0.1).style(
|
|
13143
13143
|
"stroke",
|
|
13144
|
-
|
|
13144
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13145
13145
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
13146
13146
|
});
|
|
13147
13147
|
}
|
|
@@ -13150,7 +13150,7 @@ class HD extends mt {
|
|
|
13150
13150
|
if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
|
|
13151
13151
|
x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
|
|
13152
13152
|
else {
|
|
13153
|
-
const S = E.map((
|
|
13153
|
+
const S = E.map(($) => this.xScale($));
|
|
13154
13154
|
S[1] - S[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, S), this.updateBrushHandle(this.getComponentContainer(), S));
|
|
13155
13155
|
}
|
|
13156
13156
|
i && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
|
|
@@ -13306,7 +13306,7 @@ class VD extends mt {
|
|
|
13306
13306
|
), d = l.services.cartesianScales.getScaleTypeByPosition(c);
|
|
13307
13307
|
let h = null, p = null;
|
|
13308
13308
|
c === G.LEFT || c === G.RIGHT ? (p = u, h = l.services.cartesianScales.getMainXScale()) : (h = u, p = l.services.cartesianScales.getMainYScale());
|
|
13309
|
-
const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [
|
|
13309
|
+
const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [$, D] = _n(
|
|
13310
13310
|
x,
|
|
13311
13311
|
S,
|
|
13312
13312
|
E
|
|
@@ -13319,11 +13319,11 @@ class VD extends mt {
|
|
|
13319
13319
|
})
|
|
13320
13320
|
).attr("y1", b).attr("y2", v).attr(
|
|
13321
13321
|
"x1",
|
|
13322
|
-
({ datum: R }) =>
|
|
13322
|
+
({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
|
|
13323
13323
|
).attr(
|
|
13324
13324
|
"x2",
|
|
13325
|
-
({ datum: R }) =>
|
|
13326
|
-
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) =>
|
|
13325
|
+
({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
|
|
13326
|
+
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -$(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
|
|
13327
13327
|
(R) => l.services.transitions.setupTransition({
|
|
13328
13328
|
transition: R,
|
|
13329
13329
|
name: "threshold-line-update",
|
|
@@ -13331,11 +13331,11 @@ class VD extends mt {
|
|
|
13331
13331
|
})
|
|
13332
13332
|
).attr("x1", g).attr("x2", m).attr(
|
|
13333
13333
|
"y1",
|
|
13334
|
-
({ datum: R }) =>
|
|
13334
|
+
({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
|
|
13335
13335
|
).attr(
|
|
13336
13336
|
"y2",
|
|
13337
|
-
({ datum: R }) =>
|
|
13338
|
-
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) =>
|
|
13337
|
+
({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
|
|
13338
|
+
).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));
|
|
13339
13339
|
}), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
|
|
13340
13340
|
this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
|
|
13341
13341
|
}), this.services.events.addEventListener(T.Threshold.HIDE, () => {
|
|
@@ -13444,30 +13444,30 @@ class GD extends mt {
|
|
|
13444
13444
|
o.append("rect").attr("class", "highlight-bar"), o.append("line").attr("class", "highlight-line"), o.merge(a).attr("class", "highlight-group");
|
|
13445
13445
|
const l = this;
|
|
13446
13446
|
s.each(function({ axisPosition: c }) {
|
|
13447
|
-
const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = (
|
|
13447
|
+
const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = ($) => m.getDomainValue($), _ = ($) => m.getRangeValue($), [E, x] = _n(
|
|
13448
13448
|
b,
|
|
13449
13449
|
_,
|
|
13450
13450
|
v
|
|
13451
13451
|
), S = I(this);
|
|
13452
13452
|
c === G.TOP || c === G.BOTTOM ? S.selectAll("rect.highlight-bar").transition().call(
|
|
13453
|
-
(
|
|
13454
|
-
transition:
|
|
13453
|
+
($) => l.services.transitions.setupTransition({
|
|
13454
|
+
transition: $,
|
|
13455
13455
|
name: "highlight-bar-update",
|
|
13456
13456
|
animate: t
|
|
13457
13457
|
})
|
|
13458
|
-
).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo:
|
|
13458
|
+
).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: $, ...D }) => E(D[$])).attr(
|
|
13459
13459
|
"width",
|
|
13460
|
-
({ highlightStartMapsTo:
|
|
13461
|
-
).style("stroke", ({ color:
|
|
13462
|
-
(
|
|
13463
|
-
transition:
|
|
13460
|
+
({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[$]), 0)
|
|
13461
|
+
).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
|
|
13462
|
+
($) => l.services.transitions.setupTransition({
|
|
13463
|
+
transition: $,
|
|
13464
13464
|
name: "highlight-bar-update",
|
|
13465
13465
|
animate: t
|
|
13466
13466
|
})
|
|
13467
|
-
).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo:
|
|
13467
|
+
).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: $, ...D }) => x(D[$])).attr(
|
|
13468
13468
|
"height",
|
|
13469
|
-
({ highlightStartMapsTo:
|
|
13470
|
-
).style("stroke", ({ color:
|
|
13469
|
+
({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(x(C[$]) - x(C[D]), 0)
|
|
13470
|
+
).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null);
|
|
13471
13471
|
});
|
|
13472
13472
|
}
|
|
13473
13473
|
}
|
|
@@ -13545,13 +13545,14 @@ class mv extends nu {
|
|
|
13545
13545
|
};
|
|
13546
13546
|
}).sort((h, p) => p.value - h.value)
|
|
13547
13547
|
), !a && y(r, "tooltip", "showTotal") === !0)) {
|
|
13548
|
-
const h = i.getRangeIdentifier();
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
),
|
|
13548
|
+
const h = i.getRangeIdentifier(), p = y(r, "tooltip", "customTotalCalculation");
|
|
13549
|
+
let f;
|
|
13550
|
+
p ? f = p(n) : f = n.reduce(
|
|
13551
|
+
(g, m) => g + m[h],
|
|
13552
|
+
0
|
|
13553
|
+
), d.push({
|
|
13554
|
+
label: gt(r, "tooltip.totalLabel") || gt(r, "locale.translations.total") || "Total",
|
|
13555
|
+
value: f,
|
|
13555
13556
|
bold: !0
|
|
13556
13557
|
});
|
|
13557
13558
|
}
|
|
@@ -13675,17 +13676,17 @@ function XD() {
|
|
|
13675
13676
|
return arguments.length ? (p = +O, f) : p;
|
|
13676
13677
|
};
|
|
13677
13678
|
function g({ nodes: O, links: w }) {
|
|
13678
|
-
for (const [
|
|
13679
|
-
U.index =
|
|
13680
|
-
const L = new Map(O.map((
|
|
13681
|
-
for (const [
|
|
13682
|
-
U.index =
|
|
13679
|
+
for (const [k, U] of O.entries())
|
|
13680
|
+
U.index = k, U.sourceLinks = [], U.targetLinks = [];
|
|
13681
|
+
const L = new Map(O.map((k, U) => [o(k, U, O), k]));
|
|
13682
|
+
for (const [k, U] of w.entries()) {
|
|
13683
|
+
U.index = k;
|
|
13683
13684
|
let { source: Z, target: j } = U;
|
|
13684
13685
|
typeof Z != "object" && (Z = U.source = sp(L, Z)), typeof j != "object" && (j = U.target = sp(L, j)), Z.sourceLinks.push(U), j.targetLinks.push(U);
|
|
13685
13686
|
}
|
|
13686
13687
|
if (u != null)
|
|
13687
|
-
for (const { sourceLinks:
|
|
13688
|
-
|
|
13688
|
+
for (const { sourceLinks: k, targetLinks: U } of O)
|
|
13689
|
+
k.sort(u), U.sort(u);
|
|
13689
13690
|
}
|
|
13690
13691
|
function m({ nodes: O }) {
|
|
13691
13692
|
for (const w of O)
|
|
@@ -13693,53 +13694,53 @@ function XD() {
|
|
|
13693
13694
|
}
|
|
13694
13695
|
function v({ nodes: O }) {
|
|
13695
13696
|
const w = O.length;
|
|
13696
|
-
let L = new Set(O),
|
|
13697
|
+
let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
|
|
13697
13698
|
for (; L.size; ) {
|
|
13698
13699
|
for (const Z of L) {
|
|
13699
13700
|
Z.depth = U;
|
|
13700
13701
|
for (const { target: j } of Z.sourceLinks)
|
|
13701
|
-
|
|
13702
|
+
k.add(j);
|
|
13702
13703
|
}
|
|
13703
13704
|
if (++U > w) throw new Error("circular link");
|
|
13704
|
-
L =
|
|
13705
|
+
L = k, k = /* @__PURE__ */ new Set();
|
|
13705
13706
|
}
|
|
13706
13707
|
}
|
|
13707
13708
|
function b({ nodes: O }) {
|
|
13708
13709
|
const w = O.length;
|
|
13709
|
-
let L = new Set(O),
|
|
13710
|
+
let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
|
|
13710
13711
|
for (; L.size; ) {
|
|
13711
13712
|
for (const Z of L) {
|
|
13712
13713
|
Z.height = U;
|
|
13713
13714
|
for (const { source: j } of Z.targetLinks)
|
|
13714
|
-
|
|
13715
|
+
k.add(j);
|
|
13715
13716
|
}
|
|
13716
13717
|
if (++U > w) throw new Error("circular link");
|
|
13717
|
-
L =
|
|
13718
|
+
L = k, k = /* @__PURE__ */ new Set();
|
|
13718
13719
|
}
|
|
13719
13720
|
}
|
|
13720
13721
|
function _({ nodes: O }) {
|
|
13721
|
-
const w = np(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1),
|
|
13722
|
+
const w = np(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), k = new Array(w);
|
|
13722
13723
|
for (const U of O) {
|
|
13723
13724
|
const Z = Math.max(0, Math.min(w - 1, Math.floor(l.call(null, U, w))));
|
|
13724
|
-
U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i,
|
|
13725
|
+
U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, k[Z] ? k[Z].push(U) : k[Z] = [U];
|
|
13725
13726
|
}
|
|
13726
|
-
if (c) for (const U of
|
|
13727
|
+
if (c) for (const U of k)
|
|
13727
13728
|
U.sort(c);
|
|
13728
|
-
return
|
|
13729
|
+
return k;
|
|
13729
13730
|
}
|
|
13730
13731
|
function E(O) {
|
|
13731
13732
|
const w = zD(O, (L) => (r - t - (L.length - 1) * a) / rl(L, il));
|
|
13732
13733
|
for (const L of O) {
|
|
13733
|
-
let
|
|
13734
|
+
let k = t;
|
|
13734
13735
|
for (const U of L) {
|
|
13735
|
-
U.y0 =
|
|
13736
|
+
U.y0 = k, U.y1 = k + U.value * w, k = U.y1 + a;
|
|
13736
13737
|
for (const Z of U.sourceLinks)
|
|
13737
13738
|
Z.width = Z.value * w;
|
|
13738
13739
|
}
|
|
13739
|
-
|
|
13740
|
+
k = (r - k + a) / (L.length + 1);
|
|
13740
13741
|
for (let U = 0; U < L.length; ++U) {
|
|
13741
13742
|
const Z = L[U];
|
|
13742
|
-
Z.y0 +=
|
|
13743
|
+
Z.y0 += k * (U + 1), Z.y1 += k * (U + 1);
|
|
13743
13744
|
}
|
|
13744
13745
|
H(L);
|
|
13745
13746
|
}
|
|
@@ -13748,13 +13749,13 @@ function XD() {
|
|
|
13748
13749
|
const w = _(O);
|
|
13749
13750
|
a = Math.min(s, (r - t) / (np(w, (L) => L.length) - 1)), E(w);
|
|
13750
13751
|
for (let L = 0; L < p; ++L) {
|
|
13751
|
-
const
|
|
13752
|
-
|
|
13752
|
+
const k = Math.pow(0.99, L), U = Math.max(1 - k, (L + 1) / p);
|
|
13753
|
+
$(w, k, U), S(w, k, U);
|
|
13753
13754
|
}
|
|
13754
13755
|
}
|
|
13755
13756
|
function S(O, w, L) {
|
|
13756
|
-
for (let
|
|
13757
|
-
const Z = O[
|
|
13757
|
+
for (let k = 1, U = O.length; k < U; ++k) {
|
|
13758
|
+
const Z = O[k];
|
|
13758
13759
|
for (const j of Z) {
|
|
13759
13760
|
let F = 0, Y = 0;
|
|
13760
13761
|
for (const { source: Q, value: q } of j.targetLinks) {
|
|
@@ -13763,13 +13764,13 @@ function XD() {
|
|
|
13763
13764
|
}
|
|
13764
13765
|
if (!(Y > 0)) continue;
|
|
13765
13766
|
let ot = (F / Y - j.y0) * w;
|
|
13766
|
-
j.y0 += ot, j.y1 += ot,
|
|
13767
|
+
j.y0 += ot, j.y1 += ot, M(j);
|
|
13767
13768
|
}
|
|
13768
|
-
c === void 0 && Z.sort(ka),
|
|
13769
|
+
c === void 0 && Z.sort(ka), D(Z, L);
|
|
13769
13770
|
}
|
|
13770
13771
|
}
|
|
13771
|
-
function
|
|
13772
|
-
for (let
|
|
13772
|
+
function $(O, w, L) {
|
|
13773
|
+
for (let k = O.length, U = k - 2; U >= 0; --U) {
|
|
13773
13774
|
const Z = O[U];
|
|
13774
13775
|
for (const j of Z) {
|
|
13775
13776
|
let F = 0, Y = 0;
|
|
@@ -13779,28 +13780,28 @@ function XD() {
|
|
|
13779
13780
|
}
|
|
13780
13781
|
if (!(Y > 0)) continue;
|
|
13781
13782
|
let ot = (F / Y - j.y0) * w;
|
|
13782
|
-
j.y0 += ot, j.y1 += ot,
|
|
13783
|
+
j.y0 += ot, j.y1 += ot, M(j);
|
|
13783
13784
|
}
|
|
13784
|
-
c === void 0 && Z.sort(ka),
|
|
13785
|
+
c === void 0 && Z.sort(ka), D(Z, L);
|
|
13785
13786
|
}
|
|
13786
13787
|
}
|
|
13787
|
-
function
|
|
13788
|
-
const L = O.length >> 1,
|
|
13789
|
-
R(O,
|
|
13788
|
+
function D(O, w) {
|
|
13789
|
+
const L = O.length >> 1, k = O[L];
|
|
13790
|
+
R(O, k.y0 - a, L - 1, w), C(O, k.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
|
|
13790
13791
|
}
|
|
13791
|
-
function C(O, w, L,
|
|
13792
|
+
function C(O, w, L, k) {
|
|
13792
13793
|
for (; L < O.length; ++L) {
|
|
13793
|
-
const U = O[L], Z = (w - U.y0) *
|
|
13794
|
+
const U = O[L], Z = (w - U.y0) * k;
|
|
13794
13795
|
Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
|
|
13795
13796
|
}
|
|
13796
13797
|
}
|
|
13797
|
-
function R(O, w, L,
|
|
13798
|
+
function R(O, w, L, k) {
|
|
13798
13799
|
for (; L >= 0; --L) {
|
|
13799
|
-
const U = O[L], Z = (U.y1 - w) *
|
|
13800
|
+
const U = O[L], Z = (U.y1 - w) * k;
|
|
13800
13801
|
Z > 1e-6 && (U.y0 -= Z, U.y1 -= Z), w = U.y0 - a;
|
|
13801
13802
|
}
|
|
13802
13803
|
}
|
|
13803
|
-
function
|
|
13804
|
+
function M({ sourceLinks: O, targetLinks: w }) {
|
|
13804
13805
|
if (u === void 0) {
|
|
13805
13806
|
for (const { source: { sourceLinks: L } } of w)
|
|
13806
13807
|
L.sort(ip);
|
|
@@ -13815,24 +13816,24 @@ function XD() {
|
|
|
13815
13816
|
}
|
|
13816
13817
|
function P(O, w) {
|
|
13817
13818
|
let L = O.y0 - (O.sourceLinks.length - 1) * a / 2;
|
|
13818
|
-
for (const { target:
|
|
13819
|
-
if (
|
|
13819
|
+
for (const { target: k, width: U } of O.sourceLinks) {
|
|
13820
|
+
if (k === w) break;
|
|
13820
13821
|
L += U + a;
|
|
13821
13822
|
}
|
|
13822
|
-
for (const { source:
|
|
13823
|
-
if (
|
|
13823
|
+
for (const { source: k, width: U } of w.targetLinks) {
|
|
13824
|
+
if (k === O) break;
|
|
13824
13825
|
L -= U;
|
|
13825
13826
|
}
|
|
13826
13827
|
return L;
|
|
13827
13828
|
}
|
|
13828
13829
|
function B(O, w) {
|
|
13829
13830
|
let L = w.y0 - (w.targetLinks.length - 1) * a / 2;
|
|
13830
|
-
for (const { source:
|
|
13831
|
-
if (
|
|
13831
|
+
for (const { source: k, width: U } of w.targetLinks) {
|
|
13832
|
+
if (k === O) break;
|
|
13832
13833
|
L += U + a;
|
|
13833
13834
|
}
|
|
13834
|
-
for (const { target:
|
|
13835
|
-
if (
|
|
13835
|
+
for (const { target: k, width: U } of O.sourceLinks) {
|
|
13836
|
+
if (k === w) break;
|
|
13836
13837
|
L -= U;
|
|
13837
13838
|
}
|
|
13838
13839
|
return L;
|
|
@@ -14044,8 +14045,8 @@ class lk extends mt {
|
|
|
14044
14045
|
), { width: x } = N.getSVGElementSize(I(`text#${E}`), {
|
|
14045
14046
|
useBBox: !0
|
|
14046
14047
|
}), S = (b.y1 - b.y0) / 2 - 9;
|
|
14047
|
-
let
|
|
14048
|
-
return b.x1 >= x ?
|
|
14048
|
+
let $ = b.x1 - b.x0;
|
|
14049
|
+
return b.x1 >= x ? $ = $ - (x + 16) : $ += 4, `translate(${$}, ${S})`;
|
|
14049
14050
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
14050
14051
|
}
|
|
14051
14052
|
addLineEventListener() {
|
|
@@ -14345,10 +14346,10 @@ class yv extends mt {
|
|
|
14345
14346
|
"stroke"
|
|
14346
14347
|
);
|
|
14347
14348
|
else {
|
|
14348
|
-
const
|
|
14349
|
-
if (
|
|
14350
|
-
const
|
|
14351
|
-
S =
|
|
14349
|
+
const $ = y(this.model.getOptions(), "color", "scale");
|
|
14350
|
+
if ($ !== null) {
|
|
14351
|
+
const D = Object.keys($);
|
|
14352
|
+
S = $[D[0]];
|
|
14352
14353
|
}
|
|
14353
14354
|
}
|
|
14354
14355
|
Al.appendOrUpdateLinearGradient({
|
|
@@ -14858,14 +14859,14 @@ class xv extends mt {
|
|
|
14858
14859
|
f.attr("aria-hidden", !0);
|
|
14859
14860
|
return;
|
|
14860
14861
|
}
|
|
14861
|
-
const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"),
|
|
14862
|
+
const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), $ = y(m, "ticks", "values"), D = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), M = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
|
|
14862
14863
|
useBBox: !0
|
|
14863
14864
|
}).height;
|
|
14864
14865
|
P.remove();
|
|
14865
14866
|
const w = this.scaleType || m.scaleType || et.LINEAR, L = h(d).tickSizeOuter(0);
|
|
14866
14867
|
if (d.ticks) {
|
|
14867
14868
|
let q;
|
|
14868
|
-
if (
|
|
14869
|
+
if (M ? q = S : (q = Nn.ticks.number, b && (q = this.getNumberOfFittingTicks(
|
|
14869
14870
|
o,
|
|
14870
14871
|
O,
|
|
14871
14872
|
Nn.ticks.verticalSpaceRatio
|
|
@@ -14879,14 +14880,14 @@ class xv extends mt {
|
|
|
14879
14880
|
tt && W.length > 2 && !lt && (W.splice(W.length - 1, 1), W.splice(0, 1)), L.tickValues(W);
|
|
14880
14881
|
}
|
|
14881
14882
|
}
|
|
14882
|
-
let
|
|
14883
|
+
let k;
|
|
14883
14884
|
const U = y(m, "ticks", "formatter"), { code: Z, number: j } = y(r, "locale");
|
|
14884
14885
|
if (v) {
|
|
14885
14886
|
const q = $l(
|
|
14886
14887
|
L.tickValues(),
|
|
14887
14888
|
y(r, "timeScale", "timeInterval")
|
|
14888
14889
|
);
|
|
14889
|
-
U === null ?
|
|
14890
|
+
U === null ? k = (tt, lt) => wl(tt, lt, L.tickValues(), q, H, r.locale) : k = (tt, lt) => {
|
|
14890
14891
|
const z = wl(
|
|
14891
14892
|
tt,
|
|
14892
14893
|
lt,
|
|
@@ -14898,23 +14899,23 @@ class xv extends mt {
|
|
|
14898
14899
|
return U(tt, lt, z);
|
|
14899
14900
|
};
|
|
14900
14901
|
} else
|
|
14901
|
-
U === null ? w === et.LINEAR && (
|
|
14902
|
-
L.tickFormat(
|
|
14902
|
+
U === null ? w === et.LINEAR && (k = (q) => j(q, Z)) : k = U;
|
|
14903
|
+
L.tickFormat(k);
|
|
14903
14904
|
const [F, Y] = this.services.cartesianScales.getScaleByPosition(n).domain();
|
|
14904
14905
|
let ot;
|
|
14905
|
-
if (
|
|
14906
|
+
if ($) {
|
|
14906
14907
|
if (v)
|
|
14907
|
-
|
|
14908
|
-
q.getTime === void 0 && (
|
|
14909
|
-
}), ot =
|
|
14908
|
+
$.forEach((q, tt) => {
|
|
14909
|
+
q.getTime === void 0 && ($[tt] = new Date(q));
|
|
14910
|
+
}), ot = $.filter((q) => {
|
|
14910
14911
|
const tt = q.getTime();
|
|
14911
14912
|
return tt >= new Date(F).getTime() && tt <= new Date(Y).getTime();
|
|
14912
14913
|
});
|
|
14913
14914
|
else if (E === et.LABELS) {
|
|
14914
14915
|
const q = this.services.cartesianScales.getScaleByPosition(n).domain();
|
|
14915
|
-
ot =
|
|
14916
|
+
ot = $.filter((tt) => q.includes(tt));
|
|
14916
14917
|
} else
|
|
14917
|
-
ot =
|
|
14918
|
+
ot = $.filter(
|
|
14918
14919
|
(q) => q >= F && q <= Y
|
|
14919
14920
|
);
|
|
14920
14921
|
L.tickValues(ot);
|
|
@@ -15011,20 +15012,20 @@ class xv extends mt {
|
|
|
15011
15012
|
V !== null && W + X.text().length * z * 0.8 >= V && (q = !0), W = V;
|
|
15012
15013
|
}), lt.remove();
|
|
15013
15014
|
}
|
|
15014
|
-
q ? (
|
|
15015
|
+
q ? (M || (L.ticks(
|
|
15015
15016
|
this.getNumberOfFittingTicks(a, O, Nn.ticks.horizontalSpaceRatio)
|
|
15016
15017
|
), g.call(L), f.call(L)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", n === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
15017
15018
|
}
|
|
15018
|
-
if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q),
|
|
15019
|
+
if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q), D !== He.NONE && E === et.LABELS && !$) {
|
|
15019
15020
|
const q = this.services.cartesianScales.getScaleDomain(n);
|
|
15020
15021
|
if (q.length > 0) {
|
|
15021
15022
|
const tt = s.select(`g.axis.${n} g.ticks g.tick`).html();
|
|
15022
15023
|
l.selectAll("g.ticks g.tick").html(tt);
|
|
15023
15024
|
const lt = this;
|
|
15024
15025
|
l.selectAll("g.tick text").data(q).text(function(z) {
|
|
15025
|
-
return z.length > C ? (lt.truncation[n] = !0, Ji(z,
|
|
15026
|
+
return z.length > C ? (lt.truncation[n] = !0, Ji(z, D, R)) : z;
|
|
15026
15027
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
|
|
15027
|
-
return z.length > C ? Ji(z,
|
|
15028
|
+
return z.length > C ? Ji(z, D, R) : z;
|
|
15028
15029
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
|
|
15029
15030
|
}
|
|
15030
15031
|
}
|
|
@@ -15369,115 +15370,115 @@ class hk extends mt {
|
|
|
15369
15370
|
if (h === 0)
|
|
15370
15371
|
return;
|
|
15371
15372
|
const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === zt.VERTICAL, [v, b] = _n(
|
|
15372
|
-
(
|
|
15373
|
-
(
|
|
15373
|
+
(M) => this.services.cartesianScales.getDomainValue(M),
|
|
15374
|
+
(M) => this.services.cartesianScales.getRangeValue(M),
|
|
15374
15375
|
g
|
|
15375
15376
|
), _ = Math.floor((m ? h : p) / s.length), E = Math.min(_ / 2, 16), x = this.model.getBoxplotData(), S = n.selectAll(".box-group").data(x);
|
|
15376
15377
|
S.exit().remove();
|
|
15377
|
-
const
|
|
15378
|
-
|
|
15378
|
+
const $ = S.enter().append("g").attr("class", "box-group"), D = S.merge($);
|
|
15379
|
+
$.append("path").merge(S.select("path.vertical-line.start")).attr(
|
|
15379
15380
|
"class",
|
|
15380
15381
|
() => this.model.getColorClassName({
|
|
15381
15382
|
classNameTypes: [it.STROKE],
|
|
15382
15383
|
originalClassName: "vertical-line start"
|
|
15383
15384
|
})
|
|
15384
15385
|
).attr("stroke-width", Se.strokeWidth.default).attr("fill", "none").transition().call(
|
|
15385
|
-
(
|
|
15386
|
-
transition:
|
|
15386
|
+
(M) => this.services.transitions.setupTransition({
|
|
15387
|
+
transition: M,
|
|
15387
15388
|
name: "boxplot-update-verticalstartline",
|
|
15388
15389
|
animate: t
|
|
15389
15390
|
})
|
|
15390
|
-
).attr("d", (
|
|
15391
|
-
const H = f.getDomainValue(
|
|
15391
|
+
).attr("d", (M) => {
|
|
15392
|
+
const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.quartiles.q_25);
|
|
15392
15393
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15393
|
-
}),
|
|
15394
|
+
}), $.append("path").merge(S.select("path.vertical-line.end")).attr(
|
|
15394
15395
|
"class",
|
|
15395
15396
|
() => this.model.getColorClassName({
|
|
15396
15397
|
classNameTypes: [it.STROKE],
|
|
15397
15398
|
originalClassName: "vertical-line end"
|
|
15398
15399
|
})
|
|
15399
15400
|
).attr("stroke-width", Se.strokeWidth.default).attr("fill", "none").transition().call(
|
|
15400
|
-
(
|
|
15401
|
-
transition:
|
|
15401
|
+
(M) => this.services.transitions.setupTransition({
|
|
15402
|
+
transition: M,
|
|
15402
15403
|
name: "boxplot-update-verticalendline",
|
|
15403
15404
|
animate: t
|
|
15404
15405
|
})
|
|
15405
|
-
).attr("d", (
|
|
15406
|
-
const H = f.getDomainValue(
|
|
15406
|
+
).attr("d", (M) => {
|
|
15407
|
+
const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.quartiles.q_75);
|
|
15407
15408
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15408
|
-
}),
|
|
15409
|
+
}), $.append("path").merge(S.select("path.box")).attr(
|
|
15409
15410
|
"class",
|
|
15410
15411
|
() => this.model.getColorClassName({
|
|
15411
15412
|
classNameTypes: [it.FILL, it.STROKE],
|
|
15412
15413
|
originalClassName: "box"
|
|
15413
15414
|
})
|
|
15414
|
-
).attr("fill-opacity", Se.box.opacity.default).attr("stroke-width", Se.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (
|
|
15415
|
-
(
|
|
15416
|
-
transition:
|
|
15415
|
+
).attr("fill-opacity", Se.box.opacity.default).attr("stroke-width", Se.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (M) => M[i]).transition().call(
|
|
15416
|
+
(M) => this.services.transitions.setupTransition({
|
|
15417
|
+
transition: M,
|
|
15417
15418
|
name: "boxplot-update-quartiles",
|
|
15418
15419
|
animate: t
|
|
15419
15420
|
})
|
|
15420
|
-
).attr("d", (
|
|
15421
|
-
const H = f.getDomainValue(
|
|
15422
|
-
Math[m ? "max" : "min"](
|
|
15421
|
+
).attr("d", (M) => {
|
|
15422
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(
|
|
15423
|
+
Math[m ? "max" : "min"](M.quartiles.q_75, M.quartiles.q_25)
|
|
15423
15424
|
), O = B + Math.abs(
|
|
15424
|
-
f.getRangeValue(
|
|
15425
|
+
f.getRangeValue(M.quartiles.q_75) - f.getRangeValue(M.quartiles.q_25)
|
|
15425
15426
|
);
|
|
15426
15427
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15427
|
-
}),
|
|
15428
|
-
const H = f.getDomainValue(
|
|
15428
|
+
}), $.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (M) => {
|
|
15429
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.max);
|
|
15429
15430
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15430
|
-
}),
|
|
15431
|
+
}), $.append("path").merge(S.select("path.whisker.start")).attr(
|
|
15431
15432
|
"class",
|
|
15432
15433
|
() => this.model.getColorClassName({
|
|
15433
15434
|
classNameTypes: [it.STROKE],
|
|
15434
15435
|
originalClassName: "whisker start"
|
|
15435
15436
|
})
|
|
15436
15437
|
).attr("stroke-width", Se.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
15437
|
-
(
|
|
15438
|
-
transition:
|
|
15438
|
+
(M) => this.services.transitions.setupTransition({
|
|
15439
|
+
transition: M,
|
|
15439
15440
|
name: "boxplot-update-startingwhisker",
|
|
15440
15441
|
animate: t
|
|
15441
15442
|
})
|
|
15442
|
-
).attr("d", (
|
|
15443
|
-
const H = f.getDomainValue(
|
|
15443
|
+
).attr("d", (M) => {
|
|
15444
|
+
const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.min);
|
|
15444
15445
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15445
|
-
}),
|
|
15446
|
+
}), $.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
|
|
15446
15447
|
"class",
|
|
15447
15448
|
() => this.model.getColorClassName({
|
|
15448
15449
|
classNameTypes: [it.STROKE],
|
|
15449
15450
|
originalClassName: "median"
|
|
15450
15451
|
})
|
|
15451
15452
|
).attr("stroke-width", 2).transition().call(
|
|
15452
|
-
(
|
|
15453
|
-
transition:
|
|
15453
|
+
(M) => this.services.transitions.setupTransition({
|
|
15454
|
+
transition: M,
|
|
15454
15455
|
name: "boxplot-update-median",
|
|
15455
15456
|
animate: t
|
|
15456
15457
|
})
|
|
15457
|
-
).attr("d", (
|
|
15458
|
-
const H = f.getDomainValue(
|
|
15458
|
+
).attr("d", (M) => {
|
|
15459
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.quartiles.q_50);
|
|
15459
15460
|
return se({ x0: H, x1: P, y0: B, y1: B }, g);
|
|
15460
|
-
}),
|
|
15461
|
+
}), $.append("path").merge(S.select("path.whisker.end")).attr(
|
|
15461
15462
|
"class",
|
|
15462
15463
|
() => this.model.getColorClassName({
|
|
15463
15464
|
classNameTypes: [it.STROKE],
|
|
15464
15465
|
originalClassName: "whisker end"
|
|
15465
15466
|
})
|
|
15466
15467
|
).attr("stroke-width", Se.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
15467
|
-
(
|
|
15468
|
-
transition:
|
|
15468
|
+
(M) => this.services.transitions.setupTransition({
|
|
15469
|
+
transition: M,
|
|
15469
15470
|
name: "boxplot-update-endingwhisker",
|
|
15470
15471
|
animate: t
|
|
15471
15472
|
})
|
|
15472
|
-
).attr("d", (
|
|
15473
|
-
const H = f.getDomainValue(
|
|
15473
|
+
).attr("d", (M) => {
|
|
15474
|
+
const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.whiskers.max);
|
|
15474
15475
|
return se({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15475
15476
|
});
|
|
15476
|
-
const C =
|
|
15477
|
-
(
|
|
15478
|
-
min:
|
|
15479
|
-
max:
|
|
15480
|
-
[i]:
|
|
15477
|
+
const C = D.selectAll("circle.outlier").data(
|
|
15478
|
+
(M) => M.outliers.map((H) => ({
|
|
15479
|
+
min: M.whiskers.min,
|
|
15480
|
+
max: M.whiskers.max,
|
|
15481
|
+
[i]: M[i],
|
|
15481
15482
|
value: H
|
|
15482
15483
|
}))
|
|
15483
15484
|
);
|
|
@@ -15490,8 +15491,8 @@ class hk extends mt {
|
|
|
15490
15491
|
originalClassName: "outlier"
|
|
15491
15492
|
})
|
|
15492
15493
|
).attr("fill-opacity", Se.circle.opacity.default).attr("cx", v).transition().call(
|
|
15493
|
-
(
|
|
15494
|
-
transition:
|
|
15494
|
+
(M) => this.services.transitions.setupTransition({
|
|
15495
|
+
transition: M,
|
|
15495
15496
|
name: "boxplot-update-circles",
|
|
15496
15497
|
animate: t
|
|
15497
15498
|
})
|
|
@@ -16117,11 +16118,26 @@ class Ek extends Hn {
|
|
|
16117
16118
|
...E,
|
|
16118
16119
|
...y(s, "tooltip", "showTotal") === !0 ? [
|
|
16119
16120
|
{
|
|
16120
|
-
label: gt(s, "
|
|
16121
|
-
value:
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
|
|
16121
|
+
label: gt(s, "tooltip.totalLabel") || gt(s, "locale.translations.total") || "Total",
|
|
16122
|
+
value: (() => {
|
|
16123
|
+
const S = y(
|
|
16124
|
+
s,
|
|
16125
|
+
"tooltip",
|
|
16126
|
+
"customTotalCalculation"
|
|
16127
|
+
);
|
|
16128
|
+
if (S) {
|
|
16129
|
+
const $ = _.map(
|
|
16130
|
+
(D) => ({
|
|
16131
|
+
[D]: parseFloat(gt(m, `data.${D}`))
|
|
16132
|
+
})
|
|
16133
|
+
);
|
|
16134
|
+
return S($);
|
|
16135
|
+
} else
|
|
16136
|
+
return _.reduce(
|
|
16137
|
+
($, D) => $ + parseFloat(gt(m, `data.${D}`)),
|
|
16138
|
+
0
|
|
16139
|
+
);
|
|
16140
|
+
})()
|
|
16125
16141
|
}
|
|
16126
16142
|
] : []
|
|
16127
16143
|
]
|
|
@@ -16192,21 +16208,21 @@ class bv extends eu {
|
|
|
16192
16208
|
m.push(
|
|
16193
16209
|
a === zs.LINEAR ? `stop-color-${g}-${o}-${C}` : `fill-${g}-${o}-${C}`
|
|
16194
16210
|
);
|
|
16195
|
-
const b = ye(u[0], u[1]), _ = jC(b, 3), E = ze().domain(u).range([0, h]), x = qc(E).tickSize(0).tickValues(_), { code: S, number:
|
|
16196
|
-
x.tickFormat((C) =>
|
|
16197
|
-
let
|
|
16211
|
+
const b = ye(u[0], u[1]), _ = jC(b, 3), E = ze().domain(u).range([0, h]), x = qc(E).tickSize(0).tickValues(_), { code: S, number: $ } = y(n, "locale");
|
|
16212
|
+
x.tickFormat((C) => $(C, S));
|
|
16213
|
+
let D;
|
|
16198
16214
|
switch (a) {
|
|
16199
16215
|
case zs.LINEAR:
|
|
16200
16216
|
this.drawLinear(m, p, h);
|
|
16201
16217
|
break;
|
|
16202
16218
|
case zs.QUANTIZE:
|
|
16203
|
-
|
|
16219
|
+
D = this.drawQuantize(
|
|
16204
16220
|
m,
|
|
16205
16221
|
g,
|
|
16206
16222
|
c,
|
|
16207
16223
|
p,
|
|
16208
16224
|
h
|
|
16209
|
-
), E.range([
|
|
16225
|
+
), E.range([D, h]);
|
|
16210
16226
|
break;
|
|
16211
16227
|
default:
|
|
16212
16228
|
throw Error("Entered color legend type is not supported.");
|
|
@@ -16621,23 +16637,23 @@ class _v extends mt {
|
|
|
16621
16637
|
wo(C.data[a], o, a),
|
|
16622
16638
|
d
|
|
16623
16639
|
) + "%").datum(function(C) {
|
|
16624
|
-
const R = l + 7,
|
|
16625
|
-
return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin(
|
|
16640
|
+
const R = l + 7, M = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = M / Math.PI * 180, P = this.getComputedTextLength();
|
|
16641
|
+
return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin(M), C.yPosition = (C.textOffsetY + R) * -Math.cos(M), C;
|
|
16626
16642
|
}).attr("transform", function(C, R) {
|
|
16627
|
-
const
|
|
16628
|
-
if (R >=
|
|
16643
|
+
const M = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
|
|
16644
|
+
if (R >= M - 2 && H < Mt.callout.minSliceDegree) {
|
|
16629
16645
|
let P, B;
|
|
16630
|
-
return C.index ===
|
|
16646
|
+
return C.index === M - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Hs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Hs.LEFT, v.push(C)), `translate(${P}, ${B})`;
|
|
16631
16647
|
}
|
|
16632
16648
|
return `translate(${C.xPosition}, ${C.yPosition})`;
|
|
16633
16649
|
}), this.renderCallouts(v);
|
|
16634
16650
|
const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
|
|
16635
16651
|
useAttrs: !0
|
|
16636
16652
|
}), x = p ? Mt.xOffset : 0, S = p ? Mt.yOffset : 0;
|
|
16637
|
-
let
|
|
16638
|
-
_ === Ft.CENTER ?
|
|
16639
|
-
let
|
|
16640
|
-
v.length > 0 && (
|
|
16653
|
+
let $ = l + x;
|
|
16654
|
+
_ === Ft.CENTER ? $ = E / 2 : _ === Ft.RIGHT && ($ = E - l - Mt.xOffset);
|
|
16655
|
+
let D = l + S;
|
|
16656
|
+
v.length > 0 && (D += Mt.yOffsetCallout), r.attr("x", $ + 7).attr("y", D), this.addEventListeners();
|
|
16641
16657
|
}
|
|
16642
16658
|
renderCallouts(t) {
|
|
16643
16659
|
const n = N.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", ht.GROUP).attr("data-name", "callouts"), r = n.selectAll("g.callout").data(t);
|
|
@@ -16859,10 +16875,10 @@ class $k extends mt {
|
|
|
16859
16875
|
const { width: _ } = N.getSVGElementSize(
|
|
16860
16876
|
N.appendOrSelect(t, "text.gauge-value-number"),
|
|
16861
16877
|
{ useBBox: !0 }
|
|
16862
|
-
), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width:
|
|
16878
|
+
), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width: $, height: D } = N.getSVGElementSize(S, {
|
|
16863
16879
|
useBBox: !0
|
|
16864
16880
|
});
|
|
16865
|
-
S.attr("y", `-${
|
|
16881
|
+
S.attr("y", `-${D / 2}px`), f.attr("transform", `translate(-${$ / 2}, 0)`);
|
|
16866
16882
|
}
|
|
16867
16883
|
/**
|
|
16868
16884
|
* adds the delta number for the gauge
|
|
@@ -17622,7 +17638,7 @@ class Dk extends mt {
|
|
|
17622
17638
|
const _ = Zr().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Un(this.fullDataNormalized.map((O) => O[d])), x = ze().domain([
|
|
17623
17639
|
E >= 0 ? 0 : E,
|
|
17624
17640
|
Jn(this.fullDataNormalized.map((O) => O[d]))
|
|
17625
|
-
]).range([g, b]).nice(f), S = x.ticks(f),
|
|
17641
|
+
]).range([g, b]).nice(f), S = x.ticks(f), $ = (O, w, L) => this.model.getFillColor(O, w, L), D = cD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(tg), C = this.uniqueKeys.map((O) => {
|
|
17626
17642
|
const w = this.getLabelDimensions(O).width, L = I2(
|
|
17627
17643
|
_(O),
|
|
17628
17644
|
b
|
|
@@ -17631,8 +17647,8 @@ class Dk extends mt {
|
|
|
17631
17647
|
}), R = {
|
|
17632
17648
|
x: Jn(C) + h,
|
|
17633
17649
|
y: i / 2
|
|
17634
|
-
},
|
|
17635
|
-
|
|
17650
|
+
}, M = 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 }));
|
|
17651
|
+
M.join(
|
|
17636
17652
|
(O) => O.append("path").attr("opacity", 0).attr("transform", `translate(${R.x}, ${R.y})`).attr("fill", "none").call(
|
|
17637
17653
|
(w) => w.transition().call(
|
|
17638
17654
|
(L) => this.services.transitions.setupTransition({
|
|
@@ -17640,7 +17656,7 @@ class Dk extends mt {
|
|
|
17640
17656
|
name: "radar_y_axes_enter",
|
|
17641
17657
|
animate: t
|
|
17642
17658
|
})
|
|
17643
|
-
).attr("opacity", 1).attr("d", (L) =>
|
|
17659
|
+
).attr("opacity", 1).attr("d", (L) => D(H(L)))
|
|
17644
17660
|
),
|
|
17645
17661
|
(O) => O.call(
|
|
17646
17662
|
(w) => w.transition().call(
|
|
@@ -17649,7 +17665,7 @@ class Dk extends mt {
|
|
|
17649
17665
|
name: "radar_y_axes_update",
|
|
17650
17666
|
animate: t
|
|
17651
17667
|
})
|
|
17652
|
-
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) =>
|
|
17668
|
+
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(H(L)))
|
|
17653
17669
|
),
|
|
17654
17670
|
(O) => O.call(
|
|
17655
17671
|
(w) => w.transition().call(
|
|
@@ -17658,7 +17674,7 @@ class Dk extends mt {
|
|
|
17658
17674
|
name: "radar_y_axes_exit",
|
|
17659
17675
|
animate: t
|
|
17660
17676
|
})
|
|
17661
|
-
).attr("d", (L) =>
|
|
17677
|
+
).attr("d", (L) => D(H(L))).attr("opacity", 0).remove()
|
|
17662
17678
|
)
|
|
17663
17679
|
), N.appendOrSelect(n, "g.x-axes").attr("role", ht.GROUP).selectAll("line").data(this.uniqueKeys, (O) => O).join(
|
|
17664
17680
|
(O) => O.append("line").attr("opacity", 0).attr("class", (w) => `x-axis-${Er(w)}`).attr("stroke-dasharray", "0").attr("x1", (w) => Pt(_(w), 0, R).x).attr("y1", (w) => Pt(_(w), 0, R).y).attr("x2", (w) => Pt(_(w), 0, R).x).attr("y2", (w) => Pt(_(w), 0, R).y).call(
|
|
@@ -17721,8 +17737,8 @@ class Dk extends mt {
|
|
|
17721
17737
|
"y",
|
|
17722
17738
|
(L) => Pt(_(L), x.range()[1] + h, R).y
|
|
17723
17739
|
).end().finally(() => {
|
|
17724
|
-
const L = y(o, "radar", "alignment"),
|
|
17725
|
-
n.attr("x",
|
|
17740
|
+
const L = y(o, "radar", "alignment"), k = this.getAlignmentXOffset(L, n, this.getParent());
|
|
17741
|
+
n.attr("x", k);
|
|
17726
17742
|
})
|
|
17727
17743
|
),
|
|
17728
17744
|
(O) => O.call(
|
|
@@ -17745,15 +17761,15 @@ class Dk extends mt {
|
|
|
17745
17761
|
).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-label", (w) => w.name).attr("opacity", 0).attr(
|
|
17746
17762
|
"transform",
|
|
17747
17763
|
t ? () => `translate(${R.x}, ${R.y}) scale(${1 + Math.random() * 0.35})` : `translate(${R.x}, ${R.y})`
|
|
17748
|
-
).style("fill", (w) =>
|
|
17764
|
+
).style("fill", (w) => $(w.name, null, w.data)).style("fill-opacity", zn.opacity.selected).style("stroke", (w) => $(w.name, null, w.data)).call((w) => {
|
|
17749
17765
|
const L = w.transition().call(
|
|
17750
|
-
(
|
|
17751
|
-
transition:
|
|
17766
|
+
(k) => this.services.transitions.setupTransition({
|
|
17767
|
+
transition: k,
|
|
17752
17768
|
name: "radar_blobs_enter",
|
|
17753
17769
|
animate: t
|
|
17754
17770
|
})
|
|
17755
17771
|
);
|
|
17756
|
-
t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (
|
|
17772
|
+
t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (k) => D(k.data));
|
|
17757
17773
|
}),
|
|
17758
17774
|
(O) => (O.attr(
|
|
17759
17775
|
"class",
|
|
@@ -17762,19 +17778,19 @@ class Dk extends mt {
|
|
|
17762
17778
|
dataGroupName: w.name,
|
|
17763
17779
|
originalClassName: "blob"
|
|
17764
17780
|
})
|
|
17765
|
-
).style("fill", (w) =>
|
|
17781
|
+
).style("fill", (w) => $(w.name, null, w.data)).style("stroke", (w) => $(w.name, null, w.data)), O.call(
|
|
17766
17782
|
(w) => w.transition().call(
|
|
17767
17783
|
(L) => this.services.transitions.setupTransition({
|
|
17768
17784
|
transition: L,
|
|
17769
17785
|
name: "radar_blobs_update",
|
|
17770
17786
|
animate: t
|
|
17771
17787
|
})
|
|
17772
|
-
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) =>
|
|
17788
|
+
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(L.data))
|
|
17773
17789
|
), O),
|
|
17774
17790
|
(O) => O.call((w) => {
|
|
17775
17791
|
const L = w.transition().call(
|
|
17776
|
-
(
|
|
17777
|
-
transition:
|
|
17792
|
+
(k) => this.services.transitions.setupTransition({
|
|
17793
|
+
transition: k,
|
|
17778
17794
|
name: "radar_blobs_exit",
|
|
17779
17795
|
animate: t
|
|
17780
17796
|
})
|
|
@@ -17795,7 +17811,7 @@ class Dk extends mt {
|
|
|
17795
17811
|
dataGroupName: O[l],
|
|
17796
17812
|
originalClassName: Er(O[u])
|
|
17797
17813
|
})
|
|
17798
|
-
).attr("cx", (O) => Pt(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Pt(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) =>
|
|
17814
|
+
).attr("cx", (O) => Pt(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Pt(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) => $(O[l])), N.appendOrSelect(n, "g.x-axes-rect").attr("role", ht.GROUP).selectAll("rect").data(this.uniqueKeys).join(
|
|
17799
17815
|
(O) => O.append("rect"),
|
|
17800
17816
|
(O) => O,
|
|
17801
17817
|
(O) => O.remove()
|
|
@@ -18309,49 +18325,49 @@ class Rk extends mt {
|
|
|
18309
18325
|
name: o,
|
|
18310
18326
|
children: a
|
|
18311
18327
|
}), p = 10, f = r / 6, g = (S) => {
|
|
18312
|
-
const
|
|
18328
|
+
const $ = h.descendants().reverse(), D = h.links();
|
|
18313
18329
|
let C = h, R = h;
|
|
18314
|
-
h.eachBefore((
|
|
18315
|
-
|
|
18330
|
+
h.eachBefore((k) => {
|
|
18331
|
+
k.x < C.x && (C = k), k.x > R.x && (R = k);
|
|
18316
18332
|
});
|
|
18317
|
-
const
|
|
18318
|
-
(
|
|
18319
|
-
transition:
|
|
18333
|
+
const M = R.x - C.x, H = n.transition().call(
|
|
18334
|
+
(k) => this.services.transitions.setupTransition({
|
|
18335
|
+
transition: k,
|
|
18320
18336
|
name: "tree-update-viewbox",
|
|
18321
18337
|
animate: !0
|
|
18322
18338
|
})
|
|
18323
|
-
).attr("viewBox", [-d.left, C.x, r,
|
|
18339
|
+
).attr("viewBox", [-d.left, C.x, r, M].join(" ")), P = x.selectAll("g").data($, (k) => k.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
|
|
18324
18340
|
"class",
|
|
18325
|
-
(
|
|
18326
|
-
).on("mouseover", function(
|
|
18341
|
+
(k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
|
|
18342
|
+
).on("mouseover", function(k, U) {
|
|
18327
18343
|
B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
|
|
18328
|
-
event:
|
|
18344
|
+
event: k,
|
|
18329
18345
|
element: I(this),
|
|
18330
18346
|
datum: U
|
|
18331
18347
|
});
|
|
18332
|
-
}).on("click", function(
|
|
18348
|
+
}).on("click", function(k, U) {
|
|
18333
18349
|
U.depth !== 0 && (U.children = U.children ? null : U._children, g(U)), B.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
|
|
18334
|
-
event:
|
|
18350
|
+
event: k,
|
|
18335
18351
|
element: I(this),
|
|
18336
18352
|
datum: U
|
|
18337
18353
|
});
|
|
18338
|
-
}).on("mouseout", function(
|
|
18354
|
+
}).on("mouseout", function(k, U) {
|
|
18339
18355
|
B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
|
|
18340
|
-
event:
|
|
18356
|
+
event: k,
|
|
18341
18357
|
element: I(this),
|
|
18342
18358
|
datum: U
|
|
18343
18359
|
});
|
|
18344
18360
|
});
|
|
18345
|
-
O.append("circle").attr("r", 2.5).attr("class", (
|
|
18346
|
-
const w = E.selectAll("path").data(
|
|
18347
|
-
const
|
|
18348
|
-
return _({ source:
|
|
18361
|
+
O.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -wr : wr).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), P.merge(O).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), P.exit().transition(H).remove().attr("transform", () => `translate(${S.y},${S.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
18362
|
+
const w = E.selectAll("path").data(D, (k) => k.target.id), L = w.enter().append("path").attr("d", () => {
|
|
18363
|
+
const k = { x: S.x0, y: S.y0 };
|
|
18364
|
+
return _({ source: k, target: k });
|
|
18349
18365
|
});
|
|
18350
18366
|
w.merge(L).transition(H).attr("d", _), w.exit().transition(H).remove().attr("d", () => {
|
|
18351
|
-
const
|
|
18352
|
-
return _({ source:
|
|
18353
|
-
}), h.eachBefore((
|
|
18354
|
-
|
|
18367
|
+
const k = { x: S.x, y: S.y };
|
|
18368
|
+
return _({ source: k, target: k });
|
|
18369
|
+
}), h.eachBefore((k) => {
|
|
18370
|
+
k.x0 = k.x, k.y0 = k.y;
|
|
18355
18371
|
});
|
|
18356
18372
|
}, m = h.descendants(), v = m[m.length - 1].depth, b = y(s, "tree", "type") === oc.DENDROGRAM ? sL().size([
|
|
18357
18373
|
i,
|
|
@@ -18360,8 +18376,8 @@ class Rk extends mt {
|
|
|
18360
18376
|
i,
|
|
18361
18377
|
r - u - v * wr - l
|
|
18362
18378
|
]), _ = mD().x((S) => S.y).y((S) => S.x);
|
|
18363
|
-
h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S,
|
|
18364
|
-
S.id =
|
|
18379
|
+
h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, $) => {
|
|
18380
|
+
S.id = $, S._children = S.children;
|
|
18365
18381
|
}), b(h), n.attr("viewBox", [-d.left, -0, r, p]).style("user-select", "none");
|
|
18366
18382
|
const E = n.append("g").attr("class", "links"), x = n.append("g").attr("class", "nodes");
|
|
18367
18383
|
g(h);
|
|
@@ -18818,28 +18834,28 @@ function vN() {
|
|
|
18818
18834
|
rectangular: m
|
|
18819
18835
|
}, r = 64, i = 2048;
|
|
18820
18836
|
sl = function() {
|
|
18821
|
-
var E = [256, 256], x = s, S = a,
|
|
18822
|
-
|
|
18823
|
-
return arguments.length ? (U = _(F),
|
|
18824
|
-
},
|
|
18837
|
+
var E = [256, 256], x = s, S = a, $ = l, D = o, C = o, R = c, M = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, k = {}, U = b;
|
|
18838
|
+
k.canvas = function(F) {
|
|
18839
|
+
return arguments.length ? (U = _(F), k) : U;
|
|
18840
|
+
}, k.start = function() {
|
|
18825
18841
|
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) {
|
|
18826
|
-
return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style =
|
|
18842
|
+
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 = ~~$.call(this, W, X), W.padding = M.call(this, W, X), W;
|
|
18827
18843
|
}).sort(function(W, X) {
|
|
18828
18844
|
return X.size - W.size;
|
|
18829
18845
|
});
|
|
18830
|
-
return w && clearInterval(w), w = setInterval(z, 0), z(),
|
|
18846
|
+
return w && clearInterval(w), w = setInterval(z, 0), z(), k;
|
|
18831
18847
|
function z() {
|
|
18832
18848
|
for (var W = Date.now(); Date.now() - W < B && ++q < Q && w; ) {
|
|
18833
18849
|
var X = lt[q];
|
|
18834
|
-
X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word",
|
|
18850
|
+
X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word", k, X), ot ? p(ot, X) : ot = [{ x: X.x + X.x0, y: X.y + X.y0 }, { x: X.x + X.x1, y: X.y + X.y1 }], X.x -= E[0] >> 1, X.y -= E[1] >> 1);
|
|
18835
18851
|
}
|
|
18836
|
-
q >= Q && (
|
|
18852
|
+
q >= Q && (k.stop(), O.call("end", k, tt, ot));
|
|
18837
18853
|
}
|
|
18838
|
-
},
|
|
18854
|
+
}, k.stop = function() {
|
|
18839
18855
|
w && (clearInterval(w), w = null);
|
|
18840
18856
|
for (const F of P)
|
|
18841
18857
|
delete F.sprite;
|
|
18842
|
-
return
|
|
18858
|
+
return k;
|
|
18843
18859
|
};
|
|
18844
18860
|
function Z(F) {
|
|
18845
18861
|
const Y = F.getContext("2d", { willReadFrequently: !0 });
|
|
@@ -18861,34 +18877,34 @@ function vN() {
|
|
|
18861
18877
|
}
|
|
18862
18878
|
return !1;
|
|
18863
18879
|
}
|
|
18864
|
-
return
|
|
18865
|
-
return arguments.length ? (B = F ?? 1 / 0,
|
|
18866
|
-
},
|
|
18867
|
-
return arguments.length ? (P = F,
|
|
18868
|
-
},
|
|
18869
|
-
return arguments.length ? (E = [+F[0], +F[1]],
|
|
18870
|
-
},
|
|
18871
|
-
return arguments.length ? (S = _(F),
|
|
18872
|
-
},
|
|
18873
|
-
return arguments.length ? (
|
|
18874
|
-
},
|
|
18875
|
-
return arguments.length ? (C = _(F),
|
|
18876
|
-
},
|
|
18877
|
-
return arguments.length ? (R = _(F),
|
|
18878
|
-
},
|
|
18879
|
-
return arguments.length ? (x = _(F),
|
|
18880
|
-
},
|
|
18881
|
-
return arguments.length ? (H = n[F] || F,
|
|
18882
|
-
},
|
|
18883
|
-
return arguments.length ? (
|
|
18884
|
-
},
|
|
18885
|
-
return arguments.length ? (
|
|
18886
|
-
},
|
|
18887
|
-
return arguments.length ? (L = F,
|
|
18888
|
-
},
|
|
18880
|
+
return k.timeInterval = function(F) {
|
|
18881
|
+
return arguments.length ? (B = F ?? 1 / 0, k) : B;
|
|
18882
|
+
}, k.words = function(F) {
|
|
18883
|
+
return arguments.length ? (P = F, k) : P;
|
|
18884
|
+
}, k.size = function(F) {
|
|
18885
|
+
return arguments.length ? (E = [+F[0], +F[1]], k) : E;
|
|
18886
|
+
}, k.font = function(F) {
|
|
18887
|
+
return arguments.length ? (S = _(F), k) : S;
|
|
18888
|
+
}, k.fontStyle = function(F) {
|
|
18889
|
+
return arguments.length ? (D = _(F), k) : D;
|
|
18890
|
+
}, k.fontWeight = function(F) {
|
|
18891
|
+
return arguments.length ? (C = _(F), k) : C;
|
|
18892
|
+
}, k.rotate = function(F) {
|
|
18893
|
+
return arguments.length ? (R = _(F), k) : R;
|
|
18894
|
+
}, k.text = function(F) {
|
|
18895
|
+
return arguments.length ? (x = _(F), k) : x;
|
|
18896
|
+
}, k.spiral = function(F) {
|
|
18897
|
+
return arguments.length ? (H = n[F] || F, k) : H;
|
|
18898
|
+
}, k.fontSize = function(F) {
|
|
18899
|
+
return arguments.length ? ($ = _(F), k) : $;
|
|
18900
|
+
}, k.padding = function(F) {
|
|
18901
|
+
return arguments.length ? (M = _(F), k) : M;
|
|
18902
|
+
}, k.random = function(F) {
|
|
18903
|
+
return arguments.length ? (L = F, k) : L;
|
|
18904
|
+
}, k.on = function() {
|
|
18889
18905
|
var F = O.on.apply(O, arguments);
|
|
18890
|
-
return F === O ?
|
|
18891
|
-
},
|
|
18906
|
+
return F === O ? k : F;
|
|
18907
|
+
}, k;
|
|
18892
18908
|
};
|
|
18893
18909
|
function s(E) {
|
|
18894
18910
|
return E.text;
|
|
@@ -18908,34 +18924,34 @@ function vN() {
|
|
|
18908
18924
|
function u() {
|
|
18909
18925
|
return 1;
|
|
18910
18926
|
}
|
|
18911
|
-
function d(E, x, S,
|
|
18927
|
+
function d(E, x, S, $) {
|
|
18912
18928
|
if (!x.sprite) {
|
|
18913
|
-
var
|
|
18914
|
-
|
|
18915
|
-
var R = 0,
|
|
18916
|
-
for (
|
|
18917
|
-
x = S[
|
|
18918
|
-
const X =
|
|
18929
|
+
var D = E.context, C = E.ratio;
|
|
18930
|
+
D.clearRect(0, 0, (r << 5) / C, i / C);
|
|
18931
|
+
var R = 0, M = 0, H = 0, P = S.length;
|
|
18932
|
+
for (--$; ++$ < P; ) {
|
|
18933
|
+
x = S[$], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
|
|
18934
|
+
const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
|
|
18919
18935
|
let ut = (X.width + 1) * C, st = x.size << 1;
|
|
18920
18936
|
if (x.rotate) {
|
|
18921
|
-
var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B,
|
|
18922
|
-
ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L +
|
|
18937
|
+
var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, k = st * O, U = st * B;
|
|
18938
|
+
ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + k), Math.abs(L - k));
|
|
18923
18939
|
} else
|
|
18924
18940
|
ut = ut + 31 >> 5 << 5;
|
|
18925
|
-
if (st > H && (H = st), R + ut >= r << 5 && (R = 0,
|
|
18926
|
-
|
|
18941
|
+
if (st > H && (H = st), R + ut >= r << 5 && (R = 0, M += H, H = 0), M + st >= i) break;
|
|
18942
|
+
D.translate((R + (ut >> 1)) / C, (M + (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 = M, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
|
|
18927
18943
|
}
|
|
18928
|
-
for (var Z =
|
|
18929
|
-
if (x = S[
|
|
18944
|
+
for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --$ >= 0; )
|
|
18945
|
+
if (x = S[$], !!x.hasText) {
|
|
18930
18946
|
for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
|
|
18931
18947
|
if (R = x.xoff, R == null) return;
|
|
18932
|
-
|
|
18948
|
+
M = x.yoff;
|
|
18933
18949
|
for (var q = 0, tt = -1, lt = 0; lt < ot; lt++) {
|
|
18934
18950
|
for (var Q = 0; Q < F; Q++) {
|
|
18935
|
-
var z = Y * lt + (Q >> 5), W = Z[(
|
|
18951
|
+
var z = Y * lt + (Q >> 5), W = Z[(M + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
|
|
18936
18952
|
j[z] |= W, q |= W;
|
|
18937
18953
|
}
|
|
18938
|
-
q ? tt = lt : (x.y0++, ot--, lt--,
|
|
18954
|
+
q ? tt = lt : (x.y0++, ot--, lt--, M++);
|
|
18939
18955
|
}
|
|
18940
18956
|
x.y1 = x.y0 + tt, x.sprite = j.slice(0, (x.y1 - x.y0) * Y);
|
|
18941
18957
|
}
|
|
@@ -18943,17 +18959,17 @@ function vN() {
|
|
|
18943
18959
|
}
|
|
18944
18960
|
function h(E, x, S) {
|
|
18945
18961
|
S >>= 5;
|
|
18946
|
-
for (var
|
|
18962
|
+
for (var $ = E.sprite, D = E.width >> 5, C = E.x - (D << 4), R = C & 127, M = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
|
|
18947
18963
|
B = 0;
|
|
18948
|
-
for (var w = 0; w <=
|
|
18949
|
-
if ((B <<
|
|
18964
|
+
for (var w = 0; w <= D; w++)
|
|
18965
|
+
if ((B << M | (w < D ? (B = $[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
|
|
18950
18966
|
P += S;
|
|
18951
18967
|
}
|
|
18952
18968
|
return !1;
|
|
18953
18969
|
}
|
|
18954
18970
|
function p(E, x) {
|
|
18955
|
-
var S = E[0],
|
|
18956
|
-
x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 >
|
|
18971
|
+
var S = E[0], $ = E[1];
|
|
18972
|
+
x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 > $.x && ($.x = x.x + x.x1), x.y + x.y1 > $.y && ($.y = x.y + x.y1);
|
|
18957
18973
|
}
|
|
18958
18974
|
function f(E, x) {
|
|
18959
18975
|
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;
|
|
@@ -18965,24 +18981,24 @@ function vN() {
|
|
|
18965
18981
|
};
|
|
18966
18982
|
}
|
|
18967
18983
|
function m(E) {
|
|
18968
|
-
var x = 4, S = x * E[0] / E[1],
|
|
18984
|
+
var x = 4, S = x * E[0] / E[1], $ = 0, D = 0;
|
|
18969
18985
|
return function(C) {
|
|
18970
18986
|
var R = C < 0 ? -1 : 1;
|
|
18971
18987
|
switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
|
|
18972
18988
|
case 0:
|
|
18973
|
-
|
|
18989
|
+
$ += S;
|
|
18974
18990
|
break;
|
|
18975
18991
|
case 1:
|
|
18976
|
-
|
|
18992
|
+
D += x;
|
|
18977
18993
|
break;
|
|
18978
18994
|
case 2:
|
|
18979
|
-
|
|
18995
|
+
$ -= S;
|
|
18980
18996
|
break;
|
|
18981
18997
|
default:
|
|
18982
|
-
|
|
18998
|
+
D -= x;
|
|
18983
18999
|
break;
|
|
18984
19000
|
}
|
|
18985
|
-
return [
|
|
19001
|
+
return [$, D];
|
|
18986
19002
|
};
|
|
18987
19003
|
}
|
|
18988
19004
|
function v(E) {
|
|
@@ -20552,10 +20568,10 @@ class gP extends Dn {
|
|
|
20552
20568
|
), E = [];
|
|
20553
20569
|
b.forEach((x) => {
|
|
20554
20570
|
const { ...S } = x;
|
|
20555
|
-
let
|
|
20571
|
+
let $ = 0, D = 0;
|
|
20556
20572
|
Object.values(AN(S, "sharedStackKey")).forEach((C) => {
|
|
20557
|
-
isNaN(C) || (C < 0 ?
|
|
20558
|
-
}), E.push([
|
|
20573
|
+
isNaN(C) || (C < 0 ? D += C : $ += C);
|
|
20574
|
+
}), E.push([D, $]);
|
|
20559
20575
|
}), g = [
|
|
20560
20576
|
...su(E),
|
|
20561
20577
|
..._.map((x) => x[c])
|