@dpuse/dpuse-tool-d3-visualiser 1.0.118 → 1.0.122

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.
Files changed (38) hide show
  1. package/README.md +205 -243
  2. package/dist/chordDiagram-Cm91Tmgo.js +1729 -0
  3. package/dist/d3-hierarchy-Dtx4jD78.js +269 -0
  4. package/dist/{linear-CNetDix0.js → d3-scale-BYykLEPO.js} +238 -177
  5. package/dist/{select-SZKizDc7.js → d3-selection-CL8c_tE2.js} +230 -232
  6. package/dist/d3-shape-gf8U18pS.js +1133 -0
  7. package/dist/dpuse-tool-d3-visualiser.es.js +6 -6
  8. package/dist/{erdDiagram-DKsqCN08.js → erdDiagram-DmYSx8Dh.js} +1 -1
  9. package/dist/{networkDiagram-BiCPMNf8.js → networkDiagram-UdFs1ySs.js} +385 -368
  10. package/dist/{sankeyDiagram-DcI-D1uh.js → sankeyDiagram-Dbl1-v5p.js} +31 -31
  11. package/dist/shipped-packages.json +11 -20
  12. package/dist/{src-DAMkWOaT.js → src-YHHReglY.js} +32 -32
  13. package/dist/{tanStackCharts-5HHGfe6p.js → tanStackCharts-DEINbmRi.js} +1041 -1096
  14. package/dist/treeDiagram-t0oFwi1c.js +49 -0
  15. package/dist/types/src/networkDiagram.d.ts +4 -0
  16. package/package.json +25 -23
  17. package/dist/array-CpxKKsZm.js +0 -12
  18. package/dist/array-CpxKKsZm.js.map +0 -1
  19. package/dist/chordDiagram-Dbu2uT_s.js +0 -3588
  20. package/dist/chordDiagram-Dbu2uT_s.js.map +0 -1
  21. package/dist/dpuse-tool-d3-visualiser.es.js.map +0 -1
  22. package/dist/erdDiagram-DKsqCN08.js.map +0 -1
  23. package/dist/hierarchy-DU9LihDu.js +0 -135
  24. package/dist/hierarchy-DU9LihDu.js.map +0 -1
  25. package/dist/linear-CNetDix0.js.map +0 -1
  26. package/dist/link-CAkrxHYd.js +0 -62
  27. package/dist/link-CAkrxHYd.js.map +0 -1
  28. package/dist/networkDiagram-BiCPMNf8.js.map +0 -1
  29. package/dist/palette-D5DTPmuA.js.map +0 -1
  30. package/dist/point-_U9MxSuk.js +0 -85
  31. package/dist/point-_U9MxSuk.js.map +0 -1
  32. package/dist/sankeyDiagram-DcI-D1uh.js.map +0 -1
  33. package/dist/select-SZKizDc7.js.map +0 -1
  34. package/dist/src-DAMkWOaT.js.map +0 -1
  35. package/dist/string-BzfQLSds.js.map +0 -1
  36. package/dist/tanStackCharts-5HHGfe6p.js.map +0 -1
  37. package/dist/treeDiagram-fmrYqvXl.js +0 -126
  38. package/dist/treeDiagram-fmrYqvXl.js.map +0 -1
