vue-data-ui 2.17.0 → 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 (91) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +63 -160
  23. package/dist/types/vue-data-ui.d.ts +63 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
  55. package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
  82. package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,16 +1,16 @@
1
- import { defineAsyncComponent as S, computed as h, ref as b, watch as te, onMounted as ge, createElementBlock as c, openBlock as r, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as me, withCtx as P, renderSlot as g, normalizeProps as N, guardReactiveProps as M, createVNode as ye, Fragment as ae, renderList as oe, toDisplayString as ke } from "vue";
2
- import { u as le } from "./useNestedProp-DjACxgdZ.js";
3
- import { u as be, c as Ce, a as _e, v as $e, o as we, e as Oe, w as se, X as Pe, i as xe, f as Ae } from "./index-pPGk-uhD.js";
4
- import { u as Ie } from "./usePrinter-DDHcrl0A.js";
1
+ import { defineAsyncComponent as S, computed as d, ref as b, watch as te, onMounted as pe, createElementBlock as c, openBlock as r, unref as s, normalizeStyle as G, normalizeClass as L, createBlock as z, createCommentVNode as g, createSlots as ye, withCtx as x, renderSlot as p, normalizeProps as N, guardReactiveProps as M, createVNode as me, Fragment as ae, renderList as oe, toDisplayString as ke } from "vue";
2
+ import { u as le } from "./useNestedProp-BwL5wmVa.js";
3
+ import { u as be, c as Ce, a as _e, v as we, o as $e, e as Oe, w as se, X as Pe, i as xe, f as Ae } from "./index-CobsZUkv.js";
4
+ import { u as Ie } from "./usePrinter-DPh6U_Qk.js";
5
5
  import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as Se } from "./useChartAccessibility-9icAAmYg.js";
7
- import ze from "./Title-B-2bV0SW.js";
8
- import Ne from "./img-Y_hYz-ZC.js";
7
+ import ze from "./Title-DpERl1yr.js";
8
+ import Ne from "./img-utitT2Gd.js";
9
9
  import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Te = ["id"], Ue = {
11
11
  key: 2,
12
12
  style: "width:100%;background:transparent;padding-bottom:12px"
13
- }, Ee = ["xmlns", "viewBox"], Ge = ["width", "height"], Le = { key: 1 }, je = ["d", "stroke-width", "stroke"], Re = { key: 2 }, Be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Xe = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], De = {
13
+ }, Re = ["xmlns", "viewBox"], Ee = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Xe = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], De = {
14
14
  key: 5,
15
15
  class: "vue-data-ui-watermark"
16
16
  }, He = {
@@ -34,10 +34,10 @@ const Te = ["id"], Ue = {
34
34
  }
35
35
  },
