@dpuse/dpuse-tool-d3-visualiser 1.0.112 → 1.0.121
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/README.md +203 -240
- package/dist/chordDiagram-Cm91Tmgo.js +1729 -0
- package/dist/d3-hierarchy-Dtx4jD78.js +269 -0
- package/dist/{linear-DytAYqu2.js → d3-scale-BYykLEPO.js} +271 -245
- package/dist/{select-Bs4oiNEZ.js → d3-selection-CL8c_tE2.js} +233 -281
- package/dist/d3-shape-gf8U18pS.js +1133 -0
- package/dist/dpuse-tool-d3-visualiser.es.js +7 -8
- package/dist/{erdDiagram-CHPY-zaP.js → erdDiagram-DmYSx8Dh.js} +78 -65
- package/dist/networkDiagram-p5z5B_vZ.js +1005 -0
- package/dist/{palette-Ca7C6aNE.js → palette-D5DTPmuA.js} +2 -4
- package/dist/{sankeyDiagram-w2TGSqb7.js → sankeyDiagram-Dbl1-v5p.js} +38 -45
- package/dist/shipped-packages.json +12 -21
- package/dist/{src-Bo8my4B8.js → src-YHHReglY.js} +71 -109
- package/dist/{string-iJh48M7Y.js → string-BzfQLSds.js} +7 -14
- package/dist/{tanStackCharts-LPqRQGD9.js → tanStackCharts-DEINbmRi.js} +1228 -1350
- package/dist/treeDiagram-t0oFwi1c.js +49 -0
- package/dist/types/src/networkDiagram.d.ts +4 -0
- package/package.json +28 -25
- package/dist/array-Cv4-2llb.js +0 -14
- package/dist/array-Cv4-2llb.js.map +0 -1
- package/dist/chordDiagram-BG0jW2g9.js +0 -3663
- package/dist/chordDiagram-BG0jW2g9.js.map +0 -1
- package/dist/dpuse-tool-d3-visualiser.es.js.map +0 -1
- package/dist/erdDiagram-CHPY-zaP.js.map +0 -1
- package/dist/hierarchy-CDFAetye.js +0 -149
- package/dist/hierarchy-CDFAetye.js.map +0 -1
- package/dist/linear-DytAYqu2.js.map +0 -1
- package/dist/link-BfoIl3p5.js +0 -64
- package/dist/link-BfoIl3p5.js.map +0 -1
- package/dist/networkDiagram-XI0c9kJR.js +0 -1029
- package/dist/networkDiagram-XI0c9kJR.js.map +0 -1
- package/dist/palette-Ca7C6aNE.js.map +0 -1
- package/dist/point-DSPrfIZi.js +0 -88
- package/dist/point-DSPrfIZi.js.map +0 -1
- package/dist/sankeyDiagram-w2TGSqb7.js.map +0 -1
- package/dist/select-Bs4oiNEZ.js.map +0 -1
- package/dist/src-Bo8my4B8.js.map +0 -1
- package/dist/string-iJh48M7Y.js.map +0 -1
- package/dist/tanStackCharts-LPqRQGD9.js.map +0 -1
- package/dist/treeDiagram-C798R8hL.js +0 -128
- package/dist/treeDiagram-C798R8hL.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/d3-array/src/max.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
let n;
|
|
4
4
|
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
|
|
@@ -8,8 +8,7 @@ function e(e, t) {
|
|
|
8
8
|
}
|
|
9
9
|
return n;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region src/palette.ts
|
|
11
|
+
// src/palette.ts
|
|
13
12
|
var t = [
|
|
14
13
|
{
|
|
15
14
|
dark: "#3987e5",
|
|
@@ -69,5 +68,4 @@ function i(e, n) {
|
|
|
69
68
|
if (r == null) throw Error("Categorical palette is empty.");
|
|
70
69
|
return n === "dark" ? r.dark : r.light;
|
|
71
70
|
}
|
|
72
|
-
//#endregion
|
|
73
71
|
export { e as i, r as n, i as r, n as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e
|
|
2
|
-
import { t as i } from "./
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { i as e } from "./d3-selection-CL8c_tE2.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./palette-D5DTPmuA.js";
|
|
3
|
+
import { _ as a } from "./d3-shape-gf8U18pS.js";
|
|
4
|
+
// node_modules/d3-array/src/min.js
|
|
5
5
|
function o(e, t) {
|
|
6
6
|
let n;
|
|
7
7
|
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
|
|
@@ -11,8 +11,7 @@ function o(e, t) {
|
|
|
11
11
|
}
|
|
12
12
|
return n;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
//#region node_modules/d3-array/src/sum.js
|
|
14
|
+
// node_modules/d3-array/src/sum.js
|
|
16
15
|
function s(e, t) {
|
|
17
16
|
let n = 0;
|
|
18
17
|
if (t === void 0) for (let t of e) (t = +t) && (n += t);
|
|
@@ -22,20 +21,17 @@ function s(e, t) {
|
|
|
22
21
|
}
|
|
23
22
|
return n;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
//#region node_modules/d3-sankey/src/align.js
|
|
24
|
+
// node_modules/d3-sankey/src/align.js
|
|
27
25
|
function c(e, t) {
|
|
28
26
|
return e.sourceLinks.length ? e.depth : t - 1;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
//#region node_modules/d3-sankey/src/constant.js
|
|
28
|
+
// node_modules/d3-sankey/src/constant.js
|
|
32
29
|
function l(e) {
|
|
33
30
|
return function() {
|
|
34
31
|
return e;
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
|
-
|
|
38
|
-
//#region node_modules/d3-sankey/src/sankey.js
|
|
34
|
+
// node_modules/d3-sankey/src/sankey.js
|
|
39
35
|
function u(e, t) {
|
|
40
36
|
return f(e.source, t.source) || e.index - t.index;
|
|
41
37
|
}
|
|
@@ -70,7 +66,7 @@ function v({ nodes: e }) {
|
|
|
70
66
|
}
|
|
71
67
|
}
|
|
72
68
|
function y() {
|
|
73
|
-
let
|
|
69
|
+
let e = 0, n = 0, r = 1, i = 1, a = 24, y = 8, b, x = m, S = c, C, w, T = h, E = g, D = 6;
|
|
74
70
|
function O() {
|
|
75
71
|
let e = {
|
|
76
72
|
nodes: T.apply(null, arguments),
|
|
@@ -96,10 +92,10 @@ function y() {
|
|
|
96
92
|
return arguments.length ? (E = typeof e == "function" ? e : l(e), O) : E;
|
|
97
93
|
}, O.linkSort = function(e) {
|
|
98
94
|
return arguments.length ? (w = e, O) : w;
|
|
99
|
-
}, O.size = function(
|
|
100
|
-
return arguments.length ? (
|
|
101
|
-
}, O.extent = function(
|
|
102
|
-
return arguments.length ? (
|
|
95
|
+
}, O.size = function(t) {
|
|
96
|
+
return arguments.length ? (e = n = 0, r = +t[0], i = +t[1], O) : [r - e, i - n];
|
|
97
|
+
}, O.extent = function(t) {
|
|
98
|
+
return arguments.length ? (e = +t[0][0], r = +t[1][0], n = +t[0][1], i = +t[1][1], O) : [[e, n], [r, i]];
|
|
103
99
|
}, O.iterations = function(e) {
|
|
104
100
|
return arguments.length ? (D = +e, O) : D;
|
|
105
101
|
};
|
|
@@ -139,10 +135,10 @@ function y() {
|
|
|
139
135
|
}
|
|
140
136
|
}
|
|
141
137
|
function N({ nodes: n }) {
|
|
142
|
-
let i =
|
|
143
|
-
for (let
|
|
144
|
-
let n = Math.max(0, Math.min(i - 1, Math.floor(S.call(null,
|
|
145
|
-
|
|
138
|
+
let i = t(n, (e) => e.depth) + 1, o = (r - e - a) / (i - 1), s = Array(i);
|
|
139
|
+
for (let t of n) {
|
|
140
|
+
let n = Math.max(0, Math.min(i - 1, Math.floor(S.call(null, t, i))));
|
|
141
|
+
t.layer = n, t.x0 = e + n * o, t.x1 = t.x0 + a, s[n] ? s[n].push(t) : s[n] = [t];
|
|
146
142
|
}
|
|
147
143
|
if (C) for (let e of s) e.sort(C);
|
|
148
144
|
return s;
|
|
@@ -163,9 +159,9 @@ function y() {
|
|
|
163
159
|
H(r);
|
|
164
160
|
}
|
|
165
161
|
}
|
|
166
|
-
function F(
|
|
167
|
-
let r = N(
|
|
168
|
-
b = Math.min(y, (i - n) / (
|
|
162
|
+
function F(e) {
|
|
163
|
+
let r = N(e);
|
|
164
|
+
b = Math.min(y, (i - n) / (t(r, (e) => e.length) - 1)), P(r);
|
|
169
165
|
for (let e = 0; e < D; ++e) {
|
|
170
166
|
let t = .99 ** e, n = Math.max(1 - t, (e + 1) / D);
|
|
171
167
|
L(r, t, n), I(r, t, n);
|
|
@@ -254,8 +250,7 @@ function y() {
|
|
|
254
250
|
}
|
|
255
251
|
return O;
|
|
256
252
|
}
|
|
257
|
-
|
|
258
|
-
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
|
|
253
|
+
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
|
|
259
254
|
function b(e) {
|
|
260
255
|
return [e.source.x1, e.y0];
|
|
261
256
|
}
|
|
@@ -265,13 +260,12 @@ function x(e) {
|
|
|
265
260
|
function S() {
|
|
266
261
|
return a().source(b).target(x);
|
|
267
262
|
}
|
|
268
|
-
|
|
269
|
-
//#region src/sankeyDiagram.ts
|
|
263
|
+
// src/sankeyDiagram.ts
|
|
270
264
|
var C = 16, w = 12, T = 480, E = 640, D = 6;
|
|
271
|
-
function O(
|
|
272
|
-
let s = o.colorModeId ?? "light", c =
|
|
265
|
+
function O(t, a, o = {}) {
|
|
266
|
+
let s = o.colorModeId ?? "light", c = i[s], l = n[s];
|
|
273
267
|
getComputedStyle(a).position === "static" && (a.style.position = "relative");
|
|
274
|
-
let u =
|
|
268
|
+
let u = e(a).append("div").attr("role", "tooltip").style("position", "absolute").style("pointer-events", "none").style("z-index", "1").style("opacity", "0").style("transition", "opacity 120ms ease").style("padding", "4px 8px").style("border-radius", "4px").style("font", "12px system-ui, -apple-system, \"Segoe UI\", sans-serif").style("white-space", "nowrap").style("background", l.chart).style("color", c.primary).style("border", `1px solid ${l.border}`).style("box-shadow", "0 2px 8px rgba(0,0,0,0.15)");
|
|
275
269
|
function d(e, t) {
|
|
276
270
|
let n = a.getBoundingClientRect();
|
|
277
271
|
u.html(t).style("left", `${String(e.clientX - n.left + 12)}px`).style("top", `${String(e.clientY - n.top + 12)}px`).style("opacity", "1");
|
|
@@ -280,27 +274,27 @@ function O(e, a, o = {}) {
|
|
|
280
274
|
u.style("opacity", "0");
|
|
281
275
|
}
|
|
282
276
|
function p() {
|
|
283
|
-
|
|
284
|
-
let
|
|
285
|
-
links:
|
|
286
|
-
nodes:
|
|
287
|
-
}, { links: u, nodes: p } = y().nodeId((e) => e.id).nodeWidth(o.nodeWidth ?? C).nodePadding(o.nodePadding ?? w).extent([[1, 1], [
|
|
288
|
-
m.append("g").attr("fill", "none").selectAll("path").data(u).join("path").attr("d", h).attr("stroke", (e) =>
|
|
289
|
-
|
|
290
|
-
let
|
|
291
|
-
d(
|
|
277
|
+
e(a).selectAll("svg").remove();
|
|
278
|
+
let n = a.clientWidth || E, i = a.clientHeight || T, l = {
|
|
279
|
+
links: t.links.map((e) => ({ ...e })),
|
|
280
|
+
nodes: t.nodes.map((e) => ({ ...e }))
|
|
281
|
+
}, { links: u, nodes: p } = y().nodeId((e) => e.id).nodeWidth(o.nodeWidth ?? C).nodePadding(o.nodePadding ?? w).extent([[1, 1], [n - 1, i - 1]])(l), m = e(a).insert("svg", "div").attr("viewBox", `0 0 ${String(n)} ${String(i)}`).attr("width", "100%").attr("height", "100%").attr("font-family", "system-ui, -apple-system, \"Segoe UI\", sans-serif").attr("font-size", 12), h = S();
|
|
282
|
+
m.append("g").attr("fill", "none").selectAll("path").data(u).join("path").attr("d", h).attr("stroke", (e) => r(p.indexOf(e.source), s)).attr("stroke-opacity", .35).attr("stroke-width", (e) => Math.max(1, e.width ?? 1)).on("mouseenter", (t, n) => {
|
|
283
|
+
e(t.currentTarget).attr("stroke-opacity", .6);
|
|
284
|
+
let r = n.source, i = n.target;
|
|
285
|
+
d(t, `${r.name} → ${i.name}<br>${n.value.toLocaleString()}`);
|
|
292
286
|
}).on("mousemove", (e, t) => {
|
|
293
287
|
let n = t.source, r = t.target;
|
|
294
288
|
d(e, `${n.name} → ${r.name}<br>${t.value.toLocaleString()}`);
|
|
295
|
-
}).on("mouseleave", (
|
|
296
|
-
|
|
289
|
+
}).on("mouseleave", (t) => {
|
|
290
|
+
e(t.currentTarget).attr("stroke-opacity", .35), f();
|
|
297
291
|
});
|
|
298
292
|
let g = m.append("g").selectAll("g").data(p).join("g");
|
|
299
|
-
g.append("rect").attr("x", (e) => e.x0 ?? 0).attr("y", (e) => e.y0 ?? 0).attr("width", (e) => (e.x1 ?? 0) - (e.x0 ?? 0)).attr("height", (e) => Math.max(1, (e.y1 ?? 0) - (e.y0 ?? 0))).attr("rx", 2).attr("fill", (e, t) =>
|
|
293
|
+
g.append("rect").attr("x", (e) => e.x0 ?? 0).attr("y", (e) => e.y0 ?? 0).attr("width", (e) => (e.x1 ?? 0) - (e.x0 ?? 0)).attr("height", (e) => Math.max(1, (e.y1 ?? 0) - (e.y0 ?? 0))).attr("rx", 2).attr("fill", (e, t) => r(t, s)).on("mouseenter", (e, t) => {
|
|
300
294
|
d(e, `${t.name}<br>${(t.value ?? 0).toLocaleString()}`);
|
|
301
295
|
}).on("mousemove", (e, t) => {
|
|
302
296
|
d(e, `${t.name}<br>${(t.value ?? 0).toLocaleString()}`);
|
|
303
|
-
}).on("mouseleave", f), g.append("text").attr("x", (e) => (e.x0 ?? 0) <
|
|
297
|
+
}).on("mouseleave", f), g.append("text").attr("x", (e) => (e.x0 ?? 0) < n / 2 ? (e.x1 ?? 0) + D : (e.x0 ?? 0) - D).attr("y", (e) => ((e.y0 ?? 0) + (e.y1 ?? 0)) / 2).attr("dy", "0.35em").attr("text-anchor", (e) => (e.x0 ?? 0) < n / 2 ? "start" : "end").attr("fill", c.primary).text((e) => e.name);
|
|
304
298
|
let _ = m.node();
|
|
305
299
|
if (_ == null) throw Error("Failed to create Sankey diagram SVG element.");
|
|
306
300
|
return _;
|
|
@@ -315,5 +309,4 @@ function O(e, a, o = {}) {
|
|
|
315
309
|
}
|
|
316
310
|
};
|
|
317
311
|
}
|
|
318
|
-
//#endregion
|
|
319
312
|
export { O as renderSankeyDiagram };
|
|
@@ -1,37 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packages": [
|
|
3
|
-
"@dagrejs/dagre@3.1.
|
|
4
|
-
"@
|
|
5
|
-
"@
|
|
6
|
-
"@emotion/hash@0.9.2",
|
|
7
|
-
"@emotion/memoize@0.9.0",
|
|
8
|
-
"@emotion/serialize@1.3.3",
|
|
9
|
-
"@emotion/sheet@1.4.0",
|
|
10
|
-
"@emotion/unitless@0.10.0",
|
|
11
|
-
"@emotion/utils@1.4.2",
|
|
12
|
-
"@juggle/resize-observer@3.4.0",
|
|
13
|
-
"@tanstack/charts@1.0.0",
|
|
14
|
-
"@unovis/ts@1.7.1",
|
|
3
|
+
"@dagrejs/dagre@3.1.3",
|
|
4
|
+
"@tanstack/charts@1.5.0",
|
|
5
|
+
"@unovis/ts@1.8.1",
|
|
15
6
|
"d3-array@3.2.4",
|
|
16
|
-
"d3-chord@3.0.
|
|
7
|
+
"d3-chord@3.0.2",
|
|
17
8
|
"d3-color@3.1.0",
|
|
18
9
|
"d3-dispatch@3.0.1",
|
|
19
|
-
"d3-drag@3.0.
|
|
10
|
+
"d3-drag@3.0.1",
|
|
20
11
|
"d3-ease@3.0.1",
|
|
21
|
-
"d3-force@3.0.
|
|
12
|
+
"d3-force@3.0.1",
|
|
22
13
|
"d3-format@3.1.2",
|
|
23
|
-
"d3-hierarchy@3.1.
|
|
24
|
-
"d3-interpolate-path@2.3.0",
|
|
14
|
+
"d3-hierarchy@3.1.3",
|
|
25
15
|
"d3-interpolate@3.0.1",
|
|
26
|
-
"d3-path@3.1.
|
|
16
|
+
"d3-path@3.1.1",
|
|
27
17
|
"d3-quadtree@3.0.1",
|
|
28
18
|
"d3-sankey@0.12.3",
|
|
29
19
|
"d3-scale@4.0.2",
|
|
30
|
-
"d3-
|
|
31
|
-
"d3-
|
|
20
|
+
"d3-scale@4.0.3",
|
|
21
|
+
"d3-selection@3.0.1",
|
|
22
|
+
"d3-shape@3.2.1",
|
|
32
23
|
"d3-timer@3.0.1",
|
|
33
24
|
"d3-transition@3.0.1",
|
|
34
|
-
"d3-zoom@3.0.
|
|
25
|
+
"d3-zoom@3.0.1",
|
|
35
26
|
"internmap@2.0.3",
|
|
36
27
|
"stylis@4.2.0",
|
|
37
28
|
"throttle-debounce@5.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
import { a as o, n as s, r as c, t as l } from "./string-
|
|
3
|
-
|
|
1
|
+
import { a as e, c as t, n, o as r, s as i, t as a } from "./d3-selection-CL8c_tE2.js";
|
|
2
|
+
import { a as o, n as s, r as c, t as l } from "./string-BzfQLSds.js";
|
|
3
|
+
// node_modules/d3-dispatch/src/dispatch.js
|
|
4
4
|
var u = { value: () => {} };
|
|
5
5
|
function d() {
|
|
6
6
|
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
@@ -28,12 +28,12 @@ f.prototype = d.prototype = {
|
|
|
28
28
|
var n = this._, r = p(e + "", n), i, a = -1, o = r.length;
|
|
29
29
|
if (arguments.length < 2) {
|
|
30
30
|
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = m(n[i], e.name))) return i;
|
|
31
|
-
|
|
31
|
+
} else {
|
|
32
|
+
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
33
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = h(n[i], e.name, t);
|
|
34
|
+
else if (t == null) for (i in n) n[i] = h(n[i], e.name, null);
|
|
35
|
+
return this;
|
|
32
36
|
}
|
|
33
|
-
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
34
|
-
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = h(n[i], e.name, t);
|
|
35
|
-
else if (t == null) for (i in n) n[i] = h(n[i], e.name, null);
|
|
36
|
-
return this;
|
|
37
37
|
},
|
|
38
38
|
copy: function() {
|
|
39
39
|
var e = {}, t = this._;
|
|
@@ -63,8 +63,7 @@ function h(e, t, n) {
|
|
|
63
63
|
value: n
|
|
64
64
|
}), e;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
//#region node_modules/d3-timer/src/timer.js
|
|
66
|
+
// node_modules/d3-timer/src/timer.js
|
|
68
67
|
var g = 0, _ = 0, v = 0, y = 1e3, b, x, S = 0, C = 0, w = 0, T = typeof performance == "object" && performance.now ? performance : Date, E = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
69
68
|
setTimeout(e, 17);
|
|
70
69
|
};
|
|
@@ -115,16 +114,14 @@ function re() {
|
|
|
115
114
|
function j(e) {
|
|
116
115
|
g || (_ &&= clearTimeout(_), e - C > 24 ? (e < Infinity && (_ = setTimeout(A, e - T.now() - w)), v &&= clearInterval(v)) : (v ||= (S = T.now(), setInterval(ne, y)), g = 1, E(A)));
|
|
117
116
|
}
|
|
118
|
-
|
|
119
|
-
//#region node_modules/d3-timer/src/timeout.js
|
|
117
|
+
// node_modules/d3-timer/src/timeout.js
|
|
120
118
|
function M(e, t, n) {
|
|
121
119
|
var r = new O();
|
|
122
120
|
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
123
121
|
r.stop(), e(n + t);
|
|
124
122
|
}, t, n), r;
|
|
125
123
|
}
|
|
126
|
-
|
|
127
|
-
//#region node_modules/d3-interpolate/src/transform/decompose.js
|
|
124
|
+
// node_modules/d3-interpolate/src/transform/decompose.js
|
|
128
125
|
var N = 180 / Math.PI, P = {
|
|
129
126
|
translateX: 0,
|
|
130
127
|
translateY: 0,
|
|
@@ -144,8 +141,7 @@ function F(e, t, n, r, i, a) {
|
|
|
144
141
|
scaleY: s
|
|
145
142
|
};
|
|
146
143
|
}
|
|
147
|
-
|
|
148
|
-
//#region node_modules/d3-interpolate/src/transform/parse.js
|
|
144
|
+
// node_modules/d3-interpolate/src/transform/parse.js
|
|
149
145
|
var I;
|
|
150
146
|
function L(e) {
|
|
151
147
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
@@ -154,8 +150,7 @@ function L(e) {
|
|
|
154
150
|
function R(e) {
|
|
155
151
|
return e == null || (I ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), I.setAttribute("transform", e), !(e = I.transform.baseVal.consolidate())) ? P : (e = e.matrix, F(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
156
152
|
}
|
|
157
|
-
|
|
158
|
-
//#region node_modules/d3-interpolate/src/transform/index.js
|
|
153
|
+
// node_modules/d3-interpolate/src/transform/index.js
|
|
159
154
|
function z(e, t, n, r) {
|
|
160
155
|
function i(e) {
|
|
161
156
|
return e.length ? e.pop() + " " : "";
|
|
@@ -267,30 +262,21 @@ function W(e, t, n) {
|
|
|
267
262
|
delete e.__transition;
|
|
268
263
|
}
|
|
269
264
|
}
|
|
270
|
-
|
|
271
|
-
//#region node_modules/d3-transition/src/interrupt.js
|
|
265
|
+
// node_modules/d3-transition/src/interrupt.js
|
|
272
266
|
function G(e, t) {
|
|
273
267
|
var n = e.__transition, r, i, a = !0, o;
|
|
274
268
|
if (n) {
|
|
275
|
-
for (o in t = t == null ? null : t + "", n)
|
|
276
|
-
if ((r = n[o]).name !== t) {
|
|
277
|
-
a = !1;
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
|
|
281
|
-
}
|
|
269
|
+
for (o in t = t == null ? null : t + "", n) (r = n[o]).name === t ? (i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o]) : a = !1;
|
|
282
270
|
a && delete e.__transition;
|
|
283
271
|
}
|
|
284
272
|
}
|
|
285
|
-
|
|
286
|
-
//#region node_modules/d3-transition/src/selection/interrupt.js
|
|
273
|
+
// node_modules/d3-transition/src/selection/interrupt.js
|
|
287
274
|
function K(e) {
|
|
288
275
|
return this.each(function() {
|
|
289
276
|
G(this, e);
|
|
290
277
|
});
|
|
291
278
|
}
|
|
292
|
-
|
|
293
|
-
//#region node_modules/d3-transition/src/transition/tween.js
|
|
279
|
+
// node_modules/d3-transition/src/transition/tween.js
|
|
294
280
|
function ce(e, t) {
|
|
295
281
|
var n, r;
|
|
296
282
|
return function() {
|
|
@@ -341,14 +327,12 @@ function q(e, t, n) {
|
|
|
341
327
|
return U(e, r).value[t];
|
|
342
328
|
};
|
|
343
329
|
}
|
|
344
|
-
|
|
345
|
-
//#region node_modules/d3-transition/src/transition/interpolate.js
|
|
330
|
+
// node_modules/d3-transition/src/transition/interpolate.js
|
|
346
331
|
function J(e, t) {
|
|
347
332
|
var n;
|
|
348
333
|
return (typeof t == "number" ? s : t instanceof o ? c : (n = o(t)) ? (t = n, c) : l)(e, t);
|
|
349
334
|
}
|
|
350
|
-
|
|
351
|
-
//#region node_modules/d3-transition/src/transition/attr.js
|
|
335
|
+
// node_modules/d3-transition/src/transition/attr.js
|
|
352
336
|
function de(e) {
|
|
353
337
|
return function() {
|
|
354
338
|
this.removeAttribute(e);
|
|
@@ -388,11 +372,10 @@ function ge(e, t, n) {
|
|
|
388
372
|
};
|
|
389
373
|
}
|
|
390
374
|
function _e(e, t) {
|
|
391
|
-
var
|
|
392
|
-
return this.attrTween(e, typeof t == "function" ? (
|
|
375
|
+
var r = n(e), i = r === "transform" ? ae : J;
|
|
376
|
+
return this.attrTween(e, typeof t == "function" ? (r.local ? ge : he)(r, i, q(this, "attr." + e, t)) : t == null ? (r.local ? fe : de)(r) : (r.local ? me : pe)(r, i, t));
|
|
393
377
|
}
|
|
394
|
-
|
|
395
|
-
//#region node_modules/d3-transition/src/transition/attrTween.js
|
|
378
|
+
// node_modules/d3-transition/src/transition/attrTween.js
|
|
396
379
|
function ve(e, t) {
|
|
397
380
|
return function(n) {
|
|
398
381
|
this.setAttribute(e, t.call(this, n));
|
|
@@ -420,15 +403,14 @@ function xe(e, t) {
|
|
|
420
403
|
return i._value = t, i;
|
|
421
404
|
}
|
|
422
405
|
function Se(e, t) {
|
|
423
|
-
var
|
|
424
|
-
if (arguments.length < 2) return (
|
|
425
|
-
if (t == null) return this.tween(
|
|
406
|
+
var r = "attr." + e;
|
|
407
|
+
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
408
|
+
if (t == null) return this.tween(r, null);
|
|
426
409
|
if (typeof t != "function") throw Error();
|
|
427
|
-
var
|
|
428
|
-
return this.tween(
|
|
410
|
+
var i = n(e);
|
|
411
|
+
return this.tween(r, (i.local ? be : xe)(i, t));
|
|
429
412
|
}
|
|
430
|
-
|
|
431
|
-
//#region node_modules/d3-transition/src/transition/delay.js
|
|
413
|
+
// node_modules/d3-transition/src/transition/delay.js
|
|
432
414
|
function Ce(e, t) {
|
|
433
415
|
return function() {
|
|
434
416
|
V(this, e).delay = +t.apply(this, arguments);
|
|
@@ -443,8 +425,7 @@ function Te(e) {
|
|
|
443
425
|
var t = this._id;
|
|
444
426
|
return arguments.length ? this.each((typeof e == "function" ? Ce : we)(t, e)) : U(this.node(), t).delay;
|
|
445
427
|
}
|
|
446
|
-
|
|
447
|
-
//#region node_modules/d3-transition/src/transition/duration.js
|
|
428
|
+
// node_modules/d3-transition/src/transition/duration.js
|
|
448
429
|
function Ee(e, t) {
|
|
449
430
|
return function() {
|
|
450
431
|
H(this, e).duration = +t.apply(this, arguments);
|
|
@@ -459,8 +440,7 @@ function Oe(e) {
|
|
|
459
440
|
var t = this._id;
|
|
460
441
|
return arguments.length ? this.each((typeof e == "function" ? Ee : De)(t, e)) : U(this.node(), t).duration;
|
|
461
442
|
}
|
|
462
|
-
|
|
463
|
-
//#region node_modules/d3-transition/src/transition/ease.js
|
|
443
|
+
// node_modules/d3-transition/src/transition/ease.js
|
|
464
444
|
function ke(e, t) {
|
|
465
445
|
if (typeof t != "function") throw Error();
|
|
466
446
|
return function() {
|
|
@@ -471,8 +451,7 @@ function Ae(e) {
|
|
|
471
451
|
var t = this._id;
|
|
472
452
|
return arguments.length ? this.each(ke(t, e)) : U(this.node(), t).ease;
|
|
473
453
|
}
|
|
474
|
-
|
|
475
|
-
//#region node_modules/d3-transition/src/transition/easeVarying.js
|
|
454
|
+
// node_modules/d3-transition/src/transition/easeVarying.js
|
|
476
455
|
function je(e, t) {
|
|
477
456
|
return function() {
|
|
478
457
|
var n = t.apply(this, arguments);
|
|
@@ -484,23 +463,20 @@ function Me(e) {
|
|
|
484
463
|
if (typeof e != "function") throw Error();
|
|
485
464
|
return this.each(je(this._id, e));
|
|
486
465
|
}
|
|
487
|
-
|
|
488
|
-
//#region node_modules/d3-transition/src/transition/filter.js
|
|
466
|
+
// node_modules/d3-transition/src/transition/filter.js
|
|
489
467
|
function Ne(e) {
|
|
490
|
-
typeof e != "function" && (e =
|
|
491
|
-
for (var
|
|
492
|
-
return new Z(
|
|
468
|
+
typeof e != "function" && (e = a(e));
|
|
469
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var o = t[i], s = o.length, c = r[i] = [], l, u = 0; u < s; ++u) (l = o[u]) && e.call(l, l.__data__, u, o) && c.push(l);
|
|
470
|
+
return new Z(r, this._parents, this._name, this._id);
|
|
493
471
|
}
|
|
494
|
-
|
|
495
|
-
//#region node_modules/d3-transition/src/transition/merge.js
|
|
472
|
+
// node_modules/d3-transition/src/transition/merge.js
|
|
496
473
|
function Pe(e) {
|
|
497
474
|
if (e._id !== this._id) throw Error();
|
|
498
475
|
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
499
476
|
for (; s < r; ++s) o[s] = t[s];
|
|
500
477
|
return new Z(o, this._parents, this._name, this._id);
|
|
501
478
|
}
|
|
502
|
-
|
|
503
|
-
//#region node_modules/d3-transition/src/transition/on.js
|
|
479
|
+
// node_modules/d3-transition/src/transition/on.js
|
|
504
480
|
function Fe(e) {
|
|
505
481
|
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
506
482
|
var t = e.indexOf(".");
|
|
@@ -518,8 +494,7 @@ function Le(e, t) {
|
|
|
518
494
|
var n = this._id;
|
|
519
495
|
return arguments.length < 2 ? U(this.node(), n).on.on(e) : this.each(Ie(n, e, t));
|
|
520
496
|
}
|
|
521
|
-
|
|
522
|
-
//#region node_modules/d3-transition/src/transition/remove.js
|
|
497
|
+
// node_modules/d3-transition/src/transition/remove.js
|
|
523
498
|
function Re(e) {
|
|
524
499
|
return function() {
|
|
525
500
|
var t = this.parentNode;
|
|
@@ -530,38 +505,34 @@ function Re(e) {
|
|
|
530
505
|
function ze() {
|
|
531
506
|
return this.on("end.remove", Re(this._id));
|
|
532
507
|
}
|
|
533
|
-
|
|
534
|
-
//#region node_modules/d3-transition/src/transition/select.js
|
|
508
|
+
// node_modules/d3-transition/src/transition/select.js
|
|
535
509
|
function Be(e) {
|
|
536
510
|
var t = this._name, n = this._id;
|
|
537
511
|
typeof e != "function" && (e = r(e));
|
|
538
512
|
for (var i = this._groups, a = i.length, o = Array(a), s = 0; s < a; ++s) for (var c = i[s], l = c.length, u = o[s] = Array(l), d, f, p = 0; p < l; ++p) (d = c[p]) && (f = e.call(d, d.__data__, p, c)) && ("__data__" in d && (f.__data__ = d.__data__), u[p] = f, B(u[p], t, n, p, u, U(d, n)));
|
|
539
513
|
return new Z(o, this._parents, t, n);
|
|
540
514
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
for (var p = t.call(d, d.__data__, f, l), m, h = U(d, r), g = 0, _ = p.length; g < _; ++g) (m = p[g]) && B(m, n, r, g, p, h);
|
|
515
|
+
// node_modules/d3-transition/src/transition/selectAll.js
|
|
516
|
+
function Ve(e) {
|
|
517
|
+
var t = this._name, n = this._id;
|
|
518
|
+
typeof e != "function" && (e = i(e));
|
|
519
|
+
for (var r = this._groups, a = r.length, o = [], s = [], c = 0; c < a; ++c) for (var l = r[c], u = l.length, d, f = 0; f < u; ++f) if (d = l[f]) {
|
|
520
|
+
for (var p = e.call(d, d.__data__, f, l), m, h = U(d, n), g = 0, _ = p.length; g < _; ++g) (m = p[g]) && B(m, t, n, g, p, h);
|
|
548
521
|
o.push(p), s.push(d);
|
|
549
522
|
}
|
|
550
|
-
return new Z(o, s,
|
|
523
|
+
return new Z(o, s, t, n);
|
|
551
524
|
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
var He = n.prototype.constructor;
|
|
525
|
+
// node_modules/d3-transition/src/transition/selection.js
|
|
526
|
+
var He = e.prototype.constructor;
|
|
555
527
|
function Ue() {
|
|
556
528
|
return new He(this._groups, this._parents);
|
|
557
529
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
var n, r, a;
|
|
530
|
+
// node_modules/d3-transition/src/transition/style.js
|
|
531
|
+
function We(e, n) {
|
|
532
|
+
var r, i, a;
|
|
562
533
|
return function() {
|
|
563
|
-
var o =
|
|
564
|
-
return o === s ? null : o ===
|
|
534
|
+
var o = t(this, e), s = (this.style.removeProperty(e), t(this, e));
|
|
535
|
+
return o === s ? null : o === r && s === i ? a : a = n(r = o, i = s);
|
|
565
536
|
};
|
|
566
537
|
}
|
|
567
538
|
function Y(e) {
|
|
@@ -569,18 +540,18 @@ function Y(e) {
|
|
|
569
540
|
this.style.removeProperty(e);
|
|
570
541
|
};
|
|
571
542
|
}
|
|
572
|
-
function Ge(e,
|
|
573
|
-
var
|
|
543
|
+
function Ge(e, n, r) {
|
|
544
|
+
var i, a = r + "", o;
|
|
574
545
|
return function() {
|
|
575
|
-
var s =
|
|
576
|
-
return s === a ? null : s ===
|
|
546
|
+
var s = t(this, e);
|
|
547
|
+
return s === a ? null : s === i ? o : o = n(i = s, r);
|
|
577
548
|
};
|
|
578
549
|
}
|
|
579
|
-
function Ke(e,
|
|
580
|
-
var
|
|
550
|
+
function Ke(e, n, r) {
|
|
551
|
+
var i, a, o;
|
|
581
552
|
return function() {
|
|
582
|
-
var s =
|
|
583
|
-
return c ?? (l = c = (this.style.removeProperty(e),
|
|
553
|
+
var s = t(this, e), c = r(this), l = c + "";
|
|
554
|
+
return c ?? (l = c = (this.style.removeProperty(e), t(this, e))), s === l ? null : s === i && l === a ? o : (a = l, o = n(i = s, c));
|
|
584
555
|
};
|
|
585
556
|
}
|
|
586
557
|
function qe(e, t) {
|
|
@@ -594,8 +565,7 @@ function Je(e, t, n) {
|
|
|
594
565
|
var r = (e += "") == "transform" ? ie : J;
|
|
595
566
|
return t == null ? this.styleTween(e, We(e, r)).on("end.style." + e, Y(e)) : typeof t == "function" ? this.styleTween(e, Ke(e, r, q(this, "style." + e, t))).each(qe(this._id, e)) : this.styleTween(e, Ge(e, r, t), n).on("end.style." + e, null);
|
|
596
567
|
}
|
|
597
|
-
|
|
598
|
-
//#region node_modules/d3-transition/src/transition/styleTween.js
|
|
568
|
+
// node_modules/d3-transition/src/transition/styleTween.js
|
|
599
569
|
function Ye(e, t, n) {
|
|
600
570
|
return function(r) {
|
|
601
571
|
this.style.setProperty(e, t.call(this, r), n);
|
|
@@ -616,8 +586,7 @@ function Ze(e, t, n) {
|
|
|
616
586
|
if (typeof t != "function") throw Error();
|
|
617
587
|
return this.tween(r, Xe(e, t, n ?? ""));
|
|
618
588
|
}
|
|
619
|
-
|
|
620
|
-
//#region node_modules/d3-transition/src/transition/text.js
|
|
589
|
+
// node_modules/d3-transition/src/transition/text.js
|
|
621
590
|
function X(e) {
|
|
622
591
|
return function() {
|
|
623
592
|
this.textContent = e;
|
|
@@ -632,8 +601,7 @@ function Qe(e) {
|
|
|
632
601
|
function $e(e) {
|
|
633
602
|
return this.tween("text", typeof e == "function" ? Qe(q(this, "text", e)) : X(e == null ? "" : e + ""));
|
|
634
603
|
}
|
|
635
|
-
|
|
636
|
-
//#region node_modules/d3-transition/src/transition/textTween.js
|
|
604
|
+
// node_modules/d3-transition/src/transition/textTween.js
|
|
637
605
|
function et(e) {
|
|
638
606
|
return function(t) {
|
|
639
607
|
this.textContent = e.call(this, t);
|
|
@@ -654,8 +622,7 @@ function nt(e) {
|
|
|
654
622
|
if (typeof e != "function") throw Error();
|
|
655
623
|
return this.tween(t, tt(e));
|
|
656
624
|
}
|
|
657
|
-
|
|
658
|
-
//#region node_modules/d3-transition/src/transition/transition.js
|
|
625
|
+
// node_modules/d3-transition/src/transition/transition.js
|
|
659
626
|
function rt() {
|
|
660
627
|
for (var e = this._name, t = this._id, n = Q(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
|
|
661
628
|
var u = U(c, t);
|
|
@@ -668,8 +635,7 @@ function rt() {
|
|
|
668
635
|
}
|
|
669
636
|
return new Z(r, this._parents, e, n);
|
|
670
637
|
}
|
|
671
|
-
|
|
672
|
-
//#region node_modules/d3-transition/src/transition/end.js
|
|
638
|
+
// node_modules/d3-transition/src/transition/end.js
|
|
673
639
|
function it() {
|
|
674
640
|
var e, t, n = this, r = n._id, i = n.size();
|
|
675
641
|
return new Promise(function(a, o) {
|
|
@@ -682,8 +648,7 @@ function it() {
|
|
|
682
648
|
}), i === 0 && a();
|
|
683
649
|
});
|
|
684
650
|
}
|
|
685
|
-
|
|
686
|
-
//#region node_modules/d3-transition/src/transition/index.js
|
|
651
|
+
// node_modules/d3-transition/src/transition/index.js
|
|
687
652
|
var at = 0;
|
|
688
653
|
function Z(e, t, n, r) {
|
|
689
654
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
@@ -691,7 +656,7 @@ function Z(e, t, n, r) {
|
|
|
691
656
|
function Q() {
|
|
692
657
|
return ++at;
|
|
693
658
|
}
|
|
694
|
-
var $ =
|
|
659
|
+
var $ = e.prototype;
|
|
695
660
|
Z.prototype = {
|
|
696
661
|
constructor: Z,
|
|
697
662
|
select: Be,
|
|
@@ -724,13 +689,11 @@ Z.prototype = {
|
|
|
724
689
|
end: it,
|
|
725
690
|
[Symbol.iterator]: $[Symbol.iterator]
|
|
726
691
|
};
|
|
727
|
-
|
|
728
|
-
//#region node_modules/d3-ease/src/cubic.js
|
|
692
|
+
// node_modules/d3-ease/src/cubic.js
|
|
729
693
|
function ot(e) {
|
|
730
694
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
731
695
|
}
|
|
732
|
-
|
|
733
|
-
//#region node_modules/d3-transition/src/selection/transition.js
|
|
696
|
+
// node_modules/d3-transition/src/selection/transition.js
|
|
734
697
|
var st = {
|
|
735
698
|
time: null,
|
|
736
699
|
delay: 0,
|
|
@@ -747,6 +710,5 @@ function lt(e) {
|
|
|
747
710
|
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && B(c, e, t, l, o, n || ct(c, t));
|
|
748
711
|
return new Z(r, this._parents, e, t);
|
|
749
712
|
}
|
|
750
|
-
|
|
751
|
-
//#endregion
|
|
713
|
+
e.prototype.interrupt = K, e.prototype.transition = lt;
|
|
752
714
|
export { k as n, d as r, G as t };
|