vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.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-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Ne } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { useCssVars as Ue, defineAsyncComponent as H, computed as se, ref as g, watch as be, shallowRef as Me, onMounted as De, onBeforeUnmount as Ge, createElementBlock as N, openBlock as T, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as Y, createVNode as we, createSlots as Le, withCtx as A, renderSlot as M, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Pe, createElementVNode as ke, Fragment as He, renderList as je, toDisplayString as ze, createTextVNode as qe, nextTick as Oe } from "vue";
|
|
2
|
+
import { u as Ze, c as Ae, al as Je, v as Ke, t as Qe, p as me, a as et, o as tt, e as Ie, g as ot, f as at, X as lt, q as nt, r as st, x as it } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as rt, u as ut, d as ct } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as dt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as mt } from "./usePanZoom-BQMvRXEQ.js";
|
|
9
|
+
import ft from "./Title-pVYRzQXY.js";
|
|
10
|
+
import pt from "./img-ku4zevVD.js";
|
|
11
|
+
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
function yt(C, p) {
|
|
13
|
+
const { width: u, height: f } = C, m = p.getImageData(0, 0, u, f).data;
|
|
14
|
+
let l = u, a = f, i = 0, x = 0, d = !1;
|
|
14
15
|
for (let h = 0; h < f; h += 1)
|
|
15
16
|
for (let y = 0; y < u; y += 1)
|
|
16
|
-
m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y >
|
|
17
|
-
return d ? [l, a,
|
|
17
|
+
m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > i && (i = y), h < a && (a = h), h > x && (x = h));
|
|
18
|
+
return d ? [l, a, i, x] : [0, 0, 0, 0];
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
word:
|
|
20
|
+
function _e({
|
|
21
|
+
word: C,
|
|
21
22
|
fontSize: p,
|
|
22
23
|
pad: u,
|
|
23
24
|
canvas: f,
|
|
@@ -25,93 +26,93 @@ function Ie({
|
|
|
25
26
|
svg: m
|
|
26
27
|
}) {
|
|
27
28
|
c.save(), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`;
|
|
28
|
-
const l = c.measureText(
|
|
29
|
-
f.width = a, f.height =
|
|
30
|
-
const d = c.getImageData(0, 0, a,
|
|
31
|
-
for (let
|
|
32
|
-
for (let
|
|
33
|
-
d[(
|
|
34
|
-
const [y,
|
|
35
|
-
return c.restore(), { w: a, h:
|
|
29
|
+
const l = c.measureText(C.name), a = Math.ceil(l.width) + 2 + (u ? u * 2 : 0), i = Math.ceil(p) + 2 + (u ? u * 2 : 0);
|
|
30
|
+
f.width = a, f.height = i, c.clearRect(0, 0, a, i), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`, c.textAlign = "center", c.textBaseline = "middle", c.fillStyle = "black", c.fillText(C.name, a / 2, i / 2);
|
|
31
|
+
const d = c.getImageData(0, 0, a, i).data, h = [];
|
|
32
|
+
for (let R = 0; R < i; R += 1)
|
|
33
|
+
for (let E = 0; E < a; E += 1)
|
|
34
|
+
d[(R * a + E) * 4 + 3] > 1 && h.push([E, R]);
|
|
35
|
+
const [y, U, S, _] = yt(f, c);
|
|
36
|
+
return c.restore(), { w: a, h: i, wordMask: h, minX: y, minY: U, maxX: S, maxY: _ };
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function Re({ mask: C, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
|
|
38
39
|
for (let l = 0; l < m.length; l += 1) {
|
|
39
|
-
const a = f + m[l][0],
|
|
40
|
-
if (a < 0 ||
|
|
40
|
+
const a = f + m[l][0], i = c + m[l][1];
|
|
41
|
+
if (a < 0 || i < 0 || a >= p || i >= u || C[i * p + a]) return !1;
|
|
41
42
|
}
|
|
42
43
|
return !0;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function Xe({ mask: C, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
|
|
45
46
|
for (let l = 0; l < m.length; l += 1) {
|
|
46
|
-
const a = f + m[l][0],
|
|
47
|
-
a >= 0 &&
|
|
47
|
+
const a = f + m[l][0], i = c + m[l][1];
|
|
48
|
+
a >= 0 && i >= 0 && a < p && i < u && (C[i * p + a] = 1);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
const c = new Set(
|
|
52
|
-
for (let [l, a] of
|
|
53
|
-
for (let
|
|
54
|
-
for (let
|
|
55
|
-
if (
|
|
56
|
-
const d = l +
|
|
51
|
+
function bt({ wordMask: C, w: p, h: u, dilation: f }) {
|
|
52
|
+
const c = new Set(C.map(([l, a]) => `${l},${a}`)), m = new Set(c);
|
|
53
|
+
for (let [l, a] of C)
|
|
54
|
+
for (let i = -f; i <= f; i += 1)
|
|
55
|
+
for (let x = -f; x <= f; x += 1) {
|
|
56
|
+
if (i === 0 && x === 0) continue;
|
|
57
|
+
const d = l + i, h = a + x;
|
|
57
58
|
d >= 0 && d < p && h >= 0 && h < u && m.add(`${d},${h}`);
|
|
58
59
|
}
|
|
59
60
|
return Array.from(m).map((l) => l.split(",").map(Number));
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
words:
|
|
62
|
+
function wt({
|
|
63
|
+
words: C,
|
|
63
64
|
proximity: p = 0,
|
|
64
65
|
svg: u,
|
|
65
66
|
strictPixelPadding: f
|
|
66
67
|
}) {
|
|
67
|
-
const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m),
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
for (const
|
|
71
|
-
let z =
|
|
72
|
-
|
|
73
|
-
let
|
|
74
|
-
for (; !
|
|
75
|
-
let { w:
|
|
76
|
-
word:
|
|
77
|
-
fontSize:
|
|
68
|
+
const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), i = 1, x = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = C.map((F) => F.value), y = Math.min(...h), U = Math.max(...h), S = new Uint8Array(l * a), _ = document.createElement("canvas"), R = _.getContext("2d", { willReadFrequently: !0 });
|
|
69
|
+
_.width = l, _.height = a;
|
|
70
|
+
const E = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...C].sort((F, z) => z.value - F.value), j = [];
|
|
71
|
+
for (const F of ae) {
|
|
72
|
+
let z = x;
|
|
73
|
+
U !== y && (z = (F.value - y) / (U - y) * (d - x) + x), z = Math.max(x, Math.min(d, z));
|
|
74
|
+
let X = !1, s = z;
|
|
75
|
+
for (; !X && s >= i; ) {
|
|
76
|
+
let { w: V, h: W, wordMask: $, minX: B, minY: q, maxX: Z, maxY: J } = _e({
|
|
77
|
+
word: F,
|
|
78
|
+
fontSize: s,
|
|
78
79
|
pad: p,
|
|
79
|
-
canvas:
|
|
80
|
-
ctx:
|
|
80
|
+
canvas: _,
|
|
81
|
+
ctx: R,
|
|
81
82
|
svg: u
|
|
82
83
|
});
|
|
83
|
-
f && (
|
|
84
|
-
let O = 0,
|
|
85
|
-
for (; O < Math.max(l, a) && !
|
|
86
|
-
for (let v = 0; v < 360; v +=
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
if (!(
|
|
90
|
-
j.push({ ...
|
|
84
|
+
f && ($ = bt({ wordMask: $, w: V, h: W, dilation: 1 }));
|
|
85
|
+
let O = 0, D = 0;
|
|
86
|
+
for (; O < Math.max(l, a) && !X && D < 1e4; ) {
|
|
87
|
+
for (let v = 0; v < 360; v += E) {
|
|
88
|
+
D += 1;
|
|
89
|
+
const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - V / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - W / 2);
|
|
90
|
+
if (!(P < 0 || b < 0 || P + V > l || b + W > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ })) {
|
|
91
|
+
j.push({ ...F, x: P - l / 2, y: b - a / 2, fontSize: s, width: V, height: W, angle: 0, minX: B, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ }), X = !0;
|
|
91
92
|
break;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
O += re;
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
X || (s -= 1);
|
|
97
98
|
}
|
|
98
|
-
if (!
|
|
99
|
-
|
|
100
|
-
const { w:
|
|
101
|
-
word:
|
|
102
|
-
fontSize:
|
|
99
|
+
if (!X && s < i) {
|
|
100
|
+
s = i;
|
|
101
|
+
const { w: V, h: W, wordMask: $, minX: B, minY: q, maxX: Z, maxY: J } = _e({
|
|
102
|
+
word: F,
|
|
103
|
+
fontSize: s,
|
|
103
104
|
pad: p,
|
|
104
|
-
canvas:
|
|
105
|
-
ctx:
|
|
105
|
+
canvas: _,
|
|
106
|
+
ctx: R,
|
|
106
107
|
svg: u
|
|
107
108
|
});
|
|
108
|
-
let O = 0,
|
|
109
|
-
for (; O < Math.max(l, a) && !
|
|
109
|
+
let O = 0, D = 0;
|
|
110
|
+
for (; O < Math.max(l, a) && !X && D < 25e3; ) {
|
|
110
111
|
for (let v = 0; v < 360; v += te) {
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
if (!(
|
|
114
|
-
j.push({ ...
|
|
112
|
+
D += 1;
|
|
113
|
+
const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - V / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - W / 2);
|
|
114
|
+
if (!(P < 0 || b < 0 || P + V > l || b + W > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ })) {
|
|
115
|
+
j.push({ ...F, x: P - l / 2, y: b - a / 2, fontSize: s, width: V, height: W, angle: 0, minX: B, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ }), X = !0;
|
|
115
116
|
break;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
@@ -119,16 +120,16 @@ function yt({
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
return j.sort((
|
|
123
|
+
return j.sort((F, z) => z.fontSize - F.fontSize);
|
|
123
124
|
}
|
|
124
|
-
const
|
|
125
|
+
const kt = ["id"], Ct = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["transform"], Tt = ["x", "y", "width", "height", "onMouseover"], St = ["fill", "font-weight", "x", "y", "font-size", "transform"], Ft = {
|
|
125
126
|
key: 4,
|
|
126
127
|
class: "vue-data-ui-watermark"
|
|
127
|
-
},
|
|
128
|
+
}, Mt = {
|
|
128
129
|
key: 5,
|
|
129
130
|
"data-dom-to-png-ignore": "",
|
|
130
131
|
class: "reset-wrapper"
|
|
131
|
-
},
|
|
132
|
+
}, Pt = ["innerHTML"], zt = {
|
|
132
133
|
__name: "vue-ui-word-cloud",
|
|
133
134
|
props: {
|
|
134
135
|
config: {
|
|
@@ -144,88 +145,88 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
|
-
setup(
|
|
148
|
-
|
|
149
|
-
"
|
|
148
|
+
setup(C, { expose: p }) {
|
|
149
|
+
Ue((t) => ({
|
|
150
|
+
"50cddfce": t.slicerColor
|
|
150
151
|
}));
|
|
151
|
-
const u = H(() => import("./vue-ui-accordion-
|
|
152
|
+
const u = H(() => import("./vue-ui-accordion-DgZK-qDz.js")), f = H(() => import("./BaseIcon-BmZ4MREl.js")), c = H(() => import("./DataTable-CgL0Rz0x.js")), m = H(() => import("./PackageVersion-CAkNkiIG.js")), l = H(() => import("./PenAndPaper-Cx1-5zdD.js")), a = H(() => import("./Tooltip-NwATo4ZJ.js")), i = H(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_word_cloud: x } = Ze(), d = C, h = se({
|
|
152
153
|
get() {
|
|
153
154
|
return !!d.dataset && d.dataset.length;
|
|
154
155
|
},
|
|
155
156
|
set(t) {
|
|
156
157
|
return t;
|
|
157
158
|
}
|
|
158
|
-
}), y = g(
|
|
159
|
-
get: () =>
|
|
159
|
+
}), y = g(Ae()), U = g(0), S = g(null), _ = g(null), R = g(null), E = g(0), re = g(0), te = g(!1), e = se({
|
|
160
|
+
get: () => X(),
|
|
160
161
|
set: (t) => t
|
|
161
162
|
}), G = g(oe());
|
|
162
163
|
function oe() {
|
|
163
|
-
return typeof d.dataset == "string" ?
|
|
164
|
+
return typeof d.dataset == "string" ? Je(d.dataset) : d.dataset.map((t, n) => ({
|
|
164
165
|
...t,
|
|
165
|
-
value:
|
|
166
|
+
value: Ke(t.value)
|
|
166
167
|
}));
|
|
167
168
|
}
|
|
168
169
|
be(() => d.dataset, () => {
|
|
169
170
|
G.value = oe(), fe();
|
|
170
171
|
});
|
|
171
|
-
const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState:
|
|
172
|
-
function
|
|
172
|
+
const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: F } = vt({ config: e.value }), { svgRef: z } = ht({ config: e.value.style.chart.title });
|
|
173
|
+
function X() {
|
|
173
174
|
const t = Ne({
|
|
174
175
|
userConfig: d.config,
|
|
175
|
-
defaultConfig:
|
|
176
|
+
defaultConfig: x
|
|
176
177
|
});
|
|
177
178
|
return t.theme ? {
|
|
178
179
|
...Ne({
|
|
179
|
-
userConfig:
|
|
180
|
+
userConfig: et.vue_ui_word_cloud[t.theme] || d.config,
|
|
180
181
|
defaultConfig: t
|
|
181
182
|
}),
|
|
182
|
-
customPalette:
|
|
183
|
+
customPalette: Qe[t.theme] || me
|
|
183
184
|
} : t;
|
|
184
185
|
}
|
|
185
186
|
be(() => d.config, (t) => {
|
|
186
|
-
e.value =
|
|
187
|
+
e.value = X(), ae.value = !e.value.userOptions.showOnChartHover, q(), E.value += 1, re.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
187
188
|
}, { deep: !0 });
|
|
188
|
-
const
|
|
189
|
+
const s = g({
|
|
189
190
|
width: e.value.style.chart.width,
|
|
190
191
|
height: e.value.style.chart.height,
|
|
191
192
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
192
193
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
193
194
|
bold: e.value.style.chart.words.bold
|
|
194
|
-
}),
|
|
195
|
+
}), V = ct(() => {
|
|
195
196
|
fe();
|
|
196
|
-
}, 10),
|
|
197
|
-
const { width: t, height:
|
|
198
|
-
chart:
|
|
199
|
-
title: e.value.style.chart.title.text ?
|
|
200
|
-
source:
|
|
197
|
+
}, 10), W = rt(() => {
|
|
198
|
+
const { width: t, height: n } = ut({
|
|
199
|
+
chart: S.value,
|
|
200
|
+
title: e.value.style.chart.title.text ? _.value : null,
|
|
201
|
+
source: R.value
|
|
201
202
|
});
|
|
202
203
|
requestAnimationFrame(() => {
|
|
203
|
-
|
|
204
|
+
s.value.width = t, s.value.height = n, Oe(V);
|
|
204
205
|
});
|
|
205
|
-
}),
|
|
206
|
-
|
|
206
|
+
}), $ = Me(null), B = Me(null);
|
|
207
|
+
De(q);
|
|
207
208
|
function q() {
|
|
208
|
-
|
|
209
|
+
tt(d.dataset) ? Ie({
|
|
209
210
|
componentName: "VueUiWordCloud",
|
|
210
211
|
type: "dataset"
|
|
211
|
-
}) : G.value.forEach((t,
|
|
212
|
-
|
|
212
|
+
}) : G.value.forEach((t, n) => {
|
|
213
|
+
ot({
|
|
213
214
|
datasetObject: t,
|
|
214
215
|
requiredAttributes: ["name", "value"]
|
|
215
216
|
}).forEach((o) => {
|
|
216
|
-
h.value = !1,
|
|
217
|
+
h.value = !1, Ie({
|
|
217
218
|
componentName: "VueUiWordCloud",
|
|
218
219
|
type: "datasetSerieAttribute",
|
|
219
220
|
property: o,
|
|
220
|
-
index:
|
|
221
|
+
index: n
|
|
221
222
|
});
|
|
222
223
|
});
|
|
223
|
-
}), e.value.responsive && (
|
|
224
|
+
}), e.value.responsive && ($.value && (B.value && $.value.unobserve(B.value), $.value.disconnect()), $.value = new ResizeObserver(W), B.value = S.value.parentNode, $.value.observe(B.value));
|
|
224
225
|
}
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
Ge(() => {
|
|
227
|
+
$.value && (B.value && $.value.unobserve(B.value), $.value.disconnect());
|
|
227
228
|
});
|
|
228
|
-
const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage:
|
|
229
|
+
const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: D } = dt({
|
|
229
230
|
elementId: `wordCloud_${y.value}`,
|
|
230
231
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
231
232
|
options: e.value.userOptions.print
|
|
@@ -233,32 +234,32 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
233
234
|
showTable: e.value.table.show,
|
|
234
235
|
showTooltip: e.value.style.chart.tooltip.show
|
|
235
236
|
});
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
return
|
|
239
|
-
width:
|
|
240
|
-
height:
|
|
237
|
+
function P(t, n, o = "Arial") {
|
|
238
|
+
const k = document.createElement("canvas").getContext("2d");
|
|
239
|
+
return k.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
240
|
+
width: k.measureText(t).width + e.value.style.chart.words.proximity,
|
|
241
|
+
height: n
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
244
|
const b = g([]);
|
|
244
245
|
be(() => d.dataset, fe, { immediate: !0 });
|
|
245
246
|
function fe() {
|
|
246
|
-
const t = [...G.value].map((
|
|
247
|
-
let L = (
|
|
248
|
-
L = isNaN(L) ?
|
|
249
|
-
const
|
|
247
|
+
const t = [...G.value].map((k) => k.value), n = Math.max(...t), o = Math.min(...t), w = [...G.value].map((k, I) => {
|
|
248
|
+
let L = (k.value - o) / (n - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
|
|
249
|
+
L = isNaN(L) ? s.value.minFontSize : L;
|
|
250
|
+
const Fe = P(k.name, L);
|
|
250
251
|
return {
|
|
251
|
-
...
|
|
252
|
-
id:
|
|
252
|
+
...k,
|
|
253
|
+
id: Ae(),
|
|
253
254
|
fontSize: L,
|
|
254
|
-
width:
|
|
255
|
-
height:
|
|
256
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[
|
|
255
|
+
width: Fe.width,
|
|
256
|
+
height: Fe.height,
|
|
257
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[I] || e.value.customPalette[I % e.value.customPalette.length] || me[I] || me[I % me.length] : e.value.style.chart.words.color
|
|
257
258
|
};
|
|
258
259
|
});
|
|
259
|
-
b.value =
|
|
260
|
-
words:
|
|
261
|
-
svg:
|
|
260
|
+
b.value = wt({
|
|
261
|
+
words: w,
|
|
262
|
+
svg: s.value,
|
|
262
263
|
proximity: e.value.style.chart.words.proximity,
|
|
263
264
|
strictPixelPadding: e.value.strictPixelPadding
|
|
264
265
|
});
|
|
@@ -267,27 +268,27 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
267
268
|
const t = b.value.map((o) => ({
|
|
268
269
|
name: o.name,
|
|
269
270
|
color: o.color
|
|
270
|
-
})),
|
|
271
|
-
return { head: t, body:
|
|
271
|
+
})), n = b.value.map((o) => o.value);
|
|
272
|
+
return { head: t, body: n };
|
|
272
273
|
});
|
|
273
274
|
function Ce(t = null) {
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
], [ue.value.body[
|
|
278
|
-
t ? t(
|
|
275
|
+
Oe(() => {
|
|
276
|
+
const n = ue.value.head.map((k, I) => [[
|
|
277
|
+
k.name
|
|
278
|
+
], [ue.value.body[I]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), w = nt(o);
|
|
279
|
+
t ? t(w) : st({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
279
280
|
});
|
|
280
281
|
}
|
|
281
282
|
const ce = se(() => {
|
|
282
283
|
const t = [
|
|
283
284
|
e.value.table.columnNames.series,
|
|
284
285
|
e.value.table.columnNames.value
|
|
285
|
-
],
|
|
286
|
-
const L =
|
|
286
|
+
], n = ue.value.head.map((k, I) => {
|
|
287
|
+
const L = at({ p: e.value.table.td.prefix, v: ue.value.body[I], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
287
288
|
return [
|
|
288
289
|
{
|
|
289
|
-
color:
|
|
290
|
-
name:
|
|
290
|
+
color: k.color,
|
|
291
|
+
name: k.name
|
|
291
292
|
},
|
|
292
293
|
L
|
|
293
294
|
];
|
|
@@ -310,49 +311,63 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
310
311
|
e.value.table.columnNames.value
|
|
311
312
|
],
|
|
312
313
|
head: t,
|
|
313
|
-
body:
|
|
314
|
+
body: n,
|
|
314
315
|
config: o
|
|
315
316
|
};
|
|
316
317
|
}), de = g(!1);
|
|
317
|
-
function
|
|
318
|
-
de.value = t,
|
|
318
|
+
function xe(t) {
|
|
319
|
+
de.value = t, U.value += 1;
|
|
319
320
|
}
|
|
320
321
|
function Ve() {
|
|
321
322
|
return b.value;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function $e() {
|
|
324
325
|
v.value.showTable = !v.value.showTable;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function Te() {
|
|
327
328
|
v.value.showTooltip = !v.value.showTooltip;
|
|
328
329
|
}
|
|
329
330
|
const le = g(!1);
|
|
330
331
|
function pe() {
|
|
331
332
|
le.value = !le.value;
|
|
332
333
|
}
|
|
333
|
-
const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom:
|
|
334
|
+
const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom: Se, isZoom: Be } = mt(z, {
|
|
334
335
|
x: 0,
|
|
335
336
|
y: 0,
|
|
336
|
-
width:
|
|
337
|
-
height:
|
|
337
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
338
|
+
height: s.value.height <= 0 ? 10 : s.value.height
|
|
338
339
|
}, 1, We);
|
|
340
|
+
async function Ye({ scale: t = 2 } = {}) {
|
|
341
|
+
if (!S.value) return;
|
|
342
|
+
const { width: n, height: o } = S.value.getBoundingClientRect(), w = n / o, { imageUri: k, base64: I } = await pt({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
343
|
+
return {
|
|
344
|
+
imageUri: k,
|
|
345
|
+
base64: I,
|
|
346
|
+
title: e.value.style.chart.title.text,
|
|
347
|
+
width: n,
|
|
348
|
+
height: o,
|
|
349
|
+
aspectRatio: w
|
|
350
|
+
};
|
|
351
|
+
}
|
|
339
352
|
p({
|
|
340
353
|
getData: Ve,
|
|
354
|
+
getImage: Ye,
|
|
341
355
|
generateCsv: Ce,
|
|
342
356
|
generatePdf: O,
|
|
343
|
-
generateImage:
|
|
344
|
-
toggleTable:
|
|
345
|
-
toggleTooltip:
|
|
346
|
-
toggleAnnotator: pe
|
|
357
|
+
generateImage: D,
|
|
358
|
+
toggleTable: $e,
|
|
359
|
+
toggleTooltip: Te,
|
|
360
|
+
toggleAnnotator: pe,
|
|
361
|
+
toggleFullscreen: xe
|
|
347
362
|
});
|
|
348
363
|
const K = g(null), ne = g(!1), ge = g(""), ye = g(null);
|
|
349
|
-
function
|
|
364
|
+
function Ee(t) {
|
|
350
365
|
if (!v.value.showTooltip) return;
|
|
351
366
|
K.value = t.id, ye.value = { datapoint: t, config: e.value };
|
|
352
|
-
const
|
|
353
|
-
if (ne.value = !1,
|
|
367
|
+
const n = e.value.style.chart.tooltip.customFormat;
|
|
368
|
+
if (ne.value = !1, it(n))
|
|
354
369
|
try {
|
|
355
|
-
const o =
|
|
370
|
+
const o = n({
|
|
356
371
|
datapoint: t,
|
|
357
372
|
config: e.value
|
|
358
373
|
});
|
|
@@ -366,31 +381,31 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
366
381
|
}
|
|
367
382
|
te.value = !0;
|
|
368
383
|
}
|
|
369
|
-
return (t,
|
|
384
|
+
return (t, n) => (T(), N("div", {
|
|
370
385
|
class: "vue-ui-word-cloud",
|
|
371
386
|
ref_key: "wordCloudChart",
|
|
372
|
-
ref:
|
|
387
|
+
ref: S,
|
|
373
388
|
id: `wordCloud_${y.value}`,
|
|
374
389
|
style: he(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
375
|
-
onMouseenter:
|
|
376
|
-
onMouseleave:
|
|
390
|
+
onMouseenter: n[3] || (n[3] = () => r(j)(!0)),
|
|
391
|
+
onMouseleave: n[4] || (n[4] = () => r(j)(!1))
|
|
377
392
|
}, [
|
|
378
|
-
e.value.userOptions.buttons.annotator ? (
|
|
393
|
+
e.value.userOptions.buttons.annotator ? (T(), ie(r(l), {
|
|
379
394
|
key: 0,
|
|
380
395
|
svgRef: r(z),
|
|
381
396
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
397
|
color: e.value.style.chart.color,
|
|
383
398
|
active: le.value,
|
|
384
399
|
onClose: pe
|
|
385
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
386
|
-
e.value.style.chart.title.text ? (
|
|
400
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : Y("", !0),
|
|
401
|
+
e.value.style.chart.title.text ? (T(), N("div", {
|
|
387
402
|
key: 1,
|
|
388
403
|
ref_key: "chartTitle",
|
|
389
|
-
ref:
|
|
404
|
+
ref: _,
|
|
390
405
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
391
406
|
}, [
|
|
392
|
-
(
|
|
393
|
-
key: `title_${
|
|
407
|
+
(T(), ie(ft, {
|
|
408
|
+
key: `title_${E.value}`,
|
|
394
409
|
config: {
|
|
395
410
|
title: {
|
|
396
411
|
...e.value.style.chart.title
|
|
@@ -400,10 +415,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
400
415
|
}
|
|
401
416
|
}
|
|
402
417
|
}, null, 8, ["config"]))
|
|
403
|
-
], 512)) :
|
|
404
|
-
e.value.userOptions.show && h.value && (r(
|
|
418
|
+
], 512)) : Y("", !0),
|
|
419
|
+
e.value.userOptions.show && h.value && (r(F) || r(ae)) ? (T(), ie(r(i), {
|
|
405
420
|
ref: "details",
|
|
406
|
-
key: `user_option_${
|
|
421
|
+
key: `user_option_${U.value}`,
|
|
407
422
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
408
423
|
color: e.value.style.chart.color,
|
|
409
424
|
isPrinting: r(Z),
|
|
@@ -416,101 +431,102 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
416
431
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
417
432
|
isFullscreen: de.value,
|
|
418
433
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
419
|
-
chartElement:
|
|
434
|
+
chartElement: S.value,
|
|
420
435
|
position: e.value.userOptions.position,
|
|
421
436
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
422
437
|
isTooltip: v.value.showTooltip,
|
|
423
438
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
424
439
|
isAnnotation: le.value,
|
|
425
440
|
callbacks: e.value.userOptions.callbacks,
|
|
426
|
-
|
|
441
|
+
printScale: e.value.userOptions.print.scale,
|
|
442
|
+
onToggleFullscreen: xe,
|
|
427
443
|
onGeneratePdf: r(O),
|
|
428
444
|
onGenerateCsv: Ce,
|
|
429
|
-
onGenerateImage: r(
|
|
430
|
-
onToggleTable:
|
|
431
|
-
onToggleTooltip:
|
|
445
|
+
onGenerateImage: r(D),
|
|
446
|
+
onToggleTable: $e,
|
|
447
|
+
onToggleTooltip: Te,
|
|
432
448
|
onToggleAnnotator: pe,
|
|
433
449
|
style: he({
|
|
434
|
-
visibility: r(
|
|
450
|
+
visibility: r(F) ? r(ae) ? "visible" : "hidden" : "visible"
|
|
435
451
|
})
|
|
436
|
-
},
|
|
452
|
+
}, Le({ _: 2 }, [
|
|
437
453
|
t.$slots.menuIcon ? {
|
|
438
454
|
name: "menuIcon",
|
|
439
|
-
fn: A(({ isOpen: o, color:
|
|
440
|
-
|
|
455
|
+
fn: A(({ isOpen: o, color: w }) => [
|
|
456
|
+
M(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: w })), void 0, !0)
|
|
441
457
|
]),
|
|
442
458
|
key: "0"
|
|
443
459
|
} : void 0,
|
|
444
460
|
t.$slots.optionPdf ? {
|
|
445
461
|
name: "optionPdf",
|
|
446
462
|
fn: A(() => [
|
|
447
|
-
|
|
463
|
+
M(t.$slots, "optionPdf", {}, void 0, !0)
|
|
448
464
|
]),
|
|
449
465
|
key: "1"
|
|
450
466
|
} : void 0,
|
|
451
467
|
t.$slots.optionCsv ? {
|
|
452
468
|
name: "optionCsv",
|
|
453
469
|
fn: A(() => [
|
|
454
|
-
|
|
470
|
+
M(t.$slots, "optionCsv", {}, void 0, !0)
|
|
455
471
|
]),
|
|
456
472
|
key: "2"
|
|
457
473
|
} : void 0,
|
|
458
474
|
t.$slots.optionImg ? {
|
|
459
475
|
name: "optionImg",
|
|
460
476
|
fn: A(() => [
|
|
461
|
-
|
|
477
|
+
M(t.$slots, "optionImg", {}, void 0, !0)
|
|
462
478
|
]),
|
|
463
479
|
key: "3"
|
|
464
480
|
} : void 0,
|
|
465
481
|
t.$slots.optionTable ? {
|
|
466
482
|
name: "optionTable",
|
|
467
483
|
fn: A(() => [
|
|
468
|
-
|
|
484
|
+
M(t.$slots, "optionTable", {}, void 0, !0)
|
|
469
485
|
]),
|
|
470
486
|
key: "4"
|
|
471
487
|
} : void 0,
|
|
472
488
|
t.$slots.optionFullscreen ? {
|
|
473
489
|
name: "optionFullscreen",
|
|
474
|
-
fn: A(({ toggleFullscreen: o, isFullscreen:
|
|
475
|
-
|
|
490
|
+
fn: A(({ toggleFullscreen: o, isFullscreen: w }) => [
|
|
491
|
+
M(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: w })), void 0, !0)
|
|
476
492
|
]),
|
|
477
493
|
key: "5"
|
|
478
494
|
} : void 0,
|
|
479
495
|
t.$slots.optionAnnotator ? {
|
|
480
496
|
name: "optionAnnotator",
|
|
481
|
-
fn: A(({ toggleAnnotator: o, isAnnotator:
|
|
482
|
-
|
|
497
|
+
fn: A(({ toggleAnnotator: o, isAnnotator: w }) => [
|
|
498
|
+
M(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: w })), void 0, !0)
|
|
483
499
|
]),
|
|
484
500
|
key: "6"
|
|
485
501
|
} : void 0
|
|
486
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
487
|
-
h.value ? (
|
|
502
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : Y("", !0),
|
|
503
|
+
h.value ? (T(), N("svg", {
|
|
488
504
|
key: 3,
|
|
489
505
|
ref_key: "svgRef",
|
|
490
506
|
ref: z,
|
|
491
|
-
class:
|
|
492
|
-
xmlns: r(
|
|
507
|
+
class: Pe({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
|
|
508
|
+
xmlns: r(lt),
|
|
493
509
|
viewBox: `${r(ve).x} ${r(ve).y} ${r(ve).width} ${r(ve).height}`,
|
|
494
510
|
style: "overflow:hidden;background:transparent;"
|
|
495
511
|
}, [
|
|
496
512
|
we(r(m)),
|
|
497
|
-
t.$slots["chart-background"] ? (
|
|
513
|
+
t.$slots["chart-background"] ? (T(), N("foreignObject", {
|
|
498
514
|
key: 0,
|
|
499
515
|
x: 0,
|
|
500
516
|
y: 0,
|
|
501
|
-
width:
|
|
502
|
-
height:
|
|
517
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
518
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
503
519
|
style: {
|
|
504
520
|
pointerEvents: "none"
|
|
505
521
|
}
|
|
506
522
|
}, [
|
|
507
|
-
|
|
508
|
-
], 8,
|
|
523
|
+
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
524
|
+
], 8, xt)) : Y("", !0),
|
|
509
525
|
ke("g", {
|
|
510
|
-
transform: `translate(${(
|
|
526
|
+
transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
|
|
511
527
|
}, [
|
|
512
|
-
(
|
|
513
|
-
o.minX !== void 0 ? (
|
|
528
|
+
(T(!0), N(He, null, je(b.value, (o, w) => (T(), N("g", null, [
|
|
529
|
+
o.minX !== void 0 ? (T(), N("rect", {
|
|
514
530
|
key: 0,
|
|
515
531
|
x: o.x + o.minX,
|
|
516
532
|
y: o.y + o.minY * 1.25,
|
|
@@ -518,35 +534,35 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
518
534
|
height: o.maxY - o.minY,
|
|
519
535
|
fill: "transparent",
|
|
520
536
|
"pointer-events": "visiblePainted",
|
|
521
|
-
onMouseover: (
|
|
522
|
-
onMouseleave:
|
|
537
|
+
onMouseover: (k) => Ee(o),
|
|
538
|
+
onMouseleave: n[0] || (n[0] = (k) => {
|
|
523
539
|
K.value = null, te.value = !1;
|
|
524
540
|
})
|
|
525
|
-
}, null, 40,
|
|
526
|
-
(
|
|
541
|
+
}, null, 40, Tt)) : Y("", !0),
|
|
542
|
+
(T(), N("text", {
|
|
527
543
|
fill: o.color,
|
|
528
544
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
529
|
-
key:
|
|
545
|
+
key: w,
|
|
530
546
|
x: o.x,
|
|
531
547
|
y: o.y,
|
|
532
548
|
"font-size": o.fontSize,
|
|
533
549
|
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
534
|
-
class:
|
|
550
|
+
class: Pe({ animated: e.value.useCssAnimation, "word-selected": K.value && K.value === o.id && v.value.showTooltip, "word-not-selected": K.value && K.value !== o.id && v.value.showTooltip }),
|
|
535
551
|
"text-anchor": "middle",
|
|
536
552
|
"dominant-baseline": "central",
|
|
537
|
-
style: he(`animation-delay:${
|
|
538
|
-
},
|
|
553
|
+
style: he(`animation-delay:${w * e.value.animationDelayMs}ms !important; pointer-events:none;`)
|
|
554
|
+
}, ze(o.name), 15, St))
|
|
539
555
|
]))), 256))
|
|
540
|
-
], 8,
|
|
541
|
-
|
|
542
|
-
svg: { height:
|
|
556
|
+
], 8, $t),
|
|
557
|
+
M(t.$slots, "svg", {
|
|
558
|
+
svg: { height: s.value.height, width: s.value.width }
|
|
543
559
|
}, void 0, !0)
|
|
544
|
-
], 10,
|
|
545
|
-
t.$slots.watermark ? (
|
|
546
|
-
|
|
547
|
-
])) :
|
|
548
|
-
r(Be) ? (
|
|
549
|
-
|
|
560
|
+
], 10, Ct)) : Y("", !0),
|
|
561
|
+
t.$slots.watermark ? (T(), N("div", Ft, [
|
|
562
|
+
M(t.$slots, "watermark", Q(ee({ isPrinting: r(Z) || r(J) })), void 0, !0)
|
|
563
|
+
])) : Y("", !0),
|
|
564
|
+
r(Be) ? (T(), N("div", Mt, [
|
|
565
|
+
M(t.$slots, "reset-action", { reset: r(Se) }, () => [
|
|
550
566
|
ke("button", {
|
|
551
567
|
"data-cy-reset": "",
|
|
552
568
|
tabindex: "0",
|
|
@@ -555,7 +571,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
555
571
|
style: he({
|
|
556
572
|
background: e.value.style.chart.backgroundColor
|
|
557
573
|
}),
|
|
558
|
-
onClick:
|
|
574
|
+
onClick: n[1] || (n[1] = (o) => r(Se)(!0))
|
|
559
575
|
}, [
|
|
560
576
|
we(r(f), {
|
|
561
577
|
name: "refresh",
|
|
@@ -563,7 +579,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
563
579
|
}, null, 8, ["stroke"])
|
|
564
580
|
], 4)
|
|
565
581
|
], !0)
|
|
566
|
-
])) :
|
|
582
|
+
])) : Y("", !0),
|
|
567
583
|
we(r(a), {
|
|
568
584
|
show: v.value.showTooltip && te.value,
|
|
569
585
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -575,27 +591,27 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
575
591
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
576
592
|
position: e.value.style.chart.tooltip.position,
|
|
577
593
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
578
|
-
parent:
|
|
594
|
+
parent: S.value,
|
|
579
595
|
content: ge.value,
|
|
580
596
|
isCustom: ne.value
|
|
581
597
|
}, {
|
|
582
598
|
"tooltip-before": A(() => [
|
|
583
|
-
|
|
599
|
+
M(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
|
|
584
600
|
]),
|
|
585
601
|
"tooltip-after": A(() => [
|
|
586
|
-
|
|
602
|
+
M(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
|
|
587
603
|
]),
|
|
588
604
|
_: 3
|
|
589
605
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
590
|
-
t.$slots.source ? (
|
|
606
|
+
t.$slots.source ? (T(), N("div", {
|
|
591
607
|
key: 6,
|
|
592
608
|
ref_key: "source",
|
|
593
|
-
ref:
|
|
609
|
+
ref: R,
|
|
594
610
|
dir: "auto"
|
|
595
611
|
}, [
|
|
596
|
-
|
|
597
|
-
], 512)) :
|
|
598
|
-
h.value ? (
|
|
612
|
+
M(t.$slots, "source", {}, void 0, !0)
|
|
613
|
+
], 512)) : Y("", !0),
|
|
614
|
+
h.value ? (T(), ie(r(u), {
|
|
599
615
|
key: 7,
|
|
600
616
|
hideDetails: "",
|
|
601
617
|
config: {
|
|
@@ -612,32 +628,32 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
|
|
|
612
628
|
}
|
|
613
629
|
}, {
|
|
614
630
|
content: A(() => [
|
|
615
|
-
(
|
|
631
|
+
(T(), ie(r(c), {
|
|
616
632
|
key: `table_${re.value}`,
|
|
617
633
|
colNames: ce.value.colNames,
|
|
618
634
|
head: ce.value.head,
|
|
619
635
|
body: ce.value.body,
|
|
620
636
|
config: ce.value.config,
|
|
621
637
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
622
|
-
onClose:
|
|
638
|
+
onClose: n[2] || (n[2] = (o) => v.value.showTable = !1)
|
|
623
639
|
}, {
|
|
624
640
|
th: A(({ th: o }) => [
|
|
625
641
|
ke("div", {
|
|
626
642
|
innerHTML: o,
|
|
627
643
|
style: { display: "flex", "align-items": "center" }
|
|
628
|
-
}, null, 8,
|
|
644
|
+
}, null, 8, Pt)
|
|
629
645
|
]),
|
|
630
646
|
td: A(({ td: o }) => [
|
|
631
|
-
|
|
647
|
+
qe(ze(o.name || o), 1)
|
|
632
648
|
]),
|
|
633
649
|
_: 1
|
|
634
650
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
635
651
|
]),
|
|
636
652
|
_: 1
|
|
637
|
-
}, 8, ["config"])) :
|
|
638
|
-
], 44,
|
|
653
|
+
}, 8, ["config"])) : Y("", !0)
|
|
654
|
+
], 44, kt));
|
|
639
655
|
}
|
|
640
|
-
},
|
|
656
|
+
}, Et = /* @__PURE__ */ gt(zt, [["__scopeId", "data-v-8c6de0fa"]]);
|
|
641
657
|
export {
|
|
642
|
-
|
|
658
|
+
Et as default
|
|
643
659
|
};
|