@@ -0,0 +1,269 @@
1
+ // node_modules/d3-hierarchy/dist/d3-hierarchy.mjs
2
+ function e(e) {
3
+ var t = 0, n = e.children, r = n && n.length;
4
+ if (!r) t = 1;
5
+ else for (; --r >= 0;) t += n[r].value;
6
+ e.value = t;
7
+ }
8
+ function t() {
9
+ return this.eachAfter(e);
10
+ }
11
+ function n(e, t) {
12
+ let n = -1;
13
+ for (let r of this) e.call(t, r, ++n, this);
14
+ return this;
15
+ }
16
+ function r(e, t) {
17
+ for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
18
+ return this;
19
+ }
20
+ function i(e, t) {
21
+ for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
22
+ for (; n = i.pop();) e.call(t, n, ++c, this);
23
+ return this;
24
+ }
25
+ function a(e, t) {
26
+ let n = -1;
27
+ for (let r of this) if (e.call(t, r, ++n, this)) return r;
28
+ }
29
+ function o(e) {
30
+ return this.eachAfter(function(t) {
31
+ for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
32
+ t.value = n;
33
+ });
34
+ }
35
+ function s(e) {
36
+ return this.eachBefore(function(t) {
37
+ t.children && t.children.sort(e);
38
+ });
39
+ }
40
+ function c(e) {
41
+ for (var t = this, n = l(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
42
+ for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
43
+ return r;
44
+ }
45
+ function l(e, t) {
46
+ if (e === t) return e;
47
+ var n = e.ancestors(), r = t.ancestors(), i = null;
48
+ for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
49
+ return i;
50
+ }
51
+ function u() {
52
+ for (var e = this, t = [e]; e = e.parent;) t.push(e);
53
+ return t;
54
+ }
55
+ function d() {
56
+ return Array.from(this);
57
+ }
58
+ function f() {
59
+ var e = [];
60
+ return this.eachBefore(function(t) {
61
+ t.children || e.push(t);
62
+ }), e;
63
+ }
64
+ function p() {
65
+ var e = this, t = [];
66
+ return e.each(function(n) {
67
+ n !== e && t.push({
68
+ source: n.parent,
69
+ target: n
70
+ });
71
+ }), t;
72
+ }
73
+ function* m() {
74
+ var e = this, t, n = [e], r, i, a;
75
+ do
76
+ for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
77
+ while (n.length);
78
+ }
79
+ function h(e, t) {
80
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = v)) : t === void 0 && (t = _);
81
+ for (var n = new x(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new x(o[s])), a.parent = r, a.depth = r.depth + 1;
82
+ return n.eachBefore(b);
83
+ }
84
+ function g() {
85
+ return h(this).eachBefore(y);
86
+ }
87
+ function _(e) {
88
+ return e.children;
89
+ }
90
+ function v(e) {
91
+ return Array.isArray(e) ? e[1] : null;
92
+ }
93
+ function y(e) {
94
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
95
+ }
96
+ function b(e) {
97
+ var t = 0;
98
+ do
99
+ e.height = t;
100
+ while ((e = e.parent) && e.height < ++t);
101
+ }
102
+ function x(e) {
103
+ this.data = e, this.depth = this.height = 0, this.parent = null;
104
+ }
105
+ x.prototype = h.prototype = {
106
+ constructor: x,
107
+ count: t,
108
+ each: n,
109
+ eachAfter: i,
110
+ eachBefore: r,
111
+ find: a,
112
+ sum: o,
113
+ sort: s,
114
+ path: c,
115
+ ancestors: u,
116
+ descendants: d,
117
+ leaves: f,
118
+ links: p,
119
+ copy: g,
120
+ [Symbol.iterator]: m
121
+ };
122
+ function S(e) {
123
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
124
+ }
125
+ function C(e, t, n, r, i) {
126
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
127
+ }
128
+ function w() {
129
+ var e = 1, t = 1, n = 0, r = !1;
130
+ function i(i) {
131
+ var o = i.height + 1;
132
+ return i.x0 = i.y0 = n, i.x1 = e, i.y1 = t / o, i.eachBefore(a(t, o)), r && i.eachBefore(S), i;
133
+ }
134
+ function a(e, t) {
135
+ return function(r) {
136
+ r.children && C(r, r.x0, e * (r.depth + 1) / t, r.x1, e * (r.depth + 2) / t);
137
+ var i = r.x0, a = r.y0, o = r.x1 - n, s = r.y1 - n;
138
+ o < i && (i = o = (i + o) / 2), s < a && (a = s = (a + s) / 2), r.x0 = i, r.y0 = a, r.x1 = o, r.y1 = s;
139
+ };
140
+ }
141
+ return i.round = function(e) {
142
+ return arguments.length ? (r = !!e, i) : r;
143
+ }, i.size = function(n) {
144
+ return arguments.length ? (e = +n[0], t = +n[1], i) : [e, t];
145
+ }, i.padding = function(e) {
146
+ return arguments.length ? (n = +e, i) : n;
147
+ }, i;
148
+ }
149
+ function T(e, t) {
150
+ return e.parent === t.parent ? 1 : 2;
151
+ }
152
+ function E(e) {
153
+ var t = e.children;
154
+ return t ? t[0] : e.t;
155
+ }
156
+ function D(e) {
157
+ var t = e.children;
158
+ return t ? t[t.length - 1] : e.t;
159
+ }
160
+ function O(e, t, n) {
161
+ var r = n / (t.i - e.i);
162
+ t.c -= r, t.s += n, e.c += r, t.z += n, t.m += n;
163
+ }
164
+ function k(e) {
165
+ for (var t = 0, n = 0, r = e.children, i = r.length, a; --i >= 0;) a = r[i], a.z += t, a.m += t, t += a.s + (n += a.c);
166
+ }
167
+ function A(e, t, n) {
168
+ return e.a.parent === t.parent ? e.a : n;
169
+ }
170
+ function j(e, t) {
171
+ this._ = e, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
172
+ }
173
+ j.prototype = Object.create(x.prototype);
174
+ function M(e) {
175
+ for (var t = new j(e, 0), n, r = [t], i, a, o, s; n = r.pop();) if (a = n._.children) for (n.children = Array(s = a.length), o = s - 1; o >= 0; --o) r.push(i = n.children[o] = new j(a[o], o)), i.parent = n;
176
+ return (t.parent = new j(null, 0)).children = [t], t;
177
+ }
178
+ function N() {
179
+ var e = T, t = 1, n = 1, r = null;
180
+ function i(i) {
181
+ var s = M(i);
182
+ if (s.eachAfter(a), s.parent.m = -s.z, s.eachBefore(o), r) i.eachBefore(c);
183
+ else {
184
+ var l = i, u = i, d = i;
185
+ i.eachBefore(function(e) {
186
+ e.x < l.x && (l = e), e.x > u.x && (u = e), e.depth > d.depth && (d = e);
187
+ });
188
+ var f = l === u ? 1 : e(l, u) / 2, p = f - l.x, m = t / (u.x + f + p), h = n / (d.depth || 1);
189
+ i.eachBefore(function(e) {
190
+ e.x = (e.x + p) * m, e.y = e.depth * h;
191
+ });
192
+ }
193
+ return i;
194
+ }
195
+ function a(t) {
196
+ var n = t.children, r = t.parent.children, i = t.i ? r[t.i - 1] : null;
197
+ if (n) {
198
+ k(t);
199
+ var a = (n[0].z + n[n.length - 1].z) / 2;
200
+ i ? (t.z = i.z + e(t._, i._), t.m = t.z - a) : t.z = a;
201
+ } else i && (t.z = i.z + e(t._, i._));
202
+ t.parent.A = s(t, i, t.parent.A || r[0]);
203
+ }
204
+ function o(e) {
205
+ e._.x = e.z + e.parent.m, e.m += e.parent.m;
206
+ }
207
+ function s(t, n, r) {
208
+ if (n) {
209
+ for (var i = t, a = t, o = n, s = i.parent.children[0], c = i.m, l = a.m, u = o.m, d = s.m, f; o = D(o), i = E(i), o && i;) s = E(s), a = D(a), a.a = t, f = o.z + u - i.z - c + e(o._, i._), f > 0 && (O(A(o, t, r), t, f), c += f, l += f), u += o.m, c += i.m, d += s.m, l += a.m;
210
+ o && !D(a) && (a.t = o, a.m += u - l), i && !E(s) && (s.t = i, s.m += c - d, r = t);
211
+ }
212
+ return r;
213
+ }
214
+ function c(e) {
215
+ e.x *= t, e.y = e.depth * n;
216
+ }
217
+ return i.separation = function(t) {
218
+ return arguments.length ? (e = t, i) : e;
219
+ }, i.size = function(e) {
220
+ return arguments.length ? (r = !1, t = +e[0], n = +e[1], i) : r ? null : [t, n];
221
+ }, i.nodeSize = function(e) {
222
+ return arguments.length ? (r = !0, t = +e[0], n = +e[1], i) : r ? [t, n] : null;
223
+ }, i;
224
+ }
225
+ function P(e, t, n, r, i) {
226
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
227
+ }
228
+ var F = (1 + Math.sqrt(5)) / 2;
229
+ function I(e, t, n, r, i, a) {
230
+ for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
231
+ p = i - n, m = a - r;
232
+ do
233
+ g = s[d++].value;
234
+ while (!g && d < f);
235
+ for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
236
+ if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
237
+ g -= l;
238
+ break;
239
+ }
240
+ b = y;
241
+ }
242
+ o.push(c = {
243
+ value: g,
244
+ dice: p < m,
245
+ children: s.slice(u, d)
246
+ }), c.dice ? C(c, n, r, i, h ? r += m * g / h : a) : P(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
247
+ }
248
+ return o;
249
+ }
250
+ (function e(t) {
251
+ function n(e, n, r, i, a) {
252
+ I(t, e, n, r, i, a);
253
+ }
254
+ return n.ratio = function(t) {
255
+ return e((t = +t) > 1 ? t : 1);
256
+ }, n;
257
+ })(F), (function e(t) {
258
+ function n(e, n, r, i, a) {
259
+ if ((o = e._squarify) && o.ratio === t) for (var o, s, c, l, u = -1, d, f = o.length, p = e.value; ++u < f;) {
260
+ for (s = o[u], c = s.children, l = s.value = 0, d = c.length; l < d; ++l) s.value += c[l].value;
261
+ s.dice ? C(s, n, r, i, p ? r += (a - r) * s.value / p : a) : P(s, n, r, p ? n += (i - n) * s.value / p : i, a), p -= s.value;
262
+ }
263
+ else e._squarify = o = I(t, e, n, r, i, a), o.ratio = t;
264
+ }
265
+ return n.ratio = function(t) {
266
+ return e((t = +t) > 1 ? t : 1);
267
+ }, n;
268
+ })(F);
269
+ export { w as n, N as r, h as t };