vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,16 +1,17 @@
1
- import { defineAsyncComponent as G, computed as y, ref as p, watch as ke, shallowRef as be, onMounted as De, onBeforeUnmount as Be, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as q, normalizeClass as _e, createBlock as W, createCommentVNode as c, createElementVNode as m, withCtx as X, toDisplayString as M, createSlots as Ve, renderSlot as x, normalizeProps as j, guardReactiveProps as T, createVNode as qe, Fragment as g, renderList as S, mergeProps as Y } from "vue";
2
- import { u as He, c as Ze, t as Je, p as xe, a as Ke, b as Qe, o as we, d as et, e as U, g as Se, m as H, N as F, O as tt, X as at, s as Z, n as lt, i as J, f as K, E as Q } from "./index-DMqAxz7R.js";
3
- import { t as rt, u as st } from "./useResponsive-DfdjqQps.js";
4
- import { u as $e } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as ot } from "./usePrinter-COkTjv6C.js";
6
- import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
8
- import it from "./Title-D29apS4l.js";
9
- import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "height"], ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], gt = ["stop-color"], kt = ["id"], bt = ["stdDeviation"], _t = { key: 1 }, xt = ["d", "fill", "stroke"], wt = ["d", "fill", "stroke"], St = ["d", "fill"], $t = ["id", "d"], zt = ["fill", "font-size", "font-weight"], Ft = ["href", "startOffset"], Ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Ot = ["d", "filter"], Mt = ["stroke", "stroke-width"], Pt = ["stroke", "stroke-width"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = { key: 8 }, Yt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], At = ["x", "y", "font-size", "font-weight", "fill"], Rt = { key: 0 }, Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Wt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], jt = { key: 1 }, Tt = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Lt = ["x", "y", "font-size", "fill"], Dt = {
1
+ import { defineAsyncComponent as G, computed as y, ref as m, watch as be, shallowRef as _e, onMounted as De, onBeforeUnmount as Ve, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as q, normalizeClass as we, createBlock as U, createCommentVNode as c, createElementVNode as g, withCtx as I, toDisplayString as P, createSlots as qe, renderSlot as x, normalizeProps as W, guardReactiveProps as j, createVNode as He, Fragment as k, renderList as S, mergeProps as A } from "vue";
2
+ import { u as Ze, c as Je, t as Ke, p as xe, a as Qe, b as et, o as Se, d as tt, e as T, g as $e, m as H, N as C, O as at, X as lt, s as Z, n as rt, i as J, f as K, E as Q } from "./index-BzfnuLnw.js";
3
+ import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ze } from "./useNestedProp-DorElw91.js";
5
+ import { u as ut } from "./usePrinter-C9qkgv0r.js";
6
+ import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as it } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ct from "./Title-pVYRzQXY.js";
9
+ import vt from "./img-ku4zevVD.js";
10
+ import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "height"], pt = ["id"], gt = ["stop-color"], kt = ["stop-color"], bt = ["stop-color"], _t = ["id"], wt = ["stdDeviation"], xt = { key: 1 }, St = ["d", "fill", "stroke"], $t = ["d", "fill", "stroke"], zt = ["d", "fill"], Ct = ["id", "d"], Ft = ["fill", "font-size", "font-weight"], Ot = ["href", "startOffset"], Mt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Pt = ["d", "filter"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = ["stroke", "stroke-width"], Yt = ["stroke", "stroke-width"], At = { key: 8 }, Rt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Et = ["x", "y", "font-size", "font-weight", "fill"], Gt = { key: 0 }, Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], jt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Tt = { key: 1 }, Lt = ["d", "fill", "stroke", "stroke-width"], Bt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Dt = ["x", "y", "font-size", "fill"], Vt = {
11
12
  key: 5,
12
13
  class: "vue-data-ui-watermark"
13
- }, Bt = {
14
+ }, qt = {
14
15
  __name: "vue-ui-gauge",
15
16
  props: {
16
17
  config: {
@@ -26,33 +27,33 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
26
27
  }
27
28
  }
28
29
  },
