@dpuse/dpuse-tool-d3-visualiser 0.0.45 → 0.0.47

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 (56) hide show
  1. package/dist/array-Cv4-2llb.js +0 -2
  2. package/dist/axis-DjmZ9QYe.js +0 -2
  3. package/dist/{band-C1twWuW2.js → band-BFcwtSdG.js} +2 -4
  4. package/dist/{band-C1twWuW2.js.map → band-BFcwtSdG.js.map} +1 -1
  5. package/dist/{billboardJs-DS82ViEw.js → billboardJs-oaee80Fh.js} +85 -72
  6. package/dist/{billboardJs-DS82ViEw.js.map → billboardJs-oaee80Fh.js.map} +1 -1
  7. package/dist/{chordDiagram-Cz0sVVgD.js → chordDiagram-CTDXv74T.js} +35 -29
  8. package/dist/{chordDiagram-Cz0sVVgD.js.map → chordDiagram-CTDXv74T.js.map} +1 -1
  9. package/dist/{d3BarChart-DIN2KQsU.js → d3BarChart-BQCPo1ub.js} +3 -5
  10. package/dist/{d3BarChart-DIN2KQsU.js.map → d3BarChart-BQCPo1ub.js.map} +1 -1
  11. package/dist/dpuse-tool-d3-visualiser.css +1 -1
  12. package/dist/dpuse-tool-d3-visualiser.es.js +14 -16
  13. package/dist/dpuse-tool-d3-visualiser.es.js.map +1 -1
  14. package/dist/drag-DfL4uwqz.js +0 -2
  15. package/dist/{erdDiagram-Ds1hsQDD.js → erdDiagram-C_Hobpls.js} +8 -8
  16. package/dist/{erdDiagram-Ds1hsQDD.js.map → erdDiagram-C_Hobpls.js.map} +1 -1
  17. package/dist/hierarchy-CDFAetye.js +0 -2
  18. package/dist/{linear-BnhqTvdX.js → linear-C-jur735.js} +4 -5
  19. package/dist/{linear-BnhqTvdX.js.map → linear-C-jur735.js.map} +1 -1
  20. package/dist/{link-D-9z7kEr.js → link-DRDgTeij.js} +1 -3
  21. package/dist/{link-D-9z7kEr.js.map → link-DRDgTeij.js.map} +1 -1
  22. package/dist/math-C5EhTgJw.js +0 -2
  23. package/dist/max-CPVNm4tn.js +0 -2
  24. package/dist/{networkDiagram-yraPhqxN.js → networkDiagram-CcQxxJMB.js} +10 -10
  25. package/dist/{networkDiagram-yraPhqxN.js.map → networkDiagram-CcQxxJMB.js.map} +1 -1
  26. package/dist/nodrag-Dq2tlBbe.js +0 -2
  27. package/dist/{observablePlot-C7764aFq.js → observablePlot-BE2I-5e2.js} +46 -38
  28. package/dist/{observablePlot-C7764aFq.js.map → observablePlot-BE2I-5e2.js.map} +1 -1
  29. package/dist/{ordinal-uZdoVxAx.js → ordinal-CDNZetSD.js} +1 -3
  30. package/dist/{ordinal-uZdoVxAx.js.map → ordinal-CDNZetSD.js.map} +1 -1
  31. package/dist/palette-BuTjISrV.js +0 -2
  32. package/dist/{path-6kmCrmEz.js → path-BoJ8LMXE.js} +6 -6
  33. package/dist/{path-6kmCrmEz.js.map → path-BoJ8LMXE.js.map} +1 -1
  34. package/dist/{point-6cHftmvM.js → point-GXxVI808.js} +1 -3
  35. package/dist/{point-6cHftmvM.js.map → point-GXxVI808.js.map} +1 -1
  36. package/dist/{pow-BFDPqS3s.js → pow-CxQV96gC.js} +1 -3
  37. package/dist/{pow-BFDPqS3s.js.map → pow-CxQV96gC.js.map} +1 -1
  38. package/dist/{sankeyDiagram-BT2RCRpi.js → sankeyDiagram-DOF6arSJ.js} +1 -3
  39. package/dist/{sankeyDiagram-BT2RCRpi.js.map → sankeyDiagram-DOF6arSJ.js.map} +1 -1
  40. package/dist/select-BIuoFcZG.js +0 -2
  41. package/dist/{src-Xlr4CcSw.js → src-Dl4_vNYa.js} +5 -5
  42. package/dist/{src-Xlr4CcSw.js.map → src-Dl4_vNYa.js.map} +1 -1
  43. package/dist/src-WDualLFV.js +0 -2
  44. package/dist/src-yL3ZdoR1.js +0 -2
  45. package/dist/{step-DgCcZZ3W.js → step-C2rRFtYO.js} +4 -4
  46. package/dist/{step-DgCcZZ3W.js.map → step-C2rRFtYO.js.map} +1 -1
  47. package/dist/string-CnCj7THX.js +0 -2
  48. package/dist/sum-CNP0Xric.js +0 -2
  49. package/dist/{tanStackCharts-DCMs4Y_D.js → tanStackCharts-CqP0qIAr.js} +303 -287
  50. package/dist/tanStackCharts-CqP0qIAr.js.map +1 -0
  51. package/dist/{treeDiagram-DsHUD8ou.js → treeDiagram-FUVkkblR.js} +1 -3
  52. package/dist/{treeDiagram-DsHUD8ou.js.map → treeDiagram-FUVkkblR.js.map} +1 -1
  53. package/dist/types/src/index.d.ts +1 -2
  54. package/dist/types/src/tanStackCharts.d.ts +1 -2
  55. package/package.json +10 -11
  56. package/dist/tanStackCharts-DCMs4Y_D.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import { c as e, i as t, r as n, s as r, t as i } from "./pow-BFDPqS3s.js";
