vue-data-ui 3.9.0 → 3.9.1

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 (119) hide show
  1. package/dist/{PackageVersion-DXy-wfBa.js → PackageVersion-CIhhY-aH.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-candlestick.js +1 -1
  6. package/dist/components/vue-ui-carousel-table.js +1 -1
  7. package/dist/components/vue-ui-chestnut.js +1 -1
  8. package/dist/components/vue-ui-chord.js +1 -1
  9. package/dist/components/vue-ui-circle-pack.js +1 -1
  10. package/dist/components/vue-ui-cursor.js +1 -1
  11. package/dist/components/vue-ui-dag.js +1 -1
  12. package/dist/components/vue-ui-dashboard.js +1 -1
  13. package/dist/components/vue-ui-donut-evolution.js +1 -1
  14. package/dist/components/vue-ui-donut.js +1 -1
  15. package/dist/components/vue-ui-dumbbell.js +1 -1
  16. package/dist/components/vue-ui-flow.js +1 -1
  17. package/dist/components/vue-ui-funnel.js +1 -1
  18. package/dist/components/vue-ui-galaxy.js +1 -1
  19. package/dist/components/vue-ui-gauge.js +1 -1
  20. package/dist/components/vue-ui-geo.js +1 -1
  21. package/dist/components/vue-ui-gizmo.js +1 -1
  22. package/dist/components/vue-ui-heatmap.js +1 -1
  23. package/dist/components/vue-ui-history-plot.js +1 -1
  24. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  25. package/dist/components/vue-ui-molecule.js +1 -1
  26. package/dist/components/vue-ui-mood-radar.js +1 -1
  27. package/dist/components/vue-ui-nested-donuts.js +1 -1
  28. package/dist/components/vue-ui-onion.js +1 -1
  29. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  30. package/dist/components/vue-ui-quadrant.js +1 -1
  31. package/dist/components/vue-ui-quick-chart.js +1 -1
  32. package/dist/components/vue-ui-radar.js +1 -1
  33. package/dist/components/vue-ui-relation-circle.js +1 -1
  34. package/dist/components/vue-ui-ridgeline.js +1 -1
  35. package/dist/components/vue-ui-rings.js +1 -1
  36. package/dist/components/vue-ui-scatter.js +1 -1
  37. package/dist/components/vue-ui-skeleton.js +1 -1
  38. package/dist/components/vue-ui-spark-trend.js +1 -1
  39. package/dist/components/vue-ui-sparkbar.js +1 -1
  40. package/dist/components/vue-ui-sparkgauge.js +1 -1
  41. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  42. package/dist/components/vue-ui-sparkline.js +1 -1
  43. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  44. package/dist/components/vue-ui-stackbar.js +1 -1
  45. package/dist/components/vue-ui-stackline.js +1 -1
  46. package/dist/components/vue-ui-strip-plot.js +1 -1
  47. package/dist/components/vue-ui-table-sparkline.js +1 -1
  48. package/dist/components/vue-ui-table.js +1 -1
  49. package/dist/components/vue-ui-thermometer.js +1 -1
  50. package/dist/components/vue-ui-timer.js +1 -1
  51. package/dist/components/vue-ui-tiremarks.js +1 -1
  52. package/dist/components/vue-ui-treemap.js +1 -1
  53. package/dist/components/vue-ui-vertical-bar.js +1 -1
  54. package/dist/components/vue-ui-waffle.js +1 -1
  55. package/dist/components/vue-ui-wheel.js +1 -1
  56. package/dist/components/vue-ui-word-cloud.js +1 -1
  57. package/dist/components/vue-ui-world.js +1 -1
  58. package/dist/components/vue-ui-xy.js +1 -1
  59. package/dist/usePanZoom-CDF7rb3o.js +132 -0
  60. package/dist/{vue-data-ui-BDPkTNHQ.js → vue-data-ui-bVCjAfu8.js} +57 -57
  61. package/dist/vue-data-ui.js +58 -58
  62. package/dist/{vue-ui-3d-bar-uKhbCJCE.js → vue-ui-3d-bar-Bs1SXAWI.js} +1 -1
  63. package/dist/{vue-ui-age-pyramid-DLT_gkMY.js → vue-ui-age-pyramid-D25YLhPh.js} +1 -1
  64. package/dist/{vue-ui-bullet-BwOyLfur.js → vue-ui-bullet-XX1owNiy.js} +1 -1
  65. package/dist/{vue-ui-candlestick-DvIJjYgT.js → vue-ui-candlestick-CbKnRXLs.js} +1 -1
  66. package/dist/{vue-ui-carousel-table-mQdTBiJ6.js → vue-ui-carousel-table-B95eZm5f.js} +1 -1
  67. package/dist/{vue-ui-chestnut-D4aL-SRw.js → vue-ui-chestnut-D6B8mFCb.js} +1 -1
  68. package/dist/{vue-ui-chord-BNyOLiis.js → vue-ui-chord-C-Fe5nTC.js} +1 -1
  69. package/dist/{vue-ui-circle-pack-DGjOBC77.js → vue-ui-circle-pack-DbGOEbwG.js} +1 -1
  70. package/dist/{vue-ui-cursor-JDfWC_4Z.js → vue-ui-cursor-D99JZotY.js} +1 -1
  71. package/dist/{vue-ui-dag-C7GVHRdz.js → vue-ui-dag-D7R60BRH.js} +2 -2
  72. package/dist/{vue-ui-dashboard-Dhte9CS8.js → vue-ui-dashboard-Dxhaj5E6.js} +54 -54
  73. package/dist/{vue-ui-donut-BnJXrdXi.js → vue-ui-donut-CbHumHFw.js} +1 -1
  74. package/dist/{vue-ui-donut-evolution-B7IXs662.js → vue-ui-donut-evolution--rlD_bzN.js} +1 -1
  75. package/dist/{vue-ui-dumbbell-icb7XI8Y.js → vue-ui-dumbbell-Bak094f4.js} +1 -1
  76. package/dist/{vue-ui-flow-BkFZyi2d.js → vue-ui-flow-BU_3xWDD.js} +1 -1
  77. package/dist/{vue-ui-funnel-BtCQx40Z.js → vue-ui-funnel-aOfTIY8A.js} +1 -1
  78. package/dist/{vue-ui-galaxy-DlkNLZDJ.js → vue-ui-galaxy-CFnCDW6L.js} +1 -1
  79. package/dist/{vue-ui-gauge-Cdj0ecH3.js → vue-ui-gauge-Te_U6eYB.js} +1 -1
  80. package/dist/{vue-ui-geo-e3rtm3qo.js → vue-ui-geo-qkJZph6o.js} +2 -2
  81. package/dist/{vue-ui-gizmo-D14h2JTq.js → vue-ui-gizmo-BKGL0hrf.js} +1 -1
  82. package/dist/{vue-ui-heatmap-rpR42azQ.js → vue-ui-heatmap-CxupvmxZ.js} +1 -1
  83. package/dist/{vue-ui-history-plot-Cecn8Oxm.js → vue-ui-history-plot-CRNGUd--.js} +1 -1
  84. package/dist/{vue-ui-horizontal-bar-VKpzt8eG.js → vue-ui-horizontal-bar-GXt7JlrG.js} +1 -1
  85. package/dist/{vue-ui-molecule-DlEuruqh.js → vue-ui-molecule-D5MQWvsl.js} +2 -2
  86. package/dist/{vue-ui-mood-radar-BAP8G4Wj.js → vue-ui-mood-radar-DkwW-6_J.js} +1 -1
  87. package/dist/{vue-ui-nested-donuts-DSxsX5Vz.js → vue-ui-nested-donuts-Cl2CtNHY.js} +1 -1
  88. package/dist/{vue-ui-onion-BcFbjgm_.js → vue-ui-onion-BbTd3-9h.js} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-C-qcnEpN.js → vue-ui-parallel-coordinate-plot-CAuAUcJe.js} +1 -1
  90. package/dist/{vue-ui-quadrant-ChTRugDc.js → vue-ui-quadrant-CiQOwv_x.js} +1 -1
  91. package/dist/{vue-ui-quick-chart-CkRSQBoP.js → vue-ui-quick-chart-Db_p50n_.js} +1 -1
  92. package/dist/{vue-ui-radar-D7h9MmKX.js → vue-ui-radar-Cq0FzSuo.js} +1 -1
  93. package/dist/{vue-ui-relation-circle-BGSf9_de.js → vue-ui-relation-circle-0TKhiI54.js} +1 -1
  94. package/dist/{vue-ui-ridgeline-BP3OBUSp.js → vue-ui-ridgeline-BpKSoxMw.js} +1 -1
  95. package/dist/{vue-ui-rings-bixIaG84.js → vue-ui-rings-vn5kZZRA.js} +1 -1
  96. package/dist/{vue-ui-scatter-CsbW44rO.js → vue-ui-scatter-CF_h6seO.js} +1 -1
  97. package/dist/{vue-ui-skeleton-B7FFPfD7.js → vue-ui-skeleton-pcNjmtIm.js} +1 -1
  98. package/dist/{vue-ui-spark-trend-BWiUSAGV.js → vue-ui-spark-trend-Gwr_mhU3.js} +1 -1
  99. package/dist/{vue-ui-sparkbar-Y1-PvC2Q.js → vue-ui-sparkbar-Ti79zXlf.js} +1 -1
  100. package/dist/{vue-ui-sparkgauge-DIOgIo9T.js → vue-ui-sparkgauge-Cw076CAR.js} +1 -1
  101. package/dist/{vue-ui-sparkhistogram-Cc45FboV.js → vue-ui-sparkhistogram-DAQatxbk.js} +1 -1
  102. package/dist/{vue-ui-sparkline-BkxHQO4g.js → vue-ui-sparkline-DIFjHdAd.js} +1 -1
  103. package/dist/{vue-ui-sparkstackbar-eL00_vqY.js → vue-ui-sparkstackbar-CV48OIlq.js} +1 -1
  104. package/dist/{vue-ui-stackbar-CCgBPMxT.js → vue-ui-stackbar-iNQuoaFJ.js} +1 -1
  105. package/dist/{vue-ui-stackline-CrChjJG1.js → vue-ui-stackline-Ba_T3bRL.js} +1 -1
  106. package/dist/{vue-ui-strip-plot-ChBPDnF4.js → vue-ui-strip-plot-DQHiecxa.js} +1 -1
  107. package/dist/{vue-ui-table-Bf7ErBf-.js → vue-ui-table-BNvnkqgr.js} +2 -2
  108. package/dist/{vue-ui-table-sparkline-CQf4nxMY.js → vue-ui-table-sparkline-Z9G-8VPL.js} +1 -1
  109. package/dist/{vue-ui-thermometer-1vtRLqYp.js → vue-ui-thermometer-NJ6mFchh.js} +1 -1
  110. package/dist/{vue-ui-timer-C0_Umc6p.js → vue-ui-timer-BzWAHC6N.js} +1 -1
  111. package/dist/{vue-ui-tiremarks-iijIId_5.js → vue-ui-tiremarks-DUVReJRZ.js} +1 -1
  112. package/dist/{vue-ui-treemap-vE6a19Mm.js → vue-ui-treemap-pLbU0XEi.js} +1 -1
  113. package/dist/{vue-ui-waffle-C8kR8CpE.js → vue-ui-waffle-QkCm05fN.js} +1 -1
  114. package/dist/{vue-ui-wheel-D4OCD06F.js → vue-ui-wheel-DaRAOHXK.js} +1 -1
  115. package/dist/{vue-ui-word-cloud-Zhi8r9_M.js → vue-ui-word-cloud-CEIaALCH.js} +2 -2
  116. package/dist/{vue-ui-world-CKdzBshi.js → vue-ui-world-BS0oWBVp.js} +1 -1
  117. package/dist/{vue-ui-xy-BOzzwSSP.js → vue-ui-xy-l6mUNMUu.js} +1 -1
  118. package/package.json +1 -1
  119. package/dist/usePanZoom-DMfuOfaC.js +0 -135
