@carbon/charts-react 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +501 -478
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.cjs +9 -9
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/styles.css +6 -0
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3516,40 +3516,40 @@ function xT(e) {
|
|
|
3516
3516
|
d = ns(d);
|
|
3517
3517
|
var h = d.fill, p = d.align, f = d.sign, g = d.symbol, m = d.zero, v = d.width, b = d.comma, _ = d.precision, E = d.trim, x = d.type;
|
|
3518
3518
|
x === "n" ? (b = !0, x = "g") : wh[x] || (_ === void 0 && (_ = 12), E = !0, x = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
|
|
3519
|
-
var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "",
|
|
3519
|
+
var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", $ = g === "$" ? r : /[%p]/.test(x) ? a : "", D = wh[x], C = /[defgprs%]/.test(x);
|
|
3520
3520
|
_ = _ === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
3521
|
-
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 = vT(M)), L && +M == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 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 ba(e, t, n) {
|
|
|
7017
7017
|
throw new TypeError(x$);
|
|
7018
7018
|
t = Fr(t) || 0, ke(n) && (u = !!n.leading, d = "maxWait" in n, s = d ? b$(Fr(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 ? _$(C, s -
|
|
7027
|
+
var $ = S - l, D = S - c, C = t - $;
|
|
7028
|
+
return d ? _$(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 = Io();
|
|
@@ -7047,8 +7047,8 @@ function ba(e, t, n) {
|
|
|
7047
7047
|
return o === void 0 ? a : b(Io());
|
|
7048
7048
|
}
|
|
7049
7049
|
function x() {
|
|
7050
|
-
var S = Io(),
|
|
7051
|
-
if (r = arguments, i = this, l = S,
|
|
7050
|
+
var S = Io(), $ = 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 yi(e, t, n) {
|
|
|
7315
7315
|
function U$(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 = xi(i), u = bi(i), d = xi(s), h = bi(s), p = xi(a), f = bi(a), g = xi(o), m = bi(o), v = xi(l), b = bi(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 U$(e) {
|
|
|
7381
7381
|
"%": td
|
|
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 U$(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 = yi(1900, void 0, 1), ut =
|
|
7427
|
+
var V = yi(1900, void 0, 1), ut = D(V, z, X += "", 0), st, kt;
|
|
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 U$(e) {
|
|
|
7435
7435
|
return "Z" in V ? (V.H += V.Z / 100 | 0, V.M += V.Z % 100, Ho(V)) : Bo(V);
|
|
7436
7436
|
};
|
|
7437
7437
|
}
|
|
7438
|
-
function
|
|
7438
|
+
function D(z, W, X, V) {
|
|
7439
7439
|
for (var ut = 0, st = W.length, kt = X.length, Nt, nt; ut < st; ) {
|
|
7440
7440
|
if (V >= kt) return -1;
|
|
7441
7441
|
if (Nt = W.charCodeAt(ut++), Nt === 37) {
|
|
@@ -7453,7 +7453,7 @@ function U$(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 U$(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 U$(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 U$(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 tg(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, HM)) : h().map(BM);
|
|
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(qm($, S)) : u;
|
|
7807
7807
|
}, u.copy = function() {
|
|
7808
7808
|
return Hc(u, tg(e, t, n, r, i, s, a, o, l, c));
|
|
7809
7809
|
}, u;
|
|
@@ -8957,15 +8957,15 @@ function GC() {
|
|
|
8957
8957
|
function co(e, t) {
|
|
8958
8958
|
var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Qs || e === Ai ? -1 : 1, u = e === Ai || e === Js ? "x" : "y", d = e === Qs || e === Nl ? UC : BC;
|
|
8959
8959
|
function h(p) {
|
|
8960
|
-
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]),
|
|
8961
|
-
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")),
|
|
8960
|
+
var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), $ = x.selectAll(".tick").data(f, t).order(), D = $.exit(), C = $.enter().append("g").attr("class", "tick"), R = $.select("line"), M = $.select("text");
|
|
8961
|
+
S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), $ = $.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), M = M.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "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", vd).attr("transform", function(H) {
|
|
8962
8962
|
return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
|
|
8963
8963
|
}), C.attr("opacity", vd).attr("transform", function(H) {
|
|
8964
8964
|
var P = this.parentNode.__axis;
|
|
8965
8965
|
return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
|
|
8966
|
-
})),
|
|
8966
|
+
})), D.remove(), S.attr("d", e === Ai || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), $.attr("opacity", 1).attr("transform", function(H) {
|
|
8967
8967
|
return d(E(H) + l);
|
|
8968
|
-
}), R.attr(u + "2", c * s),
|
|
8968
|
+
}), R.attr(u + "2", c * s), M.attr(u, c * m).text(g), x.filter(GC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Js ? "start" : e === Ai ? "end" : "middle"), x.each(function() {
|
|
8969
8969
|
this.__axis = E;
|
|
8970
8970
|
});
|
|
8971
8971
|
}
|
|
@@ -9155,14 +9155,14 @@ function rA(e) {
|
|
|
9155
9155
|
}).on("interrupt.brush end.brush", function(_) {
|
|
9156
9156
|
u(this, arguments).end(_);
|
|
9157
9157
|
}).tween("brush", function() {
|
|
9158
|
-
var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection,
|
|
9158
|
+
var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, $ = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = gs(S, $);
|
|
9159
9159
|
function C(R) {
|
|
9160
|
-
E.selection = R === 1 &&
|
|
9160
|
+
E.selection = R === 1 && $ === null ? null : D(R), c.call(_), x.brush();
|
|
9161
9161
|
}
|
|
9162
|
-
return S !== null &&
|
|
9162
|
+
return S !== null && $ !== null ? C : C(1);
|
|
9163
9163
|
}) : m.each(function() {
|
|
9164
|
-
var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent),
|
|
9165
|
-
Ml(_), x.selection = S === null ? null : S, c.call(_),
|
|
9164
|
+
var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), $ = u(_, E).beforestart();
|
|
9165
|
+
Ml(_), x.selection = S === null ? null : S, c.call(_), $.start(b).brush(b).end(b);
|
|
9166
9166
|
});
|
|
9167
9167
|
}, l.clear = function(m, v) {
|
|
9168
9168
|
l.move(m, null, v);
|
|
@@ -9217,25 +9217,25 @@ function rA(e) {
|
|
|
9217
9217
|
};
|
|
9218
9218
|
function h(m) {
|
|
9219
9219
|
if (o && !m.touches || !n.apply(this, arguments)) return;
|
|
9220
|
-
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v),
|
|
9220
|
+
var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v), $ = S.extent, D = S.selection, C = $[0][0], R, M, H = $[0][1], P, B, O = $[1][0], w, L, k = $[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
|
|
9221
9221
|
const yt = nt.identifier;
|
|
9222
9222
|
return nt = rr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
|
|
9223
9223
|
});
|
|
9224
9224
|
Ml(v);
|
|
9225
9225
|
var lt = u(v, arguments, !0).beforestart();
|
|
9226
9226
|
if (b === "overlay") {
|
|
9227
|
-
|
|
9227
|
+
D && (Y = !0);
|
|
9228
9228
|
const nt = [tt[0], tt[1] || tt[0]];
|
|
9229
|
-
S.selection =
|
|
9229
|
+
S.selection = D = [[
|
|
9230
9230
|
R = e === Wo ? C : ee(nt[0][0], nt[1][0]),
|
|
9231
9231
|
P = e === ta ? H : ee(nt[0][1], nt[1][1])
|
|
9232
9232
|
], [
|
|
9233
9233
|
w = e === Wo ? O : te(nt[0][0], nt[1][0]),
|
|
9234
|
-
U = e === ta ?
|
|
9234
|
+
U = e === ta ? k : te(nt[0][1], nt[1][1])
|
|
9235
9235
|
]], tt.length > 1 && ut(m);
|
|
9236
9236
|
} else
|
|
9237
|
-
R =
|
|
9238
|
-
|
|
9237
|
+
R = D[0][0], P = D[0][1], w = D[1][0], U = D[1][1];
|
|
9238
|
+
M = R, B = P, L = w, Z = U;
|
|
9239
9239
|
var z = I(v).attr("pointer-events", "none"), W = z.selectAll(".overlay").attr("cursor", hn[b]);
|
|
9240
9240
|
if (m.touches)
|
|
9241
9241
|
lt.moved = V, lt.ended = st;
|
|
@@ -9262,19 +9262,19 @@ function rA(e) {
|
|
|
9262
9262
|
switch (j = yt[0] - Se[0], F = yt[1] - Se[1], _) {
|
|
9263
9263
|
case jo:
|
|
9264
9264
|
case yd: {
|
|
9265
|
-
E && (j = te(C - R, ee(O - w, j)),
|
|
9265
|
+
E && (j = te(C - R, ee(O - w, j)), M = R + j, L = w + j), x && (F = te(H - P, ee(k - U, F)), B = P + F, Z = U + F);
|
|
9266
9266
|
break;
|
|
9267
9267
|
}
|
|
9268
9268
|
case wr: {
|
|
9269
|
-
tt[1] ? (E && (
|
|
9269
|
+
tt[1] ? (E && (M = te(C, ee(O, tt[0][0])), L = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(k, tt[0][1])), Z = te(H, ee(k, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), M = R + j, L = w) : E > 0 && (j = te(C - w, ee(O - w, j)), M = R, L = w + j), x < 0 ? (F = te(H - P, ee(k - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(k - U, F)), B = P, Z = U + F));
|
|
9270
9270
|
break;
|
|
9271
9271
|
}
|
|
9272
9272
|
case $r: {
|
|
9273
|
-
E && (
|
|
9273
|
+
E && (M = te(C, ee(O, R - j * E)), L = te(C, ee(O, w + j * E))), x && (B = te(H, ee(k, P - F * x)), Z = te(H, ee(k, U + F * x)));
|
|
9274
9274
|
break;
|
|
9275
9275
|
}
|
|
9276
9276
|
}
|
|
9277
|
-
L <
|
|
9277
|
+
L < M && (E *= -1, ge = R, R = w, w = ge, ge = M, M = L, L = ge, b in Ed && W.attr("cursor", hn[b = Ed[b]])), Z < B && (x *= -1, ge = P, P = U, U = ge, ge = B, B = Z, Z = ge, b in Od && W.attr("cursor", hn[b = Od[b]])), S.selection && (D = S.selection), Q && (M = D[0][0], L = D[1][0]), q && (B = D[0][1], Z = D[1][1]), (D[0][0] !== M || D[0][1] !== B || D[1][0] !== L || D[1][1] !== Z) && (S.selection = [[M, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
|
|
9278
9278
|
}
|
|
9279
9279
|
function st(nt) {
|
|
9280
9280
|
if (ZC(nt), nt.touches) {
|
|
@@ -9284,7 +9284,7 @@ function rA(e) {
|
|
|
9284
9284
|
}, 500);
|
|
9285
9285
|
} else
|
|
9286
9286
|
WC(nt.view, Y), X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
|
|
9287
|
-
z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (
|
|
9287
|
+
z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (D = S.selection), nA(D) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
|
|
9288
9288
|
}
|
|
9289
9289
|
function kt(nt) {
|
|
9290
9290
|
switch (nt.keyCode) {
|
|
@@ -9293,11 +9293,11 @@ function rA(e) {
|
|
|
9293
9293
|
break;
|
|
9294
9294
|
}
|
|
9295
9295
|
case 18: {
|
|
9296
|
-
_ === wr && (E && (w = L - j * E, R =
|
|
9296
|
+
_ === wr && (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r, ut(nt));
|
|
9297
9297
|
break;
|
|
9298
9298
|
}
|
|
9299
9299
|
case 32: {
|
|
9300
|
-
(_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R =
|
|
9300
|
+
(_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R = M - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = jo, W.attr("cursor", hn.selection), ut(nt));
|
|
9301
9301
|
break;
|
|
9302
9302
|
}
|
|
9303
9303
|
default:
|
|
@@ -9312,11 +9312,11 @@ function rA(e) {
|
|
|
9312
9312
|
break;
|
|
9313
9313
|
}
|
|
9314
9314
|
case 18: {
|
|
9315
|
-
_ === $r && (E < 0 ? w = L : E > 0 && (R =
|
|
9315
|
+
_ === $r && (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr, ut(nt));
|
|
9316
9316
|
break;
|
|
9317
9317
|
}
|
|
9318
9318
|
case 32: {
|
|
9319
|
-
_ === jo && (nt.altKey ? (E && (w = L - j * E, R =
|
|
9319
|
+
_ === jo && (nt.altKey ? (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r) : (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr), W.attr("cursor", hn[b]), ut(nt));
|
|
9320
9320
|
break;
|
|
9321
9321
|
}
|
|
9322
9322
|
default:
|
|
@@ -9642,15 +9642,15 @@ function dA(e, t) {
|
|
|
9642
9642
|
i === 1 ? r = de + Ot : i === -1 && (r = -de - Ot);
|
|
9643
9643
|
for (var c = 0, u = e.length; c < u; ++c)
|
|
9644
9644
|
if (h = (d = e[c]).length)
|
|
9645
|
-
for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v =
|
|
9646
|
-
var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x),
|
|
9647
|
-
if (l.add(lr(H * C * xt(R), v *
|
|
9645
|
+
for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = $, p = _) {
|
|
9646
|
+
var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), $ = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, M = R > ft, H = m * S;
|
|
9647
|
+
if (l.add(lr(H * C * xt(R), v * $ + H * Tt(R))), a += M ? D + C * Ee : D, M ^ f >= n ^ E >= n) {
|
|
9648
9648
|
var P = Ma(ni(p), ni(_));
|
|
9649
9649
|
Fl(P);
|
|
9650
9650
|
var B = Ma(s, P);
|
|
9651
9651
|
Fl(B);
|
|
9652
|
-
var O = (
|
|
9653
|
-
(r > O || r === O && (P[0] || P[1])) && (o +=
|
|
9652
|
+
var O = (M ^ D >= 0 ? -1 : 1) * Cn(B[2]);
|
|
9653
|
+
(r > O || r === O && (P[0] || P[1])) && (o += M ^ D >= 0 ? 1 : -1);
|
|
9654
9654
|
}
|
|
9655
9655
|
}
|
|
9656
9656
|
return (a < -Ot || a < Ot && l < -Ig) ^ o & 1;
|
|
@@ -9693,16 +9693,16 @@ function Hg(e, t, n, r) {
|
|
|
9693
9693
|
}
|
|
9694
9694
|
function _() {
|
|
9695
9695
|
v(d[0][0], d[0][1]), o.lineEnd();
|
|
9696
|
-
var E = o.clean(), x = a.result(), S,
|
|
9697
|
-
if (d.pop(), c.push(d), d = null,
|
|
9696
|
+
var E = o.clean(), x = a.result(), S, $ = x.length, D, C, R;
|
|
9697
|
+
if (d.pop(), c.push(d), d = null, !!$) {
|
|
9698
9698
|
if (E & 1) {
|
|
9699
|
-
if (C = x[0], (
|
|
9700
|
-
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S <
|
|
9699
|
+
if (C = x[0], (D = C.length - 1) > 0) {
|
|
9700
|
+
for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
|
|
9701
9701
|
i.lineEnd();
|
|
9702
9702
|
}
|
|
9703
9703
|
return;
|
|
9704
9704
|
}
|
|
9705
|
-
|
|
9705
|
+
$ > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(pA));
|
|
9706
9706
|
}
|
|
9707
9707
|
}
|
|
9708
9708
|
return h;
|
|
@@ -9791,18 +9791,18 @@ function yA(e) {
|
|
|
9791
9791
|
function l(u, d, h) {
|
|
9792
9792
|
var p = ni(u), f = ni(d), g = [1, 0, 0], m = Ma(p, f), v = ks(m, m), b = m[0], _ = v - b * b;
|
|
9793
9793
|
if (!_) return !h && u;
|
|
9794
|
-
var E = t * v / _, x = -t * b / _, S = Ma(g, m),
|
|
9795
|
-
Yo(
|
|
9796
|
-
var C = S, R = ks(
|
|
9794
|
+
var E = t * v / _, x = -t * b / _, S = Ma(g, m), $ = Rs(g, E), D = Rs(m, x);
|
|
9795
|
+
Yo($, D);
|
|
9796
|
+
var C = S, R = ks($, C), M = ks(C, C), H = R * R - M * (ks($, $) - 1);
|
|
9797
9797
|
if (!(H < 0)) {
|
|
9798
|
-
var P = je(H), B = Rs(C, (-R - P) /
|
|
9799
|
-
if (Yo(B,
|
|
9800
|
-
var O = u[0], w = d[0], L = u[1],
|
|
9798
|
+
var P = je(H), B = Rs(C, (-R - P) / M);
|
|
9799
|
+
if (Yo(B, $), B = zl(B), !h) return B;
|
|
9800
|
+
var O = u[0], w = d[0], L = u[1], k = d[1], U;
|
|
9801
9801
|
w < O && (U = O, O = w, w = U);
|
|
9802
9802
|
var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
|
|
9803
|
-
if (!j &&
|
|
9804
|
-
var Y = Rs(C, (-R + P) /
|
|
9805
|
-
return Yo(Y,
|
|
9803
|
+
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)) {
|
|
9804
|
+
var Y = Rs(C, (-R + P) / M);
|
|
9805
|
+
return Yo(Y, $), [B, zl(Y)];
|
|
9806
9806
|
}
|
|
9807
9807
|
}
|
|
9808
9808
|
}
|
|
@@ -9877,34 +9877,34 @@ function bA(e, t, n, r) {
|
|
|
9877
9877
|
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];
|
|
9878
9878
|
}
|
|
9879
9879
|
return function(c) {
|
|
9880
|
-
var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S,
|
|
9881
|
-
point:
|
|
9880
|
+
var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S, $ = {
|
|
9881
|
+
point: D,
|
|
9882
9882
|
lineStart: H,
|
|
9883
9883
|
lineEnd: P,
|
|
9884
9884
|
polygonStart: R,
|
|
9885
|
-
polygonEnd:
|
|
9885
|
+
polygonEnd: M
|
|
9886
9886
|
};
|
|
9887
|
-
function
|
|
9887
|
+
function D(O, w) {
|
|
9888
9888
|
i(O, w) && u.point(O, w);
|
|
9889
9889
|
}
|
|
9890
9890
|
function C() {
|
|
9891
9891
|
for (var O = 0, w = 0, L = p.length; w < L; ++w)
|
|
9892
|
-
for (var
|
|
9893
|
-
F = ot, Y = Q, j =
|
|
9892
|
+
for (var k = p[w], U = 1, Z = k.length, j = k[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
|
|
9893
|
+
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;
|
|
9894
9894
|
return O;
|
|
9895
9895
|
}
|
|
9896
9896
|
function R() {
|
|
9897
9897
|
u = d, h = [], p = [], S = !0;
|
|
9898
9898
|
}
|
|
9899
|
-
function
|
|
9899
|
+
function M() {
|
|
9900
9900
|
var O = C(), w = S && O, L = (h = Ag(h)).length;
|
|
9901
9901
|
(w || L) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), L && Bg(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
|
|
9902
9902
|
}
|
|
9903
9903
|
function H() {
|
|
9904
|
-
|
|
9904
|
+
$.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
|
|
9905
9905
|
}
|
|
9906
9906
|
function P() {
|
|
9907
|
-
h && (B(g, m), v && E && d.rejoin(), h.push(d.result())),
|
|
9907
|
+
h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), $.point = D, E && u.lineEnd();
|
|
9908
9908
|
}
|
|
9909
9909
|
function B(O, w) {
|
|
9910
9910
|
var L = i(O, w);
|
|
@@ -9912,12 +9912,12 @@ function bA(e, t, n, r) {
|
|
|
9912
9912
|
g = O, m = w, v = L, x = !1, L && (u.lineStart(), u.point(O, w));
|
|
9913
9913
|
else if (L && E) u.point(O, w);
|
|
9914
9914
|
else {
|
|
9915
|
-
var
|
|
9916
|
-
xA(
|
|
9915
|
+
var k = [b = Math.max(Ns, Math.min(Li, b)), _ = Math.max(Ns, Math.min(Li, _))], U = [O = Math.max(Ns, Math.min(Li, O)), w = Math.max(Ns, Math.min(Li, w))];
|
|
9916
|
+
xA(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);
|
|
9917
9917
|
}
|
|
9918
9918
|
b = O, _ = w, E = L;
|
|
9919
9919
|
}
|
|
9920
|
-
return
|
|
9920
|
+
return $;
|
|
9921
9921
|
};
|
|
9922
9922
|
}
|
|
9923
9923
|
const ql = (e) => e;
|
|
@@ -10235,8 +10235,8 @@ function UA(e, t) {
|
|
|
10235
10235
|
function n(r, i, s, a, o, l, c, u, d, h, p, f, g, m) {
|
|
10236
10236
|
var v = c - r, b = u - i, _ = v * v + b * b;
|
|
10237
10237
|
if (_ > 4 * t && g--) {
|
|
10238
|
-
var E = a + h, x = o + p, S = l + f,
|
|
10239
|
-
(O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (n(r, i, s, a, o, l,
|
|
10238
|
+
var E = a + h, x = o + p, S = l + f, $ = je(E * E + x * x + S * S), D = Cn(S /= $), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, D), M = R[0], H = R[1], P = M - r, B = H - i, O = b * P - v * B;
|
|
10239
|
+
(O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (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));
|
|
10240
10240
|
}
|
|
10241
10241
|
}
|
|
10242
10242
|
return function(r) {
|
|
@@ -10251,26 +10251,26 @@ function UA(e, t) {
|
|
|
10251
10251
|
r.polygonEnd(), m.lineStart = b;
|
|
10252
10252
|
}
|
|
10253
10253
|
};
|
|
10254
|
-
function v(
|
|
10255
|
-
|
|
10254
|
+
function v(D, C) {
|
|
10255
|
+
D = e(D, C), r.point(D[0], D[1]);
|
|
10256
10256
|
}
|
|
10257
10257
|
function b() {
|
|
10258
10258
|
d = NaN, m.point = _, r.lineStart();
|
|
10259
10259
|
}
|
|
10260
|
-
function _(
|
|
10261
|
-
var R = ni([
|
|
10262
|
-
n(d, h, u, p, f, g, d =
|
|
10260
|
+
function _(D, C) {
|
|
10261
|
+
var R = ni([D, C]), M = e(D, C);
|
|
10262
|
+
n(d, h, u, p, f, g, d = M[0], h = M[1], u = D, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
|
|
10263
10263
|
}
|
|
10264
10264
|
function E() {
|
|
10265
10265
|
m.point = v, r.lineEnd();
|
|
10266
10266
|
}
|
|
10267
10267
|
function x() {
|
|
10268
|
-
b(), m.point = S, m.lineEnd =
|
|
10268
|
+
b(), m.point = S, m.lineEnd = $;
|
|
10269
10269
|
}
|
|
10270
|
-
function S(
|
|
10271
|
-
_(i =
|
|
10270
|
+
function S(D, C) {
|
|
10271
|
+
_(i = D, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
|
|
10272
10272
|
}
|
|
10273
|
-
function
|
|
10273
|
+
function $() {
|
|
10274
10274
|
n(d, h, u, p, f, g, s, a, i, o, l, c, Hd, r), m.lineEnd = E, E();
|
|
10275
10275
|
}
|
|
10276
10276
|
return m;
|
|
@@ -10313,57 +10313,57 @@ function uo(e) {
|
|
|
10313
10313
|
})();
|
|
10314
10314
|
}
|
|
10315
10315
|
function Jg(e) {
|
|
10316
|
-
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 = kd, m = null, v, b, _, E = ql, x = 0.5, S,
|
|
10317
|
-
function
|
|
10318
|
-
return
|
|
10316
|
+
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 = kd, m = null, v, b, _, E = ql, x = 0.5, S, $, D, C, R;
|
|
10317
|
+
function M(O) {
|
|
10318
|
+
return D(O[0] * Bt, O[1] * Bt);
|
|
10319
10319
|
}
|
|
10320
10320
|
function H(O) {
|
|
10321
|
-
return O =
|
|
10321
|
+
return O = D.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
|
|
10322
10322
|
}
|
|
10323
|
-
|
|
10323
|
+
M.stream = function(O) {
|
|
10324
10324
|
return C && R === O ? C : C = BA(HA(u)(g(S(E(R = O)))));
|
|
10325
|
-
},
|
|
10325
|
+
}, M.preclip = function(O) {
|
|
10326
10326
|
return arguments.length ? (g = O, f = void 0, B()) : g;
|
|
10327
|
-
},
|
|
10327
|
+
}, M.postclip = function(O) {
|
|
10328
10328
|
return arguments.length ? (E = O, m = v = b = _ = null, B()) : E;
|
|
10329
|
-
},
|
|
10329
|
+
}, M.clipAngle = function(O) {
|
|
10330
10330
|
return arguments.length ? (g = +O ? yA(f = O * Bt) : (f = null, kd), B()) : f * se;
|
|
10331
|
-
},
|
|
10331
|
+
}, M.clipExtent = function(O) {
|
|
10332
10332
|
return arguments.length ? (E = O == null ? (m = v = b = _ = null, ql) : bA(m = +O[0][0], v = +O[0][1], b = +O[1][0], _ = +O[1][1]), B()) : m == null ? null : [[m, v], [b, _]];
|
|
10333
|
-
},
|
|
10333
|
+
}, M.scale = function(O) {
|
|
10334
10334
|
return arguments.length ? (n = +O, P()) : n;
|
|
10335
|
-
},
|
|
10335
|
+
}, M.translate = function(O) {
|
|
10336
10336
|
return arguments.length ? (r = +O[0], i = +O[1], P()) : [r, i];
|
|
10337
|
-
},
|
|
10337
|
+
}, M.center = function(O) {
|
|
10338
10338
|
return arguments.length ? (s = O[0] % 360 * Bt, a = O[1] % 360 * Bt, P()) : [s * se, a * se];
|
|
10339
|
-
},
|
|
10339
|
+
}, M.rotate = function(O) {
|
|
10340
10340
|
return arguments.length ? (o = O[0] % 360 * Bt, l = O[1] % 360 * Bt, c = O.length > 2 ? O[2] % 360 * Bt : 0, P()) : [o * se, l * se, c * se];
|
|
10341
|
-
},
|
|
10341
|
+
}, M.angle = function(O) {
|
|
10342
10342
|
return arguments.length ? (d = O % 360 * Bt, P()) : d * se;
|
|
10343
|
-
},
|
|
10343
|
+
}, M.reflectX = function(O) {
|
|
10344
10344
|
return arguments.length ? (h = O ? -1 : 1, P()) : h < 0;
|
|
10345
|
-
},
|
|
10345
|
+
}, M.reflectY = function(O) {
|
|
10346
10346
|
return arguments.length ? (p = O ? -1 : 1, P()) : p < 0;
|
|
10347
|
-
},
|
|
10348
|
-
return arguments.length ? (S = Vd(
|
|
10349
|
-
},
|
|
10350
|
-
return Qg(
|
|
10351
|
-
},
|
|
10352
|
-
return kA(
|
|
10353
|
-
},
|
|
10354
|
-
return RA(
|
|
10355
|
-
},
|
|
10356
|
-
return IA(
|
|
10347
|
+
}, M.precision = function(O) {
|
|
10348
|
+
return arguments.length ? (S = Vd($, x = O * O), B()) : je(x);
|
|
10349
|
+
}, M.fitExtent = function(O, w) {
|
|
10350
|
+
return Qg(M, O, w);
|
|
10351
|
+
}, M.fitSize = function(O, w) {
|
|
10352
|
+
return kA(M, O, w);
|
|
10353
|
+
}, M.fitWidth = function(O, w) {
|
|
10354
|
+
return RA(M, O, w);
|
|
10355
|
+
}, M.fitHeight = function(O, w) {
|
|
10356
|
+
return IA(M, O, w);
|
|
10357
10357
|
};
|
|
10358
10358
|
function P() {
|
|
10359
10359
|
var O = Gd(n, 0, 0, h, p, d).apply(null, t(s, a)), w = Gd(n, r - O[0], i - O[1], h, p, d);
|
|
10360
|
-
return u = Pg(o, l, c),
|
|
10360
|
+
return u = Pg(o, l, c), $ = jl(t, w), D = jl(u, $), S = Vd($, x), B();
|
|
10361
10361
|
}
|
|
10362
10362
|
function B() {
|
|
10363
|
-
return C = R = null,
|
|
10363
|
+
return C = R = null, M;
|
|
10364
10364
|
}
|
|
10365
10365
|
return function() {
|
|
10366
|
-
return t = e.apply(this, arguments),
|
|
10366
|
+
return t = e.apply(this, arguments), M.invert = t.invert && H, P();
|
|
10367
10367
|
};
|
|
10368
10368
|
}
|
|
10369
10369
|
function tv(e) {
|
|
@@ -10757,10 +10757,10 @@ function Ni(e, t) {
|
|
|
10757
10757
|
};
|
|
10758
10758
|
}
|
|
10759
10759
|
function av(e, t, n) {
|
|
10760
|
-
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,
|
|
10760
|
+
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);
|
|
10761
10761
|
return {
|
|
10762
|
-
x: r + S +
|
|
10763
|
-
y: i +
|
|
10762
|
+
x: r + S + $ * P,
|
|
10763
|
+
y: i + D + C * P,
|
|
10764
10764
|
r: P
|
|
10765
10765
|
};
|
|
10766
10766
|
}
|
|
@@ -11032,13 +11032,13 @@ function iD(e, t, n, r, i, s, a, o) {
|
|
|
11032
11032
|
return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
|
|
11033
11033
|
}
|
|
11034
11034
|
function Bs(e, t, n, r, i, s, a) {
|
|
11035
|
-
var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p,
|
|
11036
|
-
return H * H + P * P > B * B + O * O && (
|
|
11037
|
-
cx:
|
|
11035
|
+
var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, $ = (_ < 0 ? -1 : 1) * Hr(VM(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;
|
|
11036
|
+
return H * H + P * P > B * B + O * O && (D = R, C = M), {
|
|
11037
|
+
cx: D,
|
|
11038
11038
|
cy: C,
|
|
11039
11039
|
x01: -u,
|
|
11040
11040
|
y01: -d,
|
|
11041
|
-
x11:
|
|
11041
|
+
x11: D * (i / x - 1),
|
|
11042
11042
|
y11: C * (i / x - 1)
|
|
11043
11043
|
};
|
|
11044
11044
|
}
|
|
@@ -11050,22 +11050,22 @@ function ls() {
|
|
|
11050
11050
|
else if (m > Ks - ne)
|
|
11051
11051
|
o.moveTo(p * qn(f), p * Ze(f)), o.arc(0, 0, p, f, g, !v), h > ne && (o.moveTo(h * qn(g), h * Ze(g)), o.arc(0, 0, h, g, f, v));
|
|
11052
11052
|
else {
|
|
11053
|
-
var b = f, _ = g, E = f, x = g, S = m,
|
|
11053
|
+
var b = f, _ = g, E = f, x = g, S = m, $ = m, D = a.apply(this, arguments) / 2, C = D > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), M = R, H = R, P, B;
|
|
11054
11054
|
if (C > ne) {
|
|
11055
|
-
var O = id(C / h * Ze(
|
|
11056
|
-
(S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), (
|
|
11055
|
+
var O = id(C / h * Ze(D)), w = id(C / p * Ze(D));
|
|
11056
|
+
(S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), ($ -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : ($ = 0, b = _ = (f + g) / 2);
|
|
11057
11057
|
}
|
|
11058
|
-
var L = p * qn(b),
|
|
11058
|
+
var L = p * qn(b), k = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
|
|
11059
11059
|
if (R > ne) {
|
|
11060
11060
|
var j = p * qn(_), F = p * Ze(_), Y = h * qn(E), ot = h * Ze(E), Q;
|
|
11061
11061
|
if (m < is)
|
|
11062
|
-
if (Q = iD(L,
|
|
11063
|
-
var q = L - Q[0], tt =
|
|
11064
|
-
|
|
11062
|
+
if (Q = iD(L, k, Y, ot, j, F, U, Z)) {
|
|
11063
|
+
var q = L - Q[0], tt = k - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Ze(GM((q * lt + tt * z) / (Hr(q * q + tt * tt) * Hr(lt * lt + z * z))) / 2), X = Hr(Q[0] * Q[0] + Q[1] * Q[1]);
|
|
11064
|
+
M = Vo(R, (h - X) / (W - 1)), H = Vo(R, (p - X) / (W + 1));
|
|
11065
11065
|
} else
|
|
11066
|
-
|
|
11066
|
+
M = H = 0;
|
|
11067
11067
|
}
|
|
11068
|
-
|
|
11068
|
+
$ > ne ? H > ne ? (P = Bs(Y, ot, L, k, p, H, v), B = Bs(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, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, p, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : (o.moveTo(L, k), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, k), !(h > ne) || !(S > ne) ? o.lineTo(U, Z) : M > ne ? (P = Bs(U, Z, j, F, h, -M, v), B = Bs(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, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, M, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, h, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, M, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
|
|
11069
11069
|
}
|
|
11070
11070
|
if (o.closePath(), u) return o = null, u + "" || null;
|
|
11071
11071
|
}
|
|
@@ -11546,13 +11546,13 @@ function pv() {
|
|
|
11546
11546
|
let E, x = "";
|
|
11547
11547
|
const {
|
|
11548
11548
|
implementation: S,
|
|
11549
|
-
createNodeIterator:
|
|
11550
|
-
createDocumentFragment:
|
|
11549
|
+
createNodeIterator: $,
|
|
11550
|
+
createDocumentFragment: D,
|
|
11551
11551
|
getElementsByTagName: C
|
|
11552
11552
|
} = n, {
|
|
11553
11553
|
importNode: R
|
|
11554
11554
|
} = r;
|
|
11555
|
-
let
|
|
11555
|
+
let M = rp();
|
|
11556
11556
|
t.isSupported = typeof cv == "function" && typeof _ == "function" && S && S.createHTMLDocument !== void 0;
|
|
11557
11557
|
const {
|
|
11558
11558
|
MUSTACHE_EXPR: H,
|
|
@@ -11561,7 +11561,7 @@ function pv() {
|
|
|
11561
11561
|
DATA_ATTR: O,
|
|
11562
11562
|
ARIA_ATTR: w,
|
|
11563
11563
|
IS_SCRIPT_OR_DATA: L,
|
|
11564
|
-
ATTR_WHITESPACE:
|
|
11564
|
+
ATTR_WHITESPACE: k,
|
|
11565
11565
|
CUSTOM_ELEMENT: U
|
|
11566
11566
|
} = np;
|
|
11567
11567
|
let {
|
|
@@ -11685,7 +11685,7 @@ function pv() {
|
|
|
11685
11685
|
const Xt = J.body || J.documentElement;
|
|
11686
11686
|
return A && K && Xt.insertBefore(n.createTextNode(K), Xt.childNodes[0] || null), br === on ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Xt;
|
|
11687
11687
|
}, wu = function(A) {
|
|
11688
|
-
return
|
|
11688
|
+
return $.call(
|
|
11689
11689
|
A.ownerDocument || A,
|
|
11690
11690
|
A,
|
|
11691
11691
|
// eslint-disable-next-line no-bitwise
|
|
@@ -11704,10 +11704,10 @@ function pv() {
|
|
|
11704
11704
|
}
|
|
11705
11705
|
const Mu = function(A) {
|
|
11706
11706
|
let J = null;
|
|
11707
|
-
if (ln(
|
|
11707
|
+
if (ln(M.beforeSanitizeElements, A, null), Eo(A))
|
|
11708
11708
|
return jn(A), !0;
|
|
11709
11709
|
const K = qt(A.nodeName);
|
|
11710
|
-
if (ln(
|
|
11710
|
+
if (ln(M.uponSanitizeElement, A, {
|
|
11711
11711
|
tagName: K,
|
|
11712
11712
|
allowedTags: j
|
|
11713
11713
|
}), ut && A.hasChildNodes() && !$u(A.firstElementChild) && ie(/<[/\w!]/g, A.innerHTML) && ie(/<[/\w!]/g, A.textContent) || A.nodeType === Ti.progressingInstruction || ut && A.nodeType === Ti.comment && ie(/<[/\w]/g, A.data))
|
|
@@ -11731,7 +11731,7 @@ function pv() {
|
|
|
11731
11731
|
J = Ei(J, bt, " ");
|
|
11732
11732
|
}), A.textContent !== J && (_i(t.removed, {
|
|
11733
11733
|
element: A.cloneNode()
|
|
11734
|
-
}), A.textContent = J)), ln(
|
|
11734
|
+
}), A.textContent = J)), ln(M.afterSanitizeElements, A, null), !1);
|
|
11735
11735
|
}, Cu = function(A, J, K) {
|
|
11736
11736
|
if (ge && (J === "id" || J === "name") && (K in n || K in o1))
|
|
11737
11737
|
return !1;
|
|
@@ -11745,14 +11745,14 @@ function pv() {
|
|
|
11745
11745
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11746
11746
|
J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
|
|
11747
11747
|
) return !1;
|
|
11748
|
-
} else if (!yo[J] && !ie(Z, Ei(K,
|
|
11748
|
+
} else if (!yo[J] && !ie(Z, Ei(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && ED(K, "data:") === 0 && xu[A]) && !(W && !ie(L, Ei(K, k, ""))) && K)
|
|
11749
11749
|
return !1;
|
|
11750
11750
|
}
|
|
11751
11751
|
return !0;
|
|
11752
11752
|
}, Au = function(A) {
|
|
11753
11753
|
return A !== "annotation-xml" && Kd(A, U);
|
|
11754
11754
|
}, Lu = function(A) {
|
|
11755
|
-
ln(
|
|
11755
|
+
ln(M.beforeSanitizeAttributes, A, null);
|
|
11756
11756
|
const {
|
|
11757
11757
|
attributes: J
|
|
11758
11758
|
} = A;
|
|
@@ -11773,7 +11773,7 @@ function pv() {
|
|
|
11773
11773
|
value: Ne
|
|
11774
11774
|
} = Xt, Xe = qt(Pt), Oo = Ne;
|
|
11775
11775
|
let Qt = Pt === "value" ? Oo : OD(Oo);
|
|
11776
|
-
if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln(
|
|
11776
|
+
if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln(M.uponSanitizeAttribute, A, K), Qt = K.attrValue, ci && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ui + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
|
|
11777
11777
|
Er(Pt, A);
|
|
11778
11778
|
continue;
|
|
11779
11779
|
}
|
|
@@ -11813,13 +11813,13 @@ function pv() {
|
|
|
11813
11813
|
Er(Pt, A);
|
|
11814
11814
|
}
|
|
11815
11815
|
}
|
|
11816
|
-
ln(
|
|
11816
|
+
ln(M.afterSanitizeAttributes, A, null);
|
|
11817
11817
|
}, c1 = function A(J) {
|
|
11818
11818
|
let K = null;
|
|
11819
11819
|
const bt = wu(J);
|
|
11820
|
-
for (ln(
|
|
11821
|
-
ln(
|
|
11822
|
-
ln(
|
|
11820
|
+
for (ln(M.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
|
|
11821
|
+
ln(M.uponSanitizeShadowNode, K, null), Mu(K), Lu(K), K.content instanceof s && A(K.content);
|
|
11822
|
+
ln(M.afterSanitizeShadowDOM, J, null);
|
|
11823
11823
|
};
|
|
11824
11824
|
return t.sanitize = function(A) {
|
|
11825
11825
|
let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Xt = null, Pt = null;
|
|
@@ -11854,7 +11854,7 @@ function pv() {
|
|
|
11854
11854
|
return A;
|
|
11855
11855
|
if (nt) {
|
|
11856
11856
|
if (yt)
|
|
11857
|
-
for (Pt =
|
|
11857
|
+
for (Pt = D.call(K.ownerDocument); K.firstChild; )
|
|
11858
11858
|
Pt.appendChild(K.firstChild);
|
|
11859
11859
|
else
|
|
11860
11860
|
Pt = K;
|
|
@@ -11875,17 +11875,17 @@ function pv() {
|
|
|
11875
11875
|
const bt = qt(A), Xt = qt(J);
|
|
11876
11876
|
return Cu(bt, Xt, K);
|
|
11877
11877
|
}, t.addHook = function(A, J) {
|
|
11878
|
-
typeof J == "function" && _i(
|
|
11878
|
+
typeof J == "function" && _i(M[A], J);
|
|
11879
11879
|
}, t.removeHook = function(A, J) {
|
|
11880
11880
|
if (J !== void 0) {
|
|
11881
|
-
const K = bD(
|
|
11882
|
-
return K === -1 ? void 0 : _D(
|
|
11881
|
+
const K = bD(M[A], J);
|
|
11882
|
+
return K === -1 ? void 0 : _D(M[A], K, 1)[0];
|
|
11883
11883
|
}
|
|
11884
|
-
return Zd(
|
|
11884
|
+
return Zd(M[A]);
|
|
11885
11885
|
}, t.removeHooks = function(A) {
|
|
11886
|
-
|
|
11886
|
+
M[A] = [];
|
|
11887
11887
|
}, t.removeAllHooks = function() {
|
|
11888
|
-
|
|
11888
|
+
M = rp();
|
|
11889
11889
|
}, t;
|
|
11890
11890
|
}
|
|
11891
11891
|
var au = pv();
|
|
@@ -12579,15 +12579,15 @@ class ou extends mt {
|
|
|
12579
12579
|
_.exit().remove();
|
|
12580
12580
|
const E = _.enter().append("div").merge(_).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
|
|
12581
12581
|
"aria-labelledby",
|
|
12582
|
-
(
|
|
12583
|
-
`legend-datagroup-${m.size() +
|
|
12582
|
+
($, D) => this.services.domUtils.generateElementIDString(
|
|
12583
|
+
`legend-datagroup-${m.size() + D}-title`
|
|
12584
12584
|
)
|
|
12585
12585
|
);
|
|
12586
12586
|
E.selectAll("*").remove();
|
|
12587
12587
|
let x, S = 1;
|
|
12588
|
-
E.append("svg").classed("icon", !0).each(function(
|
|
12589
|
-
const
|
|
12590
|
-
!x || x !=
|
|
12588
|
+
E.append("svg").classed("icon", !0).each(function($) {
|
|
12589
|
+
const D = I(this);
|
|
12590
|
+
!x || x != $.type ? (x = $.type, S = 1) : S++, b.addAdditionalItem(D, $, S);
|
|
12591
12591
|
}), E.append("p").merge(E.select("p")), this.truncateLegendText();
|
|
12592
12592
|
}
|
|
12593
12593
|
d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && h.size() > 1 && this.addEventListeners();
|
|
@@ -13034,18 +13034,18 @@ const xv = class ia extends mt {
|
|
|
13034
13034
|
f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
|
|
13035
13035
|
const g = (x) => {
|
|
13036
13036
|
const S = x[1] - x[0];
|
|
13037
|
-
let
|
|
13038
|
-
const
|
|
13039
|
-
for (let R = 0; R <
|
|
13040
|
-
|
|
13041
|
-
|
|
13037
|
+
let $ = "0," + S.toString();
|
|
13038
|
+
const D = Math.floor(l / ia.DASH_LENGTH), C = D * ia.DASH_LENGTH;
|
|
13039
|
+
for (let R = 0; R < D; R++)
|
|
13040
|
+
$ += "," + ia.DASH_LENGTH;
|
|
13041
|
+
$ += "," + (l - C), D % 2 === 1 && ($ += ",0"), $ += "," + S.toString(), $ += "," + l.toString(), p.attr("stroke-dasharray", $);
|
|
13042
13042
|
}, m = (x) => {
|
|
13043
13043
|
const S = x.selection;
|
|
13044
13044
|
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));
|
|
13045
13045
|
}, v = (x, S) => {
|
|
13046
|
-
const
|
|
13047
|
-
let
|
|
13048
|
-
|
|
13046
|
+
const $ = eg().range([0, o]).domain(f);
|
|
13047
|
+
let D = [$.invert(x), $.invert(S)], C = "manual";
|
|
13048
|
+
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 });
|
|
13049
13049
|
};
|
|
13050
13050
|
let b;
|
|
13051
13051
|
const _ = (x) => {
|
|
@@ -13059,11 +13059,11 @@ const xv = class ia extends mt {
|
|
|
13059
13059
|
const E = this.services.zoom.getZoomRatio();
|
|
13060
13060
|
i.on("click", function(x) {
|
|
13061
13061
|
if (x.shiftKey) {
|
|
13062
|
-
const S = this.services.domUtils.getHolder(),
|
|
13063
|
-
let
|
|
13064
|
-
|
|
13065
|
-
let C =
|
|
13066
|
-
C > o && (C = o), v(
|
|
13062
|
+
const S = this.services.domUtils.getHolder(), $ = rr(s.node(), S)[0];
|
|
13063
|
+
let D = $ - o * E / 2;
|
|
13064
|
+
D < 0 && (D = 0);
|
|
13065
|
+
let C = $ + o * E / 2;
|
|
13066
|
+
C > o && (C = o), v(D, C);
|
|
13067
13067
|
}
|
|
13068
13068
|
});
|
|
13069
13069
|
}
|
|
@@ -13135,17 +13135,17 @@ class VD extends mt {
|
|
|
13135
13135
|
), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ze(m, (S) => S.value));
|
|
13136
13136
|
const E = this.model.get("zoomDomain");
|
|
13137
13137
|
if (s === Ke.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(n, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, c, l), a)) {
|
|
13138
|
-
const S = a.highlightStartMapsTo,
|
|
13139
|
-
a.data.forEach((R,
|
|
13140
|
-
N.appendOrSelect(d, `rect.highlight-${
|
|
13138
|
+
const S = a.highlightStartMapsTo, $ = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
|
|
13139
|
+
a.data.forEach((R, M) => {
|
|
13140
|
+
N.appendOrSelect(d, `rect.highlight-${M}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
|
|
13141
13141
|
"width",
|
|
13142
|
-
this.xScale(R[
|
|
13142
|
+
this.xScale(R[$]) - this.xScale(R[S])
|
|
13143
13143
|
).style(
|
|
13144
13144
|
"fill",
|
|
13145
|
-
|
|
13145
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13146
13146
|
).style("fill-opacity", 0.1).style(
|
|
13147
13147
|
"stroke",
|
|
13148
|
-
|
|
13148
|
+
D && D.scale[R[C]] ? D.scale[R[C]] : null
|
|
13149
13149
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
13150
13150
|
});
|
|
13151
13151
|
}
|
|
@@ -13154,7 +13154,7 @@ class VD extends mt {
|
|
|
13154
13154
|
if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
|
|
13155
13155
|
x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
|
|
13156
13156
|
else {
|
|
13157
|
-
const S = E.map((
|
|
13157
|
+
const S = E.map(($) => this.xScale($));
|
|
13158
13158
|
S[1] - S[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, S), this.updateBrushHandle(this.getComponentContainer(), S));
|
|
13159
13159
|
}
|
|
13160
13160
|
i && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
|
|
@@ -13310,7 +13310,7 @@ class GD extends mt {
|
|
|
13310
13310
|
), d = l.services.cartesianScales.getScaleTypeByPosition(c);
|
|
13311
13311
|
let h = null, p = null;
|
|
13312
13312
|
c === G.LEFT || c === G.RIGHT ? (p = u, h = l.services.cartesianScales.getMainXScale()) : (h = u, p = l.services.cartesianScales.getMainYScale());
|
|
13313
|
-
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), [
|
|
13313
|
+
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] = En(
|
|
13314
13314
|
x,
|
|
13315
13315
|
S,
|
|
13316
13316
|
E
|
|
@@ -13323,11 +13323,11 @@ class GD extends mt {
|
|
|
13323
13323
|
})
|
|
13324
13324
|
).attr("y1", b).attr("y2", v).attr(
|
|
13325
13325
|
"x1",
|
|
13326
|
-
({ datum: R }) =>
|
|
13326
|
+
({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
|
|
13327
13327
|
).attr(
|
|
13328
13328
|
"x2",
|
|
13329
|
-
({ datum: R }) =>
|
|
13330
|
-
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) =>
|
|
13329
|
+
({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
|
|
13330
|
+
).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(
|
|
13331
13331
|
(R) => l.services.transitions.setupTransition({
|
|
13332
13332
|
transition: R,
|
|
13333
13333
|
name: "threshold-line-update",
|
|
@@ -13335,11 +13335,11 @@ class GD extends mt {
|
|
|
13335
13335
|
})
|
|
13336
13336
|
).attr("x1", g).attr("x2", m).attr(
|
|
13337
13337
|
"y1",
|
|
13338
|
-
({ datum: R }) =>
|
|
13338
|
+
({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
|
|
13339
13339
|
).attr(
|
|
13340
13340
|
"y2",
|
|
13341
|
-
({ datum: R }) =>
|
|
13342
|
-
).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) =>
|
|
13341
|
+
({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
|
|
13342
|
+
).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));
|
|
13343
13343
|
}), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
|
|
13344
13344
|
this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
|
|
13345
13345
|
}), this.services.events.addEventListener(T.Threshold.HIDE, () => {
|
|
@@ -13448,30 +13448,30 @@ class zD extends mt {
|
|
|
13448
13448
|
o.append("rect").attr("class", "highlight-bar"), o.append("line").attr("class", "highlight-line"), o.merge(a).attr("class", "highlight-group");
|
|
13449
13449
|
const l = this;
|
|
13450
13450
|
s.each(function({ axisPosition: c }) {
|
|
13451
|
-
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 = (
|
|
13451
|
+
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] = En(
|
|
13452
13452
|
b,
|
|
13453
13453
|
_,
|
|
13454
13454
|
v
|
|
13455
13455
|
), S = I(this);
|
|
13456
13456
|
c === G.TOP || c === G.BOTTOM ? S.selectAll("rect.highlight-bar").transition().call(
|
|
13457
|
-
(
|
|
13458
|
-
transition:
|
|
13457
|
+
($) => l.services.transitions.setupTransition({
|
|
13458
|
+
transition: $,
|
|
13459
13459
|
name: "highlight-bar-update",
|
|
13460
13460
|
animate: t
|
|
13461
13461
|
})
|
|
13462
|
-
).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo:
|
|
13462
|
+
).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: $, ...D }) => E(D[$])).attr(
|
|
13463
13463
|
"width",
|
|
13464
|
-
({ highlightStartMapsTo:
|
|
13465
|
-
).style("stroke", ({ color:
|
|
13466
|
-
(
|
|
13467
|
-
transition:
|
|
13464
|
+
({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[$]), 0)
|
|
13465
|
+
).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(
|
|
13466
|
+
($) => l.services.transitions.setupTransition({
|
|
13467
|
+
transition: $,
|
|
13468
13468
|
name: "highlight-bar-update",
|
|
13469
13469
|
animate: t
|
|
13470
13470
|
})
|
|
13471
|
-
).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo:
|
|
13471
|
+
).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: $, ...D }) => x(D[$])).attr(
|
|
13472
13472
|
"height",
|
|
13473
|
-
({ highlightStartMapsTo:
|
|
13474
|
-
).style("stroke", ({ color:
|
|
13473
|
+
({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(x(C[$]) - x(C[D]), 0)
|
|
13474
|
+
).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);
|
|
13475
13475
|
});
|
|
13476
13476
|
}
|
|
13477
13477
|
}
|
|
@@ -13549,13 +13549,14 @@ class bv extends lu {
|
|
|
13549
13549
|
};
|
|
13550
13550
|
}).sort((h, p) => p.value - h.value)
|
|
13551
13551
|
), !a && y(r, "tooltip", "showTotal") === !0)) {
|
|
13552
|
-
const h = i.getRangeIdentifier();
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
),
|
|
13552
|
+
const h = i.getRangeIdentifier(), p = y(r, "tooltip", "customTotalCalculation");
|
|
13553
|
+
let f;
|
|
13554
|
+
p ? f = p(n) : f = n.reduce(
|
|
13555
|
+
(g, m) => g + m[h],
|
|
13556
|
+
0
|
|
13557
|
+
), d.push({
|
|
13558
|
+
label: gt(r, "tooltip.totalLabel") || gt(r, "locale.translations.total") || "Total",
|
|
13559
|
+
value: f,
|
|
13559
13560
|
bold: !0
|
|
13560
13561
|
});
|
|
13561
13562
|
}
|
|
@@ -13679,17 +13680,17 @@ function ZD() {
|
|
|
13679
13680
|
return arguments.length ? (p = +O, f) : p;
|
|
13680
13681
|
};
|
|
13681
13682
|
function g({ nodes: O, links: w }) {
|
|
13682
|
-
for (const [
|
|
13683
|
-
U.index =
|
|
13684
|
-
const L = new Map(O.map((
|
|
13685
|
-
for (const [
|
|
13686
|
-
U.index =
|
|
13683
|
+
for (const [k, U] of O.entries())
|
|
13684
|
+
U.index = k, U.sourceLinks = [], U.targetLinks = [];
|
|
13685
|
+
const L = new Map(O.map((k, U) => [o(k, U, O), k]));
|
|
13686
|
+
for (const [k, U] of w.entries()) {
|
|
13687
|
+
U.index = k;
|
|
13687
13688
|
let { source: Z, target: j } = U;
|
|
13688
13689
|
typeof Z != "object" && (Z = U.source = cp(L, Z)), typeof j != "object" && (j = U.target = cp(L, j)), Z.sourceLinks.push(U), j.targetLinks.push(U);
|
|
13689
13690
|
}
|
|
13690
13691
|
if (u != null)
|
|
13691
|
-
for (const { sourceLinks:
|
|
13692
|
-
|
|
13692
|
+
for (const { sourceLinks: k, targetLinks: U } of O)
|
|
13693
|
+
k.sort(u), U.sort(u);
|
|
13693
13694
|
}
|
|
13694
13695
|
function m({ nodes: O }) {
|
|
13695
13696
|
for (const w of O)
|
|
@@ -13697,53 +13698,53 @@ function ZD() {
|
|
|
13697
13698
|
}
|
|
13698
13699
|
function v({ nodes: O }) {
|
|
13699
13700
|
const w = O.length;
|
|
13700
|
-
let L = new Set(O),
|
|
13701
|
+
let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
|
|
13701
13702
|
for (; L.size; ) {
|
|
13702
13703
|
for (const Z of L) {
|
|
13703
13704
|
Z.depth = U;
|
|
13704
13705
|
for (const { target: j } of Z.sourceLinks)
|
|
13705
|
-
|
|
13706
|
+
k.add(j);
|
|
13706
13707
|
}
|
|
13707
13708
|
if (++U > w) throw new Error("circular link");
|
|
13708
|
-
L =
|
|
13709
|
+
L = k, k = /* @__PURE__ */ new Set();
|
|
13709
13710
|
}
|
|
13710
13711
|
}
|
|
13711
13712
|
function b({ nodes: O }) {
|
|
13712
13713
|
const w = O.length;
|
|
13713
|
-
let L = new Set(O),
|
|
13714
|
+
let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
|
|
13714
13715
|
for (; L.size; ) {
|
|
13715
13716
|
for (const Z of L) {
|
|
13716
13717
|
Z.height = U;
|
|
13717
13718
|
for (const { source: j } of Z.targetLinks)
|
|
13718
|
-
|
|
13719
|
+
k.add(j);
|
|
13719
13720
|
}
|
|
13720
13721
|
if (++U > w) throw new Error("circular link");
|
|
13721
|
-
L =
|
|
13722
|
+
L = k, k = /* @__PURE__ */ new Set();
|
|
13722
13723
|
}
|
|
13723
13724
|
}
|
|
13724
13725
|
function _({ nodes: O }) {
|
|
13725
|
-
const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1),
|
|
13726
|
+
const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), k = new Array(w);
|
|
13726
13727
|
for (const U of O) {
|
|
13727
13728
|
const Z = Math.max(0, Math.min(w - 1, Math.floor(l.call(null, U, w))));
|
|
13728
|
-
U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i,
|
|
13729
|
+
U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, k[Z] ? k[Z].push(U) : k[Z] = [U];
|
|
13729
13730
|
}
|
|
13730
|
-
if (c) for (const U of
|
|
13731
|
+
if (c) for (const U of k)
|
|
13731
13732
|
U.sort(c);
|
|
13732
|
-
return
|
|
13733
|
+
return k;
|
|
13733
13734
|
}
|
|
13734
13735
|
function E(O) {
|
|
13735
13736
|
const w = FD(O, (L) => (r - t - (L.length - 1) * a) / ol(L, ll));
|
|
13736
13737
|
for (const L of O) {
|
|
13737
|
-
let
|
|
13738
|
+
let k = t;
|
|
13738
13739
|
for (const U of L) {
|
|
13739
|
-
U.y0 =
|
|
13740
|
+
U.y0 = k, U.y1 = k + U.value * w, k = U.y1 + a;
|
|
13740
13741
|
for (const Z of U.sourceLinks)
|
|
13741
13742
|
Z.width = Z.value * w;
|
|
13742
13743
|
}
|
|
13743
|
-
|
|
13744
|
+
k = (r - k + a) / (L.length + 1);
|
|
13744
13745
|
for (let U = 0; U < L.length; ++U) {
|
|
13745
13746
|
const Z = L[U];
|
|
13746
|
-
Z.y0 +=
|
|
13747
|
+
Z.y0 += k * (U + 1), Z.y1 += k * (U + 1);
|
|
13747
13748
|
}
|
|
13748
13749
|
H(L);
|
|
13749
13750
|
}
|
|
@@ -13752,13 +13753,13 @@ function ZD() {
|
|
|
13752
13753
|
const w = _(O);
|
|
13753
13754
|
a = Math.min(s, (r - t) / (ap(w, (L) => L.length) - 1)), E(w);
|
|
13754
13755
|
for (let L = 0; L < p; ++L) {
|
|
13755
|
-
const
|
|
13756
|
-
|
|
13756
|
+
const k = Math.pow(0.99, L), U = Math.max(1 - k, (L + 1) / p);
|
|
13757
|
+
$(w, k, U), S(w, k, U);
|
|
13757
13758
|
}
|
|
13758
13759
|
}
|
|
13759
13760
|
function S(O, w, L) {
|
|
13760
|
-
for (let
|
|
13761
|
-
const Z = O[
|
|
13761
|
+
for (let k = 1, U = O.length; k < U; ++k) {
|
|
13762
|
+
const Z = O[k];
|
|
13762
13763
|
for (const j of Z) {
|
|
13763
13764
|
let F = 0, Y = 0;
|
|
13764
13765
|
for (const { source: Q, value: q } of j.targetLinks) {
|
|
@@ -13767,13 +13768,13 @@ function ZD() {
|
|
|
13767
13768
|
}
|
|
13768
13769
|
if (!(Y > 0)) continue;
|
|
13769
13770
|
let ot = (F / Y - j.y0) * w;
|
|
13770
|
-
j.y0 += ot, j.y1 += ot,
|
|
13771
|
+
j.y0 += ot, j.y1 += ot, M(j);
|
|
13771
13772
|
}
|
|
13772
|
-
c === void 0 && Z.sort(Pa),
|
|
13773
|
+
c === void 0 && Z.sort(Pa), D(Z, L);
|
|
13773
13774
|
}
|
|
13774
13775
|
}
|
|
13775
|
-
function
|
|
13776
|
-
for (let
|
|
13776
|
+
function $(O, w, L) {
|
|
13777
|
+
for (let k = O.length, U = k - 2; U >= 0; --U) {
|
|
13777
13778
|
const Z = O[U];
|
|
13778
13779
|
for (const j of Z) {
|
|
13779
13780
|
let F = 0, Y = 0;
|
|
@@ -13783,28 +13784,28 @@ function ZD() {
|
|
|
13783
13784
|
}
|
|
13784
13785
|
if (!(Y > 0)) continue;
|
|
13785
13786
|
let ot = (F / Y - j.y0) * w;
|
|
13786
|
-
j.y0 += ot, j.y1 += ot,
|
|
13787
|
+
j.y0 += ot, j.y1 += ot, M(j);
|
|
13787
13788
|
}
|
|
13788
|
-
c === void 0 && Z.sort(Pa),
|
|
13789
|
+
c === void 0 && Z.sort(Pa), D(Z, L);
|
|
13789
13790
|
}
|
|
13790
13791
|
}
|
|
13791
|
-
function
|
|
13792
|
-
const L = O.length >> 1,
|
|
13793
|
-
R(O,
|
|
13792
|
+
function D(O, w) {
|
|
13793
|
+
const L = O.length >> 1, k = O[L];
|
|
13794
|
+
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);
|
|
13794
13795
|
}
|
|
13795
|
-
function C(O, w, L,
|
|
13796
|
+
function C(O, w, L, k) {
|
|
13796
13797
|
for (; L < O.length; ++L) {
|
|
13797
|
-
const U = O[L], Z = (w - U.y0) *
|
|
13798
|
+
const U = O[L], Z = (w - U.y0) * k;
|
|
13798
13799
|
Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
|
|
13799
13800
|
}
|
|
13800
13801
|
}
|
|
13801
|
-
function R(O, w, L,
|
|
13802
|
+
function R(O, w, L, k) {
|
|
13802
13803
|
for (; L >= 0; --L) {
|
|
13803
|
-
const U = O[L], Z = (U.y1 - w) *
|
|
13804
|
+
const U = O[L], Z = (U.y1 - w) * k;
|
|
13804
13805
|
Z > 1e-6 && (U.y0 -= Z, U.y1 -= Z), w = U.y0 - a;
|
|
13805
13806
|
}
|
|
13806
13807
|
}
|
|
13807
|
-
function
|
|
13808
|
+
function M({ sourceLinks: O, targetLinks: w }) {
|
|
13808
13809
|
if (u === void 0) {
|
|
13809
13810
|
for (const { source: { sourceLinks: L } } of w)
|
|
13810
13811
|
L.sort(lp);
|
|
@@ -13819,24 +13820,24 @@ function ZD() {
|
|
|
13819
13820
|
}
|
|
13820
13821
|
function P(O, w) {
|
|
13821
13822
|
let L = O.y0 - (O.sourceLinks.length - 1) * a / 2;
|
|
13822
|
-
for (const { target:
|
|
13823
|
-
if (
|
|
13823
|
+
for (const { target: k, width: U } of O.sourceLinks) {
|
|
13824
|
+
if (k === w) break;
|
|
13824
13825
|
L += U + a;
|
|
13825
13826
|
}
|
|
13826
|
-
for (const { source:
|
|
13827
|
-
if (
|
|
13827
|
+
for (const { source: k, width: U } of w.targetLinks) {
|
|
13828
|
+
if (k === O) break;
|
|
13828
13829
|
L -= U;
|
|
13829
13830
|
}
|
|
13830
13831
|
return L;
|
|
13831
13832
|
}
|
|
13832
13833
|
function B(O, w) {
|
|
13833
13834
|
let L = w.y0 - (w.targetLinks.length - 1) * a / 2;
|
|
13834
|
-
for (const { source:
|
|
13835
|
-
if (
|
|
13835
|
+
for (const { source: k, width: U } of w.targetLinks) {
|
|
13836
|
+
if (k === O) break;
|
|
13836
13837
|
L += U + a;
|
|
13837
13838
|
}
|
|
13838
|
-
for (const { target:
|
|
13839
|
-
if (
|
|
13839
|
+
for (const { target: k, width: U } of O.sourceLinks) {
|
|
13840
|
+
if (k === w) break;
|
|
13840
13841
|
L -= U;
|
|
13841
13842
|
}
|
|
13842
13843
|
return L;
|
|
@@ -14048,8 +14049,8 @@ class ck extends mt {
|
|
|
14048
14049
|
), { width: x } = N.getSVGElementSize(I(`text#${E}`), {
|
|
14049
14050
|
useBBox: !0
|
|
14050
14051
|
}), S = (b.y1 - b.y0) / 2 - 9;
|
|
14051
|
-
let
|
|
14052
|
-
return b.x1 >= x ?
|
|
14052
|
+
let $ = b.x1 - b.x0;
|
|
14053
|
+
return b.x1 >= x ? $ = $ - (x + 16) : $ += 4, `translate(${$}, ${S})`;
|
|
14053
14054
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
14054
14055
|
}
|
|
14055
14056
|
addLineEventListener() {
|
|
@@ -14349,10 +14350,10 @@ class Ov extends mt {
|
|
|
14349
14350
|
"stroke"
|
|
14350
14351
|
);
|
|
14351
14352
|
else {
|
|
14352
|
-
const
|
|
14353
|
-
if (
|
|
14354
|
-
const
|
|
14355
|
-
S =
|
|
14353
|
+
const $ = y(this.model.getOptions(), "color", "scale");
|
|
14354
|
+
if ($ !== null) {
|
|
14355
|
+
const D = Object.keys($);
|
|
14356
|
+
S = $[D[0]];
|
|
14356
14357
|
}
|
|
14357
14358
|
}
|
|
14358
14359
|
Il.appendOrUpdateLinearGradient({
|
|
@@ -14667,15 +14668,18 @@ let nn = class extends mt {
|
|
|
14667
14668
|
render(t) {
|
|
14668
14669
|
if (!(y(this.getOptions(), "points", "enabled") || y(this.getOptions(), "bubble", "enabled")))
|
|
14669
14670
|
return;
|
|
14670
|
-
const n = this.
|
|
14671
|
-
|
|
14672
|
-
|
|
14671
|
+
const n = this.services.zoom?.isZoomBarEnabled() || !1, r = this.getComponentContainer({
|
|
14672
|
+
ariaLabel: "scatter points",
|
|
14673
|
+
withinChartClip: n
|
|
14674
|
+
}), i = this.getOptions(), { groupMapsTo: s } = i.data, { cartesianScales: a } = this.services;
|
|
14675
|
+
if (!a) throw new Error("Services cartesianScales are undefined.");
|
|
14676
|
+
const o = a.getDomainIdentifier(), l = r.selectAll("circle.dot").data(
|
|
14673
14677
|
this.getScatterData(),
|
|
14674
|
-
(
|
|
14678
|
+
(u) => `${u[s]}-${u[o]}`
|
|
14675
14679
|
);
|
|
14676
|
-
|
|
14677
|
-
const
|
|
14678
|
-
this.styleCircles(
|
|
14680
|
+
l.exit().attr("opacity", 0).remove();
|
|
14681
|
+
const c = l.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(l);
|
|
14682
|
+
this.styleCircles(c, t), this.addEventListeners();
|
|
14679
14683
|
}
|
|
14680
14684
|
// A value is an anomaly if is above all defined domain and range thresholds
|
|
14681
14685
|
isDatapointThresholdAnomaly(t) {
|
|
@@ -14742,7 +14746,11 @@ let nn = class extends mt {
|
|
|
14742
14746
|
return null;
|
|
14743
14747
|
}
|
|
14744
14748
|
addEventListeners() {
|
|
14745
|
-
const t = this, { groupMapsTo: n } = t.getOptions().data, r = y(
|
|
14749
|
+
const t = this, { groupMapsTo: n } = t.getOptions().data, r = y(
|
|
14750
|
+
this.getOptions(),
|
|
14751
|
+
"tooltip",
|
|
14752
|
+
"alwaysShowRulerTooltip"
|
|
14753
|
+
);
|
|
14746
14754
|
if (!this.parent) throw new Error("Parent not defined");
|
|
14747
14755
|
const i = this.parent.selectAll("circle");
|
|
14748
14756
|
r ? i.style("pointer-events", "none") : i.style("pointer-events", null), i.on("mouseover", function(s, a) {
|
|
@@ -14855,14 +14863,14 @@ class Sv extends mt {
|
|
|
14855
14863
|
f.attr("aria-hidden", !0);
|
|
14856
14864
|
return;
|
|
14857
14865
|
}
|
|
14858
|
-
const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"),
|
|
14866
|
+
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(), {
|
|
14859
14867
|
useBBox: !0
|
|
14860
14868
|
}).height;
|
|
14861
14869
|
P.remove();
|
|
14862
14870
|
const w = this.scaleType || m.scaleType || et.LINEAR, L = h(d).tickSizeOuter(0);
|
|
14863
14871
|
if (d.ticks) {
|
|
14864
14872
|
let q;
|
|
14865
|
-
if (
|
|
14873
|
+
if (M ? q = S : (q = Pn.ticks.number, b && (q = this.getNumberOfFittingTicks(
|
|
14866
14874
|
o,
|
|
14867
14875
|
O,
|
|
14868
14876
|
Pn.ticks.verticalSpaceRatio
|
|
@@ -14876,14 +14884,14 @@ class Sv extends mt {
|
|
|
14876
14884
|
tt && W.length > 2 && !lt && (W.splice(W.length - 1, 1), W.splice(0, 1)), L.tickValues(W);
|
|
14877
14885
|
}
|
|
14878
14886
|
}
|
|
14879
|
-
let
|
|
14887
|
+
let k;
|
|
14880
14888
|
const U = y(m, "ticks", "formatter"), { code: Z, number: j } = y(r, "locale");
|
|
14881
14889
|
if (v) {
|
|
14882
14890
|
const q = Dl(
|
|
14883
14891
|
L.tickValues(),
|
|
14884
14892
|
y(r, "timeScale", "timeInterval")
|
|
14885
14893
|
);
|
|
14886
|
-
U === null ?
|
|
14894
|
+
U === null ? k = (tt, lt) => Ll(tt, lt, L.tickValues(), q, H, r.locale) : k = (tt, lt) => {
|
|
14887
14895
|
const z = Ll(
|
|
14888
14896
|
tt,
|
|
14889
14897
|
lt,
|
|
@@ -14895,23 +14903,23 @@ class Sv extends mt {
|
|
|
14895
14903
|
return U(tt, lt, z);
|
|
14896
14904
|
};
|
|
14897
14905
|
} else
|
|
14898
|
-
U === null ? w === et.LINEAR && (
|
|
14899
|
-
L.tickFormat(
|
|
14906
|
+
U === null ? w === et.LINEAR && (k = (q) => j(q, Z)) : k = U;
|
|
14907
|
+
L.tickFormat(k);
|
|
14900
14908
|
const [F, Y] = this.services.cartesianScales.getScaleByPosition(n).domain();
|
|
14901
14909
|
let ot;
|
|
14902
|
-
if (
|
|
14910
|
+
if ($) {
|
|
14903
14911
|
if (v)
|
|
14904
|
-
|
|
14905
|
-
q.getTime === void 0 && (
|
|
14906
|
-
}), ot =
|
|
14912
|
+
$.forEach((q, tt) => {
|
|
14913
|
+
q.getTime === void 0 && ($[tt] = new Date(q));
|
|
14914
|
+
}), ot = $.filter((q) => {
|
|
14907
14915
|
const tt = q.getTime();
|
|
14908
14916
|
return tt >= new Date(F).getTime() && tt <= new Date(Y).getTime();
|
|
14909
14917
|
});
|
|
14910
14918
|
else if (E === et.LABELS) {
|
|
14911
14919
|
const q = this.services.cartesianScales.getScaleByPosition(n).domain();
|
|
14912
|
-
ot =
|
|
14920
|
+
ot = $.filter((tt) => q.includes(tt));
|
|
14913
14921
|
} else
|
|
14914
|
-
ot =
|
|
14922
|
+
ot = $.filter(
|
|
14915
14923
|
(q) => q >= F && q <= Y
|
|
14916
14924
|
);
|
|
14917
14925
|
L.tickValues(ot);
|
|
@@ -15008,20 +15016,20 @@ class Sv extends mt {
|
|
|
15008
15016
|
V !== null && W + X.text().length * z * 0.8 >= V && (q = !0), W = V;
|
|
15009
15017
|
}), lt.remove();
|
|
15010
15018
|
}
|
|
15011
|
-
q ? (
|
|
15019
|
+
q ? (M || (L.ticks(
|
|
15012
15020
|
this.getNumberOfFittingTicks(a, O, Pn.ticks.horizontalSpaceRatio)
|
|
15013
15021
|
), 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);
|
|
15014
15022
|
}
|
|
15015
|
-
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),
|
|
15023
|
+
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 !== Ve.NONE && E === et.LABELS && !$) {
|
|
15016
15024
|
const q = this.services.cartesianScales.getScaleDomain(n);
|
|
15017
15025
|
if (q.length > 0) {
|
|
15018
15026
|
const tt = s.select(`g.axis.${n} g.ticks g.tick`).html();
|
|
15019
15027
|
l.selectAll("g.ticks g.tick").html(tt);
|
|
15020
15028
|
const lt = this;
|
|
15021
15029
|
l.selectAll("g.tick text").data(q).text(function(z) {
|
|
15022
|
-
return z.length > C ? (lt.truncation[n] = !0, rs(z,
|
|
15030
|
+
return z.length > C ? (lt.truncation[n] = !0, rs(z, D, R)) : z;
|
|
15023
15031
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
|
|
15024
|
-
return z.length > C ? rs(z,
|
|
15032
|
+
return z.length > C ? rs(z, D, R) : z;
|
|
15025
15033
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
|
|
15026
15034
|
}
|
|
15027
15035
|
}
|
|
@@ -15366,115 +15374,115 @@ class dk extends mt {
|
|
|
15366
15374
|
if (h === 0)
|
|
15367
15375
|
return;
|
|
15368
15376
|
const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Ft.VERTICAL, [v, b] = En(
|
|
15369
|
-
(
|
|
15370
|
-
(
|
|
15377
|
+
(M) => this.services.cartesianScales.getDomainValue(M),
|
|
15378
|
+
(M) => this.services.cartesianScales.getRangeValue(M),
|
|
15371
15379
|
g
|
|
15372
15380
|
), _ = Math.floor((m ? h : p) / s.length), E = Math.min(_ / 2, 16), x = this.model.getBoxplotData(), S = n.selectAll(".box-group").data(x);
|
|
15373
15381
|
S.exit().remove();
|
|
15374
|
-
const
|
|
15375
|
-
|
|
15382
|
+
const $ = S.enter().append("g").attr("class", "box-group"), D = S.merge($);
|
|
15383
|
+
$.append("path").merge(S.select("path.vertical-line.start")).attr(
|
|
15376
15384
|
"class",
|
|
15377
15385
|
() => this.model.getColorClassName({
|
|
15378
15386
|
classNameTypes: [it.STROKE],
|
|
15379
15387
|
originalClassName: "vertical-line start"
|
|
15380
15388
|
})
|
|
15381
15389
|
).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
|
|
15382
|
-
(
|
|
15383
|
-
transition:
|
|
15390
|
+
(M) => this.services.transitions.setupTransition({
|
|
15391
|
+
transition: M,
|
|
15384
15392
|
name: "boxplot-update-verticalstartline",
|
|
15385
15393
|
animate: t
|
|
15386
15394
|
})
|
|
15387
|
-
).attr("d", (
|
|
15388
|
-
const H = f.getDomainValue(
|
|
15395
|
+
).attr("d", (M) => {
|
|
15396
|
+
const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.quartiles.q_25);
|
|
15389
15397
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15390
|
-
}),
|
|
15398
|
+
}), $.append("path").merge(S.select("path.vertical-line.end")).attr(
|
|
15391
15399
|
"class",
|
|
15392
15400
|
() => this.model.getColorClassName({
|
|
15393
15401
|
classNameTypes: [it.STROKE],
|
|
15394
15402
|
originalClassName: "vertical-line end"
|
|
15395
15403
|
})
|
|
15396
15404
|
).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
|
|
15397
|
-
(
|
|
15398
|
-
transition:
|
|
15405
|
+
(M) => this.services.transitions.setupTransition({
|
|
15406
|
+
transition: M,
|
|
15399
15407
|
name: "boxplot-update-verticalendline",
|
|
15400
15408
|
animate: t
|
|
15401
15409
|
})
|
|
15402
|
-
).attr("d", (
|
|
15403
|
-
const H = f.getDomainValue(
|
|
15410
|
+
).attr("d", (M) => {
|
|
15411
|
+
const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.quartiles.q_75);
|
|
15404
15412
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15405
|
-
}),
|
|
15413
|
+
}), $.append("path").merge(S.select("path.box")).attr(
|
|
15406
15414
|
"class",
|
|
15407
15415
|
() => this.model.getColorClassName({
|
|
15408
15416
|
classNameTypes: [it.FILL, it.STROKE],
|
|
15409
15417
|
originalClassName: "box"
|
|
15410
15418
|
})
|
|
15411
|
-
).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (
|
|
15412
|
-
(
|
|
15413
|
-
transition:
|
|
15419
|
+
).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (M) => M[i]).transition().call(
|
|
15420
|
+
(M) => this.services.transitions.setupTransition({
|
|
15421
|
+
transition: M,
|
|
15414
15422
|
name: "boxplot-update-quartiles",
|
|
15415
15423
|
animate: t
|
|
15416
15424
|
})
|
|
15417
|
-
).attr("d", (
|
|
15418
|
-
const H = f.getDomainValue(
|
|
15419
|
-
Math[m ? "max" : "min"](
|
|
15425
|
+
).attr("d", (M) => {
|
|
15426
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(
|
|
15427
|
+
Math[m ? "max" : "min"](M.quartiles.q_75, M.quartiles.q_25)
|
|
15420
15428
|
), O = B + Math.abs(
|
|
15421
|
-
f.getRangeValue(
|
|
15429
|
+
f.getRangeValue(M.quartiles.q_75) - f.getRangeValue(M.quartiles.q_25)
|
|
15422
15430
|
);
|
|
15423
15431
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15424
|
-
}),
|
|
15425
|
-
const H = f.getDomainValue(
|
|
15432
|
+
}), $.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (M) => {
|
|
15433
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.max);
|
|
15426
15434
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15427
|
-
}),
|
|
15435
|
+
}), $.append("path").merge(S.select("path.whisker.start")).attr(
|
|
15428
15436
|
"class",
|
|
15429
15437
|
() => this.model.getColorClassName({
|
|
15430
15438
|
classNameTypes: [it.STROKE],
|
|
15431
15439
|
originalClassName: "whisker start"
|
|
15432
15440
|
})
|
|
15433
15441
|
).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
15434
|
-
(
|
|
15435
|
-
transition:
|
|
15442
|
+
(M) => this.services.transitions.setupTransition({
|
|
15443
|
+
transition: M,
|
|
15436
15444
|
name: "boxplot-update-startingwhisker",
|
|
15437
15445
|
animate: t
|
|
15438
15446
|
})
|
|
15439
|
-
).attr("d", (
|
|
15440
|
-
const H = f.getDomainValue(
|
|
15447
|
+
).attr("d", (M) => {
|
|
15448
|
+
const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.min);
|
|
15441
15449
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15442
|
-
}),
|
|
15450
|
+
}), $.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
|
|
15443
15451
|
"class",
|
|
15444
15452
|
() => this.model.getColorClassName({
|
|
15445
15453
|
classNameTypes: [it.STROKE],
|
|
15446
15454
|
originalClassName: "median"
|
|
15447
15455
|
})
|
|
15448
15456
|
).attr("stroke-width", 2).transition().call(
|
|
15449
|
-
(
|
|
15450
|
-
transition:
|
|
15457
|
+
(M) => this.services.transitions.setupTransition({
|
|
15458
|
+
transition: M,
|
|
15451
15459
|
name: "boxplot-update-median",
|
|
15452
15460
|
animate: t
|
|
15453
15461
|
})
|
|
15454
|
-
).attr("d", (
|
|
15455
|
-
const H = f.getDomainValue(
|
|
15462
|
+
).attr("d", (M) => {
|
|
15463
|
+
const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.quartiles.q_50);
|
|
15456
15464
|
return ae({ x0: H, x1: P, y0: B, y1: B }, g);
|
|
15457
|
-
}),
|
|
15465
|
+
}), $.append("path").merge(S.select("path.whisker.end")).attr(
|
|
15458
15466
|
"class",
|
|
15459
15467
|
() => this.model.getColorClassName({
|
|
15460
15468
|
classNameTypes: [it.STROKE],
|
|
15461
15469
|
originalClassName: "whisker end"
|
|
15462
15470
|
})
|
|
15463
15471
|
).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
15464
|
-
(
|
|
15465
|
-
transition:
|
|
15472
|
+
(M) => this.services.transitions.setupTransition({
|
|
15473
|
+
transition: M,
|
|
15466
15474
|
name: "boxplot-update-endingwhisker",
|
|
15467
15475
|
animate: t
|
|
15468
15476
|
})
|
|
15469
|
-
).attr("d", (
|
|
15470
|
-
const H = f.getDomainValue(
|
|
15477
|
+
).attr("d", (M) => {
|
|
15478
|
+
const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.whiskers.max);
|
|
15471
15479
|
return ae({ x0: H, x1: P, y0: B, y1: O }, g);
|
|
15472
15480
|
});
|
|
15473
|
-
const C =
|
|
15474
|
-
(
|
|
15475
|
-
min:
|
|
15476
|
-
max:
|
|
15477
|
-
[i]:
|
|
15481
|
+
const C = D.selectAll("circle.outlier").data(
|
|
15482
|
+
(M) => M.outliers.map((H) => ({
|
|
15483
|
+
min: M.whiskers.min,
|
|
15484
|
+
max: M.whiskers.max,
|
|
15485
|
+
[i]: M[i],
|
|
15478
15486
|
value: H
|
|
15479
15487
|
}))
|
|
15480
15488
|
);
|
|
@@ -15487,8 +15495,8 @@ class dk extends mt {
|
|
|
15487
15495
|
originalClassName: "outlier"
|
|
15488
15496
|
})
|
|
15489
15497
|
).attr("fill-opacity", Te.circle.opacity.default).attr("cx", v).transition().call(
|
|
15490
|
-
(
|
|
15491
|
-
transition:
|
|
15498
|
+
(M) => this.services.transitions.setupTransition({
|
|
15499
|
+
transition: M,
|
|
15492
15500
|
name: "boxplot-update-circles",
|
|
15493
15501
|
animate: t
|
|
15494
15502
|
})
|
|
@@ -16114,11 +16122,26 @@ class Ok extends Vn {
|
|
|
16114
16122
|
...E,
|
|
16115
16123
|
...y(s, "tooltip", "showTotal") === !0 ? [
|
|
16116
16124
|
{
|
|
16117
|
-
label: gt(s, "
|
|
16118
|
-
value:
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16125
|
+
label: gt(s, "tooltip.totalLabel") || gt(s, "locale.translations.total") || "Total",
|
|
16126
|
+
value: (() => {
|
|
16127
|
+
const S = y(
|
|
16128
|
+
s,
|
|
16129
|
+
"tooltip",
|
|
16130
|
+
"customTotalCalculation"
|
|
16131
|
+
);
|
|
16132
|
+
if (S) {
|
|
16133
|
+
const $ = _.map(
|
|
16134
|
+
(D) => ({
|
|
16135
|
+
[D]: parseFloat(gt(m, `data.${D}`))
|
|
16136
|
+
})
|
|
16137
|
+
);
|
|
16138
|
+
return S($);
|
|
16139
|
+
} else
|
|
16140
|
+
return _.reduce(
|
|
16141
|
+
($, D) => $ + parseFloat(gt(m, `data.${D}`)),
|
|
16142
|
+
0
|
|
16143
|
+
);
|
|
16144
|
+
})()
|
|
16122
16145
|
}
|
|
16123
16146
|
] : []
|
|
16124
16147
|
]
|
|
@@ -16205,21 +16228,21 @@ class Tv extends ou {
|
|
|
16205
16228
|
m.push(
|
|
16206
16229
|
a === qs.LINEAR ? `stop-color-${g}-${o}-${C}` : `fill-${g}-${o}-${C}`
|
|
16207
16230
|
);
|
|
16208
|
-
const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number:
|
|
16209
|
-
x.tickFormat((C) =>
|
|
16210
|
-
let
|
|
16231
|
+
const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: $ } = y(n, "locale");
|
|
16232
|
+
x.tickFormat((C) => $(C, S));
|
|
16233
|
+
let D;
|
|
16211
16234
|
switch (a) {
|
|
16212
16235
|
case qs.LINEAR:
|
|
16213
16236
|
this.drawLinear(m, p, h);
|
|
16214
16237
|
break;
|
|
16215
16238
|
case qs.QUANTIZE:
|
|
16216
|
-
|
|
16239
|
+
D = this.drawQuantize(
|
|
16217
16240
|
m,
|
|
16218
16241
|
g,
|
|
16219
16242
|
c,
|
|
16220
16243
|
p,
|
|
16221
16244
|
h
|
|
16222
|
-
), E.range([
|
|
16245
|
+
), E.range([D, h]);
|
|
16223
16246
|
break;
|
|
16224
16247
|
default:
|
|
16225
16248
|
throw Error("Entered color legend type is not supported.");
|
|
@@ -16634,23 +16657,23 @@ class wv extends mt {
|
|
|
16634
16657
|
Ao(C.data[a], o, a),
|
|
16635
16658
|
d
|
|
16636
16659
|
) + "%").datum(function(C) {
|
|
16637
|
-
const R = l + 7,
|
|
16638
|
-
return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin(
|
|
16660
|
+
const R = l + 7, M = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = M / Math.PI * 180, P = this.getComputedTextLength();
|
|
16661
|
+
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;
|
|
16639
16662
|
}).attr("transform", function(C, R) {
|
|
16640
|
-
const
|
|
16641
|
-
if (R >=
|
|
16663
|
+
const M = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
|
|
16664
|
+
if (R >= M - 2 && H < Mt.callout.minSliceDegree) {
|
|
16642
16665
|
let P, B;
|
|
16643
|
-
return C.index ===
|
|
16666
|
+
return C.index === M - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
|
|
16644
16667
|
}
|
|
16645
16668
|
return `translate(${C.xPosition}, ${C.yPosition})`;
|
|
16646
16669
|
}), this.renderCallouts(v);
|
|
16647
16670
|
const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
|
|
16648
16671
|
useAttrs: !0
|
|
16649
16672
|
}), x = p ? Mt.xOffset : 0, S = p ? Mt.yOffset : 0;
|
|
16650
|
-
let
|
|
16651
|
-
_ === jt.CENTER ?
|
|
16652
|
-
let
|
|
16653
|
-
v.length > 0 && (
|
|
16673
|
+
let $ = l + x;
|
|
16674
|
+
_ === jt.CENTER ? $ = E / 2 : _ === jt.RIGHT && ($ = E - l - Mt.xOffset);
|
|
16675
|
+
let D = l + S;
|
|
16676
|
+
v.length > 0 && (D += Mt.yOffsetCallout), r.attr("x", $ + 7).attr("y", D), this.addEventListeners();
|
|
16654
16677
|
}
|
|
16655
16678
|
renderCallouts(t) {
|
|
16656
16679
|
const n = N.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", ht.GROUP).attr("data-name", "callouts"), r = n.selectAll("g.callout").data(t);
|
|
@@ -16872,10 +16895,10 @@ class Ik extends mt {
|
|
|
16872
16895
|
const { width: _ } = N.getSVGElementSize(
|
|
16873
16896
|
N.appendOrSelect(t, "text.gauge-value-number"),
|
|
16874
16897
|
{ useBBox: !0 }
|
|
16875
|
-
), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width:
|
|
16898
|
+
), 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, {
|
|
16876
16899
|
useBBox: !0
|
|
16877
16900
|
});
|
|
16878
|
-
S.attr("y", `-${
|
|
16901
|
+
S.attr("y", `-${D / 2}px`), f.attr("transform", `translate(-${$ / 2}, 0)`);
|
|
16879
16902
|
}
|
|
16880
16903
|
/**
|
|
16881
16904
|
* adds the delta number for the gauge
|
|
@@ -17635,7 +17658,7 @@ class Hk extends mt {
|
|
|
17635
17658
|
const _ = Jr().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Bn(this.fullDataNormalized.map((O) => O[d])), x = Fe().domain([
|
|
17636
17659
|
E >= 0 ? 0 : E,
|
|
17637
17660
|
nr(this.fullDataNormalized.map((O) => O[d]))
|
|
17638
|
-
]).range([g, b]).nice(f), S = x.ticks(f),
|
|
17661
|
+
]).range([g, b]).nice(f), S = x.ticks(f), $ = (O, w, L) => this.model.getFillColor(O, w, L), D = uD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(ig), C = this.uniqueKeys.map((O) => {
|
|
17639
17662
|
const w = this.getLabelDimensions(O).width, L = P2(
|
|
17640
17663
|
_(O),
|
|
17641
17664
|
b
|
|
@@ -17644,8 +17667,8 @@ class Hk extends mt {
|
|
|
17644
17667
|
}), R = {
|
|
17645
17668
|
x: nr(C) + h,
|
|
17646
17669
|
y: i / 2
|
|
17647
|
-
},
|
|
17648
|
-
|
|
17670
|
+
}, 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 }));
|
|
17671
|
+
M.join(
|
|
17649
17672
|
(O) => O.append("path").attr("opacity", 0).attr("transform", `translate(${R.x}, ${R.y})`).attr("fill", "none").call(
|
|
17650
17673
|
(w) => w.transition().call(
|
|
17651
17674
|
(L) => this.services.transitions.setupTransition({
|
|
@@ -17653,7 +17676,7 @@ class Hk extends mt {
|
|
|
17653
17676
|
name: "radar_y_axes_enter",
|
|
17654
17677
|
animate: t
|
|
17655
17678
|
})
|
|
17656
|
-
).attr("opacity", 1).attr("d", (L) =>
|
|
17679
|
+
).attr("opacity", 1).attr("d", (L) => D(H(L)))
|
|
17657
17680
|
),
|
|
17658
17681
|
(O) => O.call(
|
|
17659
17682
|
(w) => w.transition().call(
|
|
@@ -17662,7 +17685,7 @@ class Hk extends mt {
|
|
|
17662
17685
|
name: "radar_y_axes_update",
|
|
17663
17686
|
animate: t
|
|
17664
17687
|
})
|
|
17665
|
-
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) =>
|
|
17688
|
+
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(H(L)))
|
|
17666
17689
|
),
|
|
17667
17690
|
(O) => O.call(
|
|
17668
17691
|
(w) => w.transition().call(
|
|
@@ -17671,7 +17694,7 @@ class Hk extends mt {
|
|
|
17671
17694
|
name: "radar_y_axes_exit",
|
|
17672
17695
|
animate: t
|
|
17673
17696
|
})
|
|
17674
|
-
).attr("d", (L) =>
|
|
17697
|
+
).attr("d", (L) => D(H(L))).attr("opacity", 0).remove()
|
|
17675
17698
|
)
|
|
17676
17699
|
), N.appendOrSelect(n, "g.x-axes").attr("role", ht.GROUP).selectAll("line").data(this.uniqueKeys, (O) => O).join(
|
|
17677
17700
|
(O) => O.append("line").attr("opacity", 0).attr("class", (w) => `x-axis-${Tr(w)}`).attr("stroke-dasharray", "0").attr("x1", (w) => Ut(_(w), 0, R).x).attr("y1", (w) => Ut(_(w), 0, R).y).attr("x2", (w) => Ut(_(w), 0, R).x).attr("y2", (w) => Ut(_(w), 0, R).y).call(
|
|
@@ -17734,8 +17757,8 @@ class Hk extends mt {
|
|
|
17734
17757
|
"y",
|
|
17735
17758
|
(L) => Ut(_(L), x.range()[1] + h, R).y
|
|
17736
17759
|
).end().finally(() => {
|
|
17737
|
-
const L = y(o, "radar", "alignment"),
|
|
17738
|
-
n.attr("x",
|
|
17760
|
+
const L = y(o, "radar", "alignment"), k = this.getAlignmentXOffset(L, n, this.getParent());
|
|
17761
|
+
n.attr("x", k);
|
|
17739
17762
|
})
|
|
17740
17763
|
),
|
|
17741
17764
|
(O) => O.call(
|
|
@@ -17758,15 +17781,15 @@ class Hk extends mt {
|
|
|
17758
17781
|
).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-label", (w) => w.name).attr("opacity", 0).attr(
|
|
17759
17782
|
"transform",
|
|
17760
17783
|
t ? () => `translate(${R.x}, ${R.y}) scale(${1 + Math.random() * 0.35})` : `translate(${R.x}, ${R.y})`
|
|
17761
|
-
).style("fill", (w) =>
|
|
17784
|
+
).style("fill", (w) => $(w.name, null, w.data)).style("fill-opacity", Wn.opacity.selected).style("stroke", (w) => $(w.name, null, w.data)).call((w) => {
|
|
17762
17785
|
const L = w.transition().call(
|
|
17763
|
-
(
|
|
17764
|
-
transition:
|
|
17786
|
+
(k) => this.services.transitions.setupTransition({
|
|
17787
|
+
transition: k,
|
|
17765
17788
|
name: "radar_blobs_enter",
|
|
17766
17789
|
animate: t
|
|
17767
17790
|
})
|
|
17768
17791
|
);
|
|
17769
|
-
t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (
|
|
17792
|
+
t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (k) => D(k.data));
|
|
17770
17793
|
}),
|
|
17771
17794
|
(O) => (O.attr(
|
|
17772
17795
|
"class",
|
|
@@ -17775,19 +17798,19 @@ class Hk extends mt {
|
|
|
17775
17798
|
dataGroupName: w.name,
|
|
17776
17799
|
originalClassName: "blob"
|
|
17777
17800
|
})
|
|
17778
|
-
).style("fill", (w) =>
|
|
17801
|
+
).style("fill", (w) => $(w.name, null, w.data)).style("stroke", (w) => $(w.name, null, w.data)), O.call(
|
|
17779
17802
|
(w) => w.transition().call(
|
|
17780
17803
|
(L) => this.services.transitions.setupTransition({
|
|
17781
17804
|
transition: L,
|
|
17782
17805
|
name: "radar_blobs_update",
|
|
17783
17806
|
animate: t
|
|
17784
17807
|
})
|
|
17785
|
-
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) =>
|
|
17808
|
+
).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(L.data))
|
|
17786
17809
|
), O),
|
|
17787
17810
|
(O) => O.call((w) => {
|
|
17788
17811
|
const L = w.transition().call(
|
|
17789
|
-
(
|
|
17790
|
-
transition:
|
|
17812
|
+
(k) => this.services.transitions.setupTransition({
|
|
17813
|
+
transition: k,
|
|
17791
17814
|
name: "radar_blobs_exit",
|
|
17792
17815
|
animate: t
|
|
17793
17816
|
})
|
|
@@ -17808,7 +17831,7 @@ class Hk extends mt {
|
|
|
17808
17831
|
dataGroupName: O[l],
|
|
17809
17832
|
originalClassName: Tr(O[u])
|
|
17810
17833
|
})
|
|
17811
|
-
).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) =>
|
|
17834
|
+
).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(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(
|
|
17812
17835
|
(O) => O.append("rect"),
|
|
17813
17836
|
(O) => O,
|
|
17814
17837
|
(O) => O.remove()
|
|
@@ -18322,49 +18345,49 @@ class Gk extends mt {
|
|
|
18322
18345
|
name: o,
|
|
18323
18346
|
children: a
|
|
18324
18347
|
}), p = 10, f = r / 6, g = (S) => {
|
|
18325
|
-
const
|
|
18348
|
+
const $ = h.descendants().reverse(), D = h.links();
|
|
18326
18349
|
let C = h, R = h;
|
|
18327
|
-
h.eachBefore((
|
|
18328
|
-
|
|
18350
|
+
h.eachBefore((k) => {
|
|
18351
|
+
k.x < C.x && (C = k), k.x > R.x && (R = k);
|
|
18329
18352
|
});
|
|
18330
|
-
const
|
|
18331
|
-
(
|
|
18332
|
-
transition:
|
|
18353
|
+
const M = R.x - C.x, H = n.transition().call(
|
|
18354
|
+
(k) => this.services.transitions.setupTransition({
|
|
18355
|
+
transition: k,
|
|
18333
18356
|
name: "tree-update-viewbox",
|
|
18334
18357
|
animate: !0
|
|
18335
18358
|
})
|
|
18336
|
-
).attr("viewBox", [-d.left, C.x, r,
|
|
18359
|
+
).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(
|
|
18337
18360
|
"class",
|
|
18338
|
-
(
|
|
18339
|
-
).on("mouseover", function(
|
|
18361
|
+
(k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
|
|
18362
|
+
).on("mouseover", function(k, U) {
|
|
18340
18363
|
B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
|
|
18341
|
-
event:
|
|
18364
|
+
event: k,
|
|
18342
18365
|
element: I(this),
|
|
18343
18366
|
datum: U
|
|
18344
18367
|
});
|
|
18345
|
-
}).on("click", function(
|
|
18368
|
+
}).on("click", function(k, U) {
|
|
18346
18369
|
U.depth !== 0 && (U.children = U.children ? null : U._children, g(U)), B.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
|
|
18347
|
-
event:
|
|
18370
|
+
event: k,
|
|
18348
18371
|
element: I(this),
|
|
18349
18372
|
datum: U
|
|
18350
18373
|
});
|
|
18351
|
-
}).on("mouseout", function(
|
|
18374
|
+
}).on("mouseout", function(k, U) {
|
|
18352
18375
|
B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
|
|
18353
|
-
event:
|
|
18376
|
+
event: k,
|
|
18354
18377
|
element: I(this),
|
|
18355
18378
|
datum: U
|
|
18356
18379
|
});
|
|
18357
18380
|
});
|
|
18358
|
-
O.append("circle").attr("r", 2.5).attr("class", (
|
|
18359
|
-
const w = E.selectAll("path").data(
|
|
18360
|
-
const
|
|
18361
|
-
return _({ source:
|
|
18381
|
+
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 ? -Cr : Cr).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);
|
|
18382
|
+
const w = E.selectAll("path").data(D, (k) => k.target.id), L = w.enter().append("path").attr("d", () => {
|
|
18383
|
+
const k = { x: S.x0, y: S.y0 };
|
|
18384
|
+
return _({ source: k, target: k });
|
|
18362
18385
|
});
|
|
18363
18386
|
w.merge(L).transition(H).attr("d", _), w.exit().transition(H).remove().attr("d", () => {
|
|
18364
|
-
const
|
|
18365
|
-
return _({ source:
|
|
18366
|
-
}), h.eachBefore((
|
|
18367
|
-
|
|
18387
|
+
const k = { x: S.x, y: S.y };
|
|
18388
|
+
return _({ source: k, target: k });
|
|
18389
|
+
}), h.eachBefore((k) => {
|
|
18390
|
+
k.x0 = k.x, k.y0 = k.y;
|
|
18368
18391
|
});
|
|
18369
18392
|
}, m = h.descendants(), v = m[m.length - 1].depth, b = y(s, "tree", "type") === dc.DENDROGRAM ? aL().size([
|
|
18370
18393
|
i,
|
|
@@ -18373,8 +18396,8 @@ class Gk extends mt {
|
|
|
18373
18396
|
i,
|
|
18374
18397
|
r - u - v * Cr - l
|
|
18375
18398
|
]), _ = gD().x((S) => S.y).y((S) => S.x);
|
|
18376
|
-
h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S,
|
|
18377
|
-
S.id =
|
|
18399
|
+
h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, $) => {
|
|
18400
|
+
S.id = $, S._children = S.children;
|
|
18378
18401
|
}), b(h), n.attr("viewBox", [-d.left, -0, r, p]).style("user-select", "none");
|
|
18379
18402
|
const E = n.append("g").attr("class", "links"), x = n.append("g").attr("class", "nodes");
|
|
18380
18403
|
g(h);
|
|
@@ -18831,28 +18854,28 @@ function TN() {
|
|
|
18831
18854
|
rectangular: m
|
|
18832
18855
|
}, r = 64, i = 2048;
|
|
18833
18856
|
cl = function() {
|
|
18834
|
-
var E = [256, 256], x = s, S = a,
|
|
18835
|
-
|
|
18836
|
-
return arguments.length ? (U = _(F),
|
|
18837
|
-
},
|
|
18857
|
+
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;
|
|
18858
|
+
k.canvas = function(F) {
|
|
18859
|
+
return arguments.length ? (U = _(F), k) : U;
|
|
18860
|
+
}, k.start = function() {
|
|
18838
18861
|
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) {
|
|
18839
|
-
return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style =
|
|
18862
|
+
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;
|
|
18840
18863
|
}).sort(function(W, X) {
|
|
18841
18864
|
return X.size - W.size;
|
|
18842
18865
|
});
|
|
18843
|
-
return w && clearInterval(w), w = setInterval(z, 0), z(),
|
|
18866
|
+
return w && clearInterval(w), w = setInterval(z, 0), z(), k;
|
|
18844
18867
|
function z() {
|
|
18845
18868
|
for (var W = Date.now(); Date.now() - W < B && ++q < Q && w; ) {
|
|
18846
18869
|
var X = lt[q];
|
|
18847
|
-
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",
|
|
18870
|
+
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);
|
|
18848
18871
|
}
|
|
18849
|
-
q >= Q && (
|
|
18872
|
+
q >= Q && (k.stop(), O.call("end", k, tt, ot));
|
|
18850
18873
|
}
|
|
18851
|
-
},
|
|
18874
|
+
}, k.stop = function() {
|
|
18852
18875
|
w && (clearInterval(w), w = null);
|
|
18853
18876
|
for (const F of P)
|
|
18854
18877
|
delete F.sprite;
|
|
18855
|
-
return
|
|
18878
|
+
return k;
|
|
18856
18879
|
};
|
|
18857
18880
|
function Z(F) {
|
|
18858
18881
|
const Y = F.getContext("2d", { willReadFrequently: !0 });
|
|
@@ -18874,34 +18897,34 @@ function TN() {
|
|
|
18874
18897
|
}
|
|
18875
18898
|
return !1;
|
|
18876
18899
|
}
|
|
18877
|
-
return
|
|
18878
|
-
return arguments.length ? (B = F ?? 1 / 0,
|
|
18879
|
-
},
|
|
18880
|
-
return arguments.length ? (P = F,
|
|
18881
|
-
},
|
|
18882
|
-
return arguments.length ? (E = [+F[0], +F[1]],
|
|
18883
|
-
},
|
|
18884
|
-
return arguments.length ? (S = _(F),
|
|
18885
|
-
},
|
|
18886
|
-
return arguments.length ? (
|
|
18887
|
-
},
|
|
18888
|
-
return arguments.length ? (C = _(F),
|
|
18889
|
-
},
|
|
18890
|
-
return arguments.length ? (R = _(F),
|
|
18891
|
-
},
|
|
18892
|
-
return arguments.length ? (x = _(F),
|
|
18893
|
-
},
|
|
18894
|
-
return arguments.length ? (H = n[F] || F,
|
|
18895
|
-
},
|
|
18896
|
-
return arguments.length ? (
|
|
18897
|
-
},
|
|
18898
|
-
return arguments.length ? (
|
|
18899
|
-
},
|
|
18900
|
-
return arguments.length ? (L = F,
|
|
18901
|
-
},
|
|
18900
|
+
return k.timeInterval = function(F) {
|
|
18901
|
+
return arguments.length ? (B = F ?? 1 / 0, k) : B;
|
|
18902
|
+
}, k.words = function(F) {
|
|
18903
|
+
return arguments.length ? (P = F, k) : P;
|
|
18904
|
+
}, k.size = function(F) {
|
|
18905
|
+
return arguments.length ? (E = [+F[0], +F[1]], k) : E;
|
|
18906
|
+
}, k.font = function(F) {
|
|
18907
|
+
return arguments.length ? (S = _(F), k) : S;
|
|
18908
|
+
}, k.fontStyle = function(F) {
|
|
18909
|
+
return arguments.length ? (D = _(F), k) : D;
|
|
18910
|
+
}, k.fontWeight = function(F) {
|
|
18911
|
+
return arguments.length ? (C = _(F), k) : C;
|
|
18912
|
+
}, k.rotate = function(F) {
|
|
18913
|
+
return arguments.length ? (R = _(F), k) : R;
|
|
18914
|
+
}, k.text = function(F) {
|
|
18915
|
+
return arguments.length ? (x = _(F), k) : x;
|
|
18916
|
+
}, k.spiral = function(F) {
|
|
18917
|
+
return arguments.length ? (H = n[F] || F, k) : H;
|
|
18918
|
+
}, k.fontSize = function(F) {
|
|
18919
|
+
return arguments.length ? ($ = _(F), k) : $;
|
|
18920
|
+
}, k.padding = function(F) {
|
|
18921
|
+
return arguments.length ? (M = _(F), k) : M;
|
|
18922
|
+
}, k.random = function(F) {
|
|
18923
|
+
return arguments.length ? (L = F, k) : L;
|
|
18924
|
+
}, k.on = function() {
|
|
18902
18925
|
var F = O.on.apply(O, arguments);
|
|
18903
|
-
return F === O ?
|
|
18904
|
-
},
|
|
18926
|
+
return F === O ? k : F;
|
|
18927
|
+
}, k;
|
|
18905
18928
|
};
|
|
18906
18929
|
function s(E) {
|
|
18907
18930
|
return E.text;
|
|
@@ -18921,34 +18944,34 @@ function TN() {
|
|
|
18921
18944
|
function u() {
|
|
18922
18945
|
return 1;
|
|
18923
18946
|
}
|
|
18924
|
-
function d(E, x, S,
|
|
18947
|
+
function d(E, x, S, $) {
|
|
18925
18948
|
if (!x.sprite) {
|
|
18926
|
-
var
|
|
18927
|
-
|
|
18928
|
-
var R = 0,
|
|
18929
|
-
for (
|
|
18930
|
-
x = S[
|
|
18931
|
-
const X =
|
|
18949
|
+
var D = E.context, C = E.ratio;
|
|
18950
|
+
D.clearRect(0, 0, (r << 5) / C, i / C);
|
|
18951
|
+
var R = 0, M = 0, H = 0, P = S.length;
|
|
18952
|
+
for (--$; ++$ < P; ) {
|
|
18953
|
+
x = S[$], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
|
|
18954
|
+
const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
|
|
18932
18955
|
let ut = (X.width + 1) * C, st = x.size << 1;
|
|
18933
18956
|
if (x.rotate) {
|
|
18934
|
-
var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B,
|
|
18935
|
-
ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L +
|
|
18957
|
+
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;
|
|
18958
|
+
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));
|
|
18936
18959
|
} else
|
|
18937
18960
|
ut = ut + 31 >> 5 << 5;
|
|
18938
|
-
if (st > H && (H = st), R + ut >= r << 5 && (R = 0,
|
|
18939
|
-
|
|
18961
|
+
if (st > H && (H = st), R + ut >= r << 5 && (R = 0, M += H, H = 0), M + st >= i) break;
|
|
18962
|
+
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;
|
|
18940
18963
|
}
|
|
18941
|
-
for (var Z =
|
|
18942
|
-
if (x = S[
|
|
18964
|
+
for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --$ >= 0; )
|
|
18965
|
+
if (x = S[$], !!x.hasText) {
|
|
18943
18966
|
for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
|
|
18944
18967
|
if (R = x.xoff, R == null) return;
|
|
18945
|
-
|
|
18968
|
+
M = x.yoff;
|
|
18946
18969
|
for (var q = 0, tt = -1, lt = 0; lt < ot; lt++) {
|
|
18947
18970
|
for (var Q = 0; Q < F; Q++) {
|
|
18948
|
-
var z = Y * lt + (Q >> 5), W = Z[(
|
|
18971
|
+
var z = Y * lt + (Q >> 5), W = Z[(M + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
|
|
18949
18972
|
j[z] |= W, q |= W;
|
|
18950
18973
|
}
|
|
18951
|
-
q ? tt = lt : (x.y0++, ot--, lt--,
|
|
18974
|
+
q ? tt = lt : (x.y0++, ot--, lt--, M++);
|
|
18952
18975
|
}
|
|
18953
18976
|
x.y1 = x.y0 + tt, x.sprite = j.slice(0, (x.y1 - x.y0) * Y);
|
|
18954
18977
|
}
|
|
@@ -18956,17 +18979,17 @@ function TN() {
|
|
|
18956
18979
|
}
|
|
18957
18980
|
function h(E, x, S) {
|
|
18958
18981
|
S >>= 5;
|
|
18959
|
-
for (var
|
|
18982
|
+
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++) {
|
|
18960
18983
|
B = 0;
|
|
18961
|
-
for (var w = 0; w <=
|
|
18962
|
-
if ((B <<
|
|
18984
|
+
for (var w = 0; w <= D; w++)
|
|
18985
|
+
if ((B << M | (w < D ? (B = $[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
|
|
18963
18986
|
P += S;
|
|
18964
18987
|
}
|
|
18965
18988
|
return !1;
|
|
18966
18989
|
}
|
|
18967
18990
|
function p(E, x) {
|
|
18968
|
-
var S = E[0],
|
|
18969
|
-
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 >
|
|
18991
|
+
var S = E[0], $ = E[1];
|
|
18992
|
+
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);
|
|
18970
18993
|
}
|
|
18971
18994
|
function f(E, x) {
|
|
18972
18995
|
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;
|
|
@@ -18978,24 +19001,24 @@ function TN() {
|
|
|
18978
19001
|
};
|
|
18979
19002
|
}
|
|
18980
19003
|
function m(E) {
|
|
18981
|
-
var x = 4, S = x * E[0] / E[1],
|
|
19004
|
+
var x = 4, S = x * E[0] / E[1], $ = 0, D = 0;
|
|
18982
19005
|
return function(C) {
|
|
18983
19006
|
var R = C < 0 ? -1 : 1;
|
|
18984
19007
|
switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
|
|
18985
19008
|
case 0:
|
|
18986
|
-
|
|
19009
|
+
$ += S;
|
|
18987
19010
|
break;
|
|
18988
19011
|
case 1:
|
|
18989
|
-
|
|
19012
|
+
D += x;
|
|
18990
19013
|
break;
|
|
18991
19014
|
case 2:
|
|
18992
|
-
|
|
19015
|
+
$ -= S;
|
|
18993
19016
|
break;
|
|
18994
19017
|
default:
|
|
18995
|
-
|
|
19018
|
+
D -= x;
|
|
18996
19019
|
break;
|
|
18997
19020
|
}
|
|
18998
|
-
return [
|
|
19021
|
+
return [$, D];
|
|
18999
19022
|
};
|
|
19000
19023
|
}
|
|
19001
19024
|
function v(E) {
|
|
@@ -20565,10 +20588,10 @@ class SP extends kn {
|
|
|
20565
20588
|
), E = [];
|
|
20566
20589
|
b.forEach((x) => {
|
|
20567
20590
|
const { ...S } = x;
|
|
20568
|
-
let
|
|
20591
|
+
let $ = 0, D = 0;
|
|
20569
20592
|
Object.values(UN(S, "sharedStackKey")).forEach((C) => {
|
|
20570
|
-
isNaN(C) || (C < 0 ?
|
|
20571
|
-
}), E.push([
|
|
20593
|
+
isNaN(C) || (C < 0 ? D += C : $ += C);
|
|
20594
|
+
}), E.push([D, $]);
|
|
20572
20595
|
}), g = [
|
|
20573
20596
|
...hu(E),
|
|
20574
20597
|
..._.map((x) => x[c])
|