@dpuse/dpuse-tool-d3-visualiser 1.0.123 → 1.0.125

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 CHANGED
@@ -238,17 +238,17 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
238
238
 
239
239
  | Chunk/Module/File | Composition |
240
240
  | :------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
241
- | **All 14 files** | 412.8 kB · gzip 121.7 kB |
242
- | **dist/tanStackCharts-DEINbmRi.js** | 125.4 kB · gzip 36.7 kB · 30.4% of the build |
241
+ | **All 14 files** | 413.2 kB · gzip 121.8 kB |
242
+ | **dist/tanStackCharts-DEINbmRi.js** | 125.4 kB · gzip 36.7 kB · 30.3% of the build |
243
243
  |     @tanstack/charts → dist/scene.js + 41 more | `██████████████████░░` 90.1% · 113.0 kB |
244
244
  |     d3-scale → src/band.js + 2 more | `░░░░░░░░░░░░░░░░░░░░` 1.7% · 2.1 kB |
245
245
  |     src → tanStackCharts.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% · 717 B |
246
246
  |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 7.7% · 9.6 kB |
247
- | **dist/erdDiagram-DmYSx8Dh.js** | 63.4 kB · gzip 18.4 kB · 15.4% of the build |
247
+ | **dist/erdDiagram-DmYSx8Dh.js** | 63.4 kB · gzip 18.4 kB · 15.3% of the build |
248
248
  |     @dagrejs/dagre → dist/dagre.esm.js | `██████████████████░░` 88.3% · 56.0 kB |
249
249
  |     src → erdDiagram.ts | `█░░░░░░░░░░░░░░░░░░░` 5.4% · 3.4 kB |
250
250
  |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 6.3% · 4.0 kB |
251
- | **dist/chordDiagram-Cm91Tmgo.js** | 56.8 kB · gzip 17.7 kB · 13.8% of the build |
251
+ | **dist/chordDiagram-Cm91Tmgo.js** | 56.8 kB · gzip 17.7 kB · 13.7% of the build |
252
252
  |     @unovis/ts → components/chord-diagram/index.js + 36 more | `██████████████░░░░░░` 71.0% · 40.3 kB |
253
253
  |     stylis → src/Parser.js + 5 more | `██░░░░░░░░░░░░░░░░░░` 8.4% · 4.8 kB |
254
254
  |     d3-chord → dist/d3-chord.mjs | `█░░░░░░░░░░░░░░░░░░░` 4.2% · 2.4 kB |
@@ -256,13 +256,13 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
256
256
  |     src → chordDiagram.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 494 B |
257
257
  |     d3-array → src/group.js + 1 more | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 487 B |
258
258
  |     (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 13.5% · 7.6 kB |
259
- | **dist/networkDiagram-LVvHZcSF.js** | 41.3 kB · gzip 12.6 kB · 10.0% of the build |
260
- |     d3-zoom → dist/d3-zoom.mjs | `█████░░░░░░░░░░░░░░░` 26.0% · 10.7 kB |
261
- |     src → networkDiagram.ts | `████░░░░░░░░░░░░░░░░` 20.5% · 8.4 kB |
262
- |     d3-force → dist/d3-force.mjs | `████░░░░░░░░░░░░░░░░` 18.5% · 7.6 kB |
263
- |     d3-quadtree → src/add.js + 13 more | `███░░░░░░░░░░░░░░░░░` 15.0% · 6.2 kB |
264
- |     d3-drag → dist/d3-drag.mjs | `██░░░░░░░░░░░░░░░░░░` 10.4% · 4.3 kB |
265
- |     d3-interpolate → src/zoom.js | `░░░░░░░░░░░░░░░░░░░░` 2.4% · 1004 B |
259
+ | **dist/networkDiagram-8p48XDwY.js** | 41.7 kB · gzip 12.6 kB · 10.1% of the build |
260
+ |     d3-zoom → dist/d3-zoom.mjs | `█████░░░░░░░░░░░░░░░` 25.8% · 10.7 kB |
261
+ |     src → networkDiagram.ts | `████░░░░░░░░░░░░░░░░` 21.2% · 8.8 kB |
262
+ |     d3-force → dist/d3-force.mjs | `████░░░░░░░░░░░░░░░░` 18.3% · 7.6 kB |
263
+ |     d3-quadtree → src/add.js + 13 more | `███░░░░░░░░░░░░░░░░░` 14.9% · 6.2 kB |
264
+ |     d3-drag → dist/d3-drag.mjs | `██░░░░░░░░░░░░░░░░░░` 10.3% · 4.3 kB |
265
+ |     d3-interpolate → src/zoom.js | `░░░░░░░░░░░░░░░░░░░░` 2.4% · 1007 B |
266
266
  |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 7.2% · 3.0 kB |
267
267
  | **dist/d3-shape-gf8U18pS.js** | 36.9 kB · gzip 7.9 kB · 8.9% of the build |
268
268
  |     d3-shape → dist/d3-shape.mjs | `█████████████████░░░` 86.2% · 31.8 kB |
@@ -32,7 +32,7 @@ var e = class {
32
32
  };
33
33
  }
