vue-data-ui 3.0.0-next.7 → 3.0.0-next.71

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 (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,406 @@
1
+ import { defineAsyncComponent as H, computed as f, ref as v, toRefs as xe, watch as ie, onMounted as Ae, createElementBlock as u, openBlock as r, unref as s, normalizeStyle as j, normalizeClass as X, createBlock as T, createCommentVNode as y, createSlots as Oe, withCtx as O, renderSlot as p, normalizeProps as N, guardReactiveProps as R, createVNode as Pe, Fragment as ce, renderList as ve, toDisplayString as Ie } from "vue";
2
+ import { u as ze, c as Se, t as Fe, b as Te, h as Ne, o as Re, f as Me, x as he, X as Ee, k as Le, i as Ue } from "./index-DKpp7RIH.js";
3
+ import { t as Be, u as Ge } from "./useResponsive-DfdjqQps.js";
4
+ import { u as De, B as He } from "./useLoading-D7YHNtLX.js";
5
+ import { u as je } from "./usePrinter-NUeckmCX.js";
6
+ import { u as de } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as Xe } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Ve } from "./useChartAccessibility-9icAAmYg.js";
9
+ import qe from "./Title-VLWyIYrj.js";
10
+ import Ye from "./img-DD_2wgY3.js";
11
+ import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = { key: 1 }, et = ["d", "stroke-width", "stroke"], tt = { key: 2 }, at = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], lt = { key: 3 }, ot = ["x", "y", "height"], st = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], nt = {
13
+ key: 4,
14
+ class: "vue-data-ui-watermark"
15
+ }, rt = {
16
+ __name: "vue-ui-tiremarks",
17
+ props: {
18
+ config: {
19
+ type: Object,
20
+ default() {
21
+ return {};
22
+ }
23
+ },
24
+ dataset: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ }
30
+ },
31
+ setup(fe, { expose: ge }) {
32
+ const ye = H(() => import("./PenAndPaper-JoUN7Ink.js")), pe = H(() => import("./UserOptions-BV_xM-sB.js")), me = H(() => import("./PackageVersion-6s4eI8W7.js")), { vue_ui_tiremarks: ke } = ze(), w = fe, be = f(() => !!w.dataset && Object.keys(w.dataset).length), M = v(Se()), C = v(null), we = v(null), V = v(null), q = v(null), Y = v(0), W = v(0), $ = v(null), P = v(null), e = v(U()), { loading: J, FINAL_DATASET: E } = De({
33
+ ...xe(w),
34
+ FINAL_CONFIG: e,
35
+ prepareConfig: U,
36
+ skeletonDataset: { percentage: 50 },
37
+ skeletonConfig: Fe({
38
+ defaultConfig: e.value,
39
+ userConfig: {
40
+ userOptions: { show: !1 },
41
+ style: {
42
+ chart: {
43
+ backgroundColor: "#99999930",
44
+ animation: { use: !1 },
45
+ layout: {
46
+ activeColor: "#6A6A6A80",
47
+ inactiveColor: "#CACACA80",
48
+ ticks: {
49
+ gradient: { show: !1 }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ })
56
+ }), { userOptionsVisible: L, setUserOptionsVisibility: K, keepUserOptionState: Q } = Xe({ config: e.value }), { svgRef: Z } = Ve({ config: e.value.style.chart.title });
57
+ function U() {
58
+ const t = de({
59
+ userConfig: w.config,
60
+ defaultConfig: ke
61
+ });
62
+ return t.theme ? {
63
+ ...de({
64
+ userConfig: Te.vue_ui_tiremarks[t.theme] || w.config,
65
+ defaultConfig: t
66
+ })
67
+ } : t;
68
+ }
69
+ ie(() => w.config, (t) => {
70
+ e.value = U(), L.value = !e.value.userOptions.showOnChartHover, se(), W.value += 1;
71
+ }, { deep: !0 });
72
+ const { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = je({
73
+ elementId: M.value,
74
+ fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
75
+ options: e.value.userOptions.print
76
+ }), Ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Ne(E.value.percentage));
77
+ ie(() => E.value, (t) => {
78
+ e.value.style.chart.animation.use ? oe(t.percentage) : i.value = t.percentage || 0;
79
+ }, { deep: !0 }), Ae(() => {
80
+ se();
81
+ });
82
+ function oe(t) {
83
+ let l = e.value.style.chart.animation.speed;
84
+ const a = Math.abs(t - i.value) / (l * 120);
85
+ function o() {
86
+ 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(o);
87
+ }
88
+ o();
89
+ }
90
+ const _e = f(() => !!e.value.debug);
91
+ function se() {
92
+ if (Re(w.dataset) && Me({
93
+ componentName: "VueUiTiremarks",
94
+ type: "dataset",
95
+ debug: _e.value
96
+ }), e.value.responsive) {
97
+ const t = Be(() => {
98
+ const { width: l, height: a } = Ge({
99
+ chart: C.value,
100
+ title: e.value.style.chart.title.text ? V.value : null,
101
+ source: q.value
102
+ });
103
+ requestAnimationFrame(() => {
104
+ B.value = Math.max(0.1, l), G.value = Math.max(0.1, a - 12);
105
+ });
106
+ });
107
+ $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
108
+ }
109
+ oe(E.value.percentage || 0);
110
+ }
111
+ const I = f(() => e.value.style.chart.layout.display === "vertical"), c = f(() => {
112
+ const t = e.value.style.chart.percentage.show, l = {
113
+ top: t ? 48 : 12,
114
+ left: t ? 64 : 16,
115
+ right: t ? 64 : 16,
116
+ bottom: t ? 48 : 12
117
+ };
118
+ return I.value ? {
119
+ top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
120
+ left: 3,
121
+ right: 3,
122
+ bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
123
+ } : {
124
+ top: 0,
125
+ bottom: 0,
126
+ left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
127
+ right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
128
+ };
129
+ }), z = f(() => Object.values(c.value).reduce((t, l) => t + l, 0)), B = v(e.value.style.chart.width), G = v(e.value.style.chart.height), n = f(() => ({
130
+ height: G.value,
131
+ width: B.value
132
+ })), ne = f(() => ({
133
+ horizontal: {
134
+ x: g.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
135
+ y: n.value.height / 2 - g.value.fontSize / 2
136
+ },
137
+ vertical: {
138
+ x: n.value.width / 2 - 20,
139
+ y: g.value.y - g.value.fontSize / 2
140
+ }
141
+ })[e.value.style.chart.layout.display]), h = f(() => I.value ? {
142
+ mark: (n.value.height - z.value) / 100 * 0.5,
143
+ space: (n.value.height - z.value) / 100 * 0.5
144
+ } : {
145
+ mark: (n.value.width - z.value) / 100 * 0.5,
146
+ space: (n.value.width - z.value) / 100 * 0.5
147
+ }), re = f(() => {
148
+ const t = [];
149
+ for (let a = 0; a < 100; a += 1) {
150
+ const o = e.value.style.chart.layout.ticks.gradient.show ? he(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
151
+ if (I.value) {
152
+ const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.width - c.value.left - c.value.right) / 100 / 3 : 0, d = c.value.left + 4 + _, m = n.value.width - c.value.right - 4 - _, k = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, b = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, x = (m - d) / e.value.style.chart.layout.curveAngleX, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
153
+ t.push({
154
+ x1: d,
155
+ x2: m,
156
+ y1: k,
157
+ y2: b,
158
+ curve: `M ${d} ${k} C ${d + x} ${k - A}, ${m - x} ${b - A}, ${m} ${b}`,
159
+ color: o
160
+ });
161
+ } else {
162
+ const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, d = c.value.left + a * h.value.mark + a * h.value.space - h.value.mark, m = d, k = c.value.top + 4 + _, b = n.value.height - c.value.bottom - 4 - _, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), A = (b - k) / e.value.style.chart.layout.curveAngleX;
163
+ t.push({
164
+ x1: d,
165
+ x2: m,
166
+ y1: k,
167
+ y2: b,
168
+ curve: `M ${d} ${k} C ${d + x} ${k + A}, ${m + x} ${b - A}, ${m} ${b}`,
169
+ color: o
170
+ });
171
+ }
172
+ }
173
+ return t;
174
+ }), g = f(() => {
175
+ let t, l, a;
176
+ const o = e.value.style.chart.percentage.fontSize / 3;
177
+ return I.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = n.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = n.value.width / 2, l = n.value.height - c.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = n.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = n.value.width - c.value.right + 8, l = n.value.height / 2 + o, a = "start"), {
178
+ x: t,
179
+ y: l,
180
+ textAnchor: a,
181
+ bold: e.value.style.chart.percentage.bold,
182
+ fontSize: e.value.style.chart.percentage.fontSize,
183
+ fill: e.value.style.chart.percentage.color
184
+ };
185
+ }), S = v(!1);
186
+ function ue(t) {
187
+ S.value = t, Y.value += 1;
188
+ }
189
+ const F = v(!1);
190
+ function D() {
191
+ F.value = !F.value;
192
+ }
193
+ async function $e({ scale: t = 2 } = {}) {
194
+ if (!C.value) return;
195
+ const { width: l, height: a } = C.value.getBoundingClientRect(), o = l / a, { imageUri: _, base64: d } = await Ye({ domElement: C.value, base64: !0, img: !0, scale: t });
196
+ return {
197
+ imageUri: _,
198
+ base64: d,
199
+ title: e.value.style.chart.title.text,
200
+ width: l,
201
+ height: a,
202
+ aspectRatio: o
203
+ };
204
+ }
205
+ return ge({
206
+ getImage: $e,
207
+ generatePdf: ae,
208
+ generateImage: le,
209
+ toggleAnnotator: D,
210
+ toggleFullscreen: ue
211
+ }), (t, l) => (r(), u("div", {
212
+ ref_key: "tiremarksChart",
213
+ ref: C,
214
+ class: X(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
215
+ style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
216
+ id: M.value,
217
+ onMouseenter: l[0] || (l[0] = () => s(K)(!0)),
218
+ onMouseleave: l[1] || (l[1] = () => s(K)(!1))
219
+ }, [
220
+ e.value.userOptions.buttons.annotator ? (r(), T(s(ye), {
221
+ key: 0,
222
+ svgRef: s(Z),
223
+ backgroundColor: e.value.style.chart.backgroundColor,
224
+ color: e.value.style.chart.color,
225
+ active: F.value,
226
+ onClose: D
227
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
228
+ Ce.value ? (r(), u("div", {
229
+ key: 1,
230
+ ref_key: "noTitle",
231
+ ref: we,
232
+ class: "vue-data-ui-no-title-space",
233
+ style: "height:36px; width: 100%;background:transparent"
234
+ }, null, 512)) : y("", !0),
235
+ e.value.style.chart.title.text ? (r(), u("div", {
236
+ key: 2,
237
+ ref_key: "chartTitle",
238
+ ref: V,
239
+ style: "width:100%;background:transparent;padding-bottom:12px"
240
+ }, [
241
+ (r(), T(qe, {
242
+ key: `title_${W.value}`,
243
+ config: {
244
+ title: {
245
+ cy: "wheel-title",
246
+ ...e.value.style.chart.title
247
+ },
248
+ subtitle: {
249
+ cy: "wheel-subtitle",
250
+ ...e.value.style.chart.title.subtitle
251
+ }
252
+ }
253
+ }, null, 8, ["config"]))
254
+ ], 512)) : y("", !0),
255
+ e.value.userOptions.show && be.value && (s(Q) || s(L)) ? (r(), T(s(pe), {
256
+ ref: "details",
257
+ key: `user_options_${Y.value}`,
258
+ backgroundColor: e.value.style.chart.backgroundColor,
259
+ color: e.value.style.chart.color,
260
+ isPrinting: s(ee),
261
+ isImaging: s(te),
262
+ uid: M.value,
263
+ hasPdf: e.value.userOptions.buttons.pdf,
264
+ hasImg: e.value.userOptions.buttons.img,
265
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
266
+ hasXls: !1,
267
+ isFullscreen: S.value,
268
+ titles: { ...e.value.userOptions.buttonTitles },
269
+ chartElement: C.value,
270
+ position: e.value.userOptions.position,
271
+ hasAnnotator: e.value.userOptions.buttons.annotator,
272
+ isAnnotation: F.value,
273
+ callbacks: e.value.userOptions.callbacks,
274
+ printScale: e.value.userOptions.print.scale,
275
+ onToggleFullscreen: ue,
276
+ onGeneratePdf: s(ae),
277
+ onGenerateImage: s(le),
278
+ onToggleAnnotator: D,
279
+ style: j({
280
+ visibility: s(Q) ? s(L) ? "visible" : "hidden" : "visible"
281
+ })
282
+ }, Oe({ _: 2 }, [
283
+ t.$slots.menuIcon ? {
284
+ name: "menuIcon",
285
+ fn: O(({ isOpen: a, color: o }) => [
286
+ p(t.$slots, "menuIcon", N(R({ isOpen: a, color: o })), void 0, !0)
287
+ ]),
288
+ key: "0"
289
+ } : void 0,
290
+ t.$slots.optionPdf ? {
291
+ name: "optionPdf",
292
+ fn: O(() => [
293
+ p(t.$slots, "optionPdf", {}, void 0, !0)
294
+ ]),
295
+ key: "1"
296
+ } : void 0,
297
+ t.$slots.optionImg ? {
298
+ name: "optionImg",
299
+ fn: O(() => [
300
+ p(t.$slots, "optionImg", {}, void 0, !0)
301
+ ]),
302
+ key: "2"
303
+ } : void 0,
304
+ t.$slots.optionFullscreen ? {
305
+ name: "optionFullscreen",
306
+ fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
307
+ p(t.$slots, "optionFullscreen", N(R({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
308
+ ]),
309
+ key: "3"
310
+ } : void 0,
311
+ t.$slots.optionAnnotator ? {
312
+ name: "optionAnnotator",
313
+ fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
314
+ p(t.$slots, "optionAnnotator", N(R({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
315
+ ]),
316
+ key: "4"
317
+ } : void 0
318
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
319
+ (r(), u("svg", {
320
+ ref_key: "svgRef",
321
+ ref: Z,
322
+ xmlns: s(Ee),
323
+ class: X({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
324
+ viewBox: `0 0 ${B.value} ${G.value}`,
325
+ style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
326
+ }, [
327
+ Pe(s(me)),
328
+ t.$slots["chart-background"] ? (r(), u("foreignObject", {
329
+ key: 0,
330
+ x: 0,
331
+ y: 0,
332
+ width: n.value.width,
333
+ height: n.value.height,
334
+ style: {
335
+ pointerEvents: "none"
336
+ }
337
+ }, [
338
+ p(t.$slots, "chart-background", {}, void 0, !0)
339
+ ], 8, Qe)) : y("", !0),
340
+ e.value.style.chart.layout.curved ? (r(), u("g", Ze, [
341
+ (r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("path", {
342
+ d: a.curve,
343
+ "stroke-width": h.value.mark,
344
+ stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
345
+ "stroke-linecap": "round",
346
+ fill: "none",
347
+ class: X({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= i.value })
348
+ }, null, 10, et))), 256))
349
+ ])) : (r(), u("g", tt, [
350
+ (r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("line", {
351
+ x1: a.x1,
352
+ y1: a.y1,
353
+ x2: a.x2,
354
+ y2: a.y2,
355
+ "stroke-width": h.value.mark,
356
+ stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
357
+ "stroke-linecap": "round"
358
+ }, null, 8, at))), 256))
359
+ ])),
360
+ e.value.style.chart.percentage.show ? (r(), u("g", lt, [
361
+ s(J) ? (r(), u("rect", {
362
+ key: 0,
363
+ x: ne.value.x,
364
+ y: ne.value.y,
365
+ width: 40,
366
+ height: g.value.fontSize,
367
+ fill: "#6A6A6A80",
368
+ rx: 3
369
+ }, null, 8, ot)) : (r(), u("text", {
370
+ key: 1,
371
+ x: g.value.x,
372
+ y: g.value.y,
373
+ "font-size": g.value.fontSize,
374
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(he)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
375
+ "font-weight": g.value.bold ? "bold" : "normal",
376
+ "text-anchor": g.value.textAnchor
377
+ }, Ie(s(Le)(
378
+ e.value.style.chart.percentage.formatter,
379
+ i.value,
380
+ s(Ue)({
381
+ v: i.value,
382
+ s: "%",
383
+ r: e.value.style.chart.percentage.rounding
384
+ })
385
+ )), 9, st))
386
+ ])) : y("", !0),
387
+ p(t.$slots, "svg", { svg: n.value }, void 0, !0)
388
+ ], 14, Ke)),
389
+ t.$slots.watermark ? (r(), u("div", nt, [
390
+ p(t.$slots, "watermark", N(R({ isPrinting: s(ee) || s(te) })), void 0, !0)
391
+ ])) : y("", !0),
392
+ t.$slots.source ? (r(), u("div", {
393
+ key: 5,
394
+ ref_key: "source",
395
+ ref: q,
396
+ dir: "auto"
397
+ }, [
398
+ p(t.$slots, "source", {}, void 0, !0)
399
+ ], 512)) : y("", !0),
400
+ s(J) ? (r(), T(He, { key: 6 })) : y("", !0)
401
+ ], 46, Je));
402
+ }
403
+ }, kt = /* @__PURE__ */ We(rt, [["__scopeId", "data-v-74c1d831"]]);
404
+ export {
405
+ kt as default
406
+ };