vue-data-ui 3.2.8 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
  84. package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
  90. package/dist/useSvgExport-DrjCWun4.js +750 -0
  91. package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
  106. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
  107. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
  109. package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
  119. package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
  146. package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -0,0 +1,423 @@
1
+ import { defineAsyncComponent as j, computed as h, ref as v, toRefs as Ie, watch as ce, onMounted as ze, createElementBlock as u, openBlock as r, unref as s, normalizeStyle as X, normalizeClass as q, createBlock as R, createCommentVNode as p, createSlots as Fe, withCtx as O, renderSlot as m, normalizeProps as E, guardReactiveProps as M, createVNode as Te, Fragment as ve, renderList as he, toDisplayString as Ne } from "vue";
2
+ import { c as Re, t as Ee, q as Me, o as Le, f as Ue, i as de, X as Be, a as Ge, d as De } from "./lib-CEjkWSLj.js";
3
+ import { t as He, u as je } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Xe, a as ge } from "./useNestedProp-Ce3PwN8T.js";
5
+ import { u as qe, B as Ve } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ye } from "./usePrinter-DJ1iH-F_.js";
7
+ import { u as We } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Je } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Ke } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { t as Qe } from "./themes-Dw-dDudK.js";
11
+ import Ze from "./Title-Camz1Lce.js";
12
+ import et from "./img-J2dLIr8Y.js";
13
+ import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const at = ["id"], lt = ["xmlns", "viewBox"], ot = ["width", "height"], st = { key: 1 }, nt = ["d", "stroke-width", "stroke"], rt = { key: 2 }, ut = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], it = { key: 3 }, ct = ["x", "y", "height"], vt = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ht = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, dt = {
18
+ __name: "vue-ui-tiremarks",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ }
31
+ }
32
+ },
33
+ setup(fe, { expose: ye }) {
34
+ const pe = j(() => import("./PenAndPaper-Bo-lMUik.js")), me = j(() => import("./UserOptions-CSja1SGU.js")), ke = j(() => import("./PackageVersion-BfykJm_B.js")), { vue_ui_tiremarks: be } = Xe(), C = fe, we = h(() => !!C.dataset && Object.keys(C.dataset).length), L = v(Re()), _ = v(null), Ce = v(null), V = v(null), Y = v(null), W = v(0), J = v(0), $ = v(null), S = v(null), e = v(D()), { loading: K, FINAL_DATASET: U } = qe({
35
+ ...Ie(C),
36
+ FINAL_CONFIG: e,
37
+ prepareConfig: D,
38
+ skeletonDataset: { percentage: 50 },
39
+ skeletonConfig: Ee({
40
+ defaultConfig: e.value,
41
+ userConfig: {
42
+ userOptions: { show: !1 },
43
+ style: {
44
+ chart: {
45
+ backgroundColor: "#99999930",
46
+ animation: { use: !1 },
47
+ layout: {
48
+ activeColor: "#6A6A6A80",
49
+ inactiveColor: "#CACACA80",
50
+ ticks: {
51
+ gradient: { show: !1 }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ })
58
+ }), { userOptionsVisible: B, setUserOptionsVisibility: Q, keepUserOptionState: Z } = Je({ config: e.value }), { svgRef: G } = Ke({ config: e.value.style.chart.title });
59
+ function D() {
60
+ const t = ge({
61
+ userConfig: C.config,
62
+ defaultConfig: be
63
+ });
64
+ return t.theme ? {
65
+ ...ge({
66
+ userConfig: Qe.vue_ui_tiremarks[t.theme] || C.config,
67
+ defaultConfig: t
68
+ })
69
+ } : t;
70
+ }
71
+ ce(() => C.config, (t) => {
72
+ e.value = D(), B.value = !e.value.userOptions.showOnChartHover, z.value = e.value.style.chart.width, F.value = e.value.style.chart.height, se(), J.value += 1;
73
+ }, { deep: !0 });
74
+ const { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = Ye({
75
+ elementId: L.value,
76
+ fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
77
+ options: e.value.userOptions.print
78
+ }), _e = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Me(U.value.percentage));
79
+ ce(() => U.value, (t) => {
80
+ e.value.style.chart.animation.use ? oe(t.percentage) : i.value = t.percentage || 0;
81
+ }, { deep: !0 }), ze(() => {
82
+ se();
83
+ });
84
+ function oe(t) {
85
+ let l = e.value.style.chart.animation.speed;
86
+ const a = Math.abs(t - i.value) / (l * 120);
87
+ function o() {
88
+ 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);
89
+ }
90
+ o();
91
+ }
92
+ const $e = h(() => !!e.value.debug);
93
+ function se() {
94
+ if (Le(C.dataset) && Ue({
95
+ componentName: "VueUiTiremarks",
96
+ type: "dataset",
97
+ debug: $e.value
98
+ }), e.value.responsive) {
99
+ const t = He(() => {
100
+ const { width: l, height: a } = je({
101
+ chart: _.value,
102
+ title: e.value.style.chart.title.text ? V.value : null,
103
+ source: Y.value
104
+ });
105
+ requestAnimationFrame(() => {
106
+ z.value = Math.max(0.1, l), F.value = Math.max(0.1, a - 12);
107
+ });
108
+ });
109
+ $.value && (S.value && $.value.unobserve(S.value), $.value.disconnect()), $.value = new ResizeObserver(t), S.value = _.value.parentNode, $.value.observe(S.value);
110
+ }
111
+ oe(U.value.percentage || 0);
112
+ }
113
+ const P = h(() => e.value.style.chart.layout.display === "vertical"), c = h(() => {
114
+ const t = e.value.style.chart.percentage.show, l = {
115
+ top: t ? 48 : 12,
116
+ left: t ? 64 : 16,
117
+ right: t ? 64 : 16,
118
+ bottom: t ? 48 : 12
119
+ };
120
+ return P.value ? {
121
+ top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
122
+ left: 3,
123
+ right: 3,
124
+ bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
125
+ } : {
126
+ top: 0,
127
+ bottom: 0,
128
+ left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
129
+ right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
130
+ };
131
+ }), I = h(() => Object.values(c.value).reduce((t, l) => t + l, 0)), z = v(e.value.style.chart.width), F = v(e.value.style.chart.height), n = h(() => ({
132
+ height: F.value,
133
+ width: z.value
134
+ })), ne = h(() => ({
135
+ horizontal: {
136
+ x: f.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
137
+ y: n.value.height / 2 - f.value.fontSize / 2
138
+ },
139
+ vertical: {
140
+ x: n.value.width / 2 - 20,
141
+ y: f.value.y - f.value.fontSize / 2
142
+ }
143
+ })[e.value.style.chart.layout.display]), d = h(() => P.value ? {
144
+ mark: (n.value.height - I.value) / 100 * 0.5,
145
+ space: (n.value.height - I.value) / 100 * 0.5
146
+ } : {
147
+ mark: (n.value.width - I.value) / 100 * 0.5,
148
+ space: (n.value.width - I.value) / 100 * 0.5
149
+ }), re = h(() => {
150
+ const t = [];
151
+ for (let a = 0; a < 100; a += 1) {
152
+ const o = e.value.style.chart.layout.ticks.gradient.show ? de(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
153
+ if (P.value) {
154
+ const y = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.width - c.value.left - c.value.right) / 100 / 3 : 0, g = c.value.left + 4 + y, k = n.value.width - c.value.right - 4 - y, b = n.value.height - c.value.bottom - a * d.value.mark - a * d.value.space - d.value.mark, w = n.value.height - c.value.bottom - a * d.value.mark - a * d.value.space - d.value.mark, x = (k - g) / e.value.style.chart.layout.curveAngleX, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
155
+ t.push({
156
+ x1: g,
157
+ x2: k,
158
+ y1: b,
159
+ y2: w,
160
+ curve: `M ${g} ${b} C ${g + x} ${b - A}, ${k - x} ${w - A}, ${k} ${w}`,
161
+ color: o
162
+ });
163
+ } else {
164
+ const y = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, g = c.value.left + a * d.value.mark + a * d.value.space - d.value.mark, k = g, b = c.value.top + 4 + y, w = n.value.height - c.value.bottom - 4 - y, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), A = (w - b) / e.value.style.chart.layout.curveAngleX;
165
+ t.push({
166
+ x1: g,
167
+ x2: k,
168
+ y1: b,
169
+ y2: w,
170
+ curve: `M ${g} ${b} C ${g + x} ${b + A}, ${k + x} ${w - A}, ${k} ${w}`,
171
+ color: o
172
+ });
173
+ }
174
+ }
175
+ return t;
176
+ }), f = h(() => {
177
+ let t, l, a;
178
+ const o = e.value.style.chart.percentage.fontSize / 3;
179
+ return P.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"), {
180
+ x: t,
181
+ y: l,
182
+ textAnchor: a,
183
+ bold: e.value.style.chart.percentage.bold,
184
+ fontSize: e.value.style.chart.percentage.fontSize,
185
+ fill: e.value.style.chart.percentage.color
186
+ };
187
+ }), T = v(!1);
188
+ function ue(t) {
189
+ T.value = t, W.value += 1;
190
+ }
191
+ const N = v(!1);
192
+ function H() {
193
+ N.value = !N.value;
194
+ }
195
+ async function xe({ scale: t = 2 } = {}) {
196
+ if (!_.value) return;
197
+ const { width: l, height: a } = _.value.getBoundingClientRect(), o = l / a, { imageUri: y, base64: g } = await et({ domElement: _.value, base64: !0, img: !0, scale: t });
198
+ return {
199
+ imageUri: y,
200
+ base64: g,
201
+ title: e.value.style.chart.title.text,
202
+ width: l,
203
+ height: a,
204
+ aspectRatio: o
205
+ };
206
+ }
207
+ const Ae = h(() => e.value.style.chart.backgroundColor), Oe = h(() => e.value.style.chart.title), { exportSvg: Se, getSvg: Pe } = We({
208
+ svg: G,
209
+ title: Oe,
210
+ backgroundColor: Ae
211
+ });
212
+ async function ie({ isCb: t }) {
213
+ if (t) {
214
+ const { blob: l, url: a, text: o, dataUrl: y } = await Pe();
215
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: y });
216
+ } else
217
+ Se();
218
+ }
219
+ return ye({
220
+ getImage: xe,
221
+ generatePdf: ae,
222
+ generateImage: le,
223
+ generateSvg: ie,
224
+ toggleAnnotator: H,
225
+ toggleFullscreen: ue
226
+ }), (t, l) => (r(), u("div", {
227
+ ref_key: "tiremarksChart",
228
+ ref: _,
229
+ class: q(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
230
+ style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
231
+ id: L.value,
232
+ onMouseenter: l[0] || (l[0] = () => s(Q)(!0)),
233
+ onMouseleave: l[1] || (l[1] = () => s(Q)(!1))
234
+ }, [
235
+ e.value.userOptions.buttons.annotator ? (r(), R(s(pe), {
236
+ key: 0,
237
+ svgRef: s(G),
238
+ backgroundColor: e.value.style.chart.backgroundColor,
239
+ color: e.value.style.chart.color,
240
+ active: N.value,
241
+ onClose: H
242
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
243
+ _e.value ? (r(), u("div", {
244
+ key: 1,
245
+ ref_key: "noTitle",
246
+ ref: Ce,
247
+ class: "vue-data-ui-no-title-space",
248
+ style: "height:36px; width: 100%;background:transparent"
249
+ }, null, 512)) : p("", !0),
250
+ e.value.style.chart.title.text ? (r(), u("div", {
251
+ key: 2,
252
+ ref_key: "chartTitle",
253
+ ref: V,
254
+ style: "width:100%;background:transparent;padding-bottom:12px"
255
+ }, [
256
+ (r(), R(Ze, {
257
+ key: `title_${J.value}`,
258
+ config: {
259
+ title: {
260
+ cy: "wheel-title",
261
+ ...e.value.style.chart.title
262
+ },
263
+ subtitle: {
264
+ cy: "wheel-subtitle",
265
+ ...e.value.style.chart.title.subtitle
266
+ }
267
+ }
268
+ }, null, 8, ["config"]))
269
+ ], 512)) : p("", !0),
270
+ e.value.userOptions.show && we.value && (s(Z) || s(B)) ? (r(), R(s(me), {
271
+ ref: "details",
272
+ key: `user_options_${W.value}`,
273
+ backgroundColor: e.value.style.chart.backgroundColor,
274
+ color: e.value.style.chart.color,
275
+ isPrinting: s(ee),
276
+ isImaging: s(te),
277
+ uid: L.value,
278
+ hasPdf: e.value.userOptions.buttons.pdf,
279
+ hasImg: e.value.userOptions.buttons.img,
280
+ hasSvg: e.value.userOptions.buttons.svg,
281
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
282
+ hasXls: !1,
283
+ isFullscreen: T.value,
284
+ titles: { ...e.value.userOptions.buttonTitles },
285
+ chartElement: _.value,
286
+ position: e.value.userOptions.position,
287
+ hasAnnotator: e.value.userOptions.buttons.annotator,
288
+ isAnnotation: N.value,
289
+ callbacks: e.value.userOptions.callbacks,
290
+ printScale: e.value.userOptions.print.scale,
291
+ onToggleFullscreen: ue,
292
+ onGeneratePdf: s(ae),
293
+ onGenerateImage: s(le),
294
+ onGenerateSvg: ie,
295
+ onToggleAnnotator: H,
296
+ style: X({
297
+ visibility: s(Z) ? s(B) ? "visible" : "hidden" : "visible"
298
+ })
299
+ }, Fe({ _: 2 }, [
300
+ t.$slots.menuIcon ? {
301
+ name: "menuIcon",
302
+ fn: O(({ isOpen: a, color: o }) => [
303
+ m(t.$slots, "menuIcon", E(M({ isOpen: a, color: o })), void 0, !0)
304
+ ]),
305
+ key: "0"
306
+ } : void 0,
307
+ t.$slots.optionPdf ? {
308
+ name: "optionPdf",
309
+ fn: O(() => [
310
+ m(t.$slots, "optionPdf", {}, void 0, !0)
311
+ ]),
312
+ key: "1"
313
+ } : void 0,
314
+ t.$slots.optionImg ? {
315
+ name: "optionImg",
316
+ fn: O(() => [
317
+ m(t.$slots, "optionImg", {}, void 0, !0)
318
+ ]),
319
+ key: "2"
320
+ } : void 0,
321
+ t.$slots.optionFullscreen ? {
322
+ name: "optionFullscreen",
323
+ fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
324
+ m(t.$slots, "optionFullscreen", E(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
325
+ ]),
326
+ key: "3"
327
+ } : void 0,
328
+ t.$slots.optionAnnotator ? {
329
+ name: "optionAnnotator",
330
+ fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
331
+ m(t.$slots, "optionAnnotator", E(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
332
+ ]),
333
+ key: "4"
334
+ } : void 0
335
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
336
+ (r(), u("svg", {
337
+ ref_key: "svgRef",
338
+ ref: G,
339
+ xmlns: s(Be),
340
+ class: q({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
341
+ viewBox: `0 0 ${z.value} ${F.value}`,
342
+ style: X(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
343
+ }, [
344
+ Te(s(ke)),
345
+ t.$slots["chart-background"] ? (r(), u("foreignObject", {
346
+ key: 0,
347
+ x: 0,
348
+ y: 0,
349
+ width: n.value.width,
350
+ height: n.value.height,
351
+ style: {
352
+ pointerEvents: "none"
353
+ }
354
+ }, [
355
+ m(t.$slots, "chart-background", {}, void 0, !0)
356
+ ], 8, ot)) : p("", !0),
357
+ e.value.style.chart.layout.curved ? (r(), u("g", st, [
358
+ (r(!0), u(ve, null, he(re.value, (a, o) => (r(), u("path", {
359
+ d: a.curve,
360
+ "stroke-width": d.value.mark,
361
+ stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
362
+ "stroke-linecap": "round",
363
+ fill: "none",
364
+ class: q({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= i.value })
365
+ }, null, 10, nt))), 256))
366
+ ])) : (r(), u("g", rt, [
367
+ (r(!0), u(ve, null, he(re.value, (a, o) => (r(), u("line", {
368
+ x1: a.x1,
369
+ y1: a.y1,
370
+ x2: a.x2,
371
+ y2: a.y2,
372
+ "stroke-width": d.value.mark,
373
+ stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
374
+ "stroke-linecap": "round"
375
+ }, null, 8, ut))), 256))
376
+ ])),
377
+ e.value.style.chart.percentage.show ? (r(), u("g", it, [
378
+ s(K) ? (r(), u("rect", {
379
+ key: 0,
380
+ x: ne.value.x,
381
+ y: ne.value.y,
382
+ width: 40,
383
+ height: f.value.fontSize,
384
+ fill: "#6A6A6A80",
385
+ rx: 3
386
+ }, null, 8, ct)) : (r(), u("text", {
387
+ key: 1,
388
+ x: f.value.x,
389
+ y: f.value.y,
390
+ "font-size": f.value.fontSize,
391
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(de)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
392
+ "font-weight": f.value.bold ? "bold" : "normal",
393
+ "text-anchor": f.value.textAnchor
394
+ }, Ne(s(Ge)(
395
+ e.value.style.chart.percentage.formatter,
396
+ i.value,
397
+ s(De)({
398
+ v: i.value,
399
+ s: "%",
400
+ r: e.value.style.chart.percentage.rounding
401
+ })
402
+ )), 9, vt))
403
+ ])) : p("", !0),
404
+ m(t.$slots, "svg", { svg: n.value }, void 0, !0)
405
+ ], 14, lt)),
406
+ t.$slots.watermark ? (r(), u("div", ht, [
407
+ m(t.$slots, "watermark", E(M({ isPrinting: s(ee) || s(te) })), void 0, !0)
408
+ ])) : p("", !0),
409
+ t.$slots.source ? (r(), u("div", {
410
+ key: 5,
411
+ ref_key: "source",
412
+ ref: Y,
413
+ dir: "auto"
414
+ }, [
415
+ m(t.$slots, "source", {}, void 0, !0)
416
+ ], 512)) : p("", !0),
417
+ s(K) ? (r(), R(Ve, { key: 6 })) : p("", !0)
418
+ ], 46, at));
419
+ }
420
+ }, Ot = /* @__PURE__ */ tt(dt, [["__scopeId", "data-v-9473b7f9"]]);
421
+ export {
422
+ Ot as default
423
+ };