vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,337 +0,0 @@
1
- import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
2
- import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-DvIXJm6t.js";
3
- import { t as Me, u as Te } from "./useResponsive-DfdjqQps.js";
4
- import { u as ne } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Ne } from "./usePrinter-CWnXbGMb.js";
6
- import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xe from "./Title-Gi81VwUM.js";
9
- import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
11
- key: 5,
12
- class: "vue-data-ui-watermark"
13
- }, qe = {
14
- __name: "vue-ui-wheel",
15
- props: {
16
- config: {
17
- type: Object,
18
- default() {
19
- return {};
20
- }
21
- },
22
- dataset: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- }
28
- },
29
- setup(oe, { expose: se }) {
30
- const ue = $(() => import("./PenAndPaper-BPTpbnay.js")), re = $(() => import("./vue-ui-skeleton-BAOt2neL.js")), ie = $(() => import("./UserOptions-CBEK6_jo.js")), ce = $(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_wheel: ve } = $e(), d = oe, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
31
- get: () => j(),
32
- set: (t) => t
33
- }), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
34
- function j() {
35
- const t = ne({
36
- userConfig: d.config,
37
- defaultConfig: ve
38
- });
39
- return t.theme ? {
40
- ...ne({
41
- userConfig: Ie.vue_ui_wheel[t.theme] || d.config,
42
- defaultConfig: t
43
- })
44
- } : t;
45
- }
46
- Q(() => d.config, (t) => {
47
- e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(), E.value += 1;
48
- }, { deep: !0 });
49
- const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } = Ne({
50
- elementId: x.value,
51
- fileName: e.value.style.chart.title.text || "vue-ui-wheel",
52
- options: e.value.userOptions.print
53
- }), de = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), n = c({
54
- size: 360,
55
- height: 360,
56
- width: 360
57
- }), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
58
- radius: Math.min(n.value.width, n.value.height) * 0.9 / 2,
59
- centerX: n.value.width / 2,
60
- centerY: n.value.height / 2
61
- }));
62
- function q(t, o = 1) {
63
- return {
64
- x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * o,
65
- y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * o
66
- };
67
- }
68
- const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
69
- Q(() => d.dataset, (t) => {
70
- e.value.style.chart.animation.use ? J(t.percentage) : r.value = t.percentage || 0;
71
- }, { deep: !0 });
72
- const f = Z(null), g = Z(null);
73
- ke(() => {
74
- V();
75
- });
76
- function V() {
77
- if (Ae(d.dataset) && Pe({
78
- componentName: "VueUiWheel",
79
- type: "dataset"
80
- }), J(d.dataset.percentage || 0), e.value.responsive) {
81
- const t = Me(() => {
82
- const { width: o, height: a } = Te({
83
- chart: w.value,
84
- title: e.value.style.chart.title.text ? R.value : null,
85
- source: U.value,
86
- noTitle: X.value
87
- });
88
- requestAnimationFrame(() => {
89
- n.value.width = o, n.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(o, a);
90
- });
91
- });
92
- f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect()), f.value = new ResizeObserver(t), g.value = w.value.parentNode, f.value.observe(g.value);
93
- }
94
- }
95
- we(() => {
96
- f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect());
97
- });
98
- function J(t) {
99
- let o = e.value.style.chart.animation.speed;
100
- const a = Math.abs(t - r.value) / (o * 120);
101
- function i() {
102
- 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);
103
- }
104
- i();
105
- }
106
- const m = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / m.value), K = p(() => {
107
- const t = [];
108
- for (let o = 0; o < m.value; o += 1) {
109
- const a = r.value > o * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: pe } = q(n.value.size / m.value * o), { x: ge, y: me } = q(n.value.size / m.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
110
- t.push({
111
- x1: i,
112
- y1: pe,
113
- x2: ge,
114
- y2: me,
115
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? ae(a, o * b.value / m.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
116
- });
117
- }
118
- return t;
119
- }), ye = p(() => xe({ series: K.value.map((t) => ({
120
- name: "",
121
- value: 1,
122
- color: t.color
123
- })) }, 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);
124
- function fe(t) {
125
- C.value = t, N.value += 1;
126
- }
127
- const O = c(!1);
128
- function z() {
129
- O.value = !O.value;
130
- }
131
- return se({
132
- generatePdf: H,
133
- generateImage: W,
134
- toggleAnnotator: z
135
- }), (t, o) => (s(), v("div", {
136
- class: "vue-ui-wheel",
137
- ref_key: "wheelChart",
138
- ref: w,
139
- id: x.value,
140
- style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
141
- onMouseenter: o[0] || (o[0] = () => l(L)(!0)),
142
- onMouseleave: o[1] || (o[1] = () => l(L)(!1))
143
- }, [
144
- e.value.userOptions.buttons.annotator ? (s(), _(l(ue), {
145
- key: 0,
146
- svgRef: l(G),
147
- backgroundColor: e.value.style.chart.backgroundColor,
148
- color: e.value.style.chart.color,
149
- active: O.value,
150
- onClose: z
151
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
152
- de.value ? (s(), v("div", {
153
- key: 1,
154
- ref_key: "noTitle",
155
- ref: X,
156
- class: "vue-data-ui-no-title-space",
157
- style: "height:36px; width: 100%;background:transparent"
158
- }, null, 512)) : h("", !0),
159
- e.value.style.chart.title.text ? (s(), v("div", {
160
- key: 2,
161
- ref_key: "chartTitle",
162
- ref: R,
163
- style: "width:100%;background:transparent;padding-bottom:12px"
164
- }, [
165
- (s(), _(Xe, {
166
- key: `title_${E.value}`,
167
- config: {
168
- title: {
169
- cy: "wheel-title",
170
- ...e.value.style.chart.title
171
- },
172
- subtitle: {
173
- cy: "wheel-subtitle",
174
- ...e.value.style.chart.title.subtitle
175
- }
176
- }
177
- }, null, 8, ["config"]))
178
- ], 512)) : h("", !0),
179
- e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(), _(l(ie), {
180
- ref_key: "details",
181
- ref: he,
182
- key: `user_options_${N.value}`,
183
- backgroundColor: e.value.style.chart.backgroundColor,
184
- color: e.value.style.chart.color,
185
- isPrinting: l(D),
186
- isImaging: l(Y),
187
- uid: x.value,
188
- hasPdf: e.value.userOptions.buttons.pdf,
189
- hasImg: e.value.userOptions.buttons.img,
190
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
191
- hasXls: !1,
192
- isFullscreen: C.value,
193
- position: e.value.userOptions.position,
194
- titles: { ...e.value.userOptions.buttonTitles },
195
- hasAnnotator: e.value.userOptions.buttons.annotator,
196
- isAnnotation: O.value,
197
- chartElement: w.value,
198
- callbacks: e.value.userOptions.callbacks,
199
- printScale: e.value.userOptions.print.scale,
200
- onToggleFullscreen: fe,
201
- onGeneratePdf: l(H),
202
- onGenerateImage: l(W),
203
- onToggleAnnotator: z,
204
- style: M({
205
- visibility: l(B) ? l(F) ? "visible" : "hidden" : "visible"
206
- })
207
- }, be({ _: 2 }, [
208
- t.$slots.menuIcon ? {
209
- name: "menuIcon",
210
- fn: k(({ isOpen: a, color: i }) => [
211
- y(t.$slots, "menuIcon", I(A({ isOpen: a, color: i })), void 0, !0)
212
- ]),
213
- key: "0"
214
- } : void 0,
215
- t.$slots.optionPdf ? {
216
- name: "optionPdf",
217
- fn: k(() => [
218
- y(t.$slots, "optionPdf", {}, void 0, !0)
219
- ]),
220
- key: "1"
221
- } : void 0,
222
- t.$slots.optionImg ? {
223
- name: "optionImg",
224
- fn: k(() => [
225
- y(t.$slots, "optionImg", {}, void 0, !0)
226
- ]),
227
- key: "2"
228
- } : void 0,
229
- t.$slots.optionFullscreen ? {
230
- name: "optionFullscreen",
231
- fn: k(({ toggleFullscreen: a, isFullscreen: i }) => [
232
- y(t.$slots, "optionFullscreen", I(A({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
233
- ]),
234
- key: "3"
235
- } : void 0,
236
- t.$slots.optionAnnotator ? {
237
- name: "optionAnnotator",
238
- fn: k(({ toggleAnnotator: a, isAnnotator: i }) => [
239
- y(t.$slots, "optionAnnotator", I(A({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
240
- ]),
241
- key: "4"
242
- } : void 0
243
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
244
- P.value ? (s(), v("svg", {
245
- key: 4,
246
- ref_key: "svgRef",
247
- ref: G,
248
- xmlns: l(Fe),
249
- class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
250
- viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
251
- style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
252
- }, [
253
- Ce(l(ce)),
254
- t.$slots["chart-background"] ? (s(), v("foreignObject", {
255
- key: 0,
256
- x: 0,
257
- y: 0,
258
- width: n.value.width <= 0 ? 10 : n.value.width,
259
- height: n.value.height <= 0 ? 10 : n.value.height,
260
- style: {
261
- pointerEvents: "none"
262
- }
263
- }, [
264
- y(t.$slots, "chart-background", {}, void 0, !0)
265
- ], 8, Ge)) : h("", !0),
266
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(ee, { key: 1 }, te(K.value, (a, i) => (s(), v("line", {
267
- x1: a.x1,
268
- x2: a.x2,
269
- y1: a.y1,
270
- y2: a.y2,
271
- stroke: a.color,
272
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(n.value.width, n.value.height),
273
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
274
- class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
275
- }, null, 10, je))), 256)) : (s(!0), v(ee, { key: 2 }, te(ye.value, (a, i) => (s(), v("path", {
276
- d: a.arcSlice,
277
- fill: a.color,
278
- class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
279
- }, null, 10, De))), 256)),
280
- e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
281
- key: 3,
282
- cx: u.value.centerX,
283
- cy: u.value.centerY,
284
- r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
285
- stroke: e.value.style.chart.layout.innerCircle.stroke,
286
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
287
- fill: "none"
288
- }, null, 8, Ye)) : h("", !0),
289
- e.value.style.chart.layout.percentage.show ? (s(), v("text", {
290
- key: 4,
291
- x: u.value.centerX,
292
- y: u.value.centerY + S.value / 3,
293
- "font-size": S.value,
294
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(ae)(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,
295
- "text-anchor": "middle",
296
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
297
- style: { "font-variant-numeric": "tabluar-nums" }
298
- }, Oe(l(Se)(
299
- e.value.style.chart.layout.percentage.formatter,
300
- l(le)(r.value),
301
- l(ze)({
302
- v: l(le)(r.value),
303
- s: "%",
304
- r: e.value.style.chart.layout.percentage.rounding
305
- })
306
- )), 9, He)) : h("", !0),
307
- y(t.$slots, "svg", { svg: n.value }, void 0, !0)
308
- ], 14, Be)) : h("", !0),
309
- t.$slots.watermark ? (s(), v("div", We, [
310
- y(t.$slots, "watermark", I(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
311
- ])) : h("", !0),
312
- t.$slots.source ? (s(), v("div", {
313
- key: 6,
314
- ref_key: "source",
315
- ref: U,
316
- dir: "auto"
317
- }, [
318
- y(t.$slots, "source", {}, void 0, !0)
319
- ], 512)) : h("", !0),
320
- P.value ? h("", !0) : (s(), _(l(re), {
321
- key: 7,
322
- config: {
323
- type: "wheel",
324
- style: {
325
- backgroundColor: e.value.style.chart.backgroundColor,
326
- wheel: {
327
- color: "#CCCCCC"
328
- }
329
- }
330
- }
331
- }, null, 8, ["config"]))
332
- ], 44, Le));
333
- }
334
- }, nt = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-88c72001"]]);
335
- export {
336
- nt as default
337
- };