vue-data-ui 3.3.3 → 3.4.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/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.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-icon.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/{dom-to-png-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as dt, defineAsyncComponent as
|
|
1
|
+
import { useCssVars as dt, defineAsyncComponent as j, computed as q, ref as m, toRefs as mt, watch as oe, shallowRef as Ee, onMounted as ht, onBeforeUnmount as pt, createElementBlock as _, openBlock as k, unref as i, normalizeStyle as ye, createBlock as le, createCommentVNode as W, createVNode as we, createSlots as Xe, withCtx as S, renderSlot as F, normalizeProps as ne, guardReactiveProps as se, normalizeClass as Ue, createElementVNode as ke, Fragment as ft, 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 wt, t as kt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import { c as Ge, t as xt,
|
|
4
|
-
import { u as zt, a as He } from "./useNestedProp-
|
|
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-B7CiTRDS.js";
|
|
5
5
|
import { u as Dt, B as Nt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as _t } from "./usePrinter-
|
|
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
|
-
import Wt from "./img-
|
|
11
|
-
import Et from "./Title-
|
|
10
|
+
import Wt from "./img-CFY3JivG.js";
|
|
11
|
+
import Et from "./Title-CFmv95In.js";
|
|
12
12
|
import { t as Xt } from "./themes-Dw-dDudK.js";
|
|
13
13
|
import { u as Ut } from "./usePanZoom-BVca3eMk.js";
|
|
14
14
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -38,14 +38,14 @@ function Ze({
|
|
|
38
38
|
const [y, E, X, w] = Yt(h, d);
|
|
39
39
|
return d.restore(), { w: o, h: s, wordMask: r, minX: y, minY: E, maxX: X, maxY: w };
|
|
40
40
|
}
|
|
41
|
-
function
|
|
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
43
|
const o = h + p[l][0], s = d + p[l][1];
|
|
44
44
|
if (o < 0 || s < 0 || o >= b || s >= v || C[s * b + o]) return !1;
|
|
45
45
|
}
|
|
46
46
|
return !0;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
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
50
|
const o = h + p[l][0], s = d + p[l][1];
|
|
51
51
|
o >= 0 && s >= 0 && o < b && s < v && (C[s * b + o] = 1);
|
|
@@ -62,7 +62,7 @@ function Gt({ wordMask: C, w: b, h: v, dilation: h }) {
|
|
|
62
62
|
}
|
|
63
63
|
return Array.from(p).map((l) => l.split(",").map(Number));
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function jt({
|
|
66
66
|
words: C,
|
|
67
67
|
proximity: b = 0,
|
|
68
68
|
svg: v,
|
|
@@ -70,13 +70,13 @@ function qt({
|
|
|
70
70
|
}) {
|
|
71
71
|
const { width: d, height: p } = v, l = Math.round(d), o = Math.round(p), s = 1, x = v.minFontSize, M = Math.min(v.maxFontSize, 100), r = C.map(($) => $.value), y = Math.min(...r), E = Math.max(...r), X = new Uint8Array(l * o), w = document.createElement("canvas"), B = w.getContext("2d", { willReadFrequently: !0 });
|
|
72
72
|
w.width = l, w.height = o;
|
|
73
|
-
const U = 6, me = 2, he = 2, ue = 1, Y = Math.floor(l / 2),
|
|
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), ie = [];
|
|
74
74
|
for (const $ of e) {
|
|
75
75
|
let R = x;
|
|
76
76
|
E !== y && (R = ($.value - y) / (E - y) * (M - x) + x), R = Math.max(x, Math.min(M, R));
|
|
77
77
|
let O = !1, I = R;
|
|
78
78
|
for (; !O && I >= s; ) {
|
|
79
|
-
let { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY:
|
|
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,
|
|
@@ -89,9 +89,9 @@ function qt({
|
|
|
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 P = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), f = Math.round(
|
|
93
|
-
if (!(P < 0 || f < 0 || P + A > l || f + z > o) &&
|
|
94
|
-
ie.push({ ...$, x: P - l / 2, y: f - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY:
|
|
92
|
+
const P = 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 (!(P < 0 || f < 0 || P + A > l || f + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: P, wy: f, wordMask: V })) {
|
|
94
|
+
ie.push({ ...$, x: P - 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: P, wy: f, wordMask: V }), O = !0;
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -101,7 +101,7 @@ function qt({
|
|
|
101
101
|
}
|
|
102
102
|
if (!O && I < s) {
|
|
103
103
|
I = s;
|
|
104
|
-
const { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY:
|
|
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,
|
|
@@ -113,9 +113,9 @@ function qt({
|
|
|
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 P = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), f = Math.round(
|
|
117
|
-
if (!(P < 0 || f < 0 || P + A > l || f + z > o) &&
|
|
118
|
-
ie.push({ ...$, x: P - l / 2, y: f - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY:
|
|
116
|
+
const P = 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 (!(P < 0 || f < 0 || P + A > l || f + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: P, wy: f, wordMask: V })) {
|
|
118
|
+
ie.push({ ...$, x: P - 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: P, wy: f, wordMask: V }), O = !0;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -125,7 +125,7 @@ function qt({
|
|
|
125
125
|
}
|
|
126
126
|
return ie.sort(($, R) => R.fontSize - $.fontSize);
|
|
127
127
|
}
|
|
128
|
-
const
|
|
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 = {
|
|
129
129
|
key: 3,
|
|
130
130
|
class: "vue-data-ui-watermark"
|
|
131
131
|
}, ta = {
|
|
@@ -152,14 +152,14 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
152
152
|
dt((t) => ({
|
|
153
153
|
v47a92ace: t.slicerColor
|
|
154
154
|
}));
|
|
155
|
-
const v =
|
|
155
|
+
const v = j(() => import("./Tooltip-Cs4v8OnI.js")), h = j(() => import("./BaseIcon-B5KaGWWC.js")), d = j(() => import("./vue-ui-accordion-BKkTS12x.js")), p = j(() => import("./DataTable-DOx3zgih.js")), l = j(() => import("./PenAndPaper-Dj2diYr0.js")), o = j(() => import("./UserOptions-C0YT60JN.js")), s = j(() => import("./PackageVersion-VpPtLYhK.js")), x = j(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_word_cloud: M } = 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), w = m(null), B = m(null), U = m(null), me = m(0), he = m(0), ue = m(!1), Y = m(null),
|
|
162
|
+
}), E = m(Ge()), X = m(0), w = 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: ie, FINAL_DATASET: $, manualLoading: R } = Dt({
|
|
163
163
|
...mt(r),
|
|
164
164
|
FINAL_CONFIG: e,
|
|
165
165
|
prepareConfig: H,
|
|
@@ -241,7 +241,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
241
241
|
}));
|
|
242
242
|
}
|
|
243
243
|
oe(() => r.dataset, () => {
|
|
244
|
-
O.value = I(), xe(),
|
|
244
|
+
O.value = I(), xe(), Q();
|
|
245
245
|
});
|
|
246
246
|
const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState: V } = Rt({ config: e.value }), { svgRef: G } = Vt({ config: e.value.style.chart.title });
|
|
247
247
|
function H() {
|
|
@@ -258,7 +258,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
258
258
|
} : t;
|
|
259
259
|
}
|
|
260
260
|
const Z = m({ x: 0, y: 0 });
|
|
261
|
-
function
|
|
261
|
+
function Q() {
|
|
262
262
|
const t = {
|
|
263
263
|
x: 0,
|
|
264
264
|
y: 0,
|
|
@@ -274,7 +274,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
274
274
|
xe();
|
|
275
275
|
}, 10), L = m(!1);
|
|
276
276
|
oe(() => L.value, (t) => {
|
|
277
|
-
t === !1 && (D(),
|
|
277
|
+
t === !1 && (D(), Q());
|
|
278
278
|
}), oe(() => r.config, (t) => {
|
|
279
279
|
e.value = H(), A.value = !e.value.userOptions.showOnChartHover, Oe(), me.value += 1, he.value += 1, T.value.showTable = e.value.table.show, T.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
280
280
|
}, { deep: !0 });
|
|
@@ -296,9 +296,9 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
296
296
|
});
|
|
297
297
|
}), f = Ee(null), ee = Ee(null);
|
|
298
298
|
ht(Oe);
|
|
299
|
-
const Pe =
|
|
299
|
+
const Pe = q(() => !!e.value.debug);
|
|
300
300
|
function Oe() {
|
|
301
|
-
|
|
301
|
+
je(r.dataset) ? qe({
|
|
302
302
|
componentName: "VueUiWordCloud",
|
|
303
303
|
type: "dataset",
|
|
304
304
|
debug: Pe.value
|
|
@@ -307,7 +307,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
307
307
|
datasetObject: t,
|
|
308
308
|
requiredAttributes: ["name", "value"]
|
|
309
309
|
}).forEach((a) => {
|
|
310
|
-
y.value = !1,
|
|
310
|
+
y.value = !1, qe({
|
|
311
311
|
componentName: "VueUiWordCloud",
|
|
312
312
|
type: "datasetSerieAttribute",
|
|
313
313
|
property: a,
|
|
@@ -315,7 +315,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
315
315
|
debug: Pe.value
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
|
-
}),
|
|
318
|
+
}), je(r.dataset) || (R.value = e.value.loading), e.value.responsive && (f.value && (ee.value && f.value.unobserve(ee.value), f.value.disconnect()), f.value = new ResizeObserver(P), ee.value = w.value.parentNode, f.value.observe(ee.value)), Q();
|
|
319
319
|
}
|
|
320
320
|
pt(() => {
|
|
321
321
|
f.value && (ee.value && f.value.unobserve(ee.value), f.value.disconnect());
|
|
@@ -334,7 +334,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
334
334
|
showTooltip: e.value.style.chart.tooltip.show
|
|
335
335
|
};
|
|
336
336
|
}, { immediate: !0 });
|
|
337
|
-
function
|
|
337
|
+
function Ke(t, n, a = "Arial") {
|
|
338
338
|
const g = document.createElement("canvas").getContext("2d");
|
|
339
339
|
return g.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
|
|
340
340
|
width: g.measureText(t).width + e.value.style.chart.words.proximity,
|
|
@@ -345,26 +345,26 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
345
345
|
oe(() => r.dataset, xe, { immediate: !0 });
|
|
346
346
|
function xe() {
|
|
347
347
|
const t = [...O.value].map((g) => g.value), n = Math.max(...t), a = Math.min(...t), c = [...O.value].map((g, N) => {
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
const We =
|
|
348
|
+
let J = (g.value - a) / (n - a) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
|
|
349
|
+
J = isNaN(J) ? u.value.minFontSize : J;
|
|
350
|
+
const We = Ke(g.name, J);
|
|
351
351
|
return {
|
|
352
352
|
...g,
|
|
353
353
|
id: Ge(),
|
|
354
|
-
fontSize:
|
|
354
|
+
fontSize: J,
|
|
355
355
|
width: We.width,
|
|
356
356
|
height: We.height,
|
|
357
357
|
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
|
|
358
358
|
};
|
|
359
359
|
});
|
|
360
|
-
re.value =
|
|
360
|
+
re.value = jt({
|
|
361
361
|
words: c,
|
|
362
362
|
svg: u.value,
|
|
363
363
|
proximity: e.value.style.chart.words.proximity,
|
|
364
364
|
strictPixelPadding: e.value.strictPixelPadding
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
const pe =
|
|
367
|
+
const pe = q(() => {
|
|
368
368
|
const t = re.value.map((a) => ({
|
|
369
369
|
name: a.name,
|
|
370
370
|
color: a.color
|
|
@@ -379,18 +379,18 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
379
379
|
t ? t(c) : At({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
const fe =
|
|
382
|
+
const fe = q(() => {
|
|
383
383
|
const t = [
|
|
384
384
|
e.value.table.columnNames.series,
|
|
385
385
|
e.value.table.columnNames.value
|
|
386
386
|
], n = pe.value.head.map((g, N) => {
|
|
387
|
-
const
|
|
387
|
+
const J = Mt({ p: e.value.table.td.prefix, v: pe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
388
388
|
return [
|
|
389
389
|
{
|
|
390
390
|
color: g.color,
|
|
391
391
|
name: g.name
|
|
392
392
|
},
|
|
393
|
-
|
|
393
|
+
J
|
|
394
394
|
];
|
|
395
395
|
}), a = {
|
|
396
396
|
th: {
|
|
@@ -431,7 +431,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
431
431
|
function Te() {
|
|
432
432
|
ce.value = !ce.value;
|
|
433
433
|
}
|
|
434
|
-
const tt =
|
|
434
|
+
const tt = q(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: at, setInitialViewBox: ot } = Ut(G, {
|
|
435
435
|
x: 0,
|
|
436
436
|
y: 0,
|
|
437
437
|
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
@@ -449,7 +449,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
449
449
|
aspectRatio: c
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
const ve =
|
|
452
|
+
const ve = q(() => {
|
|
453
453
|
const t = e.value.table.useDialog && !e.value.table.show, n = T.value.showTable;
|
|
454
454
|
return {
|
|
455
455
|
component: t ? x : d,
|
|
@@ -483,9 +483,9 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
483
483
|
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
484
484
|
});
|
|
485
485
|
function Re() {
|
|
486
|
-
T.value.showTable = !1,
|
|
486
|
+
T.value.showTable = !1, K.value && K.value.setTableIconState(!1);
|
|
487
487
|
}
|
|
488
|
-
const nt =
|
|
488
|
+
const nt = q(() => e.value.style.chart.backgroundColor), st = q(() => e.value.style.chart.title), { exportSvg: ut, getSvg: it } = Bt({
|
|
489
489
|
svg: G,
|
|
490
490
|
title: st,
|
|
491
491
|
backgroundColor: nt
|
|
@@ -574,7 +574,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
574
574
|
], 512)) : W("", !0),
|
|
575
575
|
e.value.userOptions.show && y.value && (i(V) || i(A)) ? (k(), le(i(o), {
|
|
576
576
|
ref_key: "userOptionsRef",
|
|
577
|
-
ref:
|
|
577
|
+
ref: K,
|
|
578
578
|
key: `user_option_${X.value}`,
|
|
579
579
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
580
580
|
color: e.value.style.chart.color,
|
|
@@ -696,7 +696,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
696
696
|
onMouseover: (g) => vt(a, c),
|
|
697
697
|
onMouseleave: (g) => rt(a, c),
|
|
698
698
|
onClick: (g) => ct(a, c)
|
|
699
|
-
}, null, 40,
|
|
699
|
+
}, null, 40, Jt)) : W("", !0),
|
|
700
700
|
(k(), _("text", {
|
|
701
701
|
fill: a.color,
|
|
702
702
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
@@ -709,9 +709,9 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
709
709
|
"text-anchor": "middle",
|
|
710
710
|
"dominant-baseline": "central",
|
|
711
711
|
style: ye(`animation-delay:${c * e.value.animationDelayMs}ms !important; pointer-events:none;`)
|
|
712
|
-
}, Me(a.name), 15,
|
|
712
|
+
}, Me(a.name), 15, Kt))
|
|
713
713
|
]))), 256))
|
|
714
|
-
], 8,
|
|
714
|
+
], 8, Qt),
|
|
715
715
|
F(t.$slots, "svg", {
|
|
716
716
|
svg: { height: u.value.height, width: u.value.width }
|
|
717
717
|
}, void 0, !0)
|
|
@@ -829,7 +829,7 @@ const jt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Jt = ["t
|
|
|
829
829
|
} : void 0
|
|
830
830
|
]), 1040)) : W("", !0),
|
|
831
831
|
i(ie) ? (k(), le(Nt, { key: 7 })) : W("", !0)
|
|
832
|
-
], 44,
|
|
832
|
+
], 44, qt));
|
|
833
833
|
}
|
|
834
834
|
}, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-4c8620b6"]]);
|
|
835
835
|
export {
|