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