vue-data-ui 2.16.6 → 2.17.0

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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.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-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,10 +1,10 @@
1
1
  import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as F, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
2
- import { u as ne } from "./useNestedProp-DrYHm61t.js";
3
- import { u as ce, c as ve, X as de, E as X } from "./index-DvIXJm6t.js";
2
+ import { u as ne } from "./useNestedProp-DjACxgdZ.js";
3
+ import { u as ce, c as ve, X as de, E as X } from "./index-pPGk-uhD.js";
4
4
  import { t as he, u as pe } from "./useResponsive-DfdjqQps.js";
5
5
  import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
6
- import we from "./Title-Gi81VwUM.js";
7
- import R from "./BaseIcon-Bn996RXm.js";
6
+ import we from "./Title-B-2bV0SW.js";
7
+ import R from "./BaseIcon-naqtCxVi.js";
8
8
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  class ge {
10
10
  constructor(L, E, S, N = !0, A = !0) {
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
130
130
  },
131
131
  emits: ["start", "pause", "reset", "restart", "lap"],
132
132
  setup(q, { expose: L, emit: E }) {
133
- const S = se(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
133
+ const S = se(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
134
134
  le(() => {
135
135
  m();
136
136
  });
@@ -1,22 +1,23 @@
1
- import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as S, createCommentVNode as d, createSlots as ge, withCtx as P, renderSlot as g, normalizeProps as z, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
2
- import { u as oe } from "./useNestedProp-DrYHm61t.js";
3
- import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Oe, i as Pe, f as xe } from "./index-DvIXJm6t.js";
4
- import { u as Ae } from "./usePrinter-CWnXbGMb.js";
5
- import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
7
- import Se from "./Title-Gi81VwUM.js";
8
- import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ne = ["id"], Me = {
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";
5
+ import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
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";
9
+ import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Te = ["id"], Ue = {
10
11
  key: 2,
11
12
  style: "width:100%;background:transparent;padding-bottom:12px"
12
- }, Te = ["xmlns", "viewBox"], Ue = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Ee = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Re = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Be = {
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
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, Xe = {
16
+ }, He = {
16
17
  key: 6,
17
18
  ref: "source",
18
19
  dir: "auto"
19
- }, De = {
20
+ }, Ve = {
20
21
  __name: "vue-ui-tiremarks",
21
22
  props: {
22
23
  config: {
@@ -32,46 +33,46 @@ const Ne = ["id"], Me = {
32
33
  }
33
34
  }
34
35
  },
35
- setup(se, { expose: ne }) {
36
- const re = F(() => import("./PenAndPaper-BPTpbnay.js")), ue = F(() => import("./vue-ui-skeleton-BAOt2neL.js")), ie = F(() => import("./UserOptions-CBEK6_jo.js")), ce = F(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
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
38
  get: () => V(),
38
39
  set: (t) => t
39
- }), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
40
+ }), { userOptionsVisible: E, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
40
41
  function V() {
41
- const t = oe({
42
+ const t = le({
42
43
  userConfig: f.config,
43
- defaultConfig: ve
44
+ defaultConfig: he
44
45
  });
45
46
  return t.theme ? {
46
- ...oe({
47
- userConfig: Ce.vue_ui_tiremarks[t.theme] || f.config,
47
+ ...le({
48
+ userConfig: _e.vue_ui_tiremarks[t.theme] || f.config,
48
49
  defaultConfig: t
49
50
  })
50
51
  } : t;
51
52
  }
52
- ee(() => f.config, (t) => {
53
- e.value = V(), U.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
53
+ te(() => f.config, (t) => {
54
+ e.value = V(), E.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
54
55
  }, { deep: !0 });
55
- const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ae({
56
- elementId: T.value,
56
+ const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ie({
57
+ elementId: U.value,
57
58
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
58
59
  options: e.value.userOptions.print
59
- }), de = 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
- ee(() => f.dataset, (t) => {
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));
61
+ te(() => f.dataset, (t) => {
61
62
  e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
62
- }, { deep: !0 }), pe(() => {
63
+ }, { deep: !0 }), ge(() => {
63
64
  W();
64
65
  });
65
66
  function Q(t) {
66
- let r = e.value.style.chart.animation.speed;
67
- const a = Math.abs(t - u.value) / (r * 120);
67
+ let n = e.value.style.chart.animation.speed;
68
+ const a = Math.abs(t - u.value) / (n * 120);
68
69
  function s() {
69
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);
70
71
  }
71
72
  s();
72
73
  }
73
74
  function W() {
74
- $e(f.dataset) && we({
75
+ we(f.dataset) && Oe({
75
76
  componentName: "VueUiTiremarks",
76
77
  type: "dataset"
77
78
  }), Q(f.dataset.percentage || 0);
@@ -94,91 +95,98 @@ const Ne = ["id"], Me = {
94
95
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
95
96
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
96
97
  };
97
- }), x = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
98
+ }), A = h(() => Object.values(i.value).reduce((t, n) => t + n, 0)), o = h(() => ({
98
99
  height: C.value ? 312 : 56,
99
100
  width: C.value ? 56 : 312
100
101
  })), v = h(() => C.value ? {
101
- mark: (o.value.height - x.value) / 100 * 0.5,
102
- space: (o.value.height - x.value) / 100 * 0.5
102
+ mark: (o.value.height - A.value) / 100 * 0.5,
103
+ space: (o.value.height - A.value) / 100 * 0.5
103
104
  } : {
104
- mark: (o.value.width - x.value) / 100 * 0.5,
105
- space: (o.value.width - x.value) / 100 * 0.5
105
+ mark: (o.value.width - A.value) / 100 * 0.5,
106
+ space: (o.value.width - A.value) / 100 * 0.5
106
107
  }), Z = h(() => {
107
108
  const t = [];
108
109
  for (let a = 0; a < 100; a += 1) {
109
- const s = e.value.style.chart.layout.ticks.gradient.show ? le(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
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;
110
111
  if (C.value) {
111
- 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 + $, y = o.value.width - i.value.right - 4 - $, m = 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 = (y - p) / e.value.style.chart.layout.curveAngleX, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
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);
112
113
  t.push({
113
114
  x1: p,
114
- x2: y,
115
- y1: m,
115
+ x2: m,
116
+ y1: y,
116
117
  y2: k,
117
- curve: `M ${p} ${m} C ${p + w} ${m - O}, ${y - w} ${k - O}, ${y} ${k}`,
118
+ curve: `M ${p} ${y} C ${p + w} ${y - O}, ${m - w} ${k - O}, ${m} ${k}`,
118
119
  color: s
119
120
  });
120
121
  } else {
121
- 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, y = p, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), O = (k - m) / e.value.style.chart.layout.curveAngleX;
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
123
  t.push({
123
124
  x1: p,
124
- x2: y,
125
- y1: m,
125
+ x2: m,
126
+ y1: y,
126
127
  y2: k,
127
- curve: `M ${p} ${m} C ${p + w} ${m + O}, ${y + w} ${k - O}, ${y} ${k}`,
128
+ curve: `M ${p} ${y} C ${p + w} ${y + O}, ${m + w} ${k - O}, ${m} ${k}`,
128
129
  color: s
129
130
  });
130
131
  }
131
132
  }
132
133
  return t;
133
134
  }), _ = h(() => {
134
- let t, r, a;
135
+ let t, n, a;
135
136
  const s = e.value.style.chart.percentage.fontSize / 3;
136
- return C.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, r = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, r = o.value.height - i.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, r = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - i.value.right + 8, r = o.value.height / 2 + s, a = "start"), {
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"), {
137
138
  x: t,
138
- y: r,
139
+ y: n,
139
140
  textAnchor: a,
140
141
  bold: e.value.style.chart.percentage.bold,
141
142
  fontSize: e.value.style.chart.percentage.fontSize,
142
143
  fill: e.value.style.chart.percentage.color
143
144
  };
144
- }), A = b(!1);
145
- function fe(t) {
146
- A.value = t, R.value += 1;
145
+ }), I = b(!1);
146
+ function ee(t) {
147
+ I.value = t, R.value += 1;
147
148
  }
148
- const I = b(!1);
149
+ const F = b(!1);
149
150
  function G() {
150
- I.value = !I.value;
151
+ F.value = !F.value;
151
152
  }
152
- return ne({
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 };
157
+ }
158
+ return re({
159
+ getImage: pe,
153
160
  generatePdf: J,
154
161
  generateImage: K,
155
- toggleAnnotator: G
156
- }), (t, r) => (n(), c("div", {
162
+ toggleAnnotator: G,
163
+ toggleFullscreen: ee
164
+ }), (t, n) => (r(), c("div", {
157
165
  ref_key: "tiremarksChart",
158
- ref: E,
166
+ ref: x,
159
167
  class: j(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
160
168
  style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
161
- id: T.value,
162
- onMouseenter: r[0] || (r[0] = () => l(X)(!0)),
163
- onMouseleave: r[1] || (r[1] = () => l(X)(!1))
169
+ id: U.value,
170
+ onMouseenter: n[0] || (n[0] = () => l(X)(!0)),
171
+ onMouseleave: n[1] || (n[1] = () => l(X)(!1))
164
172
  }, [
165
- e.value.userOptions.buttons.annotator ? (n(), S(l(re), {
173
+ e.value.userOptions.buttons.annotator ? (r(), z(l(ue), {
166
174
  key: 0,
167
175
  svgRef: l(H),
168
176
  backgroundColor: e.value.style.chart.backgroundColor,
169
177
  color: e.value.style.chart.color,
170
- active: I.value,
178
+ active: F.value,
171
179
  onClose: G
172
180
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
173
- de.value ? (n(), c("div", {
181
+ fe.value ? (r(), c("div", {
174
182
  key: 1,
175
183
  ref_key: "noTitle",
176
- ref: he,
184
+ ref: de,
177
185
  class: "vue-data-ui-no-title-space",
178
186
  style: "height:36px; width: 100%;background:transparent"
179
187
  }, null, 512)) : d("", !0),
180
- e.value.style.chart.title.text ? (n(), c("div", Me, [
181
- (n(), S(Se, {
188
+ e.value.style.chart.title.text ? (r(), c("div", Ue, [
189
+ (r(), z(ze, {
182
190
  key: `title_${B.value}`,
183
191
  config: {
184
192
  title: {
@@ -192,38 +200,38 @@ const Ne = ["id"], Me = {
192
200
  }
193
201
  }, null, 8, ["config"]))
194
202
  ])) : d("", !0),
195
- e.value.userOptions.show && M.value && (l(D) || l(U)) ? (n(), S(l(ie), {
203
+ e.value.userOptions.show && T.value && (l(D) || l(E)) ? (r(), z(l(ce), {
196
204
  ref: "details",
197
205
  key: `user_options_${R.value}`,
198
206
  backgroundColor: e.value.style.chart.backgroundColor,
199
207
  color: e.value.style.chart.color,
200
208
  isPrinting: l(Y),
201
209
  isImaging: l(q),
202
- uid: T.value,
210
+ uid: U.value,
203
211
  hasPdf: e.value.userOptions.buttons.pdf,
204
212
  hasImg: e.value.userOptions.buttons.img,
205
213
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
206
214
  hasXls: !1,
207
- isFullscreen: A.value,
215
+ isFullscreen: I.value,
208
216
  titles: { ...e.value.userOptions.buttonTitles },
209
- chartElement: E.value,
217
+ chartElement: x.value,
210
218
  position: e.value.userOptions.position,
211
219
  hasAnnotator: e.value.userOptions.buttons.annotator,
212
- isAnnotation: I.value,
220
+ isAnnotation: F.value,
213
221
  callbacks: e.value.userOptions.callbacks,
214
222
  printScale: e.value.userOptions.print.scale,
215
- onToggleFullscreen: fe,
223
+ onToggleFullscreen: ee,
216
224
  onGeneratePdf: l(J),
217
225
  onGenerateImage: l(K),
218
226
  onToggleAnnotator: G,
219
227
  style: L({
220
- visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
228
+ visibility: l(D) ? l(E) ? "visible" : "hidden" : "visible"
221
229
  })
222
- }, ge({ _: 2 }, [
230
+ }, me({ _: 2 }, [
223
231
  t.$slots.menuIcon ? {
224
232
  name: "menuIcon",
225
233
  fn: P(({ isOpen: a, color: s }) => [
226
- g(t.$slots, "menuIcon", z(N({ isOpen: a, color: s })), void 0, !0)
234
+ g(t.$slots, "menuIcon", N(M({ isOpen: a, color: s })), void 0, !0)
227
235
  ]),
228
236
  key: "0"
229
237
  } : void 0,
@@ -244,29 +252,29 @@ const Ne = ["id"], Me = {
244
252
  t.$slots.optionFullscreen ? {
245
253
  name: "optionFullscreen",
246
254
  fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
247
- g(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
255
+ g(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
248
256
  ]),
249
257
  key: "3"
250
258
  } : void 0,
251
259
  t.$slots.optionAnnotator ? {
252
260
  name: "optionAnnotator",
253
261
  fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
254
- g(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
262
+ g(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
255
263
  ]),
256
264
  key: "4"
257
265
  } : void 0
258
266
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
259
- M.value ? (n(), c("svg", {
267
+ T.value ? (r(), c("svg", {
260
268
  key: 4,
261
269
  ref_key: "svgRef",
262
270
  ref: H,
263
- xmlns: l(Oe),
264
- class: j({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
271
+ xmlns: l(Pe),
272
+ class: j({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
265
273
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
266
274
  style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
267
275
  }, [
268
- ye(l(ce)),
269
- t.$slots["chart-background"] ? (n(), c("foreignObject", {
276
+ ye(l(ve)),
277
+ t.$slots["chart-background"] ? (r(), c("foreignObject", {
270
278
  key: 0,
271
279
  x: 0,
272
280
  y: 0,
@@ -277,18 +285,18 @@ const Ne = ["id"], Me = {
277
285
  }
278
286
  }, [
279
287
  g(t.$slots, "chart-background", {}, void 0, !0)
280
- ], 8, Ue)) : d("", !0),
281
- e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
282
- (n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
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", {
283
291
  d: a.curve,
284
292
  "stroke-width": v.value.mark,
285
293
  stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
286
294
  "stroke-linecap": "round",
287
295
  fill: "none",
288
296
  class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
289
- }, null, 10, Le))), 256))
290
- ])) : (n(), c("g", je, [
291
- (n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("line", {
297
+ }, null, 10, je))), 256))
298
+ ])) : (r(), c("g", Re, [
299
+ (r(!0), c(ae, null, oe(Z.value, (a, s) => (r(), c("line", {
292
300
  x1: a.x1,
293
301
  y1: a.y1,
294
302
  x2: a.x2,
@@ -296,34 +304,34 @@ const Ne = ["id"], Me = {
296
304
  "stroke-width": v.value.mark,
297
305
  stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
298
306
  "stroke-linecap": "round"
299
- }, null, 8, Ee))), 256))
307
+ }, null, 8, Be))), 256))
300
308
  ])),
301
- e.value.style.chart.percentage.show ? (n(), c("text", {
309
+ e.value.style.chart.percentage.show ? (r(), c("text", {
302
310
  key: 3,
303
311
  x: _.value.x,
304
312
  y: _.value.y,
305
313
  "font-size": _.value.fontSize,
306
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(le)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
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,
307
315
  "font-weight": _.value.bold ? "bold" : "normal",
308
316
  "text-anchor": _.value.textAnchor
309
- }, me(l(Pe)(
317
+ }, ke(l(xe)(
310
318
  e.value.style.chart.percentage.formatter,
311
319
  u.value,
312
- l(xe)({
320
+ l(Ae)({
313
321
  v: u.value,
314
322
  s: "%",
315
323
  r: e.value.style.chart.percentage.rounding
316
324
  })
317
- )), 9, Re)) : d("", !0),
325
+ )), 9, Xe)) : d("", !0),
318
326
  g(t.$slots, "svg", { svg: o.value }, void 0, !0)
319
- ], 14, Te)) : d("", !0),
320
- t.$slots.watermark ? (n(), c("div", Be, [
321
- g(t.$slots, "watermark", z(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
327
+ ], 14, Ee)) : d("", !0),
328
+ t.$slots.watermark ? (r(), c("div", De, [
329
+ g(t.$slots, "watermark", N(M({ isPrinting: l(Y) || l(q) })), void 0, !0)
322
330
  ])) : d("", !0),
323
- t.$slots.source ? (n(), c("div", Xe, [
331
+ t.$slots.source ? (r(), c("div", He, [
324
332
  g(t.$slots, "source", {}, void 0, !0)
325
333
  ], 512)) : d("", !0),
326
- M.value ? d("", !0) : (n(), S(l(ue), {
334
+ T.value ? d("", !0) : (r(), z(l(ie), {
327
335
  key: 7,
328
336
  config: {
329
337
  type: "tiremarks",
@@ -335,9 +343,9 @@ const Ne = ["id"], Me = {
335
343
  }
336
344
  }
337
345
  }, null, 8, ["config"]))
338
- ], 46, Ne));
346
+ ], 46, Te));
339
347
  }
340
- }, Ze = /* @__PURE__ */ ze(De, [["__scopeId", "data-v-fb5a8e7d"]]);
348
+ }, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-887474d0"]]);
341
349
  export {
342
- Ze as default
350
+ at as default
343
351
  };