vue-data-ui 3.7.15 → 3.8.0
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 +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +5 -0
- 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-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as zt, defineAsyncComponent as oe, computed as ae, ref as M, toRefs as Rt, watch as we, shallowRef as Ge, onMounted as Yt, onBeforeUnmount as Dt, createElementBlock as G, openBlock as _, unref as S, normalizeStyle as Me, createBlock as ve, createCommentVNode as J, createVNode as Ie, withCtx as O, renderSlot as P, normalizeProps as N, guardReactiveProps as V, createSlots as Je, normalizeClass as Ke, createElementVNode as xe, Fragment as Wt, renderList as _t, toDisplayString as Ye, resolveDynamicComponent as Bt, mergeProps as Nt, createTextVNode as Qe, nextTick as et } from "vue";
|
|
2
2
|
import { d as tt, u as Vt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import { c as Zt, t as Ut,
|
|
4
|
-
import { u as to, a as De } from "./useNestedProp-
|
|
3
|
+
import { c as Zt, t as Ut, H as Lt, T as Ht, i as jt, p as Oe, o as ot, g as at, k as qt, d as Gt, X as Jt, u as Kt, q as Qt, x as eo } from "./lib-qMPkcvmh.js";
|
|
4
|
+
import { u as to, a as De } from "./useNestedProp-DOOBu_sL.js";
|
|
5
5
|
import { u as oo, B as ao } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as no } from "./usePrinter-
|
|
6
|
+
import { u as no } from "./usePrinter-CjGh4mFJ.js";
|
|
7
7
|
import { u as lo } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as so } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
9
|
import { u as io } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as ro } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import uo from "./img-
|
|
12
|
-
import co from "./Title-
|
|
13
|
-
import { u as mo } from "./usePanZoom-
|
|
11
|
+
import uo from "./img-CwrkWkkl.js";
|
|
12
|
+
import co from "./Title-CgkWUXeV.js";
|
|
13
|
+
import { u as mo } from "./usePanZoom-DMfuOfaC.js";
|
|
14
14
|
import { _ as vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
function fo({
|
|
16
16
|
word: o,
|
|
@@ -562,8 +562,8 @@ async function Oo({
|
|
|
562
562
|
canvas: R,
|
|
563
563
|
ctx: z,
|
|
564
564
|
svg: m
|
|
565
|
-
}), E = ie.key, ge = ie.bitmap, Pe = ge.w,
|
|
566
|
-
if (Pe <= 0 ||
|
|
565
|
+
}), E = ie.key, ge = ie.bitmap, Pe = ge.w, H = ge.h;
|
|
566
|
+
if (Pe <= 0 || H <= 0) {
|
|
567
567
|
await g();
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
@@ -649,7 +649,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
649
649
|
zt((t) => ({
|
|
650
650
|
v99bcef08: t.slicerColor
|
|
651
651
|
}));
|
|
652
|
-
const m = oe(() => import("./Tooltip-
|
|
652
|
+
const m = oe(() => import("./Tooltip-OHx7yHlS.js")), c = oe(() => import("./BaseIcon-CALhpING.js")), r = oe(() => import("./vue-ui-accordion-BWfQ8Imt.js")), d = oe(() => import("./DataTable-Ca1twcf7.js")), i = oe(() => import("./PenAndPaper-DscVdZ1u.js")), a = oe(() => import("./UserOptions-ChRXLqps.js")), p = oe(() => import("./PackageVersion-B9RA2_BM.js")), v = oe(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_word_cloud: g } = to(), { isThemeValid: y, warnInvalidTheme: b } = so(), f = o, u = ae({
|
|
653
653
|
get() {
|
|
654
654
|
return !!f.dataset && f.dataset.length;
|
|
655
655
|
},
|
|
@@ -740,7 +740,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
740
740
|
function W() {
|
|
741
741
|
return typeof ne.value == "string" ? Lt(ne.value) : ne.value.map((t, C) => ({
|
|
742
742
|
...t,
|
|
743
|
-
value:
|
|
743
|
+
value: Ht(t.value)
|
|
744
744
|
}));
|
|
745
745
|
}
|
|
746
746
|
const { userOptionsVisible: L, setUserOptionsVisibility: K, keepUserOptionState: he } = io({ config: e.value }), { svgRef: X } = ro({ config: e.value.style.chart.title });
|
|
@@ -761,7 +761,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
761
761
|
});
|
|
762
762
|
return {
|
|
763
763
|
...F,
|
|
764
|
-
customPalette: F.customPalette.length ? F.customPalette :
|
|
764
|
+
customPalette: F.customPalette.length ? F.customPalette : jt[C] || Oe
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
const se = M({ x: 0, y: 0 });
|
|
@@ -802,7 +802,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
802
802
|
});
|
|
803
803
|
}, 100), Pe = () => {
|
|
804
804
|
ie.value = !0, ge();
|
|
805
|
-
},
|
|
805
|
+
}, H = Ge(null), te = Ge(null);
|
|
806
806
|
Yt(Fe);
|
|
807
807
|
const ce = ae(() => !!e.value.debug);
|
|
808
808
|
function Fe() {
|
|
@@ -811,7 +811,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
811
811
|
type: "dataset",
|
|
812
812
|
debug: ce.value
|
|
813
813
|
}) : U.value.forEach((t, C) => {
|
|
814
|
-
|
|
814
|
+
qt({
|
|
815
815
|
datasetObject: t,
|
|
816
816
|
requiredAttributes: ["name", "value"]
|
|
817
817
|
}).forEach((n) => {
|
|
@@ -823,10 +823,10 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
823
823
|
debug: ce.value
|
|
824
824
|
});
|
|
825
825
|
});
|
|
826
|
-
}), ot(f.dataset) || (le.value = e.value.loading), e.value.responsive && (
|
|
826
|
+
}), ot(f.dataset) || (le.value = e.value.loading), e.value.responsive && (H.value && (te.value && H.value.unobserve(te.value), H.value.disconnect()), H.value = new ResizeObserver(Pe), te.value = k.value.parentNode, H.value.observe(te.value)), ue();
|
|
827
827
|
}
|
|
828
828
|
Dt(() => {
|
|
829
|
-
|
|
829
|
+
H.value && (te.value && H.value.unobserve(te.value), H.value.disconnect());
|
|
830
830
|
});
|
|
831
831
|
const { isPrinting: We, isImaging: _e, generatePdf: Be, generateImage: Ne } = no({
|
|
832
832
|
elementId: `wordCloud_${s.value}`,
|
|
@@ -847,22 +847,22 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
847
847
|
height: C
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
|
-
const
|
|
850
|
+
const j = M([]), be = /* @__PURE__ */ new Map();
|
|
851
851
|
function Ve() {
|
|
852
852
|
const t = [...U.value].map(($) => $.value), C = Math.max(...t), n = Math.min(...t), F = [...U.value].map(($, T) => {
|
|
853
|
-
let
|
|
854
|
-
|
|
855
|
-
const re = wt($.name,
|
|
853
|
+
let q = ($.value - n) / (C - n) * (E.value.maxFontSize - E.value.minFontSize) + E.value.minFontSize;
|
|
854
|
+
q = isNaN(q) ? E.value.minFontSize : q;
|
|
855
|
+
const re = wt($.name, q);
|
|
856
856
|
return {
|
|
857
857
|
...$,
|
|
858
858
|
id: $.id ?? `${$.name}__${T}`,
|
|
859
|
-
fontSize:
|
|
859
|
+
fontSize: q,
|
|
860
860
|
width: re.width,
|
|
861
861
|
height: re.height,
|
|
862
862
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[T] || e.value.customPalette[T % e.value.customPalette.length] || Oe[T] || Oe[T % Oe.length] : e.value.style.chart.words.color
|
|
863
863
|
};
|
|
864
864
|
});
|
|
865
|
-
|
|
865
|
+
j.value.length = 0, be.clear(), Oo({
|
|
866
866
|
debugTiming: ce.value,
|
|
867
867
|
words: F,
|
|
868
868
|
svg: E.value,
|
|
@@ -870,25 +870,25 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
870
870
|
strictPixelPadding: e.value.strictPixelPadding,
|
|
871
871
|
onProgress: ({ all: $ }) => {
|
|
872
872
|
for (const T of $) {
|
|
873
|
-
const
|
|
874
|
-
let re = be.get(
|
|
873
|
+
const q = T.id;
|
|
874
|
+
let re = be.get(q);
|
|
875
875
|
if (re === void 0)
|
|
876
|
-
re =
|
|
876
|
+
re = j.value.length, be.set(q, re), j.value.push({ ...T });
|
|
877
877
|
else {
|
|
878
|
-
const Q =
|
|
878
|
+
const Q = j.value[re];
|
|
879
879
|
Q.x = T.x, Q.y = T.y, Q.width = T.width, Q.height = T.height, Q.fontSize = T.fontSize, Q.minX = T.minX, Q.minY = T.minY, Q.maxX = T.maxX, Q.maxY = T.maxY;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
}),
|
|
883
|
+
}), j.value.sort(($, T) => T.fontSize - $.fontSize), be.clear(), j.value.forEach(($, T) => {
|
|
884
884
|
be.set($.id, T);
|
|
885
885
|
}), Z.value = !0, ee.value = !1;
|
|
886
886
|
}
|
|
887
887
|
const Ae = ae(() => {
|
|
888
|
-
const t =
|
|
888
|
+
const t = j.value.map((n) => ({
|
|
889
889
|
name: n.name,
|
|
890
890
|
color: n.color
|
|
891
|
-
})), C =
|
|
891
|
+
})), C = j.value.map((n) => n.value);
|
|
892
892
|
return { head: t, body: C };
|
|
893
893
|
});
|
|
894
894
|
function Xe(t = null) {
|
|
@@ -904,13 +904,13 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
904
904
|
e.value.table.columnNames.series,
|
|
905
905
|
e.value.table.columnNames.value
|
|
906
906
|
], C = Ae.value.head.map(($, T) => {
|
|
907
|
-
const
|
|
907
|
+
const q = Gt({ p: e.value.table.td.prefix, v: Ae.value.body[T], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
908
908
|
return [
|
|
909
909
|
{
|
|
910
910
|
color: $.color,
|
|
911
911
|
name: $.name
|
|
912
912
|
},
|
|
913
|
-
|
|
913
|
+
q
|
|
914
914
|
];
|
|
915
915
|
}), n = {
|
|
916
916
|
th: {
|
|
@@ -939,7 +939,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
939
939
|
de.value = t, A.value += 1;
|
|
940
940
|
}
|
|
941
941
|
function xt() {
|
|
942
|
-
return
|
|
942
|
+
return j.value;
|
|
943
943
|
}
|
|
944
944
|
function Ue() {
|
|
945
945
|
I.value.showTable = !I.value.showTable;
|
|
@@ -951,7 +951,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
951
951
|
function Ee() {
|
|
952
952
|
ye.value = !ye.value;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function He() {
|
|
955
955
|
I.value.showZoom = !I.value.showZoom;
|
|
956
956
|
}
|
|
957
957
|
const Ft = ae(() => !ye.value && I.value.showZoom), { viewBox: $e, resetZoom: Te, isZoom: At, setInitialViewBox: St } = mo(X, {
|
|
@@ -1008,7 +1008,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1008
1008
|
we(() => I.value.showTable, (t) => {
|
|
1009
1009
|
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
1010
1010
|
});
|
|
1011
|
-
function
|
|
1011
|
+
function je() {
|
|
1012
1012
|
I.value.showTable = !1, z.value && z.value.setTableIconState(!1);
|
|
1013
1013
|
}
|
|
1014
1014
|
const Tt = ae(() => e.value.style.chart.backgroundColor), Mt = ae(() => e.value.style.chart.title), { exportSvg: It, getSvg: Ot } = lo({
|
|
@@ -1016,7 +1016,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1016
1016
|
title: Mt,
|
|
1017
1017
|
backgroundColor: Tt
|
|
1018
1018
|
});
|
|
1019
|
-
async function
|
|
1019
|
+
async function qe({ isCb: t }) {
|
|
1020
1020
|
if (t) {
|
|
1021
1021
|
const { blob: C, url: n, text: F, dataUrl: $ } = await Ot();
|
|
1022
1022
|
e.value.userOptions.callbacks.svg({ blob: C, url: n, text: F, dataUrl: $ });
|
|
@@ -1029,13 +1029,13 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1029
1029
|
generateCsv: Xe,
|
|
1030
1030
|
generatePdf: Be,
|
|
1031
1031
|
generateImage: Ne,
|
|
1032
|
-
generateSvg:
|
|
1032
|
+
generateSvg: qe,
|
|
1033
1033
|
resetZoom: Te,
|
|
1034
1034
|
toggleTable: Ue,
|
|
1035
1035
|
toggleTooltip: Le,
|
|
1036
1036
|
toggleAnnotator: Ee,
|
|
1037
1037
|
toggleFullscreen: Ze,
|
|
1038
|
-
toggleZoom:
|
|
1038
|
+
toggleZoom: He
|
|
1039
1039
|
});
|
|
1040
1040
|
const me = M(null), ke = M(!1), ze = M(""), Re = M(null);
|
|
1041
1041
|
function Pt(t, C) {
|
|
@@ -1153,11 +1153,11 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1153
1153
|
onGeneratePdf: S(Be),
|
|
1154
1154
|
onGenerateCsv: Xe,
|
|
1155
1155
|
onGenerateImage: S(Ne),
|
|
1156
|
-
onGenerateSvg:
|
|
1156
|
+
onGenerateSvg: qe,
|
|
1157
1157
|
onToggleTable: Ue,
|
|
1158
1158
|
onToggleTooltip: Le,
|
|
1159
1159
|
onToggleAnnotator: Ee,
|
|
1160
|
-
onToggleZoom:
|
|
1160
|
+
onToggleZoom: He,
|
|
1161
1161
|
style: Me({
|
|
1162
1162
|
visibility: S(he) ? S(L) ? "visible" : "hidden" : "visible"
|
|
1163
1163
|
})
|
|
@@ -1251,7 +1251,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1251
1251
|
transform: `translate(${se.value.x}, ${se.value.y})`,
|
|
1252
1252
|
class: Ke({ "wc-finalized": Z.value })
|
|
1253
1253
|
}, [
|
|
1254
|
-
(_(!0), G(Wt, null, _t(
|
|
1254
|
+
(_(!0), G(Wt, null, _t(j.value, (n, F) => (_(), G("g", {
|
|
1255
1255
|
key: n.id,
|
|
1256
1256
|
class: "vue-ui-word-cloud-word",
|
|
1257
1257
|
transform: `translate(${n.x}, ${n.y})`
|
|
@@ -1354,7 +1354,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1354
1354
|
u.value && e.value.userOptions.buttons.table ? (_(), ve(Bt(Ce.value.component), Nt({ key: 6 }, Ce.value.props, {
|
|
1355
1355
|
ref_key: "tableUnit",
|
|
1356
1356
|
ref: R,
|
|
1357
|
-
onClose:
|
|
1357
|
+
onClose: je
|
|
1358
1358
|
}), Je({
|
|
1359
1359
|
content: O(() => [
|
|
1360
1360
|
(_(), ve(S(d), {
|
|
@@ -1365,7 +1365,7 @@ const ht = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1365
1365
|
config: Se.value.config,
|
|
1366
1366
|
title: e.value.table.useDialog ? "" : Ce.value.title,
|
|
1367
1367
|
withCloseButton: !e.value.table.useDialog,
|
|
1368
|
-
onClose:
|
|
1368
|
+
onClose: je
|
|
1369
1369
|
}, {
|
|
1370
1370
|
th: O(({ th: n }) => [
|
|
1371
1371
|
xe("div", {
|