vue-data-ui 3.0.0-next.0 → 3.0.0-next.10
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.
- package/README.md +109 -68
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-8Wnel_lw.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-D-IcFGSE.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-RLse0qy8.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-D9dpnizT.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-IzCJ9gby.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-SfJ53F5x.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-3oZlBiCt.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-u8Hc4rJi.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-6iArlmj7.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-vSWSsIaU.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CPMTQDCj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-sazd7MmK.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CTsOHFNh.js} +1 -1
- package/dist/Tooltip-4cn1szzA.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-X9Ckvwp-.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-C3BKllTG.js} +1 -1
- package/dist/img-D9CjuW6g.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-DBSLpcPM.js} +1515 -1426
- package/dist/pdf-V4tIjxUb.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -222
- package/dist/types/vue-data-ui.d.ts +1098 -222
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-BQFkJRtL.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-CjyE7ii3.js} +2 -2
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
- package/dist/vue-data-ui-BgN2CPSV.js +320 -0
- package/dist/vue-data-ui.js +53 -52
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DlnRLAbw.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-yWXqkLfQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-C_4kFlWe.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-DVXA74Er.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-DoxSEGR4.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bke-ZK92.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-CqRuHaU6.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-BYIowBXd.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-DyA4jvyD.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-BVT22rGO.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-B3RyMKwx.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-Cgqpnpao.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-Db9yuqjo.js} +2 -2
- package/dist/vue-ui-donut-CdsBUcPD.js +1547 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-D5eUZJuU.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-CWgs8sB6.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CL5jxEBp.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DT9BzBp3.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-hwr5J-b7.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-D_fnRyKs.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-CLni95HP.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-Bd8qoV2F.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BJvaJkPO.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-B7uO6vRA.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CTDfGO91.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-BSE6LaGt.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-CN24P-Tk.js} +206 -190
- package/dist/vue-ui-nested-donuts-CWL3uP-u.js +1212 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-Bib32nel.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-l0O-i93L.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-D0pzeobL.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-CaLIrn96.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DXJ1WS7s.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-C6qqU59J.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-SpPQ2WhH.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-BMsbiTjU.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-ES4LhrT0.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-yV6nLFs6.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-7gkY0oe-.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-CYLqgGm1.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-kQ3dsaGO.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-Bfe8SMeM.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-Dxts3pPS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-CC6-gQ2R.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-Ba6FPyOS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-CQr6s7Ij.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-cJAK-x5g.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DyU5K6-X.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-B_KeSP8f.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-CzGGjLl6.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-BoW1Y5Hh.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-ROH_nY6z.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-DmgpfYIT.js} +5 -5
- package/dist/vue-ui-tiremarks-CkmD6BQB.js +358 -0
- package/dist/vue-ui-treemap-BOxeG-ql.js +965 -0
- package/dist/vue-ui-vertical-bar-BoKi7wHJ.js +1106 -0
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-BIM_Qg3a.js} +234 -221
- package/dist/vue-ui-wheel-CGZgFZax.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Dt-X1dFo.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BrPqffT7.js} +239 -223
- package/dist/vue-ui-xy-CYko0Jmo.js +2982 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-DVRWryRe.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-vertical-bar-Dd4sYeAC.js +0 -958
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as m, computed as
|
|
2
|
-
import { v as
|
|
3
|
-
import r from "./BaseIcon-
|
|
4
|
-
import
|
|
1
|
+
import { ref as m, computed as w, onMounted as Q, onBeforeUnmount as Y, withDirectives as Z, createElementBlock as s, openBlock as o, normalizeStyle as v, createElementVNode as X, withKeys as p, withModifiers as _, renderSlot as d, normalizeProps as S, guardReactiveProps as ee, createVNode as te, normalizeClass as k, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as oe } from "vue";
|
|
2
|
+
import { v as ne } from "./vClickOutside-C6WiFswA.js";
|
|
3
|
+
import r from "./BaseIcon-RLse0qy8.js";
|
|
4
|
+
import z from "./img-D9CjuW6g.js";
|
|
5
5
|
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ie = ["title"], se = ["data-open"], ae = {
|
|
7
7
|
__name: "UserOptions",
|
|
@@ -129,81 +129,89 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
129
129
|
default() {
|
|
130
130
|
return {};
|
|
131
131
|
}
|
|
132
|
+
},
|
|
133
|
+
printScale: {
|
|
134
|
+
type: Number,
|
|
135
|
+
default: 2
|
|
132
136
|
}
|
|
133
137
|
},
|
|
134
138
|
emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation", "toggleAnnotator"],
|
|
135
|
-
setup(e, { emit:
|
|
136
|
-
const i = e, b =
|
|
137
|
-
function D() {
|
|
138
|
-
|
|
139
|
+
setup(e, { emit: N }) {
|
|
140
|
+
const i = e, b = N;
|
|
141
|
+
async function D() {
|
|
142
|
+
if (i.callbacks.pdf) {
|
|
143
|
+
const { imageUri: n, base64: t } = await z({ domElement: i.chartElement, base64: !0, img: !0, scale: i.printScale });
|
|
144
|
+
i.callbacks.pdf({ domElement: i.chartElement, base64: t, imageUri: n });
|
|
145
|
+
} else
|
|
146
|
+
b("generatePdf");
|
|
139
147
|
}
|
|
140
|
-
function
|
|
148
|
+
function U() {
|
|
141
149
|
b("generateCsv", i.callbacks.csv);
|
|
142
150
|
}
|
|
143
151
|
async function j() {
|
|
144
152
|
if (i.callbacks.img) {
|
|
145
|
-
const n = await
|
|
146
|
-
i.callbacks.img(n);
|
|
153
|
+
const { imageUri: n, base64: t } = await z({ domElement: i.chartElement, base64: !0, img: !0, scale: i.printScale });
|
|
154
|
+
i.callbacks.img({ domElement: i.chartElement, imageUri: n, base64: t });
|
|
147
155
|
} else
|
|
148
156
|
b("generateImage");
|
|
149
157
|
}
|
|
150
158
|
const A = m(!1);
|
|
151
|
-
function
|
|
159
|
+
function V() {
|
|
152
160
|
i.callbacks.table ? i.callbacks.table() : (A.value = !A.value, b("toggleTable"));
|
|
153
161
|
}
|
|
154
|
-
const y = m(!1),
|
|
162
|
+
const y = m(!1), K = m(!0);
|
|
155
163
|
function I() {
|
|
156
|
-
g.value = window.innerWidth > 600, y.value = !y.value, y.value && (
|
|
164
|
+
g.value = window.innerWidth > 600, y.value = !y.value, y.value && (K.value = !1);
|
|
157
165
|
}
|
|
158
|
-
function
|
|
166
|
+
function W() {
|
|
159
167
|
i.isPrinting || i.isImaging || (y.value = !1);
|
|
160
168
|
}
|
|
161
|
-
function
|
|
162
|
-
y.value &&
|
|
169
|
+
function q() {
|
|
170
|
+
y.value && W();
|
|
163
171
|
}
|
|
164
172
|
const B = m(i.isLabelActive);
|
|
165
|
-
function
|
|
173
|
+
function x() {
|
|
166
174
|
i.callbacks.labels ? i.callbacks.labels() : (B.value = !B.value, b("toggleLabels"));
|
|
167
175
|
}
|
|
168
176
|
const h = m(i.isAnimation);
|
|
169
|
-
function
|
|
177
|
+
function E() {
|
|
170
178
|
i.callbacks.animation ? i.callbacks.animation() : (h.value = !h.value, b("toggleAnimation"));
|
|
171
179
|
}
|
|
172
|
-
const C =
|
|
180
|
+
const C = w({
|
|
173
181
|
get: () => i.isAnnotation,
|
|
174
182
|
set: (n) => n
|
|
175
183
|
});
|
|
176
|
-
function
|
|
184
|
+
function O() {
|
|
177
185
|
i.callbacks.annotator ? i.callbacks.annotator() : (C.value = !C.value, b("toggleAnnotator"));
|
|
178
186
|
}
|
|
179
|
-
function
|
|
187
|
+
function H() {
|
|
180
188
|
i.callbacks.sort ? i.callbacks.sort() : b("toggleSort");
|
|
181
189
|
}
|
|
182
190
|
const F = m(i.isStacked);
|
|
183
|
-
function
|
|
191
|
+
function R() {
|
|
184
192
|
i.callbacks.stack ? i.callbacks.stack() : (F.value = !F.value, b("toggleStack"));
|
|
185
193
|
}
|
|
186
194
|
const M = m(i.isTooltip);
|
|
187
|
-
function
|
|
195
|
+
function G() {
|
|
188
196
|
i.callbacks.tooltip ? i.callbacks.tooltip() : (M.value = !M.value, b("toggleTooltip"));
|
|
189
197
|
}
|
|
190
|
-
const
|
|
198
|
+
const J = w({
|
|
191
199
|
get: () => i.isFullscreen,
|
|
192
200
|
set: (n) => b("toggleFullscreen", n)
|
|
193
201
|
});
|
|
194
|
-
function
|
|
202
|
+
function L() {
|
|
195
203
|
if (!i.chartElement) return;
|
|
196
204
|
const n = !i.isFullscreen;
|
|
197
|
-
|
|
205
|
+
J.value = n, n ? i.chartElement.requestFullscreen() : document.exitFullscreen();
|
|
198
206
|
}
|
|
199
|
-
function
|
|
207
|
+
function P() {
|
|
200
208
|
const n = !!document.fullscreenElement;
|
|
201
209
|
b("toggleFullscreen", n);
|
|
202
210
|
}
|
|
203
|
-
|
|
204
|
-
document.addEventListener("fullscreenchange",
|
|
205
|
-
}),
|
|
206
|
-
document.removeEventListener("fullscreenchange",
|
|
211
|
+
Q(() => {
|
|
212
|
+
document.addEventListener("fullscreenchange", P);
|
|
213
|
+
}), Y(() => {
|
|
214
|
+
document.removeEventListener("fullscreenchange", P);
|
|
207
215
|
});
|
|
208
216
|
const g = m(window.innerWidth > 600), l = m({
|
|
209
217
|
tooltip: !1,
|
|
@@ -218,7 +226,7 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
218
226
|
animation: !1,
|
|
219
227
|
annotator: !1
|
|
220
228
|
});
|
|
221
|
-
return (n,
|
|
229
|
+
return (n, t) => Z((o(), s("div", {
|
|
222
230
|
"data-dom-to-png-ignore": "",
|
|
223
231
|
class: "vue-ui-user-options",
|
|
224
232
|
style: v(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${e.isFullscreen ? "12px" : "0"}` : `left:${e.isFullscreen ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
|
|
@@ -227,11 +235,11 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
227
235
|
tabindex: "0",
|
|
228
236
|
title: y.value ? e.titles.close || "" : e.titles.open || "",
|
|
229
237
|
style: v(`width:32px; position: absolute; top: 0;${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),
|
|
230
|
-
onClick:
|
|
231
|
-
onKeypress:
|
|
238
|
+
onClick: _(I, ["stop"]),
|
|
239
|
+
onKeypress: p(I, ["enter"])
|
|
232
240
|
}, [
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
d(n.$slots, "menuIcon", S(ee({ isOpen: y.value, color: e.color })), () => [
|
|
242
|
+
te(r, {
|
|
235
243
|
name: y.value ? "close" : "menu",
|
|
236
244
|
stroke: e.color,
|
|
237
245
|
"stroke-width": 2
|
|
@@ -240,300 +248,300 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
240
248
|
], 44, ie),
|
|
241
249
|
X("div", {
|
|
242
250
|
"data-open": y.value,
|
|
243
|
-
class:
|
|
251
|
+
class: k({ "vue-ui-user-options-drawer": !0 }),
|
|
244
252
|
style: v(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
|
|
245
253
|
}, [
|
|
246
|
-
e.hasTooltip ? (
|
|
254
|
+
e.hasTooltip ? (o(), s("button", {
|
|
247
255
|
key: 0,
|
|
248
256
|
tabindex: "0",
|
|
249
257
|
class: "vue-ui-user-options-button",
|
|
250
|
-
onClick:
|
|
251
|
-
onMouseenter:
|
|
252
|
-
onMouseout:
|
|
258
|
+
onClick: G,
|
|
259
|
+
onMouseenter: t[0] || (t[0] = (u) => l.value.tooltip = !0),
|
|
260
|
+
onMouseout: t[1] || (t[1] = (u) => l.value.tooltip = !1)
|
|
253
261
|
}, [
|
|
254
|
-
n.$slots.optionTooltip ?
|
|
255
|
-
M.value ? (
|
|
262
|
+
n.$slots.optionTooltip ? d(n.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
263
|
+
M.value ? (o(), f(r, {
|
|
256
264
|
key: 0,
|
|
257
265
|
name: "tooltip",
|
|
258
266
|
stroke: e.color,
|
|
259
267
|
style: { "pointer-events": "none" }
|
|
260
|
-
}, null, 8, ["stroke"])) : (
|
|
268
|
+
}, null, 8, ["stroke"])) : (o(), f(r, {
|
|
261
269
|
key: 1,
|
|
262
270
|
name: "tooltipDisabled",
|
|
263
271
|
stroke: e.color,
|
|
264
272
|
style: { "pointer-events": "none" }
|
|
265
273
|
}, null, 8, ["stroke"]))
|
|
266
274
|
], 64)),
|
|
267
|
-
g.value && e.titles.tooltip && !n.$slots.optionTooltip ? (
|
|
275
|
+
g.value && e.titles.tooltip && !n.$slots.optionTooltip ? (o(), s("div", {
|
|
268
276
|
key: 2,
|
|
269
277
|
dir: "auto",
|
|
270
|
-
class:
|
|
278
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && l.value.tooltip, "button-info-right-visible": e.position === "right" && l.value.tooltip }),
|
|
271
279
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
272
280
|
}, c(e.titles.tooltip), 7)) : a("", !0)
|
|
273
281
|
], 32)) : a("", !0),
|
|
274
|
-
e.hasPdf ? (
|
|
282
|
+
e.hasPdf ? (o(), s("button", {
|
|
275
283
|
key: 1,
|
|
276
284
|
tabindex: "0",
|
|
277
285
|
class: "vue-ui-user-options-button",
|
|
278
286
|
onClick: D,
|
|
279
|
-
onMouseenter:
|
|
280
|
-
onMouseout:
|
|
287
|
+
onMouseenter: t[2] || (t[2] = (u) => l.value.pdf = !0),
|
|
288
|
+
onMouseout: t[3] || (t[3] = (u) => l.value.pdf = !1)
|
|
281
289
|
}, [
|
|
282
|
-
n.$slots.optionPdf ?
|
|
283
|
-
e.isPrinting ? (
|
|
290
|
+
n.$slots.optionPdf ? d(n.$slots, "optionPdf", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
291
|
+
e.isPrinting ? (o(), f(r, {
|
|
284
292
|
key: 0,
|
|
285
293
|
name: "spin",
|
|
286
294
|
isSpin: "",
|
|
287
295
|
stroke: e.color,
|
|
288
296
|
style: { "pointer-events": "none" }
|
|
289
|
-
}, null, 8, ["stroke"])) : (
|
|
297
|
+
}, null, 8, ["stroke"])) : (o(), f(r, {
|
|
290
298
|
key: 1,
|
|
291
299
|
name: "pdf",
|
|
292
300
|
stroke: e.color,
|
|
293
301
|
style: { "pointer-events": "none" }
|
|
294
302
|
}, null, 8, ["stroke"]))
|
|
295
303
|
], 64)),
|
|
296
|
-
g.value && e.titles.pdf && !n.$slots.optionPdf ? (
|
|
304
|
+
g.value && e.titles.pdf && !n.$slots.optionPdf ? (o(), s("div", {
|
|
297
305
|
key: 2,
|
|
298
306
|
dir: "auto",
|
|
299
|
-
class:
|
|
307
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.pdf, "button-info-left-visible": e.position === "left" && l.value.pdf }),
|
|
300
308
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
301
309
|
}, c(e.titles.pdf), 7)) : a("", !0)
|
|
302
310
|
], 32)) : a("", !0),
|
|
303
|
-
e.hasXls ? (
|
|
311
|
+
e.hasXls ? (o(), s("button", {
|
|
304
312
|
key: 2,
|
|
305
313
|
tabindex: "0",
|
|
306
314
|
class: "vue-ui-user-options-button",
|
|
307
|
-
onClick:
|
|
308
|
-
onMouseenter:
|
|
309
|
-
onMouseout:
|
|
315
|
+
onClick: U,
|
|
316
|
+
onMouseenter: t[4] || (t[4] = (u) => l.value.csv = !0),
|
|
317
|
+
onMouseout: t[5] || (t[5] = (u) => l.value.csv = !1)
|
|
310
318
|
}, [
|
|
311
|
-
n.$slots.optionCsv ?
|
|
319
|
+
n.$slots.optionCsv ? d(n.$slots, "optionCsv", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
312
320
|
key: 1,
|
|
313
321
|
name: "excel",
|
|
314
322
|
stroke: e.color,
|
|
315
323
|
style: { "pointer-events": "none" }
|
|
316
324
|
}, null, 8, ["stroke"])),
|
|
317
|
-
g.value && e.titles.csv && !n.$slots.optionCsv ? (
|
|
325
|
+
g.value && e.titles.csv && !n.$slots.optionCsv ? (o(), s("div", {
|
|
318
326
|
key: 2,
|
|
319
327
|
dir: "auto",
|
|
320
|
-
class:
|
|
328
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.csv, "button-info-left-visible": e.position === "left" && l.value.csv }),
|
|
321
329
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
322
330
|
}, c(e.titles.csv), 7)) : a("", !0)
|
|
323
331
|
], 32)) : a("", !0),
|
|
324
|
-
e.hasImg ? (
|
|
332
|
+
e.hasImg ? (o(), s("button", {
|
|
325
333
|
key: 3,
|
|
326
334
|
tabindex: "0",
|
|
327
335
|
class: "vue-ui-user-options-button",
|
|
328
336
|
onClick: j,
|
|
329
|
-
onMouseenter:
|
|
330
|
-
onMouseout:
|
|
337
|
+
onMouseenter: t[6] || (t[6] = (u) => l.value.img = !0),
|
|
338
|
+
onMouseout: t[7] || (t[7] = (u) => l.value.img = !1)
|
|
331
339
|
}, [
|
|
332
|
-
n.$slots.optionImg ?
|
|
333
|
-
e.isImaging ? (
|
|
340
|
+
n.$slots.optionImg ? d(n.$slots, "optionImg", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
341
|
+
e.isImaging ? (o(), f(r, {
|
|
334
342
|
key: 0,
|
|
335
343
|
name: "spin",
|
|
336
344
|
isSpin: "",
|
|
337
345
|
stroke: e.color,
|
|
338
346
|
style: { "pointer-events": "none" }
|
|
339
|
-
}, null, 8, ["stroke"])) : (
|
|
347
|
+
}, null, 8, ["stroke"])) : (o(), f(r, {
|
|
340
348
|
key: 1,
|
|
341
349
|
name: "image",
|
|
342
350
|
stroke: e.color,
|
|
343
351
|
style: { "pointer-events": "none" }
|
|
344
352
|
}, null, 8, ["stroke"]))
|
|
345
353
|
], 64)),
|
|
346
|
-
g.value && e.titles.img && !n.$slots.optionImg ? (
|
|
354
|
+
g.value && e.titles.img && !n.$slots.optionImg ? (o(), s("div", {
|
|
347
355
|
key: 2,
|
|
348
356
|
dir: "auto",
|
|
349
|
-
class:
|
|
357
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.img, "button-info-left-visible": e.position === "left" && l.value.img }),
|
|
350
358
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
351
359
|
}, c(e.titles.img), 7)) : a("", !0)
|
|
352
360
|
], 32)) : a("", !0),
|
|
353
|
-
e.hasTable ? (
|
|
361
|
+
e.hasTable ? (o(), s("button", {
|
|
354
362
|
key: 4,
|
|
355
363
|
tabindex: "0",
|
|
356
364
|
class: "vue-ui-user-options-button",
|
|
357
|
-
onClick:
|
|
358
|
-
onMouseenter:
|
|
359
|
-
onMouseout:
|
|
365
|
+
onClick: V,
|
|
366
|
+
onMouseenter: t[8] || (t[8] = (u) => l.value.table = !0),
|
|
367
|
+
onMouseout: t[9] || (t[9] = (u) => l.value.table = !1)
|
|
360
368
|
}, [
|
|
361
|
-
n.$slots.optionTable ?
|
|
369
|
+
n.$slots.optionTable ? d(n.$slots, "optionTable", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
362
370
|
key: 1,
|
|
363
371
|
name: A.value ? "tableClose" : "tableOpen",
|
|
364
372
|
stroke: e.color,
|
|
365
373
|
style: { "pointer-events": "none" }
|
|
366
374
|
}, null, 8, ["name", "stroke"])),
|
|
367
|
-
g.value && e.titles.table && !n.$slots.optionTable ? (
|
|
375
|
+
g.value && e.titles.table && !n.$slots.optionTable ? (o(), s("div", {
|
|
368
376
|
key: 2,
|
|
369
377
|
dir: "auto",
|
|
370
|
-
class:
|
|
378
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.table, "button-info-left-visible": e.position === "left" && l.value.table }),
|
|
371
379
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
372
380
|
}, c(e.titles.table), 7)) : a("", !0)
|
|
373
381
|
], 32)) : a("", !0),
|
|
374
|
-
e.hasLabel ? (
|
|
382
|
+
e.hasLabel ? (o(), s("button", {
|
|
375
383
|
key: 5,
|
|
376
384
|
tabindex: "0",
|
|
377
385
|
class: "vue-ui-user-options-button",
|
|
378
|
-
onClick:
|
|
379
|
-
onMouseenter:
|
|
380
|
-
onMouseout:
|
|
386
|
+
onClick: x,
|
|
387
|
+
onMouseenter: t[10] || (t[10] = (u) => l.value.labels = !0),
|
|
388
|
+
onMouseout: t[11] || (t[11] = (u) => l.value.labels = !1)
|
|
381
389
|
}, [
|
|
382
|
-
n.$slots.optionLabels ?
|
|
390
|
+
n.$slots.optionLabels ? d(n.$slots, "optionLabels", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
383
391
|
key: 1,
|
|
384
392
|
name: B.value ? "labelClose" : "labelOpen",
|
|
385
393
|
stroke: e.color,
|
|
386
394
|
style: { "pointer-events": "none" }
|
|
387
395
|
}, null, 8, ["name", "stroke"])),
|
|
388
|
-
g.value && e.titles.labels && !n.$slots.optionLabels ? (
|
|
396
|
+
g.value && e.titles.labels && !n.$slots.optionLabels ? (o(), s("div", {
|
|
389
397
|
key: 2,
|
|
390
398
|
dir: "auto",
|
|
391
|
-
class:
|
|
399
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.labels, "button-info-left-visible": e.position === "left" && l.value.labels }),
|
|
392
400
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
393
401
|
}, c(e.titles.labels), 7)) : a("", !0)
|
|
394
402
|
], 32)) : a("", !0),
|
|
395
|
-
e.hasSort ? (
|
|
403
|
+
e.hasSort ? (o(), s("button", {
|
|
396
404
|
key: 6,
|
|
397
405
|
tabindex: "0",
|
|
398
406
|
class: "vue-ui-user-options-button",
|
|
399
|
-
onClick:
|
|
400
|
-
onMouseenter:
|
|
401
|
-
onMouseout:
|
|
407
|
+
onClick: H,
|
|
408
|
+
onMouseenter: t[12] || (t[12] = (u) => l.value.sort = !0),
|
|
409
|
+
onMouseout: t[13] || (t[13] = (u) => l.value.sort = !1)
|
|
402
410
|
}, [
|
|
403
|
-
n.$slots.optionSort ?
|
|
411
|
+
n.$slots.optionSort ? d(n.$slots, "optionSort", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
404
412
|
key: 1,
|
|
405
413
|
name: "sort",
|
|
406
414
|
stroke: e.color,
|
|
407
415
|
style: { "pointer-events": "none" }
|
|
408
416
|
}, null, 8, ["stroke"])),
|
|
409
|
-
g.value && e.titles.sort && !n.$slots.optionSort ? (
|
|
417
|
+
g.value && e.titles.sort && !n.$slots.optionSort ? (o(), s("div", {
|
|
410
418
|
key: 2,
|
|
411
419
|
dir: "auto",
|
|
412
|
-
class:
|
|
420
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.sort, "button-info-left-visible": e.position === "left" && l.value.sort }),
|
|
413
421
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
414
422
|
}, c(e.titles.sort), 7)) : a("", !0)
|
|
415
423
|
], 32)) : a("", !0),
|
|
416
|
-
e.hasStack ? (
|
|
424
|
+
e.hasStack ? (o(), s("button", {
|
|
417
425
|
key: 7,
|
|
418
426
|
tabindex: "0",
|
|
419
427
|
class: "vue-ui-user-options-button",
|
|
420
|
-
onClick:
|
|
421
|
-
onMouseenter:
|
|
422
|
-
onMouseout:
|
|
428
|
+
onClick: R,
|
|
429
|
+
onMouseenter: t[14] || (t[14] = (u) => l.value.stack = !0),
|
|
430
|
+
onMouseout: t[15] || (t[15] = (u) => l.value.stack = !1)
|
|
423
431
|
}, [
|
|
424
|
-
n.$slots.optionStack ?
|
|
425
|
-
F.value ? (
|
|
432
|
+
n.$slots.optionStack ? d(n.$slots, "optionStack", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
433
|
+
F.value ? (o(), f(r, {
|
|
426
434
|
key: 0,
|
|
427
435
|
name: "unstack",
|
|
428
436
|
stroke: e.color,
|
|
429
437
|
style: { "pointer-events": "none" }
|
|
430
|
-
}, null, 8, ["stroke"])) : (
|
|
438
|
+
}, null, 8, ["stroke"])) : (o(), f(r, {
|
|
431
439
|
key: 1,
|
|
432
440
|
name: "stack",
|
|
433
441
|
stroke: e.color,
|
|
434
442
|
style: { "pointer-events": "none" }
|
|
435
443
|
}, null, 8, ["stroke"]))
|
|
436
444
|
], 64)),
|
|
437
|
-
g.value && e.titles.stack && !n.$slots.optionStack ? (
|
|
445
|
+
g.value && e.titles.stack && !n.$slots.optionStack ? (o(), s("div", {
|
|
438
446
|
key: 2,
|
|
439
447
|
dir: "auto",
|
|
440
|
-
class:
|
|
448
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.stack, "button-info-left-visible": e.position === "left" && l.value.stack }),
|
|
441
449
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
442
450
|
}, c(e.titles.stack), 7)) : a("", !0)
|
|
443
451
|
], 32)) : a("", !0),
|
|
444
|
-
e.hasFullscreen ? (
|
|
452
|
+
e.hasFullscreen ? (o(), s("button", {
|
|
445
453
|
key: 8,
|
|
446
454
|
tabindex: "0",
|
|
447
455
|
class: "vue-ui-user-options-button",
|
|
448
|
-
onMouseenter:
|
|
449
|
-
onMouseout:
|
|
450
|
-
onClick:
|
|
456
|
+
onMouseenter: t[16] || (t[16] = (u) => l.value.fullscreen = !0),
|
|
457
|
+
onMouseout: t[17] || (t[17] = (u) => l.value.fullscreen = !1),
|
|
458
|
+
onClick: t[18] || (t[18] = (u) => L(e.isFullscreen ? "out" : "in"))
|
|
451
459
|
}, [
|
|
452
|
-
n.$slots.optionFullscreen ?
|
|
453
|
-
e.isFullscreen ? (
|
|
460
|
+
n.$slots.optionFullscreen ? d(n.$slots, "optionFullscreen", S(T({ key: 0 }, { toggleFullscreen: L, isFullscreen: e.isFullscreen })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
461
|
+
e.isFullscreen ? (o(), f(r, {
|
|
454
462
|
key: 0,
|
|
455
463
|
name: "exitFullscreen",
|
|
456
464
|
stroke: e.color,
|
|
457
465
|
style: { "pointer-events": "none" }
|
|
458
466
|
}, null, 8, ["stroke"])) : a("", !0),
|
|
459
|
-
e.isFullscreen ? a("", !0) : (
|
|
467
|
+
e.isFullscreen ? a("", !0) : (o(), f(r, {
|
|
460
468
|
key: 1,
|
|
461
469
|
name: "fullscreen",
|
|
462
470
|
stroke: e.color,
|
|
463
471
|
style: { "pointer-events": "none" }
|
|
464
472
|
}, null, 8, ["stroke"]))
|
|
465
473
|
], 64)),
|
|
466
|
-
g.value && e.titles.fullscreen && !n.$slots.optionFullscreen ? (
|
|
474
|
+
g.value && e.titles.fullscreen && !n.$slots.optionFullscreen ? (o(), s("div", {
|
|
467
475
|
key: 2,
|
|
468
476
|
dir: "auto",
|
|
469
|
-
class:
|
|
477
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.fullscreen, "button-info-left-visible": e.position === "left" && l.value.fullscreen }),
|
|
470
478
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
471
479
|
}, c(e.titles.fullscreen), 7)) : a("", !0)
|
|
472
480
|
], 32)) : a("", !0),
|
|
473
|
-
e.hasAnimation ? (
|
|
481
|
+
e.hasAnimation ? (o(), s("button", {
|
|
474
482
|
key: 9,
|
|
475
483
|
tabindex: "0",
|
|
476
484
|
class: "vue-ui-user-options-button",
|
|
477
|
-
onMouseenter:
|
|
478
|
-
onMouseout:
|
|
479
|
-
onClick:
|
|
485
|
+
onMouseenter: t[19] || (t[19] = (u) => l.value.animation = !0),
|
|
486
|
+
onMouseout: t[20] || (t[20] = (u) => l.value.animation = !1),
|
|
487
|
+
onClick: E
|
|
480
488
|
}, [
|
|
481
|
-
n.$slots.optionAnimation ?
|
|
482
|
-
h.value ? (
|
|
489
|
+
n.$slots.optionAnimation ? d(n.$slots, "optionAnimation", S(T({ key: 0 }, { toggleAnimation: E, isAnimated: h.value })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
490
|
+
h.value ? (o(), f(r, {
|
|
483
491
|
key: 0,
|
|
484
492
|
name: "play",
|
|
485
493
|
stroke: e.color,
|
|
486
494
|
style: { "pointer-events": "none" }
|
|
487
495
|
}, null, 8, ["stroke"])) : a("", !0),
|
|
488
|
-
h.value ? a("", !0) : (
|
|
496
|
+
h.value ? a("", !0) : (o(), f(r, {
|
|
489
497
|
key: 1,
|
|
490
498
|
name: "pause",
|
|
491
499
|
stroke: e.color,
|
|
492
500
|
style: { "pointer-events": "none" }
|
|
493
501
|
}, null, 8, ["stroke"]))
|
|
494
502
|
], 64)),
|
|
495
|
-
g.value && e.titles.fullscreen && !n.$slots.optionAnimation ? (
|
|
503
|
+
g.value && e.titles.fullscreen && !n.$slots.optionAnimation ? (o(), s("div", {
|
|
496
504
|
key: 2,
|
|
497
505
|
dir: "auto",
|
|
498
|
-
class:
|
|
506
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.animation, "button-info-left-visible": e.position === "left" && l.value.animation }),
|
|
499
507
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
500
508
|
}, c(e.titles.animation), 7)) : a("", !0)
|
|
501
509
|
], 32)) : a("", !0),
|
|
502
|
-
e.hasAnnotator ? (
|
|
510
|
+
e.hasAnnotator ? (o(), s("button", {
|
|
503
511
|
key: 10,
|
|
504
512
|
tabindex: "0",
|
|
505
513
|
class: "vue-ui-user-options-button",
|
|
506
|
-
onMouseenter:
|
|
507
|
-
onMouseout:
|
|
508
|
-
onClick:
|
|
514
|
+
onMouseenter: t[21] || (t[21] = (u) => l.value.annotator = !0),
|
|
515
|
+
onMouseout: t[22] || (t[22] = (u) => l.value.annotator = !1),
|
|
516
|
+
onClick: O
|
|
509
517
|
}, [
|
|
510
|
-
n.$slots.optionAnnotator ?
|
|
511
|
-
C.value ? (
|
|
518
|
+
n.$slots.optionAnnotator ? d(n.$slots, "optionAnnotator", S(T({ key: 0 }, { toggleAnnotator: O, isAnnotator: C.value })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
519
|
+
C.value ? (o(), f(r, {
|
|
512
520
|
key: 0,
|
|
513
521
|
name: "annotatorDisabled",
|
|
514
522
|
stroke: e.color,
|
|
515
523
|
style: { "pointer-events": "none" }
|
|
516
524
|
}, null, 8, ["stroke"])) : a("", !0),
|
|
517
|
-
C.value ? a("", !0) : (
|
|
525
|
+
C.value ? a("", !0) : (o(), f(r, {
|
|
518
526
|
key: 1,
|
|
519
527
|
name: "annotator",
|
|
520
528
|
stroke: e.color,
|
|
521
529
|
style: { "pointer-events": "none" }
|
|
522
530
|
}, null, 8, ["stroke"]))
|
|
523
531
|
], 64)),
|
|
524
|
-
g.value && e.titles.annotator && !n.$slots.optionAnnotator ? (
|
|
532
|
+
g.value && e.titles.annotator && !n.$slots.optionAnnotator ? (o(), s("div", {
|
|
525
533
|
key: 2,
|
|
526
534
|
dir: "auto",
|
|
527
|
-
class:
|
|
535
|
+
class: k({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.annotator, "button-info-left-visible": e.position === "left" && l.value.annotator }),
|
|
528
536
|
style: v({ background: e.backgroundColor, color: e.color })
|
|
529
537
|
}, c(e.titles.annotator), 7)) : a("", !0)
|
|
530
538
|
], 32)) : a("", !0)
|
|
531
539
|
], 12, se)
|
|
532
540
|
], 4)), [
|
|
533
|
-
[
|
|
541
|
+
[oe(ne), q]
|
|
534
542
|
]);
|
|
535
543
|
}
|
|
536
|
-
}, ge = /* @__PURE__ */ le(ae, [["__scopeId", "data-v-
|
|
544
|
+
}, ge = /* @__PURE__ */ le(ae, [["__scopeId", "data-v-1400581b"]]);
|
|
537
545
|
export {
|
|
538
546
|
ge as default
|
|
539
547
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { d as n } from "./dom-to-png-C3BKllTG.js";
|
|
2
|
+
async function u({ domElement: t, fileName: c, format: f = "png", scale: i = 2, base64: a = !1, img: g = !1 }) {
|
|
3
|
+
if (!t) return Promise.reject("No element provided");
|
|
4
|
+
const h = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5
|
+
if (await new Promise((r) => setTimeout(r, 200)), h)
|
|
6
|
+
try {
|
|
7
|
+
await n({ container: t, scale: i }), await n({ container: t, scale: i }), await n({ container: t, scale: i }), await n({ container: t, scale: i }), a && (await n({ container: t, scale: i, base64: a }), await n({ container: t, scale: i, base64: a }), await n({ container: t, scale: i, base64: a }), await n({ container: t, scale: i, base64: a }));
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
if (a && g)
|
|
11
|
+
try {
|
|
12
|
+
const r = await n({ container: t, scale: i }).then((e) => e), o = await n({ container: t, scale: i, base64: a }).then((e) => e);
|
|
13
|
+
return { imageUri: r, base64: o };
|
|
14
|
+
} catch (r) {
|
|
15
|
+
console.error("Error generating image information for the chart", r);
|
|
16
|
+
}
|
|
17
|
+
else if (a)
|
|
18
|
+
try {
|
|
19
|
+
return n({ container: t, scale: i, base64: a }).then((r) => r);
|
|
20
|
+
} catch (r) {
|
|
21
|
+
console.error("Error generating the base64 string of the chart", r);
|
|
22
|
+
}
|
|
23
|
+
else
|
|
24
|
+
try {
|
|
25
|
+
const r = await n({ container: t, scale: i }), o = document.createElement("a");
|
|
26
|
+
o.href = r, o.download = `${c}.${f}`, document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
27
|
+
} catch (r) {
|
|
28
|
+
throw console.error("Error generating image:", r), r;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
u as default
|
|
33
|
+
};
|