vue-data-ui 3.0.0-next.5 → 3.0.0-next.50

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 (115) hide show
  1. package/dist/{Arrow-6c56sGJ3.js → Arrow-Z9jhaVP0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-CXFM6lrb.js} +2 -2
  3. package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-D3lVmh4q.js} +1 -1
  4. package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
  5. package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-CZydWpxG.js} +2 -2
  6. package/dist/{DataTable-DD2pZIgh.js → DataTable-DBPMgoC3.js} +2 -2
  7. package/dist/{Legend-DZZeyx5j.js → Legend-Dj4hW4ih.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-JPMlKVW3.js} +3 -3
  9. package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-_JpUHIQF.js} +1 -1
  10. package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-CiXy6ifX.js} +3 -3
  11. package/dist/{Shape-CFp_TwS5.js → Shape-BLUp5WPA.js} +43 -37
  12. package/dist/Slicer-QbudvRet.js +602 -0
  13. package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-Nh3_vlzT.js} +7 -7
  14. package/dist/{Title-zqtIOYc5.js → Title-CxOYqn0J.js} +1 -1
  15. package/dist/{Tooltip-Bo30Qf34.js → Tooltip-CzRs24i2.js} +23 -19
  16. package/dist/{UserOptions-Cgrlu96K.js → UserOptions-RZkXTOCa.js} +2 -2
  17. package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-CV2fR0EQ.js} +1 -1
  18. package/dist/{img-DJTFe-dE.js → img-B7ogJ4e0.js} +1 -1
  19. package/dist/{index-DFSXaw69.js → index-CJ_8wwwn.js} +1594 -1216
  20. package/dist/{pdf-D-ie2h2J.js → pdf-set5F9CM.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +324 -14
  23. package/dist/types/vue-data-ui.d.ts +324 -14
  24. package/dist/useAutoSizeLabelsInsideViewbox-CyuM0n69.js +41 -0
  25. package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-Co3NIfJz.js} +1 -1
  26. package/dist/{usePrinter-DXG9SdJr.js → usePrinter-Djgu-cC0.js} +2 -2
  27. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  28. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  29. package/dist/{vue-data-ui-DhThPvS0.js → vue-data-ui-HYXpyDKV.js} +64 -64
  30. package/dist/vue-data-ui.js +30 -29
  31. package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-CT_YtMoO.js} +6 -6
  32. package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-3yBUN0ar.js} +3 -3
  33. package/dist/vue-ui-age-pyramid-FUsbvtyA.js +834 -0
  34. package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-C4Z-9ldl.js} +2 -2
  35. package/dist/vue-ui-bullet-B1ALDthr.js +571 -0
  36. package/dist/vue-ui-candlestick-BuD3f7_o.js +999 -0
  37. package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-Dm_FdAF0.js} +4 -4
  38. package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-WTwQvrY9.js} +5 -5
  39. package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-CPVmSnYG.js} +8 -8
  40. package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-Bc8bJtl0.js} +26 -26
  41. package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-DfZVsgB6.js} +2 -2
  42. package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-BP5AhItc.js} +62 -62
  43. package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-FvXrM2xK.js} +2 -2
  44. package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-3JmvHI0A.js} +401 -375
  45. package/dist/vue-ui-donut-evolution-DiBD970y.js +1075 -0
  46. package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell-BiD393o3.js} +7 -7
  47. package/dist/vue-ui-flow-DbdQR23z.js +841 -0
  48. package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-DByaDRM7.js} +6 -6
  49. package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-C4Al6xQj.js} +60 -58
  50. package/dist/vue-ui-gauge-DjUtEfNU.js +791 -0
  51. package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-CzrxRz6L.js} +3 -3
  52. package/dist/vue-ui-heatmap-HVYUxTOT.js +1078 -0
  53. package/dist/vue-ui-history-plot-DXSpSL4A.js +1073 -0
  54. package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-DU8bOzeM.js} +3 -3
  55. package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-E4KhKAQz.js} +2 -2
  56. package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-DrFrNbBj.js} +46 -44
  57. package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-Cf_2QCYC.js} +7 -7
  58. package/dist/vue-ui-nested-donuts-BnA1KtIt.js +1286 -0
  59. package/dist/vue-ui-onion-B84CPvyH.js +776 -0
  60. package/dist/vue-ui-parallel-coordinate-plot-D4Ct2cvP.js +915 -0
  61. package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-8ksd3FSu.js} +59 -57
  62. package/dist/vue-ui-quick-chart-BY8Kd1LO.js +1761 -0
  63. package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-BUQaHh0L.js} +12 -10
  64. package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-Cn1_Hn2b.js} +2 -2
  65. package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-DPKDfjYx.js} +6 -6
  66. package/dist/vue-ui-ridgeline-zvRHpo_N.js +1153 -0
  67. package/dist/vue-ui-rings-Tw1dHWHH.js +728 -0
  68. package/dist/vue-ui-scatter-8LZZMVhD.js +1178 -0
  69. package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-DVxUvega.js} +3 -3
  70. package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-DJTTUjT_.js} +2 -2
  71. package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-Dsku4oGR.js} +6 -6
  72. package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-Br_fLEOr.js} +3 -3
  73. package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-DSBJsCu3.js} +3 -3
  74. package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-BX6SXzWN.js} +4 -4
  75. package/dist/vue-ui-sparkline-DgVH0bCY.js +489 -0
  76. package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-D-KbMYmo.js} +55 -53
  77. package/dist/vue-ui-stackbar-DWOm3J6d.js +1370 -0
  78. package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-Bi4PWqJG.js} +30 -28
  79. package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-Ac5mvoTX.js} +11 -11
  80. package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-DtN-NEea.js} +5 -5
  81. package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-Dm9VtfGM.js} +4 -4
  82. package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-CKzsQxea.js} +6 -6
  83. package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-CRuQHU_f.js} +5 -5
  84. package/dist/vue-ui-tiremarks-0mS5yMkd.js +406 -0
  85. package/dist/vue-ui-treemap-BkU919fN.js +1035 -0
  86. package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar-ByPC7JmK.js} +322 -306
  87. package/dist/vue-ui-waffle-GWXnMKeQ.js +910 -0
  88. package/dist/{vue-ui-wheel-CUgfhL9p.js → vue-ui-wheel-PP-IY2XR.js} +6 -6
  89. package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-Cc5c_8Z1.js} +12 -10
  90. package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-B1zbPwk3.js} +11 -9
  91. package/dist/vue-ui-xy-D7Sx_bPF.js +3760 -0
  92. package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas-sA_OEIMw.js} +265 -264
  93. package/package.json +1 -1
  94. package/dist/Slicer-Bba4UfIm.js +0 -577
  95. package/dist/vue-ui-age-pyramid-Bt0KEjza.js +0 -746
  96. package/dist/vue-ui-bullet-CWxvbrat.js +0 -513
  97. package/dist/vue-ui-candlestick-BmYaA6wk.js +0 -873
  98. package/dist/vue-ui-donut-evolution-D38U9QxB.js +0 -903
  99. package/dist/vue-ui-flow-k4KjXCTn.js +0 -765
  100. package/dist/vue-ui-gauge-DUpSrOgm.js +0 -738
  101. package/dist/vue-ui-heatmap-CqqXcJ8F.js +0 -877
  102. package/dist/vue-ui-history-plot-BiC39PhQ.js +0 -924
  103. package/dist/vue-ui-nested-donuts-C2kl6581.js +0 -1177
  104. package/dist/vue-ui-onion-Dk3OUNGJ.js +0 -701
  105. package/dist/vue-ui-parallel-coordinate-plot-B-r0h3BM.js +0 -807
  106. package/dist/vue-ui-quick-chart-CS-Uk49C.js +0 -1612
  107. package/dist/vue-ui-ridgeline-D55xotqc.js +0 -969
  108. package/dist/vue-ui-rings-D6gr6DBO.js +0 -685
  109. package/dist/vue-ui-scatter-hFI2YfFt.js +0 -1045
  110. package/dist/vue-ui-sparkline-CiVlvGOI.js +0 -459
  111. package/dist/vue-ui-stackbar-DHsxlaNI.js +0 -1207
  112. package/dist/vue-ui-tiremarks-DrFKdGSj.js +0 -358
  113. package/dist/vue-ui-treemap-C1m-cAh0.js +0 -965
  114. package/dist/vue-ui-waffle-Cr0JqMuU.js +0 -863
  115. package/dist/vue-ui-xy-BCFKGTws.js +0 -2980
