vue-data-ui 3.20.11 → 3.21.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/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-bump.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/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +5 -1
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
- package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
- package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
- package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
- package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
- package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
- package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
- package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
- package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
- package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
- package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
- package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
- package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
- package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
- package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
- package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
- package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
- package/dist/vue-ui-xy-omDIF90L.js +0 -4744
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ct as t, Ft as n, G as r, H as i, Ht as a, St as o, Tt as s, X as c, i as l, t as u, v as d } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as f } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as p } from "./usePrinter-
|
|
4
|
+
import { t as p } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as m, t as h } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as g } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as _ } from "./useNestedProp-
|
|
7
|
+
import { t as _ } from "./useNestedProp-DtcXIg7n.js";
|
|
8
8
|
import { t as v } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as y } from "./img-
|
|
10
|
-
import { n as b } from "./Title-
|
|
9
|
+
import { t as y } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as b } from "./Title-DH6G8_cZ.js";
|
|
11
11
|
import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ee } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as te } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -119,7 +119,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
119
119
|
c5f7f2ee: It.value,
|
|
120
120
|
c5f82dc8: Lt.value
|
|
121
121
|
}));
|
|
122
|
-
let Re = ce(() => import("./PenAndPaper-
|
|
122
|
+
let Re = ce(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), ze = ce(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Be = ce(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = re(), z = e, We = _e, Ge = w(() => !!z.dataset && Object.keys(z.dataset).length), B = N(i()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = w(() => H.value.userOptions.useCursorPointer), tt = w(() => a({
|
|
123
123
|
defaultConfig: {
|
|
124
124
|
userOptions: { show: !1 },
|
|
125
125
|
style: { chart: {
|
|
@@ -140,7 +140,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
140
140
|
FINAL_CONFIG: H,
|
|
141
141
|
prepareConfig: st,
|
|
142
142
|
skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
|
|
143
|
-
skeletonConfig:
|
|
143
|
+
skeletonConfig: a({
|
|
144
144
|
defaultConfig: H.value,
|
|
145
145
|
userConfig: tt.value
|
|
146
146
|
})
|
|
@@ -194,7 +194,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
194
194
|
});
|
|
195
195
|
let mt = w(() => !!H.value.debug);
|
|
196
196
|
function ht() {
|
|
197
|
-
if (
|
|
197
|
+
if (s(z.dataset) && c({
|
|
198
198
|
componentName: "VueUiWheel",
|
|
199
199
|
type: "dataset",
|
|
200
200
|
debug: mt.value
|
|
@@ -238,10 +238,10 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
238
238
|
let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
|
|
239
239
|
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
240
240
|
}
|
|
241
|
-
function yt({ cx: e, cy: t, radius:
|
|
242
|
-
let p = s * Math.PI / 180, m =
|
|
243
|
-
for (let
|
|
244
|
-
let
|
|
241
|
+
function yt({ cx: e, cy: t, radius: r, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
|
|
242
|
+
let p = s * Math.PI / 180, m = r, h = r * i, g = [];
|
|
243
|
+
for (let r = 0; r < a; r += 1) {
|
|
244
|
+
let i = (r / a * 360 + o) * Math.PI / 180, s = e + m * Math.cos(i), _ = t + m * Math.sin(i), v = e + h * Math.cos(i), y = t + h * Math.sin(i), b = [
|
|
245
245
|
s - e,
|
|
246
246
|
_ - t,
|
|
247
247
|
0
|
|
@@ -257,9 +257,9 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
257
257
|
ne,
|
|
258
258
|
re,
|
|
259
259
|
ie
|
|
260
|
-
], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(
|
|
260
|
+
], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(r) : !0, A = H.value.style.chart.layout.wheel.ticks.gradient.show ? n(u, r * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = vt(k ? A : d, le), ue = Math.max(1.25, l * T * (Math.min(W.value.width, W.value.height) / 360));
|
|
261
261
|
g.push({
|
|
262
|
-
i:
|
|
262
|
+
i: r,
|
|
263
263
|
x1: oe,
|
|
264
264
|
y1: se,
|
|
265
265
|
x2: ce,
|
|
@@ -273,7 +273,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
273
273
|
}
|
|
274
274
|
let bt = w(() => {
|
|
275
275
|
if (!H.value.layout === "3d") return null;
|
|
276
|
-
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
276
|
+
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? n(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, r = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
277
277
|
return yt({
|
|
278
278
|
cx: K.value.centerX,
|
|
279
279
|
cy: K.value.centerY,
|
|
@@ -283,9 +283,9 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
283
283
|
startDeg: -90,
|
|
284
284
|
axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
|
|
285
285
|
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
286
|
-
baseStroke:
|
|
286
|
+
baseStroke: i,
|
|
287
287
|
activeColor: t,
|
|
288
|
-
inactiveColor:
|
|
288
|
+
inactiveColor: r,
|
|
289
289
|
getActive: (e) => q.value > e * Q.value
|
|
290
290
|
});
|
|
291
291
|
});
|
|
@@ -371,14 +371,14 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
371
371
|
s: d
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function Tt({ cx: e, cy: t, radius:
|
|
375
|
-
let p = s * Math.PI / 180, m =
|
|
376
|
-
for (let
|
|
377
|
-
let
|
|
374
|
+
function Tt({ cx: e, cy: t, radius: r, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
|
|
375
|
+
let p = s * Math.PI / 180, m = r, h = r * i, g = 2 * Math.PI / a, _ = [];
|
|
376
|
+
for (let r = 0; r < a; r += 1) {
|
|
377
|
+
let i = o * Math.PI / 180 + g * r, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
|
|
378
378
|
cx: e,
|
|
379
379
|
cy: t + f,
|
|
380
380
|
r: m,
|
|
381
|
-
aRad:
|
|
381
|
+
aRad: i,
|
|
382
382
|
ax: p,
|
|
383
383
|
f: c
|
|
384
384
|
}), y = wt({
|
|
@@ -399,15 +399,15 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
399
399
|
cx: e,
|
|
400
400
|
cy: t + f,
|
|
401
401
|
r: h,
|
|
402
|
-
aRad:
|
|
402
|
+
aRad: i,
|
|
403
403
|
ax: p,
|
|
404
404
|
f: c
|
|
405
|
-
}), ee = (v.z + y.z + x.z + b.z) / 4, te = vt(!d || d(
|
|
405
|
+
}), ee = (v.z + y.z + x.z + b.z) / 4, te = vt(!d || d(r) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? n(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * r / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
|
|
406
406
|
let e = m * Math.sin(p) || 1;
|
|
407
407
|
return (ee - -e) / (2 * e);
|
|
408
408
|
})()), S = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
|
|
409
409
|
_.push({
|
|
410
|
-
i:
|
|
410
|
+
i: r,
|
|
411
411
|
d: S,
|
|
412
412
|
fill: te,
|
|
413
413
|
z: ee
|
|
@@ -443,17 +443,17 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
443
443
|
let Z = w(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = w(() => 100 / Z.value), Ot = w(() => {
|
|
444
444
|
let e = [];
|
|
445
445
|
for (let t = 0; t < Z.value; t += 1) {
|
|
446
|
-
let
|
|
446
|
+
let r = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = pt(W.value.size / Z.value * t), { x: o, y: s } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
447
447
|
e.push({
|
|
448
|
-
x1:
|
|
449
|
-
y1:
|
|
448
|
+
x1: i,
|
|
449
|
+
y1: a,
|
|
450
450
|
x2: o,
|
|
451
451
|
y2: s,
|
|
452
|
-
color: H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
452
|
+
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? n(r, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : r
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
return e;
|
|
456
|
-
}), kt = w(() =>
|
|
456
|
+
}), kt = w(() => t({ series: Ot.value.map((e) => ({
|
|
457
457
|
name: "",
|
|
458
458
|
value: 1,
|
|
459
459
|
color: e.color
|
|
@@ -528,8 +528,8 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
528
528
|
dataset: U.value
|
|
529
529
|
}));
|
|
530
530
|
}
|
|
531
|
-
let Wt = w(() => `${B.value}-title`), Gt = w(() => `${B.value}-desc`), Kt = w(() =>
|
|
532
|
-
v:
|
|
531
|
+
let Wt = w(() => `${B.value}-title`), Gt = w(() => `${B.value}-desc`), Kt = w(() => l(H.value.style.chart.layout.percentage.formatter, d(q.value), r({
|
|
532
|
+
v: d(q.value),
|
|
533
533
|
s: "%",
|
|
534
534
|
r: H.value.style.chart.layout.percentage.rounding
|
|
535
535
|
}))), qt = w(() => H.value.style.chart.title.text || ""), Jt = w(() => nt.value ? "..." : `${Kt.value}`);
|
|
@@ -713,7 +713,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
713
713
|
(M(), D("svg", {
|
|
714
714
|
ref_key: "svgRef",
|
|
715
715
|
ref: ot,
|
|
716
|
-
xmlns: I(
|
|
716
|
+
xmlns: I(u),
|
|
717
717
|
class: k({
|
|
718
718
|
"vue-data-ui-fullscreen--on": At.value,
|
|
719
719
|
"vue-data-ui-fulscreen--off": !At.value,
|
|
@@ -759,7 +759,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
759
759
|
y1: t.y1 - e,
|
|
760
760
|
x2: t.x2,
|
|
761
761
|
y2: t.y2 - e,
|
|
762
|
-
stroke: I(
|
|
762
|
+
stroke: I(o)(t.color, .25 * e / 5),
|
|
763
763
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
764
764
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
765
765
|
class: k({
|
|
@@ -791,7 +791,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
791
791
|
}, null, 8, ke))), 128)), (M(!0), D(C, null, P(Et.value(-e) || [], (t) => (M(), D("path", {
|
|
792
792
|
key: t.i,
|
|
793
793
|
d: t.d,
|
|
794
|
-
fill: I(
|
|
794
|
+
fill: I(o)(t.fill, .5 * e / $.value),
|
|
795
795
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
796
796
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
797
797
|
"stroke-linecap": "round",
|
|
@@ -853,7 +853,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
853
853
|
x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
|
|
854
854
|
y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
|
|
855
855
|
"font-size": G.value,
|
|
856
|
-
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(
|
|
856
|
+
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(n)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
|
|
857
857
|
"text-anchor": "middle",
|
|
858
858
|
"font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
859
859
|
style: { "font-variant-numeric": "tabluar-nums" },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t,
|
|
2
|
+
import { Bt as t, G as n, H as r, Ht as i, J as a, Ot as o, S as s, Tt as c, U as l, X as u, ct as d, ht as f, t as p, v as m } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as h } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as g } from "./usePrinter-
|
|
4
|
+
import { t as g } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as _, t as v } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as ee } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as y } from "./useNestedProp-
|
|
7
|
+
import { t as y } from "./useNestedProp-DtcXIg7n.js";
|
|
8
8
|
import { t as b } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as te } from "./img-
|
|
10
|
-
import { n as ne } from "./Title-
|
|
9
|
+
import { t as te } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as ne } from "./Title-DH6G8_cZ.js";
|
|
11
11
|
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { r as ie } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -16,7 +16,7 @@ import { t as S } from "./useUserOptionState-DK-_1ddE.js";
|
|
|
16
16
|
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
17
|
import { t as se } from "./usePanZoom-CYU3B4T3.js";
|
|
18
18
|
import { t as ce } from "./vue_ui_word_cloud-C-qIMNLu.js";
|
|
19
|
-
import { t as le } from "./BaseZoomControls-
|
|
19
|
+
import { t as le } from "./BaseZoomControls-Dbtq9oyx.js";
|
|
20
20
|
import { Fragment as ue, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as de, createTextVNode as fe, createVNode as pe, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as me, nextTick as he, normalizeClass as ge, normalizeProps as A, normalizeStyle as _e, onBeforeUnmount as ve, onMounted as ye, openBlock as j, ref as M, renderList as be, renderSlot as N, resolveDynamicComponent as xe, shallowRef as Se, toDisplayString as Ce, toRefs as we, unref as P, watch as Te, withCtx as F } from "vue";
|
|
21
21
|
//#region src/wordcloud.js
|
|
22
22
|
function Ee({ word: e, fontSize: t, pad: n, canvas: r, ctx: i, svg: a }) {
|
|
@@ -579,17 +579,17 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
579
579
|
},
|
|
580
580
|
emits: ["copyAlt"],
|
|
581
581
|
setup(e, { expose: re, emit: Ee }) {
|
|
582
|
-
let De = O(() => import("./Tooltip-
|
|
582
|
+
let De = O(() => import("./Tooltip-979Ytd8R.js")), Oe = O(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), ke = O(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), Ae = O(() => import("./DataTable-DweDyHc1.js")), je = O(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Me = O(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Ne = O(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Pe = O(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_word_cloud: Fe } = h(), { isThemeValid: Ie, warnInvalidTheme: Le } = b(), I = e, Re = Ee, ze = C({
|
|
583
583
|
get() {
|
|
584
584
|
return !!I.dataset && I.dataset.length;
|
|
585
585
|
},
|
|
586
586
|
set(e) {
|
|
587
587
|
return e;
|
|
588
588
|
}
|
|
589
|
-
}), L = M(
|
|
589
|
+
}), L = M(r()), Be = M(0), R = M(null), Ve = M(null), He = M(null), Ue = M(0), We = M(0), Ge = M(!1), z = M(null), Ke = M(null), qe = M(!1), Je = M(!1), Ye = M(null), Ze = M(!1), B = M(!1), V = M(null), dt = M({
|
|
590
590
|
x: 0,
|
|
591
591
|
y: 0
|
|
592
|
-
}), ft = M("pointer"), pt = M(!1), H = M(Ct()), U = C(() => H.value.userOptions.useCursorPointer), mt = C(() =>
|
|
592
|
+
}), ft = M("pointer"), pt = M(!1), H = M(Ct()), U = C(() => H.value.userOptions.useCursorPointer), mt = C(() => i({
|
|
593
593
|
defaultConfig: {
|
|
594
594
|
userOptions: { show: !1 },
|
|
595
595
|
table: { show: !1 },
|
|
@@ -810,7 +810,7 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
810
810
|
value: 1
|
|
811
811
|
}
|
|
812
812
|
],
|
|
813
|
-
skeletonConfig:
|
|
813
|
+
skeletonConfig: i({
|
|
814
814
|
defaultConfig: H.value,
|
|
815
815
|
userConfig: mt.value
|
|
816
816
|
})
|
|
@@ -826,19 +826,19 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
826
826
|
let e = y({
|
|
827
827
|
userConfig: I.config,
|
|
828
828
|
defaultConfig: Fe
|
|
829
|
-
}),
|
|
830
|
-
if (!
|
|
829
|
+
}), n = e.theme;
|
|
830
|
+
if (!n) return e;
|
|
831
831
|
if (!Ie.value(e)) return Le(e), e;
|
|
832
|
-
let
|
|
833
|
-
userConfig: ce[
|
|
832
|
+
let r = y({
|
|
833
|
+
userConfig: ce[n] || I.config,
|
|
834
834
|
defaultConfig: e
|
|
835
835
|
}), i = y({
|
|
836
836
|
userConfig: I.config,
|
|
837
|
-
defaultConfig:
|
|
837
|
+
defaultConfig: r
|
|
838
838
|
});
|
|
839
839
|
return {
|
|
840
840
|
...i,
|
|
841
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
841
|
+
customPalette: i.customPalette.length ? i.customPalette : t[n] || o
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
844
|
let wt = M({
|
|
@@ -887,7 +887,7 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
887
887
|
ye(jt);
|
|
888
888
|
let At = C(() => !!H.value.debug);
|
|
889
889
|
function jt() {
|
|
890
|
-
|
|
890
|
+
c(I.dataset) ? u({
|
|
891
891
|
componentName: "VueUiWordCloud",
|
|
892
892
|
type: "dataset",
|
|
893
893
|
debug: At.value
|
|
@@ -904,7 +904,7 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
904
904
|
debug: At.value
|
|
905
905
|
});
|
|
906
906
|
});
|
|
907
|
-
}),
|
|
907
|
+
}), c(I.dataset) || (_t.value = H.value.loading), H.value.responsive && (K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect()), K.value = new ResizeObserver(kt), q.value = R.value.parentNode, K.value.observe(q.value)), Tt();
|
|
908
908
|
}
|
|
909
909
|
ve(() => {
|
|
910
910
|
K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect());
|
|
@@ -930,22 +930,22 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
930
930
|
}
|
|
931
931
|
let Y = M([]), Lt = /* @__PURE__ */ new Map();
|
|
932
932
|
function Rt() {
|
|
933
|
-
let e = [...vt.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e),
|
|
934
|
-
let
|
|
935
|
-
|
|
936
|
-
let
|
|
933
|
+
let e = [...vt.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [...vt.value].map((e, r) => {
|
|
934
|
+
let i = (e.value - n) / (t - n) * (G.value.maxFontSize - G.value.minFontSize) + G.value.minFontSize;
|
|
935
|
+
i = isNaN(i) ? G.value.minFontSize : i;
|
|
936
|
+
let a = It(e.name, i);
|
|
937
937
|
return {
|
|
938
938
|
...e,
|
|
939
|
-
id: e.id ?? `${e.name}__${
|
|
940
|
-
fontSize:
|
|
941
|
-
width:
|
|
942
|
-
height:
|
|
943
|
-
color: H.value.style.chart.words.usePalette ? H.value.customPalette[
|
|
939
|
+
id: e.id ?? `${e.name}__${r}`,
|
|
940
|
+
fontSize: i,
|
|
941
|
+
width: a.width,
|
|
942
|
+
height: a.height,
|
|
943
|
+
color: H.value.style.chart.words.usePalette ? H.value.customPalette[r] || H.value.customPalette[r % H.value.customPalette.length] || o[r] || o[r % o.length] : H.value.style.chart.words.color
|
|
944
944
|
};
|
|
945
945
|
});
|
|
946
946
|
Y.value.length = 0, Lt.clear(), Xe({
|
|
947
947
|
debugTiming: At.value,
|
|
948
|
-
words:
|
|
948
|
+
words: r,
|
|
949
949
|
svg: G.value,
|
|
950
950
|
proximity: H.value.style.chart.words.proximity,
|
|
951
951
|
strictPixelPadding: H.value.strictPixelPadding,
|
|
@@ -972,12 +972,12 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
972
972
|
}));
|
|
973
973
|
function Bt(e = null) {
|
|
974
974
|
he(() => {
|
|
975
|
-
let t = zt.value.head.map((e, t) => [[e.name], [zt.value.body[t]]]), n =
|
|
975
|
+
let t = zt.value.head.map((e, t) => [[e.name], [zt.value.body[t]]]), n = s([
|
|
976
976
|
[H.value.style.chart.title.text],
|
|
977
977
|
[H.value.style.chart.title.subtitle.text],
|
|
978
978
|
[[""], [H.value.table.columnNames.value]]
|
|
979
979
|
].concat(t));
|
|
980
|
-
e ? e(n) :
|
|
980
|
+
e ? e(n) : a({
|
|
981
981
|
csvContent: n,
|
|
982
982
|
title: H.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
983
983
|
});
|
|
@@ -985,7 +985,7 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
985
985
|
}
|
|
986
986
|
let X = C(() => {
|
|
987
987
|
let e = [H.value.table.columnNames.series, H.value.table.columnNames.value], t = zt.value.head.map((e, t) => {
|
|
988
|
-
let
|
|
988
|
+
let r = n({
|
|
989
989
|
p: H.value.table.td.prefix,
|
|
990
990
|
v: zt.value.body[t],
|
|
991
991
|
s: H.value.table.td.suffix,
|
|
@@ -994,8 +994,8 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
994
994
|
return [{
|
|
995
995
|
color: e.color,
|
|
996
996
|
name: e.name
|
|
997
|
-
},
|
|
998
|
-
}),
|
|
997
|
+
}, r];
|
|
998
|
+
}), r = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
|
|
999
999
|
th: {
|
|
1000
1000
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
1001
1001
|
color: H.value.table.th.color,
|
|
@@ -1012,8 +1012,8 @@ var Ze = /* @__PURE__ */ e({ default: () => B }), Qe = [
|
|
|
1012
1012
|
colNames: [H.value.table.columnNames.series, H.value.table.columnNames.value],
|
|
1013
1013
|
head: e,
|
|
1014
1014
|
body: t,
|
|
1015
|
-
a11yBody:
|
|
1016
|
-
config:
|
|
1015
|
+
a11yBody: r,
|
|
1016
|
+
config: i
|
|
1017
1017
|
};
|
|
1018
1018
|
}), Z = M(!1);
|
|
1019
1019
|
function Vt(e) {
|