vue-data-ui 3.7.8 → 3.7.10
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 +3 -3
- package/dist/{Arrow-CWYIBV-7.js → Arrow-9T8aUCDR.js} +1 -1
- package/dist/{BaseDraggableDialog-CRF94NJQ.js → BaseDraggableDialog-BDY-Jn9S.js} +2 -2
- package/dist/{BaseIcon-CofSxalQ.js → BaseIcon-Dl4VBlHV.js} +7 -3
- package/dist/{ColorPicker-e1-OSGlQ.js → ColorPicker-BrMbLQds.js} +2 -2
- package/dist/{DataTable-CHaOCmsE.js → DataTable-Ho3Bf5oq.js} +2 -2
- package/dist/{Legend-Web3GjlR.js → Legend-DSyOOSJ1.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CjYFLlns.js → NonSvgPenAndPaper-MX5IsudW.js} +3 -3
- package/dist/{PackageVersion-CJF7IH9q.js → PackageVersion-BTPIkPFM.js} +1 -1
- package/dist/{PenAndPaper-HCZQTkqi.js → PenAndPaper-kymjF6_b.js} +3 -3
- package/dist/{RecursiveCircles-BcLb1aRS.js → RecursiveCircles-CM4bn2Vg.js} +33 -30
- package/dist/RecursiveLabels-DxmctYbA.js +55 -0
- package/dist/{RecursiveLinks-00zGWPf9.js → RecursiveLinks-Da489v6n.js} +31 -19
- package/dist/{Shape-DE6X_t31.js → Shape-rPzC8L-O.js} +1 -1
- package/dist/{Slicer-BFBBG6xv.js → Slicer-DScoMPmj.js} +2 -2
- package/dist/{SlicerPreview-D76aSViW.js → SlicerPreview-B1QUTxTZ.js} +2 -2
- package/dist/{SparkTooltip-B2rpVWE1.js → SparkTooltip-reDvtQYF.js} +1 -1
- package/dist/{Title-C6xvSWXZ.js → Title-BwhstTFA.js} +1 -1
- package/dist/{Tooltip-WD0Ros6G.js → Tooltip-De7i-i20.js} +1 -1
- package/dist/{UserOptions-B3I-s3Lw.js → UserOptions-DgscxIaa.js} +195 -152
- 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-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/{dom-to-png-CH2DfsJe.js → dom-to-png-BG68zYm5.js} +1 -1
- package/dist/{img-DUzJeMlr.js → img-BYzbY8TZ.js} +1 -1
- package/dist/{lib-C5BH09_g.js → lib-DUaaQGCv.js} +2 -2
- package/dist/{pdf-BSWQncok.js → pdf--SSvtzbF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +21 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DOALwU4q.js → useAutoSizeLabelsInsideViewbox-DBJqy2aF.js} +1 -1
- package/dist/{useNestedProp-CRoetJdp.js → useNestedProp-BjZ1Lg9E.js} +189 -172
- package/dist/usePanZoom-DZtyJi5q.js +127 -0
- package/dist/{usePrinter-DCJzEiS8.js → usePrinter-BdVu83IN.js} +2 -2
- package/dist/{vue-data-ui-BwZpMZXM.js → vue-data-ui-CP-yTXfr.js} +114 -111
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-CXX2mSqh.js → vue-ui-3d-bar-BgYBmllX.js} +6 -6
- package/dist/{vue-ui-accordion-Bq9tXa5B.js → vue-ui-accordion-BXTVRRX7.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C-Dl2XUx.js → vue-ui-age-pyramid-FTpPv1-m.js} +6 -6
- package/dist/{vue-ui-annotator-BseUMwp_.js → vue-ui-annotator-CmCG1U2b.js} +7 -7
- package/dist/{vue-ui-bullet-Ccl0kzzA.js → vue-ui-bullet-CumDaUkg.js} +7 -7
- package/dist/{vue-ui-candlestick-hISKdohk.js → vue-ui-candlestick-Dy1nA73c.js} +7 -7
- package/dist/{vue-ui-carousel-table-Dyc_G3Kp.js → vue-ui-carousel-table-DPDyjz_Y.js} +4 -4
- package/dist/{vue-ui-chestnut-9TxPQCHg.js → vue-ui-chestnut-DjoZUQ_f.js} +5 -5
- package/dist/{vue-ui-chord-C4OFq_OR.js → vue-ui-chord-BWi8pIFv.js} +8 -8
- package/dist/{vue-ui-circle-pack-DBv9FNgA.js → vue-ui-circle-pack-CwPkez44.js} +6 -6
- package/dist/{vue-ui-cursor-DlOBzFbc.js → vue-ui-cursor-4Ldkkd2T.js} +2 -2
- package/dist/{vue-ui-dashboard-CwKHLF_b.js → vue-ui-dashboard-qRVGPD_v.js} +68 -68
- package/dist/{vue-ui-digits-Ci8TqNta.js → vue-ui-digits-uszbkbEK.js} +2 -2
- package/dist/{vue-ui-donut-BXH0Mym3.js → vue-ui-donut-CPXX0FSV.js} +9 -9
- package/dist/{vue-ui-donut-evolution-spIbl1c9.js → vue-ui-donut-evolution-G8AGdNA0.js} +8 -8
- package/dist/{vue-ui-dumbbell-DQW2t9iM.js → vue-ui-dumbbell-BOJbuZkm.js} +7 -7
- package/dist/{vue-ui-flow-Bt-rW9ny.js → vue-ui-flow-CiPerJXK.js} +7 -7
- package/dist/{vue-ui-funnel-BWp3H6sk.js → vue-ui-funnel-hrWmFaMt.js} +6 -6
- package/dist/{vue-ui-galaxy-CsJSZjb4.js → vue-ui-galaxy-OZkQxG_b.js} +7 -7
- package/dist/{vue-ui-gauge-BbrLA9ay.js → vue-ui-gauge-B8QQH9DO.js} +7 -7
- package/dist/{vue-ui-gizmo-D-Z8QCwH.js → vue-ui-gizmo-UgzqsNv3.js} +3 -3
- package/dist/{vue-ui-heatmap-C4F0oPir.js → vue-ui-heatmap-C98MtcKi.js} +7 -7
- package/dist/{vue-ui-history-plot-ChNfFFIF.js → vue-ui-history-plot-I2uOmeXc.js} +7 -7
- package/dist/{vue-ui-horizontal-bar-BHhflQVv.js → vue-ui-horizontal-bar-DrauRY8J.js} +13 -13
- package/dist/{vue-ui-kpi-Bs6STHvW.js → vue-ui-kpi-Bkxvv0Re.js} +3 -3
- package/dist/{vue-ui-mini-loader-C20G2gwA.js → vue-ui-mini-loader-oYhRTSA7.js} +2 -2
- package/dist/{vue-ui-molecule-BQasD0Pc.js → vue-ui-molecule-qoA-oi2j.js} +263 -247
- package/dist/{vue-ui-mood-radar-UnfXTNY5.js → vue-ui-mood-radar-DQULF8Nx.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CxDSJ7UU.js → vue-ui-nested-donuts-BcTOOXwM.js} +7 -7
- package/dist/{vue-ui-onion-_J9_80mF.js → vue-ui-onion-BH0dcycx.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CHiDNY-h.js → vue-ui-parallel-coordinate-plot-B5Wz6izN.js} +10 -10
- package/dist/{vue-ui-quadrant-DdwtJUik.js → vue-ui-quadrant-D7Bx8ZhG.js} +8 -8
- package/dist/{vue-ui-quick-chart-BVtuoV8L.js → vue-ui-quick-chart-BLD1S_DA.js} +6 -6
- package/dist/{vue-ui-radar-BiMDeEtu.js → vue-ui-radar-C6URuNkO.js} +8 -8
- package/dist/{vue-ui-rating-DBwGHvLN.js → vue-ui-rating-BALFx0aJ.js} +2 -2
- package/dist/{vue-ui-relation-circle-DYAyIRP1.js → vue-ui-relation-circle-CTuxeQGv.js} +7 -7
- package/dist/{vue-ui-ridgeline-gN5fKjTd.js → vue-ui-ridgeline-DPwJniHl.js} +8 -8
- package/dist/{vue-ui-rings-BMxHBIXK.js → vue-ui-rings-CV8WVGDf.js} +8 -8
- package/dist/{vue-ui-scatter-DTe8stzc.js → vue-ui-scatter-AB5CJST5.js} +8 -8
- package/dist/{vue-ui-skeleton-Rq_iY34o.js → vue-ui-skeleton-CG-kTHxc.js} +3 -3
- package/dist/{vue-ui-smiley-DVVGOxB4.js → vue-ui-smiley-DABDSgAF.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bv_c68m9.js → vue-ui-spark-trend-6DEoAhz2.js} +3 -3
- package/dist/{vue-ui-sparkbar-Bts-H5kW.js → vue-ui-sparkbar-Bqje9P11.js} +3 -3
- package/dist/{vue-ui-sparkgauge-qe1x-WYv.js → vue-ui-sparkgauge-DK2HYPG8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C4AsZoTv.js → vue-ui-sparkhistogram-Db_xO32F.js} +4 -4
- package/dist/{vue-ui-sparkline-4rL3cNOp.js → vue-ui-sparkline-IGFr7ojq.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-nAPWa24t.js → vue-ui-sparkstackbar-BYTe-W9l.js} +3 -3
- package/dist/{vue-ui-stackbar-DIrK_6U1.js → vue-ui-stackbar-DHARDfHR.js} +9 -9
- package/dist/{vue-ui-stackline-DrjtZnvk.js → vue-ui-stackline--ct2hMXb.js} +9 -9
- package/dist/{vue-ui-strip-plot-BvlJJ05r.js → vue-ui-strip-plot-BhUAax7p.js} +7 -7
- package/dist/{vue-ui-table-BXTdd4rQ.js → vue-ui-table-C01JSJY_.js} +5 -5
- package/dist/{vue-ui-table-heatmap-C-dBTmpU.js → vue-ui-table-heatmap-BHqtF71-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D09d-TqT.js → vue-ui-table-sparkline-BComiXTb.js} +4 -4
- package/dist/{vue-ui-thermometer-D-3uy1Kn.js → vue-ui-thermometer-DdGx_SCS.js} +7 -7
- package/dist/{vue-ui-timer-fLkuH8-S.js → vue-ui-timer-BoVpVQl2.js} +5 -5
- package/dist/{vue-ui-tiremarks-CtDyYpos.js → vue-ui-tiremarks-CPBV1tbk.js} +6 -6
- package/dist/vue-ui-treemap-C94wp5-s.js +1590 -0
- package/dist/{vue-ui-waffle-D-F3_Adz.js → vue-ui-waffle-DUSfyAav.js} +8 -8
- package/dist/{vue-ui-wheel-CCCqyGtv.js → vue-ui-wheel-BzPZhMGj.js} +6 -6
- package/dist/{vue-ui-word-cloud-IG1Vv_Bs.js → vue-ui-word-cloud-BTPT8St3.js} +352 -335
- package/dist/{vue-ui-world-DFb4FB41.js → vue-ui-world-VSCQYYn5.js} +6 -6
- package/dist/{vue-ui-xy-canvas-BMAvV283.js → vue-ui-xy-canvas-3x-UDcCu.js} +10 -10
- package/dist/{vue-ui-xy-CWpPVQDO.js → vue-ui-xy-kwHl6eC3.js} +9 -9
- package/package.json +1 -1
- package/dist/RecursiveLabels-Bgcv0pzu.js +0 -50
- package/dist/usePanZoom-BVca3eMk.js +0 -122
- package/dist/vue-ui-treemap-Dt-wMdMI.js +0 -1359
|
@@ -1,250 +1,250 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { d as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as jt, a as Be } from "./useNestedProp-
|
|
1
|
+
import { useCssVars as St, defineAsyncComponent as ee, computed as te, ref as h, toRefs as Tt, watch as be, shallowRef as He, onMounted as zt, onBeforeUnmount as Mt, createElementBlock as j, openBlock as S, unref as r, normalizeStyle as Te, createBlock as ce, createCommentVNode as G, createVNode as ze, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as _, createSlots as Je, normalizeClass as Ke, createElementVNode as ye, Fragment as Ot, renderList as Pt, toDisplayString as Ee, resolveDynamicComponent as It, mergeProps as Dt, createTextVNode as Qe, nextTick as et } from "vue";
|
|
2
|
+
import { d as tt, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
3
|
+
import { c as Bt, t as _t, ap as Nt, M as Rt, i as Wt, p as Me, o as ot, g as at, k as Vt, d as Xt, X as Zt, u as Yt, q as Ut, x as Lt } from "./lib-DUaaQGCv.js";
|
|
4
|
+
import { u as jt, a as Be } from "./useNestedProp-BjZ1Lg9E.js";
|
|
5
5
|
import { u as Gt, B as qt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ht } from "./usePrinter-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { _ as
|
|
15
|
-
function
|
|
16
|
-
const { width: f, height:
|
|
17
|
-
let d = f, c =
|
|
18
|
-
for (let
|
|
19
|
-
for (let
|
|
20
|
-
|
|
21
|
-
return
|
|
6
|
+
import { u as Ht } from "./usePrinter-BdVu83IN.js";
|
|
7
|
+
import { u as Jt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Kt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as eo } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import to from "./img-BYzbY8TZ.js";
|
|
12
|
+
import oo from "./Title-BwhstTFA.js";
|
|
13
|
+
import { u as ao } from "./usePanZoom-DZtyJi5q.js";
|
|
14
|
+
import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function no($, x) {
|
|
16
|
+
const { width: f, height: y } = $, C = x.getImageData(0, 0, f, y).data;
|
|
17
|
+
let d = f, c = y, l = 0, v = 0, T = !1;
|
|
18
|
+
for (let k = 0; k < y; k += 1)
|
|
19
|
+
for (let z = 0; z < f; z += 1)
|
|
20
|
+
C[(k * f + z) * 4 + 3] > 1 && (T = !0, z < d && (d = z), z > l && (l = z), k < c && (c = k), k > v && (v = k));
|
|
21
|
+
return T ? [d, c, l, v] : [0, 0, 0, 0];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
word:
|
|
23
|
+
function lt({
|
|
24
|
+
word: $,
|
|
25
25
|
fontSize: x,
|
|
26
26
|
pad: f,
|
|
27
|
-
canvas:
|
|
27
|
+
canvas: y,
|
|
28
28
|
ctx: m,
|
|
29
|
-
svg:
|
|
29
|
+
svg: C
|
|
30
30
|
}) {
|
|
31
|
-
m.save(), m.font = `${
|
|
32
|
-
const d = m.measureText(
|
|
33
|
-
|
|
34
|
-
const
|
|
31
|
+
m.save(), m.font = `${C.style && C.style.bold ? "bold " : ""}${x}px Arial`;
|
|
32
|
+
const d = m.measureText($.name), c = Math.ceil(d.width) + 2 + (f ? f * 2 : 0), l = Math.ceil(x) + 2 + (f ? f * 2 : 0);
|
|
33
|
+
y.width = c, y.height = l, m.clearRect(0, 0, c, l), m.font = `${C.style && C.style.bold ? "bold " : ""}${x}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillStyle = "black", m.fillText($.name, c / 2, l / 2);
|
|
34
|
+
const T = m.getImageData(0, 0, c, l).data, k = [];
|
|
35
35
|
for (let I = 0; I < l; I += 1)
|
|
36
|
-
for (let
|
|
37
|
-
|
|
38
|
-
const [
|
|
39
|
-
return m.restore(), { w: c, h: l, wordMask:
|
|
36
|
+
for (let w = 0; w < c; w += 1)
|
|
37
|
+
T[(I * c + w) * 4 + 3] > 1 && k.push([w, I]);
|
|
38
|
+
const [z, F, q, J] = no(y, m);
|
|
39
|
+
return m.restore(), { w: c, h: l, wordMask: k, minX: z, minY: F, maxX: q, maxY: J };
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
for (let d = 0; d <
|
|
43
|
-
const c =
|
|
44
|
-
if (c < 0 || l < 0 || c >= x || l >= f ||
|
|
41
|
+
function nt({ mask: $, maskW: x, maskH: f, wx: y, wy: m, wordMask: C }) {
|
|
42
|
+
for (let d = 0; d < C.length; d += 1) {
|
|
43
|
+
const c = y + C[d][0], l = m + C[d][1];
|
|
44
|
+
if (c < 0 || l < 0 || c >= x || l >= f || $[l * x + c]) return !1;
|
|
45
45
|
}
|
|
46
46
|
return !0;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
for (let d = 0; d <
|
|
50
|
-
const c =
|
|
51
|
-
c >= 0 && l >= 0 && c < x && l < f && (
|
|
48
|
+
function st({ mask: $, maskW: x, maskH: f, wx: y, wy: m, wordMask: C }) {
|
|
49
|
+
for (let d = 0; d < C.length; d += 1) {
|
|
50
|
+
const c = y + C[d][0], l = m + C[d][1];
|
|
51
|
+
c >= 0 && l >= 0 && c < x && l < f && ($[l * x + c] = 1);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
const m = new Set(
|
|
56
|
-
for (let [d, c] of
|
|
57
|
-
for (let l = -
|
|
58
|
-
for (let v = -
|
|
54
|
+
function so({ wordMask: $, w: x, h: f, dilation: y }) {
|
|
55
|
+
const m = new Set($.map(([d, c]) => `${d},${c}`)), C = new Set(m);
|
|
56
|
+
for (let [d, c] of $)
|
|
57
|
+
for (let l = -y; l <= y; l += 1)
|
|
58
|
+
for (let v = -y; v <= y; v += 1) {
|
|
59
59
|
if (l === 0 && v === 0) continue;
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const T = d + l, k = c + v;
|
|
61
|
+
T >= 0 && T < x && k >= 0 && k < f && C.add(`${T},${k}`);
|
|
62
62
|
}
|
|
63
|
-
return Array.from(
|
|
63
|
+
return Array.from(C).map((d) => d.split(",").map(Number));
|
|
64
64
|
}
|
|
65
|
-
async function
|
|
66
|
-
words:
|
|
65
|
+
async function ro({
|
|
66
|
+
words: $,
|
|
67
67
|
proximity: x = 0,
|
|
68
68
|
svg: f,
|
|
69
|
-
strictPixelPadding:
|
|
69
|
+
strictPixelPadding: y,
|
|
70
70
|
onProgress: m
|
|
71
71
|
}) {
|
|
72
|
-
function
|
|
73
|
-
return new Promise((
|
|
72
|
+
function C() {
|
|
73
|
+
return new Promise((A) => setTimeout(A, 0));
|
|
74
74
|
}
|
|
75
|
-
const { width: d, height: c } = f, l = Math.round(d), v = Math.round(c),
|
|
76
|
-
|
|
77
|
-
const Ce = 6, ke = 2, we = 2, ve = 1, K = Math.floor(l / 2), se = Math.floor(v / 2), he = [
|
|
78
|
-
...
|
|
75
|
+
const { width: d, height: c } = f, l = Math.round(d), v = Math.round(c), T = 1, k = f.minFontSize, z = Math.min(f.maxFontSize, 100), F = $.map((A) => A.value), q = Math.min(...F), J = Math.max(...F), I = new Uint8Array(l * v), w = document.createElement("canvas"), de = w.getContext("2d", { willReadFrequently: !0 });
|
|
76
|
+
w.width = l, w.height = v;
|
|
77
|
+
const Ce = 6, ke = 2, we = 2, ve = 1, K = Math.floor(l / 2), se = Math.floor(v / 2), he = [...$.map((A, D) => ({
|
|
78
|
+
...A,
|
|
79
79
|
__wcIndex: D,
|
|
80
|
-
id:
|
|
81
|
-
}))].sort((
|
|
82
|
-
for (const
|
|
80
|
+
id: A.id != null ? A.id : `${A.name}__${D}`
|
|
81
|
+
}))].sort((A, D) => D.value - A.value), e = [];
|
|
82
|
+
for (const A of he) {
|
|
83
83
|
const D = e.length;
|
|
84
|
-
let re =
|
|
85
|
-
J !==
|
|
86
|
-
|
|
87
|
-
Math.min(
|
|
84
|
+
let re = k;
|
|
85
|
+
J !== q && (re = (A.value - q) / (J - q) * (z - k) + k), re = Math.max(
|
|
86
|
+
k,
|
|
87
|
+
Math.min(z, re)
|
|
88
88
|
);
|
|
89
|
-
let E = !1,
|
|
90
|
-
for (; !E &&
|
|
89
|
+
let E = !1, N = re;
|
|
90
|
+
for (; !E && N >= T; ) {
|
|
91
91
|
let {
|
|
92
92
|
w: M,
|
|
93
|
-
h:
|
|
93
|
+
h: R,
|
|
94
94
|
wordMask: V,
|
|
95
95
|
minX: Q,
|
|
96
96
|
minY: oe,
|
|
97
97
|
maxX: ae,
|
|
98
98
|
maxY: le
|
|
99
|
-
} =
|
|
100
|
-
word:
|
|
101
|
-
fontSize:
|
|
99
|
+
} = lt({
|
|
100
|
+
word: A,
|
|
101
|
+
fontSize: N,
|
|
102
102
|
pad: x,
|
|
103
|
-
canvas:
|
|
103
|
+
canvas: w,
|
|
104
104
|
ctx: de,
|
|
105
105
|
svg: f
|
|
106
106
|
});
|
|
107
|
-
|
|
108
|
-
let
|
|
109
|
-
for (;
|
|
107
|
+
y && (V = so({ wordMask: V, w: M, h: R, dilation: 2 }));
|
|
108
|
+
let W = 0, X = 0;
|
|
109
|
+
for (; W < Math.max(l, v) && !E && X < 1e4; ) {
|
|
110
110
|
for (let s = 0; s < 360; s += Ce) {
|
|
111
111
|
X += 1;
|
|
112
112
|
const O = Math.round(
|
|
113
|
-
K +
|
|
114
|
-
),
|
|
115
|
-
se +
|
|
113
|
+
K + W * Math.cos(s * Math.PI / 180) - M / 2
|
|
114
|
+
), P = Math.round(
|
|
115
|
+
se + W * Math.sin(s * Math.PI / 180) - R / 2
|
|
116
116
|
);
|
|
117
|
-
if (!(O < 0 ||
|
|
117
|
+
if (!(O < 0 || P < 0 || O + M > l || P + R > v) && nt({
|
|
118
118
|
mask: I,
|
|
119
119
|
maskW: l,
|
|
120
120
|
maskH: v,
|
|
121
121
|
wx: O,
|
|
122
|
-
wy:
|
|
122
|
+
wy: P,
|
|
123
123
|
wordMask: V
|
|
124
124
|
})) {
|
|
125
|
-
const { __wcIndex:
|
|
125
|
+
const { __wcIndex: Z, ...Y } = A;
|
|
126
126
|
e.push({
|
|
127
|
-
...
|
|
127
|
+
...Y,
|
|
128
128
|
x: O - l / 2,
|
|
129
|
-
y:
|
|
130
|
-
fontSize:
|
|
129
|
+
y: P - v / 2,
|
|
130
|
+
fontSize: N,
|
|
131
131
|
width: M,
|
|
132
|
-
height:
|
|
132
|
+
height: R,
|
|
133
133
|
angle: 0,
|
|
134
134
|
minX: Q,
|
|
135
135
|
minY: oe,
|
|
136
136
|
maxX: ae,
|
|
137
137
|
maxY: le
|
|
138
|
-
}),
|
|
138
|
+
}), st({
|
|
139
139
|
mask: I,
|
|
140
140
|
maskW: l,
|
|
141
141
|
maskH: v,
|
|
142
142
|
wx: O,
|
|
143
|
-
wy:
|
|
143
|
+
wy: P,
|
|
144
144
|
wordMask: V
|
|
145
145
|
}), E = !0;
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
W += ke;
|
|
150
150
|
}
|
|
151
|
-
E || (
|
|
151
|
+
E || (N -= 1);
|
|
152
152
|
}
|
|
153
|
-
if (!E &&
|
|
154
|
-
|
|
153
|
+
if (!E && N < T) {
|
|
154
|
+
N = T;
|
|
155
155
|
const {
|
|
156
156
|
w: M,
|
|
157
|
-
h:
|
|
157
|
+
h: R,
|
|
158
158
|
wordMask: V,
|
|
159
159
|
minX: Q,
|
|
160
160
|
minY: oe,
|
|
161
161
|
maxX: ae,
|
|
162
162
|
maxY: le
|
|
163
|
-
} =
|
|
164
|
-
word:
|
|
165
|
-
fontSize:
|
|
163
|
+
} = lt({
|
|
164
|
+
word: A,
|
|
165
|
+
fontSize: N,
|
|
166
166
|
pad: x,
|
|
167
|
-
canvas:
|
|
167
|
+
canvas: w,
|
|
168
168
|
ctx: de,
|
|
169
169
|
svg: f
|
|
170
170
|
});
|
|
171
|
-
let
|
|
172
|
-
for (;
|
|
171
|
+
let W = 0, X = 0;
|
|
172
|
+
for (; W < Math.max(l, v) && !E && X < 25e3; ) {
|
|
173
173
|
for (let s = 0; s < 360; s += we) {
|
|
174
174
|
X += 1;
|
|
175
175
|
const O = Math.round(
|
|
176
|
-
K +
|
|
177
|
-
),
|
|
178
|
-
se +
|
|
176
|
+
K + W * Math.cos(s * Math.PI / 180) - M / 2
|
|
177
|
+
), P = Math.round(
|
|
178
|
+
se + W * Math.sin(s * Math.PI / 180) - R / 2
|
|
179
179
|
);
|
|
180
|
-
if (!(O < 0 ||
|
|
180
|
+
if (!(O < 0 || P < 0 || O + M > l || P + R > v) && nt({
|
|
181
181
|
mask: I,
|
|
182
182
|
maskW: l,
|
|
183
183
|
maskH: v,
|
|
184
184
|
wx: O,
|
|
185
|
-
wy:
|
|
185
|
+
wy: P,
|
|
186
186
|
wordMask: V
|
|
187
187
|
})) {
|
|
188
|
-
const { __wcIndex:
|
|
188
|
+
const { __wcIndex: Z, ...Y } = A;
|
|
189
189
|
e.push({
|
|
190
|
-
...
|
|
190
|
+
...Y,
|
|
191
191
|
x: O - l / 2,
|
|
192
|
-
y:
|
|
193
|
-
fontSize:
|
|
192
|
+
y: P - v / 2,
|
|
193
|
+
fontSize: N,
|
|
194
194
|
width: M,
|
|
195
|
-
height:
|
|
195
|
+
height: R,
|
|
196
196
|
angle: 0,
|
|
197
197
|
minX: Q,
|
|
198
198
|
minY: oe,
|
|
199
199
|
maxX: ae,
|
|
200
200
|
maxY: le
|
|
201
|
-
}),
|
|
201
|
+
}), st({
|
|
202
202
|
mask: I,
|
|
203
203
|
maskW: l,
|
|
204
204
|
maskH: v,
|
|
205
205
|
wx: O,
|
|
206
|
-
wy:
|
|
206
|
+
wy: P,
|
|
207
207
|
wordMask: V
|
|
208
208
|
}), E = !0;
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
W += ve;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
if (m && e.length > D) {
|
|
216
216
|
const M = e[e.length - 1];
|
|
217
217
|
m({ word: M, all: e });
|
|
218
218
|
}
|
|
219
|
-
await
|
|
219
|
+
await C();
|
|
220
220
|
}
|
|
221
|
-
return e.sort((
|
|
221
|
+
return e.sort((A, D) => D.fontSize - A.fontSize);
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, it = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, ut = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, ct = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, dt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, ht = {
|
|
224
224
|
default: {},
|
|
225
|
-
dark:
|
|
226
|
-
celebration:
|
|
227
|
-
celebrationNight:
|
|
228
|
-
hack:
|
|
229
|
-
zen:
|
|
230
|
-
concrete:
|
|
231
|
-
},
|
|
225
|
+
dark: rt,
|
|
226
|
+
celebration: it,
|
|
227
|
+
celebrationNight: ut,
|
|
228
|
+
hack: ct,
|
|
229
|
+
zen: dt,
|
|
230
|
+
concrete: vt
|
|
231
|
+
}, Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
232
232
|
__proto__: null,
|
|
233
|
-
celebration:
|
|
234
|
-
celebrationNight:
|
|
235
|
-
concrete:
|
|
236
|
-
dark:
|
|
237
|
-
default:
|
|
238
|
-
hack:
|
|
239
|
-
zen:
|
|
240
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
233
|
+
celebration: it,
|
|
234
|
+
celebrationNight: ut,
|
|
235
|
+
concrete: vt,
|
|
236
|
+
dark: rt,
|
|
237
|
+
default: ht,
|
|
238
|
+
hack: ct,
|
|
239
|
+
zen: dt
|
|
240
|
+
}, Symbol.toStringTag, { value: "Module" })), io = ["id", "data-resizing", "data-relayout"], uo = ["xmlns", "viewBox"], co = ["width", "height"], vo = ["transform"], ho = ["transform"], mo = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], fo = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], po = {
|
|
241
241
|
key: 3,
|
|
242
242
|
class: "vue-data-ui-watermark"
|
|
243
|
-
},
|
|
243
|
+
}, go = {
|
|
244
244
|
key: 4,
|
|
245
245
|
"data-dom-to-png-ignore": "",
|
|
246
246
|
class: "reset-wrapper"
|
|
247
|
-
},
|
|
247
|
+
}, bo = ["innerHTML"], yo = {
|
|
248
248
|
__name: "vue-ui-word-cloud",
|
|
249
249
|
props: {
|
|
250
250
|
config: {
|
|
@@ -260,21 +260,26 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
setup(
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
setup($, { expose: x }) {
|
|
264
|
+
St((t) => ({
|
|
265
|
+
v6142108c: t.slicerColor
|
|
266
266
|
}));
|
|
267
|
-
const f = ee(() => import("./Tooltip-
|
|
267
|
+
const f = ee(() => import("./Tooltip-De7i-i20.js")), y = ee(() => import("./BaseIcon-Dl4VBlHV.js")), m = ee(() => import("./vue-ui-accordion-BXTVRRX7.js")), C = ee(() => import("./DataTable-Ho3Bf5oq.js")), d = ee(() => import("./PenAndPaper-kymjF6_b.js")), c = ee(() => import("./UserOptions-DgscxIaa.js")), l = ee(() => import("./PackageVersion-BTPIkPFM.js")), v = ee(() => import("./BaseDraggableDialog-BDY-Jn9S.js")), { vue_ui_word_cloud: T } = jt(), { isThemeValid: k, warnInvalidTheme: z } = Kt(), F = $, q = te({
|
|
268
268
|
get() {
|
|
269
|
-
return
|
|
269
|
+
return !!F.dataset && F.dataset.length;
|
|
270
270
|
},
|
|
271
271
|
set(t) {
|
|
272
272
|
return t;
|
|
273
273
|
}
|
|
274
|
-
}), J = h(
|
|
275
|
-
...
|
|
274
|
+
}), J = h(Bt()), I = h(0), w = h(null), de = h(null), Ce = h(null), ke = h(0), we = h(0), ve = h(!1), K = h(null), se = h(null), Ae = h(!1), he = h(!1), e = h(oe()), { loading: A, FINAL_DATASET: D, manualLoading: re } = Gt({
|
|
275
|
+
...Tt(F),
|
|
276
276
|
FINAL_CONFIG: e,
|
|
277
277
|
prepareConfig: oe,
|
|
278
|
+
callback: () => {
|
|
279
|
+
Promise.resolve().then(() => {
|
|
280
|
+
p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
|
|
281
|
+
});
|
|
282
|
+
},
|
|
278
283
|
skeletonDataset: [
|
|
279
284
|
{ name: "Lorem", value: 6 },
|
|
280
285
|
{ name: "ipsum", value: 3 },
|
|
@@ -325,7 +330,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
325
330
|
{ name: "fames", value: 1 },
|
|
326
331
|
{ name: "ante", value: 1 }
|
|
327
332
|
],
|
|
328
|
-
skeletonConfig:
|
|
333
|
+
skeletonConfig: _t({
|
|
329
334
|
defaultConfig: e.value,
|
|
330
335
|
userConfig: {
|
|
331
336
|
userOptions: { show: !1 },
|
|
@@ -346,32 +351,32 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
346
351
|
}
|
|
347
352
|
}
|
|
348
353
|
})
|
|
349
|
-
}), E = h(
|
|
350
|
-
function
|
|
351
|
-
return typeof D.value == "string" ?
|
|
354
|
+
}), E = h(N());
|
|
355
|
+
function N() {
|
|
356
|
+
return typeof D.value == "string" ? Nt(D.value) : D.value.map((t, a) => ({
|
|
352
357
|
...t,
|
|
353
|
-
value:
|
|
358
|
+
value: Rt(t.value)
|
|
354
359
|
}));
|
|
355
360
|
}
|
|
356
|
-
const { userOptionsVisible: M, setUserOptionsVisibility:
|
|
361
|
+
const { userOptionsVisible: M, setUserOptionsVisibility: R, keepUserOptionState: V } = Qt({ config: e.value }), { svgRef: Q } = eo({ config: e.value.style.chart.title });
|
|
357
362
|
function oe() {
|
|
358
363
|
const t = Be({
|
|
359
|
-
userConfig:
|
|
360
|
-
defaultConfig:
|
|
364
|
+
userConfig: F.config,
|
|
365
|
+
defaultConfig: T
|
|
361
366
|
}), a = t.theme;
|
|
362
367
|
if (!a) return t;
|
|
363
|
-
if (!
|
|
364
|
-
return
|
|
368
|
+
if (!k.value(t))
|
|
369
|
+
return z(t), t;
|
|
365
370
|
const o = Be({
|
|
366
|
-
userConfig:
|
|
371
|
+
userConfig: ht[a] || F.config,
|
|
367
372
|
defaultConfig: t
|
|
368
373
|
}), n = Be({
|
|
369
|
-
userConfig:
|
|
374
|
+
userConfig: F.config,
|
|
370
375
|
defaultConfig: o
|
|
371
376
|
});
|
|
372
377
|
return {
|
|
373
378
|
...n,
|
|
374
|
-
customPalette: n.customPalette.length ? n.customPalette :
|
|
379
|
+
customPalette: n.customPalette.length ? n.customPalette : Wt[a] || Me
|
|
375
380
|
};
|
|
376
381
|
}
|
|
377
382
|
const ae = h({ x: 0, y: 0 });
|
|
@@ -382,18 +387,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
382
387
|
width: Math.max(10, s.value.width),
|
|
383
388
|
height: Math.max(10, s.value.height)
|
|
384
389
|
};
|
|
385
|
-
|
|
390
|
+
bt(t), ae.value = {
|
|
386
391
|
x: t.x + t.width / 2,
|
|
387
392
|
y: t.y + t.height / 2
|
|
388
393
|
}, Se();
|
|
389
394
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
395
|
+
const W = tt(() => {
|
|
396
|
+
Ze();
|
|
392
397
|
}, 100), X = h(!1);
|
|
393
398
|
be(() => X.value, (t) => {
|
|
394
|
-
t === !1 && (he.value = !0,
|
|
395
|
-
}), be(() =>
|
|
396
|
-
e.value = oe(), M.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, we.value += 1,
|
|
399
|
+
t === !1 && (he.value = !0, W(), le());
|
|
400
|
+
}), be(() => F.config, (t) => {
|
|
401
|
+
e.value = oe(), M.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, we.value += 1, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
|
|
397
402
|
}, { deep: !0 });
|
|
398
403
|
const s = h({
|
|
399
404
|
width: e.value.style.chart.width,
|
|
@@ -401,31 +406,31 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
401
406
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
402
407
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
403
408
|
bold: e.value.style.chart.words.bold
|
|
404
|
-
}), O =
|
|
405
|
-
const { width: t, height: a } =
|
|
406
|
-
chart:
|
|
409
|
+
}), O = tt(() => {
|
|
410
|
+
const { width: t, height: a } = Et({
|
|
411
|
+
chart: w.value,
|
|
407
412
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
408
413
|
source: Ce.value
|
|
409
414
|
});
|
|
410
415
|
requestAnimationFrame(async () => {
|
|
411
|
-
s.value.width = Math.max(10, t), s.value.height = Math.max(10, a - 12), await
|
|
416
|
+
s.value.width = Math.max(10, t), s.value.height = Math.max(10, a - 12), await et(), X.value = !1;
|
|
412
417
|
});
|
|
413
|
-
}, 100),
|
|
418
|
+
}, 100), P = () => {
|
|
414
419
|
X.value = !0, O();
|
|
415
|
-
},
|
|
416
|
-
|
|
420
|
+
}, Z = He(null), Y = He(null);
|
|
421
|
+
zt(Ne);
|
|
417
422
|
const _e = te(() => !!e.value.debug);
|
|
418
423
|
function Ne() {
|
|
419
|
-
|
|
424
|
+
ot(F.dataset) ? at({
|
|
420
425
|
componentName: "VueUiWordCloud",
|
|
421
426
|
type: "dataset",
|
|
422
427
|
debug: _e.value
|
|
423
428
|
}) : E.value.forEach((t, a) => {
|
|
424
|
-
|
|
429
|
+
Vt({
|
|
425
430
|
datasetObject: t,
|
|
426
431
|
requiredAttributes: ["name", "value"]
|
|
427
432
|
}).forEach((o) => {
|
|
428
|
-
|
|
433
|
+
q.value = !1, at({
|
|
429
434
|
componentName: "VueUiWordCloud",
|
|
430
435
|
type: "datasetSerieAttribute",
|
|
431
436
|
property: o,
|
|
@@ -433,80 +438,78 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
433
438
|
debug: _e.value
|
|
434
439
|
});
|
|
435
440
|
});
|
|
436
|
-
}),
|
|
441
|
+
}), ot(F.dataset) || (re.value = e.value.loading), e.value.responsive && (Z.value && (Y.value && Z.value.unobserve(Y.value), Z.value.disconnect()), Z.value = new ResizeObserver(P), Y.value = w.value.parentNode, Z.value.observe(Y.value)), le();
|
|
437
442
|
}
|
|
438
443
|
Mt(() => {
|
|
439
|
-
|
|
444
|
+
Z.value && (Y.value && Z.value.unobserve(Y.value), Z.value.disconnect());
|
|
440
445
|
});
|
|
441
446
|
const { isPrinting: Re, isImaging: We, generatePdf: Ve, generateImage: Xe } = Ht({
|
|
442
447
|
elementId: `wordCloud_${J.value}`,
|
|
443
448
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
444
449
|
options: e.value.userOptions.print
|
|
445
|
-
}),
|
|
450
|
+
}), p = h({
|
|
446
451
|
showTable: e.value.table.show,
|
|
447
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
452
|
+
showTooltip: e.value.style.chart.tooltip.show,
|
|
453
|
+
showZoom: e.value.style.chart.zoom.show
|
|
448
454
|
});
|
|
449
455
|
be(e, () => {
|
|
450
|
-
|
|
451
|
-
showTable: e.value.table.show,
|
|
452
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
453
|
-
};
|
|
456
|
+
p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
|
|
454
457
|
}, { immediate: !0 });
|
|
455
|
-
function
|
|
458
|
+
function mt(t, a, o = "Arial") {
|
|
456
459
|
const i = document.createElement("canvas").getContext("2d");
|
|
457
460
|
return i.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
458
461
|
width: i.measureText(t).width + e.value.style.chart.words.proximity,
|
|
459
462
|
height: a
|
|
460
463
|
};
|
|
461
464
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
465
|
+
const U = h([]), me = /* @__PURE__ */ new Map();
|
|
466
|
+
function Ze() {
|
|
464
467
|
const t = [...E.value].map((i) => i.value), a = Math.max(...t), o = Math.min(...t), n = [...E.value].map((i, u) => {
|
|
465
|
-
let
|
|
466
|
-
|
|
467
|
-
const ne =
|
|
468
|
+
let L = (i.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
|
|
469
|
+
L = isNaN(L) ? s.value.minFontSize : L;
|
|
470
|
+
const ne = mt(i.name, L);
|
|
468
471
|
return {
|
|
469
472
|
...i,
|
|
470
473
|
id: i.id ?? `${i.name}__${u}`,
|
|
471
|
-
fontSize:
|
|
474
|
+
fontSize: L,
|
|
472
475
|
width: ne.width,
|
|
473
476
|
height: ne.height,
|
|
474
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] ||
|
|
477
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] || Me[u] || Me[u % Me.length] : e.value.style.chart.words.color
|
|
475
478
|
};
|
|
476
479
|
});
|
|
477
|
-
|
|
480
|
+
U.value.length = 0, me.clear(), ro({
|
|
478
481
|
words: n,
|
|
479
482
|
svg: s.value,
|
|
480
483
|
proximity: e.value.style.chart.words.proximity,
|
|
481
484
|
strictPixelPadding: e.value.strictPixelPadding,
|
|
482
485
|
onProgress: ({ all: i }) => {
|
|
483
486
|
for (const u of i) {
|
|
484
|
-
const
|
|
485
|
-
let ne = me.get(
|
|
487
|
+
const L = u.id;
|
|
488
|
+
let ne = me.get(L);
|
|
486
489
|
if (ne === void 0)
|
|
487
|
-
ne =
|
|
490
|
+
ne = U.value.length, me.set(L, ne), U.value.push({ ...u });
|
|
488
491
|
else {
|
|
489
|
-
const
|
|
490
|
-
|
|
492
|
+
const H = U.value[ne];
|
|
493
|
+
H.x = u.x, H.y = u.y, H.width = u.width, H.height = u.height, H.fontSize = u.fontSize, H.minX = u.minX, H.minY = u.minY, H.maxX = u.maxX, H.maxY = u.maxY;
|
|
491
494
|
}
|
|
492
495
|
}
|
|
493
496
|
}
|
|
494
|
-
}),
|
|
497
|
+
}), U.value.sort((i, u) => u.fontSize - i.fontSize), me.clear(), U.value.forEach((i, u) => {
|
|
495
498
|
me.set(i.id, u);
|
|
496
|
-
}),
|
|
499
|
+
}), Ae.value = !0, he.value = !1;
|
|
497
500
|
}
|
|
498
|
-
const
|
|
499
|
-
const t =
|
|
501
|
+
const xe = te(() => {
|
|
502
|
+
const t = U.value.map((o) => ({
|
|
500
503
|
name: o.name,
|
|
501
504
|
color: o.color
|
|
502
|
-
})), a =
|
|
505
|
+
})), a = U.value.map((o) => o.value);
|
|
503
506
|
return { head: t, body: a };
|
|
504
507
|
});
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
const a =
|
|
508
|
+
function Oe(t = null) {
|
|
509
|
+
et(() => {
|
|
510
|
+
const a = xe.value.head.map((i, u) => [[
|
|
508
511
|
i.name
|
|
509
|
-
], [
|
|
512
|
+
], [xe.value.body[u]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), n = Yt(o);
|
|
510
513
|
t ? t(n) : Ut({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
511
514
|
});
|
|
512
515
|
}
|
|
@@ -514,14 +517,14 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
514
517
|
const t = [
|
|
515
518
|
e.value.table.columnNames.series,
|
|
516
519
|
e.value.table.columnNames.value
|
|
517
|
-
], a =
|
|
518
|
-
const
|
|
520
|
+
], a = xe.value.head.map((i, u) => {
|
|
521
|
+
const L = Xt({ p: e.value.table.td.prefix, v: xe.value.body[u], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
519
522
|
return [
|
|
520
523
|
{
|
|
521
524
|
color: i.color,
|
|
522
525
|
name: i.name
|
|
523
526
|
},
|
|
524
|
-
|
|
527
|
+
L
|
|
525
528
|
];
|
|
526
529
|
}), o = {
|
|
527
530
|
th: {
|
|
@@ -546,34 +549,37 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
546
549
|
config: o
|
|
547
550
|
};
|
|
548
551
|
}), ie = h(!1);
|
|
549
|
-
function
|
|
552
|
+
function Ye(t) {
|
|
550
553
|
ie.value = t, I.value += 1;
|
|
551
554
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
555
|
+
function ft() {
|
|
556
|
+
return U.value;
|
|
554
557
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
558
|
+
function Ue() {
|
|
559
|
+
p.value.showTable = !p.value.showTable;
|
|
557
560
|
}
|
|
558
|
-
function
|
|
559
|
-
|
|
561
|
+
function Le() {
|
|
562
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
560
563
|
}
|
|
561
564
|
const fe = h(!1);
|
|
562
565
|
function Pe() {
|
|
563
566
|
fe.value = !fe.value;
|
|
564
567
|
}
|
|
565
|
-
|
|
568
|
+
function je() {
|
|
569
|
+
p.value.showZoom = !p.value.showZoom;
|
|
570
|
+
}
|
|
571
|
+
const pt = te(() => !fe.value && p.value.showZoom), { viewBox: Fe, resetZoom: Se, isZoom: gt, setInitialViewBox: bt } = ao(Q, {
|
|
566
572
|
x: 0,
|
|
567
573
|
y: 0,
|
|
568
574
|
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
569
575
|
height: s.value.height <= 0 ? 10 : s.value.height
|
|
570
|
-
}, 1,
|
|
571
|
-
be(() =>
|
|
572
|
-
E.value =
|
|
576
|
+
}, 1, pt);
|
|
577
|
+
be(() => F.dataset, () => {
|
|
578
|
+
E.value = N(), e.value.responsive || (Ze(), le());
|
|
573
579
|
}, { immediate: !0 });
|
|
574
|
-
async function
|
|
575
|
-
if (!
|
|
576
|
-
const { width: a, height: o } =
|
|
580
|
+
async function yt({ scale: t = 2 } = {}) {
|
|
581
|
+
if (!w.value) return;
|
|
582
|
+
const { width: a, height: o } = w.value.getBoundingClientRect(), n = a / o, { imageUri: i, base64: u } = await to({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
577
583
|
return {
|
|
578
584
|
imageUri: i,
|
|
579
585
|
base64: u,
|
|
@@ -584,7 +590,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
584
590
|
};
|
|
585
591
|
}
|
|
586
592
|
const pe = te(() => {
|
|
587
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
593
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
588
594
|
return {
|
|
589
595
|
component: t ? v : m,
|
|
590
596
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -594,7 +600,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
594
600
|
headerColor: e.value.table.th.color,
|
|
595
601
|
headerBg: e.value.table.th.backgroundColor,
|
|
596
602
|
isFullscreen: ie.value,
|
|
597
|
-
fullscreenParent:
|
|
603
|
+
fullscreenParent: w.value,
|
|
598
604
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
599
605
|
} : {
|
|
600
606
|
hideDetails: !0,
|
|
@@ -613,46 +619,47 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
613
619
|
}
|
|
614
620
|
};
|
|
615
621
|
});
|
|
616
|
-
be(() =>
|
|
622
|
+
be(() => p.value.showTable, (t) => {
|
|
617
623
|
e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
|
|
618
624
|
});
|
|
619
625
|
function Ge() {
|
|
620
|
-
|
|
626
|
+
p.value.showTable = !1, se.value && se.value.setTableIconState(!1);
|
|
621
627
|
}
|
|
622
|
-
const
|
|
628
|
+
const Ct = te(() => e.value.style.chart.backgroundColor), kt = te(() => e.value.style.chart.title), { exportSvg: wt, getSvg: At } = Jt({
|
|
623
629
|
svg: Q,
|
|
624
|
-
title:
|
|
625
|
-
backgroundColor:
|
|
630
|
+
title: kt,
|
|
631
|
+
backgroundColor: Ct
|
|
626
632
|
});
|
|
627
633
|
async function qe({ isCb: t }) {
|
|
628
634
|
if (t) {
|
|
629
|
-
const { blob: a, url: o, text: n, dataUrl: i } = await
|
|
635
|
+
const { blob: a, url: o, text: n, dataUrl: i } = await At();
|
|
630
636
|
e.value.userOptions.callbacks.svg({ blob: a, url: o, text: n, dataUrl: i });
|
|
631
637
|
} else
|
|
632
|
-
|
|
638
|
+
wt();
|
|
633
639
|
}
|
|
634
640
|
x({
|
|
635
|
-
getData:
|
|
636
|
-
getImage:
|
|
637
|
-
generateCsv:
|
|
641
|
+
getData: ft,
|
|
642
|
+
getImage: yt,
|
|
643
|
+
generateCsv: Oe,
|
|
638
644
|
generatePdf: Ve,
|
|
639
645
|
generateImage: Xe,
|
|
640
646
|
generateSvg: qe,
|
|
641
647
|
resetZoom: Se,
|
|
642
|
-
toggleTable:
|
|
643
|
-
toggleTooltip:
|
|
648
|
+
toggleTable: Ue,
|
|
649
|
+
toggleTooltip: Le,
|
|
644
650
|
toggleAnnotator: Pe,
|
|
645
|
-
toggleFullscreen:
|
|
651
|
+
toggleFullscreen: Ye,
|
|
652
|
+
toggleZoom: je
|
|
646
653
|
});
|
|
647
654
|
const ue = h(null), ge = h(!1), Ie = h(""), De = h(null);
|
|
648
655
|
function xt(t, a) {
|
|
649
656
|
ue.value = null, ve.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
650
657
|
}
|
|
651
|
-
function
|
|
658
|
+
function $t(t, a) {
|
|
652
659
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
653
660
|
}
|
|
654
|
-
function
|
|
655
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !
|
|
661
|
+
function Ft(t, a) {
|
|
662
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !p.value.showTooltip) return;
|
|
656
663
|
ue.value = t.id, De.value = { datapoint: t, config: e.value };
|
|
657
664
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
658
665
|
if (ge.value = !1, Lt(o))
|
|
@@ -671,18 +678,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
671
678
|
}
|
|
672
679
|
ve.value = !0;
|
|
673
680
|
}
|
|
674
|
-
return (t, a) => (
|
|
681
|
+
return (t, a) => (S(), j("div", {
|
|
675
682
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
676
683
|
ref_key: "wordCloudChart",
|
|
677
|
-
ref:
|
|
684
|
+
ref: w,
|
|
678
685
|
id: `wordCloud_${J.value}`,
|
|
679
686
|
"data-resizing": X.value,
|
|
680
687
|
"data-relayout": he.value,
|
|
681
688
|
style: Te(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
682
|
-
onMouseenter: a[2] || (a[2] = () => r(
|
|
683
|
-
onMouseleave: a[3] || (a[3] = () => r(
|
|
689
|
+
onMouseenter: a[2] || (a[2] = () => r(R)(!0)),
|
|
690
|
+
onMouseleave: a[3] || (a[3] = () => r(R)(!1))
|
|
684
691
|
}, [
|
|
685
|
-
e.value.userOptions.buttons.annotator ? (
|
|
692
|
+
e.value.userOptions.buttons.annotator ? (S(), ce(r(d), {
|
|
686
693
|
key: 0,
|
|
687
694
|
svgRef: r(Q),
|
|
688
695
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -690,33 +697,33 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
690
697
|
active: fe.value,
|
|
691
698
|
onClose: Pe
|
|
692
699
|
}, {
|
|
693
|
-
"annotator-action-close":
|
|
694
|
-
|
|
700
|
+
"annotator-action-close": g(() => [
|
|
701
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
695
702
|
]),
|
|
696
|
-
"annotator-action-color":
|
|
697
|
-
|
|
703
|
+
"annotator-action-color": g(({ color: o }) => [
|
|
704
|
+
b(t.$slots, "annotator-action-color", B(_({ color: o })), void 0, !0)
|
|
698
705
|
]),
|
|
699
|
-
"annotator-action-draw":
|
|
700
|
-
|
|
706
|
+
"annotator-action-draw": g(({ mode: o }) => [
|
|
707
|
+
b(t.$slots, "annotator-action-draw", B(_({ mode: o })), void 0, !0)
|
|
701
708
|
]),
|
|
702
|
-
"annotator-action-undo":
|
|
703
|
-
|
|
709
|
+
"annotator-action-undo": g(({ disabled: o }) => [
|
|
710
|
+
b(t.$slots, "annotator-action-undo", B(_({ disabled: o })), void 0, !0)
|
|
704
711
|
]),
|
|
705
|
-
"annotator-action-redo":
|
|
706
|
-
|
|
712
|
+
"annotator-action-redo": g(({ disabled: o }) => [
|
|
713
|
+
b(t.$slots, "annotator-action-redo", B(_({ disabled: o })), void 0, !0)
|
|
707
714
|
]),
|
|
708
|
-
"annotator-action-delete":
|
|
709
|
-
|
|
715
|
+
"annotator-action-delete": g(({ disabled: o }) => [
|
|
716
|
+
b(t.$slots, "annotator-action-delete", B(_({ disabled: o })), void 0, !0)
|
|
710
717
|
]),
|
|
711
718
|
_: 3
|
|
712
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
713
|
-
e.value.style.chart.title.text ? (
|
|
719
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : G("", !0),
|
|
720
|
+
e.value.style.chart.title.text ? (S(), j("div", {
|
|
714
721
|
key: 1,
|
|
715
722
|
ref_key: "chartTitle",
|
|
716
723
|
ref: de,
|
|
717
724
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
718
725
|
}, [
|
|
719
|
-
(
|
|
726
|
+
(S(), ce(oo, {
|
|
720
727
|
key: `title_${ke.value}`,
|
|
721
728
|
config: {
|
|
722
729
|
title: {
|
|
@@ -727,8 +734,8 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
727
734
|
}
|
|
728
735
|
}
|
|
729
736
|
}, null, 8, ["config"]))
|
|
730
|
-
], 512)) :
|
|
731
|
-
e.value.userOptions.show &&
|
|
737
|
+
], 512)) : G("", !0),
|
|
738
|
+
e.value.userOptions.show && q.value && (r(V) || r(M)) ? (S(), ce(r(c), {
|
|
732
739
|
ref_key: "userOptionsRef",
|
|
733
740
|
ref: se,
|
|
734
741
|
key: `user_option_${I.value}`,
|
|
@@ -745,94 +752,104 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
745
752
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
746
753
|
isFullscreen: ie.value,
|
|
747
754
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
748
|
-
chartElement:
|
|
755
|
+
chartElement: w.value,
|
|
749
756
|
position: e.value.userOptions.position,
|
|
750
757
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
751
|
-
isTooltip:
|
|
758
|
+
isTooltip: p.value.showTooltip,
|
|
752
759
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
753
760
|
isAnnotation: fe.value,
|
|
754
761
|
callbacks: e.value.userOptions.callbacks,
|
|
755
762
|
printScale: e.value.userOptions.print.scale,
|
|
756
763
|
tableDialog: e.value.table.useDialog,
|
|
757
|
-
|
|
764
|
+
hasZoom: e.value.userOptions.buttons.zoom,
|
|
765
|
+
isZoom: p.value.showZoom,
|
|
766
|
+
onToggleFullscreen: Ye,
|
|
758
767
|
onGeneratePdf: r(Ve),
|
|
759
|
-
onGenerateCsv:
|
|
768
|
+
onGenerateCsv: Oe,
|
|
760
769
|
onGenerateImage: r(Xe),
|
|
761
770
|
onGenerateSvg: qe,
|
|
762
|
-
onToggleTable:
|
|
763
|
-
onToggleTooltip:
|
|
771
|
+
onToggleTable: Ue,
|
|
772
|
+
onToggleTooltip: Le,
|
|
764
773
|
onToggleAnnotator: Pe,
|
|
774
|
+
onToggleZoom: je,
|
|
765
775
|
style: Te({
|
|
766
776
|
visibility: r(V) ? r(M) ? "visible" : "hidden" : "visible"
|
|
767
777
|
})
|
|
768
|
-
},
|
|
778
|
+
}, Je({ _: 2 }, [
|
|
769
779
|
t.$slots.menuIcon ? {
|
|
770
780
|
name: "menuIcon",
|
|
771
|
-
fn:
|
|
772
|
-
|
|
781
|
+
fn: g(({ isOpen: o, color: n }) => [
|
|
782
|
+
b(t.$slots, "menuIcon", B(_({ isOpen: o, color: n })), void 0, !0)
|
|
773
783
|
]),
|
|
774
784
|
key: "0"
|
|
775
785
|
} : void 0,
|
|
776
786
|
t.$slots.optionPdf ? {
|
|
777
787
|
name: "optionPdf",
|
|
778
|
-
fn:
|
|
779
|
-
|
|
788
|
+
fn: g(() => [
|
|
789
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
780
790
|
]),
|
|
781
791
|
key: "1"
|
|
782
792
|
} : void 0,
|
|
783
793
|
t.$slots.optionCsv ? {
|
|
784
794
|
name: "optionCsv",
|
|
785
|
-
fn:
|
|
786
|
-
|
|
795
|
+
fn: g(() => [
|
|
796
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
787
797
|
]),
|
|
788
798
|
key: "2"
|
|
789
799
|
} : void 0,
|
|
790
800
|
t.$slots.optionImg ? {
|
|
791
801
|
name: "optionImg",
|
|
792
|
-
fn:
|
|
793
|
-
|
|
802
|
+
fn: g(() => [
|
|
803
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
794
804
|
]),
|
|
795
805
|
key: "3"
|
|
796
806
|
} : void 0,
|
|
797
807
|
t.$slots.optionSvg ? {
|
|
798
808
|
name: "optionSvg",
|
|
799
|
-
fn:
|
|
800
|
-
|
|
809
|
+
fn: g(() => [
|
|
810
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
801
811
|
]),
|
|
802
812
|
key: "4"
|
|
803
813
|
} : void 0,
|
|
804
814
|
t.$slots.optionTable ? {
|
|
805
815
|
name: "optionTable",
|
|
806
|
-
fn:
|
|
807
|
-
|
|
816
|
+
fn: g(() => [
|
|
817
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
808
818
|
]),
|
|
809
819
|
key: "5"
|
|
810
820
|
} : void 0,
|
|
811
821
|
t.$slots.optionFullscreen ? {
|
|
812
822
|
name: "optionFullscreen",
|
|
813
|
-
fn:
|
|
814
|
-
|
|
823
|
+
fn: g(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
824
|
+
b(t.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
815
825
|
]),
|
|
816
826
|
key: "6"
|
|
817
827
|
} : void 0,
|
|
818
828
|
t.$slots.optionAnnotator ? {
|
|
819
829
|
name: "optionAnnotator",
|
|
820
|
-
fn:
|
|
821
|
-
|
|
830
|
+
fn: g(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
831
|
+
b(t.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
822
832
|
]),
|
|
823
833
|
key: "7"
|
|
834
|
+
} : void 0,
|
|
835
|
+
t.$slots.optionZoom ? {
|
|
836
|
+
name: "optionZoom",
|
|
837
|
+
fn: g(({ toggleZoom: o, isZoomLocked: n }) => [
|
|
838
|
+
b(t.$slots, "optionZoom", B(_({ toggleZoom: o, isZoomLocked: n })), void 0, !0)
|
|
839
|
+
]),
|
|
840
|
+
key: "8"
|
|
824
841
|
} : void 0
|
|
825
|
-
]), 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"])) :
|
|
826
|
-
(
|
|
842
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "onGeneratePdf", "onGenerateImage", "style"])) : G("", !0),
|
|
843
|
+
(S(), j("svg", {
|
|
827
844
|
ref_key: "svgRef",
|
|
828
845
|
ref: Q,
|
|
829
|
-
class:
|
|
830
|
-
xmlns: r(
|
|
846
|
+
class: Ke({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value }),
|
|
847
|
+
xmlns: r(Zt),
|
|
831
848
|
viewBox: `${r(Fe).x} ${r(Fe).y} ${r(Fe).width} ${r(Fe).height}`,
|
|
832
849
|
style: "overflow:hidden;background:transparent;"
|
|
833
850
|
}, [
|
|
834
|
-
|
|
835
|
-
t.$slots["chart-background"] ? (
|
|
851
|
+
ze(r(l)),
|
|
852
|
+
t.$slots["chart-background"] ? (S(), j("foreignObject", {
|
|
836
853
|
key: 0,
|
|
837
854
|
x: 0,
|
|
838
855
|
y: 0,
|
|
@@ -842,18 +859,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
842
859
|
pointerEvents: "none"
|
|
843
860
|
}
|
|
844
861
|
}, [
|
|
845
|
-
|
|
846
|
-
], 8,
|
|
862
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
863
|
+
], 8, co)) : G("", !0),
|
|
847
864
|
ye("g", {
|
|
848
865
|
transform: `translate(${ae.value.x}, ${ae.value.y})`,
|
|
849
|
-
class:
|
|
866
|
+
class: Ke({ "wc-finalized": Ae.value })
|
|
850
867
|
}, [
|
|
851
|
-
(
|
|
868
|
+
(S(!0), j(Ot, null, Pt(U.value, (o, n) => (S(), j("g", {
|
|
852
869
|
key: o.id,
|
|
853
870
|
class: "vue-ui-word-cloud-word",
|
|
854
871
|
transform: `translate(${o.x}, ${o.y})`
|
|
855
872
|
}, [
|
|
856
|
-
o.minX !== void 0 ? (
|
|
873
|
+
o.minX !== void 0 ? (S(), j("rect", {
|
|
857
874
|
key: 0,
|
|
858
875
|
x: o.minX,
|
|
859
876
|
y: o.minY * 1.25,
|
|
@@ -861,10 +878,10 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
861
878
|
height: o.maxY - o.minY,
|
|
862
879
|
fill: "transparent",
|
|
863
880
|
"pointer-events": "visiblePainted",
|
|
864
|
-
onMouseover: (i) =>
|
|
881
|
+
onMouseover: (i) => Ft(o, n),
|
|
865
882
|
onMouseleave: (i) => xt(o, n),
|
|
866
|
-
onClick: (i) =>
|
|
867
|
-
}, null, 40,
|
|
883
|
+
onClick: (i) => $t(o, n)
|
|
884
|
+
}, null, 40, mo)) : G("", !0),
|
|
868
885
|
ye("text", {
|
|
869
886
|
fill: o.color,
|
|
870
887
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
@@ -881,20 +898,20 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
881
898
|
"stroke-linejoin": "round",
|
|
882
899
|
style: Te(`
|
|
883
900
|
pointer-events:none;
|
|
884
|
-
fill-opacity:${!ue.value || ue.value === o.id || !
|
|
901
|
+
fill-opacity:${!ue.value || ue.value === o.id || !Ae.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
885
902
|
`)
|
|
886
|
-
}, Ee(o.name), 13,
|
|
887
|
-
], 8,
|
|
888
|
-
], 10,
|
|
889
|
-
|
|
903
|
+
}, Ee(o.name), 13, fo)
|
|
904
|
+
], 8, ho))), 128))
|
|
905
|
+
], 10, vo),
|
|
906
|
+
b(t.$slots, "svg", {
|
|
890
907
|
svg: { height: s.value.height, width: s.value.width }
|
|
891
908
|
}, void 0, !0)
|
|
892
|
-
], 10,
|
|
893
|
-
t.$slots.watermark ? (
|
|
894
|
-
|
|
895
|
-
])) :
|
|
896
|
-
r(
|
|
897
|
-
|
|
909
|
+
], 10, uo)),
|
|
910
|
+
t.$slots.watermark ? (S(), j("div", po, [
|
|
911
|
+
b(t.$slots, "watermark", B(_({ isPrinting: r(Re) || r(We) })), void 0, !0)
|
|
912
|
+
])) : G("", !0),
|
|
913
|
+
r(gt) ? (S(), j("div", go, [
|
|
914
|
+
b(t.$slots, "reset-action", { reset: r(Se) }, () => [
|
|
898
915
|
ye("button", {
|
|
899
916
|
"data-cy-reset": "",
|
|
900
917
|
tabindex: "0",
|
|
@@ -905,15 +922,15 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
905
922
|
}),
|
|
906
923
|
onClick: a[0] || (a[0] = (o) => r(Se)(!0))
|
|
907
924
|
}, [
|
|
908
|
-
|
|
925
|
+
ze(r(y), {
|
|
909
926
|
name: "refresh",
|
|
910
927
|
stroke: e.value.style.chart.color
|
|
911
928
|
}, null, 8, ["stroke"])
|
|
912
929
|
], 4)
|
|
913
930
|
], !0)
|
|
914
|
-
])) :
|
|
915
|
-
|
|
916
|
-
show:
|
|
931
|
+
])) : G("", !0),
|
|
932
|
+
ze(r(f), {
|
|
933
|
+
show: p.value.showTooltip && ve.value,
|
|
917
934
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
918
935
|
color: e.value.style.chart.tooltip.color,
|
|
919
936
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -923,7 +940,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
923
940
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
924
941
|
position: e.value.style.chart.tooltip.position,
|
|
925
942
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
926
|
-
parent:
|
|
943
|
+
parent: w.value,
|
|
927
944
|
content: Ie.value,
|
|
928
945
|
isCustom: ge.value,
|
|
929
946
|
isFullscreen: ie.value,
|
|
@@ -932,29 +949,29 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
932
949
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
933
950
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
934
951
|
}, {
|
|
935
|
-
"tooltip-before":
|
|
936
|
-
|
|
952
|
+
"tooltip-before": g(() => [
|
|
953
|
+
b(t.$slots, "tooltip-before", B(_({ ...De.value })), void 0, !0)
|
|
937
954
|
]),
|
|
938
|
-
"tooltip-after":
|
|
939
|
-
|
|
955
|
+
"tooltip-after": g(() => [
|
|
956
|
+
b(t.$slots, "tooltip-after", B(_({ ...De.value })), void 0, !0)
|
|
940
957
|
]),
|
|
941
958
|
_: 3
|
|
942
959
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
943
|
-
t.$slots.source ? (
|
|
960
|
+
t.$slots.source ? (S(), j("div", {
|
|
944
961
|
key: 5,
|
|
945
962
|
ref_key: "source",
|
|
946
963
|
ref: Ce,
|
|
947
964
|
dir: "auto"
|
|
948
965
|
}, [
|
|
949
|
-
|
|
950
|
-
], 512)) :
|
|
951
|
-
|
|
966
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
967
|
+
], 512)) : G("", !0),
|
|
968
|
+
q.value && e.value.userOptions.buttons.table ? (S(), ce(It(pe.value.component), Dt({ key: 6 }, pe.value.props, {
|
|
952
969
|
ref_key: "tableUnit",
|
|
953
970
|
ref: K,
|
|
954
971
|
onClose: Ge
|
|
955
|
-
}),
|
|
956
|
-
content:
|
|
957
|
-
(
|
|
972
|
+
}), Je({
|
|
973
|
+
content: g(() => [
|
|
974
|
+
(S(), ce(r(C), {
|
|
958
975
|
key: `table_${we.value}`,
|
|
959
976
|
colNames: $e.value.colNames,
|
|
960
977
|
head: $e.value.head,
|
|
@@ -964,14 +981,14 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
964
981
|
withCloseButton: !e.value.table.useDialog,
|
|
965
982
|
onClose: Ge
|
|
966
983
|
}, {
|
|
967
|
-
th:
|
|
984
|
+
th: g(({ th: o }) => [
|
|
968
985
|
ye("div", {
|
|
969
986
|
innerHTML: o,
|
|
970
987
|
style: { display: "flex", "align-items": "center" }
|
|
971
|
-
}, null, 8,
|
|
988
|
+
}, null, 8, bo)
|
|
972
989
|
]),
|
|
973
|
-
td:
|
|
974
|
-
|
|
990
|
+
td: g(({ td: o }) => [
|
|
991
|
+
Qe(Ee(o.name || o), 1)
|
|
975
992
|
]),
|
|
976
993
|
_: 1
|
|
977
994
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -980,20 +997,20 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
980
997
|
}, [
|
|
981
998
|
e.value.table.useDialog ? {
|
|
982
999
|
name: "title",
|
|
983
|
-
fn:
|
|
984
|
-
|
|
1000
|
+
fn: g(() => [
|
|
1001
|
+
Qe(Ee(pe.value.title), 1)
|
|
985
1002
|
]),
|
|
986
1003
|
key: "0"
|
|
987
1004
|
} : void 0,
|
|
988
1005
|
e.value.table.useDialog ? {
|
|
989
1006
|
name: "actions",
|
|
990
|
-
fn:
|
|
1007
|
+
fn: g(() => [
|
|
991
1008
|
ye("button", {
|
|
992
1009
|
tabindex: "0",
|
|
993
1010
|
class: "vue-ui-user-options-button",
|
|
994
|
-
onClick: a[1] || (a[1] = (o) =>
|
|
1011
|
+
onClick: a[1] || (a[1] = (o) => Oe(e.value.userOptions.callbacks.csv))
|
|
995
1012
|
}, [
|
|
996
|
-
|
|
1013
|
+
ze(r(y), {
|
|
997
1014
|
name: "excel",
|
|
998
1015
|
stroke: pe.value.props.color
|
|
999
1016
|
}, null, 8, ["stroke"])
|
|
@@ -1001,16 +1018,16 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1001
1018
|
]),
|
|
1002
1019
|
key: "1"
|
|
1003
1020
|
} : void 0
|
|
1004
|
-
]), 1040)) :
|
|
1005
|
-
r(
|
|
1006
|
-
], 44,
|
|
1021
|
+
]), 1040)) : G("", !0),
|
|
1022
|
+
r(A) ? (S(), ce(qt, { key: 7 })) : G("", !0)
|
|
1023
|
+
], 44, io));
|
|
1007
1024
|
}
|
|
1008
|
-
},
|
|
1025
|
+
}, Co = /* @__PURE__ */ lo(yo, [["__scopeId", "data-v-7164e284"]]), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1009
1026
|
__proto__: null,
|
|
1010
|
-
default:
|
|
1027
|
+
default: Co
|
|
1011
1028
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1012
1029
|
export {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1030
|
+
Eo as a,
|
|
1031
|
+
Bo as b,
|
|
1032
|
+
Co as v
|
|
1016
1033
|
};
|