@@ -0,0 +1,406 @@
1
+ import { defineAsyncComponent as G, computed as f, ref as v, toRefs as xe, watch as ie, onMounted as Ae, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as D, normalizeClass as H, 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, v as Fe, a as Te, w as Ne, o as Re, e as Me, x as he, X as Ee, i as Le, f as Ue } from "./index-CJ_8wwwn.js";
3
+ import { t as Be, u as Ge } from "./useResponsive-DfdjqQps.js";
4
+ import { u as De, B as He } from "./BaseScanner-DIK2NTdp.js";
5
+ import { u as je } from "./usePrinter-Djgu-cC0.js";
6
+ import { u as de } from "./useNestedProp-Co3NIfJz.js";
7
+ import { u as Xe } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Ve } from "./useChartAccessibility-9icAAmYg.js";
9
+ import qe from "./Title-CxOYqn0J.js";
10
+ import Ye from "./img-B7ogJ4e0.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 = G(() => import("./PenAndPaper-CiXy6ifX.js")), pe = G(() => import("./UserOptions-RZkXTOCa.js")), me = G(() => import("./PackageVersion-_JpUHIQF.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), j = v(null), X = v(null), V = v(0), q = v(0), $ = v(null), P = v(null), e = v(U()), { loading: Y, 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: W, keepUserOptionState: J } = Xe({ config: e.value }), { svgRef: K } = 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, le(), q.value += 1;
71
+ }, { deep: !0 });
72
+ const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = 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 ? ae(t.percentage) : i.value = t.percentage || 0;
79
+ }, { deep: !0 }), Ae(() => {
80
+ le();
81
+ });
82
+ function ae(t) {
83
+ let l = e.value.style.chart.animation.speed;
84
+ const a = Math.abs(t - i.value) / (l * 120);
85
+ function s() {
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(s);
87
+ }
88
+ s();
89
+ }
90
+ const _e = f(() => !!e.value.debug);
91
+ function le() {
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 ? j.value : null,
101
+ source: X.value
102
+ });
103
+ requestAnimationFrame(() => {
104
+ oe.value = Math.max(0.1, l), se.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
+ ae(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)), oe = v(e.value.style.chart.width), se = v(e.value.style.chart.height), o = f(() => ({
130
+ height: se.value,
131
+ width: oe.value
132
+ })), ne = f(() => ({
133
+ horizontal: {
134
+ x: g.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
135
+ y: o.value.height / 2 - g.value.fontSize / 2
136
+ },
137
+ vertical: {
138
+ x: o.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: (o.value.height - z.value) / 100 * 0.5,
143
+ space: (o.value.height - z.value) / 100 * 0.5
144
+ } : {
145
+ mark: (o.value.width - z.value) / 100 * 0.5,
146
+ space: (o.value.width - z.value) / 100 * 0.5
147
+ }), re = f(() => {
148
+ const t = [];
149
+ for (let a = 0; a < 100; a += 1) {
150
+ const s = 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) * (o.value.width - c.value.left - c.value.right) / 100 / 3 : 0, d = c.value.left + 4 + _, m = o.value.width - c.value.right - 4 - _, k = o.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, b = o.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: s
160
+ });
161
+ } else {
162
+ const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.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 = o.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: s
170
+ });
171
+ }
172
+ }
173
+ return t;
174
+ }), g = f(() => {
175
+ let t, l, a;
176
+ const s = e.value.style.chart.percentage.fontSize / 3;
177
+ return I.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, l = o.value.height - c.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - c.value.right + 8, l = o.value.height / 2 + s, 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, V.value += 1;
188
+ }
189
+ const F = v(!1);
190
+ function B() {
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(), s = 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: s
203
+ };
204
+ }
205
+ return ge({
206
+ getImage: $e,
207
+ generatePdf: ee,
208
+ generateImage: te,
209
+ toggleAnnotator: B,
210
+ toggleFullscreen: ue
211
+ }), (t, l) => (r(), u("div", {
212
+ ref_key: "tiremarksChart",
213
+ ref: C,
214
+ class: H(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
215
+ style: D(`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] = () => n(W)(!0)),
218
+ onMouseleave: l[1] || (l[1] = () => n(W)(!1))
219
+ }, [
220
+ e.value.userOptions.buttons.annotator ? (r(), T(n(ye), {
221
+ key: 0,
222
+ svgRef: n(K),
223
+ backgroundColor: e.value.style.chart.backgroundColor,
224
+ color: e.value.style.chart.color,
225
+ active: F.value,
226
+ onClose: B
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: j,
239
+ style: "width:100%;background:transparent;padding-bottom:12px"
240
+ }, [
241
+ (r(), T(qe, {
242
+ key: `title_${q.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 && (n(J) || n(L)) ? (r(), T(n(pe), {
256
+ ref: "details",
257
+ key: `user_options_${V.value}`,
258
+ backgroundColor: e.value.style.chart.backgroundColor,
259
+ color: e.value.style.chart.color,
260
+ isPrinting: n(Q),
261
+ isImaging: n(Z),
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: n(ee),
277
+ onGenerateImage: n(te),
278
+ onToggleAnnotator: B,
279
+ style: D({
280
+ visibility: n(J) ? n(L) ? "visible" : "hidden" : "visible"
281
+ })
282
+ }, Oe({ _: 2 }, [
283
+ t.$slots.menuIcon ? {
284
+ name: "menuIcon",
285
+ fn: O(({ isOpen: a, color: s }) => [
286
+ p(t.$slots, "menuIcon", N(R({ isOpen: a, color: s })), 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: s }) => [
307
+ p(t.$slots, "optionFullscreen", N(R({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
308
+ ]),
309
+ key: "3"
310
+ } : void 0,
311
+ t.$slots.optionAnnotator ? {
312
+ name: "optionAnnotator",
313
+ fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
314
+ p(t.$slots, "optionAnnotator", N(R({ toggleAnnotator: a, isAnnotator: s })), 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: K,
322
+ xmlns: n(Ee),
323
+ class: H({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
324
+ viewBox: `0 0 ${o.value.width} ${o.value.height}`,
325
+ style: D(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
326
+ }, [
327
+ Pe(n(me)),
328
+ t.$slots["chart-background"] ? (r(), u("foreignObject", {
329
+ key: 0,
330
+ x: 0,
331
+ y: 0,
332
+ width: o.value.width,
333
+ height: o.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, s) => (r(), u("path", {
342
+ d: a.curve,
343
+ "stroke-width": h.value.mark,
344
+ stroke: i.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
345
+ "stroke-linecap": "round",
346
+ fill: "none",
347
+ class: H({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= i.value })
348
+ }, null, 10, et))), 256))
349
+ ])) : (r(), u("g", tt, [
350
+ (r(!0), u(ce, null, ve(re.value, (a, s) => (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 >= s ? 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
+ n(Y) ? (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 ? n(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(n(Le)(
378
+ e.value.style.chart.percentage.formatter,
379
+ i.value,
380
+ n(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: o.value }, void 0, !0)
388
+ ], 14, Ke)),
389
+ t.$slots.watermark ? (r(), u("div", nt, [
390
+ p(t.$slots, "watermark", N(R({ isPrinting: n(Q) || n(Z) })), void 0, !0)
391
+ ])) : y("", !0),
392
+ t.$slots.source ? (r(), u("div", {
393
+ key: 5,
394
+ ref_key: "source",
395
+ ref: X,
396
+ dir: "auto"
397
+ }, [
398
+ p(t.$slots, "source", {}, void 0, !0)
399
+ ], 512)) : y("", !0),
400
+ n(Y) ? (r(), T(He, { key: 6 })) : y("", !0)
401
+ ], 46, Je));
402
+ }
403
+ }, kt = /* @__PURE__ */ We(rt, [["__scopeId", "data-v-d043cc94"]]);
404
+ export {
405
+ kt as default
406
+ };