29
- setup(L, { expose: ze }) {
30
- const Fe = G(() => import("./PenAndPaper-DhBJsnob.js")), Ce = G(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Oe = G(() => import("./UserOptions-Bdit7AWO.js")), Me = G(() => import("./PackageVersion-D0VPY8-5.js")), { vue_ui_gauge: Pe } = He(), d = L, A = y(() => !!d.dataset && Object.keys(d.dataset).length > 0 && d.dataset.series && d.dataset.series.length), b = p(Ze()), Ne = p(null), ee = p(0), R = p(null), te = p(null), ae = p(null), le = p(null), re = p(null), se = p(0), e = y({
30
+ setup(L, { expose: Ce }) {
31
+ const Fe = G(() => import("./PenAndPaper-Cx1-5zdD.js")), Oe = G(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Me = G(() => import("./UserOptions-DAsRxxrf.js")), Pe = G(() => import("./PackageVersion-CAkNkiIG.js")), { vue_ui_gauge: Ne } = Ze(), d = L, R = y(() => !!d.dataset && Object.keys(d.dataset).length > 0 && d.dataset.series && d.dataset.series.length), w = m(Je()), Xe = m(null), ee = m(0), F = m(null), te = m(null), ae = m(null), le = m(null), re = m(null), se = m(0), e = y({
31
32
  get: () => ie(),
32
33
  set: (t) => t
33
- }), { userOptionsVisible: D, setUserOptionsVisibility: oe, keepUserOptionState: ue } = ut({ config: e.value }), { svgRef: ne } = nt({ config: e.value.style.chart.title });
34
- ke(() => d.config, (t) => {
35
- e.value = ie(), D.value = !e.value.userOptions.showOnChartHover, fe(), se.value += 1;
34
+ }), { userOptionsVisible: B, setUserOptionsVisibility: oe, keepUserOptionState: ue } = nt({ config: e.value }), { svgRef: ne } = it({ config: e.value.style.chart.title });
35
+ be(() => d.config, (t) => {
36
+ e.value = ie(), B.value = !e.value.userOptions.showOnChartHover, fe(), se.value += 1;
36
37
  }, { deep: !0 });
37
38
  function ie() {
38
- const t = $e({
39
+ const t = ze({
39
40
  userConfig: d.config,
40
- defaultConfig: Pe
41
+ defaultConfig: Ne
41
42
  });
42
43
  return t.theme ? {
43
- ...$e({
44
- userConfig: Ke.vue_ui_gauge[t.theme] || d.config,
44
+ ...ze({
45
+ userConfig: Qe.vue_ui_gauge[t.theme] || d.config,
45
46
  defaultConfig: t
46
47
  }),
47
- customPalette: Je[t.theme] || xe
48
+ customPalette: Ke[t.theme] || xe
48
49
  } : t;
49
50
  }
50
- const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ot({
51
- elementId: `vue-ui-gauge_${b.value}`,
51
+ const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ut({
52
+ elementId: `vue-ui-gauge_${w.value}`,
52
53
  fileName: e.value.style.chart.title.text || "vue-ui-gauge",
53
54
  options: e.value.userOptions.print
54
- }), Xe = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = y(() => Qe(e.value.customPalette)), C = y(() => {
55
- if (!A.value || we(d.dataset.series || {}))
55
+ }), Ie = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => et(e.value.customPalette)), O = y(() => {
56
+ if (!R.value || Se(d.dataset.series || {}))
56
57
  return {
57
58
  value: 0,
58
59
  series: [
@@ -71,17 +72,17 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
71
72
  ...d.dataset,
72
73
  series: (d.dataset.series || []).map((a, r) => ({
73
74
  ...a,
74
- color: et(a.color) || Ie.value[r] || xe[r],
75
+ color: tt(a.color) || Ye.value[r] || xe[r],
75
76
  value: ((a.to || 0) - (a.from || 0)) / o * 100
76
77
  }))
77
78
  };
78
- }), k = p(512), l = p({
79
+ }), b = m(512), l = m({
79
80
  height: 358.4,
80
- width: k.value,
81
+ width: b.value,
81
82
  top: 0,
82
83
  bottom: 358.4,
83
84
  centerX: 179.2,
84
- centerY: k.value / 2,
85
+ centerY: b.value / 2,
85
86
  labelFontSize: 18,
86
87
  legendFontSize: e.value.style.chart.legend.fontSize,
87
88
  pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
@@ -90,14 +91,14 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
90
91
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
91
92
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
92
93
  segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
93
- }), P = p(0), $ = p(0), f = p(
94
+ }), N = m(0), $ = m(0), f = m(
94
95
  e.value.style.chart.animation.use ? Math.min(...d.dataset.series.map((t) => t.from)) : d.dataset.value
95
96
  );
96
- ke(() => d.dataset.value, () => {
97
- pe(d.dataset.value);
97
+ be(() => d.dataset.value, () => {
98
+ me(d.dataset.value);
98
99
  });
99
100
  const i = y(() => {
100
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (P.value - $.value)) + Math.PI;
101
+ const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (N.value - $.value)) + Math.PI;
101
102
  return {
102
103
  x1: t,
103
104
  y1: o,
@@ -105,95 +106,95 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
105
106
  y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
106
107
  };
107
108
  }), ye = y(() => {
108
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (P.value - $.value)) + Math.PI, r = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), w = l.value.pointerRadius, je = t + w * Math.cos(a + Math.PI / 2), Te = o + w * Math.sin(a + Math.PI / 2), Ue = t + w * Math.cos(a - Math.PI / 2), Le = o + w * Math.sin(a - Math.PI / 2);
109
- return isNaN(r) ? null : `M ${r},${_} ${je},${Te} ${Ue},${Le} Z`;
110
- }), B = y(() => {
111
- for (let t = 0; t < C.value.series.length; t += 1) {
112
- const { color: o, from: a, to: r } = C.value.series[t];
109
+ const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (N.value - $.value)) + Math.PI, r = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), p = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), _ = l.value.pointerRadius, je = t + _ * Math.cos(a + Math.PI / 2), Te = o + _ * Math.sin(a + Math.PI / 2), Le = t + _ * Math.cos(a - Math.PI / 2), Be = o + _ * Math.sin(a - Math.PI / 2);
110
+ return isNaN(r) ? null : `M ${r},${p} ${je},${Te} ${Le},${Be} Z`;
111
+ }), D = y(() => {
112
+ for (let t = 0; t < O.value.series.length; t += 1) {
113
+ const { color: o, from: a, to: r } = O.value.series[t];
113
114
  if (f.value >= a && f.value <= r)
114
115
  return o;
115
116
  }
116
117
  return "#2D353C";
117
- }), z = be(null), N = be(null);
118
+ }), z = _e(null), X = _e(null);
118
119
  function fe() {
119
- if (we(d.dataset) ? U({
120
+ if (Se(d.dataset) ? T({
120
121
  componentName: "VueUiGauge",
121
122
  type: "dataset"
122
- }) : (Se({
123
+ }) : ($e({
123
124
  datasetObject: d.dataset,
124
125
  requiredAttributes: ["value", "series"]
125
126
  }).forEach((t) => {
126
- U({
127
+ T({
127
128
  componentName: "VueUiGauge",
128
129
  type: "datasetAttribute",
129
130
  property: t
130
131
  });
131
132
  }), Object.hasOwn(d.dataset, "series") && (d.dataset.series.length ? d.dataset.series.forEach((t, o) => {
132
- Se({
133
+ $e({
133
134
  datasetObject: t,
134
135
  requiredAttributes: ["from", "to"]
135
136
  }).forEach((a) => {
136
- U({
137
+ T({
137
138
  componentName: "VueUiGauge",
138
139
  type: "datasetSerieAttribute",
139
140
  property: a,
140
141
  index: o
141
142
  });
142
143
  });
143
- }) : U({
144
+ }) : T({
144
145
  componentName: "VueUiGauge",
145
146
  type: "datasetAttributeEmpty",
146
147
  property: "series"
147
- }))), pe(d.dataset.value || 0), e.value.responsive) {
148
- const t = rt(() => {
149
- const { width: o, height: a } = st({
150
- chart: R.value,
148
+ }))), me(d.dataset.value || 0), e.value.responsive) {
149
+ const t = st(() => {
150
+ const { width: o, height: a } = ot({
151
+ chart: F.value,
151
152
  title: e.value.style.chart.title.text ? te.value : null,
152
153
  legend: ae.value,
153
154
  source: le.value,
154
155
  noTitle: re.value
155
156
  });
156
157
  requestAnimationFrame(() => {
157
- l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY = k.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / k.value * Math.min(a, o) < 10 ? 10 : 18 / k.value * Math.min(a, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / k.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / k.value * Math.min(a, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / k.value * Math.min(a, o), l.value.trackSize = e.value.style.chart.layout.track.size / k.value * Math.min(a, o), l.value.pointerStrokeWidth = Q({
158
+ l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY = b.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / b.value * Math.min(a, o) < 10 ? 10 : 18 / b.value * Math.min(a, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(a, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(a, o), l.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(a, o), l.value.pointerStrokeWidth = Q({
158
159
  relator: Math.min(o, a),
159
- adjuster: k.value,
160
+ adjuster: b.value,
160
161
  source: e.value.style.chart.layout.pointer.strokeWidth,
161
162
  threshold: 2,
162
163
  fallback: 2
163
164
  }), l.value.markerOffset = Q({
164
165
  relator: Math.max(o, a),
165
- adjuster: k.value,
166
+ adjuster: b.value,
166
167
  source: e.value.style.chart.layout.markers.offsetY + 3,
167
168
  threshold: 2,
168
169
  fallback: 2
169
170
  }), l.value.segmentFontSize = Q({
170
171
  relator: Math.min(o, a),
171
- adjuster: k.value,
172
+ adjuster: b.value,
172
173
  source: e.value.style.chart.layout.segmentNames.fontSize,
173
174
  threshold: 8,
174
175
  fallback: 8
175
176
  });
176
177
  });
177
178
  });
178
- z.value && (N.value && z.value.unobserve(N.value), z.value.disconnect()), z.value = new ResizeObserver(t), N.value = R.value.parentNode, z.value.observe(N.value);
179
+ z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect()), z.value = new ResizeObserver(t), X.value = F.value.parentNode, z.value.observe(X.value);
179
180
  }
180
181
  }
181
182
  De(() => {
182
183
  fe();
183
- }), Be(() => {
184
- z.value && (N.value && z.value.unobserve(N.value), z.value.disconnect());
184
+ }), Ve(() => {
185
+ z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect());
185
186
  });
186
- function pe(t) {
187
+ function me(t) {
187
188
  const o = [];
188
- (C.value.series || []).forEach((w) => {
189
- o.push(w.from || 0), o.push(w.to || 0);
190
- }), P.value = Math.max(...o), $.value = Math.min(...o);
189
+ (O.value.series || []).forEach((_) => {
190
+ o.push(_.from || 0), o.push(_.to || 0);
191
+ }), N.value = Math.max(...o), $.value = Math.min(...o);
191
192
  let a = e.value.style.chart.animation.speed;
192
193
  const r = Math.abs(t - f.value) / (a * 60);
193
- function _() {
194
- f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(_);
194
+ function p() {
195
+ f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(p);
195
196
  }
196
- _();
197
+ p();
197
198
  }
198
199
  const v = y(() => {
199
200
  const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, o = 2.5 / e.value.style.chart.layout.radiusRatio;
@@ -205,7 +206,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
205
206
  pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
206
207
  };
207
208
  }), h = y(() => H(
208
- { series: C.value.series },
209
+ { series: O.value.series },
209
210
  l.value.width / 2,
210
211
  v.value.base,
211
212
  v.value.arcs,
@@ -216,8 +217,8 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
216
217
  180,
217
218
  109.9495,
218
219
  40 * l.value.trackSize
219
- )), Ye = y(() => H(
220
- { series: C.value.series },
220
+ )), Ae = y(() => H(
221
+ { series: O.value.series },
221
222
  l.value.width / 2,
222
223
  v.value.base,
223
224
  v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
@@ -228,14 +229,14 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
228
229
  180,
229
230
  109.9495,
230
231
  40 * l.value.trackSize
231
- )), O = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), me = y(() => {
232
- const { x: t, y: o } = F({
232
+ )), M = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), pe = y(() => {
233
+ const { x: t, y: o } = C({
233
234
  initX: h.value[0].firstSeparator.x,
234
235
  initY: h.value[0].firstSeparator.y,
235
236
  centerX: i.value.x1,
236
237
  centerY: i.value.y1,
237
238
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
238
- }), { x: a, y: r } = F({
239
+ }), { x: a, y: r } = C({
239
240
  initX: h.value[0].startX,
240
241
  initY: h.value[0].startY,
241
242
  centerX: i.value.x1,
@@ -244,30 +245,30 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
244
245
  });
245
246
  return { x1: t, y1: o, x2: a, y2: r };
246
247
  }), ge = y(() => h.value.map((t) => {
247
- const { x: o, y: a } = F({
248
+ const { x: o, y: a } = C({
248
249
  initX: t.separator.x,
249
250
  initY: t.separator.y,
250
251
  centerX: i.value.x1,
251
252
  centerY: i.value.y1,
252
253
  offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
253
- }), { x: r, y: _ } = F({
254
+ }), { x: r, y: p } = C({
254
255
  initX: t.endX,
255
256
  initY: t.endY,
256
257
  centerX: i.value.x1,
257
258
  centerY: i.value.y1,
258
259
  offset: e.value.style.chart.layout.segmentSeparators.offsetOut
259
260
  });
260
- return { x1: o, y1: a, x2: r, y2: _ };
261
+ return { x1: o, y1: a, x2: r, y2: p };
261
262
  }));
262
- function Ae(t) {
263
- if (t.reduce((_, w) => _ + w, 0) > 100)
263
+ function Re(t) {
264
+ if (t.reduce((p, _) => p + _, 0) > 100)
264
265
  throw new Error("Total % must not exceed 100");
265
266
  const a = 50;
266
267
  let r = 0;
267
- return t.map((_) => (r += _, `${r / 100 * a - _ / 4}%`));
268
+ return t.map((p) => (r += p, `${r / 100 * a - p / 4}%`));
268
269
  }
269
- const Re = y(() => Ae(h.value.map((t) => t.proportion * 100))), Ee = y(() => H(
270
- { series: C.value.series },
270
+ const Ee = y(() => Re(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
271
+ { series: O.value.series },
271
272
  l.value.width / 2,
272
273
  v.value.base,
273
274
  v.value.gradients,
@@ -278,38 +279,52 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
278
279
  180,
279
280
  110.02,
280
281
  2 * l.value.trackSize
281
- )), Ge = y(() => {
282
+ )), Ue = y(() => {
282
283
  const t = $.value >= 0 ? -$.value : Math.abs($.value);
283
- return tt(
284
+ return at(
284
285
  {
285
286
  radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
286
287
  centerX: l.value.width / 2,
287
288
  centerY: v.value.base,
288
- percentage: (f.value + t) / (P.value + t)
289
+ percentage: (f.value + t) / (N.value + t)
289
290
  }
290
291
  );
291
- }), I = p(!1);
292
- function We(t) {
293
- I.value = t, ee.value += 1;
292
+ }), Y = m(!1);
293
+ function ke(t) {
294
+ Y.value = t, ee.value += 1;
294
295
  }
295
- const E = p(!1);
296
+ const E = m(!1);
296
297
  function V() {
297
298
  E.value = !E.value;
298
299
  }
299
- return ze({
300
+ async function We({ scale: t = 2 } = {}) {
301
+ if (!F.value) return;
302
+ const { width: o, height: a } = F.value.getBoundingClientRect(), r = o / a, { imageUri: p, base64: _ } = await vt({ domElement: F.value, base64: !0, img: !0, scale: t });
303
+ return {
304
+ imageUri: p,
305
+ base64: _,
306
+ title: e.value.style.chart.title.text,
307
+ width: o,
308
+ height: a,
309
+ aspectRatio: r
310
+ };
311
+ }
312
+ return Ce({
313
+ getImage: We,
300
314
  generatePdf: de,
301
315
  generateImage: he,
302
- toggleAnnotator: V
316
+ toggleAnnotator: V,
317
+ toggleFullscreen: ke
303
318
  }), (t, o) => (s(), u("div", {
304
- class: _e(`vue-ui-gauge ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
319
+ class: we(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
305
320
  ref_key: "gaugeChart",
306
- ref: R,
307
- id: `vue-ui-gauge_${b.value}`,
321
+ ref: F,
322
+ id: `vue-ui-gauge_${w.value}`,
308
323
  style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
309
324
  onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
310
325
  onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
311
326
  }, [
312
- e.value.userOptions.buttons.annotator ? (s(), W(n(Fe), {
327
+ e.value.userOptions.buttons.annotator ? (s(), U(n(Fe), {
313
328
  key: 0,
314
329
  svgRef: n(ne),
315
330
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -317,7 +332,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
317
332
  active: E.value,
318
333
  onClose: V
319
334
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
320
- Xe.value ? (s(), u("div", {
335
+ Ie.value ? (s(), u("div", {
321
336
  key: 1,
322
337
  ref_key: "noTitle",
323
338
  ref: re,
@@ -330,7 +345,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
330
345
  ref: te,
331
346
  style: "width:100%;background:transparent;padding-bottom:12px"
332
347
  }, [
333
- (s(), W(it, {
348
+ (s(), U(ct, {
334
349
  key: `title_${se.value}`,
335
350
  config: {
336
351
  title: {
@@ -343,86 +358,87 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
343
358
  }
344
359
  }
345
360
  }, {
346
- default: X(() => [
347
- e.value.translations.base && L.dataset.base ? (s(), u("span", dt, M(e.value.translations.base) + ": " + M(L.dataset.base), 1)) : c("", !0)
361
+ default: I(() => [
362
+ e.value.translations.base && L.dataset.base ? (s(), u("span", yt, P(e.value.translations.base) + ": " + P(L.dataset.base), 1)) : c("", !0)
348
363
  ]),
349
364
  _: 1
350
365
  }, 8, ["config"]))
351
366
  ], 512)) : c("", !0),
352
- e.value.userOptions.show && A.value && (n(ue) || n(D)) ? (s(), W(n(Oe), {
367
+ e.value.userOptions.show && R.value && (n(ue) || n(B)) ? (s(), U(n(Me), {
353
368
  ref_key: "details",
354
- ref: Ne,
369
+ ref: Xe,
355
370
  key: `user_options_${ee.value}`,
356
371
  backgroundColor: e.value.style.chart.backgroundColor,
357
372
  color: e.value.style.chart.color,
358
373
  isImaging: n(ve),
359
374
  isPrinting: n(ce),
360
- uid: b.value,
375
+ uid: w.value,
361
376
  hasXls: !1,
362
377
  hasPdf: e.value.userOptions.buttons.pdf,
363
378
  hasImg: e.value.userOptions.buttons.img,
364
379
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
365
- isFullscreen: I.value,
380
+ isFullscreen: Y.value,
366
381
  titles: { ...e.value.userOptions.buttonTitles },
367
- chartElement: R.value,
382
+ chartElement: F.value,
368
383
  callbacks: e.value.userOptions.callbacks,
384
+ printScale: e.value.userOptions.print.scale,
369
385
  position: e.value.userOptions.position,
370
386
  hasAnnotator: e.value.userOptions.buttons.annotator,
371
387
  isAnnotation: E.value,
372
- onToggleFullscreen: We,
388
+ onToggleFullscreen: ke,
373
389
  onGeneratePdf: n(de),
374
390
  onGenerateImage: n(he),
375
391
  onToggleAnnotator: V,
376
392
  style: q({
377
- visibility: n(ue) ? n(D) ? "visible" : "hidden" : "visible"
393
+ visibility: n(ue) ? n(B) ? "visible" : "hidden" : "visible"
378
394
  })
379
- }, Ve({ _: 2 }, [
395
+ }, qe({ _: 2 }, [
380
396
  t.$slots.menuIcon ? {
381
397
  name: "menuIcon",
382
- fn: X(({ isOpen: a, color: r }) => [
383
- x(t.$slots, "menuIcon", j(T({ isOpen: a, color: r })), void 0, !0)
398
+ fn: I(({ isOpen: a, color: r }) => [
399
+ x(t.$slots, "menuIcon", W(j({ isOpen: a, color: r })), void 0, !0)
384
400
  ]),
385
401
  key: "0"
386
402
  } : void 0,
387
403
  t.$slots.optionPdf ? {
388
404
  name: "optionPdf",
389
- fn: X(() => [
405
+ fn: I(() => [
390
406
  x(t.$slots, "optionPdf", {}, void 0, !0)
391
407
  ]),
392
408
  key: "1"
393
409
  } : void 0,
394
410
  t.$slots.optionImg ? {
395
411
  name: "optionImg",
396
- fn: X(() => [
412
+ fn: I(() => [
397
413
  x(t.$slots, "optionImg", {}, void 0, !0)
398
414
  ]),
399
415
  key: "2"
400
416
  } : void 0,
401
417
  t.$slots.optionFullscreen ? {
402
418
  name: "optionFullscreen",
403
- fn: X(({ toggleFullscreen: a, isFullscreen: r }) => [
404
- x(t.$slots, "optionFullscreen", j(T({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
419
+ fn: I(({ toggleFullscreen: a, isFullscreen: r }) => [
420
+ x(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
405
421
  ]),
406
422
  key: "3"
407
423
  } : void 0,
408
424
  t.$slots.optionAnnotator ? {
409
425
  name: "optionAnnotator",
410
- fn: X(({ toggleAnnotator: a, isAnnotator: r }) => [
411
- x(t.$slots, "optionAnnotator", j(T({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
426
+ fn: I(({ toggleAnnotator: a, isAnnotator: r }) => [
427
+ x(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
412
428
  ]),
413
429
  key: "4"
414
430
  } : void 0
415
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
416
- A.value ? (s(), u("svg", {
431
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
432
+ R.value ? (s(), u("svg", {
417
433
  key: 4,
418
434
  ref_key: "svgRef",
419
435
  ref: ne,
420
- xmlns: n(at),
421
- class: _e({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
436
+ xmlns: n(lt),
437
+ class: we({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
422
438
  viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
423
439
  style: q(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
424
440
  }, [
425
- qe(n(Me)),
441
+ He(n(Pe)),
426
442
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
427
443
  key: 0,
428
444
  x: 0,
@@ -434,134 +450,134 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
434
450
  }
435
451
  }, [
436
452
  x(t.$slots, "chart-background", {}, void 0, !0)
437
- ], 8, yt)) : c("", !0),
438
- m("defs", null, [
439
- m("radialGradient", {
440
- id: `gradient_${b.value}`,
453
+ ], 8, mt)) : c("", !0),
454
+ g("defs", null, [
455
+ g("radialGradient", {
456
+ id: `gradient_${w.value}`,
441
457
  cx: "50%",
442
458
  cy: "50%",
443
459
  r: "50%",
444
460
  fx: "50%",
445
461
  fy: "50%"
446
462
  }, [
447
- m("stop", {
463
+ g("stop", {
448
464
  offset: "0%",
449
465
  "stop-color": n(Z)("#FFFFFF", 1)
450
- }, null, 8, pt),
451
- m("stop", {
466
+ }, null, 8, gt),
467
+ g("stop", {
452
468
  offset: "80%",
453
469
  "stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
454
- }, null, 8, mt),
455
- m("stop", {
470
+ }, null, 8, kt),
471
+ g("stop", {
456
472
  offset: "100%",
457
473
  "stop-color": n(Z)("#FFFFFF", 1)
458
- }, null, 8, gt)
459
- ], 8, ft)
474
+ }, null, 8, bt)
475
+ ], 8, pt)
460
476
  ]),
461
- m("defs", null, [
462
- m("filter", {
463
- id: `blur_${b.value}`,
477
+ g("defs", null, [
478
+ g("filter", {
479
+ id: `blur_${w.value}`,
464
480
  x: "-50%",
465
481
  y: "-50%",
466
482
  width: "200%",
467
483
  height: "200%"
468
484
  }, [
469
- m("feGaussianBlur", {
485
+ g("feGaussianBlur", {
470
486
  in: "SourceGraphic",
471
487
  stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
472
- }, null, 8, bt)
473
- ], 8, kt)
488
+ }, null, 8, wt)
489
+ ], 8, _t)
474
490
  ]),
475
- t.$slots.pattern ? (s(), u("g", _t, [
476
- (s(!0), u(g, null, S(h.value, (a, r) => (s(), u("defs", null, [
477
- x(t.$slots, "pattern", Y({ ref_for: !0 }, { seriesIndex: r, patternId: `pattern_${b.value}_${r}` }), void 0, !0)
491
+ t.$slots.pattern ? (s(), u("g", xt, [
492
+ (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("defs", null, [
493
+ x(t.$slots, "pattern", A({ ref_for: !0 }, { seriesIndex: r, patternId: `pattern_${w.value}_${r}` }), void 0, !0)
478
494
  ]))), 256))
479
495
  ])) : c("", !0),
480
- (s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
496
+ (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
481
497
  key: `arc_${r}`,
482
498
  d: a.arcSlice,
483
499
  fill: a.color,
484
500
  stroke: e.value.style.chart.backgroundColor,
485
501
  "stroke-linecap": "round"
486
- }, null, 8, xt))), 128)),
487
- t.$slots.pattern ? (s(!0), u(g, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
502
+ }, null, 8, St))), 128)),
503
+ t.$slots.pattern ? (s(!0), u(k, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
488
504
  key: `arc_${r}`,
489
505
  d: a.arcSlice,
490
- fill: `url(#pattern_${b.value}_${r})`,
506
+ fill: `url(#pattern_${w.value}_${r})`,
491
507
  stroke: e.value.style.chart.backgroundColor,
492
508
  "stroke-linecap": "round"
493
- }, null, 8, wt))), 128)) : c("", !0),
509
+ }, null, 8, $t))), 128)) : c("", !0),
494
510
  e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
495
511
  key: 3,
496
- d: Ge.value,
512
+ d: Ue.value,
497
513
  fill: e.value.style.chart.layout.indicatorArc.fill
498
- }, null, 8, St)) : c("", !0),
499
- e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(g, { key: 4 }, [
500
- (s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
501
- id: `curve_${b.value}_${r}`,
502
- d: `M ${i.value.x1},${i.value.y1} m -${O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 ${2 * O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 -${2 * O.value[r]},0`,
514
+ }, null, 8, zt)) : c("", !0),
515
+ e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(k, { key: 4 }, [
516
+ (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
517
+ id: `curve_${w.value}_${r}`,
518
+ d: `M ${i.value.x1},${i.value.y1} m -${M.value[r]},0 a ${M.value[r]},${M.value[r]} 0 1,1 ${2 * M.value[r]},0 a ${M.value[r]},${M.value[r]} 0 1,1 -${2 * M.value[r]},0`,
503
519
  fill: "transparent"
504
- }, null, 8, $t))), 256)),
505
- (s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
520
+ }, null, 8, Ct))), 256)),
521
+ (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
506
522
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
507
523
  "font-size": l.value.segmentFontSize,
508
524
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
509
525
  "text-anchor": "middle"
510
526
  }, [
511
- m("textPath", {
512
- href: `#curve_${b.value}_${r}`,
513
- startOffset: Re.value[r]
514
- }, M(a.name || ""), 9, Ft)
515
- ], 8, zt))), 256))
527
+ g("textPath", {
528
+ href: `#curve_${w.value}_${r}`,
529
+ startOffset: Ee.value[r]
530
+ }, P(a.name || ""), 9, Ot)
531
+ ], 8, Ft))), 256))
516
532
  ], 64)) : c("", !0),