36
36
  setup(ne, { expose: re }) {
37
- const ue = S(() => import("./PenAndPaper-D6AqipIO.js")), ie = S(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ce = S(() => import("./UserOptions-Dd34lEKb.js")), ve = S(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_tiremarks: he } = be(), f = ne, T = h(() => !!f.dataset && Object.keys(f.dataset).length), U = b(Ce()), x = b(null), de = b(null), R = b(0), B = b(0), e = h({
37
+ const ue = S(() => import("./PenAndPaper-Cde-wJ3N.js")), ie = S(() => import("./vue-ui-skeleton-8s4xts8z.js")), ce = S(() => import("./UserOptions-DTEJ3UM_.js")), ve = S(() => import("./PackageVersion-C-4Ee8BQ.js")), { vue_ui_tiremarks: he } = be(), f = ne, T = d(() => !!f.dataset && Object.keys(f.dataset).length), U = b(Ce()), w = b(null), de = b(null), j = b(0), B = b(0), e = d({
38
38
  get: () => V(),
39
39
  set: (t) => t
40
- }), { userOptionsVisible: E, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
40
+ }), { userOptionsVisible: R, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
41
41
  function V() {
42
42
  const t = le({
43
43
  userConfig: f.config,
@@ -51,40 +51,40 @@ const Te = ["id"], Ue = {
51
51
  } : t;
52
52
  }
53
53
  te(() => f.config, (t) => {
54
- e.value = V(), E.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
54
+ e.value = V(), R.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
55
55
  }, { deep: !0 });
56
56
  const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ie({
57
57
  elementId: U.value,
58
58
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
59
59
  options: e.value.userOptions.print
60
- }), fe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : $e(f.dataset.percentage));
60
+ }), ge = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : we(f.dataset.percentage));
61
61
  te(() => f.dataset, (t) => {
62
62
  e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
63
- }, { deep: !0 }), ge(() => {
63
+ }, { deep: !0 }), pe(() => {
64
64
  W();
65
65
  });
66
66
  function Q(t) {
67
67
  let n = e.value.style.chart.animation.speed;
68
68
  const a = Math.abs(t - u.value) / (n * 120);
69
- function s() {
70
- u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(s);
69
+ function o() {
70
+ u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(o);
71
71
  }
72
- s();
72
+ o();
73
73
  }
74
74
  function W() {
75
- we(f.dataset) && Oe({
75
+ $e(f.dataset) && Oe({
76
76
  componentName: "VueUiTiremarks",
77
77
  type: "dataset"
78
78
  }), Q(f.dataset.percentage || 0);
79
79
  }
80
- const C = h(() => e.value.style.chart.layout.display === "vertical"), i = h(() => {
80
+ const _ = d(() => e.value.style.chart.layout.display === "vertical"), i = d(() => {
81
81
  const t = {
82
82
  top: 48,
83
83
  left: 64,
84
84
  right: 64,
85
85
  bottom: 48
86
86
  };
87
- return C.value ? {
87
+ return _.value ? {
88
88
  top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
89
89
  left: 3,
90
90
  right: 3,
@@ -95,46 +95,46 @@ const Te = ["id"], Ue = {
95
95
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
96
96
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
97
97
  };
98
- }), A = h(() => Object.values(i.value).reduce((t, n) => t + n, 0)), o = h(() => ({
99
- height: C.value ? 312 : 56,
100
- width: C.value ? 56 : 312
101
- })), v = h(() => C.value ? {
102
- mark: (o.value.height - A.value) / 100 * 0.5,
103
- space: (o.value.height - A.value) / 100 * 0.5
98
+ }), A = d(() => Object.values(i.value).reduce((t, n) => t + n, 0)), l = d(() => ({
99
+ height: _.value ? 312 : 56,
100
+ width: _.value ? 56 : 312
101
+ })), v = d(() => _.value ? {
102
+ mark: (l.value.height - A.value) / 100 * 0.5,
103
+ space: (l.value.height - A.value) / 100 * 0.5
104
104
  } : {
105
- mark: (o.value.width - A.value) / 100 * 0.5,
106
- space: (o.value.width - A.value) / 100 * 0.5
107
- }), Z = h(() => {
105
+ mark: (l.value.width - A.value) / 100 * 0.5,
106
+ space: (l.value.width - A.value) / 100 * 0.5
107
+ }), Z = d(() => {
108
108
  const t = [];
109
109
  for (let a = 0; a < 100; a += 1) {
110
- const s = e.value.style.chart.layout.ticks.gradient.show ? se(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
111
- if (C.value) {
112
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, m = o.value.width - i.value.right - 4 - $, y = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (m - p) / e.value.style.chart.layout.curveAngleX, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
110
+ const o = e.value.style.chart.layout.ticks.gradient.show ? se(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
111
+ if (_.value) {
112
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, h = i.value.left + 4 + C, y = l.value.width - i.value.right - 4 - C, m = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, O = (y - h) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
113
113
  t.push({
114
- x1: p,
115
- x2: m,
116
- y1: y,
114
+ x1: h,
115
+ x2: y,
116
+ y1: m,
117
117
  y2: k,
118
- curve: `M ${p} ${y} C ${p + w} ${y - O}, ${m - w} ${k - O}, ${m} ${k}`,
119
- color: s
118
+ curve: `M ${h} ${m} C ${h + O} ${m - P}, ${y - O} ${k - P}, ${y} ${k}`,
119
+ color: o
120
120
  });
121
121
  } else {
122
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, m = p, y = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), O = (k - y) / e.value.style.chart.layout.curveAngleX;
122
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, h = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = h, m = i.value.top + 4 + C, k = l.value.height - i.value.bottom - 4 - C, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
123
123
  t.push({
124
- x1: p,
125
- x2: m,
126
- y1: y,
124
+ x1: h,
125
+ x2: y,
126
+ y1: m,
127
127
  y2: k,
128
- curve: `M ${p} ${y} C ${p + w} ${y + O}, ${m + w} ${k - O}, ${m} ${k}`,
129
- color: s
128
+ curve: `M ${h} ${m} C ${h + O} ${m + P}, ${y + O} ${k - P}, ${y} ${k}`,
129
+ color: o
130
130
  });
131
131
  }
132
132
  }
133
133
  return t;
134
- }), _ = h(() => {
134
+ }), $ = d(() => {
135
135
  let t, n, a;
136
- const s = e.value.style.chart.percentage.fontSize / 3;
137
- return C.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, n = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, n = o.value.height - i.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - i.value.right + 8, n = o.value.height / 2 + s, a = "start"), {
136
+ const o = e.value.style.chart.percentage.fontSize / 3;
137
+ return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - i.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - i.value.right + 8, n = l.value.height / 2 + o, a = "start"), {
138
138
  x: t,
139
139
  y: n,
140
140
  textAnchor: a,
@@ -144,47 +144,54 @@ const Te = ["id"], Ue = {
144
144
  };
145
145
  }), I = b(!1);
146
146
  function ee(t) {
147
- I.value = t, R.value += 1;
147
+ I.value = t, j.value += 1;
148
148
  }
149
149
  const F = b(!1);
150
- function G() {
150
+ function E() {
151
151
  F.value = !F.value;
152
152
  }
153
- async function pe({ scale: t = 2 } = {}) {
154
- if (!x.value) return;
155
- const { imageUri: n, base64: a } = await Ne({ domElement: x.value, base64: !0, img: !0, scale: t });
156
- return { imageUri: n, base64: a };
153
+ async function fe({ scale: t = 2 } = {}) {
154
+ if (!w.value) return;
155
+ const { width: n, height: a } = w.value.getBoundingClientRect(), o = n / a, { imageUri: C, base64: h } = await Ne({ domElement: w.value, base64: !0, img: !0, scale: t });
156
+ return {
157
+ imageUri: C,
158
+ base64: h,
159
+ title: e.value.style.chart.title.text,
160
+ width: n,
161
+ height: a,
162
+ aspectRatio: o
163
+ };
157
164
  }
158
165
  return re({
159
- getImage: pe,
166
+ getImage: fe,
160
167
  generatePdf: J,
161
168
  generateImage: K,
162
- toggleAnnotator: G,
169
+ toggleAnnotator: E,
163
170
  toggleFullscreen: ee
164
171
  }), (t, n) => (r(), c("div", {
165
172
  ref_key: "tiremarksChart",
166
- ref: x,
167
- class: j(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
168
- style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
173
+ ref: w,
174
+ class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
175
+ style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
169
176
  id: U.value,
170
- onMouseenter: n[0] || (n[0] = () => l(X)(!0)),
171
- onMouseleave: n[1] || (n[1] = () => l(X)(!1))
177
+ onMouseenter: n[0] || (n[0] = () => s(X)(!0)),
178
+ onMouseleave: n[1] || (n[1] = () => s(X)(!1))
172
179
  }, [
173
- e.value.userOptions.buttons.annotator ? (r(), z(l(ue), {
180
+ e.value.userOptions.buttons.annotator ? (r(), z(s(ue), {
174
181
  key: 0,
175
- svgRef: l(H),
182
+ svgRef: s(H),
176
183
  backgroundColor: e.value.style.chart.backgroundColor,
177
184
  color: e.value.style.chart.color,
178
185
  active: F.value,
179
- onClose: G
180
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
181
- fe.value ? (r(), c("div", {
186
+ onClose: E
187
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
188
+ ge.value ? (r(), c("div", {
182
189
  key: 1,
183
190
  ref_key: "noTitle",
184
191
  ref: de,
185
192
  class: "vue-data-ui-no-title-space",
186
193
  style: "height:36px; width: 100%;background:transparent"
187
- }, null, 512)) : d("", !0),
194
+ }, null, 512)) : g("", !0),
188
195
  e.value.style.chart.title.text ? (r(), c("div", Ue, [
189
196
  (r(), z(ze, {
190
197
  key: `title_${B.value}`,
@@ -199,14 +206,14 @@ const Te = ["id"], Ue = {
199
206
  }
200
207
  }
201
208
  }, null, 8, ["config"]))
202
- ])) : d("", !0),
203
- e.value.userOptions.show && T.value && (l(D) || l(E)) ? (r(), z(l(ce), {
209
+ ])) : g("", !0),
210
+ e.value.userOptions.show && T.value && (s(D) || s(R)) ? (r(), z(s(ce), {
204
211
  ref: "details",
205
- key: `user_options_${R.value}`,
212
+ key: `user_options_${j.value}`,
206
213
  backgroundColor: e.value.style.chart.backgroundColor,
207
214
  color: e.value.style.chart.color,
208
- isPrinting: l(Y),
209
- isImaging: l(q),
215
+ isPrinting: s(Y),
216
+ isImaging: s(q),
210
217
  uid: U.value,
211
218
  hasPdf: e.value.userOptions.buttons.pdf,
212
219
  hasImg: e.value.userOptions.buttons.img,
@@ -214,124 +221,124 @@ const Te = ["id"], Ue = {
214
221
  hasXls: !1,
215
222
  isFullscreen: I.value,
216
223
  titles: { ...e.value.userOptions.buttonTitles },
217
- chartElement: x.value,
224
+ chartElement: w.value,
218
225
  position: e.value.userOptions.position,
219
226
  hasAnnotator: e.value.userOptions.buttons.annotator,
220
227
  isAnnotation: F.value,
221
228
  callbacks: e.value.userOptions.callbacks,
222
229
  printScale: e.value.userOptions.print.scale,
223
230
  onToggleFullscreen: ee,
224
- onGeneratePdf: l(J),
225
- onGenerateImage: l(K),
226
- onToggleAnnotator: G,
227
- style: L({
228
- visibility: l(D) ? l(E) ? "visible" : "hidden" : "visible"
231
+ onGeneratePdf: s(J),
232
+ onGenerateImage: s(K),
233
+ onToggleAnnotator: E,
234
+ style: G({
235
+ visibility: s(D) ? s(R) ? "visible" : "hidden" : "visible"
229
236
  })
230
- }, me({ _: 2 }, [
237
+ }, ye({ _: 2 }, [
231
238
  t.$slots.menuIcon ? {
232
239
  name: "menuIcon",
233
- fn: P(({ isOpen: a, color: s }) => [
234
- g(t.$slots, "menuIcon", N(M({ isOpen: a, color: s })), void 0, !0)
240
+ fn: x(({ isOpen: a, color: o }) => [
241
+ p(t.$slots, "menuIcon", N(M({ isOpen: a, color: o })), void 0, !0)
235
242
  ]),
236
243
  key: "0"
237
244
  } : void 0,
238
245
  t.$slots.optionPdf ? {
239
246
  name: "optionPdf",
240
- fn: P(() => [
241
- g(t.$slots, "optionPdf", {}, void 0, !0)
247
+ fn: x(() => [
248
+ p(t.$slots, "optionPdf", {}, void 0, !0)
242
249
  ]),
243
250
  key: "1"
244
251
  } : void 0,
245
252
  t.$slots.optionImg ? {
246
253
  name: "optionImg",
247
- fn: P(() => [
248
- g(t.$slots, "optionImg", {}, void 0, !0)
254
+ fn: x(() => [
255
+ p(t.$slots, "optionImg", {}, void 0, !0)
249
256
  ]),
250
257
  key: "2"
251
258
  } : void 0,
252
259
  t.$slots.optionFullscreen ? {
253
260
  name: "optionFullscreen",
254
- fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
255
- g(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
261
+ fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
262
+ p(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
256
263
  ]),
257
264
  key: "3"
258
265
  } : void 0,
259
266
  t.$slots.optionAnnotator ? {
260
267
  name: "optionAnnotator",
261
- fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
262
- g(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
268
+ fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
269
+ p(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
263
270
  ]),
264
271
  key: "4"
265
272
  } : void 0
266
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
273
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
267
274
  T.value ? (r(), c("svg", {
268
275
  key: 4,
269
276
  ref_key: "svgRef",
270
277
  ref: H,
271
- xmlns: l(Pe),
272
- class: j({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
273
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
274
- style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
278
+ xmlns: s(Pe),
279
+ class: L({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
280
+ viewBox: `0 0 ${l.value.width} ${l.value.height}`,
281
+ style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
275
282
  }, [
276
- ye(l(ve)),
283
+ me(s(ve)),
277
284
  t.$slots["chart-background"] ? (r(), c("foreignObject", {
278
285
  key: 0,
279
286
  x: 0,
280
287
  y: 0,
281
- width: o.value.width,
282
- height: o.value.height,
288
+ width: l.value.width,
289
+ height: l.value.height,
283
290
  style: {
284
291
  pointerEvents: "none"
285
292
  }
286
293
  }, [
287
- g(t.$slots, "chart-background", {}, void 0, !0)
288
- ], 8, Ge)) : d("", !0),
289
- e.value.style.chart.layout.curved ? (r(), c("g", Le, [
290
- (r(!0), c(ae, null, oe(Z.value, (a, s) => (r(), c("path", {
294
+ p(t.$slots, "chart-background", {}, void 0, !0)
295
+ ], 8, Ee)) : g("", !0),
296
+ e.value.style.chart.layout.curved ? (r(), c("g", Ge, [
297
+ (r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("path", {
291
298
  d: a.curve,
292
299
  "stroke-width": v.value.mark,
293
- stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
300
+ stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
294
301
  "stroke-linecap": "round",
295
302
  fill: "none",
296
- class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
297
- }, null, 10, je))), 256))
298
- ])) : (r(), c("g", Re, [
299
- (r(!0), c(ae, null, oe(Z.value, (a, s) => (r(), c("line", {
303
+ class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
304
+ }, null, 10, Le))), 256))
305
+ ])) : (r(), c("g", je, [
306
+ (r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("line", {
300
307
  x1: a.x1,
301
308
  y1: a.y1,
302
309
  x2: a.x2,
303
310
  y2: a.y2,
304
311
  "stroke-width": v.value.mark,
305
- stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
312
+ stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
306
313
  "stroke-linecap": "round"
307
314
  }, null, 8, Be))), 256))
308
315
  ])),
309
316
  e.value.style.chart.percentage.show ? (r(), c("text", {
310
317
  key: 3,
311
- x: _.value.x,
312
- y: _.value.y,
313
- "font-size": _.value.fontSize,
314
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(se)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
315
- "font-weight": _.value.bold ? "bold" : "normal",
316
- "text-anchor": _.value.textAnchor
317
- }, ke(l(xe)(
318
+ x: $.value.x,
319
+ y: $.value.y,
320
+ "font-size": $.value.fontSize,
321
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(se)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
322
+ "font-weight": $.value.bold ? "bold" : "normal",
323
+ "text-anchor": $.value.textAnchor
324
+ }, ke(s(xe)(
318
325
  e.value.style.chart.percentage.formatter,
319
326
  u.value,
320
- l(Ae)({
327
+ s(Ae)({
321
328
  v: u.value,
322
329
  s: "%",
323
330
  r: e.value.style.chart.percentage.rounding
324
331
  })
325
- )), 9, Xe)) : d("", !0),
326
- g(t.$slots, "svg", { svg: o.value }, void 0, !0)
327
- ], 14, Ee)) : d("", !0),
332
+ )), 9, Xe)) : g("", !0),
333
+ p(t.$slots, "svg", { svg: l.value }, void 0, !0)
334
+ ], 14, Re)) : g("", !0),
328
335
  t.$slots.watermark ? (r(), c("div", De, [
329
- g(t.$slots, "watermark", N(M({ isPrinting: l(Y) || l(q) })), void 0, !0)
330
- ])) : d("", !0),
336
+ p(t.$slots, "watermark", N(M({ isPrinting: s(Y) || s(q) })), void 0, !0)
337
+ ])) : g("", !0),
331
338
  t.$slots.source ? (r(), c("div", He, [
332
- g(t.$slots, "source", {}, void 0, !0)
333
- ], 512)) : d("", !0),
334
- T.value ? d("", !0) : (r(), z(l(ie), {
339
+ p(t.$slots, "source", {}, void 0, !0)
340
+ ], 512)) : g("", !0),
341
+ T.value ? g("", !0) : (r(), z(s(ie), {
335
342
  key: 7,
336
343
  config: {
337
344
  type: "tiremarks",
@@ -345,7 +352,7 @@ const Te = ["id"], Ue = {
345
352
  }, null, 8, ["config"]))
346
353
  ], 46, Te));
347
354
  }
348
- }, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-887474d0"]]);
355
+ }, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-cb09d264"]]);
349
356
  export {
350
357
  at as default
351
358
  };