34
34
  async renderNetworkDiagram(e, t, n, r) {
35
- let { renderNetworkDiagram: i } = await import("./networkDiagram-LVvHZcSF.js"), a = i(e, t, n);
35
+ let { renderNetworkDiagram: i } = await import("./networkDiagram-8p48XDwY.js"), a = i(e, t, n);
36
36
  return r?.(), {
37
37
  destroy: a.destroy,
38
38
  resize: a.resize,
@@ -440,16 +440,16 @@ function de() {
440
440
  }
441
441
  // node_modules/d3-interpolate/src/zoom.js
442
442
  var fe = 1e-12;
443
- function P(e) {
443
+ function pe(e) {
444
444
  return ((e = Math.exp(e)) + 1 / e) / 2;
445
445
  }
446
- function pe(e) {
446
+ function me(e) {
447
447
  return ((e = Math.exp(e)) - 1 / e) / 2;
448
448
  }
449
- function me(e) {
449
+ function he(e) {
450
450
  return ((e = Math.exp(2 * e)) - 1) / (e + 1);
451
451
  }
452
- var he = (function e(t, n, r) {
452
+ var ge = (function e(t, n, r) {
453
453
  function i(e, i) {
454
454
  var a = e[0], o = e[1], s = e[2], c = i[0], l = i[1], u = i[2], d = c - a, f = l - o, p = d * d + f * f, m, h;
455
455
  if (p < fe) h = Math.log(u / s) / t, m = function(e) {
@@ -462,11 +462,11 @@ var he = (function e(t, n, r) {
462
462
  else {
463
463
  var g = Math.sqrt(p), _ = (u * u - s * s + r * p) / (2 * s * n * g), v = (u * u - s * s - r * p) / (2 * u * n * g), y = Math.log(Math.sqrt(_ * _ + 1) - _);
464
464
  h = (Math.log(Math.sqrt(v * v + 1) - v) - y) / t, m = function(e) {
465
- var r = e * h, i = P(y), c = s / (n * g) * (i * me(t * r + y) - pe(y));
465
+ var r = e * h, i = pe(y), c = s / (n * g) * (i * he(t * r + y) - me(y));
466
466
  return [
467
467
  a + c * d,
468
468
  o + c * f,
469
- s * i / P(t * r + y)
469
+ s * i / pe(t * r + y)
470
470
  ];
471
471
  };
472
472
  }
@@ -476,28 +476,28 @@ var he = (function e(t, n, r) {
476
476
  var n = Math.max(.001, +t), r = n * n;
477
477
  return e(n, r, r * r);
478
478
  }, i;
479
- })(Math.SQRT2, 2, 4), ge = { passive: !1 }, F = {
479
+ })(Math.SQRT2, 2, 4), _e = { passive: !1 }, P = {
480
480
  capture: !0,
481
481
  passive: !1
482
482
  };
483
- function I(e) {
483
+ function F(e) {
484
484
  e.stopImmediatePropagation();
485
485
  }
486
- function L(e) {
486
+ function I(e) {
487
487
  e.preventDefault(), e.stopImmediatePropagation();
488
488
  }
489
- function _e(e) {
490
- var t = e.document.documentElement, n = r(e).on("dragstart.drag", L, F);
491
- "onselectstart" in t ? n.on("selectstart.drag", L, F) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
489
+ function ve(e) {
490
+ var t = e.document.documentElement, n = r(e).on("dragstart.drag", I, P);
491
+ "onselectstart" in t ? n.on("selectstart.drag", I, P) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
492
492
  }
493
- function ve(e, t) {
493
+ function ye(e, t) {
494
494
  var n = e.document.documentElement, i = r(e).on("dragstart.drag", null);
495
- t && (i.on("click.drag", L, F), setTimeout(function() {
495
+ t && (i.on("click.drag", I, P), setTimeout(function() {
496
496
  i.on("click.drag", null);
497
497
  }, 0)), "onselectstart" in n ? i.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
498
498
  }
499
- var R = (e) => () => e;
500
- function z(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
499
+ var L = (e) => () => e;
500
+ function R(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
501
501
  Object.defineProperties(this, {
502
502
  type: {
503
503
  value: e,
@@ -552,61 +552,61 @@ function z(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a,
552
552
  _: { value: u }
553
553
  });
554
554
  }
555
- z.prototype.on = function() {
555
+ R.prototype.on = function() {
556
556
  var e = this._.on.apply(this._, arguments);
557
557
  return e === this._ ? this : e;
558
558
  };
559
- function ye(e) {
559
+ function be(e) {
560
560
  return !e.ctrlKey && !e.button;
561
561
  }
562
- function be() {
562
+ function xe() {
563
563
  return this.parentNode;
564
564
  }
565
- function xe(e, t) {
565
+ function Se(e, t) {
566
566
  return t ?? {
567
567
  x: e.x,
568
568
  y: e.y
569
569
  };
570
570
  }
571
- function Se() {
571
+ function Ce() {
572
572
  return navigator.maxTouchPoints || "ontouchstart" in this;
573
573
  }
574
- function Ce() {
575
- var e = ye, n = be, a = xe, o = Se, s = {}, c = t("start", "drag", "end"), l = 0, u, d, f, p, m = 0;
574
+ function we() {
575
+ var e = be, n = xe, a = Se, o = Ce, s = {}, c = t("start", "drag", "end"), l = 0, u, d, f, p, m = 0;
576
576
  function h(e) {
577
- e.on("mousedown.drag", g).filter(o).on("touchstart.drag", y).on("touchmove.drag", b, ge).on("touchend.drag touchcancel.drag", x).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
577
+ e.on("mousedown.drag", g).filter(o).on("touchstart.drag", y).on("touchmove.drag", b, _e).on("touchend.drag touchcancel.drag", x).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
578
578
  }
579
579
  function g(t, i) {
580
580
  if (!p && e.call(this, t, i)) {
581
581
  var a = S(this, n.call(this, t, i), t, i, "mouse");
582
- a && (r(t.view).on("mousemove.drag", _, F).on("mouseup.drag", v, F), _e(t.view), I(t), f = !1, u = t.clientX, d = t.clientY, a("start", t));
582
+ a && (r(t.view).on("mousemove.drag", _, P).on("mouseup.drag", v, P), ve(t.view), F(t), f = !1, u = t.clientX, d = t.clientY, a("start", t));
583
583
  }
584
584
  }
585
585
  function _(e) {
586
- if (L(e), !f) {
586
+ if (I(e), !f) {
587
587
  var t = e.clientX - u, n = e.clientY - d;
588
588
  f = t * t + n * n > m;
589
589
  }
590
590
  s.mouse("drag", e);
591
591
  }
592
592
  function v(e) {
593
- r(e.view).on("mousemove.drag mouseup.drag", null), ve(e.view, f), L(e), s.mouse("end", e);
593
+ r(e.view).on("mousemove.drag mouseup.drag", null), ye(e.view, f), I(e), s.mouse("end", e);
594
594
  }
595
595
  function y(t, r) {
596
- if (e.call(this, t, r)) for (var i = t.changedTouches, a = n.call(this, t, r), o = i.length, s = 0, c; s < o; ++s) (c = S(this, a, t, r, i[s].identifier, i[s])) && (I(t), c("start", t, i[s]));
596
+ if (e.call(this, t, r)) for (var i = t.changedTouches, a = n.call(this, t, r), o = i.length, s = 0, c; s < o; ++s) (c = S(this, a, t, r, i[s].identifier, i[s])) && (F(t), c("start", t, i[s]));
597
597
  }
598
598
  function b(e) {
599
- for (var t = e.changedTouches, n = t.length, r = 0, i; r < n; ++r) (i = s[t[r].identifier]) && (L(e), i("drag", e, t[r]));
599
+ for (var t = e.changedTouches, n = t.length, r = 0, i; r < n; ++r) (i = s[t[r].identifier]) && (I(e), i("drag", e, t[r]));
600
600
  }
601
601
  function x(e) {
602
602
  var t = e.changedTouches, n = t.length, r, i;
603
603
  for (p && clearTimeout(p), p = setTimeout(function() {
604
604
  p = null;
605
- }, 500), r = 0; r < n; ++r) (i = s[t[r].identifier]) && (I(e), i("end", e, t[r]));
605
+ }, 500), r = 0; r < n; ++r) (i = s[t[r].identifier]) && (F(e), i("end", e, t[r]));
606
606
  }
607
607
  function S(e, t, n, r, o, u) {
608
608
  var d = c.copy(), f = i(u || n, t), p, m, g;
609
- if ((g = a.call(e, new z("beforestart", {
609
+ if ((g = a.call(e, new R("beforestart", {
610
610
  sourceEvent: n,
611
611
  target: h,
612
612
  identifier: o,
@@ -625,7 +625,7 @@ function Ce() {
625
625
  case "end": delete s[o], --l;
626
626
  case "drag": f = i(u || c, t), v = l;
627
627
  }
628
- d.call(a, e, new z(a, {
628
+ d.call(a, e, new R(a, {
629
629
  sourceEvent: c,
630
630
  subject: g,
631
631
  target: h,
@@ -640,13 +640,13 @@ function Ce() {
640
640
  };
641
641
  }
642
642
  return h.filter = function(t) {
643
- return arguments.length ? (e = typeof t == "function" ? t : R(!!t), h) : e;
643
+ return arguments.length ? (e = typeof t == "function" ? t : L(!!t), h) : e;
644
644
  }, h.container = function(e) {
645
- return arguments.length ? (n = typeof e == "function" ? e : R(e), h) : n;
645
+ return arguments.length ? (n = typeof e == "function" ? e : L(e), h) : n;
646
646
  }, h.subject = function(e) {
647
- return arguments.length ? (a = typeof e == "function" ? e : R(e), h) : a;
647
+ return arguments.length ? (a = typeof e == "function" ? e : L(e), h) : a;
648
648
  }, h.touchable = function(e) {
649
- return arguments.length ? (o = typeof e == "function" ? e : R(!!e), h) : o;
649
+ return arguments.length ? (o = typeof e == "function" ? e : L(!!e), h) : o;
650
650
  }, h.on = function() {
651
651
  var e = c.on.apply(c, arguments);
652
652
  return e === c ? h : e;
@@ -655,8 +655,8 @@ function Ce() {
655
655
  }, h;
656
656
  }
657
657
  // node_modules/d3-zoom/dist/d3-zoom.mjs
658
- var B = (e) => () => e;
659
- function we(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
658
+ var z = (e) => () => e;
659
+ function Te(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
660
660
  Object.defineProperties(this, {
661
661
  type: {
662
662
  value: e,
@@ -681,16 +681,16 @@ function we(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
681
681
  _: { value: i }
682
682
  });
683
683
  }
684
- function V(e, t, n) {
684
+ function B(e, t, n) {
685
685
  this.k = e, this.x = t, this.y = n;
686
686
  }
687
- V.prototype = {
688
- constructor: V,
687
+ B.prototype = {
688
+ constructor: B,
689
689
  scale: function(e) {
690
- return e === 1 ? this : new V(this.k * e, this.x, this.y);
690
+ return e === 1 ? this : new B(this.k * e, this.x, this.y);
691
691
  },
692
692
  translate: function(e, t) {
693
- return e === 0 & t === 0 ? this : new V(this.k, this.x + this.k * e, this.y + this.k * t);
693
+ return e === 0 & t === 0 ? this : new B(this.k, this.x + this.k * e, this.y + this.k * t);
694
694
  },
695
695
  apply: function(e) {
696
696
  return [e[0] * this.k + this.x, e[1] * this.k + this.y];
@@ -720,46 +720,46 @@ V.prototype = {
720
720
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
721
721
  }
722
722
  };
723
- var H = new V(1, 0, 0);
724
- Te.prototype = V.prototype;
725
- function Te(e) {
726
- for (; !e.__zoom;) if (!(e = e.parentNode)) return H;
723
+ var V = new B(1, 0, 0);
724
+ Ee.prototype = B.prototype;
725
+ function Ee(e) {
726
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return V;
727
727
  return e.__zoom;
728
728
  }
729
- function U(e) {
729
+ function H(e) {
730
730
  e.stopImmediatePropagation();
731
731
  }
732
- function W(e) {
732
+ function U(e) {
733
733
  e.preventDefault(), e.stopImmediatePropagation();
734
734
  }
735
- function Ee(e) {
735
+ function De(e) {
736
736
  return (!e.ctrlKey || e.type === "wheel") && !e.button;
737
737
  }
738
- function De() {
738
+ function Oe() {
739
739
  var e = this;
740
740
  return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
741
741
  }
742
- function Oe() {
743
- return this.__zoom || H;
742
+ function ke() {
743
+ return this.__zoom || V;
744
744
  }
745
- function ke(e) {
745
+ function Ae(e) {
746
746
  return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) * (e.ctrlKey ? 10 : 1);
747
747
  }
748
- function Ae() {
748
+ function je() {
749
749
  return navigator.maxTouchPoints || "ontouchstart" in this;
750
750
  }
751
- function je(e, t, n) {
751
+ function Me(e, t, n) {
752
752
  var r = e.invertX(t[0][0]) - n[0][0], i = e.invertX(t[1][0]) - n[1][0], a = e.invertY(t[0][1]) - n[0][1], o = e.invertY(t[1][1]) - n[1][1];
753
753
  return e.translate(i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), o > a ? (a + o) / 2 : Math.min(0, a) || Math.max(0, o));
754
754
  }
755
- function Me() {
756
- var e = Ee, a = De, o = je, s = ke, c = Ae, l = [0, Infinity], u = [[-Infinity, -Infinity], [Infinity, Infinity]], d = 250, f = he, p = t("start", "zoom", "end"), m, h, g, _ = 500, v = 150, y = 0, b = 10;
755
+ function Ne() {
756
+ var e = De, a = Oe, o = Me, s = Ae, c = je, l = [0, Infinity], u = [[-Infinity, -Infinity], [Infinity, Infinity]], d = 250, f = ge, p = t("start", "zoom", "end"), m, h, g, _ = 500, v = 150, y = 0, b = 10;
757
757
  function x(e) {
758
- e.property("__zoom", Oe).on("wheel.zoom", O, { passive: !1 }).on("mousedown.zoom", k).on("dblclick.zoom", A).filter(c).on("touchstart.zoom", j).on("touchmove.zoom", ee).on("touchend.zoom touchcancel.zoom", M).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
758
+ e.property("__zoom", ke).on("wheel.zoom", O, { passive: !1 }).on("mousedown.zoom", k).on("dblclick.zoom", A).filter(c).on("touchstart.zoom", j).on("touchmove.zoom", ee).on("touchend.zoom touchcancel.zoom", M).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
759
759
  }
760
760
  x.transform = function(e, t, n, r) {
761
761
  var i = e.selection ? e.selection() : e;
762
- i.property("__zoom", Oe), e === i ? i.interrupt().each(function() {
762
+ i.property("__zoom", ke), e === i ? i.interrupt().each(function() {
763
763
  E(this, arguments).event(r).start().zoom(null, typeof t == "function" ? t.apply(this, arguments) : t).end();
764
764
  }) : T(e, t, n, r);
765
765
  }, x.scaleBy = function(e, t, n, r) {
@@ -778,15 +778,15 @@ function Me() {
778
778
  }, x.translateTo = function(e, t, n, r, i) {
779
779
  x.transform(e, function() {
780
780
  var e = a.apply(this, arguments), i = this.__zoom, s = r == null ? w(e) : typeof r == "function" ? r.apply(this, arguments) : r;
781
- return o(H.translate(s[0], s[1]).scale(i.k).translate(typeof t == "function" ? -t.apply(this, arguments) : -t, typeof n == "function" ? -n.apply(this, arguments) : -n), e, u);
781
+ return o(V.translate(s[0], s[1]).scale(i.k).translate(typeof t == "function" ? -t.apply(this, arguments) : -t, typeof n == "function" ? -n.apply(this, arguments) : -n), e, u);
782
782
  }, r, i);
783
783
  };
784
784
  function S(e, t) {
785
- return t = Math.max(l[0], Math.min(l[1], t)), t === e.k ? e : new V(t, e.x, e.y);
785
+ return t = Math.max(l[0], Math.min(l[1], t)), t === e.k ? e : new B(t, e.x, e.y);
786
786
  }
787
787
  function C(e, t, n) {
788
788
  var r = t[0] - n[0] * e.k, i = t[1] - n[1] * e.k;
789
- return r === e.x && i === e.y ? e : new V(e.k, r, i);
789
+ return r === e.x && i === e.y ? e : new B(e.k, r, i);
790
790
  }
791
791
  function w(e) {
792
792
  return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2];
@@ -802,7 +802,7 @@ function Me() {
802
802
  if (e === 1) e = d;
803
803
  else {
804
804
  var t = p(e), n = l / t[2];
805
- e = new V(n, c[0] - t[0] * n, c[1] - t[1] * n);
805
+ e = new B(n, c[0] - t[0] * n, c[1] - t[1] * n);
806
806
  }
807
807
  o.zoom(null, e);
808
808
  };
@@ -829,7 +829,7 @@ function Me() {
829
829
  },
830
830
  emit: function(e) {
831
831
  var t = r(this.that).datum();
832
- p.call(e, this.that, new we(e, {
832
+ p.call(e, this.that, new Te(e, {
833
833
  sourceEvent: this.sourceEvent,
834
834
  target: x,
835
835
  transform: this.that.__zoom,
@@ -843,7 +843,7 @@ function Me() {
843
843
  if (a.wheel) (a.mouse[0][0] !== f[0] || a.mouse[0][1] !== f[1]) && (a.mouse[1] = c.invert(a.mouse[0] = f)), clearTimeout(a.wheel);
844
844
  else if (c.k === d) return;
845
845
  else a.mouse = [f, c.invert(f)], n(this), a.start();
846
- W(t), a.wheel = setTimeout(p, v), a.zoom("mouse", o(C(S(c, d), a.mouse[0], a.mouse[1]), a.extent, u));
846
+ U(t), a.wheel = setTimeout(p, v), a.zoom("mouse", o(C(S(c, d), a.mouse[0], a.mouse[1]), a.extent, u));
847
847
  function p() {
848
848
  a.wheel = null, a.end();
849
849
  }
@@ -851,28 +851,28 @@ function Me() {
851
851
  function k(t, ...a) {
852
852
  if (g || !e.apply(this, arguments)) return;
853
853
  var s = t.currentTarget, c = E(this, a, !0).event(t), l = r(t.view).on("mousemove.zoom", m, !0).on("mouseup.zoom", h, !0), d = i(t, s), f = t.clientX, p = t.clientY;
854
- _e(t.view), U(t), c.mouse = [d, this.__zoom.invert(d)], n(this), c.start();
854
+ ve(t.view), H(t), c.mouse = [d, this.__zoom.invert(d)], n(this), c.start();
855
855
  function m(e) {
856
- if (W(e), !c.moved) {
856
+ if (U(e), !c.moved) {
857
857
  var t = e.clientX - f, n = e.clientY - p;
858
858
  c.moved = t * t + n * n > y;
859
859
  }
860
860
  c.event(e).zoom("mouse", o(C(c.that.__zoom, c.mouse[0] = i(e, s), c.mouse[1]), c.extent, u));
861
861
  }
862
862
  function h(e) {
863
- l.on("mousemove.zoom mouseup.zoom", null), ve(e.view, c.moved), W(e), c.event(e).end();
863
+ l.on("mousemove.zoom mouseup.zoom", null), ye(e.view, c.moved), U(e), c.event(e).end();
864
864
  }
865
865
  }
866
866
  function A(t, ...n) {
867
867
  if (e.apply(this, arguments)) {
868
868
  var s = this.__zoom, c = i(t.changedTouches ? t.changedTouches[0] : t, this), l = s.invert(c), f = s.k * (t.shiftKey ? .5 : 2), p = o(C(S(s, f), c, l), a.apply(this, n), u);
869
- W(t), d > 0 ? r(this).transition().duration(d).call(T, p, c, t) : r(this).call(x.transform, p, c, t);
869
+ U(t), d > 0 ? r(this).transition().duration(d).call(T, p, c, t) : r(this).call(x.transform, p, c, t);
870
870
  }
871
871
  }
872
872
  function j(t, ...r) {
873
873
  if (e.apply(this, arguments)) {
874
874
  var a = t.touches, o = a.length, s = E(this, r, t.changedTouches.length === o).event(t), c, l, u, d;
875
- for (U(t), l = 0; l < o; ++l) u = a[l], d = i(u, this), d = [
875
+ for (H(t), l = 0; l < o; ++l) u = a[l], d = i(u, this), d = [
876
876
  d,
877
877
  this.__zoom.invert(d),
878
878
  u.identifier
@@ -885,7 +885,7 @@ function Me() {
885
885
  function ee(e, ...t) {
886
886
  if (this.__zooming) {
887
887
  var n = E(this, t).event(e), r = e.changedTouches, a = r.length, s, c, l, d;
888
- for (W(e), s = 0; s < a; ++s) c = r[s], l = i(c, this), n.touch0 && n.touch0[2] === c.identifier ? n.touch0[0] = l : n.touch1 && n.touch1[2] === c.identifier && (n.touch1[0] = l);
888
+ for (U(e), s = 0; s < a; ++s) c = r[s], l = i(c, this), n.touch0 && n.touch0[2] === c.identifier ? n.touch0[0] = l : n.touch1 && n.touch1[2] === c.identifier && (n.touch1[0] = l);
889
889
  if (c = n.that.__zoom, n.touch1) {
890
890
  var f = n.touch0[0], p = n.touch0[1], m = n.touch1[0], h = n.touch1[1], g = (g = m[0] - f[0]) * g + (g = m[1] - f[1]) * g, _ = (_ = h[0] - p[0]) * _ + (_ = h[1] - p[1]) * _;
891
891
  c = S(c, Math.sqrt(g / _)), l = [(f[0] + m[0]) / 2, (f[1] + m[1]) / 2], d = [(p[0] + h[0]) / 2, (p[1] + h[1]) / 2];
@@ -897,7 +897,7 @@ function Me() {
897
897
  function M(e, ...t) {
898
898
  if (this.__zooming) {
899
899
  var n = E(this, t).event(e), a = e.changedTouches, o = a.length, s, c;
900
- for (U(e), g && clearTimeout(g), g = setTimeout(function() {
900
+ for (H(e), g && clearTimeout(g), g = setTimeout(function() {
901
901
  g = null;
902
902
  }, _), s = 0; s < o; ++s) c = a[s], n.touch0 && n.touch0[2] === c.identifier ? delete n.touch0 : n.touch1 && n.touch1[2] === c.identifier && delete n.touch1;
903
903
  if (n.touch1 && !n.touch0 && (n.touch0 = n.touch1, delete n.touch1), n.touch0) n.touch0[1] = this.__zoom.invert(n.touch0[0]);
@@ -908,13 +908,13 @@ function Me() {
908
908
  }
909
909
  }
910
910
  return x.wheelDelta = function(e) {
911
- return arguments.length ? (s = typeof e == "function" ? e : B(+e), x) : s;
911
+ return arguments.length ? (s = typeof e == "function" ? e : z(+e), x) : s;
912
912
  }, x.filter = function(t) {
913
- return arguments.length ? (e = typeof t == "function" ? t : B(!!t), x) : e;
913
+ return arguments.length ? (e = typeof t == "function" ? t : z(!!t), x) : e;
914
914
  }, x.touchable = function(e) {
915
- return arguments.length ? (c = typeof e == "function" ? e : B(!!e), x) : c;
915
+ return arguments.length ? (c = typeof e == "function" ? e : z(!!e), x) : c;
916
916
  }, x.extent = function(e) {
917
- return arguments.length ? (a = typeof e == "function" ? e : B([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), x) : a;
917
+ return arguments.length ? (a = typeof e == "function" ? e : z([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), x) : a;
918
918
  }, x.scaleExtent = function(e) {
919
919
  return arguments.length ? (l[0] = +e[0], l[1] = +e[1], x) : [l[0], l[1]];
920
920
  }, x.translateExtent = function(e) {
@@ -935,12 +935,12 @@ function Me() {
935
935
  }, x;
936
936
  }
937
937
  // src/networkDiagram.ts
938
- var Ne = -300, Pe = 100, Fe = 400, G = 640, K = 480, Ie = 180, Le = 1, Re = 2, ze = 14, Be = 70, Ve = 130, He = .25, Ue = 4, We = 12, Ge = 14, Ke = 6.2, qe = 8, Je = .35, Ye = 14, Xe = .6, Ze = 16, Qe = 10, $e = 3, et = 12, q = {
938
+ var Pe = -300, Fe = 100, Ie = 400, W = 640, G = 480, Le = 180, Re = 1, ze = 2, Be = 14, Ve = 70, He = 130, Ue = .25, We = 4, Ge = 12, K = 14, Ke = 6.2, qe = 4, Je = 8, Ye = .35, Xe = 14, Ze = .6, Qe = 16, $e = 10, et = 3, tt = 12, q = {
939
939
  linkStroke: "#9ca3af",
940
940
  nodeFillSelected: "#f59e0b",
941
941
  nodeStrokeSelected: "#b45309",
942
942
  nodeText: "#ffffff"
943
- }, tt = [
943
+ }, nt = [
944
944
  {
945
945
  fill: "#475569",
946
946
  fillHovered: "#64748b",
@@ -977,36 +977,36 @@ var Ne = -300, Pe = 100, Fe = 400, G = 640, K = 480, Ie = 180, Le = 1, Re = 2, z
977
977
  strokeHovered: "#be185d"
978
978
  }
979
979
  ];
980
- function nt(e, t, n = {}) {
981
- let i = n.labelPlacementId ?? "below", a = n.transitionDuration ?? Fe, o = t.clientWidth || G, s = t.clientHeight || K, c = te().id((e) => e.id), l = ue().force("link", c).force("charge", de().strength(n.chargeStrength ?? Ne)).force("center", D(o / 2, s / 2));
982
- n.reservesLabelRoom === !0 && l.force("collide", ee((e) => Z(e).radius + Qe)), l.stop();
980
+ function rt(e, t, n = {}) {
981
+ let i = n.labelPlacementId ?? "below", a = n.transitionDuration ?? Ie, o = t.clientWidth || W, s = t.clientHeight || G, c = te().id((e) => e.id), l = ue().force("link", c).force("charge", de().strength(n.chargeStrength ?? Pe)).force("center", D(o / 2, s / 2));
982
+ n.reservesLabelRoom === !0 && l.force("collide", ee((e) => Z(e).radius + $e)), l.stop();
983
983
  let u = r(t).append("svg").attr("width", o).attr("height", s).attr("viewBox", `0 0 ${String(o)} ${String(s)}`).style("touch-action", "none"), d = u.append("g"), f = d.append("g"), p = d.append("g"), m = u.node();
984
984
  if (m == null) throw Error("Failed to create network diagram SVG element.");
985
985
  let h = e, g = [], _ = [], v = /* @__PURE__ */ new Map(), y, b = null, x = null, S = f.selectAll("line"), C = p.selectAll("g"), w = (e, t) => {
986
986
  let r = v.get(e) ?? [];
987
- if (r.length < $e) return 0;
987
+ if (r.length < et) return 0;
988
988
  let i = 0;
989
989
  for (let e of r) {
990
990
  let r = t.get(e);
991
991
  if (!r) continue;
992
- let a = r.label == null ? 0 : rt(J(r, n.wrapsLabels === !0)) * Xe;
993
- i += Math.max(Z(r).radius * 2, a) + Ze;
992
+ let a = r.label == null ? 0 : it(J(r, n.wrapsLabels === !0)) * Ze;
993
+ i += Math.max(Z(r).radius * 2, a) + Qe;
994
994
  }
995
995
  return i / (Math.PI * 2);
996
996
  };
997
997
  c.distance((e) => {
998
- let t = n.linkDistance ?? Pe;
998
+ let t = n.linkDistance ?? Fe;
999
999
  if (n.reservesLabelRoom !== !0) return t;
1000
1000
  let r = new Map(g.map((e) => [e.id, e]));
1001
1001
  return Math.max(t, w(Y(e.source), r), w(Y(e.target), r));
1002
1002
  });
1003
1003
  let T = () => {
1004
- C.select("circle").attr("fill", (e) => e.id === b ? q.nodeFillSelected : e.id === x ? Z(e).fillHovered : Z(e).fill).attr("stroke", (e) => e.id === b ? q.nodeStrokeSelected : e.id === x ? Z(e).strokeHovered : Z(e).stroke).attr("stroke-width", (e) => e.id === b ? 3 : 2).attr("r", (e) => Z(e).radius + (e.id === b || e.id === x ? Re : 0));
1004
+ C.select("circle").attr("fill", (e) => e.id === b ? q.nodeFillSelected : e.id === x ? Z(e).fillHovered : Z(e).fill).attr("stroke", (e) => e.id === b ? q.nodeStrokeSelected : e.id === x ? Z(e).strokeHovered : Z(e).stroke).attr("stroke-width", (e) => e.id === b ? 3 : 2).attr("r", (e) => Z(e).radius + (e.id === b || e.id === x ? ze : 0));
1005
1005
  };
1006
1006
  u.on("click", () => {
1007
1007
  b = null, T();
1008
1008
  });
1009
- let E = Me().scaleExtent([He, Ue]).on("zoom", (e) => {
1009
+ let E = Ne().scaleExtent([Ue, We]).on("zoom", (e) => {
1010
1010
  d.attr("transform", e.transform.toString());
1011
1011
  });
1012
1012
  u.call(E).on("dblclick.zoom", null);
@@ -1015,7 +1015,7 @@ function nt(e, t, n = {}) {
1015
1015
  let e = new Map(g.map((e) => [e.id, e]));
1016
1016
  C.each((t, a, o) => {
1017
1017
  if (t.label == null) return;
1018
- let s = (v.get(t.id) ?? []).map((t) => e.get(t)).filter((e) => e !== void 0), c = J(t, n.wrapsLabels === !0).length, l = it(t, s, i, c);
1018
+ let s = (v.get(t.id) ?? []).map((t) => e.get(t)).filter((e) => e !== void 0), c = J(t, n.wrapsLabels === !0).length, l = at(t, s, i, c);
1019
1019
  r($(o[a])).select("text").attr("text-anchor", l.anchor).attr("y", l.y).selectAll("tspan").attr("x", l.x);
1020
1020
  });
1021
1021
  }, k = () => {
@@ -1025,28 +1025,28 @@ function nt(e, t, n = {}) {
1025
1025
  Math.max(...e),
1026
1026
  Math.min(...n),
1027
1027
  Math.max(...n)
1028
- ], c = t.clientWidth || G, l = t.clientHeight || K, u = i === "outside" ? Ve : Be, d = Math.max(He, Math.min(1, c / (a - r + u * 2), l / (s - o + u * 2)));
1029
- return H.translate(c / 2, l / 2).scale(d).translate(-(r + a) / 2, -(o + s) / 2);
1028
+ ], c = t.clientWidth || W, l = t.clientHeight || G, u = i === "outside" ? He : Ve, d = Math.max(Ue, Math.min(1, c / (a - r + u * 2), l / (s - o + u * 2)));
1029
+ return V.translate(c / 2, l / 2).scale(d).translate(-(r + a) / 2, -(o + s) / 2);
1030
1030
  }, A = (e) => {
1031
1031
  u.call((t) => {
1032
1032
  E.transform(t, e);
1033
1033
  });
1034
1034
  }, j = () => {
1035
1035
  l.alpha(1);
1036
- for (let e = 0; e < Ie; e += 1) l.tick();
1036
+ for (let e = 0; e < Le; e += 1) l.tick();
1037
1037
  l.stop();
1038
1038
  }, M = () => {
1039
1039
  y !== void 0 && cancelAnimationFrame(y), y = void 0;
1040
1040
  }, N = (e) => {
1041
1041
  let t = new Map(g.map((e) => [e.id, e]));
1042
- h = e, v = at(e), g = e.nodes.map((e) => ({ ...e })), _ = e.links.map((e) => ({ ...e }));
1042
+ h = e, v = ot(e), g = e.nodes.map((e) => ({ ...e })), _ = e.links.map((e) => ({ ...e }));
1043
1043
  let r = Math.min(o, s) * .22;
1044
1044
  for (let [e, n] of g.entries()) {
1045
1045
  let i = t.get(n.id), a = (v.get(n.id) ?? []).find((e) => t.has(e)), c = a == null ? void 0 : t.get(a), l = e / g.length * Math.PI * 2;
1046
- i ? (n.x = i.x, n.y = i.y) : c ? (n.x = (c.x ?? 0) + Math.cos(l) * et, n.y = (c.y ?? 0) + Math.sin(l) * et) : (n.x = o / 2 + Math.cos(l) * r, n.y = s / 2 + Math.sin(l) * r);
1046
+ i ? (n.x = i.x, n.y = i.y) : c ? (n.x = (c.x ?? 0) + Math.cos(l) * tt, n.y = (c.y ?? 0) + Math.sin(l) * tt) : (n.x = o / 2 + Math.cos(l) * r, n.y = s / 2 + Math.sin(l) * r);
1047
1047
  }
1048
1048
  l.nodes(g), c.links(_);
1049
- let i = S.data(_, ot), a = i.exit();
1049
+ let i = S.data(_, st), a = i.exit();
1050
1050
  S = i.enter().append("line").attr("stroke", q.linkStroke).attr("stroke-width", 2).merge(i);
1051
1051
  let u = C.data(g, (e) => e.id), d = u.exit().style("pointer-events", "none"), f = u.enter().append("g").style("cursor", "pointer");
1052
1052
  return f.append("circle").attr("stroke-width", 2), f.append("text"), f.on("mouseenter", (e, t) => {
@@ -1055,13 +1055,13 @@ function nt(e, t, n = {}) {
1055
1055
  x === t.id && (x = null), T();
1056
1056
  }).on("click", (e, t) => {
1057
1057
  e.stopPropagation(), b = b === t.id ? null : t.id, T(), n.onNodeClick?.($(h.nodes.find((e) => e.id === t.id)));
1058
- }).call(Ce().on("start", (e, t) => {
1058
+ }).call(we().on("start", (e, t) => {
1059
1059
  e.sourceEvent?.stopPropagation(), t.fx = t.x, t.fy = t.y;
1060
1060
  }).on("drag", (e, t) => {
1061
1061
  t.x = e.x, t.y = e.y, t.fx = e.x, t.fy = e.y, O();
1062
1062
  }).on("end", (e, t) => {
1063
1063
  t.fx = null, t.fy = null;
1064
- })), C = f.merge(u), C.select("text").attr("text-anchor", "middle").attr("y", (e) => e.label == null ? 4 : Z(e).radius + ze).attr("font-size", (e) => e.label == null ? null : We).attr("fill", (e) => e.label == null ? q.nodeText : "currentColor").selectAll("tspan").data((e) => J(e, n.wrapsLabels === !0)).join("tspan").attr("x", 0).attr("dy", (e, t) => t === 0 ? 0 : Ge).text((e) => e), T(), {
1064
+ })), C = f.merge(u), C.select("text").attr("text-anchor", "middle").attr("y", (e) => e.label == null ? 4 : Z(e).radius + Be).attr("font-size", (e) => e.label == null ? null : Ge).attr("fill", (e) => e.label == null ? q.nodeText : "currentColor").style("paint-order", (e) => e.label == null || n.labelHaloColor == null ? null : "stroke").style("stroke", (e) => e.label == null ? null : n.labelHaloColor ?? null).style("stroke-linejoin", (e) => e.label == null || n.labelHaloColor == null ? null : "round").style("stroke-width", (e) => e.label == null || n.labelHaloColor == null ? null : `${String(qe)}px`).selectAll("tspan").data((e) => J(e, n.wrapsLabels === !0)).join("tspan").attr("x", 0).attr("dy", (e, t) => t === 0 ? 0 : K).text((e) => e), T(), {
1065
1065
  enteringNodes: f,
1066
1066
  exitingLinks: a,
1067
1067
  exitingNodes: d
@@ -1072,7 +1072,7 @@ function nt(e, t, n = {}) {
1072
1072
  M(), l.stop(), u.remove();
1073
1073
  },
1074
1074
  resize: () => {
1075
- let e = t.clientWidth || G, n = t.clientHeight || K;
1075
+ let e = t.clientWidth || W, n = t.clientHeight || G;
1076
1076
  u.attr("width", e).attr("height", n).attr("viewBox", `0 0 ${String(e)} ${String(n)}`), l.force("center", D(e / 2, n / 2));
1077
1077
  },
1078
1078
  svg: m,
@@ -1091,12 +1091,12 @@ function nt(e, t, n = {}) {
1091
1091
  let s = new Map(g.map((e) => [e.id, {
1092
1092
  x: e.x ?? 0,
1093
1093
  y: e.y ?? 0
1094
- }])), c = Te(m), l = (n.fitsView === !0 ? k() : void 0) ?? c, u = (e) => {
1094
+ }])), c = Ee(m), l = (n.fitsView === !0 ? k() : void 0) ?? c, u = (e) => {
1095
1095
  for (let t of g) {
1096
- let n = st($(o.get(t.id)), $(s.get(t.id)), e);
1096
+ let n = ct($(o.get(t.id)), $(s.get(t.id)), e);
1097
1097
  t.x = n.x, t.y = n.y;
1098
1098
  }
1099
- O(), t.style("opacity", e), i.style("opacity", 1 - e), r.style("opacity", 1 - e), A(H.translate(Q(c.x, l.x, e), Q(c.y, l.y, e)).scale(Q(c.k, l.k, e))), e < 1 || (t.style("opacity", null), i.remove(), r.remove());
1099
+ O(), t.style("opacity", e), i.style("opacity", 1 - e), r.style("opacity", 1 - e), A(V.translate(Q(c.x, l.x, e), Q(c.y, l.y, e)).scale(Q(c.k, l.k, e))), e < 1 || (t.style("opacity", null), i.remove(), r.remove());
1100
1100
  };
1101
1101
  if (a <= 0) {
1102
1102
  u(1);
@@ -1105,7 +1105,7 @@ function nt(e, t, n = {}) {
1105
1105
  u(0);
1106
1106
  let d = performance.now(), f = (e) => {
1107
1107
  let t = Math.min(1, (e - d) / a);
1108
- u(ct(t)), y = t < 1 ? requestAnimationFrame(f) : void 0;
1108
+ u(lt(t)), y = t < 1 ? requestAnimationFrame(f) : void 0;
1109
1109
  };
1110
1110
  y = requestAnimationFrame(f);
1111
1111
  }
@@ -1113,19 +1113,19 @@ function nt(e, t, n = {}) {
1113
1113
  }
1114
1114
  function J(e, t) {
1115
1115
  let n = e.label ?? e.id;
1116
- if (!t || e.label == null || n.length <= Ye) return [n];
1116
+ if (!t || e.label == null || n.length <= Xe) return [n];
1117
1117
  let r = n.length / 2, i = -1;
1118
1118
  for (let e = n.indexOf(" "); e !== -1; e = n.indexOf(" ", e + 1)) (i === -1 || Math.abs(e - r) < Math.abs(i - r)) && (i = e);
1119
1119
  return i === -1 ? [n] : [n.slice(0, i), n.slice(i + 1)];
1120
1120
  }
1121
- function rt(e) {
1121
+ function it(e) {
1122
1122
  return Math.max(...e.map((e) => e.length)) * Ke;
1123
1123
  }
1124
- function it(e, t, n, r) {
1124
+ function at(e, t, n, r) {
1125
1125
  let { radius: i } = Z(e), a = {
1126
1126
  anchor: "middle",
1127
1127
  x: 0,
1128
- y: i + ze
1128
+ y: i + Be
1129
1129
  };
1130
1130
  if (n === "below" || t.length === 0) return a;
1131
1131
  let o = t.map((t) => Math.atan2((t.y ?? 0) - (e.y ?? 0), (t.x ?? 0) - (e.x ?? 0))).toSorted((e, t) => e - t), s = 0, c = 0;
@@ -1133,25 +1133,25 @@ function it(e, t, n, r) {
1133
1133
  let n = e === o.length - 1 ? $(o[0]) + Math.PI * 2 : $(o[e + 1]);
1134
1134
  n - t <= s || (s = n - t, c = t + s / 2);
1135
1135
  }
1136
- let l = Math.cos(c), u = Math.sin(c), d = (r - 1) * Ge;
1137
- if (Math.abs(l) < Je) return u > 0 ? a : {
1136
+ let l = Math.cos(c), u = Math.sin(c), d = (r - 1) * K;
1137
+ if (Math.abs(l) < Ye) return u > 0 ? a : {
1138
1138
  anchor: "middle",
1139
1139
  x: 0,
1140
- y: -(i + qe) - d
1140
+ y: -(i + Je) - d
1141
1141
  };
1142
- let f = i + qe;
1142
+ let f = i + Je + Math.abs(u) * r * K / 2;
1143
1143
  return {
1144
1144
  anchor: l > 0 ? "start" : "end",
1145
1145
  x: l * f,
1146
- y: u * f + We / 3 - d / 2
1146
+ y: u * f + Ge / 3 - d / 2
1147
1147
  };
1148
1148
  }
1149
- function at(e) {
1149
+ function ot(e) {
1150
1150
  let t = /* @__PURE__ */ new Map();
1151
1151
  for (let n of e.links) t.set(n.source, [...t.get(n.source) ?? [], n.target]), t.set(n.target, [...t.get(n.target) ?? [], n.source]);
1152
1152
  return t;
1153
1153
  }
1154
- function ot(e) {
1154
+ function st(e) {
1155
1155
  return `${Y(e.source)}>${Y(e.target)}`;
1156
1156
  }
1157
1157
  function Y(e) {
@@ -1161,22 +1161,22 @@ function X(e, t) {
1161
1161
  return typeof e == "object" ? e[t] ?? 0 : 0;
1162
1162
  }
1163
1163
  function Z(e) {
1164
- return $(tt[Math.max(0, Math.min(e.level ?? Le, tt.length - 1))]);
1164
+ return $(nt[Math.max(0, Math.min(e.level ?? Re, nt.length - 1))]);
1165
1165
  }
1166
1166
  function Q(e, t, n) {
1167
1167
  return e + (t - e) * n;
1168
1168
  }
1169
- function st(e, t, n) {
1169
+ function ct(e, t, n) {
1170
1170
  return {
1171
1171
  x: Q(e.x, t.x, n),
1172
1172
  y: Q(e.y, t.y, n)
1173
1173
  };
1174
1174
  }
1175
- function ct(e) {
1175
+ function lt(e) {
1176
1176
  return e < .5 ? 4 * e ** 3 : 1 - (-2 * e + 2) ** 3 / 2;
1177
1177
  }
1178
1178
  function $(e) {
1179
1179
  if (e === void 0) throw Error("Expected a value in the network diagram.");
1180
1180
  return e;
1181
1181
  }
1182
- export { nt as renderNetworkDiagram };
1182
+ export { rt as renderNetworkDiagram };
@@ -14,6 +14,7 @@ export interface NetworkDiagramData {
14
14
  export interface NetworkDiagramOptions {
15
15
  chargeStrength?: number;
16
16
  fitsView?: boolean;
17
+ labelHaloColor?: string;
17
18
  labelPlacementId?: NetworkDiagramLabelPlacementId;
18
19
  linkDistance?: number;
19
20
  onNodeClick?: (node: NetworkDiagramNode) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-tool-d3-visualiser",
3
- "version": "1.0.123",
3
+ "version": "1.0.125",
4
4
  "private": false,
5
5
  "description": "A TypeScript wrapper for D3, TanStack Charts, and Unovis that implements the Data Positioning chart-rendering interface, providing ERD (dagre), Sankey (d3-sankey), chord (Unovis), network (d3-force), tree (d3-hierarchy), and bar chart (TanStack Charts) renderers.",
6
6
  "license": "MIT",