517
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(g, { key: 5 }, S(Ye.value, (a, r) => (s(), u("text", {
533
+ e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(k, { key: 5 }, S(Ae.value, (a, r) => (s(), u("text", {
518
534
  x: a.center.endX,
519
535
  y: a.center.endY,
520
- "text-anchor": n(lt)(a, !1, 12).anchor,
536
+ "text-anchor": n(rt)(a, !1, 12).anchor,
521
537
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
522
538
  "font-size": l.value.segmentFontSize,
523
539
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
524
- }, M(a.name || ""), 9, Ct))), 256)) : c("", !0),
525
- e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(Ee.value, (a, r) => (s(), u("path", {
540
+ }, P(a.name || ""), 9, Mt))), 256)) : c("", !0),
541
+ e.value.style.chart.layout.track.useGradient ? (s(!0), u(k, { key: 6 }, S(Ge.value, (a, r) => (s(), u("path", {
526
542
  key: `arc_${r}`,
527
543
  d: a.arcSlice,
528
544
  fill: "#FFFFFF",
529
545
  stroke: "none",
530
546
  "stroke-linecap": "round",
531
- filter: `url(#blur_${b.value})`
532
- }, null, 8, Ot))), 128)) : c("", !0),
533
- e.value.style.chart.layout.segmentSeparators.show ? (s(), u(g, { key: 7 }, [
534
- m("line", Y(me.value, {
547
+ filter: `url(#blur_${w.value})`
548
+ }, null, 8, Pt))), 128)) : c("", !0),
549
+ e.value.style.chart.layout.segmentSeparators.show ? (s(), u(k, { key: 7 }, [
550
+ g("line", A(pe.value, {
535
551
  stroke: e.value.style.chart.backgroundColor,
536
552
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
537
553
  "stroke-linecap": "round"
538
- }), null, 16, Mt),
539
- m("line", Y(me.value, {
554
+ }), null, 16, Nt),
555
+ g("line", A(pe.value, {
540
556
  stroke: e.value.style.chart.layout.segmentSeparators.stroke,
541
557
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
542
558
  "stroke-linecap": "round"
543
- }), null, 16, Pt),
544
- (s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", Y({ ref_for: !0 }, a, {
559
+ }), null, 16, Xt),
560
+ (s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
545
561
  stroke: e.value.style.chart.backgroundColor,
546
562
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
547
563
  "stroke-linecap": "round"
548
- }), null, 16, Nt))), 256)),
549
- (s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", Y({ ref_for: !0 }, a, {
564
+ }), null, 16, It))), 256)),
565
+ (s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
550
566
  stroke: e.value.style.chart.layout.segmentSeparators.stroke,
551
567
  "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
552
568
  "stroke-linecap": "round"
553
- }), null, 16, Xt))), 256))
569
+ }), null, 16, Yt))), 256))
554
570
  ], 64)) : c("", !0),
