@dpuse/dpuse-tool-d3-visualiser 1.0.112 → 1.0.118
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 +125 -124
- package/dist/{array-Cv4-2llb.js → array-CpxKKsZm.js} +2 -4
- package/dist/{array-Cv4-2llb.js.map → array-CpxKKsZm.js.map} +1 -1
- package/dist/{chordDiagram-BG0jW2g9.js → chordDiagram-Dbu2uT_s.js} +80 -155
- package/dist/{chordDiagram-BG0jW2g9.js.map → chordDiagram-Dbu2uT_s.js.map} +1 -1
- package/dist/dpuse-tool-d3-visualiser.es.js +7 -8
- package/dist/{erdDiagram-CHPY-zaP.js → erdDiagram-DKsqCN08.js} +78 -65
- package/dist/erdDiagram-DKsqCN08.js.map +1 -0
- package/dist/{hierarchy-CDFAetye.js → hierarchy-DU9LihDu.js} +14 -28
- package/dist/{hierarchy-CDFAetye.js.map → hierarchy-DU9LihDu.js.map} +1 -1
- package/dist/{linear-DytAYqu2.js → linear-CNetDix0.js} +37 -72
- package/dist/{linear-DytAYqu2.js.map → linear-CNetDix0.js.map} +1 -1
- package/dist/{link-BfoIl3p5.js → link-CAkrxHYd.js} +4 -6
- package/dist/{link-BfoIl3p5.js.map → link-CAkrxHYd.js.map} +1 -1
- package/dist/{networkDiagram-XI0c9kJR.js → networkDiagram-BiCPMNf8.js} +36 -70
- package/dist/{networkDiagram-XI0c9kJR.js.map → networkDiagram-BiCPMNf8.js.map} +1 -1
- package/dist/{palette-Ca7C6aNE.js → palette-D5DTPmuA.js} +2 -4
- package/dist/{palette-Ca7C6aNE.js.map → palette-D5DTPmuA.js.map} +1 -1
- package/dist/{point-DSPrfIZi.js → point-_U9MxSuk.js} +3 -6
- package/dist/{point-DSPrfIZi.js.map → point-_U9MxSuk.js.map} +1 -1
- package/dist/{sankeyDiagram-w2TGSqb7.js → sankeyDiagram-DcI-D1uh.js} +10 -17
- package/dist/sankeyDiagram-DcI-D1uh.js.map +1 -0
- package/dist/{select-Bs4oiNEZ.js → select-SZKizDc7.js} +48 -94
- package/dist/{select-Bs4oiNEZ.js.map → select-SZKizDc7.js.map} +1 -1
- package/dist/shipped-packages.json +2 -2
- package/dist/{src-Bo8my4B8.js → src-DAMkWOaT.js} +40 -78
- package/dist/{src-Bo8my4B8.js.map → src-DAMkWOaT.js.map} +1 -1
- package/dist/{string-iJh48M7Y.js → string-BzfQLSds.js} +7 -14
- package/dist/{string-iJh48M7Y.js.map → string-BzfQLSds.js.map} +1 -1
- package/dist/{tanStackCharts-LPqRQGD9.js → tanStackCharts-5HHGfe6p.js} +812 -879
- package/dist/tanStackCharts-5HHGfe6p.js.map +1 -0
- package/dist/{treeDiagram-C798R8hL.js → treeDiagram-fmrYqvXl.js} +5 -7
- package/dist/{treeDiagram-C798R8hL.js.map → treeDiagram-fmrYqvXl.js.map} +1 -1
- package/package.json +16 -15
- package/dist/erdDiagram-CHPY-zaP.js.map +0 -1
- package/dist/sankeyDiagram-w2TGSqb7.js.map +0 -1
- package/dist/tanStackCharts-LPqRQGD9.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-CAkrxHYd.js","names":["x","pointX","y","pointY","constant","slice","constant_default","x","Bump","context","y","bumpX","linkSource","d","linkTarget","link","source","target","x$1","y$1","output","path","withPath","buffer","argv","s","t","curve","_","linkHorizontal"],"sources":["../node_modules/d3-shape/src/curve/bump.js","../node_modules/d3-shape/src/link.js"],"sourcesContent":["import pointRadial from \"../pointRadial.js\";\n\nclass Bump {\n constructor(context, x) {\n this._context = context;\n this._x = x;\n }\n areaStart() {\n this._line = 0;\n }\n areaEnd() {\n this._line = NaN;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n }\n point(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: {\n this._point = 1;\n if (this._line) this._context.lineTo(x, y);\n else this._context.moveTo(x, y);\n break;\n }\n case 1: this._point = 2; // falls through\n default: {\n if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);\n else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);\n break;\n }\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nclass BumpRadial {\n constructor(context) {\n this._context = context;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {}\n point(x, y) {\n x = +x, y = +y;\n if (this._point === 0) {\n this._point = 1;\n } else {\n const p0 = pointRadial(this._x0, this._y0);\n const p1 = pointRadial(this._x0, this._y0 = (this._y0 + y) / 2);\n const p2 = pointRadial(x, this._y0);\n const p3 = pointRadial(x, y);\n this._context.moveTo(...p0);\n this._context.bezierCurveTo(...p1, ...p2, ...p3);\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nexport function bumpX(context) {\n return new Bump(context, true);\n}\n\nexport function bumpY(context) {\n return new Bump(context, false);\n}\n\nexport function bumpRadial(context) {\n return new BumpRadial(context);\n}\n","import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport {bumpX, bumpY, bumpRadial} from \"./curve/bump.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nexport function link(curve) {\n let source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null,\n output = null,\n path = withPath(link);\n\n function link() {\n let buffer;\n const argv = slice.call(arguments);\n const s = source.apply(this, argv);\n const t = target.apply(this, argv);\n if (context == null) output = curve(buffer = path());\n output.lineStart();\n argv[0] = s, output.point(+x.apply(this, argv), +y.apply(this, argv));\n argv[0] = t, output.point(+x.apply(this, argv), +y.apply(this, argv));\n output.lineEnd();\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), link) : context;\n };\n\n return link;\n}\n\nexport function linkHorizontal() {\n return link(bumpX);\n}\n\nexport function linkVertical() {\n return link(bumpY);\n}\n\nexport function linkRadial() {\n const l = link(bumpRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n"],"ignoreList":[0,1],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./src-
|
|
2
|
-
import { t as r } from "./select-
|
|
3
|
-
|
|
1
|
+
import { n as e, r as t, t as n } from "./src-DAMkWOaT.js";
|
|
2
|
+
import { t as r } from "./select-SZKizDc7.js";
|
|
3
|
+
// node_modules/d3-force/src/center.js
|
|
4
4
|
function i(e, t) {
|
|
5
5
|
var n, r = 1;
|
|
6
6
|
e ??= 0, t ??= 0;
|
|
@@ -19,8 +19,7 @@ function i(e, t) {
|
|
|
19
19
|
return arguments.length ? (r = +e, i) : r;
|
|
20
20
|
}, i;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
//#region node_modules/d3-quadtree/src/add.js
|
|
22
|
+
// node_modules/d3-quadtree/src/add.js
|
|
24
23
|
function a(e) {
|
|
25
24
|
let t = +this._x.call(null, e), n = +this._y.call(null, e);
|
|
26
25
|
return o(this.cover(t, n), t, n, e);
|
|
@@ -53,8 +52,7 @@ function s(e) {
|
|
|
53
52
|
for (this.cover(l, u).cover(d, f), n = 0; n < r; ++n) o(this, s[n], c[n], e[n]);
|
|
54
53
|
return this;
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
//#region node_modules/d3-quadtree/src/cover.js
|
|
55
|
+
// node_modules/d3-quadtree/src/cover.js
|
|
58
56
|
function c(e, t) {
|
|
59
57
|
if (isNaN(e = +e) || isNaN(t = +t)) return this;
|
|
60
58
|
var n = this._x0, r = this._y0, i = this._x1, a = this._y1;
|
|
@@ -81,8 +79,7 @@ function c(e, t) {
|
|
|
81
79
|
}
|
|
82
80
|
return this._x0 = n, this._y0 = r, this._x1 = i, this._y1 = a, this;
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
//#region node_modules/d3-quadtree/src/data.js
|
|
82
|
+
// node_modules/d3-quadtree/src/data.js
|
|
86
83
|
function l() {
|
|
87
84
|
var e = [];
|
|
88
85
|
return this.visit(function(t) {
|
|
@@ -91,18 +88,15 @@ function l() {
|
|
|
91
88
|
while (t = t.next);
|
|
92
89
|
}), e;
|
|
93
90
|
}
|
|
94
|
-
|
|
95
|
-
//#region node_modules/d3-quadtree/src/extent.js
|
|
91
|
+
// node_modules/d3-quadtree/src/extent.js
|
|
96
92
|
function u(e) {
|
|
97
93
|
return arguments.length ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
|
|
98
94
|
}
|
|
99
|
-
|
|
100
|
-
//#region node_modules/d3-quadtree/src/quad.js
|
|
95
|
+
// node_modules/d3-quadtree/src/quad.js
|
|
101
96
|
function d(e, t, n, r, i) {
|
|
102
97
|
this.node = e, this.x0 = t, this.y0 = n, this.x1 = r, this.y1 = i;
|
|
103
98
|
}
|
|
104
|
-
|
|
105
|
-
//#region node_modules/d3-quadtree/src/find.js
|
|
99
|
+
// node_modules/d3-quadtree/src/find.js
|
|
106
100
|
function f(e, t, n) {
|
|
107
101
|
var r, i = this._x0, a = this._y0, o, s, c, l, u = this._x1, f = this._y1, p = [], m = this._root, h, g;
|
|
108
102
|
for (m && p.push(new d(m, i, a, u, f)), n == null ? n = Infinity : (i = e - n, a = t - n, u = e + n, f = t + n, n *= n); h = p.pop();) if (!(!(m = h.node) || (o = h.x0) > u || (s = h.y0) > f || (c = h.x1) < i || (l = h.y1) < a)) {
|
|
@@ -119,8 +113,7 @@ function f(e, t, n) {
|
|
|
119
113
|
}
|
|
120
114
|
return r;
|
|
121
115
|
}
|
|
122
|
-
|
|
123
|
-
//#region node_modules/d3-quadtree/src/remove.js
|
|
116
|
+
// node_modules/d3-quadtree/src/remove.js
|
|
124
117
|
function p(e) {
|
|
125
118
|
if (isNaN(u = +this._x.call(null, e)) || isNaN(d = +this._y.call(null, e))) return this;
|
|
126
119
|
var t, n = this._root, r, i, a, o = this._x0, s = this._y0, c = this._x1, l = this._y1, u, d, f, p, m, h, g, _;
|
|
@@ -137,13 +130,11 @@ function m(e) {
|
|
|
137
130
|
for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t]);
|
|
138
131
|
return this;
|
|
139
132
|
}
|
|
140
|
-
|
|
141
|
-
//#region node_modules/d3-quadtree/src/root.js
|
|
133
|
+
// node_modules/d3-quadtree/src/root.js
|
|
142
134
|
function h() {
|
|
143
135
|
return this._root;
|
|
144
136
|
}
|
|
145
|
-
|
|
146
|
-
//#region node_modules/d3-quadtree/src/size.js
|
|
137
|
+
// node_modules/d3-quadtree/src/size.js
|
|
147
138
|
function g() {
|
|
148
139
|
var e = 0;
|
|
149
140
|
return this.visit(function(t) {
|
|
@@ -152,8 +143,7 @@ function g() {
|
|
|
152
143
|
while (t = t.next);
|
|
153
144
|
}), e;
|
|
154
145
|
}
|
|
155
|
-
|
|
156
|
-
//#region node_modules/d3-quadtree/src/visit.js
|
|
146
|
+
// node_modules/d3-quadtree/src/visit.js
|
|
157
147
|
function _(e) {
|
|
158
148
|
var t = [], n, r = this._root, i, a, o, s, c;
|
|
159
149
|
for (r && t.push(new d(r, this._x0, this._y0, this._x1, this._y1)); n = t.pop();) if (!e(r = n.node, a = n.x0, o = n.y0, s = n.x1, c = n.y1) && r.length) {
|
|
@@ -162,8 +152,7 @@ function _(e) {
|
|
|
162
152
|
}
|
|
163
153
|
return this;
|
|
164
154
|
}
|
|
165
|
-
|
|
166
|
-
//#region node_modules/d3-quadtree/src/visitAfter.js
|
|
155
|
+
// node_modules/d3-quadtree/src/visitAfter.js
|
|
167
156
|
function v(e) {
|
|
168
157
|
var t = [], n = [], r;
|
|
169
158
|
for (this._root && t.push(new d(this._root, this._x0, this._y0, this._x1, this._y1)); r = t.pop();) {
|
|
@@ -177,24 +166,21 @@ function v(e) {
|
|
|
177
166
|
for (; r = n.pop();) e(r.node, r.x0, r.y0, r.x1, r.y1);
|
|
178
167
|
return this;
|
|
179
168
|
}
|
|
180
|
-
|
|
181
|
-
//#region node_modules/d3-quadtree/src/x.js
|
|
169
|
+
// node_modules/d3-quadtree/src/x.js
|
|
182
170
|
function y(e) {
|
|
183
171
|
return e[0];
|
|
184
172
|
}
|
|
185
173
|
function b(e) {
|
|
186
174
|
return arguments.length ? (this._x = e, this) : this._x;
|
|
187
175
|
}
|
|
188
|
-
|
|
189
|
-
//#region node_modules/d3-quadtree/src/y.js
|
|
176
|
+
// node_modules/d3-quadtree/src/y.js
|
|
190
177
|
function x(e) {
|
|
191
178
|
return e[1];
|
|
192
179
|
}
|
|
193
180
|
function S(e) {
|
|
194
181
|
return arguments.length ? (this._y = e, this) : this._y;
|
|
195
182
|
}
|
|
196
|
-
|
|
197
|
-
//#region node_modules/d3-quadtree/src/quadtree.js
|
|
183
|
+
// node_modules/d3-quadtree/src/quadtree.js
|
|
198
184
|
function C(e, t, n) {
|
|
199
185
|
var r = new w(t ?? y, n ?? x, NaN, NaN, NaN, NaN);
|
|
200
186
|
return e == null ? r : r.addAll(e);
|
|
@@ -230,20 +216,17 @@ E.copy = function() {
|
|
|
230
216
|
}) : t.target[i] = T(r));
|
|
231
217
|
return e;
|
|
232
218
|
}, E.add = a, E.addAll = s, E.cover = c, E.data = l, E.extent = u, E.find = f, E.remove = p, E.removeAll = m, E.root = h, E.size = g, E.visit = _, E.visitAfter = v, E.x = b, E.y = S;
|
|
233
|
-
|
|
234
|
-
//#region node_modules/d3-force/src/constant.js
|
|
219
|
+
// node_modules/d3-force/src/constant.js
|
|
235
220
|
function D(e) {
|
|
236
221
|
return function() {
|
|
237
222
|
return e;
|
|
238
223
|
};
|
|
239
224
|
}
|
|
240
|
-
|
|
241
|
-
//#region node_modules/d3-force/src/jiggle.js
|
|
225
|
+
// node_modules/d3-force/src/jiggle.js
|
|
242
226
|
function O(e) {
|
|
243
227
|
return (e() - .5) * 1e-6;
|
|
244
228
|
}
|
|
245
|
-
|
|
246
|
-
//#region node_modules/d3-force/src/link.js
|
|
229
|
+
// node_modules/d3-force/src/link.js
|
|
247
230
|
function k(e) {
|
|
248
231
|
return e.index;
|
|
249
232
|
}
|
|
@@ -289,15 +272,13 @@ function j(e) {
|
|
|
289
272
|
return arguments.length ? (i = typeof e == "function" ? e : D(+e), h(), f) : i;
|
|
290
273
|
}, f;
|
|
291
274
|
}
|
|
292
|
-
|
|
293
|
-
//#region node_modules/d3-force/src/lcg.js
|
|
275
|
+
// node_modules/d3-force/src/lcg.js
|
|
294
276
|
var M = 1664525, ee = 1013904223, N = 4294967296;
|
|
295
277
|
function te() {
|
|
296
278
|
let e = 1;
|
|
297
279
|
return () => (e = (M * e + ee) % N) / N;
|
|
298
280
|
}
|
|
299
|
-
|
|
300
|
-
//#region node_modules/d3-force/src/simulation.js
|
|
281
|
+
// node_modules/d3-force/src/simulation.js
|
|
301
282
|
function ne(e) {
|
|
302
283
|
return e.x;
|
|
303
284
|
}
|
|
@@ -373,8 +354,7 @@ function oe(n) {
|
|
|
373
354
|
}
|
|
374
355
|
};
|
|
375
356
|
}
|
|
376
|
-
|
|
377
|
-
//#region node_modules/d3-force/src/manyBody.js
|
|
357
|
+
// node_modules/d3-force/src/manyBody.js
|
|
378
358
|
function se() {
|
|
379
359
|
var e, t, n, r, i = D(-30), a, o = 1, s = Infinity, c = .81;
|
|
380
360
|
function l(n) {
|
|
@@ -423,15 +403,13 @@ function se() {
|
|
|
423
403
|
return arguments.length ? (c = e * e, l) : Math.sqrt(c);
|
|
424
404
|
}, l;
|
|
425
405
|
}
|
|
426
|
-
|
|
427
|
-
//#region node_modules/d3-selection/src/sourceEvent.js
|
|
406
|
+
// node_modules/d3-selection/src/sourceEvent.js
|
|
428
407
|
function ce(e) {
|
|
429
408
|
let t;
|
|
430
409
|
for (; t = e.sourceEvent;) e = t;
|
|
431
410
|
return e;
|
|
432
411
|
}
|
|
433
|
-
|
|
434
|
-
//#region node_modules/d3-selection/src/pointer.js
|
|
412
|
+
// node_modules/d3-selection/src/pointer.js
|
|
435
413
|
function P(e, t) {
|
|
436
414
|
if (e = ce(e), t === void 0 && (t = e.currentTarget), t) {
|
|
437
415
|
var n = t.ownerSVGElement || t;
|
|
@@ -446,8 +424,7 @@ function P(e, t) {
|
|
|
446
424
|
}
|
|
447
425
|
return [e.pageX, e.pageY];
|
|
448
426
|
}
|
|
449
|
-
|
|
450
|
-
//#region node_modules/d3-interpolate/src/zoom.js
|
|
427
|
+
// node_modules/d3-interpolate/src/zoom.js
|
|
451
428
|
var le = 1e-12;
|
|
452
429
|
function F(e) {
|
|
453
430
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
@@ -495,8 +472,7 @@ function L(e) {
|
|
|
495
472
|
function R(e) {
|
|
496
473
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
497
474
|
}
|
|
498
|
-
|
|
499
|
-
//#region node_modules/d3-drag/src/nodrag.js
|
|
475
|
+
// node_modules/d3-drag/src/nodrag.js
|
|
500
476
|
function z(e) {
|
|
501
477
|
var t = e.document.documentElement, n = r(e).on("dragstart.drag", R, I);
|
|
502
478
|
"onselectstart" in t ? n.on("selectstart.drag", R, I) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
@@ -507,11 +483,9 @@ function B(e, t) {
|
|
|
507
483
|
i.on("click.drag", null);
|
|
508
484
|
}, 0)), "onselectstart" in n ? i.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
|
509
485
|
}
|
|
510
|
-
|
|
511
|
-
//#region node_modules/d3-drag/src/constant.js
|
|
486
|
+
// node_modules/d3-drag/src/constant.js
|
|
512
487
|
var V = (e) => () => e;
|
|
513
|
-
|
|
514
|
-
//#region node_modules/d3-drag/src/event.js
|
|
488
|
+
// node_modules/d3-drag/src/event.js
|
|
515
489
|
function H(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
|
|
516
490
|
Object.defineProperties(this, {
|
|
517
491
|
type: {
|
|
@@ -571,8 +545,7 @@ H.prototype.on = function() {
|
|
|
571
545
|
var e = this._.on.apply(this._, arguments);
|
|
572
546
|
return e === this._ ? this : e;
|
|
573
547
|
};
|
|
574
|
-
|
|
575
|
-
//#region node_modules/d3-drag/src/drag.js
|
|
548
|
+
// node_modules/d3-drag/src/drag.js
|
|
576
549
|
function me(e) {
|
|
577
550
|
return !e.ctrlKey && !e.button;
|
|
578
551
|
}
|
|
@@ -671,11 +644,9 @@ function ve() {
|
|
|
671
644
|
return arguments.length ? (p = (e = +e) * e, m) : Math.sqrt(p);
|
|
672
645
|
}, m;
|
|
673
646
|
}
|
|
674
|
-
|
|
675
|
-
//#region node_modules/d3-zoom/src/constant.js
|
|
647
|
+
// node_modules/d3-zoom/src/constant.js
|
|
676
648
|
var U = (e) => () => e;
|
|
677
|
-
|
|
678
|
-
//#region node_modules/d3-zoom/src/event.js
|
|
649
|
+
// node_modules/d3-zoom/src/event.js
|
|
679
650
|
function ye(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
|
|
680
651
|
Object.defineProperties(this, {
|
|
681
652
|
type: {
|
|
@@ -701,8 +672,7 @@ function ye(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
|
|
|
701
672
|
_: { value: i }
|
|
702
673
|
});
|
|
703
674
|
}
|
|
704
|
-
|
|
705
|
-
//#region node_modules/d3-zoom/src/transform.js
|
|
675
|
+
// node_modules/d3-zoom/src/transform.js
|
|
706
676
|
function W(e, t, n) {
|
|
707
677
|
this.k = e, this.x = t, this.y = n;
|
|
708
678
|
}
|
|
@@ -748,16 +718,14 @@ function be(e) {
|
|
|
748
718
|
for (; !e.__zoom;) if (!(e = e.parentNode)) return G;
|
|
749
719
|
return e.__zoom;
|
|
750
720
|
}
|
|
751
|
-
|
|
752
|
-
//#region node_modules/d3-zoom/src/noevent.js
|
|
721
|
+
// node_modules/d3-zoom/src/noevent.js
|
|
753
722
|
function K(e) {
|
|
754
723
|
e.stopImmediatePropagation();
|
|
755
724
|
}
|
|
756
725
|
function q(e) {
|
|
757
726
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
758
727
|
}
|
|
759
|
-
|
|
760
|
-
//#region node_modules/d3-zoom/src/zoom.js
|
|
728
|
+
// node_modules/d3-zoom/src/zoom.js
|
|
761
729
|
function xe(e) {
|
|
762
730
|
return (!e.ctrlKey || e.type === "wheel") && !e.button;
|
|
763
731
|
}
|
|
@@ -961,8 +929,7 @@ function Te() {
|
|
|
961
929
|
return arguments.length ? (y = +e, b) : y;
|
|
962
930
|
}, b;
|
|
963
931
|
}
|
|
964
|
-
|
|
965
|
-
//#region src/networkDiagram.ts
|
|
932
|
+
// src/networkDiagram.ts
|
|
966
933
|
var Ee = -300, De = 100, X = 640, Z = 480, Oe = 180, Q = 20, ke = 22, $ = {
|
|
967
934
|
linkStroke: "#9ca3af",
|
|
968
935
|
nodeFill: "#2563eb",
|
|
@@ -1025,5 +992,4 @@ function Ae(e, t, n = {}) {
|
|
|
1025
992
|
}
|
|
1026
993
|
};
|
|
1027
994
|
}
|
|
1028
|
-
//#endregion
|
|
1029
995
|
export { Ae as renderNetworkDiagram };
|