2
- import { d as a } from "./linear-BnhqTvdX.js";
1
+ import { c as e, i as t, r as n, s as r, t as i } from "./pow-CxQV96gC.js";
2
+ import { d as a } from "./linear-C-jur735.js";
3
3
  import { t as o } from "./max-CPVNm4tn.js";
4
4
  import { n as s } from "./src-yL3ZdoR1.js";
5
5
  import { t as c } from "./select-BIuoFcZG.js";
6
6
  import { d as l, p as u } from "./string-CnCj7THX.js";
7
7
  import { r as d, t as f } from "./array-Cv4-2llb.js";
8
8
  import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, p as b, r as x, s as S, t as C, u as w } from "./math-C5EhTgJw.js";
9
- import { n as T } from "./path-6kmCrmEz.js";
10
- import { n as E, r as D, t as O } from "./point-6cHftmvM.js";
11
- import { _ as ee, a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as k, m as A, n as j, o as M, p as ce, r as le, s as ue, t as de, u as fe, v as N } from "./step-DgCcZZ3W.js";
9
+ import { n as T } from "./path-BoJ8LMXE.js";
10
+ import { n as E, r as D, t as O } from "./point-GXxVI808.js";
11
+ import { _ as ee, a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as k, m as A, n as j, o as M, p as ce, r as le, s as ue, t as de, u as fe, v as N } from "./step-C2rRFtYO.js";
12
12
  import { n as pe } from "./hierarchy-CDFAetye.js";
13
13
  import { r as me, t as he } from "./palette-BuTjISrV.js";
14
14
  //#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