555
- e.value.style.chart.layout.markers.show ? (s(), u("g", It, [
556
- (s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
557
- x: n(F)({
571
+ e.value.style.chart.layout.markers.show ? (s(), u("g", At, [
572
+ (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
573
+ x: n(C)({
558
574
  centerX: i.value.x1,
559
575
  centerY: v.value.base,
560
576
  initX: a.center.startX,
561
577
  initY: a.center.startY,
562
578
  offset: l.value.markerOffset
563
579
  }).x,
564
- y: n(F)({
580
+ y: n(C)({
565
581
  centerX: i.value.x1,
566
582
  centerY: v.value.base,
567
583
  initX: a.center.startX,
@@ -572,7 +588,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
572
588
  "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
573
589
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
574
590
  fill: e.value.style.chart.layout.markers.color
575
- }, M(n(J)(
591
+ }, P(n(J)(
576
592
  e.value.style.chart.layout.markers.formatter,
577
593
  a.from,
578
594
  n(K)({
@@ -581,18 +597,18 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
581
597
  s: e.value.style.chart.layout.markers.suffix,
582
598
  r: e.value.style.chart.layout.markers.roundingValue
583
599
  })
584
- )), 9, Yt))), 256))
600
+ )), 9, Rt))), 256))
585
601
  ])) : c("", !0),
