vue-data-ui 2.17.0 → 2.17.2

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 (93) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +65 -160
  23. package/dist/types/vue-data-ui.d.ts +65 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
  41. package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
  55. package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
  82. package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
  92. package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
  93. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as $, computed as p, ref as c, watch as Z, shallowRef as ee, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as f, normalizeProps as _, guardReactiveProps as A, normalizeClass as T, createVNode as Oe, Fragment as te, renderList as ae, toDisplayString as $e } from "vue";
2
- import { u as Ie, c as _e, a as Ae, o as Pe, e as xe, w as le, m as Fe, X as Se, i as ze, v as ne, f as Me } from "./index-pPGk-uhD.js";
1
+ import { defineAsyncComponent as $, computed as p, ref as c, watch as te, shallowRef as ae, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as N, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as y, normalizeProps as _, guardReactiveProps as x, normalizeClass as R, createVNode as Oe, Fragment as le, renderList as ne, toDisplayString as $e } from "vue";
2
+ import { u as Ie, c as _e, a as xe, o as Ae, e as Pe, w as oe, m as Fe, X as Se, i as ze, v as se, f as Me } from "./index-JzUbx__y.js";
3
3
  import { t as Te, u as Ne } from "./useResponsive-DfdjqQps.js";
4
- import { u as oe } from "./useNestedProp-DjACxgdZ.js";
5
- import { u as Re } from "./usePrinter-DDHcrl0A.js";
4
+ import { u as ue } from "./useNestedProp-D_jd2dz9.js";
5
+ import { u as Re } from "./usePrinter-CsyliflB.js";
6
6
  import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xe from "./Title-B-2bV0SW.js";
9
- import Le from "./img-Y_hYz-ZC.js";
10
- import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ import Xe from "./Title-BQb7X_OR.js";
9
+ import Be from "./img-D0DpKcFX.js";
10
+ import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], He = ["d", "fill"], We = ["cx", "cy", "r", "stroke", "stroke-width"], qe = ["x", "y", "font-size", "fill", "font-weight"], Ve = {
12
12
  key: 5,
13
13
  class: "vue-data-ui-watermark"
@@ -27,151 +27,158 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
27
27
  }
28
28
  }
29
29
  },