@@ -232,15 +232,17 @@ function nt(e, t, n, r, i, a, o, s, c) {
232
232
  _ == -1 && (C = L(C, /\f/g, "")), p > 0 && z(C) - d && Pe(p > 32 ? at(C + ";", r, n, d - 1) : at(L(C, " ", "") + ";", r, n, d - 2), c);
233
233
  break;
234
234
  case 59: C += ";";
235
- default: if (Pe(S = rt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) if (u === 0) nt(C, t, S, S, b, a, d, s, x);
236
- else switch (f === 99 && R(C, 3) === 110 ? 100 : f) {
237
- case 100:
238
- case 108:
239
- case 109:
240
- case 115:
241
- nt(e, S, S, r && Pe(rt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
242
- break;
243
- default: nt(C, S, S, S, [""], x, 0, s, x);
235
+ default: if (Pe(S = rt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) {
236
+ if (u === 0) nt(C, t, S, S, b, a, d, s, x);
237
+ else switch (f === 99 && R(C, 3) === 110 ? 100 : f) {
238
+ case 100:
239
+ case 108:
240
+ case 109:
241
+ case 115:
242
+ nt(e, S, S, r && Pe(rt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
243
+ break;
244
+ default: nt(C, S, S, S, [""], x, 0, s, x);
245
+ }
244
246
  }
245
247
  }
246
248
  l = u = p = 0, h = _ = 1, y = C = "", d = o;
@@ -869,10 +871,12 @@ function fn() {
869
871
  var ue = f * p(O), de = f * h(O), fe = d * p(ne), N = d * h(ne);
870
872
  if (se > 1e-12) {
871
873
  var pe = f * p(ee), me = f * h(ee), he = d * p(te), ge = d * h(te), P;
872
- if (E < w) if (P = un(ue, de, he, ge, pe, me, fe, N)) {
873
- var _e = ue - P[0], F = de - P[1], ve = pe - P[0], I = me - P[1], ye = 1 / h(y((_e * ve + F * I) / (g(_e * _e + F * F) * g(ve * ve + I * I))) / 2), be = g(P[0] * P[0] + P[1] * P[1]);
874
- k = v(se, (d - be) / (ye - 1)), A = v(se, (f - be) / (ye + 1));
875
- } else k = A = 0;
874
+ if (E < w) {
875
+ if (P = un(ue, de, he, ge, pe, me, fe, N)) {
876
+ var _e = ue - P[0], F = de - P[1], ve = pe - P[0], I = me - P[1], ye = 1 / h(y((_e * ve + F * I) / (g(_e * _e + F * F) * g(ve * ve + I * I))) / 2), be = g(P[0] * P[0] + P[1] * P[1]);
877
+ k = v(se, (d - be) / (ye - 1)), A = v(se, (f - be) / (ye + 1));
878
+ } else k = A = 0;
879
+ }
876
880
  }
877
881
  ie > 1e-12 ? A > 1e-12 ? (j = dn(he, ge, ue, de, f, A, D), M = dn(pe, me, fe, N, f, A, D), s.moveTo(j.cx + j.x01, j.cy + j.y01), A < se ? s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, f, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), !D), s.arc(M.cx, M.cy, A, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : (s.moveTo(ue, de), s.arc(0, 0, f, O, ee, !D)) : s.moveTo(ue, de), !(d > 1e-12) || !(re > 1e-12) ? s.lineTo(fe, N) : k > 1e-12 ? (j = dn(fe, N, pe, me, d, -k, D), M = dn(ue, de, he, ge, d, -k, D), s.lineTo(j.cx + j.x01, j.cy + j.y01), k < se ? s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, d, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), D), s.arc(M.cx, M.cy, k, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : s.arc(0, 0, d, ne, te, D);
878
882
  }
@@ -929,10 +933,12 @@ function mn(e, t, n) {
929
933
  function l(l) {
930
934
  var u, d, p, m = (l = f(l)).length, h, g = !1, _, v = Array(m), y = Array(m);
931
935
  for (a ?? (s = o(_ = c())), u = 0; u <= m; ++u) {
932
- if (!(u < m && i(h = l[u], u, l)) === g) if (g = !g) d = u, s.areaStart(), s.lineStart();
933
- else {
934
- for (s.lineEnd(), s.lineStart(), p = u - 1; p >= d; --p) s.point(v[p], y[p]);
935
- s.lineEnd(), s.areaEnd();
936
+ if (!(u < m && i(h = l[u], u, l)) === g) {
937
+ if (g = !g) d = u, s.areaStart(), s.lineStart();
938
+ else {
939
+ for (s.lineEnd(), s.lineStart(), p = u - 1; p >= d; --p) s.point(v[p], y[p]);
940
+ s.lineEnd(), s.areaEnd();
941
+ }
936
942
  }
937
943
  g && (v[u] = +e(h, u, l), y[u] = +t(h, u, l), s.point(r ? +r(h, u, l) : v[u], n ? +n(h, u, l) : y[u]));
938
944
  }
@@ -1497,7 +1503,7 @@ function Ar(e, t) {
1497
1503
  if (e === "cm") return t[0] * (96 / 2.54);
1498
1504
  if (e === "mm") return t[0] * (96 / 25.4);
1499
1505
  if (e === "pt") return t[0] * (96 / 72);
1500
- if (e === "pc") return t[0] * (96 / 6);
1506
+ if (e === "pc") return t[0] * 16;
1501
1507
  }
1502
1508
  return null;
1503
1509
  }
@@ -2710,10 +2716,12 @@ function Da(e) {
2710
2716
  var t = xa, n = Sa, r = Ca, i = Ca, a = wa, o = Ta, s = Ea, c = null;
2711
2717
  function l() {
2712
2718
  var l, u = t.apply(this, arguments), d = n.apply(this, arguments), f = s.apply(this, arguments) / 2, p = ya.call(arguments), m = +r.apply(this, (p[0] = u, p)), h = a.apply(this, p) - va, g = o.apply(this, p) - va, _ = +i.apply(this, (p[0] = d, p)), v = a.apply(this, p) - va, y = o.apply(this, p) - va;
2713
- if (c ||= l = T(), f > 1e-12 && (ma(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, ma(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * ha(h), m * ga(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) if (e) {
2714
- var b = _ - +e.apply(this, arguments), x = (v + y) / 2;
2715
- c.quadraticCurveTo(0, 0, b * ha(v), b * ga(v)), c.lineTo(_ * ha(x), _ * ga(x)), c.lineTo(b * ha(y), b * ga(y));
2716
- } else c.quadraticCurveTo(0, 0, _ * ha(v), _ * ga(v)), c.arc(0, 0, _, v, y);
2719
+ if (c ||= l = T(), f > 1e-12 && (ma(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, ma(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * ha(h), m * ga(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) {
2720
+ if (e) {
2721
+ var b = _ - +e.apply(this, arguments), x = (v + y) / 2;
2722
+ c.quadraticCurveTo(0, 0, b * ha(v), b * ga(v)), c.lineTo(_ * ha(x), _ * ga(x)), c.lineTo(b * ha(y), b * ga(y));
2723
+ } else c.quadraticCurveTo(0, 0, _ * ha(v), _ * ga(v)), c.arc(0, 0, _, v, y);
2724
+ }
2717
2725
  if (c.quadraticCurveTo(0, 0, m * ha(h), m * ga(h)), c.closePath(), l) return c = null, l + "" || null;
2718
2726
  }
2719
2727
  return e && (l.headRadius = function(t) {
@@ -2907,5 +2915,3 @@ function za(e, t, n = {}) {
2907
2915
  }
2908
2916
  //#endregion
2909
2917
  export { za as renderChordDiagram };
2910
-
2911
- //# sourceMappingURL=chordDiagram-Cz0sVVgD.js.map