vue-data-ui 3.3.2 → 3.3.3

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 (155) hide show
  1. package/dist/{Arrow-DLi6NnGD.js → Arrow-ayTeSvpe.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-Cysanw8-.js} +2 -2
  3. package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-DG6cvf2h.js} +1 -1
  4. package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-CA8kKZjZ.js} +2 -2
  5. package/dist/{DataTable-yAMEyP6y.js → DataTable-DUpZ_s2c.js} +2 -2
  6. package/dist/{Legend-By4rru90.js → Legend-CCBZ2x8T.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-D2IMGwaN.js} +3 -3
  8. package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-CQvYRebC.js} +1 -1
  9. package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-D9LruJaM.js} +3 -3
  10. package/dist/{Shape-BceHSLHf.js → Shape-BS9UGhNq.js} +1 -1
  11. package/dist/{Slicer-Znzt0gSE.js → Slicer-BOki89CB.js} +2 -2
  12. package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-svd8Hb6c.js} +1 -1
  13. package/dist/{Title-Camz1Lce.js → Title-B6rAo9Oz.js} +1 -1
  14. package/dist/{Tooltip-VOcQEHa4.js → Tooltip-DaInVNiV.js} +1 -1
  15. package/dist/{UserOptions-CSja1SGU.js → UserOptions-CJXSEhan.js} +2 -2
  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-DxyZSvDx.js → dom-to-png-Tq92GZKA.js} +1 -1
  82. package/dist/{img-J2dLIr8Y.js → img-DI-W68vp.js} +1 -1
  83. package/dist/{lib-CEjkWSLj.js → lib-CSDxt1Zh.js} +12 -12
  84. package/dist/{pdf-anN8VbM7.js → pdf-BzVpWnNO.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js} +1 -1
  87. package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-Dh-ldrr5.js} +1 -1
  88. package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-Cq8Pt6Lh.js} +2 -2
  89. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  90. package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-CDY7snWF.js} +64 -64
  91. package/dist/vue-data-ui.js +68 -68
  92. package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-DbpiTjGu.js} +6 -6
  93. package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-CaClZrCp.js} +3 -3
  94. package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-DuIxXz5p.js} +35 -28
  95. package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-C2efSKQK.js} +7 -7
  96. package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-qpcqLKmp.js} +7 -7
  97. package/dist/{vue-ui-candlestick-x9U5Ni0N.js → vue-ui-candlestick-DTWbbdGH.js} +38 -31
  98. package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-CCTtArFX.js} +4 -4
  99. package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-CbvxJ8hy.js} +5 -5
  100. package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-Cp9nyIdv.js} +8 -8
  101. package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-kHzd0UYO.js} +21 -21
  102. package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-DEvkJRCz.js} +2 -2
  103. package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-k_mz9iwy.js} +67 -67
  104. package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-CqWCkEu2.js} +2 -2
  105. package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-CDKS6sVu.js} +8 -8
  106. package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-C6cGI_P3.js} +83 -76
  107. package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-ZjJst3xs.js} +38 -31
  108. package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-sX1PYIkr.js} +7 -7
  109. package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel--VViM9gH.js} +6 -6
  110. package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-Du0V9GF8.js} +7 -7
  111. package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-BAe4p2g-.js} +7 -7
  112. package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-CfjwAt38.js} +3 -3
  113. package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-Q0jrPM5h.js} +466 -436
  114. package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-CLSN3mPy.js} +45 -38
  115. package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-CBRgXD1s.js} +3 -3
  116. package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-3yCeDEPK.js} +2 -2
  117. package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-Ddh4hbX0.js} +5 -5
  118. package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-CK8UF-ka.js} +7 -7
  119. package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-DO0FV0tU.js} +7 -7
  120. package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DXLqoj-4.js} +8 -8
  121. package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-BlffHAHB.js} +45 -38
  122. package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-pw2ALj7p.js} +8 -8
  123. package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-9oGbV593.js} +214 -207
  124. package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-Csznqw19.js} +8 -8
  125. package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-C4yZY1sb.js} +2 -2
  126. package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-Duxv-A4H.js} +7 -7
  127. package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B-q7J-C0.js} +45 -38
  128. package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-PRAcmP1H.js} +8 -8
  129. package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-BLW4MJtJ.js} +8 -8
  130. package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-D0PF0jxa.js} +3 -3
  131. package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-Be44gMTh.js} +2 -2
  132. package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-B2XY2dRa.js} +3 -3
  133. package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-DWQN4gvR.js} +3 -3
  134. package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-fDhQGQ12.js} +3 -3
  135. package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-f7Acvipt.js} +4 -4
  136. package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-Ys3JW7Ap.js} +3 -3
  137. package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-Dv0HeSna.js} +3 -3
  138. package/dist/{vue-ui-stackbar-DIUil9DO.js → vue-ui-stackbar-DUlN5QiM.js} +45 -30
  139. package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-DN13ntF-.js} +113 -106
  140. package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-Qb5tDX1n.js} +5 -5
  141. package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-hMrgJ25a.js} +5 -5
  142. package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-CdkFyJjv.js} +4 -4
  143. package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-D7U2C7kJ.js} +7 -7
  144. package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-KtA4M2mV.js} +5 -5
  145. package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-C6GTGszq.js} +6 -6
  146. package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-rhnl1TW9.js} +8 -8
  147. package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-n_Lvbd_X.js} +9 -9
  148. package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-D-4whGLN.js} +8 -8
  149. package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-D92HLjfr.js} +6 -6
  150. package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Df9AMw6v.js} +20 -20
  151. package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-Bg9S35ug.js} +6 -6
  152. package/dist/{vue-ui-xy-tWE4H5ij.js → vue-ui-xy-Da6oy2rm.js} +284 -277
  153. package/dist/{vue-ui-xy-canvas-BQKR36bd.js → vue-ui-xy-canvas-0CLSIKpO.js} +10 -10
  154. package/package.json +1 -1
  155. package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
