vue-data-ui 3.2.7 → 3.3.0

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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
  95. package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
  97. package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
  99. package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
  100. package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
  101. package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
  102. package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
  105. package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
  106. package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
  108. package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
  111. package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
  114. package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
  115. package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
  116. package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
  117. package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
  118. package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
  121. package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
  123. package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
  124. package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
  125. package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
  127. package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
  128. package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
  132. package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
  133. package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
  134. package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
  135. package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
  136. package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
  137. package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
  138. package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
  139. package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
  140. package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
  142. package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
  143. package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
  144. package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
  151. package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
  152. package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
  154. package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-DH8opsJv.js +0 -325
  157. package/dist/vue-ui-flow-B72CBzC3.js +0 -909
  158. package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
  159. package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
@@ -7,7 +7,7 @@ const lt = "#COMP# dataset prop is either missing, undefined or empty.", ft = "#
7
7
  notBuildable: Et,
8
8
  attributeWrongValue: gt
9
9
  };
10
- function wt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a = 0) {
10
+ function Pt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a = 0) {
11
11
  const { series: f } = t;
12
12
  if (!f || f.length === 0)
13
13
  return [];
@@ -581,7 +581,7 @@ function jt(t) {
581
581
  }
582
582
  return "#000000";
583
583
  }
584
- function K(t) {
584
+ function W(t) {
585
585
  return t !== null && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && (t.constructor === Object || t.constructor == null);
586
586
  }
587
587
  function Q(t) {
@@ -592,7 +592,7 @@ function st(t) {
592
592
  }
593
593
  function q(t, n = /* @__PURE__ */ new WeakSet()) {
594
594
  const e = ut(t);
595
- if (!K(e) || n.has(e)) return e;
595
+ if (!W(e) || n.has(e)) return e;
596
596
  n.add(e);
597
597
  for (const s in e) {
598
598
  const r = tt(e[s]) ? J(e[s]) : e[s];
@@ -601,19 +601,19 @@ function q(t, n = /* @__PURE__ */ new WeakSet()) {
601
601
  continue;
602
602
  }
603
603
  if (s === "stroke") {
604
- typeof r == "string" ? e[s] = st(r) : K(r) && !Q(r) && q(r, n);
604
+ typeof r == "string" ? e[s] = st(r) : W(r) && !Q(r) && q(r, n);
605
605
  continue;
606
606
  }
607
607
  if (Array.isArray(r)) {
608
608
  for (const o of r)
609
- K(o) && !Q(o) && q(o, n);
609
+ W(o) && !Q(o) && q(o, n);
610
610
  continue;
611
611
  }
612
- K(r) && !Q(r) && q(r, n);
612
+ W(r) && !Q(r) && q(r, n);
613
613
  }
614
614
  return e;
615
615
  }
616
- function Kt(t) {
616
+ function Wt(t) {
617
617
  const n = t?.length ?? 0;
618
618
  if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
619
619
  let e = 0, s = 0, r = 0, o = 0;
@@ -626,7 +626,7 @@ function Kt(t) {
626
626
  const D = n * A - F * F || 1, M = (n * d - F * E) / D, $ = (E - M * F) / n, I = $, O = M * (n - 1) + $, y = Math.max(Math.abs(I), Math.abs(E / n), Math.abs(O), 1e-9), b = (O - I) / y;
627
627
  return { x1: l, y1: f, x2: a, y2: h, slope: i, trend: b };
628
628
  }
629
- function Wt(t) {
629
+ function Kt(t) {
630
630
  const n = Math.floor(t.length / 2), e = [...t].sort((s, r) => s - r);
631
631
  return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
632
632
  }
@@ -636,7 +636,7 @@ function Vt(t) {
636
636
  n.push(`${p(t[e].x)},${p(t[e].y)} `);
637
637
  return n.join(" ").trim();
638
638
  }
639
- function _t(t) {
639
+ function zt(t) {
640
640
  if (t.length < 2) return "0,0";
641
641
  const n = t.length - 1, e = [`${p(t[0].x)},${p(t[0].y)}`], s = [], r = [], o = [], c = [];
642
642
  for (let i = 0; i < n; i += 1)
@@ -655,7 +655,7 @@ function _t(t) {
655
655
  }
656
656
  return e.join(" ");
657
657
  }
658
- function zt(t, n = 0.2) {
658
+ function _t(t, n = 0.2) {
659
659
  function e(c, i) {
660
660
  const u = i.x - c.x, l = i.y - c.y;
661
661
  return {
@@ -682,7 +682,7 @@ function Zt() {
682
682
  return (t == "x" ? n : n & 3 | 8).toString(16);
683
683
  });
684
684
  }
685
- function W(t, n = !1, e = 16, s = !1) {
685
+ function K(t, n = !1, e = 16, s = !1) {
686
686
  let r = 0, o = n ? e : 0, c = s ? "center" : "middle";
687
687
  return t.center.endX > t.cx ? (r = t.center.endX + e + o, c = s ? "left" : "start") : t.center.endX < t.cx ? (r = t.center.endX - e - o, c = s ? "right" : "end") : (r = t.centerX + o, c = s ? "center" : "middle"), { x: r, anchor: c };
688
688
  }
@@ -719,9 +719,9 @@ function $t(t) {
719
719
  return { x: i, y: u };
720
720
  }
721
721
  function qt(t, n = !1, e = 16, s = 16, r = !1, o = !1, c = 0, i = 12, u = !1) {
722
- const { x: l } = $t(t.path), a = `${W(t).x},${V(t, e, s) - 4} `;
722
+ const { x: l } = $t(t.path), a = `${K(t).x},${V(t, e, s) - 4} `;
723
723
  let f = "", h, F;
724
- l > t.cx ? (h = W(t).x - i, F = V(t, e, s) - 4, f = `${h},${F}`) : l < t.cx ? (h = W(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`) : (h = W(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`);
724
+ l > t.cx ? (h = K(t).x - i, F = V(t, e, s) - 4, f = `${h},${F}`) : l < t.cx ? (h = K(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`) : (h = K(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`);
725
725
  const E = ` ${t.center.endX},${t.center.endY}`;
726
726
  return u ? o ? `M${f} Q${f} ${E}` : `M${a} Q${f} ${E}` : `M${o ? "" : a}${f}${E}`;
727
727
  }
@@ -771,13 +771,13 @@ function on(t, n) {
771
771
  }
772
772
  return l;
773
773
  }
774
- function z(t, n) {
774
+ function _(t, n) {
775
775
  const e = Math.floor(Math.log10(t)), s = t / Math.pow(10, e);
776
776
  let r;
777
777
  return n ? s < 1.5 ? r = 1 : s < 3 ? r = 2 : s < 7 ? r = 5 : r = 10 : s <= 1 ? r = 1 : s <= 2 ? r = 2 : s <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
778
778
  }
779
779
  function cn(t, n, e, s = !1) {
780
- const r = s ? n - t : z(n - t, !1), o = s ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o, u = [];
780
+ const r = s ? n - t : _(n - t, !1), o = s ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o, u = [];
781
781
  for (let l = c; l <= i; l += o)
782
782
  u.push(l);
783
783
  return {
@@ -788,7 +788,7 @@ function cn(t, n, e, s = !1) {
788
788
  };
789
789
  }
790
790
  function an(t, n, e, s = !1) {
791
- const r = s ? n - t : z(n - t, !1), o = s ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o;
791
+ const r = s ? n - t : _(n - t, !1), o = s ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o;
792
792
  let u = [], l = c;
793
793
  for (; l <= i; )
794
794
  l >= t && l <= n && u.push(l), l += o;
@@ -866,13 +866,13 @@ function Dt({ points: t, a: n, b: e, angleStep: s, startX: r, startY: o }) {
866
866
  }
867
867
  return c;
868
868
  }
869
- function St(t) {
869
+ function Rt(t) {
870
870
  let n = 1 / 0, e = 1 / 0, s = -1 / 0, r = -1 / 0;
871
871
  for (const o of t)
872
872
  o.x < n && (n = o.x), o.y < e && (e = o.y), o.x > s && (s = o.x), o.y > r && (r = o.y);
873
873
  return { minX: n, minY: e, maxX: s, maxY: r, width: s - n || 1, height: r - e || 1 };
874
874
  }
875
- function Rt(t) {
875
+ function St(t) {
876
876
  if (!t.length) return "";
877
877
  let n = `M${t[0].x} ${t[0].y}`;
878
878
  for (let e = 1; e < t.length - 2; e += 2) {
@@ -892,10 +892,10 @@ function dn({
892
892
  boxHeight: i,
893
893
  padding: u = 12
894
894
  }) {
895
- const l = Dt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: d } = St(l), A = (a + h) / 2, D = (f + F) / 2, M = Math.max(1, c - 2 * u), $ = Math.max(1, i - 2 * u), I = Math.min(M / E, $ / d), O = r - A * I, N = o - D * I;
895
+ const l = Dt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: d } = Rt(l), A = (a + h) / 2, D = (f + F) / 2, M = Math.max(1, c - 2 * u), $ = Math.max(1, i - 2 * u), I = Math.min(M / E, $ / d), O = r - A * I, N = o - D * I;
896
896
  return function(b) {
897
897
  const m = Math.max(2, Math.min(Math.round(b), l.length)), C = l.slice(0, m).map((g) => ({ x: g.x * I + O, y: g.y * I + N }));
898
- return Rt(C);
898
+ return St(C);
899
899
  };
900
900
  }
901
901
  function pn({ datasetObject: t, requiredAttributes: n }) {
@@ -1174,7 +1174,7 @@ function Dn(t) {
1174
1174
  }
1175
1175
  }), u;
1176
1176
  }
1177
- function Sn({
1177
+ function Rn({
1178
1178
  relator: t,
1179
1179
  adjuster: n,
1180
1180
  source: e,
@@ -1185,7 +1185,7 @@ function Sn({
1185
1185
  const c = t / (n / e);
1186
1186
  return c > o ? o : c < s ? r : c;
1187
1187
  }
1188
- function Rn(t) {
1188
+ function Sn(t) {
1189
1189
  return t.reduce((n, e) => (e.series.forEach((s, r) => {
1190
1190
  ![void 0, null, 1 / 0, -1 / 0].includes(s) && !isNaN(s) && (n[r] = (n[r] || 0) + s);
1191
1191
  }), n), []);
@@ -1300,7 +1300,7 @@ function Tn({ data: t, threshold: n }) {
1300
1300
  }
1301
1301
  return e.push(t[t.length - 1]), e;
1302
1302
  }
1303
- function Pn({ data: t, threshold: n }) {
1303
+ function wn({ data: t, threshold: n }) {
1304
1304
  if (n >= t.length || n < 3)
1305
1305
  return t;
1306
1306
  const e = [], s = (t.length - 2) / (n - 2);
@@ -1317,7 +1317,7 @@ function Pn({ data: t, threshold: n }) {
1317
1317
  }
1318
1318
  return e.push(t[t.length - 1]), e;
1319
1319
  }
1320
- function wn({ data: t, threshold: n, key: e = "value" }) {
1320
+ function Pn({ data: t, threshold: n, key: e = "value" }) {
1321
1321
  if (n >= t.length || n < 3)
1322
1322
  return t;
1323
1323
  const s = [], r = (t.length - 2) / (n - 2);
@@ -1361,7 +1361,7 @@ function Hn({ svgElement: t, x: n, y: e, element: s, position: r }) {
1361
1361
  left: c.x + l
1362
1362
  };
1363
1363
  }
1364
- function _(t) {
1364
+ function z(t) {
1365
1365
  if (t === null || typeof t != "object")
1366
1366
  return t;
1367
1367
  if (t instanceof Date)
@@ -1371,20 +1371,20 @@ function _(t) {
1371
1371
  if (t instanceof Map) {
1372
1372
  const e = /* @__PURE__ */ new Map();
1373
1373
  for (const [s, r] of t.entries())
1374
- e.set(s, _(r));
1374
+ e.set(s, z(r));
1375
1375
  return e;
1376
1376
  }
1377
1377
  if (t instanceof Set) {
1378
1378
  const e = /* @__PURE__ */ new Set();
1379
1379
  for (const s of t.values())
1380
- e.add(_(s));
1380
+ e.add(z(s));
1381
1381
  return e;
1382
1382
  }
1383
1383
  if (Array.isArray(t))
1384
- return t.map((e) => _(e));
1384
+ return t.map((e) => z(e));
1385
1385
  const n = {};
1386
1386
  for (const e in t)
1387
- Object.prototype.hasOwnProperty.call(t, e) && (n[e] = _(t[e]));
1387
+ Object.prototype.hasOwnProperty.call(t, e) && (n[e] = z(t[e]));
1388
1388
  return n;
1389
1389
  }
1390
1390
  function Nt(t) {
@@ -1492,7 +1492,7 @@ function jn(t, n, e = !1, s = !0) {
1492
1492
  return h += ` L${c[i].x},${n} ${s ? "Z" : ""}`, h;
1493
1493
  }).filter(Boolean);
1494
1494
  }
1495
- function Kn(t) {
1495
+ function Wn(t) {
1496
1496
  return t.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
1497
1497
  }
1498
1498
  function Ot(t) {
@@ -1509,7 +1509,7 @@ function it(t) {
1509
1509
  }
1510
1510
  return t;
1511
1511
  }
1512
- function Wn(t) {
1512
+ function Kn(t) {
1513
1513
  return 1 - Math.pow(1 - t, 3);
1514
1514
  }
1515
1515
  function Vn({ values: t, config: n = {} }) {
@@ -1528,7 +1528,7 @@ function Vn({ values: t, config: n = {} }) {
1528
1528
  i(l) ? s && e ? u(0) : !s && e && r.push(l) : u(l);
1529
1529
  return r;
1530
1530
  }
1531
- function _n({ values: t, config: n = {} }) {
1531
+ function zn({ values: t, config: n = {} }) {
1532
1532
  const {
1533
1533
  keepInvalid: e = !0,
1534
1534
  convertInvalidToZero: s = !1
@@ -1545,7 +1545,7 @@ function _n({ values: t, config: n = {} }) {
1545
1545
  c(u) ? s && e ? i(0) : !s && e && r.push(u) : i(u);
1546
1546
  return r;
1547
1547
  }
1548
- function zn({
1548
+ function _n({
1549
1549
  el: t,
1550
1550
  bounds: n,
1551
1551
  currentFontSize: e,
@@ -1640,45 +1640,45 @@ function Jn(t) {
1640
1640
  return B;
1641
1641
  }
1642
1642
  function F(y, b, m, C, g) {
1643
- const B = y.x, x = b.x, T = y.y, S = b.y, P = x - B;
1644
- if (P === 0) return T;
1645
- const w = (g - B) / P, L = w * w, k = L * w, H = 2 * k - 3 * L + 1, R = k - 2 * L + w, Y = -2 * k + 3 * L, U = k - L;
1646
- return H * T + R * (m * P) + Y * S + U * (C * P);
1643
+ const B = y.x, x = b.x, T = y.y, R = b.y, w = x - B;
1644
+ if (w === 0) return T;
1645
+ const P = (g - B) / w, L = P * P, k = L * P, H = 2 * k - 3 * L + 1, S = k - 2 * L + P, Y = -2 * k + 3 * L, U = k - L;
1646
+ return H * T + S * (m * w) + Y * R + U * (C * w);
1647
1647
  }
1648
1648
  function E(y, b) {
1649
1649
  const m = f(y);
1650
1650
  if (!m.length) return [];
1651
1651
  let C = 1 / 0, g = -1 / 0;
1652
- for (const S of m)
1653
- C = Math.min(C, S[0].x), g = Math.max(g, S[S.length - 1].x);
1652
+ for (const R of m)
1653
+ C = Math.min(C, R[0].x), g = Math.max(g, R[R.length - 1].x);
1654
1654
  if (!a(C) || !a(g) || g <= C) return [];
1655
1655
  const B = Math.max(1, i), x = [];
1656
- for (let S = C; S <= g; S += B) x.push(S);
1656
+ for (let R = C; R <= g; R += B) x.push(R);
1657
1657
  x[x.length - 1] < g && x.push(g);
1658
1658
  const T = [];
1659
- for (const S of x) {
1660
- let P = null, w = !1;
1659
+ for (const R of x) {
1660
+ let w = null, P = !1;
1661
1661
  for (const L of m) {
1662
1662
  const k = L.length - 1;
1663
- if (!(S < L[0].x - 1e-9 || S > L[k].x + 1e-9)) {
1663
+ if (!(R < L[0].x - 1e-9 || R > L[k].x + 1e-9)) {
1664
1664
  for (let H = 0; H < k; H += 1) {
1665
- const R = L[H], Y = L[H + 1];
1666
- if (!(S + 1e-9 < R.x || S - 1e-9 > Y.x)) {
1665
+ const S = L[H], Y = L[H + 1];
1666
+ if (!(R + 1e-9 < S.x || R - 1e-9 > Y.x)) {
1667
1667
  if (b) {
1668
1668
  const U = L.__tangents || (L.__tangents = h(L));
1669
- P = F(R, Y, U[H], U[H + 1], S);
1669
+ w = F(S, Y, U[H], U[H + 1], R);
1670
1670
  } else {
1671
- const U = (S - R.x) / (Y.x - R.x || 1);
1672
- P = R.y + U * (Y.y - R.y);
1671
+ const U = (R - S.x) / (Y.x - S.x || 1);
1672
+ w = S.y + U * (Y.y - S.y);
1673
1673
  }
1674
- w = !0;
1674
+ P = !0;
1675
1675
  break;
1676
1676
  }
1677
1677
  }
1678
- if (w) break;
1678
+ if (P) break;
1679
1679
  }
1680
1680
  }
1681
- P == null ? T.push({ x: S, y: null, hole: !0 }) : T.push({ x: S, y: P, hole: !1 });
1681
+ w == null ? T.push({ x: R, y: null, hole: !0 }) : T.push({ x: R, y: w, hole: !1 });
1682
1682
  }
1683
1683
  return T;
1684
1684
  }
@@ -1688,12 +1688,12 @@ function Jn(t) {
1688
1688
  function A(y, b) {
1689
1689
  const m = [], C = [], g = Math.min(y.length, b.length);
1690
1690
  for (let B = 0; B < g - 1; B += 1) {
1691
- const x = y[B], T = y[B + 1], S = b[B], P = b[B + 1];
1692
- if (m.push(x), C.push(S), x.hole || T.hole || S.hole || P.hole || x.y == null || T.y == null || S.y == null || P.y == null)
1691
+ const x = y[B], T = y[B + 1], R = b[B], w = b[B + 1];
1692
+ if (m.push(x), C.push(R), x.hole || T.hole || R.hole || w.hole || x.y == null || T.y == null || R.y == null || w.y == null)
1693
1693
  continue;
1694
- const w = x.y - S.y, L = T.y - P.y;
1695
- if (w > 0 && L < 0 || w < 0 && L > 0) {
1696
- const k = w / (w - L), H = d(x.x, T.x, k), R = d(x.y, T.y, k), Y = { x: H, y: R, hole: !1 }, U = { x: H, y: R, hole: !1 };
1694
+ const P = x.y - R.y, L = T.y - w.y;
1695
+ if (P > 0 && L < 0 || P < 0 && L > 0) {
1696
+ const k = P / (P - L), H = d(x.x, T.x, k), S = d(x.y, T.y, k), Y = { x: H, y: S, hole: !1 }, U = { x: H, y: S, hole: !1 };
1697
1697
  m.push(Y), C.push(U);
1698
1698
  }
1699
1699
  }
@@ -1702,13 +1702,13 @@ function Jn(t) {
1702
1702
  function D(y, b) {
1703
1703
  const m = [], C = Math.min(y.length, b.length);
1704
1704
  for (let g = 0; g < C - 1; g += 1) {
1705
- const B = y[g], x = y[g + 1], T = b[g], S = b[g + 1];
1706
- if (B.hole || x.hole || T.hole || S.hole || B.y == null || x.y == null || T.y == null || S.y == null) continue;
1707
- const P = B.y - T.y, w = x.y - S.y, L = P <= 0 ? B : T, k = w <= 0 ? x : S, H = w <= 0 ? S : x, R = P <= 0 ? T : B, Y = P <= 0 ? s : r, U = [
1705
+ const B = y[g], x = y[g + 1], T = b[g], R = b[g + 1];
1706
+ if (B.hole || x.hole || T.hole || R.hole || B.y == null || x.y == null || T.y == null || R.y == null) continue;
1707
+ const w = B.y - T.y, P = x.y - R.y, L = w <= 0 ? B : T, k = P <= 0 ? x : R, H = P <= 0 ? R : x, S = w <= 0 ? T : B, Y = w <= 0 ? s : r, U = [
1708
1708
  `M${L.x},${L.y}`,
1709
1709
  `L${k.x},${k.y}`,
1710
1710
  `L${H.x},${H.y}`,
1711
- `L${R.x},${R.y}`,
1711
+ `L${S.x},${S.y}`,
1712
1712
  "Z"
1713
1713
  ].join(" ");
1714
1714
  m.push({ d: U, color: Y });
@@ -1721,25 +1721,25 @@ function Jn(t) {
1721
1721
  let g = 0;
1722
1722
  for (; g < C - 1; ) {
1723
1723
  for (; g < C - 1; ) {
1724
- const R = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1725
- if (!R.hole && !Y.hole && !U.hole && !j.hole && R.y != null && Y.y != null && U.y != null && j.y != null) break;
1724
+ const S = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1725
+ if (!S.hole && !Y.hole && !U.hole && !j.hole && S.y != null && Y.y != null && U.y != null && j.y != null) break;
1726
1726
  g += 1;
1727
1727
  }
1728
1728
  if (g >= C - 1) break;
1729
1729
  const B = g, x = Math.sign(b[g].y - y[g].y || 0) || 1;
1730
1730
  for (g += 1; g < C - 1; ) {
1731
- const R = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1732
- if (R.hole || Y.hole || U.hole || j.hole || R.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - R.y || 0) || 1) !== x) break;
1731
+ const S = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1732
+ if (S.hole || Y.hole || U.hole || j.hole || S.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - S.y || 0) || 1) !== x) break;
1733
1733
  g += 1;
1734
1734
  }
1735
- const T = g + 0, S = x >= 0 ? y : b, P = x >= 0 ? b : y, w = x >= 0 ? s : r, L = [];
1736
- for (let R = B; R <= T; R += 1)
1737
- L.push(`${S[R].x},${S[R].y}`);
1735
+ const T = g + 0, R = x >= 0 ? y : b, w = x >= 0 ? b : y, P = x >= 0 ? s : r, L = [];
1736
+ for (let S = B; S <= T; S += 1)
1737
+ L.push(`${R[S].x},${R[S].y}`);
1738
1738
  const k = [];
1739
- for (let R = T; R >= B; R -= 1)
1740
- k.push(`${P[R].x},${P[R].y}`);
1739
+ for (let S = T; S >= B; S -= 1)
1740
+ k.push(`${w[S].x},${w[S].y}`);
1741
1741
  const H = `M${L[0]} L${L.slice(1).join(" L")} L${k.join(" L")} Z`;
1742
- m.push({ d: H, color: w });
1742
+ m.push({ d: H, color: P });
1743
1743
  }
1744
1744
  return m;
1745
1745
  }
@@ -1777,17 +1777,30 @@ function te(t, n, e = {}) {
1777
1777
  else n.startsWith("custom:") ? i = new CustomEvent(n, { ...r, detail: r.detail }) : i = new Event(n, r);
1778
1778
  return t.dispatchEvent(i), i;
1779
1779
  }
1780
+ function ne(t, { delta: n = 1, delay: e = 20, disableTransitions: s = !0 } = {}) {
1781
+ if (!t || !(t instanceof HTMLElement)) return;
1782
+ const r = t.style, o = {
1783
+ width: r.width,
1784
+ height: r.height,
1785
+ transition: r.transition
1786
+ }, c = t.getBoundingClientRect(), i = c.width, u = c.height;
1787
+ s && (r.transition = "none"), r.width = `${Math.max(0, i + n)}px`, r.height = `${Math.max(0, u + n)}px`, t.offsetWidth, setTimeout(() => {
1788
+ r.width = o.width, r.height = o.height, t.offsetWidth, requestAnimationFrame(() => {
1789
+ s && (r.transition = o.transition);
1790
+ });
1791
+ }, e);
1792
+ }
1780
1793
  export {
1781
1794
  yn as $,
1782
1795
  Fn as A,
1783
1796
  In as B,
1784
1797
  cn as C,
1785
- Sn as D,
1798
+ Rn as D,
1786
1799
  jt as E,
1787
1800
  On as F,
1788
1801
  Qt as G,
1789
1802
  mn as H,
1790
- Wn as I,
1803
+ Kn as I,
1791
1804
  Nn as J,
1792
1805
  Jt as K,
1793
1806
  xn as L,
@@ -1796,28 +1809,28 @@ export {
1796
1809
  fn as O,
1797
1810
  dn as P,
1798
1811
  Yn as Q,
1799
- _ as R,
1812
+ z as R,
1800
1813
  nn as S,
1801
1814
  Vt as T,
1802
- _t as U,
1815
+ zt as U,
1803
1816
  Dn as V,
1804
1817
  Tn as W,
1805
1818
  An as X,
1806
1819
  Xt as Y,
1807
- zt as Z,
1808
- Pn as _,
1820
+ _t as Z,
1821
+ wn as _,
1809
1822
  Bn as a,
1810
1823
  un as a0,
1811
- wn as a1,
1812
- Kt as a2,
1813
- Wt as a3,
1824
+ Pn as a1,
1825
+ Wt as a2,
1826
+ Kt as a3,
1814
1827
  kt as a4,
1815
1828
  Qn as a5,
1816
1829
  q as a6,
1817
1830
  $n as a7,
1818
- Rn as a8,
1831
+ Sn as a8,
1819
1832
  an as a9,
1820
- Kn as aa,
1833
+ Wn as aa,
1821
1834
  jn as ab,
1822
1835
  qn as ac,
1823
1836
  Xn as ad,
@@ -1825,18 +1838,19 @@ export {
1825
1838
  te as af,
1826
1839
  ct as ag,
1827
1840
  kn as ah,
1828
- Mn as ai,
1829
- bn as aj,
1830
- Zn as ak,
1831
- Vn as al,
1832
- _n as am,
1833
- Ht as an,
1834
- Yt as ao,
1835
- Gn as ap,
1836
- Un as aq,
1837
- Jn as ar,
1838
- Hn as as,
1839
- rt as at,
1841
+ ne as ai,
1842
+ Mn as aj,
1843
+ bn as ak,
1844
+ Zn as al,
1845
+ Vn as am,
1846
+ zn as an,
1847
+ Ht as ao,
1848
+ Yt as ap,
1849
+ Gn as aq,
1850
+ Un as ar,
1851
+ Jn as as,
1852
+ Hn as at,
1853
+ rt as au,
1840
1854
  v as b,
1841
1855
  Zt as c,
1842
1856
  ln as d,
@@ -1847,9 +1861,9 @@ export {
1847
1861
  Ut as i,
1848
1862
  vt as j,
1849
1863
  Gt as k,
1850
- zn as l,
1864
+ _n as l,
1851
1865
  sn as m,
1852
- wt as n,
1866
+ Pt as n,
1853
1867
  En as o,
1854
1868
  mt as p,
1855
1869
  p as q,
@@ -1858,7 +1872,7 @@ export {
1858
1872
  At as t,
1859
1873
  qt as u,
1860
1874
  V as v,
1861
- W as w,
1875
+ K as w,
1862
1876
  rn as x,
1863
1877
  en as y,
1864
1878
  hn as z
@@ -1,4 +1,4 @@
1
- import { d as g } from "./dom-to-png-BgvOdfyW.js";
1
+ import { d as g } from "./dom-to-png-BiyqJA3t.js";
2
2
  async function E({
3
3
  domElement: a,
4
4
  fileName: D,