vue-data-ui 3.4.9 → 3.5.1
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 +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { useCssVars as dt, defineAsyncComponent as
|
|
1
|
+
import { useCssVars as dt, defineAsyncComponent as H, computed as Z, ref as m, toRefs as mt, watch as se, shallowRef as Ee, onMounted as ht, onBeforeUnmount as ft, createElementBlock as B, openBlock as x, unref as s, normalizeStyle as ye, createBlock as ie, createCommentVNode as X, createVNode as ke, withCtx as p, renderSlot as g, normalizeProps as R, guardReactiveProps as V, createSlots as Xe, normalizeClass as Ue, createElementVNode as we, Fragment as pt, renderList as gt, toDisplayString as Me, resolveDynamicComponent as bt, mergeProps as yt, createTextVNode as Le, nextTick as Ye } from "vue";
|
|
2
2
|
import { d as kt, t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
3
3
|
import { c as Ge, t as xt, ar as $t, x as St, b as Tt, 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-C_mNZmhD.js";
|
|
4
|
-
import { u as zt, a as He } from "./useNestedProp-
|
|
4
|
+
import { u as zt, a as He } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Dt, B as Nt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Bt } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import Et from "./Title-
|
|
7
|
+
import { u as Rt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import _t from "./img-BecE5qXd.js";
|
|
11
|
+
import Et from "./Title-isbiM8i8.js";
|
|
12
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
|
-
function Yt(
|
|
16
|
-
const { width: v, height: h } =
|
|
17
|
-
let l = v, o = h, i = 0,
|
|
15
|
+
function Yt($, k) {
|
|
16
|
+
const { width: v, height: h } = $, f = k.getImageData(0, 0, v, h).data;
|
|
17
|
+
let l = v, o = h, i = 0, S = 0, F = !1;
|
|
18
18
|
for (let r = 0; r < h; r += 1)
|
|
19
|
-
for (let
|
|
20
|
-
f[(r * v +
|
|
21
|
-
return F ? [l, o, i,
|
|
19
|
+
for (let w = 0; w < v; w += 1)
|
|
20
|
+
f[(r * v + w) * 4 + 3] > 1 && (F = !0, w < l && (l = w), w > i && (i = w), r < o && (o = r), r > S && (S = r));
|
|
21
|
+
return F ? [l, o, i, S] : [0, 0, 0, 0];
|
|
22
22
|
}
|
|
23
23
|
function Ze({
|
|
24
|
-
word:
|
|
25
|
-
fontSize:
|
|
24
|
+
word: $,
|
|
25
|
+
fontSize: k,
|
|
26
26
|
pad: v,
|
|
27
27
|
canvas: h,
|
|
28
28
|
ctx: d,
|
|
29
29
|
svg: f
|
|
30
30
|
}) {
|
|
31
|
-
d.save(), d.font = `${f.style && f.style.bold ? "bold " : ""}${
|
|
32
|
-
const l = d.measureText(
|
|
33
|
-
h.width = o, h.height = i, d.clearRect(0, 0, o, i), d.font = `${f.style && f.style.bold ? "bold " : ""}${
|
|
31
|
+
d.save(), d.font = `${f.style && f.style.bold ? "bold " : ""}${k}px Arial`;
|
|
32
|
+
const l = d.measureText($.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0), i = Math.ceil(k) + 2 + (v ? v * 2 : 0);
|
|
33
|
+
h.width = o, h.height = i, d.clearRect(0, 0, o, i), d.font = `${f.style && f.style.bold ? "bold " : ""}${k}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText($.name, o / 2, i / 2);
|
|
34
34
|
const F = d.getImageData(0, 0, o, i).data, r = [];
|
|
35
|
-
for (let
|
|
36
|
-
for (let
|
|
37
|
-
F[(
|
|
38
|
-
const [
|
|
39
|
-
return d.restore(), { w: o, h: i, wordMask: r, minX:
|
|
35
|
+
for (let W = 0; W < i; W += 1)
|
|
36
|
+
for (let Y = 0; Y < o; Y += 1)
|
|
37
|
+
F[(W * o + Y) * 4 + 3] > 1 && r.push([Y, W]);
|
|
38
|
+
const [w, U, L, C] = Yt(h, d);
|
|
39
|
+
return d.restore(), { w: o, h: i, wordMask: r, minX: w, minY: U, maxX: L, maxY: C };
|
|
40
40
|
}
|
|
41
|
-
function Qe({ mask:
|
|
41
|
+
function Qe({ mask: $, maskW: k, maskH: v, wx: h, wy: d, wordMask: f }) {
|
|
42
42
|
for (let l = 0; l < f.length; l += 1) {
|
|
43
43
|
const o = h + f[l][0], i = d + f[l][1];
|
|
44
|
-
if (o < 0 || i < 0 || o >=
|
|
44
|
+
if (o < 0 || i < 0 || o >= k || i >= v || $[i * k + o]) return !1;
|
|
45
45
|
}
|
|
46
46
|
return !0;
|
|
47
47
|
}
|
|
48
|
-
function Je({ mask:
|
|
48
|
+
function Je({ mask: $, maskW: k, maskH: v, wx: h, wy: d, wordMask: f }) {
|
|
49
49
|
for (let l = 0; l < f.length; l += 1) {
|
|
50
50
|
const o = h + f[l][0], i = d + f[l][1];
|
|
51
|
-
o >= 0 && i >= 0 && o <
|
|
51
|
+
o >= 0 && i >= 0 && o < k && i < v && ($[i * k + o] = 1);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function Gt({ wordMask:
|
|
55
|
-
const d = new Set(
|
|
56
|
-
for (let [l, o] of
|
|
54
|
+
function Gt({ wordMask: $, w: k, h: v, dilation: h }) {
|
|
55
|
+
const d = new Set($.map(([l, o]) => `${l},${o}`)), f = new Set(d);
|
|
56
|
+
for (let [l, o] of $)
|
|
57
57
|
for (let i = -h; i <= h; i += 1)
|
|
58
|
-
for (let
|
|
59
|
-
if (i === 0 &&
|
|
60
|
-
const F = l + i, r = o +
|
|
61
|
-
F >= 0 && F <
|
|
58
|
+
for (let S = -h; S <= h; S += 1) {
|
|
59
|
+
if (i === 0 && S === 0) continue;
|
|
60
|
+
const F = l + i, r = o + S;
|
|
61
|
+
F >= 0 && F < k && r >= 0 && r < v && f.add(`${F},${r}`);
|
|
62
62
|
}
|
|
63
63
|
return Array.from(f).map((l) => l.split(",").map(Number));
|
|
64
64
|
}
|
|
65
65
|
function jt({
|
|
66
|
-
words:
|
|
67
|
-
proximity:
|
|
66
|
+
words: $,
|
|
67
|
+
proximity: k = 0,
|
|
68
68
|
svg: v,
|
|
69
69
|
strictPixelPadding: h
|
|
70
70
|
}) {
|
|
71
|
-
const { width: d, height: f } = v, l = Math.round(d), o = Math.round(f), i = 1,
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
for (const
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
let O = !1, I =
|
|
71
|
+
const { width: d, height: f } = v, l = Math.round(d), o = Math.round(f), i = 1, S = v.minFontSize, F = Math.min(v.maxFontSize, 100), r = $.map((T) => T.value), w = Math.min(...r), U = Math.max(...r), L = new Uint8Array(l * o), C = document.createElement("canvas"), W = C.getContext("2d", { willReadFrequently: !0 });
|
|
72
|
+
C.width = l, C.height = o;
|
|
73
|
+
const Y = 6, me = 2, he = 2, ue = 1, j = Math.floor(l / 2), te = Math.floor(o / 2), e = [...$].sort((T, _) => _.value - T.value), ae = [];
|
|
74
|
+
for (const T of e) {
|
|
75
|
+
let _ = S;
|
|
76
|
+
U !== w && (_ = (T.value - w) / (U - w) * (F - S) + S), _ = Math.max(S, Math.min(F, _));
|
|
77
|
+
let O = !1, I = _;
|
|
78
78
|
for (; !O && I >= i; ) {
|
|
79
|
-
let { w: A, h: z, wordMask:
|
|
80
|
-
word:
|
|
79
|
+
let { w: A, h: z, wordMask: E, minX: q, minY: Q, maxX: J, maxY: K } = Ze({
|
|
80
|
+
word: T,
|
|
81
81
|
fontSize: I,
|
|
82
|
-
pad:
|
|
83
|
-
canvas:
|
|
84
|
-
ctx:
|
|
82
|
+
pad: k,
|
|
83
|
+
canvas: C,
|
|
84
|
+
ctx: W,
|
|
85
85
|
svg: v
|
|
86
86
|
});
|
|
87
|
-
h && (
|
|
88
|
-
let D = 0,
|
|
89
|
-
for (; D < Math.max(l, o) && !O &&
|
|
90
|
-
for (let u = 0; u < 360; u +=
|
|
91
|
-
|
|
92
|
-
const M = Math.round(
|
|
93
|
-
if (!(M < 0 ||
|
|
94
|
-
|
|
87
|
+
h && (E = Gt({ wordMask: E, w: A, h: z, dilation: 1 }));
|
|
88
|
+
let D = 0, G = 0;
|
|
89
|
+
for (; D < Math.max(l, o) && !O && G < 1e4; ) {
|
|
90
|
+
for (let u = 0; u < 360; u += Y) {
|
|
91
|
+
G += 1;
|
|
92
|
+
const M = Math.round(j + D * Math.cos(u * Math.PI / 180) - A / 2), b = Math.round(te + D * Math.sin(u * Math.PI / 180) - z / 2);
|
|
93
|
+
if (!(M < 0 || b < 0 || M + A > l || b + z > o) && Qe({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E })) {
|
|
94
|
+
ae.push({ ...T, x: M - l / 2, y: b - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: q, minY: Q, maxX: J, maxY: K }), Je({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E }), O = !0;
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -101,21 +101,21 @@ function jt({
|
|
|
101
101
|
}
|
|
102
102
|
if (!O && I < i) {
|
|
103
103
|
I = i;
|
|
104
|
-
const { w: A, h: z, wordMask:
|
|
105
|
-
word:
|
|
104
|
+
const { w: A, h: z, wordMask: E, minX: q, minY: Q, maxX: J, maxY: K } = Ze({
|
|
105
|
+
word: T,
|
|
106
106
|
fontSize: I,
|
|
107
|
-
pad:
|
|
108
|
-
canvas:
|
|
109
|
-
ctx:
|
|
107
|
+
pad: k,
|
|
108
|
+
canvas: C,
|
|
109
|
+
ctx: W,
|
|
110
110
|
svg: v
|
|
111
111
|
});
|
|
112
|
-
let D = 0,
|
|
113
|
-
for (; D < Math.max(l, o) && !O &&
|
|
112
|
+
let D = 0, G = 0;
|
|
113
|
+
for (; D < Math.max(l, o) && !O && G < 25e3; ) {
|
|
114
114
|
for (let u = 0; u < 360; u += he) {
|
|
115
|
-
|
|
116
|
-
const M = Math.round(
|
|
117
|
-
if (!(M < 0 ||
|
|
118
|
-
|
|
115
|
+
G += 1;
|
|
116
|
+
const M = Math.round(j + D * Math.cos(u * Math.PI / 180) - A / 2), b = Math.round(te + D * Math.sin(u * Math.PI / 180) - z / 2);
|
|
117
|
+
if (!(M < 0 || b < 0 || M + A > l || b + z > o) && Qe({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E })) {
|
|
118
|
+
ae.push({ ...T, x: M - l / 2, y: b - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: q, minY: Q, maxX: J, maxY: K }), Je({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E }), O = !0;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -123,7 +123,7 @@ function jt({
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return ae.sort((T, _) => _.fontSize - T.fontSize);
|
|
127
127
|
}
|
|
128
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,
|
|
@@ -148,21 +148,21 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
setup(
|
|
151
|
+
setup($, { expose: k }) {
|
|
152
152
|
dt((t) => ({
|
|
153
|
-
|
|
153
|
+
v9ba3ec0e: t.slicerColor
|
|
154
154
|
}));
|
|
155
|
-
const v =
|
|
155
|
+
const v = H(() => import("./Tooltip-oWCO1HKy.js")), h = H(() => import("./BaseIcon-BmMbm4d0.js")), d = H(() => import("./vue-ui-accordion-CqhVCfc2.js")), f = H(() => import("./DataTable-BT7VF2ua.js")), l = H(() => import("./PenAndPaper-SZQIAgkg.js")), o = H(() => import("./UserOptions-CGnQt6Fd.js")), i = H(() => import("./PackageVersion-DQvyATVa.js")), S = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_word_cloud: F } = zt(), r = $, w = Z({
|
|
156
156
|
get() {
|
|
157
157
|
return !!r.dataset && r.dataset.length;
|
|
158
158
|
},
|
|
159
159
|
set(t) {
|
|
160
160
|
return t;
|
|
161
161
|
}
|
|
162
|
-
}),
|
|
162
|
+
}), U = m(Ge()), L = m(0), C = m(null), W = m(null), Y = m(null), me = m(0), he = m(0), ue = m(!1), j = m(null), te = m(null), e = m(Q()), { loading: ae, FINAL_DATASET: T, manualLoading: _ } = Dt({
|
|
163
163
|
...mt(r),
|
|
164
164
|
FINAL_CONFIG: e,
|
|
165
|
-
prepareConfig:
|
|
165
|
+
prepareConfig: Q,
|
|
166
166
|
skeletonDataset: [
|
|
167
167
|
{ name: "Lorem", value: 6 },
|
|
168
168
|
{ name: "ipsum", value: 3 },
|
|
@@ -236,16 +236,16 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
236
236
|
})
|
|
237
237
|
}), O = m(I());
|
|
238
238
|
function I() {
|
|
239
|
-
return typeof
|
|
239
|
+
return typeof T.value == "string" ? $t(T.value) : T.value.map((t, n) => ({
|
|
240
240
|
...t,
|
|
241
241
|
value: St(t.value)
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
O.value = I(), xe(),
|
|
244
|
+
se(() => r.dataset, () => {
|
|
245
|
+
O.value = I(), xe(), K();
|
|
246
246
|
});
|
|
247
|
-
const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState:
|
|
248
|
-
function
|
|
247
|
+
const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState: E } = Vt({ config: e.value }), { svgRef: q } = Wt({ config: e.value.style.chart.title });
|
|
248
|
+
function Q() {
|
|
249
249
|
const t = He({
|
|
250
250
|
userConfig: r.config,
|
|
251
251
|
defaultConfig: F
|
|
@@ -258,26 +258,26 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
258
258
|
customPalette: Tt[t.theme] || Ce
|
|
259
259
|
} : t;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
262
|
-
function
|
|
261
|
+
const J = m({ x: 0, y: 0 });
|
|
262
|
+
function K() {
|
|
263
263
|
const t = {
|
|
264
264
|
x: 0,
|
|
265
265
|
y: 0,
|
|
266
266
|
width: Math.max(10, u.value.width),
|
|
267
267
|
height: Math.max(10, u.value.height)
|
|
268
268
|
};
|
|
269
|
-
ot(t),
|
|
269
|
+
ot(t), J.value = {
|
|
270
270
|
x: t.x + t.width / 2,
|
|
271
271
|
y: t.y + t.height / 2
|
|
272
272
|
}, be();
|
|
273
273
|
}
|
|
274
274
|
const D = kt(() => {
|
|
275
275
|
xe();
|
|
276
|
-
}, 10),
|
|
277
|
-
|
|
278
|
-
t === !1 && (D(),
|
|
279
|
-
}),
|
|
280
|
-
e.value =
|
|
276
|
+
}, 10), G = m(!1);
|
|
277
|
+
se(() => G.value, (t) => {
|
|
278
|
+
t === !1 && (D(), K());
|
|
279
|
+
}), se(() => r.config, (t) => {
|
|
280
|
+
e.value = Q(), 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;
|
|
281
281
|
}, { deep: !0 });
|
|
282
282
|
const u = m({
|
|
283
283
|
width: e.value.style.chart.width,
|
|
@@ -286,18 +286,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
286
286
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
287
287
|
bold: e.value.style.chart.words.bold
|
|
288
288
|
}), M = wt(() => {
|
|
289
|
-
|
|
289
|
+
G.value = !0;
|
|
290
290
|
const { width: t, height: n } = Ct({
|
|
291
|
-
chart:
|
|
292
|
-
title: e.value.style.chart.title.text ?
|
|
293
|
-
source:
|
|
291
|
+
chart: C.value,
|
|
292
|
+
title: e.value.style.chart.title.text ? W.value : null,
|
|
293
|
+
source: Y.value
|
|
294
294
|
});
|
|
295
295
|
requestAnimationFrame(async () => {
|
|
296
|
-
u.value.width = Math.max(10, t), u.value.height = Math.max(10, n - 12), await Ye(),
|
|
296
|
+
u.value.width = Math.max(10, t), u.value.height = Math.max(10, n - 12), await Ye(), G.value = !1;
|
|
297
297
|
});
|
|
298
|
-
}),
|
|
298
|
+
}), b = Ee(null), oe = Ee(null);
|
|
299
299
|
ht(Oe);
|
|
300
|
-
const Pe =
|
|
300
|
+
const Pe = Z(() => !!e.value.debug);
|
|
301
301
|
function Oe() {
|
|
302
302
|
je(r.dataset) ? qe({
|
|
303
303
|
componentName: "VueUiWordCloud",
|
|
@@ -308,7 +308,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
308
308
|
datasetObject: t,
|
|
309
309
|
requiredAttributes: ["name", "value"]
|
|
310
310
|
}).forEach((a) => {
|
|
311
|
-
|
|
311
|
+
w.value = !1, qe({
|
|
312
312
|
componentName: "VueUiWordCloud",
|
|
313
313
|
type: "datasetSerieAttribute",
|
|
314
314
|
property: a,
|
|
@@ -316,45 +316,45 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
316
316
|
debug: Pe.value
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
|
-
}), je(r.dataset) || (
|
|
319
|
+
}), je(r.dataset) || (_.value = e.value.loading), e.value.responsive && (b.value && (oe.value && b.value.unobserve(oe.value), b.value.disconnect()), b.value = new ResizeObserver(M), oe.value = C.value.parentNode, b.value.observe(oe.value)), K();
|
|
320
320
|
}
|
|
321
321
|
ft(() => {
|
|
322
|
-
|
|
322
|
+
b.value && (oe.value && b.value.unobserve(oe.value), b.value.disconnect());
|
|
323
323
|
});
|
|
324
324
|
const { isPrinting: Ae, isImaging: Ie, generatePdf: ze, generateImage: De } = Bt({
|
|
325
|
-
elementId: `wordCloud_${
|
|
325
|
+
elementId: `wordCloud_${U.value}`,
|
|
326
326
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
327
327
|
options: e.value.userOptions.print
|
|
328
328
|
}), P = m({
|
|
329
329
|
showTable: e.value.table.show,
|
|
330
330
|
showTooltip: e.value.style.chart.tooltip.show
|
|
331
331
|
});
|
|
332
|
-
|
|
332
|
+
se(e, () => {
|
|
333
333
|
P.value = {
|
|
334
334
|
showTable: e.value.table.show,
|
|
335
335
|
showTooltip: e.value.style.chart.tooltip.show
|
|
336
336
|
};
|
|
337
337
|
}, { immediate: !0 });
|
|
338
338
|
function Ke(t, n, a = "Arial") {
|
|
339
|
-
const
|
|
340
|
-
return
|
|
341
|
-
width:
|
|
339
|
+
const y = document.createElement("canvas").getContext("2d");
|
|
340
|
+
return y.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
|
|
341
|
+
width: y.measureText(t).width + e.value.style.chart.words.proximity,
|
|
342
342
|
height: n
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
const re = m([]);
|
|
346
|
-
|
|
346
|
+
se(() => r.dataset, xe, { immediate: !0 });
|
|
347
347
|
function xe() {
|
|
348
|
-
const t = [...O.value].map((
|
|
349
|
-
let
|
|
350
|
-
|
|
351
|
-
const
|
|
348
|
+
const t = [...O.value].map((y) => y.value), n = Math.max(...t), a = Math.min(...t), c = [...O.value].map((y, N) => {
|
|
349
|
+
let ee = (y.value - a) / (n - a) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
|
|
350
|
+
ee = isNaN(ee) ? u.value.minFontSize : ee;
|
|
351
|
+
const _e = Ke(y.name, ee);
|
|
352
352
|
return {
|
|
353
|
-
...
|
|
353
|
+
...y,
|
|
354
354
|
id: Ge(),
|
|
355
|
-
fontSize:
|
|
356
|
-
width:
|
|
357
|
-
height:
|
|
355
|
+
fontSize: ee,
|
|
356
|
+
width: _e.width,
|
|
357
|
+
height: _e.height,
|
|
358
358
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[N] || e.value.customPalette[N % e.value.customPalette.length] || Ce[N] || Ce[N % Ce.length] : e.value.style.chart.words.color
|
|
359
359
|
};
|
|
360
360
|
});
|
|
@@ -365,7 +365,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
365
365
|
strictPixelPadding: e.value.strictPixelPadding
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
const fe =
|
|
368
|
+
const fe = Z(() => {
|
|
369
369
|
const t = re.value.map((a) => ({
|
|
370
370
|
name: a.name,
|
|
371
371
|
color: a.color
|
|
@@ -374,24 +374,24 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
374
374
|
});
|
|
375
375
|
function $e(t = null) {
|
|
376
376
|
Ye(() => {
|
|
377
|
-
const n = fe.value.head.map((
|
|
378
|
-
|
|
377
|
+
const n = fe.value.head.map((y, N) => [[
|
|
378
|
+
y.name
|
|
379
379
|
], [fe.value.body[N]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), c = Ot(a);
|
|
380
380
|
t ? t(c) : At({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
const pe =
|
|
383
|
+
const pe = Z(() => {
|
|
384
384
|
const t = [
|
|
385
385
|
e.value.table.columnNames.series,
|
|
386
386
|
e.value.table.columnNames.value
|
|
387
|
-
], n = fe.value.head.map((
|
|
388
|
-
const
|
|
387
|
+
], n = fe.value.head.map((y, N) => {
|
|
388
|
+
const ee = Mt({ p: e.value.table.td.prefix, v: fe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
389
389
|
return [
|
|
390
390
|
{
|
|
391
|
-
color:
|
|
392
|
-
name:
|
|
391
|
+
color: y.color,
|
|
392
|
+
name: y.name
|
|
393
393
|
},
|
|
394
|
-
|
|
394
|
+
ee
|
|
395
395
|
];
|
|
396
396
|
}), a = {
|
|
397
397
|
th: {
|
|
@@ -415,9 +415,9 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
415
415
|
body: n,
|
|
416
416
|
config: a
|
|
417
417
|
};
|
|
418
|
-
}),
|
|
418
|
+
}), le = m(!1);
|
|
419
419
|
function Ne(t) {
|
|
420
|
-
|
|
420
|
+
le.value = t, L.value += 1;
|
|
421
421
|
}
|
|
422
422
|
function et() {
|
|
423
423
|
return re.value;
|
|
@@ -425,24 +425,24 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
425
425
|
function Be() {
|
|
426
426
|
P.value.showTable = !P.value.showTable;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Re() {
|
|
429
429
|
P.value.showTooltip = !P.value.showTooltip;
|
|
430
430
|
}
|
|
431
431
|
const ce = m(!1);
|
|
432
432
|
function Se() {
|
|
433
433
|
ce.value = !ce.value;
|
|
434
434
|
}
|
|
435
|
-
const tt =
|
|
435
|
+
const tt = Z(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: at, setInitialViewBox: ot } = Ut(q, {
|
|
436
436
|
x: 0,
|
|
437
437
|
y: 0,
|
|
438
438
|
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
439
439
|
height: u.value.height <= 0 ? 10 : u.value.height
|
|
440
440
|
}, 1, tt);
|
|
441
441
|
async function lt({ scale: t = 2 } = {}) {
|
|
442
|
-
if (!
|
|
443
|
-
const { width: n, height: a } =
|
|
442
|
+
if (!C.value) return;
|
|
443
|
+
const { width: n, height: a } = C.value.getBoundingClientRect(), c = n / a, { imageUri: y, base64: N } = await _t({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
444
444
|
return {
|
|
445
|
-
imageUri:
|
|
445
|
+
imageUri: y,
|
|
446
446
|
base64: N,
|
|
447
447
|
title: e.value.style.chart.title.text,
|
|
448
448
|
width: n,
|
|
@@ -450,18 +450,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
450
450
|
aspectRatio: c
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
const ve =
|
|
453
|
+
const ve = Z(() => {
|
|
454
454
|
const t = e.value.table.useDialog && !e.value.table.show, n = P.value.showTable;
|
|
455
455
|
return {
|
|
456
|
-
component: t ?
|
|
456
|
+
component: t ? S : d,
|
|
457
457
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
458
458
|
props: t ? {
|
|
459
459
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
460
460
|
color: e.value.table.th.color,
|
|
461
461
|
headerColor: e.value.table.th.color,
|
|
462
462
|
headerBg: e.value.table.th.backgroundColor,
|
|
463
|
-
isFullscreen:
|
|
464
|
-
fullscreenParent:
|
|
463
|
+
isFullscreen: le.value,
|
|
464
|
+
fullscreenParent: C.value,
|
|
465
465
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
466
466
|
} : {
|
|
467
467
|
hideDetails: !0,
|
|
@@ -480,47 +480,47 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
});
|
|
483
|
-
|
|
484
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
483
|
+
se(() => P.value.showTable, (t) => {
|
|
484
|
+
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
485
485
|
});
|
|
486
|
-
function
|
|
487
|
-
P.value.showTable = !1,
|
|
486
|
+
function Ve() {
|
|
487
|
+
P.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
488
488
|
}
|
|
489
|
-
const nt =
|
|
490
|
-
svg:
|
|
489
|
+
const nt = Z(() => e.value.style.chart.backgroundColor), st = Z(() => e.value.style.chart.title), { exportSvg: it, getSvg: ut } = Rt({
|
|
490
|
+
svg: q,
|
|
491
491
|
title: st,
|
|
492
492
|
backgroundColor: nt
|
|
493
493
|
});
|
|
494
|
-
async function
|
|
494
|
+
async function We({ isCb: t }) {
|
|
495
495
|
if (t) {
|
|
496
|
-
const { blob: n, url: a, text: c, dataUrl:
|
|
497
|
-
e.value.userOptions.callbacks.svg({ blob: n, url: a, text: c, dataUrl:
|
|
496
|
+
const { blob: n, url: a, text: c, dataUrl: y } = await ut();
|
|
497
|
+
e.value.userOptions.callbacks.svg({ blob: n, url: a, text: c, dataUrl: y });
|
|
498
498
|
} else
|
|
499
499
|
it();
|
|
500
500
|
}
|
|
501
|
-
|
|
501
|
+
k({
|
|
502
502
|
getData: et,
|
|
503
503
|
getImage: lt,
|
|
504
504
|
generateCsv: $e,
|
|
505
505
|
generatePdf: ze,
|
|
506
506
|
generateImage: De,
|
|
507
|
-
generateSvg:
|
|
507
|
+
generateSvg: We,
|
|
508
508
|
resetZoom: be,
|
|
509
509
|
toggleTable: Be,
|
|
510
|
-
toggleTooltip:
|
|
510
|
+
toggleTooltip: Re,
|
|
511
511
|
toggleAnnotator: Se,
|
|
512
512
|
toggleFullscreen: Ne
|
|
513
513
|
});
|
|
514
|
-
const
|
|
514
|
+
const ne = m(null), de = m(!1), Te = m(""), Fe = m(null);
|
|
515
515
|
function rt(t, n) {
|
|
516
|
-
|
|
516
|
+
ne.value = null, ue.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: n });
|
|
517
517
|
}
|
|
518
518
|
function ct(t, n) {
|
|
519
519
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: n });
|
|
520
520
|
}
|
|
521
521
|
function vt(t, n) {
|
|
522
522
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !P.value.showTooltip) return;
|
|
523
|
-
|
|
523
|
+
ne.value = t.id, Fe.value = { datapoint: t, config: e.value };
|
|
524
524
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
525
525
|
if (de.value = !1, It(a))
|
|
526
526
|
try {
|
|
@@ -538,30 +538,50 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
538
538
|
}
|
|
539
539
|
ue.value = !0;
|
|
540
540
|
}
|
|
541
|
-
return (t, n) => (
|
|
541
|
+
return (t, n) => (x(), B("div", {
|
|
542
542
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
543
543
|
ref_key: "wordCloudChart",
|
|
544
|
-
ref:
|
|
545
|
-
id: `wordCloud_${
|
|
544
|
+
ref: C,
|
|
545
|
+
id: `wordCloud_${U.value}`,
|
|
546
546
|
style: ye(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
547
547
|
onMouseenter: n[2] || (n[2] = () => s(z)(!0)),
|
|
548
548
|
onMouseleave: n[3] || (n[3] = () => s(z)(!1))
|
|
549
549
|
}, [
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (
|
|
550
|
+
e.value.userOptions.buttons.annotator ? (x(), ie(s(l), {
|
|
551
551
|
key: 0,
|
|
552
|
-
svgRef: s(
|
|
552
|
+
svgRef: s(q),
|
|
553
553
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
554
554
|
color: e.value.style.chart.color,
|
|
555
555
|
active: ce.value,
|
|
556
556
|
onClose: Se
|
|
557
|
-
},
|
|
558
|
-
|
|
557
|
+
}, {
|
|
558
|
+
"annotator-action-close": p(() => [
|
|
559
|
+
g(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
560
|
+
]),
|
|
561
|
+
"annotator-action-color": p(({ color: a }) => [
|
|
562
|
+
g(t.$slots, "annotator-action-color", R(V({ color: a })), void 0, !0)
|
|
563
|
+
]),
|
|
564
|
+
"annotator-action-draw": p(({ mode: a }) => [
|
|
565
|
+
g(t.$slots, "annotator-action-draw", R(V({ mode: a })), void 0, !0)
|
|
566
|
+
]),
|
|
567
|
+
"annotator-action-undo": p(({ disabled: a }) => [
|
|
568
|
+
g(t.$slots, "annotator-action-undo", R(V({ disabled: a })), void 0, !0)
|
|
569
|
+
]),
|
|
570
|
+
"annotator-action-redo": p(({ disabled: a }) => [
|
|
571
|
+
g(t.$slots, "annotator-action-redo", R(V({ disabled: a })), void 0, !0)
|
|
572
|
+
]),
|
|
573
|
+
"annotator-action-delete": p(({ disabled: a }) => [
|
|
574
|
+
g(t.$slots, "annotator-action-delete", R(V({ disabled: a })), void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
_: 3
|
|
577
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : X("", !0),
|
|
578
|
+
e.value.style.chart.title.text ? (x(), B("div", {
|
|
559
579
|
key: 1,
|
|
560
580
|
ref_key: "chartTitle",
|
|
561
|
-
ref:
|
|
581
|
+
ref: W,
|
|
562
582
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
563
583
|
}, [
|
|
564
|
-
(
|
|
584
|
+
(x(), ie(Et, {
|
|
565
585
|
key: `title_${me.value}`,
|
|
566
586
|
config: {
|
|
567
587
|
title: {
|
|
@@ -572,25 +592,25 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
572
592
|
}
|
|
573
593
|
}
|
|
574
594
|
}, null, 8, ["config"]))
|
|
575
|
-
], 512)) :
|
|
576
|
-
e.value.userOptions.show &&
|
|
595
|
+
], 512)) : X("", !0),
|
|
596
|
+
e.value.userOptions.show && w.value && (s(E) || s(A)) ? (x(), ie(s(o), {
|
|
577
597
|
ref_key: "userOptionsRef",
|
|
578
|
-
ref:
|
|
579
|
-
key: `user_option_${
|
|
598
|
+
ref: te,
|
|
599
|
+
key: `user_option_${L.value}`,
|
|
580
600
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
581
601
|
color: e.value.style.chart.color,
|
|
582
602
|
isPrinting: s(Ae),
|
|
583
603
|
isImaging: s(Ie),
|
|
584
|
-
uid:
|
|
604
|
+
uid: U.value,
|
|
585
605
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
586
606
|
hasXls: e.value.userOptions.buttons.csv,
|
|
587
607
|
hasImg: e.value.userOptions.buttons.img,
|
|
588
608
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
589
609
|
hasTable: e.value.userOptions.buttons.table,
|
|
590
610
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
591
|
-
isFullscreen:
|
|
611
|
+
isFullscreen: le.value,
|
|
592
612
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
593
|
-
chartElement:
|
|
613
|
+
chartElement: C.value,
|
|
594
614
|
position: e.value.userOptions.position,
|
|
595
615
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
596
616
|
isTooltip: P.value.showTooltip,
|
|
@@ -603,81 +623,81 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
603
623
|
onGeneratePdf: s(ze),
|
|
604
624
|
onGenerateCsv: $e,
|
|
605
625
|
onGenerateImage: s(De),
|
|
606
|
-
onGenerateSvg:
|
|
626
|
+
onGenerateSvg: We,
|
|
607
627
|
onToggleTable: Be,
|
|
608
|
-
onToggleTooltip:
|
|
628
|
+
onToggleTooltip: Re,
|
|
609
629
|
onToggleAnnotator: Se,
|
|
610
630
|
style: ye({
|
|
611
|
-
visibility: s(
|
|
631
|
+
visibility: s(E) ? s(A) ? "visible" : "hidden" : "visible"
|
|
612
632
|
})
|
|
613
633
|
}, Xe({ _: 2 }, [
|
|
614
634
|
t.$slots.menuIcon ? {
|
|
615
635
|
name: "menuIcon",
|
|
616
|
-
fn:
|
|
617
|
-
|
|
636
|
+
fn: p(({ isOpen: a, color: c }) => [
|
|
637
|
+
g(t.$slots, "menuIcon", R(V({ isOpen: a, color: c })), void 0, !0)
|
|
618
638
|
]),
|
|
619
639
|
key: "0"
|
|
620
640
|
} : void 0,
|
|
621
641
|
t.$slots.optionPdf ? {
|
|
622
642
|
name: "optionPdf",
|
|
623
|
-
fn:
|
|
624
|
-
|
|
643
|
+
fn: p(() => [
|
|
644
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
625
645
|
]),
|
|
626
646
|
key: "1"
|
|
627
647
|
} : void 0,
|
|
628
648
|
t.$slots.optionCsv ? {
|
|
629
649
|
name: "optionCsv",
|
|
630
|
-
fn:
|
|
631
|
-
|
|
650
|
+
fn: p(() => [
|
|
651
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
632
652
|
]),
|
|
633
653
|
key: "2"
|
|
634
654
|
} : void 0,
|
|
635
655
|
t.$slots.optionImg ? {
|
|
636
656
|
name: "optionImg",
|
|
637
|
-
fn:
|
|
638
|
-
|
|
657
|
+
fn: p(() => [
|
|
658
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
639
659
|
]),
|
|
640
660
|
key: "3"
|
|
641
661
|
} : void 0,
|
|
642
662
|
t.$slots.optionSvg ? {
|
|
643
663
|
name: "optionSvg",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
664
|
+
fn: p(() => [
|
|
665
|
+
g(t.$slots, "optionSvg", {}, void 0, !0)
|
|
646
666
|
]),
|
|
647
667
|
key: "4"
|
|
648
668
|
} : void 0,
|
|
649
669
|
t.$slots.optionTable ? {
|
|
650
670
|
name: "optionTable",
|
|
651
|
-
fn:
|
|
652
|
-
|
|
671
|
+
fn: p(() => [
|
|
672
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
653
673
|
]),
|
|
654
674
|
key: "5"
|
|
655
675
|
} : void 0,
|
|
656
676
|
t.$slots.optionFullscreen ? {
|
|
657
677
|
name: "optionFullscreen",
|
|
658
|
-
fn:
|
|
659
|
-
|
|
678
|
+
fn: p(({ toggleFullscreen: a, isFullscreen: c }) => [
|
|
679
|
+
g(t.$slots, "optionFullscreen", R(V({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
|
|
660
680
|
]),
|
|
661
681
|
key: "6"
|
|
662
682
|
} : void 0,
|
|
663
683
|
t.$slots.optionAnnotator ? {
|
|
664
684
|
name: "optionAnnotator",
|
|
665
|
-
fn:
|
|
666
|
-
|
|
685
|
+
fn: p(({ toggleAnnotator: a, isAnnotator: c }) => [
|
|
686
|
+
g(t.$slots, "optionAnnotator", R(V({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
|
|
667
687
|
]),
|
|
668
688
|
key: "7"
|
|
669
689
|
} : void 0
|
|
670
|
-
]), 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"])) :
|
|
671
|
-
(
|
|
690
|
+
]), 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"])) : X("", !0),
|
|
691
|
+
(x(), B("svg", {
|
|
672
692
|
ref_key: "svgRef",
|
|
673
|
-
ref:
|
|
674
|
-
class: Ue({ "vue-data-ui-fullscreen--on":
|
|
693
|
+
ref: q,
|
|
694
|
+
class: Ue({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value }),
|
|
675
695
|
xmlns: s(Pt),
|
|
676
696
|
viewBox: `${s(ge).x} ${s(ge).y} ${s(ge).width} ${s(ge).height}`,
|
|
677
697
|
style: "overflow:hidden;background:transparent;"
|
|
678
698
|
}, [
|
|
679
699
|
ke(s(i)),
|
|
680
|
-
t.$slots["chart-background"] ? (
|
|
700
|
+
t.$slots["chart-background"] ? (x(), B("foreignObject", {
|
|
681
701
|
key: 0,
|
|
682
702
|
x: 0,
|
|
683
703
|
y: 0,
|
|
@@ -687,13 +707,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
687
707
|
pointerEvents: "none"
|
|
688
708
|
}
|
|
689
709
|
}, [
|
|
690
|
-
|
|
691
|
-
], 8, Zt)) :
|
|
710
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
711
|
+
], 8, Zt)) : X("", !0),
|
|
692
712
|
we("g", {
|
|
693
|
-
transform: `translate(${
|
|
713
|
+
transform: `translate(${J.value.x}, ${J.value.y})`
|
|
694
714
|
}, [
|
|
695
|
-
(
|
|
696
|
-
a.minX !== void 0 ? (
|
|
715
|
+
(x(!0), B(pt, null, gt(re.value, (a, c) => (x(), B("g", null, [
|
|
716
|
+
a.minX !== void 0 ? (x(), B("rect", {
|
|
697
717
|
key: 0,
|
|
698
718
|
x: a.x + a.minX,
|
|
699
719
|
y: a.y + a.minY * 1.25,
|
|
@@ -701,11 +721,11 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
701
721
|
height: a.maxY - a.minY,
|
|
702
722
|
fill: "transparent",
|
|
703
723
|
"pointer-events": "visiblePainted",
|
|
704
|
-
onMouseover: (
|
|
705
|
-
onMouseleave: (
|
|
706
|
-
onClick: (
|
|
707
|
-
}, null, 40, Jt)) :
|
|
708
|
-
(
|
|
724
|
+
onMouseover: (y) => vt(a, c),
|
|
725
|
+
onMouseleave: (y) => rt(a, c),
|
|
726
|
+
onClick: (y) => ct(a, c)
|
|
727
|
+
}, null, 40, Jt)) : X("", !0),
|
|
728
|
+
(x(), B("text", {
|
|
709
729
|
fill: a.color,
|
|
710
730
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
711
731
|
key: c,
|
|
@@ -713,32 +733,32 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
713
733
|
y: a.y,
|
|
714
734
|
"font-size": a.fontSize,
|
|
715
735
|
transform: `translate(${a.width / 2}, ${a.height / 2})`,
|
|
716
|
-
class: Ue({ animated: e.value.useCssAnimation && !s(
|
|
736
|
+
class: Ue({ animated: e.value.useCssAnimation && !s(ae) }),
|
|
717
737
|
"text-anchor": "middle",
|
|
718
738
|
"dominant-baseline": "central",
|
|
719
739
|
"paint-order": "stroke fill",
|
|
720
|
-
stroke: !
|
|
740
|
+
stroke: !ne.value || ne.value === a.id ? e.value.style.chart.words.selectedStroke : void 0,
|
|
721
741
|
"stroke-width": a.height * 0.05,
|
|
722
742
|
"stroke-linecap": "round",
|
|
723
743
|
"stroke-linejoin": "round",
|
|
724
744
|
style: ye(`
|
|
725
745
|
animation-delay:${c * e.value.animationDelayMs}ms !important;
|
|
726
746
|
pointer-events:none;
|
|
727
|
-
fill-opacity:${!
|
|
747
|
+
fill-opacity:${!ne.value || ne.value === a.id ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
728
748
|
transition:fill-opacity 0.3s ease-in-out !important;
|
|
729
749
|
`)
|
|
730
750
|
}, Me(a.name), 15, Kt))
|
|
731
751
|
]))), 256))
|
|
732
752
|
], 8, Qt),
|
|
733
|
-
|
|
753
|
+
g(t.$slots, "svg", {
|
|
734
754
|
svg: { height: u.value.height, width: u.value.width }
|
|
735
755
|
}, void 0, !0)
|
|
736
756
|
], 10, Ht)),
|
|
737
|
-
t.$slots.watermark ? (
|
|
738
|
-
|
|
739
|
-
])) :
|
|
740
|
-
s(at) ? (
|
|
741
|
-
|
|
757
|
+
t.$slots.watermark ? (x(), B("div", ea, [
|
|
758
|
+
g(t.$slots, "watermark", R(V({ isPrinting: s(Ae) || s(Ie) })), void 0, !0)
|
|
759
|
+
])) : X("", !0),
|
|
760
|
+
s(at) ? (x(), B("div", ta, [
|
|
761
|
+
g(t.$slots, "reset-action", { reset: s(be) }, () => [
|
|
742
762
|
we("button", {
|
|
743
763
|
"data-cy-reset": "",
|
|
744
764
|
tabindex: "0",
|
|
@@ -755,7 +775,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
755
775
|
}, null, 8, ["stroke"])
|
|
756
776
|
], 4)
|
|
757
777
|
], !0)
|
|
758
|
-
])) :
|
|
778
|
+
])) : X("", !0),
|
|
759
779
|
ke(s(v), {
|
|
760
780
|
show: P.value.showTooltip && ue.value,
|
|
761
781
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -767,38 +787,38 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
767
787
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
768
788
|
position: e.value.style.chart.tooltip.position,
|
|
769
789
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
770
|
-
parent:
|
|
790
|
+
parent: C.value,
|
|
771
791
|
content: Te.value,
|
|
772
792
|
isCustom: de.value,
|
|
773
|
-
isFullscreen:
|
|
793
|
+
isFullscreen: le.value,
|
|
774
794
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
775
795
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
776
796
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
777
797
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
778
798
|
}, {
|
|
779
|
-
"tooltip-before":
|
|
780
|
-
|
|
799
|
+
"tooltip-before": p(() => [
|
|
800
|
+
g(t.$slots, "tooltip-before", R(V({ ...Fe.value })), void 0, !0)
|
|
781
801
|
]),
|
|
782
|
-
"tooltip-after":
|
|
783
|
-
|
|
802
|
+
"tooltip-after": p(() => [
|
|
803
|
+
g(t.$slots, "tooltip-after", R(V({ ...Fe.value })), void 0, !0)
|
|
784
804
|
]),
|
|
785
805
|
_: 3
|
|
786
806
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
787
|
-
t.$slots.source ? (
|
|
807
|
+
t.$slots.source ? (x(), B("div", {
|
|
788
808
|
key: 5,
|
|
789
809
|
ref_key: "source",
|
|
790
|
-
ref:
|
|
810
|
+
ref: Y,
|
|
791
811
|
dir: "auto"
|
|
792
812
|
}, [
|
|
793
|
-
|
|
794
|
-
], 512)) :
|
|
795
|
-
|
|
813
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
814
|
+
], 512)) : X("", !0),
|
|
815
|
+
w.value && e.value.userOptions.buttons.table ? (x(), ie(bt(ve.value.component), yt({ key: 6 }, ve.value.props, {
|
|
796
816
|
ref_key: "tableUnit",
|
|
797
|
-
ref:
|
|
798
|
-
onClose:
|
|
817
|
+
ref: j,
|
|
818
|
+
onClose: Ve
|
|
799
819
|
}), Xe({
|
|
800
|
-
content:
|
|
801
|
-
(
|
|
820
|
+
content: p(() => [
|
|
821
|
+
(x(), ie(s(f), {
|
|
802
822
|
key: `table_${he.value}`,
|
|
803
823
|
colNames: pe.value.colNames,
|
|
804
824
|
head: pe.value.head,
|
|
@@ -806,15 +826,15 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
806
826
|
config: pe.value.config,
|
|
807
827
|
title: e.value.table.useDialog ? "" : ve.value.title,
|
|
808
828
|
withCloseButton: !e.value.table.useDialog,
|
|
809
|
-
onClose:
|
|
829
|
+
onClose: Ve
|
|
810
830
|
}, {
|
|
811
|
-
th:
|
|
831
|
+
th: p(({ th: a }) => [
|
|
812
832
|
we("div", {
|
|
813
833
|
innerHTML: a,
|
|
814
834
|
style: { display: "flex", "align-items": "center" }
|
|
815
835
|
}, null, 8, aa)
|
|
816
836
|
]),
|
|
817
|
-
td:
|
|
837
|
+
td: p(({ td: a }) => [
|
|
818
838
|
Le(Me(a.name || a), 1)
|
|
819
839
|
]),
|
|
820
840
|
_: 1
|
|
@@ -824,14 +844,14 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
824
844
|
}, [
|
|
825
845
|
e.value.table.useDialog ? {
|
|
826
846
|
name: "title",
|
|
827
|
-
fn:
|
|
847
|
+
fn: p(() => [
|
|
828
848
|
Le(Me(ve.value.title), 1)
|
|
829
849
|
]),
|
|
830
850
|
key: "0"
|
|
831
851
|
} : void 0,
|
|
832
852
|
e.value.table.useDialog ? {
|
|
833
853
|
name: "actions",
|
|
834
|
-
fn:
|
|
854
|
+
fn: p(() => [
|
|
835
855
|
we("button", {
|
|
836
856
|
tabindex: "0",
|
|
837
857
|
class: "vue-ui-user-options-button",
|
|
@@ -845,11 +865,11 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
|
|
|
845
865
|
]),
|
|
846
866
|
key: "1"
|
|
847
867
|
} : void 0
|
|
848
|
-
]), 1040)) :
|
|
849
|
-
s(
|
|
868
|
+
]), 1040)) : X("", !0),
|
|
869
|
+
s(ae) ? (x(), ie(Nt, { key: 7 })) : X("", !0)
|
|
850
870
|
], 44, qt));
|
|
851
871
|
}
|
|
852
|
-
}, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-
|
|
872
|
+
}, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-dd613095"]]);
|
|
853
873
|
export {
|
|
854
874
|
ba as default
|
|
855
875
|
};
|