@@ -1,18 +1,18 @@
1
1
  import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as el, onMounted as ha, watch as D, nextTick as fa, shallowRef as Me, onBeforeUnmount as al, createElementBlock as de, openBlock as S, unref as p, normalizeClass as ll, normalizeStyle as ae, createCommentVNode as H, createElementVNode as Y, createBlock as F, createSlots as ya, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as Z, createVNode as ga, Teleport as tl, toDisplayString as Oe, resolveDynamicComponent as ol, mergeProps as ul, createTextVNode as pa } from "vue";
2
- import { c as rl, b as sl, p as G, B as he, e as nl, C as Re, a as le, d as te, h as ma, _ as il, J as vl, a7 as cl, o as dl, f as hl, z as ba, x as fl, y as yl, A as gl, s as fe, m as pl } from "./lib-CEjkWSLj.js";
2
+ import { c as rl, b as sl, p as G, B as he, e as nl, C as Re, a as le, d as te, h as ma, _ as il, J as vl, a7 as cl, o as dl, f as hl, z as ba, x as fl, y as yl, A as gl, s as fe, m as pl } from "./lib-CSDxt1Zh.js";
3
3
  import { d as ml, t as bl, u as xl, c as Ll, a as xa, l as C, r as De, b as P, p as La } from "./useResponsive-DfdjqQps.js";
4
- import { u as kl, a as Fe } from "./useNestedProp-Ce3PwN8T.js";
5
- import { u as Cl } from "./usePrinter-DJ1iH-F_.js";
4
+ import { u as kl, a as Fe } from "./useNestedProp-Dh-ldrr5.js";
5
+ import { u as Cl } from "./usePrinter-Cq8Pt6Lh.js";
6
6
  import { u as wl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Sl } from "./useChartAccessibility-9icAAmYg.js";
8
8
  import { t as zl } from "./themes-Dw-dDudK.js";
9
- import $l from "./Legend-By4rru90.js";
10
- import Tl from "./Title-Camz1Lce.js";
11
- import { S as Il } from "./Slicer-Znzt0gSE.js";
12
- import Ml from "./vue-ui-accordion-VTP418mC.js";
9
+ import $l from "./Legend-CCBZ2x8T.js";
10
+ import Tl from "./Title-B6rAo9Oz.js";
11
+ import { S as Il } from "./Slicer-BOki89CB.js";
12
+ import Ml from "./vue-ui-accordion-CaClZrCp.js";
13
13
  import { u as Ol } from "./useTimeLabels-BGFjWgrv.js";