586
602
  e.value.style.chart.layout.markers.show ? (s(), u("text", {
587
603
  key: 9,
588
- x: n(F)({
604
+ x: n(C)({
589
605
  centerX: l.value.width / 2,
590
606
  centerY: v.value.base,
591
607
  initX: h.value.at(-1).endX,
592
608
  initY: h.value.at(-1).endY,
593
609
  offset: l.value.markerOffset
594
610
  }).x,
595
- y: n(F)({
611
+ y: n(C)({
596
612
  centerX: l.value.width / 2,
597
613
  centerY: v.value.base,
598
614
  initX: h.value.at(-1).endX,
@@ -603,18 +619,18 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
603
619
  "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
604
620
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
605
621
  fill: e.value.style.chart.layout.markers.color
606
- }, M(n(J)(
622
+ }, P(n(J)(
607
623
  e.value.style.chart.layout.markers.formatter,
608
- P.value,
624
+ N.value,
609
625
  n(K)({
610
626
  p: e.value.style.chart.layout.markers.prefix,
611
- v: P.value,
627
+ v: N.value,
612
628
  s: e.value.style.chart.layout.markers.suffix,
613
629
  r: e.value.style.chart.layout.markers.roundingValue
614
630
  })
615
- )), 9, At)) : c("", !0),
616
- e.value.style.chart.layout.pointer.show ? (s(), u(g, { key: 10 }, [
617
- e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Rt, [
631
+ )), 9, Et)) : c("", !0),
632
+ e.value.style.chart.layout.pointer.show ? (s(), u(k, { key: 10 }, [
633
+ e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Gt, [
618
634
  isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
619
635
  key: 0,
620
636
  x1: i.value.x1,
@@ -624,17 +640,17 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
624
640
  stroke: e.value.style.chart.layout.pointer.stroke,
625
641
  "stroke-width": l.value.pointerStrokeWidth,
626
642
  "stroke-linecap": "round"
627
- }, null, 8, Et)),
643
+ }, null, 8, Ut)),
628
644
  isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
629
645
  key: 1,
630
646
  x1: i.value.x1,
631
647
  y1: i.value.y1,
632
648
  x2: i.value.x2,
633
649
  y2: i.value.y2,
634
- stroke: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
650
+ stroke: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
635
651
  "stroke-linecap": "round",
636
652
  "stroke-width": l.value.pointerStrokeWidth * 0.7
637
- }, null, 8, Gt)),
653
+ }, null, 8, Wt)),
638
654
  !isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
