vue-data-ui 3.9.20 → 3.9.21
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/{BaseDraggableDialog-CpQixv03.js → BaseDraggableDialog-LQz9Nmbj.js} +1 -1
- package/dist/{BaseIcon-scv-j8q0.js → BaseIcon-rQpZbUMg.js} +9 -7
- package/dist/{BaseZoomControls-BELC4-R7.js → BaseZoomControls-8e6l8HWf.js} +1 -1
- package/dist/{ColorPicker-DPs60FoM.js → ColorPicker-C-M_3O5E.js} +1 -1
- package/dist/{DataTable-BbpwWDWr.js → DataTable-CRLvcC19.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DhubUk9N.js → NonSvgPenAndPaper-DHu-zNDR.js} +2 -2
- package/dist/{PackageVersion-otGG6wdE.js → PackageVersion-BiGAIrqC.js} +1 -1
- package/dist/{PenAndPaper-yHiUSsGn.js → PenAndPaper-D6dHXPfu.js} +2 -2
- package/dist/{Slicer-0me1Hbei.js → Slicer-iEpMHxAy.js} +1 -1
- package/dist/{SlicerPreview-DfRAoMBC.js → SlicerPreview-Dfih1r3H.js} +1 -1
- package/dist/{Title-D0nD-PMs.js → Title-B7pkWzTi.js} +1 -1
- package/dist/Tooltip-DpfUZbt7.js +272 -0
- package/dist/{UserOptions-VkV1O3QA.js → UserOptions-BlWCqtbi.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-dag.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-geo.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-stackline.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 +6 -0
- package/dist/{useNestedProp-DaR1dBmj.js → useNestedProp-gqRzbKJy.js} +4 -1
- package/dist/{vue-data-ui-D6xb7oqS.js → vue-data-ui-C0zyzSI7.js} +67 -67
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-CdSkfqZt.js → vue-ui-3d-bar-DlUrsPdB.js} +3 -3
- package/dist/{vue-ui-accordion-CxJ304GQ.js → vue-ui-accordion-Cy3d_0_S.js} +2 -2
- package/dist/{vue-ui-age-pyramid-DhUVXjJp.js → vue-ui-age-pyramid-CW2CmApD.js} +6 -5
- package/dist/{vue-ui-annotator-9AHYG-5K.js → vue-ui-annotator-DgDMYDKr.js} +4 -4
- package/dist/{vue-ui-bullet-zLgyPy5y.js → vue-ui-bullet-Dfz8VKqe.js} +3 -3
- package/dist/{vue-ui-candlestick-DhppaRoa.js → vue-ui-candlestick-xyQGCkr8.js} +89 -88
- package/dist/{vue-ui-carousel-table-p7HJ44_u.js → vue-ui-carousel-table-eqx_-juF.js} +2 -2
- package/dist/{vue-ui-chestnut-BkTOuMpi.js → vue-ui-chestnut-DQM73VJP.js} +2 -2
- package/dist/{vue-ui-chord-D0HxM5al.js → vue-ui-chord-ij0fy_Vk.js} +3 -3
- package/dist/{vue-ui-circle-pack-C3zu1QQQ.js → vue-ui-circle-pack-iL6dfKsl.js} +37 -36
- package/dist/{vue-ui-cursor-4RgADbSD.js → vue-ui-cursor-BwtAgyzA.js} +2 -2
- package/dist/{vue-ui-dag-JHM6VTGz.js → vue-ui-dag-DyVpGUMm.js} +4 -4
- package/dist/{vue-ui-dashboard-C4iMVd1r.js → vue-ui-dashboard-Dp8tt7UQ.js} +66 -66
- package/dist/{vue-ui-digits-DXXegZ9T.js → vue-ui-digits-bUDar5q1.js} +1 -1
- package/dist/{vue-ui-donut--yvJp5mD.js → vue-ui-donut-XhYkW3YB.js} +6 -5
- package/dist/{vue-ui-donut-evolution-DRJq0WeE.js → vue-ui-donut-evolution-BtSDnqw5.js} +4 -4
- package/dist/{vue-ui-dumbbell-85KxnMf4.js → vue-ui-dumbbell-Dk9GEs9q.js} +3 -3
- package/dist/{vue-ui-flow-C4z51d34.js → vue-ui-flow-Dmadpe5T.js} +6 -5
- package/dist/{vue-ui-funnel-DJLuCzWl.js → vue-ui-funnel-BGZmzIxy.js} +3 -3
- package/dist/{vue-ui-galaxy-Dr2Hfgq0.js → vue-ui-galaxy-btCfKlLt.js} +36 -35
- package/dist/{vue-ui-gauge-CXnnwCW0.js → vue-ui-gauge-CIq10clu.js} +3 -3
- package/dist/{vue-ui-geo-DQN5Mvby.js → vue-ui-geo-C72smrB2.js} +7 -6
- package/dist/{vue-ui-gizmo-C9MvlERz.js → vue-ui-gizmo-BCy3dErL.js} +2 -2
- package/dist/{vue-ui-heatmap--dTQmYau.js → vue-ui-heatmap-DX1asUT7.js} +46 -45
- package/dist/{vue-ui-history-plot-Ds0qPWOa.js → vue-ui-history-plot-DFtOy7CE.js} +40 -39
- package/dist/{vue-ui-horizontal-bar-n9qj7Do-.js → vue-ui-horizontal-bar-BpN0u8hd.js} +80 -79
- package/dist/{vue-ui-kpi-Ct5HZzxS.js → vue-ui-kpi-CnmyYRvK.js} +2 -2
- package/dist/{vue-ui-mini-loader-DdzurIs7.js → vue-ui-mini-loader-DVEVYQd5.js} +1 -1
- package/dist/{vue-ui-molecule-BHuYcTSo.js → vue-ui-molecule-CETOdJ0z.js} +30 -29
- package/dist/{vue-ui-mood-radar-BqboiUVy.js → vue-ui-mood-radar-BOq7hUtX.js} +3 -3
- package/dist/{vue-ui-nested-donuts-DU81R1fp.js → vue-ui-nested-donuts-C6Popcf-.js} +6 -5
- package/dist/{vue-ui-onion-Bhi3UDKs.js → vue-ui-onion-BHIySmN4.js} +6 -5
- package/dist/{vue-ui-parallel-coordinate-plot-BMpszqie.js → vue-ui-parallel-coordinate-plot-BAAEnWGD.js} +6 -5
- package/dist/{vue-ui-quadrant-DmJ0ZHxm.js → vue-ui-quadrant-JvGjWc7P.js} +6 -5
- package/dist/{vue-ui-quick-chart-CNnwBZlf.js → vue-ui-quick-chart-Nffw66GY.js} +6 -5
- package/dist/{vue-ui-radar-BqXvb5kP.js → vue-ui-radar-CdjuAdeB.js} +6 -5
- package/dist/{vue-ui-rating-CDkXzEGU.js → vue-ui-rating-CTN4-Xx3.js} +1 -1
- package/dist/{vue-ui-relation-circle-B7IdAp50.js → vue-ui-relation-circle-Cb3uKDYx.js} +3 -3
- package/dist/{vue-ui-ridgeline-D_FXGRQg.js → vue-ui-ridgeline-Dgr0nyh1.js} +3 -3
- package/dist/{vue-ui-rings-CYtVVZTu.js → vue-ui-rings-Ctkw20nS.js} +6 -5
- package/dist/{vue-ui-scatter-iL3Q0HyC.js → vue-ui-scatter-BpeJpMqR.js} +6 -5
- package/dist/{vue-ui-skeleton-BdS1WLbV.js → vue-ui-skeleton-C8-nUbeq.js} +2 -2
- package/dist/{vue-ui-smiley-BckMTu5I.js → vue-ui-smiley-CxVaJpm8.js} +1 -1
- package/dist/{vue-ui-spark-trend-94n11vak.js → vue-ui-spark-trend-BRayrIQ5.js} +2 -2
- package/dist/{vue-ui-sparkbar-BQC5Rsku.js → vue-ui-sparkbar-D5UO6Yae.js} +2 -2
- package/dist/{vue-ui-sparkgauge-C56yf_Xo.js → vue-ui-sparkgauge-DMvYS_KK.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cgd-A6Lp.js → vue-ui-sparkhistogram-CNwDggdT.js} +2 -2
- package/dist/{vue-ui-sparkline-CqT53it6.js → vue-ui-sparkline-Dh6mAGol.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-r5qlvBzR.js → vue-ui-sparkstackbar-CFhUgaiz.js} +24 -23
- package/dist/{vue-ui-stackbar-QT1uPGP7.js → vue-ui-stackbar-g5Sq_ZTb.js} +7 -6
- package/dist/{vue-ui-stackline-IdqYR-X_.js → vue-ui-stackline-CKwIVvUs.js} +7 -6
- package/dist/{vue-ui-strip-plot-C2fAeJPf.js → vue-ui-strip-plot-CvCBxxNn.js} +27 -26
- package/dist/{vue-ui-table-BU0mQB7R.js → vue-ui-table-DswHIBiJ.js} +4 -4
- package/dist/{vue-ui-table-heatmap-4zN0o8gI.js → vue-ui-table-heatmap-Crgh4Fiz.js} +2 -2
- package/dist/{vue-ui-table-sparkline-06EHBvyC.js → vue-ui-table-sparkline-BJGYRzNL.js} +2 -2
- package/dist/{vue-ui-thermometer-D1KW1-SQ.js → vue-ui-thermometer-46TB3agk.js} +3 -3
- package/dist/{vue-ui-timer-BX_0XnqP.js → vue-ui-timer-CgEPlDmY.js} +4 -4
- package/dist/{vue-ui-tiremarks-BIPMHJWz.js → vue-ui-tiremarks-DZHVry9u.js} +3 -3
- package/dist/{vue-ui-treemap-UPte4OFA.js → vue-ui-treemap-3_8JQzd0.js} +7 -6
- package/dist/{vue-ui-waffle-BPstKbYC.js → vue-ui-waffle-Ck_wiBzc.js} +90 -89
- package/dist/{vue-ui-wheel-yRM3xO_9.js → vue-ui-wheel-4ZZLizdv.js} +3 -3
- package/dist/{vue-ui-word-cloud-rkI5ourD.js → vue-ui-word-cloud-BPA2fseE.js} +137 -136
- package/dist/{vue-ui-world-CaLGqY31.js → vue-ui-world-K4hMlU7V.js} +27 -26
- package/dist/{vue-ui-xy-CqNdMCDR.js → vue-ui-xy-cHQ3KQCE.js} +8 -7
- package/dist/{vue-ui-xy-canvas-D5eSHjjr.js → vue-ui-xy-canvas-Qeg6DtP0.js} +52 -51
- package/package.json +1 -1
- package/dist/Tooltip-D0pGX8qz.js +0 -205
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useCssVars as _t, defineAsyncComponent as
|
|
1
|
+
import { useCssVars as _t, defineAsyncComponent as ne, computed as le, ref as M, toRefs as Nt, watch as we, shallowRef as tt, onMounted as Zt, onBeforeUnmount as Vt, createElementBlock as J, openBlock as W, unref as F, normalizeStyle as Xe, createBlock as se, createCommentVNode as N, createVNode as Re, withCtx as E, renderSlot as z, normalizeProps as Z, guardReactiveProps as V, createSlots as ot, normalizeClass as at, createElementVNode as $e, Fragment as Ut, renderList as Lt, toDisplayString as De, resolveDynamicComponent as jt, mergeProps as Ht, createTextVNode as nt, nextTick as lt } from "vue";
|
|
2
2
|
import { d as st, u as qt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import { c as Gt, t as Jt, I as Kt, U as Qt, i as eo, j as Te, o as rt, g as it, l as to, d as oo, X as
|
|
4
|
-
import { u as ro, a as Ye } from "./useNestedProp-
|
|
3
|
+
import { c as Gt, t as Jt, I as Kt, U as Qt, i as eo, j as Te, o as rt, g as it, l as to, d as oo, X as ao, v as no, r as lo, y as so } from "./lib-2iaAPQ_c.js";
|
|
4
|
+
import { u as ro, a as Ye } from "./useNestedProp-gqRzbKJy.js";
|
|
5
5
|
import { u as io, B as uo } from "./BaseScanner-BMpwQAfz.js";
|
|
6
6
|
import { u as co } from "./usePrinter-ChVMpU2f.js";
|
|
7
7
|
import { u as mo } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -9,9 +9,9 @@ import { u as fo } from "./useThemeCheck-DGJ31Vi5.js";
|
|
|
9
9
|
import { u as vo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as ho } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import po from "./img-CqYIrJ8I.js";
|
|
12
|
-
import go from "./Title-
|
|
12
|
+
import go from "./Title-B7pkWzTi.js";
|
|
13
13
|
import { u as bo } from "./usePanZoom-CDF7rb3o.js";
|
|
14
|
-
import { B as ut } from "./BaseZoomControls-
|
|
14
|
+
import { B as ut } from "./BaseZoomControls-8e6l8HWf.js";
|
|
15
15
|
import { _ as yo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function Co({
|
|
17
17
|
word: o,
|
|
@@ -21,10 +21,10 @@ function Co({
|
|
|
21
21
|
ctx: i,
|
|
22
22
|
svg: d
|
|
23
23
|
}) {
|
|
24
|
-
const
|
|
25
|
-
i.font =
|
|
24
|
+
const a = `${d.style && d.style.bold ? "bold " : ""}${l}px Arial`;
|
|
25
|
+
i.font = a;
|
|
26
26
|
const p = i.measureText(o.name), f = Math.ceil(p.width) + 2 + (m ? m * 2 : 0), g = Math.ceil(l) + 2 + (m ? m * 2 : 0);
|
|
27
|
-
c.width = f, c.height = g, i.font =
|
|
27
|
+
c.width = f, c.height = g, i.font = a, i.textAlign = "center", i.textBaseline = "middle", i.fillStyle = "black", i.fillText(o.name, f / 2, g / 2);
|
|
28
28
|
const b = i.getImageData(0, 0, f, g).data, v = [], u = [];
|
|
29
29
|
let s = f, S = g, k = 0, x = 0, h = !1;
|
|
30
30
|
for (let w = 0; w < g; w += 1) {
|
|
@@ -52,8 +52,8 @@ function ko(o) {
|
|
|
52
52
|
if (!o.length) return l;
|
|
53
53
|
let m = o[0][1], c = o[0][0], i = c;
|
|
54
54
|
for (let d = 1; d < o.length; d += 1) {
|
|
55
|
-
const r = o[d][0],
|
|
56
|
-
|
|
55
|
+
const r = o[d][0], a = o[d][1];
|
|
56
|
+
a !== m ? (l.push([m, c, i]), m = a, c = r, i = r) : (r === i + 1 || (l.push([m, c, i]), c = r), i = r);
|
|
57
57
|
}
|
|
58
58
|
return l.push([m, c, i]), l;
|
|
59
59
|
}
|
|
@@ -75,8 +75,8 @@ function wo({
|
|
|
75
75
|
wy: d,
|
|
76
76
|
runs: r
|
|
77
77
|
}) {
|
|
78
|
-
for (let
|
|
79
|
-
const p = r[
|
|
78
|
+
for (let a = 0; a < r.length; a += 1) {
|
|
79
|
+
const p = r[a][0], f = r[a][1], g = r[a][2], y = d + p;
|
|
80
80
|
if (y < 0 || y >= c) return !1;
|
|
81
81
|
const b = i + f, v = i + g;
|
|
82
82
|
if (b < 0 || v >= m) return !1;
|
|
@@ -108,8 +108,8 @@ function xo({
|
|
|
108
108
|
wy: d,
|
|
109
109
|
runs: r
|
|
110
110
|
}) {
|
|
111
|
-
for (let
|
|
112
|
-
const p = r[
|
|
111
|
+
for (let a = 0; a < r.length; a += 1) {
|
|
112
|
+
const p = r[a][0], f = r[a][1], g = r[a][2], y = d + p;
|
|
113
113
|
if (y < 0 || y >= c) continue;
|
|
114
114
|
const b = i + f, v = i + g;
|
|
115
115
|
if (v < 0 || b >= m) continue;
|
|
@@ -133,12 +133,12 @@ function xo({
|
|
|
133
133
|
}
|
|
134
134
|
function Fo({ wordMask: o, w: l, h: m, dilation: c }) {
|
|
135
135
|
const i = new Uint8Array(l * m), d = [];
|
|
136
|
-
for (let
|
|
137
|
-
const p = o[
|
|
136
|
+
for (let a = 0; a < o.length; a += 1) {
|
|
137
|
+
const p = o[a][0], g = o[a][1] * l + p;
|
|
138
138
|
i[g] || (i[g] = 1, d.push(g));
|
|
139
139
|
}
|
|
140
|
-
for (let
|
|
141
|
-
const p = d[
|
|
140
|
+
for (let a = 0; a < d.length; a += 1) {
|
|
141
|
+
const p = d[a], f = p / l | 0, g = p - f * l;
|
|
142
142
|
for (let y = -c; y <= c; y += 1) {
|
|
143
143
|
const b = f + y;
|
|
144
144
|
if (b < 0 || b >= m) continue;
|
|
@@ -151,9 +151,9 @@ function Fo({ wordMask: o, w: l, h: m, dilation: c }) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
const r = [];
|
|
154
|
-
for (let
|
|
155
|
-
if (i[
|
|
156
|
-
const p =
|
|
154
|
+
for (let a = 0; a < i.length; a += 1)
|
|
155
|
+
if (i[a]) {
|
|
156
|
+
const p = a / l | 0, f = a - p * l;
|
|
157
157
|
r.push([f, p]);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
@@ -165,15 +165,15 @@ function Ao({
|
|
|
165
165
|
dilation: c
|
|
166
166
|
}) {
|
|
167
167
|
const i = new Uint8Array(l * m), d = [];
|
|
168
|
-
for (let
|
|
169
|
-
const p = o[
|
|
168
|
+
for (let a = 0; a < o.length; a += 1) {
|
|
169
|
+
const p = o[a], f = p[0], g = p[1], y = p[2], b = f * l;
|
|
170
170
|
for (let v = g; v <= y; v += 1) {
|
|
171
171
|
const u = b + v;
|
|
172
172
|
i[u] || (i[u] = 1, d.push(u));
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
for (let
|
|
176
|
-
const p = d[
|
|
175
|
+
for (let a = 0; a < d.length; a += 1) {
|
|
176
|
+
const p = d[a], f = p / l | 0, g = p - f * l;
|
|
177
177
|
for (let y = -c; y <= c; y += 1) {
|
|
178
178
|
const b = f + y;
|
|
179
179
|
if (b < 0 || b >= m) continue;
|
|
@@ -186,25 +186,25 @@ function Ao({
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
const r = [];
|
|
189
|
-
for (let
|
|
190
|
-
const p =
|
|
189
|
+
for (let a = 0; a < m; a += 1) {
|
|
190
|
+
const p = a * l;
|
|
191
191
|
let f = -1, g = !1;
|
|
192
192
|
for (let y = 0; y < l; y += 1)
|
|
193
|
-
i[p + y] ? g || (g = !0, f = y) : g && (r.push([
|
|
194
|
-
g && r.push([
|
|
193
|
+
i[p + y] ? g || (g = !0, f = y) : g && (r.push([a, f, y - 1]), g = !1, f = -1);
|
|
194
|
+
g && r.push([a, f, l - 1]);
|
|
195
195
|
}
|
|
196
196
|
return r;
|
|
197
197
|
}
|
|
198
198
|
function So(o, l) {
|
|
199
|
-
const m = o.runs, c = o.w, i = o.h, d = Math.max(1, Math.round(c * l)), r = Math.max(1, Math.round(i * l)),
|
|
199
|
+
const m = o.runs, c = o.w, i = o.h, d = Math.max(1, Math.round(c * l)), r = Math.max(1, Math.round(i * l)), a = new Array(r);
|
|
200
200
|
let p = d, f = r, g = 0, y = 0, b = !1;
|
|
201
201
|
for (let u = 0; u < m.length; u += 1) {
|
|
202
202
|
const s = m[u], S = s[0], k = s[1], x = s[2], h = Math.round(S * l);
|
|
203
203
|
if (h < 0 || h >= r) continue;
|
|
204
204
|
const w = Math.round(k * l), _ = Math.round((x + 1) * l) - 1;
|
|
205
205
|
if (_ < w) continue;
|
|
206
|
-
let B =
|
|
207
|
-
B || (B = [],
|
|
206
|
+
let B = a[h];
|
|
207
|
+
B || (B = [], a[h] = B), B.push([w, _]), b = !0, w < p && (p = w), _ > g && (g = _), h < f && (f = h), h > y && (y = h);
|
|
208
208
|
}
|
|
209
209
|
if (!b)
|
|
210
210
|
return {
|
|
@@ -218,7 +218,7 @@ function So(o, l) {
|
|
|
218
218
|
};
|
|
219
219
|
const v = [];
|
|
220
220
|
for (let u = 0; u < r; u += 1) {
|
|
221
|
-
const s =
|
|
221
|
+
const s = a[u];
|
|
222
222
|
if (!s || s.length === 0) continue;
|
|
223
223
|
s.sort((x, h) => x[0] - h[0]);
|
|
224
224
|
let S = s[0][0], k = s[0][1];
|
|
@@ -251,8 +251,8 @@ function To({
|
|
|
251
251
|
ctx: i,
|
|
252
252
|
svg: d
|
|
253
253
|
}) {
|
|
254
|
-
const r = $o({ word: o, fontSize: l, pad: m, svg: d }),
|
|
255
|
-
if (
|
|
254
|
+
const r = $o({ word: o, fontSize: l, pad: m, svg: d }), a = ct.get(r);
|
|
255
|
+
if (a) return { key: r, bitmap: a };
|
|
256
256
|
const p = Co({ word: o, fontSize: l, pad: m, canvas: c, ctx: i, svg: d });
|
|
257
257
|
return ct.set(r, p), { key: r, bitmap: p };
|
|
258
258
|
}
|
|
@@ -265,7 +265,7 @@ function Mo({
|
|
|
265
265
|
}) {
|
|
266
266
|
const d = `${o}::d${i}`, r = dt.get(d);
|
|
267
267
|
if (r) return r;
|
|
268
|
-
const
|
|
268
|
+
const a = Fo({ wordMask: l, w: m, h: c, dilation: i }), p = ko(a), f = { wordMask: a, runs: p };
|
|
269
269
|
return dt.set(d, f), f;
|
|
270
270
|
}
|
|
271
271
|
const Io = 6, Oo = 2, pt = Math.PI / 180, gt = [], bt = [];
|
|
@@ -286,15 +286,15 @@ function Eo(o, l, m) {
|
|
|
286
286
|
S < c && (c = S), k > i && (i = k), x < d && (d = x), h > r && (r = h);
|
|
287
287
|
}
|
|
288
288
|
if (!isFinite(c) || !isFinite(i) || !isFinite(d) || !isFinite(r)) return;
|
|
289
|
-
const
|
|
289
|
+
const a = Math.max(
|
|
290
290
|
Math.abs(c),
|
|
291
291
|
Math.abs(i)
|
|
292
292
|
), p = Math.max(
|
|
293
293
|
Math.abs(d),
|
|
294
294
|
Math.abs(r)
|
|
295
295
|
);
|
|
296
|
-
if (
|
|
297
|
-
const f = 0.9, g = l * 0.5 * f /
|
|
296
|
+
if (a === 0 || p === 0) return;
|
|
297
|
+
const f = 0.9, g = l * 0.5 * f / a, y = m * 0.5 * f / p;
|
|
298
298
|
let b = Math.min(g, y);
|
|
299
299
|
if (b <= 1) return;
|
|
300
300
|
const v = 4;
|
|
@@ -330,11 +330,11 @@ function Xo({
|
|
|
330
330
|
bitmapKey: i
|
|
331
331
|
}) {
|
|
332
332
|
let d = o.runs;
|
|
333
|
-
const r = o.w,
|
|
333
|
+
const r = o.w, a = o.h, p = o.minX, f = o.minY, g = o.maxX, y = o.maxY;
|
|
334
334
|
return !l || !d.length ? {
|
|
335
335
|
runs: d,
|
|
336
336
|
bitmapWidth: r,
|
|
337
|
-
bitmapHeight:
|
|
337
|
+
bitmapHeight: a,
|
|
338
338
|
bitmapMinimumX: p,
|
|
339
339
|
bitmapMinimumY: f,
|
|
340
340
|
bitmapMaximumX: g,
|
|
@@ -348,7 +348,7 @@ function Xo({
|
|
|
348
348
|
dilation: 2
|
|
349
349
|
}).runs,
|
|
350
350
|
bitmapWidth: r,
|
|
351
|
-
bitmapHeight:
|
|
351
|
+
bitmapHeight: a,
|
|
352
352
|
bitmapMinimumX: p,
|
|
353
353
|
bitmapMinimumY: f,
|
|
354
354
|
bitmapMaximumX: g,
|
|
@@ -357,11 +357,11 @@ function Xo({
|
|
|
357
357
|
runs: Ao({
|
|
358
358
|
runs: d,
|
|
359
359
|
w: r,
|
|
360
|
-
h:
|
|
360
|
+
h: a,
|
|
361
361
|
dilation: 2
|
|
362
362
|
}),
|
|
363
363
|
bitmapWidth: r,
|
|
364
|
-
bitmapHeight:
|
|
364
|
+
bitmapHeight: a,
|
|
365
365
|
bitmapMinimumX: p,
|
|
366
366
|
bitmapMinimumY: f,
|
|
367
367
|
bitmapMaximumX: g,
|
|
@@ -376,7 +376,7 @@ async function mt({
|
|
|
376
376
|
maskRowStride: i,
|
|
377
377
|
maskWidth: d,
|
|
378
378
|
maskHeight: r,
|
|
379
|
-
centerX:
|
|
379
|
+
centerX: a,
|
|
380
380
|
centerY: p,
|
|
381
381
|
maximumRadius: f,
|
|
382
382
|
scaleStep: g,
|
|
@@ -412,7 +412,7 @@ async function mt({
|
|
|
412
412
|
for (let R = 0; R < s.length; R += 1) {
|
|
413
413
|
oe += 1;
|
|
414
414
|
const L = Math.round(
|
|
415
|
-
|
|
415
|
+
a + K * s[R] - P / 2
|
|
416
416
|
), j = Math.round(
|
|
417
417
|
p + K * S[R] - U / 2
|
|
418
418
|
);
|
|
@@ -468,7 +468,7 @@ async function Ro({
|
|
|
468
468
|
maskRowStride: i,
|
|
469
469
|
maskWidth: d,
|
|
470
470
|
maskHeight: r,
|
|
471
|
-
centerX:
|
|
471
|
+
centerX: a,
|
|
472
472
|
centerY: p,
|
|
473
473
|
maximumRadius: f,
|
|
474
474
|
scaleStep: g,
|
|
@@ -488,7 +488,7 @@ async function Ro({
|
|
|
488
488
|
maskRowStride: i,
|
|
489
489
|
maskWidth: d,
|
|
490
490
|
maskHeight: r,
|
|
491
|
-
centerX:
|
|
491
|
+
centerX: a,
|
|
492
492
|
centerY: p,
|
|
493
493
|
maximumRadius: f,
|
|
494
494
|
scaleStep: g,
|
|
@@ -510,7 +510,7 @@ async function Ro({
|
|
|
510
510
|
maskRowStride: i,
|
|
511
511
|
maskWidth: d,
|
|
512
512
|
maskHeight: r,
|
|
513
|
-
centerX:
|
|
513
|
+
centerX: a,
|
|
514
514
|
centerY: p,
|
|
515
515
|
maximumRadius: f,
|
|
516
516
|
scaleStep: g,
|
|
@@ -533,8 +533,8 @@ async function Do({
|
|
|
533
533
|
onProgress: i,
|
|
534
534
|
debugTiming: d = !1
|
|
535
535
|
}) {
|
|
536
|
-
const r = zo(),
|
|
537
|
-
let f =
|
|
536
|
+
const r = zo(), a = r(), p = 12;
|
|
537
|
+
let f = a;
|
|
538
538
|
async function g() {
|
|
539
539
|
r() - f >= p && (await new Promise((Y) => setTimeout(Y, 0)), f = r());
|
|
540
540
|
}
|
|
@@ -600,7 +600,7 @@ async function Do({
|
|
|
600
600
|
if (!R.length)
|
|
601
601
|
return [];
|
|
602
602
|
Eo(R, v, u);
|
|
603
|
-
const he = r() -
|
|
603
|
+
const he = r() - a;
|
|
604
604
|
return d && typeof console < "u" && console.log && console.log(
|
|
605
605
|
"[vue-data-ui][word-cloud] positionWordsAsync:",
|
|
606
606
|
`${he.toFixed(2)} ms for ${o.length} words`
|
|
@@ -614,7 +614,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
614
614
|
hack: Ft,
|
|
615
615
|
zen: At,
|
|
616
616
|
concrete: St
|
|
617
|
-
},
|
|
617
|
+
}, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
618
618
|
__proto__: null,
|
|
619
619
|
celebration: wt,
|
|
620
620
|
celebrationNight: xt,
|
|
@@ -648,9 +648,9 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
648
648
|
},
|
|
649
649
|
setup(o, { expose: l }) {
|
|
650
650
|
_t((t) => ({
|
|
651
|
-
|
|
651
|
+
d5ca9ade: t.slicerColor
|
|
652
652
|
}));
|
|
653
|
-
const m =
|
|
653
|
+
const m = ne(() => import("./Tooltip-DpfUZbt7.js")), c = ne(() => import("./BaseIcon-rQpZbUMg.js")), i = ne(() => import("./vue-ui-accordion-Cy3d_0_S.js")), d = ne(() => import("./DataTable-CRLvcC19.js")), r = ne(() => import("./PenAndPaper-D6dHXPfu.js")), a = ne(() => import("./UserOptions-BlWCqtbi.js")), p = ne(() => import("./PackageVersion-BiGAIrqC.js")), f = ne(() => import("./BaseDraggableDialog-LQz9Nmbj.js")), { vue_ui_word_cloud: g } = ro(), { isThemeValid: y, warnInvalidTheme: b } = fo(), v = o, u = le({
|
|
654
654
|
get() {
|
|
655
655
|
return !!v.dataset && v.dataset.length;
|
|
656
656
|
},
|
|
@@ -753,12 +753,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
753
753
|
if (!C) return t;
|
|
754
754
|
if (!y.value(t))
|
|
755
755
|
return b(t), t;
|
|
756
|
-
const
|
|
756
|
+
const n = Ye({
|
|
757
757
|
userConfig: $t[C] || v.config,
|
|
758
758
|
defaultConfig: t
|
|
759
759
|
}), A = Ye({
|
|
760
760
|
userConfig: v.config,
|
|
761
|
-
defaultConfig:
|
|
761
|
+
defaultConfig: n
|
|
762
762
|
});
|
|
763
763
|
return {
|
|
764
764
|
...A,
|
|
@@ -816,11 +816,11 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
816
816
|
to({
|
|
817
817
|
datasetObject: t,
|
|
818
818
|
requiredAttributes: ["name", "value"]
|
|
819
|
-
}).forEach((
|
|
819
|
+
}).forEach((n) => {
|
|
820
820
|
u.value = !1, it({
|
|
821
821
|
componentName: "VueUiWordCloud",
|
|
822
822
|
type: "datasetSerieAttribute",
|
|
823
|
-
property:
|
|
823
|
+
property: n,
|
|
824
824
|
index: C,
|
|
825
825
|
debug: pe.value
|
|
826
826
|
});
|
|
@@ -842,17 +842,17 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
842
842
|
we(e, () => {
|
|
843
843
|
O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.chart.tooltip.show, O.value.showZoom = e.value.style.chart.zoom.show;
|
|
844
844
|
}, { immediate: !0 });
|
|
845
|
-
function Tt(t, C,
|
|
845
|
+
function Tt(t, C, n = "Arial") {
|
|
846
846
|
const $ = document.createElement("canvas").getContext("2d");
|
|
847
|
-
return $.font = `${C}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${
|
|
847
|
+
return $.font = `${C}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
|
|
848
848
|
width: $.measureText(t).width + e.value.style.chart.words.proximity,
|
|
849
849
|
height: C
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
const q = M([]), ge = /* @__PURE__ */ new Map();
|
|
853
853
|
function Ve() {
|
|
854
|
-
const t = [...R.value].map(($) => $.value), C = Math.max(...t),
|
|
855
|
-
let G = ($.value -
|
|
854
|
+
const t = [...R.value].map(($) => $.value), C = Math.max(...t), n = Math.min(...t), A = [...R.value].map(($, T) => {
|
|
855
|
+
let G = ($.value - n) / (C - n) * (I.value.maxFontSize - I.value.minFontSize) + I.value.minFontSize;
|
|
856
856
|
G = isNaN(G) ? I.value.minFontSize : G;
|
|
857
857
|
const de = Tt($.name, G);
|
|
858
858
|
return {
|
|
@@ -887,17 +887,17 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
887
887
|
}), U.value = !0, te.value = !1;
|
|
888
888
|
}
|
|
889
889
|
const Fe = le(() => {
|
|
890
|
-
const t = q.value.map((
|
|
891
|
-
name:
|
|
892
|
-
color:
|
|
893
|
-
})), C = q.value.map((
|
|
890
|
+
const t = q.value.map((n) => ({
|
|
891
|
+
name: n.name,
|
|
892
|
+
color: n.color
|
|
893
|
+
})), C = q.value.map((n) => n.value);
|
|
894
894
|
return { head: t, body: C };
|
|
895
895
|
});
|
|
896
896
|
function Oe(t = null) {
|
|
897
897
|
lt(() => {
|
|
898
898
|
const C = Fe.value.head.map(($, T) => [[
|
|
899
899
|
$.name
|
|
900
|
-
], [Fe.value.body[T]]]),
|
|
900
|
+
], [Fe.value.body[T]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(C), A = no(n);
|
|
901
901
|
t ? t(A) : lo({ csvContent: A, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
902
902
|
});
|
|
903
903
|
}
|
|
@@ -914,7 +914,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
914
914
|
},
|
|
915
915
|
G
|
|
916
916
|
];
|
|
917
|
-
}),
|
|
917
|
+
}), n = {
|
|
918
918
|
th: {
|
|
919
919
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
920
920
|
color: e.value.table.th.color,
|
|
@@ -934,11 +934,11 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
934
934
|
],
|
|
935
935
|
head: t,
|
|
936
936
|
body: C,
|
|
937
|
-
config:
|
|
937
|
+
config: n
|
|
938
938
|
};
|
|
939
|
-
}),
|
|
939
|
+
}), ae = M(!1);
|
|
940
940
|
function Ue(t) {
|
|
941
|
-
|
|
941
|
+
ae.value = t, S.value += 1;
|
|
942
942
|
}
|
|
943
943
|
function Mt() {
|
|
944
944
|
return q.value;
|
|
@@ -967,13 +967,13 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
967
967
|
}, { immediate: !0 });
|
|
968
968
|
async function zt({ scale: t = 2 } = {}) {
|
|
969
969
|
if (!k.value) return;
|
|
970
|
-
const { width: C, height:
|
|
970
|
+
const { width: C, height: n } = k.value.getBoundingClientRect(), A = C / n, { imageUri: $, base64: T } = await po({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
971
971
|
return {
|
|
972
972
|
imageUri: $,
|
|
973
973
|
base64: T,
|
|
974
974
|
title: e.value.style.chart.title.text,
|
|
975
975
|
width: C,
|
|
976
|
-
height:
|
|
976
|
+
height: n,
|
|
977
977
|
aspectRatio: A
|
|
978
978
|
};
|
|
979
979
|
}
|
|
@@ -987,7 +987,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
987
987
|
color: e.value.table.th.color,
|
|
988
988
|
headerColor: e.value.table.th.color,
|
|
989
989
|
headerBg: e.value.table.th.backgroundColor,
|
|
990
|
-
isFullscreen:
|
|
990
|
+
isFullscreen: ae.value,
|
|
991
991
|
fullscreenParent: k.value,
|
|
992
992
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
993
993
|
} : {
|
|
@@ -1020,8 +1020,8 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1020
1020
|
});
|
|
1021
1021
|
async function Ke({ isCb: t }) {
|
|
1022
1022
|
if (t) {
|
|
1023
|
-
const { blob: C, url:
|
|
1024
|
-
e.value.userOptions.callbacks.svg({ blob: C, url:
|
|
1023
|
+
const { blob: C, url: n, text: A, dataUrl: $ } = await Dt();
|
|
1024
|
+
e.value.userOptions.callbacks.svg({ blob: C, url: n, text: A, dataUrl: $ });
|
|
1025
1025
|
} else
|
|
1026
1026
|
Rt();
|
|
1027
1027
|
}
|
|
@@ -1055,10 +1055,10 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1055
1055
|
function Bt(t, C) {
|
|
1056
1056
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: C }), !O.value.showTooltip) return;
|
|
1057
1057
|
ve.value = t.id, Pe.value = { datapoint: t, config: e.value };
|
|
1058
|
-
const
|
|
1059
|
-
if (ke.value = !1, so(
|
|
1058
|
+
const n = e.value.style.chart.tooltip.customFormat;
|
|
1059
|
+
if (ke.value = !1, so(n))
|
|
1060
1060
|
try {
|
|
1061
|
-
const A =
|
|
1061
|
+
const A = n({
|
|
1062
1062
|
datapoint: t,
|
|
1063
1063
|
config: e.value
|
|
1064
1064
|
});
|
|
@@ -1094,20 +1094,20 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1094
1094
|
"annotator-action-close": E(() => [
|
|
1095
1095
|
z(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1096
1096
|
]),
|
|
1097
|
-
"annotator-action-color": E(({ color:
|
|
1098
|
-
z(t.$slots, "annotator-action-color", Z(V({ color:
|
|
1097
|
+
"annotator-action-color": E(({ color: n }) => [
|
|
1098
|
+
z(t.$slots, "annotator-action-color", Z(V({ color: n })), void 0, !0)
|
|
1099
1099
|
]),
|
|
1100
|
-
"annotator-action-draw": E(({ mode:
|
|
1101
|
-
z(t.$slots, "annotator-action-draw", Z(V({ mode:
|
|
1100
|
+
"annotator-action-draw": E(({ mode: n }) => [
|
|
1101
|
+
z(t.$slots, "annotator-action-draw", Z(V({ mode: n })), void 0, !0)
|
|
1102
1102
|
]),
|
|
1103
|
-
"annotator-action-undo": E(({ disabled:
|
|
1104
|
-
z(t.$slots, "annotator-action-undo", Z(V({ disabled:
|
|
1103
|
+
"annotator-action-undo": E(({ disabled: n }) => [
|
|
1104
|
+
z(t.$slots, "annotator-action-undo", Z(V({ disabled: n })), void 0, !0)
|
|
1105
1105
|
]),
|
|
1106
|
-
"annotator-action-redo": E(({ disabled:
|
|
1107
|
-
z(t.$slots, "annotator-action-redo", Z(V({ disabled:
|
|
1106
|
+
"annotator-action-redo": E(({ disabled: n }) => [
|
|
1107
|
+
z(t.$slots, "annotator-action-redo", Z(V({ disabled: n })), void 0, !0)
|
|
1108
1108
|
]),
|
|
1109
|
-
"annotator-action-delete": E(({ disabled:
|
|
1110
|
-
z(t.$slots, "annotator-action-delete", Z(V({ disabled:
|
|
1109
|
+
"annotator-action-delete": E(({ disabled: n }) => [
|
|
1110
|
+
z(t.$slots, "annotator-action-delete", Z(V({ disabled: n })), void 0, !0)
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 3
|
|
1113
1113
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : N("", !0),
|
|
@@ -1129,7 +1129,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1129
1129
|
}
|
|
1130
1130
|
}, null, 8, ["config"]))
|
|
1131
1131
|
], 512)) : N("", !0),
|
|
1132
|
-
e.value.userOptions.show && u.value && (F(D) || F(j)) ? (W(), se(F(
|
|
1132
|
+
e.value.userOptions.show && u.value && (F(D) || F(j)) ? (W(), se(F(a), {
|
|
1133
1133
|
ref_key: "userOptionsRef",
|
|
1134
1134
|
ref: P,
|
|
1135
1135
|
key: `user_option_${S.value}`,
|
|
@@ -1144,7 +1144,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1144
1144
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
1145
1145
|
hasTable: e.value.userOptions.buttons.table,
|
|
1146
1146
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1147
|
-
isFullscreen:
|
|
1147
|
+
isFullscreen: ae.value,
|
|
1148
1148
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
1149
1149
|
chartElement: k.value,
|
|
1150
1150
|
position: e.value.userOptions.position,
|
|
@@ -1172,8 +1172,8 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1172
1172
|
}, ot({ _: 2 }, [
|
|
1173
1173
|
t.$slots.menuIcon ? {
|
|
1174
1174
|
name: "menuIcon",
|
|
1175
|
-
fn: E(({ isOpen:
|
|
1176
|
-
z(t.$slots, "menuIcon", Z(V({ isOpen:
|
|
1175
|
+
fn: E(({ isOpen: n, color: A }) => [
|
|
1176
|
+
z(t.$slots, "menuIcon", Z(V({ isOpen: n, color: A })), void 0, !0)
|
|
1177
1177
|
]),
|
|
1178
1178
|
key: "0"
|
|
1179
1179
|
} : void 0,
|
|
@@ -1214,22 +1214,22 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1214
1214
|
} : void 0,
|
|
1215
1215
|
t.$slots.optionFullscreen ? {
|
|
1216
1216
|
name: "optionFullscreen",
|
|
1217
|
-
fn: E(({ toggleFullscreen:
|
|
1218
|
-
z(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen:
|
|
1217
|
+
fn: E(({ toggleFullscreen: n, isFullscreen: A }) => [
|
|
1218
|
+
z(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen: n, isFullscreen: A })), void 0, !0)
|
|
1219
1219
|
]),
|
|
1220
1220
|
key: "6"
|
|
1221
1221
|
} : void 0,
|
|
1222
1222
|
t.$slots.optionAnnotator ? {
|
|
1223
1223
|
name: "optionAnnotator",
|
|
1224
|
-
fn: E(({ toggleAnnotator:
|
|
1225
|
-
z(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator:
|
|
1224
|
+
fn: E(({ toggleAnnotator: n, isAnnotator: A }) => [
|
|
1225
|
+
z(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator: n, isAnnotator: A })), void 0, !0)
|
|
1226
1226
|
]),
|
|
1227
1227
|
key: "7"
|
|
1228
1228
|
} : void 0,
|
|
1229
1229
|
t.$slots.optionZoom ? {
|
|
1230
1230
|
name: "optionZoom",
|
|
1231
|
-
fn: E(({ toggleZoom:
|
|
1232
|
-
z(t.$slots, "optionZoom", Z(V({ toggleZoom:
|
|
1231
|
+
fn: E(({ toggleZoom: n, isZoomLocked: A }) => [
|
|
1232
|
+
z(t.$slots, "optionZoom", Z(V({ toggleZoom: n, isZoomLocked: A })), void 0, !0)
|
|
1233
1233
|
]),
|
|
1234
1234
|
key: "8"
|
|
1235
1235
|
} : void 0
|
|
@@ -1240,16 +1240,16 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1240
1240
|
ref: re,
|
|
1241
1241
|
config: e.value,
|
|
1242
1242
|
scale: F(Ge),
|
|
1243
|
-
isFullscreen:
|
|
1243
|
+
isFullscreen: ae.value,
|
|
1244
1244
|
onZoomIn: Qe,
|
|
1245
1245
|
onZoomOut: et,
|
|
1246
|
-
onResetZoom: C[0] || (C[0] = (
|
|
1246
|
+
onResetZoom: C[0] || (C[0] = (n) => F(ye)(!0))
|
|
1247
1247
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1248
1248
|
(W(), J("svg", {
|
|
1249
1249
|
ref_key: "svgRef",
|
|
1250
1250
|
ref: Y,
|
|
1251
|
-
class:
|
|
1252
|
-
xmlns: F(
|
|
1251
|
+
class: at({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
1252
|
+
xmlns: F(ao),
|
|
1253
1253
|
viewBox: `${F(Se).x} ${F(Se).y} ${F(Se).width} ${F(Se).height}`,
|
|
1254
1254
|
style: "overflow:hidden;background:transparent;display:block"
|
|
1255
1255
|
}, [
|
|
@@ -1268,44 +1268,44 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1268
1268
|
], 8, Bo)) : N("", !0),
|
|
1269
1269
|
$e("g", {
|
|
1270
1270
|
transform: `translate(${me.value.x}, ${me.value.y})`,
|
|
1271
|
-
class:
|
|
1271
|
+
class: at({ "wc-finalized": U.value })
|
|
1272
1272
|
}, [
|
|
1273
|
-
(W(!0), J(Ut, null, Lt(q.value, (
|
|
1274
|
-
key:
|
|
1273
|
+
(W(!0), J(Ut, null, Lt(q.value, (n, A) => (W(), J("g", {
|
|
1274
|
+
key: n.id,
|
|
1275
1275
|
class: "vue-ui-word-cloud-word",
|
|
1276
|
-
transform: `translate(${
|
|
1276
|
+
transform: `translate(${n.x}, ${n.y})`
|
|
1277
1277
|
}, [
|
|
1278
|
-
|
|
1278
|
+
n.minX !== void 0 ? (W(), J("rect", {
|
|
1279
1279
|
key: 0,
|
|
1280
|
-
x:
|
|
1281
|
-
y:
|
|
1282
|
-
width:
|
|
1283
|
-
height:
|
|
1280
|
+
x: n.minX,
|
|
1281
|
+
y: n.minY * 1.25,
|
|
1282
|
+
width: n.maxX - n.minX,
|
|
1283
|
+
height: n.maxY - n.minY,
|
|
1284
1284
|
fill: "transparent",
|
|
1285
1285
|
"pointer-events": "visiblePainted",
|
|
1286
|
-
onMouseover: ($) => Bt(
|
|
1287
|
-
onMouseleave: ($) => Yt(
|
|
1288
|
-
onClick: ($) => Wt(
|
|
1286
|
+
onMouseover: ($) => Bt(n, A),
|
|
1287
|
+
onMouseleave: ($) => Yt(n, A),
|
|
1288
|
+
onClick: ($) => Wt(n, A)
|
|
1289
1289
|
}, null, 40, Zo)) : N("", !0),
|
|
1290
1290
|
$e("text", {
|
|
1291
|
-
fill:
|
|
1291
|
+
fill: n.color,
|
|
1292
1292
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
1293
1293
|
x: 0,
|
|
1294
1294
|
y: 0,
|
|
1295
|
-
"font-size":
|
|
1296
|
-
transform: `translate(${
|
|
1295
|
+
"font-size": n.fontSize,
|
|
1296
|
+
transform: `translate(${n.width / 2}, ${n.height / 2})`,
|
|
1297
1297
|
"text-anchor": "middle",
|
|
1298
1298
|
"dominant-baseline": "central",
|
|
1299
1299
|
"paint-order": "stroke fill",
|
|
1300
|
-
stroke: !ve.value || ve.value ===
|
|
1301
|
-
"stroke-width":
|
|
1300
|
+
stroke: !ve.value || ve.value === n.id ? e.value.style.chart.words.selectedStroke : void 0,
|
|
1301
|
+
"stroke-width": n.height * 0.05,
|
|
1302
1302
|
"stroke-linecap": "round",
|
|
1303
1303
|
"stroke-linejoin": "round",
|
|
1304
1304
|
style: Xe(`
|
|
1305
1305
|
pointer-events:none;
|
|
1306
|
-
fill-opacity:${!ve.value || ve.value ===
|
|
1306
|
+
fill-opacity:${!ve.value || ve.value === n.id || !U.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
1307
1307
|
`)
|
|
1308
|
-
}, De(
|
|
1308
|
+
}, De(n.name), 13, Vo)
|
|
1309
1309
|
], 8, No))), 128))
|
|
1310
1310
|
], 10, _o),
|
|
1311
1311
|
z(t.$slots, "svg", {
|
|
@@ -1324,12 +1324,13 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1324
1324
|
ref: re,
|
|
1325
1325
|
config: e.value,
|
|
1326
1326
|
scale: F(Ge),
|
|
1327
|
-
isFullscreen:
|
|
1327
|
+
isFullscreen: ae.value,
|
|
1328
1328
|
onZoomIn: Qe,
|
|
1329
1329
|
onZoomOut: et,
|
|
1330
|
-
onResetZoom: C[1] || (C[1] = (
|
|
1330
|
+
onResetZoom: C[1] || (C[1] = (n) => F(ye)(!0))
|
|
1331
1331
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1332
1332
|
Re(F(m), {
|
|
1333
|
+
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1333
1334
|
show: O.value.showTooltip && B.value,
|
|
1334
1335
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1335
1336
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1343,7 +1344,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1343
1344
|
parent: k.value,
|
|
1344
1345
|
content: ze.value,
|
|
1345
1346
|
isCustom: ke.value,
|
|
1346
|
-
isFullscreen:
|
|
1347
|
+
isFullscreen: ae.value,
|
|
1347
1348
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1348
1349
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1349
1350
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -1356,7 +1357,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1356
1357
|
z(t.$slots, "tooltip-after", Z(V({ ...Pe.value })), void 0, !0)
|
|
1357
1358
|
]),
|
|
1358
1359
|
_: 3
|
|
1359
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1360
|
+
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1360
1361
|
t.$slots.source ? (W(), J("div", {
|
|
1361
1362
|
key: 7,
|
|
1362
1363
|
ref_key: "source",
|
|
@@ -1381,14 +1382,14 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1381
1382
|
withCloseButton: !e.value.table.useDialog,
|
|
1382
1383
|
onClose: Je
|
|
1383
1384
|
}, {
|
|
1384
|
-
th: E(({ th:
|
|
1385
|
+
th: E(({ th: n }) => [
|
|
1385
1386
|
$e("div", {
|
|
1386
|
-
innerHTML:
|
|
1387
|
+
innerHTML: n,
|
|
1387
1388
|
style: { display: "flex", "align-items": "center" }
|
|
1388
1389
|
}, null, 8, jo)
|
|
1389
1390
|
]),
|
|
1390
|
-
td: E(({ td:
|
|
1391
|
-
|
|
1391
|
+
td: E(({ td: n }) => [
|
|
1392
|
+
nt(De(n.name || n), 1)
|
|
1392
1393
|
]),
|
|
1393
1394
|
_: 1
|
|
1394
1395
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1398,7 +1399,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1398
1399
|
e.value.table.useDialog ? {
|
|
1399
1400
|
name: "title",
|
|
1400
1401
|
fn: E(() => [
|
|
1401
|
-
|
|
1402
|
+
nt(De(Ce.value.title), 1)
|
|
1402
1403
|
]),
|
|
1403
1404
|
key: "0"
|
|
1404
1405
|
} : void 0,
|
|
@@ -1408,7 +1409,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1408
1409
|
$e("button", {
|
|
1409
1410
|
tabindex: "0",
|
|
1410
1411
|
class: "vue-ui-user-options-button",
|
|
1411
|
-
onClick: C[2] || (C[2] = (
|
|
1412
|
+
onClick: C[2] || (C[2] = (n) => Oe(e.value.userOptions.callbacks.csv))
|
|
1412
1413
|
}, [
|
|
1413
1414
|
Re(F(c), {
|
|
1414
1415
|
name: "excel",
|
|
@@ -1422,12 +1423,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1422
1423
|
F(ie) ? (W(), se(uo, { key: 9 })) : N("", !0)
|
|
1423
1424
|
], 44, Yo));
|
|
1424
1425
|
}
|
|
1425
|
-
}, qo = /* @__PURE__ */ yo(Ho, [["__scopeId", "data-v-
|
|
1426
|
+
}, qo = /* @__PURE__ */ yo(Ho, [["__scopeId", "data-v-aa3e07cf"]]), ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1426
1427
|
__proto__: null,
|
|
1427
1428
|
default: qo
|
|
1428
1429
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1429
1430
|
export {
|
|
1430
|
-
|
|
1431
|
-
|
|
1431
|
+
da as a,
|
|
1432
|
+
ma as b,
|
|
1432
1433
|
qo as v
|
|
1433
1434
|
};
|