30
- setup(se, { expose: ue }) {
31
- const re = $(() => import("./PenAndPaper-D6AqipIO.js")), ie = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ce = $(() => import("./UserOptions-Dd34lEKb.js")), ve = $(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_wheel: he } = Ie(), d = se, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), de = c(null), N = c(0), g = c(null), R = c(null), U = c(null), E = c(null), X = c(0), e = p({
32
- get: () => j(),
30
+ setup(re, { expose: ie }) {
31
+ const ce = $(() => import("./PenAndPaper-CqJ4wudB.js")), ve = $(() => import("./vue-ui-skeleton-B4KQLEQy.js")), he = $(() => import("./UserOptions-lneAyZKu.js")), de = $(() => import("./PackageVersion-CIX1W_aa.js")), { vue_ui_wheel: ye } = Ie(), d = re, A = p(() => !!d.dataset && Object.keys(d.dataset).length), P = c(_e()), fe = c(null), U = c(0), g = c(null), E = c(null), X = c(null), B = c(null), L = c(0), e = p({
32
+ get: () => Y(),
33
33
  set: (t) => t
34
- }), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Ue({ config: e.value }), { svgRef: G } = Ee({ config: e.value.style.chart.title });
35
- function j() {
36
- const t = oe({
34
+ }), { userOptionsVisible: F, setUserOptionsVisibility: G, keepUserOptionState: j } = Ue({ config: e.value }), { svgRef: D } = Ee({ config: e.value.style.chart.title });
35
+ function Y() {
36
+ const t = ue({
37
37
  userConfig: d.config,
38
- defaultConfig: he
38
+ defaultConfig: ye
39
39
  });
40
40
  return t.theme ? {
41
- ...oe({
42
- userConfig: Ae.vue_ui_wheel[t.theme] || d.config,
41
+ ...ue({
42
+ userConfig: xe.vue_ui_wheel[t.theme] || d.config,
43
43
  defaultConfig: t
44
44
  })
45
45
  } : t;
46
46
  }
47
- Z(() => d.config, (t) => {
48
- e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(), X.value += 1;
47
+ te(() => d.config, (t) => {
48
+ e.value = Y(), F.value = !e.value.userOptions.showOnChartHover, K(), L.value += 1;
49
49
  }, { deep: !0 });
50
- const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } = Re({
51
- elementId: x.value,
50
+ const { isPrinting: H, isImaging: W, generatePdf: q, generateImage: V } = Re({
51
+ elementId: P.value,
52
52
  fileName: e.value.style.chart.title.text || "vue-ui-wheel",
53
53
  options: e.value.userOptions.print
54
- }), fe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
54
+ }), pe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
55
55
  size: 360,
56
56
  height: 360,
57
57
  width: 360
58
- }), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
58
+ }), S = c(e.value.style.chart.layout.percentage.fontSize), r = p(() => ({
59
59
  radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
60
60
  centerX: o.value.width / 2,
61
61
  centerY: o.value.height / 2
62
62
  }));
63
- function q(t, n = 1) {
63
+ function J(t, n = 1) {
64
64
  return {
65
- x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
66
- y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
65
+ x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
66
+ y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
67
67
  };
68
68
  }
69
- const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
70
- Z(() => d.dataset, (t) => {
71
- e.value.style.chart.animation.use ? J(t.percentage) : r.value = t.percentage || 0;
69
+ const i = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
70
+ te(() => d.dataset, (t) => {
71
+ e.value.style.chart.animation.use ? Q(t.percentage) : i.value = t.percentage || 0;
72
72
  }, { deep: !0 });
73
- const y = ee(null), m = ee(null);
73
+ const f = ae(null), m = ae(null);
74
74
  we(() => {
75
- V();
75
+ K();
76
76
  });
77
- function V() {
78
- if (Pe(d.dataset) && xe({
77
+ function K() {
78
+ if (Ae(d.dataset) && Pe({
79
79
  componentName: "VueUiWheel",
80
80
  type: "dataset"
81
- }), J(d.dataset.percentage || 0), e.value.responsive) {
81
+ }), Q(d.dataset.percentage || 0), e.value.responsive) {
82
82
  const t = Te(() => {
83
83
  const { width: n, height: a } = Ne({
84
84
  chart: g.value,
85
- title: e.value.style.chart.title.text ? R.value : null,
86
- source: U.value,
87
- noTitle: E.value
85
+ title: e.value.style.chart.title.text ? E.value : null,
86
+ source: X.value,
87
+ noTitle: B.value
88
88
  });
89
89
  requestAnimationFrame(() => {
90
90
  o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
91
91
  });
92
92
  });
93
- y.value && (m.value && y.value.unobserve(m.value), y.value.disconnect()), y.value = new ResizeObserver(t), m.value = g.value.parentNode, y.value.observe(m.value);
93
+ f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect()), f.value = new ResizeObserver(t), m.value = g.value.parentNode, f.value.observe(m.value);
94
94
  }
95
95
  }
96
96
  be(() => {
97
- y.value && (m.value && y.value.unobserve(m.value), y.value.disconnect());
97
+ f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect());
98
98
  });
99
- function J(t) {
99
+ function Q(t) {
100
100
  let n = e.value.style.chart.animation.speed;
101
- const a = Math.abs(t - r.value) / (n * 120);
102
- function i() {
103
- r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(i);
101
+ const a = Math.abs(t - i.value) / (n * 120);
102
+ function u() {
103
+ i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(u);
104
104
  }
105
- i();
105
+ u();
106
106
  }
107
- const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), K = p(() => {
107
+ const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), Z = p(() => {
108
108
  const t = [];
109
109
  for (let n = 0; n < k.value; n += 1) {
110
- const a = r.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: ge } = q(o.value.size / k.value * n), { x: me, y: ke } = q(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
110
+ const a = i.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: u, y: M } = J(o.value.size / k.value * n), { x: T, y: ke } = J(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
111
111
  t.push({
112
- x1: i,
113
- y1: ge,
114
- x2: me,
112
+ x1: u,
113
+ y1: M,
114
+ x2: T,
115
115
  y2: ke,
116
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? le(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
116
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? oe(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
117
117
  });
118
118
  }
119
119
  return t;
120
- }), ye = p(() => Fe({ series: K.value.map((t) => ({
120
+ }), ge = p(() => Fe({ series: Z.value.map((t) => ({
121
121
  name: "",
122
122
  value: 1,
123
123
  color: t.color
124
- })) }, u.value.centerX, u.value.centerY, u.value.radius, u.value.radius, 1.99999, 2, 1, 360, 105.25, u.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
125
- function Q(t) {
126
- C.value = t, N.value += 1;
124
+ })) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
125
+ function ee(t) {
126
+ C.value = t, U.value += 1;
127
127
  }
128
128
  const O = c(!1);
129
129
  function z() {
130
130
  O.value = !O.value;
131
131
  }
132
- async function pe({ scale: t = 2 } = {}) {
132
+ async function me({ scale: t = 2 } = {}) {
133
133
  if (!g.value) return;
134
- const { imageUri: n, base64: a } = await Le({ domElement: g.value, base64: !0, img: !0, scale: t });
135
- return { imageUri: n, base64: a };
134
+ const { width: n, height: a } = g.value.getBoundingClientRect(), u = n / a, { imageUri: M, base64: T } = await Be({ domElement: g.value, base64: !0, img: !0, scale: t });
135
+ return {
136
+ imageUri: M,
137
+ base64: T,
138
+ title: e.value.style.chart.title.text,
139
+ width: n,
140
+ height: a,
141
+ aspectRatio: u
142
+ };
136
143
  }
137
- return ue({
138
- getImage: pe,
139
- generatePdf: H,
140
- generateImage: W,
144
+ return ie({
145
+ getImage: me,
146
+ generatePdf: q,
147
+ generateImage: V,
141
148
  toggleAnnotator: z,
142
- toggleFullscreen: Q
149
+ toggleFullscreen: ee
143
150
  }), (t, n) => (s(), v("div", {
144
151
  class: "vue-ui-wheel",
145
152
  ref_key: "wheelChart",
146
153
  ref: g,
147
- id: x.value,
148
- style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
149
- onMouseenter: n[0] || (n[0] = () => l(L)(!0)),
150
- onMouseleave: n[1] || (n[1] = () => l(L)(!1))
154
+ id: P.value,
155
+ style: N(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
156
+ onMouseenter: n[0] || (n[0] = () => l(G)(!0)),
157
+ onMouseleave: n[1] || (n[1] = () => l(G)(!1))
151
158
  }, [
152
- e.value.userOptions.buttons.annotator ? (s(), I(l(re), {
159
+ e.value.userOptions.buttons.annotator ? (s(), I(l(ce), {
153
160
  key: 0,
154
- svgRef: l(G),
161
+ svgRef: l(D),
155
162
  backgroundColor: e.value.style.chart.backgroundColor,
156
163
  color: e.value.style.chart.color,
157
164
  active: O.value,
158
165
  onClose: z
159
166
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
160
- fe.value ? (s(), v("div", {
167
+ pe.value ? (s(), v("div", {
161
168
  key: 1,
162
169
  ref_key: "noTitle",
163
- ref: E,
170
+ ref: B,
164
171
  class: "vue-data-ui-no-title-space",
165
172
  style: "height:36px; width: 100%;background:transparent"
166
173
  }, null, 512)) : h("", !0),
167
174
  e.value.style.chart.title.text ? (s(), v("div", {
168
175
  key: 2,
169
176
  ref_key: "chartTitle",
170
- ref: R,
177
+ ref: E,
171
178
  style: "width:100%;background:transparent;padding-bottom:12px"
172
179
  }, [
173
180
  (s(), I(Xe, {
174
- key: `title_${X.value}`,
181
+ key: `title_${L.value}`,
175
182
  config: {
176
183
  title: {
177
184
  cy: "wheel-title",
@@ -184,15 +191,15 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
184
191
  }
185
192
  }, null, 8, ["config"]))
186
193
  ], 512)) : h("", !0),
187
- e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(), I(l(ce), {
194
+ e.value.userOptions.show && A.value && (l(j) || l(F)) ? (s(), I(l(he), {
188
195
  ref_key: "details",
189
- ref: de,
190
- key: `user_options_${N.value}`,
196
+ ref: fe,
197
+ key: `user_options_${U.value}`,
191
198
  backgroundColor: e.value.style.chart.backgroundColor,
192
199
  color: e.value.style.chart.color,
193
- isPrinting: l(D),
194
- isImaging: l(Y),
195
- uid: x.value,
200
+ isPrinting: l(H),
201
+ isImaging: l(W),
202
+ uid: P.value,
196
203
  hasPdf: e.value.userOptions.buttons.pdf,
197
204
  hasImg: e.value.userOptions.buttons.img,
198
205
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
@@ -205,60 +212,60 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
205
212
  chartElement: g.value,
206
213
  callbacks: e.value.userOptions.callbacks,
207
214
  printScale: e.value.userOptions.print.scale,
208
- onToggleFullscreen: Q,
209
- onGeneratePdf: l(H),
210
- onGenerateImage: l(W),
215
+ onToggleFullscreen: ee,
216
+ onGeneratePdf: l(q),
217
+ onGenerateImage: l(V),
211
218
  onToggleAnnotator: z,
212
- style: M({
213
- visibility: l(B) ? l(F) ? "visible" : "hidden" : "visible"
219
+ style: N({
220
+ visibility: l(j) ? l(F) ? "visible" : "hidden" : "visible"
214
221
  })
215
222
  }, Ce({ _: 2 }, [
216
223
  t.$slots.menuIcon ? {
217
224
  name: "menuIcon",
218
- fn: w(({ isOpen: a, color: i }) => [
219
- f(t.$slots, "menuIcon", _(A({ isOpen: a, color: i })), void 0, !0)
225
+ fn: w(({ isOpen: a, color: u }) => [
226
+ y(t.$slots, "menuIcon", _(x({ isOpen: a, color: u })), void 0, !0)
220
227
  ]),
221
228
  key: "0"
222
229
  } : void 0,
223
230
  t.$slots.optionPdf ? {
224
231
  name: "optionPdf",
225
232
  fn: w(() => [
226
- f(t.$slots, "optionPdf", {}, void 0, !0)
233
+ y(t.$slots, "optionPdf", {}, void 0, !0)
227
234
  ]),
228
235
  key: "1"
229
236
  } : void 0,
230
237
  t.$slots.optionImg ? {
231
238
  name: "optionImg",
232
239
  fn: w(() => [
233
- f(t.$slots, "optionImg", {}, void 0, !0)
240
+ y(t.$slots, "optionImg", {}, void 0, !0)
234
241
  ]),
235
242
  key: "2"
236
243
  } : void 0,
237
244
  t.$slots.optionFullscreen ? {
238
245
  name: "optionFullscreen",
239
- fn: w(({ toggleFullscreen: a, isFullscreen: i }) => [
240
- f(t.$slots, "optionFullscreen", _(A({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
246
+ fn: w(({ toggleFullscreen: a, isFullscreen: u }) => [
247
+ y(t.$slots, "optionFullscreen", _(x({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
241
248
  ]),
242
249
  key: "3"
243
250
  } : void 0,
244
251
  t.$slots.optionAnnotator ? {
245
252
  name: "optionAnnotator",
246
- fn: w(({ toggleAnnotator: a, isAnnotator: i }) => [
247
- f(t.$slots, "optionAnnotator", _(A({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
253
+ fn: w(({ toggleAnnotator: a, isAnnotator: u }) => [
254
+ y(t.$slots, "optionAnnotator", _(x({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
248
255
  ]),
249
256
  key: "4"
250
257
  } : void 0
251
258
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
252
- P.value ? (s(), v("svg", {
259
+ A.value ? (s(), v("svg", {
253
260
  key: 4,
254
261
  ref_key: "svgRef",
255
- ref: G,
262
+ ref: D,
256
263
  xmlns: l(Se),
257
- class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
264
+ class: R({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
258
265
  viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
259
- style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
266
+ style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
260
267
  }, [
261
- Oe(l(ve)),
268
+ Oe(l(de)),
262
269
  t.$slots["chart-background"] ? (s(), v("foreignObject", {
263
270
  key: 0,
264
271
  x: 0,
@@ -269,9 +276,9 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
269
276
  pointerEvents: "none"
270
277
  }
271
278
  }, [
272
- f(t.$slots, "chart-background", {}, void 0, !0)
279
+ y(t.$slots, "chart-background", {}, void 0, !0)
273
280
  ], 8, De)) : h("", !0),
274
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(te, { key: 1 }, ae(K.value, (a, i) => (s(), v("line", {
281
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(le, { key: 1 }, ne(Z.value, (a, u) => (s(), v("line", {
275
282
  x1: a.x1,
276
283
  x2: a.x2,
277
284
  y1: a.y1,
@@ -279,53 +286,53 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
279
286
  stroke: a.color,
280
287
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
281
288
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
282
- class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
283
- }, null, 10, Ye))), 256)) : (s(!0), v(te, { key: 2 }, ae(ye.value, (a, i) => (s(), v("path", {
289
+ class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
290
+ }, null, 10, Ye))), 256)) : (s(!0), v(le, { key: 2 }, ne(ge.value, (a, u) => (s(), v("path", {
284
291
  d: a.arcSlice,
285
292
  fill: a.color,
286
- class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
293
+ class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
287
294
  }, null, 10, He))), 256)),
288
295
  e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
289
296
  key: 3,
290
- cx: u.value.centerX,
291
- cy: u.value.centerY,
292
- r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
297
+ cx: r.value.centerX,
298
+ cy: r.value.centerY,
299
+ r: r.value.radius * 0.8 <= 0 ? 1e-4 : r.value.radius * 0.8,
293
300
  stroke: e.value.style.chart.layout.innerCircle.stroke,
294
301
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
295
302
  fill: "none"
296
303
  }, null, 8, We)) : h("", !0),
297
304
  e.value.style.chart.layout.percentage.show ? (s(), v("text", {
298
305
  key: 4,
299
- x: u.value.centerX,
300
- y: u.value.centerY + S.value / 3,
306
+ x: r.value.centerX,
307
+ y: r.value.centerY + S.value / 3,
301
308
  "font-size": S.value,
302
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(le)(e.value.style.chart.layout.wheel.ticks.activeColor, r.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
309
+ fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(oe)(e.value.style.chart.layout.wheel.ticks.activeColor, i.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
303
310
  "text-anchor": "middle",
304
311
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
305
312
  style: { "font-variant-numeric": "tabluar-nums" }
306
313
  }, $e(l(ze)(
307
314
  e.value.style.chart.layout.percentage.formatter,
308
- l(ne)(r.value),
315
+ l(se)(i.value),
309
316
  l(Me)({
310
- v: l(ne)(r.value),
317
+ v: l(se)(i.value),
311
318
  s: "%",
312
319
  r: e.value.style.chart.layout.percentage.rounding
313
320
  })
314
321
  )), 9, qe)) : h("", !0),
315
- f(t.$slots, "svg", { svg: o.value }, void 0, !0)
322
+ y(t.$slots, "svg", { svg: o.value }, void 0, !0)
316
323
  ], 14, je)) : h("", !0),
317
324
  t.$slots.watermark ? (s(), v("div", Ve, [
318
- f(t.$slots, "watermark", _(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
325
+ y(t.$slots, "watermark", _(x({ isPrinting: l(H) || l(W) })), void 0, !0)
319
326
  ])) : h("", !0),
320
327
  t.$slots.source ? (s(), v("div", {
321
328
  key: 6,
322
329
  ref_key: "source",
323
- ref: U,
330
+ ref: X,
324
331
  dir: "auto"
325
332
  }, [
326
- f(t.$slots, "source", {}, void 0, !0)
333
+ y(t.$slots, "source", {}, void 0, !0)
327
334
  ], 512)) : h("", !0),
328
- P.value ? h("", !0) : (s(), I(l(ie), {
335
+ A.value ? h("", !0) : (s(), I(l(ve), {
329
336
  key: 7,
330
337
  config: {
331
338
  type: "wheel",
@@ -339,7 +346,7 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
339
346
  }, null, 8, ["config"]))
340
347
  ], 44, Ge));
341
348
  }
342
- }, ut = /* @__PURE__ */ Be(Je, [["__scopeId", "data-v-f53b6073"]]);
349
+ }, ut = /* @__PURE__ */ Le(Je, [["__scopeId", "data-v-ab90b8ed"]]);
343
350
  export {
344
351
  ut as default
345
352
  };