@@ -31,7 +31,7 @@ const A4 = { type: "FeatureCollection", features: [{ type: "Feature", geometry:
31
31
  },
32
32
  emits: ["selectDatapoint", "selectLegend"],
33
33
  setup(t2, { expose: o2, emit: a2 }) {
34
- const r2 = k(() => import("./Title-osQjQYc-.js")), n2 = k(() => import("./Legend-PhhPyrZ0.js")), i2 = k(() => import("./Tooltip-l2pmtXwi.js")), s2 = k(() => import("./BaseIcon-CQaciFyv.js")), l2 = k(() => import("./vue-ui-accordion-nCaoOi6x.js")), u2 = k(() => import("./DataTable-C8cgUUyx.js")), p2 = k(() => import("./PenAndPaper-DtbXViIl.js")), y2 = k(() => import("./UserOptions-DeiXBImO.js")), d2 = k(() => import("./PackageVersion-DXy-wfBa.js")), m2 = k(() => import("./BaseDraggableDialog-B6wHUQPl.js")), { vue_ui_world: c2 } = p4(), v = t2, h1 = a2, V = y({
34
+ const r2 = k(() => import("./Title-osQjQYc-.js")), n2 = k(() => import("./Legend-PhhPyrZ0.js")), i2 = k(() => import("./Tooltip-l2pmtXwi.js")), s2 = k(() => import("./BaseIcon-CQaciFyv.js")), l2 = k(() => import("./vue-ui-accordion-nCaoOi6x.js")), u2 = k(() => import("./DataTable-C8cgUUyx.js")), p2 = k(() => import("./PenAndPaper-DtbXViIl.js")), y2 = k(() => import("./UserOptions-DeiXBImO.js")), d2 = k(() => import("./PackageVersion-CIhhY-aH.js")), m2 = k(() => import("./BaseDraggableDialog-B6wHUQPl.js")), { vue_ui_world: c2 } = p4(), v = t2, h1 = a2, V = y({
35
35
  get() {
36
36
  return !!z.value;
37
37
  },
@@ -97,7 +97,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
97
97
  },
98
98
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
99
99
  setup(jl, { expose: Jt, emit: Qt }) {
100
- const g = jl, Kt = Xe(() => import("./DataTable-C8cgUUyx.js")), jt = Xe(() => import("./Tooltip-l2pmtXwi.js")), eo = Xe(() => import("./UserOptions-DeiXBImO.js")), $a = Xe(() => import("./BaseIcon-CQaciFyv.js")), lo = Xe(() => import("./vue-ui-table-sparkline-CQf4nxMY.js").then((a) => a.b)), ao = Xe(() => import("./PackageVersion-DXy-wfBa.js")), to = Xe(() => import("./PenAndPaper-DtbXViIl.js")), oo = Xe(() => import("./BaseDraggableDialog-B6wHUQPl.js")), ea = Qt, Aa = er(), ro = lr(), { vue_ui_xy: hl } = yr(), { isThemeValid: so, warnInvalidTheme: io } = Ar(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), uo = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), no = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), co = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(_a()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), _ = x(null), vo = b(() => ({
100
+ const g = jl, Kt = Xe(() => import("./DataTable-C8cgUUyx.js")), jt = Xe(() => import("./Tooltip-l2pmtXwi.js")), eo = Xe(() => import("./UserOptions-DeiXBImO.js")), $a = Xe(() => import("./BaseIcon-CQaciFyv.js")), lo = Xe(() => import("./vue-ui-table-sparkline-Z9G-8VPL.js").then((a) => a.b)), ao = Xe(() => import("./PackageVersion-CIhhY-aH.js")), to = Xe(() => import("./PenAndPaper-DtbXViIl.js")), oo = Xe(() => import("./BaseDraggableDialog-B6wHUQPl.js")), ea = Qt, Aa = er(), ro = lr(), { vue_ui_xy: hl } = yr(), { isThemeValid: so, warnInvalidTheme: io } = Ar(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), uo = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), no = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), co = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(_a()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), _ = x(null), vo = b(() => ({
101
101
  height: ve.value,
102
102
  width: ee.value
103
103
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.9.0",
4
+ "version": "3.9.1",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,135 +0,0 @@
1
- import { ref as d, computed as U, onMounted as j, onUnmounted as J, watchEffect as K, watch as Q } from "vue";
2
- function O(c, z = { x: 0, y: 0, width: 100, height: 100 }, V = 1, m, M = null) {
3
- const a = d({ ...z }), n = d({ ...a.value }), r = d(1), E = d(!1), L = d(!1), S = d(0), D = d(null), x = d({ x: 0, y: 0 }), k = U(
4
- () => n.value.x !== a.value.x || n.value.y !== a.value.y || n.value.width !== a.value.width || n.value.height !== a.value.height
5
- );
6
- let y = null;
7
- function T(e) {
8
- if (e.length < 2) return 0;
9
- const t = e[0].clientX - e[1].clientX, o = e[0].clientY - e[1].clientY;
10
- return Math.hypot(t, o);
11
- }
12
- function P(e) {
13
- const t = c.value;
14
- if (!t) return { x: 0, y: 0 };
15
- const o = t.createSVGPoint();
16
- o.x = e.clientX, o.y = e.clientY;
17
- const u = t.getScreenCTM()?.inverse();
18
- return u ? o.matrixTransform(u) : { x: 0, y: 0 };
19
- }
20
- function H(e, t) {
21
- const o = c.value;
22
- if (!o) return { dx: 0, dy: 0 };
23
- const u = Math.max(1, o.clientWidth), l = Math.max(1, o.clientHeight), i = n.value.width / u, v = n.value.height / l;
24
- return { dx: e * i, dy: t * v };
25
- }
26
- function Y(e) {
27
- E.value = !0;
28
- const t = e.touches?.[0] || e;
29
- x.value = { x: t.clientX, y: t.clientY }, c.value && (c.value.style.cursor = "grabbing");
30
- }
31
- function X(e) {
32
- if (!E.value) return;
33
- const t = e.touches?.[0] || e, o = t.clientX - x.value.x, u = t.clientY - x.value.y;
34
- if (o === 0 && u === 0) return;
35
- const { dx: l, dy: i } = H(o, u);
36
- n.value.x -= l, n.value.y -= i, x.value = { x: t.clientX, y: t.clientY };
37
- }
38
- function f() {
39
- E.value = !1, c.value && (c.value.style.cursor = "");
40
- }
41
- function Z(e) {
42
- M && M(), e.preventDefault();
43
- const t = e.deltaY > 0 ? 0.9 : 1.1;
44
- w(t, P(e));
45
- }
46
- function A(e) {
47
- e.preventDefault();
48
- const t = P(e), o = 1.5 * (1 + V / 100);
49
- b(o, t);
50
- }
51
- function b(e, t) {
52
- y && cancelAnimationFrame(y);
53
- const o = r.value, u = o * e;
54
- let l = null;
55
- const i = 200, v = (h) => h < 0.5 ? 2 * h * h : -1 + (4 - 2 * h) * h, s = (h) => {
56
- l == null && (l = h);
57
- const q = Math.min((h - l) / i, 1), N = (o + (u - o) * v(q)) / r.value;
58
- w(N, t), q < 1 ? y = requestAnimationFrame(s) : y = null;
59
- };
60
- requestAnimationFrame(s);
61
- }
62
- function w(e, t) {
63
- const o = r.value * e, u = o / r.value, l = n.value.width / u, i = n.value.height / u, v = (t.x - n.value.x) * (1 - 1 / u), s = (t.y - n.value.y) * (1 - 1 / u);
64
- n.value.x += v, n.value.y += s, n.value.width = l, n.value.height = i, r.value = o;
65
- }
66
- function B(e) {
67
- e.touches.length === 2 ? (L.value = !0, S.value = T(e.touches), D.value = { ...n.value }) : (e.preventDefault(), Y(e));
68
- }
69
- function C(e) {
70
- if (L.value && e.touches.length === 2) {
71
- e.preventDefault();
72
- const t = T(e.touches);
73
- if (S.value) {
74
- const o = t / S.value;
75
- c.value.getBoundingClientRect();
76
- const l = (e.touches[0].clientX + e.touches[1].clientX) / 2, i = (e.touches[0].clientY + e.touches[1].clientY) / 2, v = P({ clientX: l, clientY: i });
77
- n.value = { ...D.value }, w(o, v);
78
- }
79
- } else
80
- e.preventDefault(), X(e);
81
- }
82
- function g(e) {
83
- e.touches.length < 2 && (L.value = !1), f();
84
- }
85
- function I(e = !1) {
86
- if (!e) {
87
- n.value = { ...a.value }, r.value = 1;
88
- return;
89
- }
90
- const t = { ...n.value }, o = r.value, u = 300;
91
- let l = null;
92
- const i = (v) => {
93
- l == null && (l = v);
94
- const s = Math.min((v - l) / u, 1);
95
- n.value = {
96
- x: t.x + (a.value.x - t.x) * s,
97
- y: t.y + (a.value.y - t.y) * s,
98
- width: t.width + (a.value.width - t.width) * s,
99
- height: t.height + (a.value.height - t.height) * s
100
- }, r.value = o + (1 - o) * s, s < 1 && requestAnimationFrame(i);
101
- };
102
- requestAnimationFrame(i);
103
- }
104
- function W(e, t = {}) {
105
- const { overwriteCurrentIfNotZoomed: o = !0 } = t, u = n.value.x !== a.value.x || n.value.y !== a.value.y || n.value.width !== a.value.width || n.value.height !== a.value.height;
106
- a.value = { ...e }, !u && o && (n.value = { ...a.value }, r.value = 1);
107
- }
108
- function F() {
109
- const e = c.value;
110
- e && (e.addEventListener("mousedown", Y), e.addEventListener("mousemove", X), e.addEventListener("mouseup", f), e.addEventListener("mouseleave", f), e.addEventListener("wheel", Z, { passive: !1 }), e.addEventListener("dblclick", A), e.addEventListener("touchstart", B, { passive: !1 }), e.addEventListener("touchmove", C, { passive: !1 }), e.addEventListener("touchend", g), e.addEventListener("touchcancel", g));
111
- }
112
- function p() {
113
- const e = c.value;
114
- e && (e.removeEventListener("mousedown", Y), e.removeEventListener("mousemove", X), e.removeEventListener("mouseup", f), e.removeEventListener("mouseleave", f), e.removeEventListener("wheel", Z), e.removeEventListener("dblclick", A), e.removeEventListener("touchstart", B), e.removeEventListener("touchmove", C), e.removeEventListener("touchend", g), e.removeEventListener("touchcancel", g));
115
- }
116
- j(() => {
117
- (!m || m.value) && F();
118
- }), J(p), K(() => {
119
- if (m)
120
- return m.value ? F() : p(), () => p();
121
- }), Q(c, () => {
122
- p(), (!m || m.value) && F();
123
- });
124
- function G(e, t = !1) {
125
- const o = {
126
- x: n.value.x + n.value.width / 2,
127
- y: n.value.y + n.value.height / 2
128
- };
129
- t ? b(e, o) : w(e, o);
130
- }
131
- return { viewBox: n, resetZoom: I, isZoom: k, setInitialViewBox: W, scale: r, zoomByFactor: G };
132
- }
133
- export {
134
- O as u
135
- };