639
655
  key: 2,
640
656
  x1: i.value.x1,
@@ -644,26 +660,26 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
644
660
  stroke: "white",
645
661
  "stroke-linecap": "round",
646
662
  "stroke-width": l.value.pointerStrokeWidth * 0.3,
647
- filter: `url(#blur_${b.value})`
648
- }, null, 8, Wt)) : c("", !0)
649
- ])) : (s(), u("g", jt, [
663
+ filter: `url(#blur_${w.value})`
664
+ }, null, 8, jt)) : c("", !0)
665
+ ])) : (s(), u("g", Tt, [
650
666
  ye.value ? (s(), u("path", {
651
667
  key: 0,
652
668
  d: ye.value,
653
- fill: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
669
+ fill: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
654
670
  stroke: e.value.style.chart.layout.pointer.stroke,
655
671
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
656
672
  "stroke-linejoin": "round"
657
- }, null, 8, Tt)) : c("", !0)
673
+ }, null, 8, Lt)) : c("", !0)
658
674
  ])),
659
- m("circle", {
675
+ g("circle", {
660
676
  cx: l.value.width / 2,
661
677
  cy: v.value.base,
662
678
  fill: e.value.style.chart.layout.pointer.circle.color,
663
679
  r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
664
680
  "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
665
681
  stroke: e.value.style.chart.layout.pointer.circle.stroke
666
- }, null, 8, Ut)
682
+ }, null, 8, Bt)
667
683
  ], 64)) : c("", !0),