14
- import Rl from "./img-J2dLIr8Y.js";
15
- import Dl from "./BaseIcon-eZbszQrv.js";
14
+ import Rl from "./img-DI-W68vp.js";
15
+ import Dl from "./BaseIcon-DG6cvf2h.js";
16
16
  import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Pl = ["id"], El = ["id"], Al = ["id"], Nl = ["onClick"], Hl = {
18
18
  key: 3,
@@ -35,7 +35,7 @@ const Pl = ["id"], El = ["id"], Al = ["id"], Nl = ["onClick"], Hl = {
35
35
  },
36
36
  emits: ["selectLegend"],
37
37
  setup(Pe, { expose: ka, emit: Ca }) {
38
- const wa = ee(() => import("./DataTable-yAMEyP6y.js")), Sa = ee(() => import("./NonSvgPenAndPaper-C7QqIewT.js")), za = ee(() => import("./vue-ui-skeleton-Ce7H57o7.js")), $a = ee(() => import("./Tooltip-VOcQEHa4.js")), Ta = ee(() => import("./UserOptions-CSja1SGU.js")), Ia = ee(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_xy_canvas: Ma } = kl(), g = Pe, _ = c(rl()), I = c(null), oe = c(null), n = c(null), f = c(1), E = c(1), ye = c(!1), d = c(null), ge = c(""), Ee = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ae = c(0), Ne = c(0), ue = c(!1), He = c(null), Ye = c(null), _e = c(null), Be = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Ue = c(!1), re = c(null), Se = c(null), pe = L(() => !!g.dataset && g.dataset.length), Oa = Ca, Ra = el();
38
+ const wa = ee(() => import("./DataTable-DUpZ_s2c.js")), Sa = ee(() => import("./NonSvgPenAndPaper-D2IMGwaN.js")), za = ee(() => import("./vue-ui-skeleton-D0PF0jxa.js")), $a = ee(() => import("./Tooltip-DaInVNiV.js")), Ta = ee(() => import("./UserOptions-CJXSEhan.js")), Ia = ee(() => import("./BaseDraggableDialog-Cysanw8-.js")), { vue_ui_xy_canvas: Ma } = kl(), g = Pe, _ = c(rl()), I = c(null), oe = c(null), n = c(null), f = c(1), E = c(1), ye = c(!1), d = c(null), ge = c(""), Ee = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ae = c(0), Ne = c(0), ue = c(!1), He = c(null), Ye = c(null), _e = c(null), Be = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Ue = c(!1), re = c(null), Se = c(null), pe = L(() => !!g.dataset && g.dataset.length), Oa = Ca, Ra = el();
39
39
  ha(() => {
40
40
  Ra["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
41
41
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.3.2",
4
+ "version": "3.3.3",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,109 +0,0 @@
1
- import { watch as R, nextTick as q, watchEffect as j } from "vue";
2
- function D({
3
- timeLabelsEls: v,
4
- timeLabels: m,
5
- slicer: u,
6
- configRef: r,
7
- rotationPath: f,
8
- autoRotatePath: o,
9
- isAutoSize: x,
10
- setViewBox: a,
11
- forceResizeObserver: c,
12
- callback: l,
13
- targetClass: s = ".vue-data-ui-time-label",
14
- rotation: g = -30.0001,
15
- height: N = null,
16
- width: T = null
17
- }) {
18
- function w(i, n) {
19
- return n.reduce((e, t) => e && e[t], i);
20
- }
21
- function A(i, n, e) {
22
- n.slice(0, -1).reduce((t, h) => t[h], i)[n.slice(-1)] = e;
23
- }
24
- function E(i) {
25
- const n = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(i);
26
- return n ? {
27
- x: parseFloat(n[1]),
28
- y: parseFloat(n[2])
29
- } : { x: 0, y: 0 };
30
- }
31
- async function y() {
32
- await q();
33
- const i = v.value;
34
- if (!i) return;
35
- const e = Array.from(i.querySelectorAll(s)).map((d) => ({
36
- ...E(d.getAttribute("transform")),
37
- width: d.getBBox().width
38
- }));
39
- let t = !1;
40
- const h = 4;
41
- for (let d = 0; d < e.length && !t; d += 1)
42
- for (let p = d + 1; p < e.length; p += 1) {
43
- const C = e[d], b = e[p];
44
- if (!(C.x + C.width + h < b.x || b.x + b.width + h < C.x)) {
45
- t = !0;
46
- break;
47
- }
48
- }
49
- const B = w(r.value, f);
50
- t && !B ? (A(r.value, f, g), l && l({ collision: t }), x.value && a && c && (a(), c())) : !t && B === g && (A(r.value, f, 0), l && l({ collision: t }));
51
- }
52
- function L(i, n) {
53
- let e;
54
- return (...t) => {
55
- clearTimeout(e), e = setTimeout(() => i(...t), n);
56
- };
57
- }
58
- const F = L(y, 200);
59
- return N && T && R([() => T.value, () => N.value], async ([i, n], [e, t]) => {
60
- if (!w(r.value, o)) return;
61
- i !== e || n !== t ? F() : await y();
62
- }), R(
63
- [
64
- () => m.value,
65
- () => w(r.value, f),
66
- () => u.value.start,
67
- () => u.value.end
68
- ],
69
- async ([, , i, n], [, , e, t]) => {
70
- if (!w(r.value, o)) return;
71
- i !== e || n !== t ? F() : await y();
72
- },
73
- { immediate: !0 }
74
- ), { detectTimeLabelCollision: y };
75
- }
76
- function M({ elementRef: v, callback: m, attr: u, earlyReturn: r = !1 }) {
77
- r || j(
78
- (f) => {
79
- const o = v.value;
80
- if (!o) return;
81
- const x = new ResizeObserver((a) => {
82
- const l = a[0]?.contentRect;
83
- let s;
84
- if (l && l[u] != null)
85
- s = l[u];
86
- else
87
- try {
88
- u === "width" ? s = typeof o.getBBox == "function" ? o.getBBox().width : o.getBoundingClientRect().width : s = typeof o.getBBox == "function" ? o.getBBox().height : o.getBoundingClientRect().height;
89
- } catch {
90
- const g = o.getBoundingClientRect();
91
- s = u === "width" ? g.width : g.height;
92
- }
93
- typeof s == "number" && !Number.isNaN(s) && m(s);
94
- });
95
- x.observe(o), q(() => {
96
- requestAnimationFrame(() => {
97
- if (!v.value) return;
98
- const a = v.value.getBoundingClientRect(), c = u === "width" ? a.width : a.height;
99
- typeof c == "number" && !Number.isNaN(c) && m(c);
100
- });
101
- }), f(() => x.disconnect());
102
- },
103
- { flush: "post" }
104
- );
105
- }
106
- export {
107
- D as a,
108
- M as u
109
- };