vue-data-ui 3.4.1 → 3.4.3
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/dist/{PackageVersion-VpPtLYhK.js → PackageVersion-Df-8U2yE.js} +1 -1
- package/dist/{Title-CFmv95In.js → Title-D7_5ICX_.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{themes-Dw-dDudK.js → themes-AUNCOb2G.js} +5 -5
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-B7CiTRDS.js → useNestedProp-CtheCta-.js} +4 -2
- package/dist/{vue-data-ui-oDJui39L.js → vue-data-ui-OfJx8jSP.js} +63 -63
- package/dist/vue-data-ui.js +65 -65
- package/dist/{vue-ui-3d-bar-wycTM073.js → vue-ui-3d-bar-Bp-sqsyU.js} +4 -4
- package/dist/{vue-ui-accordion-BKkTS12x.js → vue-ui-accordion-DXdd_qAk.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C5NUZ_Y7.js → vue-ui-age-pyramid-CUVtajBe.js} +4 -4
- package/dist/{vue-ui-annotator-DkSYrnwb.js → vue-ui-annotator-D5GKadj6.js} +2 -2
- package/dist/{vue-ui-bullet-CIsX5UJw.js → vue-ui-bullet-rQoLiK2b.js} +4 -4
- package/dist/{vue-ui-candlestick-BRFx3_KK.js → vue-ui-candlestick-D7eCxbQ8.js} +479 -456
- package/dist/{vue-ui-carousel-table-hJySHJTu.js → vue-ui-carousel-table-Bu8HSJRc.js} +2 -2
- package/dist/{vue-ui-chestnut-D4GjvQh0.js → vue-ui-chestnut-BqyduBAg.js} +3 -3
- package/dist/{vue-ui-chord-By2NOs0N.js → vue-ui-chord-VTRyVBx4.js} +4 -4
- package/dist/{vue-ui-circle-pack-OCmAkTNs.js → vue-ui-circle-pack-DIXUixuK.js} +4 -4
- package/dist/{vue-ui-cursor-iuati4v1.js → vue-ui-cursor-TFVxgVEa.js} +1 -1
- package/dist/{vue-ui-dashboard-C7fwU9xb.js → vue-ui-dashboard-DeFPygcZ.js} +63 -63
- package/dist/{vue-ui-digits-eYxf3UFN.js → vue-ui-digits-B6cIiy1Z.js} +1 -1
- package/dist/{vue-ui-donut-dVVBUQJz.js → vue-ui-donut-B3kaTm1I.js} +4 -4
- package/dist/{vue-ui-donut-evolution-BoWGaQP0.js → vue-ui-donut-evolution-CGxyHap0.js} +4 -4
- package/dist/{vue-ui-dumbbell-YMPZ3CVA.js → vue-ui-dumbbell-BpHU2gPm.js} +4 -4
- package/dist/{vue-ui-flow-BE62rVS3.js → vue-ui-flow-B1jwV-to.js} +4 -4
- package/dist/{vue-ui-funnel-kNpDFAWo.js → vue-ui-funnel-C07ghZCo.js} +4 -4
- package/dist/{vue-ui-galaxy-BBBiXXyk.js → vue-ui-galaxy-C2aCa9u0.js} +4 -4
- package/dist/{vue-ui-gauge-PQNTTl3Y.js → vue-ui-gauge-BymG1mO4.js} +4 -4
- package/dist/{vue-ui-gizmo-D3gQxQz3.js → vue-ui-gizmo-BjPbDZKf.js} +2 -2
- package/dist/{vue-ui-heatmap-CKWQButF.js → vue-ui-heatmap-D2udHyOO.js} +5 -5
- package/dist/{vue-ui-history-plot-DYFzdR4Z.js → vue-ui-history-plot-C1v5py9J.js} +4 -4
- package/dist/{vue-ui-kpi-N8s0i48S.js → vue-ui-kpi-4fToBGEE.js} +2 -2
- package/dist/{vue-ui-mini-loader-Db-9iQcC.js → vue-ui-mini-loader-o6xsgflK.js} +1 -1
- package/dist/{vue-ui-molecule-Cklyb74B.js → vue-ui-molecule-QJY9Jg--.js} +3 -3
- package/dist/{vue-ui-mood-radar-Cvq4ZuLe.js → vue-ui-mood-radar-CYz7t7cO.js} +4 -4
- package/dist/{vue-ui-nested-donuts-Bm78P1ES.js → vue-ui-nested-donuts-Cs_KVggH.js} +4 -4
- package/dist/{vue-ui-onion-Bh5jTb31.js → vue-ui-onion-DI__t0Yo.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-BKdN2OsW.js → vue-ui-parallel-coordinate-plot-BUFBIY0H.js} +4 -4
- package/dist/{vue-ui-quadrant-BPhJzots.js → vue-ui-quadrant-q27Crjhv.js} +4 -4
- package/dist/{vue-ui-quick-chart-DbJR9CN3.js → vue-ui-quick-chart-vA-5-zU_.js} +3 -3
- package/dist/{vue-ui-radar-CrenQprr.js → vue-ui-radar-v6sFZlta.js} +66 -66
- package/dist/{vue-ui-rating-fR2WRHYO.js → vue-ui-rating-B1TGv80Y.js} +1 -1
- package/dist/{vue-ui-relation-circle-BJ5RuZ0j.js → vue-ui-relation-circle-C_7j_HC1.js} +4 -4
- package/dist/{vue-ui-ridgeline-CKuom5Bu.js → vue-ui-ridgeline-BaDr8YsQ.js} +4 -4
- package/dist/{vue-ui-rings-B84GAEf4.js → vue-ui-rings-BcsyGpD-.js} +4 -4
- package/dist/{vue-ui-scatter-CBX-g9w3.js → vue-ui-scatter-DsvtDcRf.js} +121 -112
- package/dist/{vue-ui-skeleton-CZ8xxpEU.js → vue-ui-skeleton-DJka_Bjy.js} +2 -2
- package/dist/{vue-ui-smiley-BKXuAviQ.js → vue-ui-smiley-D-W7GeoN.js} +1 -1
- package/dist/{vue-ui-spark-trend-DOf7-cIf.js → vue-ui-spark-trend-ufRxrEgv.js} +3 -3
- package/dist/{vue-ui-sparkbar-D-MPA2zf.js → vue-ui-sparkbar-C0hU8raA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B9xRiVSU.js → vue-ui-sparkgauge-1bi-EEqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BWb0lqQP.js → vue-ui-sparkhistogram-H1BSDVyx.js} +3 -3
- package/dist/{vue-ui-sparkline-BF-qr8Ti.js → vue-ui-sparkline-DElVjWGk.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DnCUpk50.js → vue-ui-sparkstackbar-DE3D2xTJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DvJ8Hahn.js → vue-ui-stackbar-DVTV6JcM.js} +50 -45
- package/dist/{vue-ui-strip-plot-SAh1gIs5.js → vue-ui-strip-plot-0RudVLPB.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DU6GKPVy.js → vue-ui-table-heatmap-BQgeM3lZ.js} +2 -2
- package/dist/{vue-ui-table-BJdDfMYD.js → vue-ui-table-jbkT9pG2.js} +3 -3
- package/dist/{vue-ui-table-sparkline-BBFEJ8c6.js → vue-ui-table-sparkline-Elk05A1j.js} +3 -3
- package/dist/{vue-ui-thermometer-D8DH6QSN.js → vue-ui-thermometer-6QNHvlxi.js} +4 -4
- package/dist/{vue-ui-timer-CaUdAHBE.js → vue-ui-timer-BvHuXOu1.js} +3 -3
- package/dist/{vue-ui-tiremarks-_sUH1d3J.js → vue-ui-tiremarks-CCfLSw7X.js} +4 -4
- package/dist/{vue-ui-treemap-DXduzuW4.js → vue-ui-treemap-DNimXWh4.js} +4 -4
- package/dist/{vue-ui-vertical-bar-JdjmgwQj.js → vue-ui-vertical-bar-C8UcI92_.js} +5 -5
- package/dist/{vue-ui-waffle-h8zoi4Rc.js → vue-ui-waffle-CMO0x41z.js} +4 -4
- package/dist/{vue-ui-wheel-Ck1Mx37j.js → vue-ui-wheel-CB2KRY13.js} +4 -4
- package/dist/{vue-ui-word-cloud-CjWvuukM.js → vue-ui-word-cloud-BDP2WP1p.js} +162 -151
- package/dist/{vue-ui-world-Dw71_Mu2.js → vue-ui-world-CobFs5Vm.js} +2 -2
- package/dist/{vue-ui-xy-tSMgXqqb.js → vue-ui-xy-DmWHarZg.js} +841 -835
- package/dist/{vue-ui-xy-canvas-Dct7tf8w.js → vue-ui-xy-canvas-BwhZD5_d.js} +4 -4
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useCssVars as dt, defineAsyncComponent as j, computed as q, ref as m, toRefs as mt, watch as
|
|
2
|
-
import { d as
|
|
1
|
+
import { useCssVars as dt, defineAsyncComponent as j, computed as q, ref as m, toRefs as mt, watch as le, shallowRef as Ee, onMounted as ht, onBeforeUnmount as pt, createElementBlock as _, openBlock as w, unref as s, normalizeStyle as ye, createBlock as ne, createCommentVNode as W, createVNode as ke, createSlots as Xe, withCtx as T, renderSlot as S, normalizeProps as se, guardReactiveProps as ie, normalizeClass as Ue, createElementVNode as we, Fragment as ft, renderList as gt, toDisplayString as Me, resolveDynamicComponent as bt, mergeProps as yt, createTextVNode as Le, nextTick as Ye } from "vue";
|
|
2
|
+
import { d as kt, t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
3
3
|
import { c as Ge, t as xt, ap as $t, x as Tt, b as St, p as Ce, o as je, f as qe, g as Ft, d as Mt, X as Pt, P as Ot, Q as At, G as It } from "./lib-BcBZIm6u.js";
|
|
4
|
-
import { u as zt, a as He } from "./useNestedProp-
|
|
4
|
+
import { u as zt, a as He } from "./useNestedProp-CtheCta-.js";
|
|
5
5
|
import { u as Dt, B as Nt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as _t } from "./usePrinter-C1GiglOH.js";
|
|
7
7
|
import { u as Bt } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import Wt from "./img-CFY3JivG.js";
|
|
11
|
-
import Et from "./Title-
|
|
12
|
-
import { t as Xt } from "./themes-
|
|
11
|
+
import Et from "./Title-D7_5ICX_.js";
|
|
12
|
+
import { t as Xt } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import { u as Ut } from "./usePanZoom-BVca3eMk.js";
|
|
14
14
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
function Yt(C, b) {
|
|
16
16
|
const { width: v, height: h } = C, p = b.getImageData(0, 0, v, h).data;
|
|
17
|
-
let l = v, o = h,
|
|
17
|
+
let l = v, o = h, i = 0, x = 0, F = !1;
|
|
18
18
|
for (let r = 0; r < h; r += 1)
|
|
19
19
|
for (let y = 0; y < v; y += 1)
|
|
20
|
-
p[(r * v + y) * 4 + 3] > 1 && (
|
|
21
|
-
return
|
|
20
|
+
p[(r * v + y) * 4 + 3] > 1 && (F = !0, y < l && (l = y), y > i && (i = y), r < o && (o = r), r > x && (x = r));
|
|
21
|
+
return F ? [l, o, i, x] : [0, 0, 0, 0];
|
|
22
22
|
}
|
|
23
23
|
function Ze({
|
|
24
24
|
word: C,
|
|
@@ -29,36 +29,36 @@ function Ze({
|
|
|
29
29
|
svg: p
|
|
30
30
|
}) {
|
|
31
31
|
d.save(), d.font = `${p.style && p.style.bold ? "bold " : ""}${b}px Arial`;
|
|
32
|
-
const l = d.measureText(C.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0),
|
|
33
|
-
h.width = o, h.height =
|
|
34
|
-
const
|
|
35
|
-
for (let B = 0; B <
|
|
32
|
+
const l = d.measureText(C.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0), i = Math.ceil(b) + 2 + (v ? v * 2 : 0);
|
|
33
|
+
h.width = o, h.height = i, d.clearRect(0, 0, o, i), d.font = `${p.style && p.style.bold ? "bold " : ""}${b}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText(C.name, o / 2, i / 2);
|
|
34
|
+
const F = d.getImageData(0, 0, o, i).data, r = [];
|
|
35
|
+
for (let B = 0; B < i; B += 1)
|
|
36
36
|
for (let U = 0; U < o; U += 1)
|
|
37
|
-
|
|
38
|
-
const [y, E, X,
|
|
39
|
-
return d.restore(), { w: o, h:
|
|
37
|
+
F[(B * o + U) * 4 + 3] > 1 && r.push([U, B]);
|
|
38
|
+
const [y, E, X, k] = Yt(h, d);
|
|
39
|
+
return d.restore(), { w: o, h: i, wordMask: r, minX: y, minY: E, maxX: X, maxY: k };
|
|
40
40
|
}
|
|
41
41
|
function Qe({ mask: C, maskW: b, maskH: v, wx: h, wy: d, wordMask: p }) {
|
|
42
42
|
for (let l = 0; l < p.length; l += 1) {
|
|
43
|
-
const o = h + p[l][0],
|
|
44
|
-
if (o < 0 ||
|
|
43
|
+
const o = h + p[l][0], i = d + p[l][1];
|
|
44
|
+
if (o < 0 || i < 0 || o >= b || i >= v || C[i * b + o]) return !1;
|
|
45
45
|
}
|
|
46
46
|
return !0;
|
|
47
47
|
}
|
|
48
48
|
function Je({ mask: C, maskW: b, maskH: v, wx: h, wy: d, wordMask: p }) {
|
|
49
49
|
for (let l = 0; l < p.length; l += 1) {
|
|
50
|
-
const o = h + p[l][0],
|
|
51
|
-
o >= 0 &&
|
|
50
|
+
const o = h + p[l][0], i = d + p[l][1];
|
|
51
|
+
o >= 0 && i >= 0 && o < b && i < v && (C[i * b + o] = 1);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function Gt({ wordMask: C, w: b, h: v, dilation: h }) {
|
|
55
55
|
const d = new Set(C.map(([l, o]) => `${l},${o}`)), p = new Set(d);
|
|
56
56
|
for (let [l, o] of C)
|
|
57
|
-
for (let
|
|
57
|
+
for (let i = -h; i <= h; i += 1)
|
|
58
58
|
for (let x = -h; x <= h; x += 1) {
|
|
59
|
-
if (
|
|
60
|
-
const
|
|
61
|
-
|
|
59
|
+
if (i === 0 && x === 0) continue;
|
|
60
|
+
const F = l + i, r = o + x;
|
|
61
|
+
F >= 0 && F < b && r >= 0 && r < v && p.add(`${F},${r}`);
|
|
62
62
|
}
|
|
63
63
|
return Array.from(p).map((l) => l.split(",").map(Number));
|
|
64
64
|
}
|
|
@@ -68,19 +68,19 @@ function jt({
|
|
|
68
68
|
svg: v,
|
|
69
69
|
strictPixelPadding: h
|
|
70
70
|
}) {
|
|
71
|
-
const { width: d, height: p } = v, l = Math.round(d), o = Math.round(p),
|
|
72
|
-
|
|
73
|
-
const U = 6, me = 2, he = 2, ue = 1, Y = Math.floor(l / 2), K = Math.floor(o / 2), e = [...C].sort(($, R) => R.value - $.value),
|
|
71
|
+
const { width: d, height: p } = v, l = Math.round(d), o = Math.round(p), i = 1, x = v.minFontSize, F = Math.min(v.maxFontSize, 100), r = C.map(($) => $.value), y = Math.min(...r), E = Math.max(...r), X = new Uint8Array(l * o), k = document.createElement("canvas"), B = k.getContext("2d", { willReadFrequently: !0 });
|
|
72
|
+
k.width = l, k.height = o;
|
|
73
|
+
const U = 6, me = 2, he = 2, ue = 1, Y = Math.floor(l / 2), K = Math.floor(o / 2), e = [...C].sort(($, R) => R.value - $.value), ee = [];
|
|
74
74
|
for (const $ of e) {
|
|
75
75
|
let R = x;
|
|
76
|
-
E !== y && (R = ($.value - y) / (E - y) * (
|
|
76
|
+
E !== y && (R = ($.value - y) / (E - y) * (F - x) + x), R = Math.max(x, Math.min(F, R));
|
|
77
77
|
let O = !1, I = R;
|
|
78
|
-
for (; !O && I >=
|
|
78
|
+
for (; !O && I >= i; ) {
|
|
79
79
|
let { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY: Q } = Ze({
|
|
80
80
|
word: $,
|
|
81
81
|
fontSize: I,
|
|
82
82
|
pad: b,
|
|
83
|
-
canvas:
|
|
83
|
+
canvas: k,
|
|
84
84
|
ctx: B,
|
|
85
85
|
svg: v
|
|
86
86
|
});
|
|
@@ -89,9 +89,9 @@ function jt({
|
|
|
89
89
|
for (; D < Math.max(l, o) && !O && L < 1e4; ) {
|
|
90
90
|
for (let u = 0; u < 360; u += U) {
|
|
91
91
|
L += 1;
|
|
92
|
-
const
|
|
93
|
-
if (!(
|
|
94
|
-
|
|
92
|
+
const M = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), f = Math.round(K + D * Math.sin(u * Math.PI / 180) - z / 2);
|
|
93
|
+
if (!(M < 0 || f < 0 || M + A > l || f + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: M, wy: f, wordMask: V })) {
|
|
94
|
+
ee.push({ ...$, x: M - l / 2, y: f - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY: Q }), Je({ mask: X, maskW: l, maskH: o, wx: M, wy: f, wordMask: V }), O = !0;
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -99,13 +99,13 @@ function jt({
|
|
|
99
99
|
}
|
|
100
100
|
O || (I -= 1);
|
|
101
101
|
}
|
|
102
|
-
if (!O && I <
|
|
103
|
-
I =
|
|
102
|
+
if (!O && I < i) {
|
|
103
|
+
I = i;
|
|
104
104
|
const { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY: Q } = Ze({
|
|
105
105
|
word: $,
|
|
106
106
|
fontSize: I,
|
|
107
107
|
pad: b,
|
|
108
|
-
canvas:
|
|
108
|
+
canvas: k,
|
|
109
109
|
ctx: B,
|
|
110
110
|
svg: v
|
|
111
111
|
});
|
|
@@ -113,9 +113,9 @@ function jt({
|
|
|
113
113
|
for (; D < Math.max(l, o) && !O && L < 25e3; ) {
|
|
114
114
|
for (let u = 0; u < 360; u += he) {
|
|
115
115
|
L += 1;
|
|
116
|
-
const
|
|
117
|
-
if (!(
|
|
118
|
-
|
|
116
|
+
const M = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), f = Math.round(K + D * Math.sin(u * Math.PI / 180) - z / 2);
|
|
117
|
+
if (!(M < 0 || f < 0 || M + A > l || f + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: M, wy: f, wordMask: V })) {
|
|
118
|
+
ee.push({ ...$, x: M - l / 2, y: f - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY: Q }), Je({ mask: X, maskW: l, maskH: o, wx: M, wy: f, wordMask: V }), O = !0;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -123,9 +123,9 @@ function jt({
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return ee.sort(($, R) => R.fontSize - $.fontSize);
|
|
127
127
|
}
|
|
128
|
-
const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["transform"], Jt = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], Kt = ["fill", "font-weight", "x", "y", "font-size", "transform"], ea = {
|
|
128
|
+
const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["transform"], Jt = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], Kt = ["fill", "font-weight", "x", "y", "font-size", "transform", "stroke", "stroke-width"], ea = {
|
|
129
129
|
key: 3,
|
|
130
130
|
class: "vue-data-ui-watermark"
|
|
131
131
|
}, ta = {
|
|
@@ -150,16 +150,16 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
150
150
|
},
|
|
151
151
|
setup(C, { expose: b }) {
|
|
152
152
|
dt((t) => ({
|
|
153
|
-
|
|
153
|
+
v299e8631: t.slicerColor
|
|
154
154
|
}));
|
|
155
|
-
const v = j(() => import("./Tooltip-Cs4v8OnI.js")), h = j(() => import("./BaseIcon-B5KaGWWC.js")), d = j(() => import("./vue-ui-accordion-
|
|
155
|
+
const v = j(() => import("./Tooltip-Cs4v8OnI.js")), h = j(() => import("./BaseIcon-B5KaGWWC.js")), d = j(() => import("./vue-ui-accordion-DXdd_qAk.js")), p = j(() => import("./DataTable-DOx3zgih.js")), l = j(() => import("./PenAndPaper-Dj2diYr0.js")), o = j(() => import("./UserOptions-C0YT60JN.js")), i = j(() => import("./PackageVersion-Df-8U2yE.js")), x = j(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_word_cloud: F } = zt(), r = C, y = q({
|
|
156
156
|
get() {
|
|
157
157
|
return !!r.dataset && r.dataset.length;
|
|
158
158
|
},
|
|
159
159
|
set(t) {
|
|
160
160
|
return t;
|
|
161
161
|
}
|
|
162
|
-
}), E = m(Ge()), X = m(0),
|
|
162
|
+
}), E = m(Ge()), X = m(0), k = m(null), B = m(null), U = m(null), me = m(0), he = m(0), ue = m(!1), Y = m(null), K = m(null), e = m(H()), { loading: ee, FINAL_DATASET: $, manualLoading: R } = Dt({
|
|
163
163
|
...mt(r),
|
|
164
164
|
FINAL_CONFIG: e,
|
|
165
165
|
prepareConfig: H,
|
|
@@ -227,7 +227,8 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
227
227
|
backgroundColor: "#99999930",
|
|
228
228
|
words: {
|
|
229
229
|
color: "#6A6A6A",
|
|
230
|
-
usePalette: !1
|
|
230
|
+
usePalette: !1,
|
|
231
|
+
selectedStroke: "#CCCCCC"
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
}
|
|
@@ -240,14 +241,14 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
240
241
|
value: Tt(t.value)
|
|
241
242
|
}));
|
|
242
243
|
}
|
|
243
|
-
|
|
244
|
+
le(() => r.dataset, () => {
|
|
244
245
|
O.value = I(), xe(), Q();
|
|
245
246
|
});
|
|
246
247
|
const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState: V } = Rt({ config: e.value }), { svgRef: G } = Vt({ config: e.value.style.chart.title });
|
|
247
248
|
function H() {
|
|
248
249
|
const t = He({
|
|
249
250
|
userConfig: r.config,
|
|
250
|
-
defaultConfig:
|
|
251
|
+
defaultConfig: F
|
|
251
252
|
});
|
|
252
253
|
return t.theme ? {
|
|
253
254
|
...He({
|
|
@@ -270,13 +271,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
270
271
|
y: t.y + t.height / 2
|
|
271
272
|
}, be();
|
|
272
273
|
}
|
|
273
|
-
const D =
|
|
274
|
+
const D = kt(() => {
|
|
274
275
|
xe();
|
|
275
276
|
}, 10), L = m(!1);
|
|
276
|
-
|
|
277
|
+
le(() => L.value, (t) => {
|
|
277
278
|
t === !1 && (D(), Q());
|
|
278
|
-
}),
|
|
279
|
-
e.value = H(), A.value = !e.value.userOptions.showOnChartHover, Oe(), me.value += 1, he.value += 1,
|
|
279
|
+
}), le(() => r.config, (t) => {
|
|
280
|
+
e.value = H(), A.value = !e.value.userOptions.showOnChartHover, Oe(), me.value += 1, he.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
280
281
|
}, { deep: !0 });
|
|
281
282
|
const u = m({
|
|
282
283
|
width: e.value.style.chart.width,
|
|
@@ -284,17 +285,17 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
284
285
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
285
286
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
286
287
|
bold: e.value.style.chart.words.bold
|
|
287
|
-
}),
|
|
288
|
+
}), M = wt(() => {
|
|
288
289
|
L.value = !0;
|
|
289
290
|
const { width: t, height: n } = Ct({
|
|
290
|
-
chart:
|
|
291
|
+
chart: k.value,
|
|
291
292
|
title: e.value.style.chart.title.text ? B.value : null,
|
|
292
293
|
source: U.value
|
|
293
294
|
});
|
|
294
295
|
requestAnimationFrame(async () => {
|
|
295
296
|
u.value.width = Math.max(10, t), u.value.height = Math.max(10, n - 12), await Ye(), L.value = !1;
|
|
296
297
|
});
|
|
297
|
-
}), f = Ee(null),
|
|
298
|
+
}), f = Ee(null), te = Ee(null);
|
|
298
299
|
ht(Oe);
|
|
299
300
|
const Pe = q(() => !!e.value.debug);
|
|
300
301
|
function Oe() {
|
|
@@ -315,21 +316,21 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
315
316
|
debug: Pe.value
|
|
316
317
|
});
|
|
317
318
|
});
|
|
318
|
-
}), je(r.dataset) || (R.value = e.value.loading), e.value.responsive && (f.value && (
|
|
319
|
+
}), je(r.dataset) || (R.value = e.value.loading), e.value.responsive && (f.value && (te.value && f.value.unobserve(te.value), f.value.disconnect()), f.value = new ResizeObserver(M), te.value = k.value.parentNode, f.value.observe(te.value)), Q();
|
|
319
320
|
}
|
|
320
321
|
pt(() => {
|
|
321
|
-
f.value && (
|
|
322
|
+
f.value && (te.value && f.value.unobserve(te.value), f.value.disconnect());
|
|
322
323
|
});
|
|
323
324
|
const { isPrinting: Ae, isImaging: Ie, generatePdf: ze, generateImage: De } = _t({
|
|
324
325
|
elementId: `wordCloud_${E.value}`,
|
|
325
326
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
326
327
|
options: e.value.userOptions.print
|
|
327
|
-
}),
|
|
328
|
+
}), P = m({
|
|
328
329
|
showTable: e.value.table.show,
|
|
329
330
|
showTooltip: e.value.style.chart.tooltip.show
|
|
330
331
|
});
|
|
331
|
-
|
|
332
|
-
|
|
332
|
+
le(e, () => {
|
|
333
|
+
P.value = {
|
|
333
334
|
showTable: e.value.table.show,
|
|
334
335
|
showTooltip: e.value.style.chart.tooltip.show
|
|
335
336
|
};
|
|
@@ -342,7 +343,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
342
343
|
};
|
|
343
344
|
}
|
|
344
345
|
const re = m([]);
|
|
345
|
-
|
|
346
|
+
le(() => r.dataset, xe, { immediate: !0 });
|
|
346
347
|
function xe() {
|
|
347
348
|
const t = [...O.value].map((g) => g.value), n = Math.max(...t), a = Math.min(...t), c = [...O.value].map((g, N) => {
|
|
348
349
|
let J = (g.value - a) / (n - a) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
|
|
@@ -414,18 +415,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
414
415
|
body: n,
|
|
415
416
|
config: a
|
|
416
417
|
};
|
|
417
|
-
}),
|
|
418
|
+
}), ae = m(!1);
|
|
418
419
|
function Ne(t) {
|
|
419
|
-
|
|
420
|
+
ae.value = t, X.value += 1;
|
|
420
421
|
}
|
|
421
422
|
function et() {
|
|
422
423
|
return re.value;
|
|
423
424
|
}
|
|
424
425
|
function _e() {
|
|
425
|
-
|
|
426
|
+
P.value.showTable = !P.value.showTable;
|
|
426
427
|
}
|
|
427
428
|
function Be() {
|
|
428
|
-
|
|
429
|
+
P.value.showTooltip = !P.value.showTooltip;
|
|
429
430
|
}
|
|
430
431
|
const ce = m(!1);
|
|
431
432
|
function Te() {
|
|
@@ -438,8 +439,8 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
438
439
|
height: u.value.height <= 0 ? 10 : u.value.height
|
|
439
440
|
}, 1, tt);
|
|
440
441
|
async function lt({ scale: t = 2 } = {}) {
|
|
441
|
-
if (!
|
|
442
|
-
const { width: n, height: a } =
|
|
442
|
+
if (!k.value) return;
|
|
443
|
+
const { width: n, height: a } = k.value.getBoundingClientRect(), c = n / a, { imageUri: g, base64: N } = await Wt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
443
444
|
return {
|
|
444
445
|
imageUri: g,
|
|
445
446
|
base64: N,
|
|
@@ -450,7 +451,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
450
451
|
};
|
|
451
452
|
}
|
|
452
453
|
const ve = q(() => {
|
|
453
|
-
const t = e.value.table.useDialog && !e.value.table.show, n =
|
|
454
|
+
const t = e.value.table.useDialog && !e.value.table.show, n = P.value.showTable;
|
|
454
455
|
return {
|
|
455
456
|
component: t ? x : d,
|
|
456
457
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -459,8 +460,8 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
459
460
|
color: e.value.table.th.color,
|
|
460
461
|
headerColor: e.value.table.th.color,
|
|
461
462
|
headerBg: e.value.table.th.backgroundColor,
|
|
462
|
-
isFullscreen:
|
|
463
|
-
fullscreenParent:
|
|
463
|
+
isFullscreen: ae.value,
|
|
464
|
+
fullscreenParent: k.value,
|
|
464
465
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
465
466
|
} : {
|
|
466
467
|
hideDetails: !0,
|
|
@@ -479,23 +480,23 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
479
480
|
}
|
|
480
481
|
};
|
|
481
482
|
});
|
|
482
|
-
|
|
483
|
+
le(() => P.value.showTable, (t) => {
|
|
483
484
|
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
484
485
|
});
|
|
485
486
|
function Re() {
|
|
486
|
-
|
|
487
|
+
P.value.showTable = !1, K.value && K.value.setTableIconState(!1);
|
|
487
488
|
}
|
|
488
|
-
const nt = q(() => e.value.style.chart.backgroundColor), st = q(() => e.value.style.chart.title), { exportSvg:
|
|
489
|
+
const nt = q(() => e.value.style.chart.backgroundColor), st = q(() => e.value.style.chart.title), { exportSvg: it, getSvg: ut } = Bt({
|
|
489
490
|
svg: G,
|
|
490
491
|
title: st,
|
|
491
492
|
backgroundColor: nt
|
|
492
493
|
});
|
|
493
494
|
async function Ve({ isCb: t }) {
|
|
494
495
|
if (t) {
|
|
495
|
-
const { blob: n, url: a, text: c, dataUrl: g } = await
|
|
496
|
+
const { blob: n, url: a, text: c, dataUrl: g } = await ut();
|
|
496
497
|
e.value.userOptions.callbacks.svg({ blob: n, url: a, text: c, dataUrl: g });
|
|
497
498
|
} else
|
|
498
|
-
|
|
499
|
+
it();
|
|
499
500
|
}
|
|
500
501
|
b({
|
|
501
502
|
getData: et,
|
|
@@ -510,16 +511,16 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
510
511
|
toggleAnnotator: Te,
|
|
511
512
|
toggleFullscreen: Ne
|
|
512
513
|
});
|
|
513
|
-
const
|
|
514
|
+
const oe = m(null), de = m(!1), Se = m(""), Fe = m(null);
|
|
514
515
|
function rt(t, n) {
|
|
515
|
-
|
|
516
|
+
oe.value = null, ue.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: n });
|
|
516
517
|
}
|
|
517
518
|
function ct(t, n) {
|
|
518
519
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: n });
|
|
519
520
|
}
|
|
520
521
|
function vt(t, n) {
|
|
521
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !
|
|
522
|
-
|
|
522
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !P.value.showTooltip) return;
|
|
523
|
+
oe.value = t.id, Fe.value = { datapoint: t, config: e.value };
|
|
523
524
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
524
525
|
if (de.value = !1, It(a))
|
|
525
526
|
try {
|
|
@@ -537,30 +538,30 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
537
538
|
}
|
|
538
539
|
ue.value = !0;
|
|
539
540
|
}
|
|
540
|
-
return (t, n) => (
|
|
541
|
+
return (t, n) => (w(), _("div", {
|
|
541
542
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
542
543
|
ref_key: "wordCloudChart",
|
|
543
|
-
ref:
|
|
544
|
+
ref: k,
|
|
544
545
|
id: `wordCloud_${E.value}`,
|
|
545
546
|
style: ye(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
546
|
-
onMouseenter: n[2] || (n[2] = () =>
|
|
547
|
-
onMouseleave: n[3] || (n[3] = () =>
|
|
547
|
+
onMouseenter: n[2] || (n[2] = () => s(z)(!0)),
|
|
548
|
+
onMouseleave: n[3] || (n[3] = () => s(z)(!1))
|
|
548
549
|
}, [
|
|
549
|
-
e.value.userOptions.buttons.annotator ? (
|
|
550
|
+
e.value.userOptions.buttons.annotator ? (w(), ne(s(l), {
|
|
550
551
|
key: 0,
|
|
551
|
-
svgRef:
|
|
552
|
+
svgRef: s(G),
|
|
552
553
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
553
554
|
color: e.value.style.chart.color,
|
|
554
555
|
active: ce.value,
|
|
555
556
|
onClose: Te
|
|
556
557
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : W("", !0),
|
|
557
|
-
e.value.style.chart.title.text ? (
|
|
558
|
+
e.value.style.chart.title.text ? (w(), _("div", {
|
|
558
559
|
key: 1,
|
|
559
560
|
ref_key: "chartTitle",
|
|
560
561
|
ref: B,
|
|
561
562
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
562
563
|
}, [
|
|
563
|
-
(
|
|
564
|
+
(w(), ne(Et, {
|
|
564
565
|
key: `title_${me.value}`,
|
|
565
566
|
config: {
|
|
566
567
|
title: {
|
|
@@ -572,14 +573,14 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
572
573
|
}
|
|
573
574
|
}, null, 8, ["config"]))
|
|
574
575
|
], 512)) : W("", !0),
|
|
575
|
-
e.value.userOptions.show && y.value && (
|
|
576
|
+
e.value.userOptions.show && y.value && (s(V) || s(A)) ? (w(), ne(s(o), {
|
|
576
577
|
ref_key: "userOptionsRef",
|
|
577
578
|
ref: K,
|
|
578
579
|
key: `user_option_${X.value}`,
|
|
579
580
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
580
581
|
color: e.value.style.chart.color,
|
|
581
|
-
isPrinting:
|
|
582
|
-
isImaging:
|
|
582
|
+
isPrinting: s(Ae),
|
|
583
|
+
isImaging: s(Ie),
|
|
583
584
|
uid: E.value,
|
|
584
585
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
585
586
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -587,89 +588,89 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
587
588
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
588
589
|
hasTable: e.value.userOptions.buttons.table,
|
|
589
590
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
590
|
-
isFullscreen:
|
|
591
|
+
isFullscreen: ae.value,
|
|
591
592
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
592
|
-
chartElement:
|
|
593
|
+
chartElement: k.value,
|
|
593
594
|
position: e.value.userOptions.position,
|
|
594
595
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
595
|
-
isTooltip:
|
|
596
|
+
isTooltip: P.value.showTooltip,
|
|
596
597
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
597
598
|
isAnnotation: ce.value,
|
|
598
599
|
callbacks: e.value.userOptions.callbacks,
|
|
599
600
|
printScale: e.value.userOptions.print.scale,
|
|
600
601
|
tableDialog: e.value.table.useDialog,
|
|
601
602
|
onToggleFullscreen: Ne,
|
|
602
|
-
onGeneratePdf:
|
|
603
|
+
onGeneratePdf: s(ze),
|
|
603
604
|
onGenerateCsv: $e,
|
|
604
|
-
onGenerateImage:
|
|
605
|
+
onGenerateImage: s(De),
|
|
605
606
|
onGenerateSvg: Ve,
|
|
606
607
|
onToggleTable: _e,
|
|
607
608
|
onToggleTooltip: Be,
|
|
608
609
|
onToggleAnnotator: Te,
|
|
609
610
|
style: ye({
|
|
610
|
-
visibility:
|
|
611
|
+
visibility: s(V) ? s(A) ? "visible" : "hidden" : "visible"
|
|
611
612
|
})
|
|
612
613
|
}, Xe({ _: 2 }, [
|
|
613
614
|
t.$slots.menuIcon ? {
|
|
614
615
|
name: "menuIcon",
|
|
615
|
-
fn:
|
|
616
|
-
|
|
616
|
+
fn: T(({ isOpen: a, color: c }) => [
|
|
617
|
+
S(t.$slots, "menuIcon", se(ie({ isOpen: a, color: c })), void 0, !0)
|
|
617
618
|
]),
|
|
618
619
|
key: "0"
|
|
619
620
|
} : void 0,
|
|
620
621
|
t.$slots.optionPdf ? {
|
|
621
622
|
name: "optionPdf",
|
|
622
|
-
fn:
|
|
623
|
-
|
|
623
|
+
fn: T(() => [
|
|
624
|
+
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
624
625
|
]),
|
|
625
626
|
key: "1"
|
|
626
627
|
} : void 0,
|
|
627
628
|
t.$slots.optionCsv ? {
|
|
628
629
|
name: "optionCsv",
|
|
629
|
-
fn:
|
|
630
|
-
|
|
630
|
+
fn: T(() => [
|
|
631
|
+
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
631
632
|
]),
|
|
632
633
|
key: "2"
|
|
633
634
|
} : void 0,
|
|
634
635
|
t.$slots.optionImg ? {
|
|
635
636
|
name: "optionImg",
|
|
636
|
-
fn:
|
|
637
|
-
|
|
637
|
+
fn: T(() => [
|
|
638
|
+
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
638
639
|
]),
|
|
639
640
|
key: "3"
|
|
640
641
|
} : void 0,
|
|
641
642
|
t.$slots.optionTable ? {
|
|
642
643
|
name: "optionTable",
|
|
643
|
-
fn:
|
|
644
|
-
|
|
644
|
+
fn: T(() => [
|
|
645
|
+
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
645
646
|
]),
|
|
646
647
|
key: "4"
|
|
647
648
|
} : void 0,
|
|
648
649
|
t.$slots.optionFullscreen ? {
|
|
649
650
|
name: "optionFullscreen",
|
|
650
|
-
fn:
|
|
651
|
-
|
|
651
|
+
fn: T(({ toggleFullscreen: a, isFullscreen: c }) => [
|
|
652
|
+
S(t.$slots, "optionFullscreen", se(ie({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
|
|
652
653
|
]),
|
|
653
654
|
key: "5"
|
|
654
655
|
} : void 0,
|
|
655
656
|
t.$slots.optionAnnotator ? {
|
|
656
657
|
name: "optionAnnotator",
|
|
657
|
-
fn:
|
|
658
|
-
|
|
658
|
+
fn: T(({ toggleAnnotator: a, isAnnotator: c }) => [
|
|
659
|
+
S(t.$slots, "optionAnnotator", se(ie({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
|
|
659
660
|
]),
|
|
660
661
|
key: "6"
|
|
661
662
|
} : void 0
|
|
662
663
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
|
|
663
|
-
(
|
|
664
|
+
(w(), _("svg", {
|
|
664
665
|
ref_key: "svgRef",
|
|
665
666
|
ref: G,
|
|
666
|
-
class: Ue({ "vue-data-ui-fullscreen--on":
|
|
667
|
-
xmlns:
|
|
668
|
-
viewBox: `${
|
|
667
|
+
class: Ue({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
668
|
+
xmlns: s(Pt),
|
|
669
|
+
viewBox: `${s(ge).x} ${s(ge).y} ${s(ge).width} ${s(ge).height}`,
|
|
669
670
|
style: "overflow:hidden;background:transparent;"
|
|
670
671
|
}, [
|
|
671
|
-
|
|
672
|
-
t.$slots["chart-background"] ? (
|
|
672
|
+
ke(s(i)),
|
|
673
|
+
t.$slots["chart-background"] ? (w(), _("foreignObject", {
|
|
673
674
|
key: 0,
|
|
674
675
|
x: 0,
|
|
675
676
|
y: 0,
|
|
@@ -679,13 +680,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
679
680
|
pointerEvents: "none"
|
|
680
681
|
}
|
|
681
682
|
}, [
|
|
682
|
-
|
|
683
|
+
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
683
684
|
], 8, Zt)) : W("", !0),
|
|
684
|
-
|
|
685
|
+
we("g", {
|
|
685
686
|
transform: `translate(${Z.value.x}, ${Z.value.y})`
|
|
686
687
|
}, [
|
|
687
|
-
(
|
|
688
|
-
a.minX !== void 0 ? (
|
|
688
|
+
(w(!0), _(ft, null, gt(re.value, (a, c) => (w(), _("g", null, [
|
|
689
|
+
a.minX !== void 0 ? (w(), _("rect", {
|
|
689
690
|
key: 0,
|
|
690
691
|
x: a.x + a.minX,
|
|
691
692
|
y: a.y + a.minY * 1.25,
|
|
@@ -697,7 +698,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
697
698
|
onMouseleave: (g) => rt(a, c),
|
|
698
699
|
onClick: (g) => ct(a, c)
|
|
699
700
|
}, null, 40, Jt)) : W("", !0),
|
|
700
|
-
(
|
|
701
|
+
(w(), _("text", {
|
|
701
702
|
fill: a.color,
|
|
702
703
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
703
704
|
key: c,
|
|
@@ -705,23 +706,33 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
705
706
|
y: a.y,
|
|
706
707
|
"font-size": a.fontSize,
|
|
707
708
|
transform: `translate(${a.width / 2}, ${a.height / 2})`,
|
|
708
|
-
class: Ue({ animated: e.value.useCssAnimation
|
|
709
|
+
class: Ue({ animated: e.value.useCssAnimation && !s(ee) }),
|
|
709
710
|
"text-anchor": "middle",
|
|
710
711
|
"dominant-baseline": "central",
|
|
711
|
-
|
|
712
|
+
"paint-order": "stroke fill",
|
|
713
|
+
stroke: !oe.value || oe.value === a.id ? e.value.style.chart.words.selectedStroke : void 0,
|
|
714
|
+
"stroke-width": a.height * 0.05,
|
|
715
|
+
"stroke-linecap": "round",
|
|
716
|
+
"stroke-linejoin": "round",
|
|
717
|
+
style: ye(`
|
|
718
|
+
animation-delay:${c * e.value.animationDelayMs}ms !important;
|
|
719
|
+
pointer-events:none;
|
|
720
|
+
fill-opacity:${!oe.value || oe.value === a.id ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
721
|
+
transition:fill-opacity 0.3s ease-in-out !important;
|
|
722
|
+
`)
|
|
712
723
|
}, Me(a.name), 15, Kt))
|
|
713
724
|
]))), 256))
|
|
714
725
|
], 8, Qt),
|
|
715
|
-
|
|
726
|
+
S(t.$slots, "svg", {
|
|
716
727
|
svg: { height: u.value.height, width: u.value.width }
|
|
717
728
|
}, void 0, !0)
|
|
718
729
|
], 10, Ht)),
|
|
719
|
-
t.$slots.watermark ? (
|
|
720
|
-
|
|
730
|
+
t.$slots.watermark ? (w(), _("div", ea, [
|
|
731
|
+
S(t.$slots, "watermark", se(ie({ isPrinting: s(Ae) || s(Ie) })), void 0, !0)
|
|
721
732
|
])) : W("", !0),
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
733
|
+
s(at) ? (w(), _("div", ta, [
|
|
734
|
+
S(t.$slots, "reset-action", { reset: s(be) }, () => [
|
|
735
|
+
we("button", {
|
|
725
736
|
"data-cy-reset": "",
|
|
726
737
|
tabindex: "0",
|
|
727
738
|
role: "button",
|
|
@@ -729,17 +740,17 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
729
740
|
style: ye({
|
|
730
741
|
background: e.value.style.chart.backgroundColor
|
|
731
742
|
}),
|
|
732
|
-
onClick: n[0] || (n[0] = (a) =>
|
|
743
|
+
onClick: n[0] || (n[0] = (a) => s(be)(!0))
|
|
733
744
|
}, [
|
|
734
|
-
|
|
745
|
+
ke(s(h), {
|
|
735
746
|
name: "refresh",
|
|
736
747
|
stroke: e.value.style.chart.color
|
|
737
748
|
}, null, 8, ["stroke"])
|
|
738
749
|
], 4)
|
|
739
750
|
], !0)
|
|
740
751
|
])) : W("", !0),
|
|
741
|
-
|
|
742
|
-
show:
|
|
752
|
+
ke(s(v), {
|
|
753
|
+
show: P.value.showTooltip && ue.value,
|
|
743
754
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
744
755
|
color: e.value.style.chart.tooltip.color,
|
|
745
756
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -749,38 +760,38 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
749
760
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
750
761
|
position: e.value.style.chart.tooltip.position,
|
|
751
762
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
752
|
-
parent:
|
|
763
|
+
parent: k.value,
|
|
753
764
|
content: Se.value,
|
|
754
765
|
isCustom: de.value,
|
|
755
|
-
isFullscreen:
|
|
766
|
+
isFullscreen: ae.value,
|
|
756
767
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
757
768
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
758
769
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
759
770
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
760
771
|
}, {
|
|
761
|
-
"tooltip-before":
|
|
762
|
-
|
|
772
|
+
"tooltip-before": T(() => [
|
|
773
|
+
S(t.$slots, "tooltip-before", se(ie({ ...Fe.value })), void 0, !0)
|
|
763
774
|
]),
|
|
764
|
-
"tooltip-after":
|
|
765
|
-
|
|
775
|
+
"tooltip-after": T(() => [
|
|
776
|
+
S(t.$slots, "tooltip-after", se(ie({ ...Fe.value })), void 0, !0)
|
|
766
777
|
]),
|
|
767
778
|
_: 3
|
|
768
779
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
769
|
-
t.$slots.source ? (
|
|
780
|
+
t.$slots.source ? (w(), _("div", {
|
|
770
781
|
key: 5,
|
|
771
782
|
ref_key: "source",
|
|
772
783
|
ref: U,
|
|
773
784
|
dir: "auto"
|
|
774
785
|
}, [
|
|
775
|
-
|
|
786
|
+
S(t.$slots, "source", {}, void 0, !0)
|
|
776
787
|
], 512)) : W("", !0),
|
|
777
|
-
y.value && e.value.userOptions.buttons.table ? (
|
|
788
|
+
y.value && e.value.userOptions.buttons.table ? (w(), ne(bt(ve.value.component), yt({ key: 6 }, ve.value.props, {
|
|
778
789
|
ref_key: "tableUnit",
|
|
779
790
|
ref: Y,
|
|
780
791
|
onClose: Re
|
|
781
792
|
}), Xe({
|
|
782
|
-
content:
|
|
783
|
-
(
|
|
793
|
+
content: T(() => [
|
|
794
|
+
(w(), ne(s(p), {
|
|
784
795
|
key: `table_${he.value}`,
|
|
785
796
|
colNames: fe.value.colNames,
|
|
786
797
|
head: fe.value.head,
|
|
@@ -790,13 +801,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
790
801
|
withCloseButton: !e.value.table.useDialog,
|
|
791
802
|
onClose: Re
|
|
792
803
|
}, {
|
|
793
|
-
th:
|
|
794
|
-
|
|
804
|
+
th: T(({ th: a }) => [
|
|
805
|
+
we("div", {
|
|
795
806
|
innerHTML: a,
|
|
796
807
|
style: { display: "flex", "align-items": "center" }
|
|
797
808
|
}, null, 8, aa)
|
|
798
809
|
]),
|
|
799
|
-
td:
|
|
810
|
+
td: T(({ td: a }) => [
|
|
800
811
|
Le(Me(a.name || a), 1)
|
|
801
812
|
]),
|
|
802
813
|
_: 1
|
|
@@ -806,20 +817,20 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
806
817
|
}, [
|
|
807
818
|
e.value.table.useDialog ? {
|
|
808
819
|
name: "title",
|
|
809
|
-
fn:
|
|
820
|
+
fn: T(() => [
|
|
810
821
|
Le(Me(ve.value.title), 1)
|
|
811
822
|
]),
|
|
812
823
|
key: "0"
|
|
813
824
|
} : void 0,
|
|
814
825
|
e.value.table.useDialog ? {
|
|
815
826
|
name: "actions",
|
|
816
|
-
fn:
|
|
817
|
-
|
|
827
|
+
fn: T(() => [
|
|
828
|
+
we("button", {
|
|
818
829
|
tabindex: "0",
|
|
819
830
|
class: "vue-ui-user-options-button",
|
|
820
831
|
onClick: n[1] || (n[1] = (a) => $e(e.value.userOptions.callbacks.csv))
|
|
821
832
|
}, [
|
|
822
|
-
|
|
833
|
+
ke(s(h), {
|
|
823
834
|
name: "excel",
|
|
824
835
|
stroke: ve.value.props.color
|
|
825
836
|
}, null, 8, ["stroke"])
|
|
@@ -828,10 +839,10 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
828
839
|
key: "1"
|
|
829
840
|
} : void 0
|
|
830
841
|
]), 1040)) : W("", !0),
|
|
831
|
-
|
|
842
|
+
s(ee) ? (w(), ne(Nt, { key: 7 })) : W("", !0)
|
|
832
843
|
], 44, qt));
|
|
833
844
|
}
|
|
834
|
-
}, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-
|
|
845
|
+
}, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-a81c2cdf"]]);
|
|
835
846
|
export {
|
|
836
847
|
ba as default
|
|
837
848
|
};
|