vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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 z, createCommentVNode as d, createSlots as ge, withCtx as O, renderSlot as g, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
2
- import { u as oe } from "./useNestedProp-BcPDA6Xr.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 Pe, i as Oe, f as xe } from "./index-CZNLCg7T.js";
4
- import { u as Ae } from "./usePrinter-ButWuZVm.js";
5
- import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
7
- import ze from "./Title-BQLtfM0P.js";
8
- import { _ as Se } 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-BS60tkQN.js")), ue = F(() => import("./vue-ui-skeleton-D9B8DY_k.js")), ie = F(() => import("./UserOptions-DMGkAAIO.js")), ce = F(() => import("./PackageVersion-DCreTQN4.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, P = 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 - P}, ${y - w} ${k - P}, ${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), P = (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 + P}, ${y + w} ${k - P}, ${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(), z(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(), z(ze, {
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,80 +200,81 @@ 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(), z(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
- onToggleFullscreen: fe,
222
+ printScale: e.value.userOptions.print.scale,
223
+ onToggleFullscreen: ee,
215
224
  onGeneratePdf: l(J),
216
225
  onGenerateImage: l(K),
217
226
  onToggleAnnotator: G,
218
227
  style: L({
219
- visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
228
+ visibility: l(D) ? l(E) ? "visible" : "hidden" : "visible"
220
229
  })
221
- }, ge({ _: 2 }, [
230
+ }, me({ _: 2 }, [
222
231
  t.$slots.menuIcon ? {
223
232
  name: "menuIcon",
224
- fn: O(({ isOpen: a, color: s }) => [
225
- g(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
233
+ fn: P(({ isOpen: a, color: s }) => [
234
+ g(t.$slots, "menuIcon", N(M({ isOpen: a, color: s })), void 0, !0)
226
235
  ]),
227
236
  key: "0"
228
237
  } : void 0,
229
238
  t.$slots.optionPdf ? {
230
239
  name: "optionPdf",
231
- fn: O(() => [
240
+ fn: P(() => [
232
241
  g(t.$slots, "optionPdf", {}, void 0, !0)
233
242
  ]),
234
243
  key: "1"
235
244
  } : void 0,
236
245
  t.$slots.optionImg ? {
237
246
  name: "optionImg",
238
- fn: O(() => [
247
+ fn: P(() => [
239
248
  g(t.$slots, "optionImg", {}, void 0, !0)
240
249
  ]),
241
250
  key: "2"
242
251
  } : void 0,
243
252
  t.$slots.optionFullscreen ? {
244
253
  name: "optionFullscreen",
245
- fn: O(({ toggleFullscreen: a, isFullscreen: s }) => [
246
- g(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
254
+ fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
255
+ g(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
247
256
  ]),
248
257
  key: "3"
249
258
  } : void 0,
250
259
  t.$slots.optionAnnotator ? {
251
260
  name: "optionAnnotator",
252
- fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
253
- g(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
261
+ fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
262
+ g(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
254
263
  ]),
255
264
  key: "4"
256
265
  } : void 0
257
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
258
- M.value ? (n(), c("svg", {
266
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
267
+ T.value ? (r(), c("svg", {
259
268
  key: 4,
260
269
  ref_key: "svgRef",
261
270
  ref: H,
262
271
  xmlns: l(Pe),
263
- class: j({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
272
+ class: j({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
264
273
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
265
274
  style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
266
275
  }, [
267
- ye(l(ce)),
268
- t.$slots["chart-background"] ? (n(), c("foreignObject", {
276
+ ye(l(ve)),
277
+ t.$slots["chart-background"] ? (r(), c("foreignObject", {
269
278
  key: 0,
270
279
  x: 0,
271
280
  y: 0,
@@ -276,18 +285,18 @@ const Ne = ["id"], Me = {
276
285
  }
277
286
  }, [
278
287
  g(t.$slots, "chart-background", {}, void 0, !0)
279
- ], 8, Ue)) : d("", !0),
280
- e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
281
- (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", {
282
291
  d: a.curve,
283
292
  "stroke-width": v.value.mark,
284
293
  stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
285
294
  "stroke-linecap": "round",
286
295
  fill: "none",
287
296
  class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
288
- }, null, 10, Le))), 256))
289
- ])) : (n(), c("g", je, [
290
- (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", {
291
300
  x1: a.x1,
292
301
  y1: a.y1,
293
302
  x2: a.x2,
@@ -295,34 +304,34 @@ const Ne = ["id"], Me = {
295
304
  "stroke-width": v.value.mark,
296
305
  stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
297
306
  "stroke-linecap": "round"
298
- }, null, 8, Ee))), 256))
307
+ }, null, 8, Be))), 256))
299
308
  ])),
300
- e.value.style.chart.percentage.show ? (n(), c("text", {
309
+ e.value.style.chart.percentage.show ? (r(), c("text", {
301
310
  key: 3,
302
311
  x: _.value.x,
303
312
  y: _.value.y,
304
313
  "font-size": _.value.fontSize,
305
- 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,
306
315
  "font-weight": _.value.bold ? "bold" : "normal",
307
316
  "text-anchor": _.value.textAnchor
308
- }, me(l(Oe)(
317
+ }, ke(l(xe)(
309
318
  e.value.style.chart.percentage.formatter,
310
319
  u.value,
311
- l(xe)({
320
+ l(Ae)({
312
321
  v: u.value,
313
322
  s: "%",
314
323
  r: e.value.style.chart.percentage.rounding
315
324
  })
316
- )), 9, Re)) : d("", !0),
325
+ )), 9, Xe)) : d("", !0),
317
326
  g(t.$slots, "svg", { svg: o.value }, void 0, !0)
318
- ], 14, Te)) : d("", !0),
319
- t.$slots.watermark ? (n(), c("div", Be, [
320
- g(t.$slots, "watermark", S(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)
321
330
  ])) : d("", !0),
322
- t.$slots.source ? (n(), c("div", Xe, [
331
+ t.$slots.source ? (r(), c("div", He, [
323
332
  g(t.$slots, "source", {}, void 0, !0)
324
333
  ], 512)) : d("", !0),
325
- M.value ? d("", !0) : (n(), z(l(ue), {
334
+ T.value ? d("", !0) : (r(), z(l(ie), {
326
335
  key: 7,
327
336
  config: {
328
337
  type: "tiremarks",
@@ -334,9 +343,9 @@ const Ne = ["id"], Me = {
334
343
  }
335
344
  }
336
345
  }, null, 8, ["config"]))
337
- ], 46, Ne));
346
+ ], 46, Te));
338
347
  }
339
- }, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-d54c8cf2"]]);
348
+ }, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-887474d0"]]);
340
349
  export {
341
- Ze as default
350
+ at as default
342
351
  };