668
684
  e.value.style.chart.legend.show ? (s(), u("text", {
669
685
  key: 11,
@@ -672,8 +688,8 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
672
688
  "text-anchor": "middle",
673
689
  "font-size": l.value.legendFontSize,
674
690
  "font-weight": "bold",
675
- fill: e.value.style.chart.legend.useRatingColor ? B.value : e.value.style.chart.legend.color
676
- }, M(n(J)(
691
+ fill: e.value.style.chart.legend.useRatingColor ? D.value : e.value.style.chart.legend.color
692
+ }, P(n(J)(
677
693
  e.value.style.chart.legend.formatter,
678
694
  f.value,
679
695
  n(K)({
@@ -682,13 +698,13 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
682
698
  s: e.value.style.chart.legend.suffix,
683
699
  r: e.value.style.chart.legend.roundingValue
684
700
  })
685
- )), 9, Lt)) : c("", !0),
701
+ )), 9, Dt)) : c("", !0),
686
702
  x(t.$slots, "svg", { svg: l.value }, void 0, !0)
687
- ], 14, ht)) : c("", !0),
688
- t.$slots.watermark ? (s(), u("div", Dt, [
689
- x(t.$slots, "watermark", j(T({ isPrinting: n(ce) || n(ve) })), void 0, !0)
703
+ ], 14, ft)) : c("", !0),
704
+ t.$slots.watermark ? (s(), u("div", Vt, [
705
+ x(t.$slots, "watermark", W(j({ isPrinting: n(ce) || n(ve) })), void 0, !0)
690
706
  ])) : c("", !0),
691
- A.value ? c("", !0) : (s(), W(n(Ce), {
707
+ R.value ? c("", !0) : (s(), U(n(Oe), {
692
708
  key: 6,
693
709
  config: {
694
710
  type: "gauge",
@@ -700,11 +716,11 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
700
716
  }
701
717
  }
702
718
  }, null, 8, ["config"])),
703
- m("div", {
719
+ g("div", {
704
720
  ref_key: "chartLegend",
705
721
  ref: ae
706
722
  }, [
707
- x(t.$slots, "legend", { legend: C.value }, void 0, !0)
723
+ x(t.$slots, "legend", { legend: O.value }, void 0, !0)
708
724
  ], 512),
709
725
  t.$slots.source ? (s(), u("div", {
710
726
  key: 7,
@@ -714,9 +730,9 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
714
730
  }, [
715
731
  x(t.$slots, "source", {}, void 0, !0)
716
732
  ], 512)) : c("", !0)
717
- ], 46, vt));
733
+ ], 46, ht));
718
734
  }
719
- }, aa = /* @__PURE__ */ ct(Bt, [["__scopeId", "data-v-99d985dc"]]);
735
+ }, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-4b47d12e"]]);
720
736
  export {
721
- aa as default
737
+ sa as default
722
738
  };