vue-data-ui 3.22.3 → 3.22.5
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-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-CqE8ssFu.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-YOcaZtwF.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-B80rr2N_.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +60 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-mqURXOql.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BZ1Slxfu.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-uUVFZo8M.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-RGCGF_cO.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-CiUmHi6k.js} +259 -259
- package/dist/vue-ui-candlestick-BJUk5fMm.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-BksIDurC.js} +122 -122
- package/dist/vue-ui-chestnut-B3OHA5rg.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-DETV2viY.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-DddaioRm.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-D2-hWt_G.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-Dp7pV6Ps.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-D91C5cXo.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-CMA3U4ZS.js} +4 -4
- package/dist/vue-ui-donut-DObpw5zP.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-DpiS28CQ.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-2B61hvv2.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cmr65TNE.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-7Yfsu6AY.js} +72 -72
- package/dist/vue-ui-funnel-BLRBDW1a.js +777 -0
- package/dist/vue-ui-galaxy-B9cxOcoE.js +1077 -0
- package/dist/vue-ui-gauge-yo4G5HMt.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-BOHI6oMZ.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DI-35oK-.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-DBVM90VE.js} +293 -293
- package/dist/vue-ui-history-plot-BiWpOHKE.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-XBrvSxtJ.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-55wwhSBh.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-DB3rmTw1.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-izcbwGOc.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DRJ1QT2n.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-xTZOmmtb.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-BvAmtyAE.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CJ1xQgYc.js} +654 -654
- package/dist/vue-ui-radar-C26C6p7e.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-Dl1aWFAI.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-BbJa5C-d.js} +468 -468
- package/dist/vue-ui-rings-CyrvskTi.js +1246 -0
- package/dist/vue-ui-scatter-D9Iw5xlb.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-C4D0i9ho.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-CMb7UI2t.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-DEawjWhg.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-mubHGQF_.js} +56 -56
- package/dist/vue-ui-sparkhistogram-D8N-jNBt.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-D4p0PS3-.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-DnrZkIIc.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-BzHSHKqe.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-CWSvsW1n.js} +417 -417
- package/dist/vue-ui-strip-plot-pPiVqFYo.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-BzqQKuL-.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-BnavmY2R.js} +19 -19
- package/dist/vue-ui-thermometer-ePIxpTuE.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-BQZxD91f.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-CDOlCWS8.js} +10 -10
- package/dist/vue-ui-treemap-DrZlX_7n.js +1587 -0
- package/dist/vue-ui-waffle-BpZrFfUb.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-DRfyK9q9.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-D0JUA9I9.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-Dx-41fUM.js} +127 -127
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-BLSGO4Lm.js} +760 -760
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-DpRqQ09J.js} +410 -410
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as se } from "./useConfig-
|
|
4
|
-
import { t as ce } from "./usePrinter-
|
|
2
|
+
import { Gt as t, Jt as n, Ot as r, Q as i, S as a, U as o, Ut as s, W as c, X as ee, b as l, i as te, jt as u, q as ne, r as re, t as ie, ut as ae, w as oe } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as se } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as ce } from "./usePrinter-C0wAS8yc.js";
|
|
5
5
|
import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as de } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-
|
|
7
|
+
import { t as fe } from "./useNestedProp-BjkuFaz1.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as me } from "./img-
|
|
10
|
-
import { n as he } from "./Title-
|
|
11
|
-
import { t as ge } from "./Shape-
|
|
9
|
+
import { t as me } from "./img-B29J8tV5.js";
|
|
10
|
+
import { n as he } from "./Title-DDEEO-Nr.js";
|
|
11
|
+
import { t as ge } from "./Shape-BnF9aMPX.js";
|
|
12
12
|
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as ve } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as ye } from "./useResponsive-BfnK0KxU.js";
|
|
15
15
|
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ce } from "./Legend
|
|
18
|
+
import { t as Ce } from "./Legend-DXOzbXb-.js";
|
|
19
19
|
import { t as we } from "./vue_ui_chord-DPfS1Umc.js";
|
|
20
20
|
import { Fragment as d, Teleport as Te, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ke, nextTick as Ae, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as je, onMounted as Me, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ne, shallowRef as Pe, toDisplayString as E, toRefs as Fe, unref as D, useCssVars as Ie, watch as Le, withCtx as O, withModifiers as Re } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-chord.vue
|
|
@@ -141,7 +141,7 @@ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = ["id"], He
|
|
|
141
141
|
],
|
|
142
142
|
setup(e, { expose: _e, emit: ze }) {
|
|
143
143
|
Ie((e) => ({ v73ba9455: e.slicerColor }));
|
|
144
|
-
let _t = _(() => import("./vue-ui-accordion-
|
|
144
|
+
let _t = _(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), vt = _(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), yt = _(() => import("./DataTable-PidUPOit.js")), bt = _(() => import("./PackageVersion-CqE8ssFu.js").then((e) => e.t)), xt = _(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), St = _(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Ct = _(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_chord: wt } = se(), { isThemeValid: Tt, warnInvalidTheme: Et } = pe(), k = e, Dt = ze, A = C(!!k.dataset && Object.hasOwn(k.dataset, "matrix")), j = C(c()), M = C(null), N = C(null), P = C(null), Ot = C(0), F = C(null), kt = C(null), At = C(null), jt = C(null), Mt = C(null), Nt = C(0), Pt = C(0), Ft = C(0), I = C(!1), L = Pe(null), R = Pe(null), It = C(!1), Lt = C(null), Rt = C(null), zt = C(!1), Bt = C(!1), z = C("group"), B = C(null), Vt = C(!1), V = C(Qt()), H = f(() => V.value.userOptions.useCursorPointer), Ht = f(() => t({
|
|
145
145
|
defaultConfig: {
|
|
146
146
|
useCssAnimation: !1,
|
|
147
147
|
userOptions: { show: !1 },
|
|
@@ -205,7 +205,7 @@ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = ["id"], He
|
|
|
205
205
|
"#969696"
|
|
206
206
|
]
|
|
207
207
|
},
|
|
208
|
-
skeletonConfig:
|
|
208
|
+
skeletonConfig: t({
|
|
209
209
|
defaultConfig: V.value,
|
|
210
210
|
userConfig: Ht.value
|
|
211
211
|
})
|
|
@@ -230,7 +230,7 @@ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = ["id"], He
|
|
|
230
230
|
});
|
|
231
231
|
return {
|
|
232
232
|
...r,
|
|
233
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
233
|
+
customPalette: r.customPalette.length ? r.customPalette : s[t] || u
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
Le(() => k.config, (e) => {
|
|
@@ -241,21 +241,21 @@ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = ["id"], He
|
|
|
241
241
|
en(), tn(), Nt.value += 1, Pt.value += 1, Ft.value += 1;
|
|
242
242
|
});
|
|
243
243
|
function en() {
|
|
244
|
-
if (
|
|
245
|
-
|
|
244
|
+
if (r(k.dataset)) {
|
|
245
|
+
i({
|
|
246
246
|
componentName: "VueUiChord",
|
|
247
247
|
type: "dataset",
|
|
248
248
|
debug: $t.value
|
|
249
249
|
}), A.value = !1, Wt.value = !0;
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
|
-
let e =
|
|
252
|
+
let e = ae({
|
|
253
253
|
datasetObject: k.dataset,
|
|
254
254
|
requiredAttributes: ["matrix"]
|
|
255
255
|
});
|
|
256
256
|
if (e.length) {
|
|
257
257
|
e.forEach((e) => {
|
|
258
|
-
|
|
258
|
+
i({
|
|
259
259
|
componentName: "VueUiChord",
|
|
260
260
|
type: "datasetAttribute",
|
|
261
261
|
property: e,
|
|
@@ -264,16 +264,16 @@ var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = ["id"], He
|
|
|
264
264
|
}), A.value = !1, Wt.value = !0;
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
if (!Array.isArray(
|
|
267
|
+
let t = k.dataset.matrix;
|
|
268
|
+
if (!Array.isArray(t) || t.length < 2) {
|
|
269
269
|
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1, Wt.value = !0;
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
let
|
|
273
|
-
if (
|
|
274
|
-
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${
|
|
272
|
+
let n = t.length, a = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
|
|
273
|
+
if (a !== -1) {
|
|
274
|
+
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${a} has ${Array.isArray(t[a]) ? t[a].length : "NaN"} elements instead of the required ${n}
|
|
275
275
|
|
|
276
|
-
dataset.matrix[${
|
|
276
|
+
dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`), A.value = !1, Wt.value = !0;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
A.value = !0, Wt.value = !1;
|
|
@@ -312,30 +312,30 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
312
312
|
let K = C({
|
|
313
313
|
height: 600,
|
|
314
314
|
width: 600
|
|
315
|
-
}), an = f(() => V.value.userOptions.show && !V.value.style.chart.title.text), on = f(() =>
|
|
315
|
+
}), an = f(() => V.value.userOptions.show && !V.value.style.chart.title.text), on = f(() => a(V.value.customPalette)), q = f(() => ({
|
|
316
316
|
inner: K.value.width * .3 * V.value.style.chart.arcs.innerRadiusRatio,
|
|
317
317
|
outer: K.value.width * .34 * V.value.style.chart.arcs.outerRadiusRatio
|
|
318
318
|
})), sn = f(() => V.value.style.chart.arcs.padAngle / 100), J = f(() => ({
|
|
319
319
|
matrix: U.value.matrix ?? [[0]],
|
|
320
320
|
labels: U.value.labels ?? [""],
|
|
321
|
-
colors: U.value.colors && Array.isArray(U.value.colors) && U.value.colors.length ? U.value.colors.map((e) =>
|
|
321
|
+
colors: U.value.colors && Array.isArray(U.value.colors) && U.value.colors.length ? U.value.colors.map((e) => l(e)) : U.value.matrix.map((e, t) => on.value[t] || u[t] || u[t % u.length])
|
|
322
322
|
}));
|
|
323
323
|
function cn(e, t) {
|
|
324
|
-
let n = e.length,
|
|
325
|
-
for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1)
|
|
326
|
-
let
|
|
324
|
+
let n = e.length, r = q.value.inner, i = Array(n).fill(0), a = 0;
|
|
325
|
+
for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) i[t] += e[t][r], a += e[t][r];
|
|
326
|
+
let o = (2 * Math.PI - t * n) / a, s = [], ee = 0;
|
|
327
327
|
for (let e = 0; e < n; e += 1) {
|
|
328
|
-
let n = ee,
|
|
329
|
-
|
|
328
|
+
let n = ee, r = n + i[e] * o;
|
|
329
|
+
s.push({
|
|
330
330
|
index: e,
|
|
331
331
|
pattern: `pattern_${j.value}_${e}`,
|
|
332
332
|
startAngle: n,
|
|
333
|
-
endAngle:
|
|
333
|
+
endAngle: r,
|
|
334
334
|
name: J.value.labels[e],
|
|
335
|
-
id:
|
|
335
|
+
id: c(),
|
|
336
336
|
color: J.value.colors[e],
|
|
337
|
-
proportion:
|
|
338
|
-
}), ee =
|
|
337
|
+
proportion: i[e] / a
|
|
338
|
+
}), ee = r + t;
|
|
339
339
|
}
|
|
340
340
|
let l = [];
|
|
341
341
|
for (let t = 0; t < n; t += 1) {
|
|
@@ -344,23 +344,23 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
344
344
|
v: e
|
|
345
345
|
}));
|
|
346
346
|
n.sort((e, t) => t.v - e.v);
|
|
347
|
-
let
|
|
347
|
+
let i = s[t].startAngle;
|
|
348
348
|
for (let { j: e, v: a } of n) {
|
|
349
|
-
let n =
|
|
349
|
+
let n = i, c = n + a * o;
|
|
350
350
|
l.push({
|
|
351
351
|
index: t,
|
|
352
352
|
subIndex: e,
|
|
353
353
|
pattern: `pattern_${j.value}_${t}`,
|
|
354
354
|
startAngle: n,
|
|
355
|
-
endAngle:
|
|
355
|
+
endAngle: c,
|
|
356
356
|
value: a,
|
|
357
357
|
groupName: J.value.labels[t],
|
|
358
|
-
groupId:
|
|
358
|
+
groupId: s[t].id,
|
|
359
359
|
groupColor: J.value.colors[t],
|
|
360
|
-
midAngle: (n +
|
|
361
|
-
midBaseX: Math.cos((n +
|
|
362
|
-
midBaseY: Math.sin((n +
|
|
363
|
-
}),
|
|
360
|
+
midAngle: (n + c) / 2,
|
|
361
|
+
midBaseX: Math.cos((n + c) / 2 - Math.PI / 2) * r,
|
|
362
|
+
midBaseY: Math.sin((n + c) / 2 - Math.PI / 2) * r
|
|
363
|
+
}), i = c;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
let te = [];
|
|
@@ -369,11 +369,11 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
369
369
|
te.push({
|
|
370
370
|
source: e,
|
|
371
371
|
target: t,
|
|
372
|
-
id:
|
|
372
|
+
id: c()
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
return {
|
|
376
|
-
groups:
|
|
376
|
+
groups: s,
|
|
377
377
|
chords: te
|
|
378
378
|
};
|
|
379
379
|
}
|
|
@@ -453,12 +453,12 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
453
453
|
return e;
|
|
454
454
|
});
|
|
455
455
|
function dn(e, t, n, r) {
|
|
456
|
-
let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, ee = Math.sin(a) * n, l = Math.cos(a) * r, te = Math.sin(a) * r,
|
|
457
|
-
return `M${o},${s} A${n},${n} 0 ${re} 1 ${c},${ee} L${l},${te} A${r},${r} 0 ${re} 0 ${
|
|
456
|
+
let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, ee = Math.sin(a) * n, l = Math.cos(a) * r, te = Math.sin(a) * r, u = Math.cos(i) * r, ne = Math.sin(i) * r, re = +(t - e > Math.PI);
|
|
457
|
+
return `M${o},${s} A${n},${n} 0 ${re} 1 ${c},${ee} L${l},${te} A${r},${r} 0 ${re} 0 ${u},${ne} Z`;
|
|
458
458
|
}
|
|
459
459
|
function fn(e, t) {
|
|
460
|
-
let n = q.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, ee = Math.cos(i) * n, l = Math.sin(i) * n, te = Math.cos(a) * n,
|
|
461
|
-
return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${ee},${l}Q0,0 ${te},${
|
|
460
|
+
let n = q.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, ee = Math.cos(i) * n, l = Math.sin(i) * n, te = Math.cos(a) * n, u = Math.sin(a) * n, ne = Math.cos(o) * n, re = Math.sin(o) * n;
|
|
461
|
+
return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${ee},${l}Q0,0 ${te},${u}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${ne},${re}Q0,0 ${s},${c}Z`;
|
|
462
462
|
}
|
|
463
463
|
let pn = f(() => X.value * Math.PI / 180);
|
|
464
464
|
function mn(e) {
|
|
@@ -496,7 +496,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
496
496
|
yn.value = !1;
|
|
497
497
|
}
|
|
498
498
|
function En(e) {
|
|
499
|
-
return
|
|
499
|
+
return te(V.value.style.chart.ribbons.labels.formatter, e, ne({
|
|
500
500
|
p: V.value.style.chart.ribbons.labels.prefix,
|
|
501
501
|
v: e,
|
|
502
502
|
s: V.value.style.chart.ribbons.labels.suffix,
|
|
@@ -627,12 +627,12 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
627
627
|
});
|
|
628
628
|
function Kn(e = null) {
|
|
629
629
|
Ae(() => {
|
|
630
|
-
let t = J.value.matrix.map((e, t) => [[J.value.labels[t] || t], e]), n =
|
|
630
|
+
let t = J.value.matrix.map((e, t) => [[J.value.labels[t] || t], e]), n = oe([
|
|
631
631
|
[V.value.style.chart.title.text],
|
|
632
632
|
[V.value.style.chart.title.subtitle.text],
|
|
633
633
|
[[""], ...J.value.labels.map((e, t) => [e || t])]
|
|
634
634
|
].concat(t));
|
|
635
|
-
e ? e(n) :
|
|
635
|
+
e ? e(n) : ee({
|
|
636
636
|
csvContent: n,
|
|
637
637
|
title: V.value.style.chart.title.text || "vue-ui-chord"
|
|
638
638
|
});
|
|
@@ -656,7 +656,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
658
|
function Jn(e, t) {
|
|
659
|
-
return `${J.value.labels[t]}${V.value.style.chart.arcs.labels.showPercentage ?
|
|
659
|
+
return `${J.value.labels[t]}${V.value.style.chart.arcs.labels.showPercentage ? ne({
|
|
660
660
|
p: " (",
|
|
661
661
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
662
662
|
s: "%)",
|
|
@@ -1242,7 +1242,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1242
1242
|
href: `#labelPath-${t}_${j.value}`,
|
|
1243
1243
|
startOffset: "50%",
|
|
1244
1244
|
"text-anchor": "middle"
|
|
1245
|
-
}, E(J.value.labels[t]) + E(V.value.style.chart.arcs.labels.showPercentage ? D(
|
|
1245
|
+
}, E(J.value.labels[t]) + E(V.value.style.chart.arcs.labels.showPercentage ? D(ne)({
|
|
1246
1246
|
p: " (",
|
|
1247
1247
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
1248
1248
|
s: "%)",
|
|
@@ -1259,8 +1259,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1259
1259
|
"font-size": V.value.style.chart.arcs.labels.fontSize,
|
|
1260
1260
|
"font-weight": V.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1261
1261
|
fill: V.value.style.chart.arcs.labels.color,
|
|
1262
|
-
innerHTML: D(
|
|
1263
|
-
content: D(
|
|
1262
|
+
innerHTML: D(o)({
|
|
1263
|
+
content: D(n)(Jn(e, t)),
|
|
1264
1264
|
fontSize: V.value.style.chart.arcs.labels.fontSize,
|
|
1265
1265
|
fill: V.value.style.chart.arcs.labels.color,
|
|
1266
1266
|
x: 0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as re } from "./useConfig-
|
|
4
|
-
import { t as ie } from "./usePrinter-
|
|
2
|
+
import { Gt as t, Ht as n, K as r, Ot as i, Q as a, S as o, Tt as s, Ut as c, V as l, W as u, X as d, b as f, i as p, jt as m, q as h, r as g, t as ee, vt as te, w as ne } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as re } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as ie } from "./usePrinter-C0wAS8yc.js";
|
|
5
5
|
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as se } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ce } from "./useNestedProp-
|
|
7
|
+
import { t as ce } from "./useNestedProp-BjkuFaz1.js";
|
|
8
8
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ue } from "./img-
|
|
10
|
-
import { n as de } from "./Title-
|
|
9
|
+
import { t as ue } from "./img-B29J8tV5.js";
|
|
10
|
+
import { n as de } from "./Title-DDEEO-Nr.js";
|
|
11
11
|
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as pe } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as me } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -294,10 +294,10 @@ var We = class {
|
|
|
294
294
|
emits: ["selectDatapoint", "copyAlt"],
|
|
295
295
|
setup(e, { expose: fe, emit: Pe }) {
|
|
296
296
|
je((e) => ({ v0548cdba: ir.value }));
|
|
297
|
-
let Ie = C(() => import("./Tooltip-
|
|
297
|
+
let Ie = C(() => import("./Tooltip-BhKov422.js")), N = C(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Le = C(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Re = C(() => import("./DataTable-PidUPOit.js")), ze = C(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Be = C(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Ve = C(() => import("./PackageVersion-CqE8ssFu.js").then((e) => e.t)), He = C(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), P = e, Ue = Pe, { vue_ui_circle_pack: We } = re(), { isThemeValid: Ge, warnInvalidTheme: gt } = le(), _t = v(() => !!P.dataset && P.dataset.length), F = O(u()), I = O(null), vt = O(null), yt = O(null), bt = O(0), xt = O(0), St = O(0), Ct = O(null), L = O(null), wt = O(null), Tt = O(!1), Et = O(""), R = O(null), Dt = O(!1), Ot = O(!1), z = O(null), kt = O({
|
|
298
298
|
x: 0,
|
|
299
299
|
y: 0
|
|
300
|
-
}), At = O("pointer"), jt = O(!1), B = O(Rt()), V = v(() => B.value.userOptions.useCursorPointer), Mt = v(() =>
|
|
300
|
+
}), At = O("pointer"), jt = O(!1), B = O(Rt()), V = v(() => B.value.userOptions.useCursorPointer), Mt = v(() => t({
|
|
301
301
|
defaultConfig: {
|
|
302
302
|
userOptions: { show: !1 },
|
|
303
303
|
table: { show: !1 },
|
|
@@ -349,7 +349,7 @@ var We = class {
|
|
|
349
349
|
color: "#696969"
|
|
350
350
|
}
|
|
351
351
|
],
|
|
352
|
-
skeletonConfig:
|
|
352
|
+
skeletonConfig: t({
|
|
353
353
|
defaultConfig: B.value,
|
|
354
354
|
userConfig: Mt.value
|
|
355
355
|
})
|
|
@@ -370,7 +370,7 @@ var We = class {
|
|
|
370
370
|
});
|
|
371
371
|
return {
|
|
372
372
|
...r,
|
|
373
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
373
|
+
customPalette: r.customPalette.length ? r.customPalette : c[t] || m
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
Me(() => P.config, (e) => {
|
|
@@ -459,36 +459,36 @@ var We = class {
|
|
|
459
459
|
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e + Xt(t), 0) : 0;
|
|
460
460
|
}
|
|
461
461
|
function Zt(e, t) {
|
|
462
|
-
let n =
|
|
463
|
-
return
|
|
462
|
+
let n = c[B.value.theme || "default"] || m, r = cn.value.length ? cn.value : n.length ? n : m;
|
|
463
|
+
return f(e.color) || r[t % r.length] || m[t % m.length];
|
|
464
464
|
}
|
|
465
465
|
function Qt(e) {
|
|
466
466
|
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e + Qt(t), 0);
|
|
467
467
|
}
|
|
468
468
|
function $t(e, t = null, n = 0, r = []) {
|
|
469
469
|
return Array.isArray(e) ? e.map((e, i) => {
|
|
470
|
-
let
|
|
471
|
-
if (!Number.isFinite(
|
|
472
|
-
let
|
|
473
|
-
id:
|
|
470
|
+
let a = Xt(e);
|
|
471
|
+
if (!Number.isFinite(a) || a <= 0) return null;
|
|
472
|
+
let o = u(), s = [...r, i], c = s.reduce((e, t, n) => e + t + n, 0), l = e.color || t?.color ? f(e.color || t?.color) : Zt(e, c), d = $t(e.children, {
|
|
473
|
+
id: o,
|
|
474
474
|
name: e.name,
|
|
475
|
-
color:
|
|
476
|
-
rootId: t?.rootId ??
|
|
477
|
-
}, n + 1,
|
|
475
|
+
color: l,
|
|
476
|
+
rootId: t?.rootId ?? o
|
|
477
|
+
}, n + 1, s);
|
|
478
478
|
return {
|
|
479
479
|
...e,
|
|
480
|
-
value:
|
|
481
|
-
r:
|
|
482
|
-
id:
|
|
483
|
-
color:
|
|
480
|
+
value: a,
|
|
481
|
+
r: a,
|
|
482
|
+
id: o,
|
|
483
|
+
color: l,
|
|
484
484
|
depth: n,
|
|
485
485
|
parentId: t?.id ?? null,
|
|
486
486
|
parentName: t?.name ?? null,
|
|
487
|
-
rootId: t?.rootId ??
|
|
487
|
+
rootId: t?.rootId ?? o,
|
|
488
488
|
hasChildren: d.length > 0,
|
|
489
489
|
childCount: d.length,
|
|
490
490
|
leafCount: d.length ? Qt({ children: d }) : 1,
|
|
491
|
-
hierarchyPath:
|
|
491
|
+
hierarchyPath: s,
|
|
492
492
|
children: d
|
|
493
493
|
};
|
|
494
494
|
}).filter(Boolean) : [];
|
|
@@ -541,7 +541,7 @@ var We = class {
|
|
|
541
541
|
q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect(), q.value = null, J.value = null);
|
|
542
542
|
}
|
|
543
543
|
async function sn() {
|
|
544
|
-
|
|
544
|
+
i(P.dataset) && a({
|
|
545
545
|
componentName: "VueUiCirclePack",
|
|
546
546
|
type: "dataset",
|
|
547
547
|
debug: Gt.value
|
|
@@ -554,7 +554,7 @@ var We = class {
|
|
|
554
554
|
}), Me(() => Pt.value, async (e) => {
|
|
555
555
|
await sn();
|
|
556
556
|
}, { deep: !0 });
|
|
557
|
-
let cn = v(() =>
|
|
557
|
+
let cn = v(() => o(B.value.customPalette)), Y = v(() => $t(Pt.value)), ln = v(() => G.value.length ? Math.max(...G.value.map((e) => e.r)) : 0);
|
|
558
558
|
function un(e, t) {
|
|
559
559
|
return ln.value ? t / ln.value * e : 0;
|
|
560
560
|
}
|
|
@@ -582,7 +582,7 @@ var We = class {
|
|
|
582
582
|
series: K.value
|
|
583
583
|
}, Tt.value = !0;
|
|
584
584
|
let r = B.value.style.chart.tooltip.customFormat;
|
|
585
|
-
if (mn.value = !1,
|
|
585
|
+
if (mn.value = !1, te(r)) try {
|
|
586
586
|
let n = r({
|
|
587
587
|
seriesIndex: t,
|
|
588
588
|
datapoint: e,
|
|
@@ -611,7 +611,7 @@ var We = class {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
function gn(e) {
|
|
614
|
-
return p(B.value.style.chart.circles.labels.value.formatter, e.value,
|
|
614
|
+
return p(B.value.style.chart.circles.labels.value.formatter, e.value, h({
|
|
615
615
|
p: B.value.style.chart.circles.labels.value.prefix,
|
|
616
616
|
v: e.value,
|
|
617
617
|
s: B.value.style.chart.circles.labels.value.suffix,
|
|
@@ -851,7 +851,7 @@ var We = class {
|
|
|
851
851
|
[e.parentName || ""],
|
|
852
852
|
[e.depth],
|
|
853
853
|
[e.value]
|
|
854
|
-
]), n =
|
|
854
|
+
]), n = ne([
|
|
855
855
|
[B.value.style.chart.title.text],
|
|
856
856
|
[B.value.style.chart.title.subtitle.text],
|
|
857
857
|
[
|
|
@@ -861,7 +861,7 @@ var We = class {
|
|
|
861
861
|
[B.value.table.columnNames.value]
|
|
862
862
|
]
|
|
863
863
|
].concat(t));
|
|
864
|
-
e ? e(n) :
|
|
864
|
+
e ? e(n) : d({
|
|
865
865
|
csvContent: n,
|
|
866
866
|
title: B.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
867
867
|
});
|
|
@@ -874,7 +874,7 @@ var We = class {
|
|
|
874
874
|
B.value.table.columnNames.depth,
|
|
875
875
|
B.value.table.columnNames.value
|
|
876
876
|
], t = Fn.value.hierarchy.map((e) => {
|
|
877
|
-
let t =
|
|
877
|
+
let t = h({
|
|
878
878
|
p: B.value.style.chart.circles.labels.value.prefix,
|
|
879
879
|
v: e.value,
|
|
880
880
|
s: B.value.style.chart.circles.labels.value.suffix,
|
|
@@ -1029,9 +1029,9 @@ var We = class {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
function Zn(e) {
|
|
1031
1031
|
if (!Number.isFinite(e) || !H.value) return;
|
|
1032
|
-
let
|
|
1033
|
-
if (!
|
|
1034
|
-
let r = t
|
|
1032
|
+
let t = G.value[e];
|
|
1033
|
+
if (!t) return;
|
|
1034
|
+
let r = n(t.x, t.y, H.value);
|
|
1035
1035
|
r && (kt.value = r);
|
|
1036
1036
|
}
|
|
1037
1037
|
function Qn() {
|
|
@@ -1293,7 +1293,7 @@ var We = class {
|
|
|
1293
1293
|
}) }, [(D(), x("svg", {
|
|
1294
1294
|
ref_key: "svgRef",
|
|
1295
1295
|
ref: H,
|
|
1296
|
-
xmlns: j(
|
|
1296
|
+
xmlns: j(ee),
|
|
1297
1297
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1298
1298
|
viewBox: `${j(Q).x} ${j(Q).y} ${j(Q).width} ${j(Q).height}`,
|
|
1299
1299
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -1317,18 +1317,18 @@ var We = class {
|
|
|
1317
1317
|
height: W.value.h,
|
|
1318
1318
|
style: { pointerEvents: "none" }
|
|
1319
1319
|
}, [k(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : b("", !0),
|
|
1320
|
-
(D(!0), x(_, null, Oe(G.value, (t,
|
|
1320
|
+
(D(!0), x(_, null, Oe(G.value, (t, n) => (D(), x(_, { key: t.id }, [
|
|
1321
1321
|
S("defs", null, [S("radialGradient", {
|
|
1322
1322
|
id: t.id,
|
|
1323
1323
|
fy: "30%"
|
|
1324
1324
|
}, [
|
|
1325
1325
|
S("stop", {
|
|
1326
1326
|
offset: "10%",
|
|
1327
|
-
"stop-color": j(
|
|
1327
|
+
"stop-color": j(s)(t.color, B.value.style.chart.circles.gradient.intensity / 100)
|
|
1328
1328
|
}, null, 8, Ze),
|
|
1329
1329
|
S("stop", {
|
|
1330
1330
|
offset: "90%",
|
|
1331
|
-
"stop-color": j(
|
|
1331
|
+
"stop-color": j(r)(t.color, .1)
|
|
1332
1332
|
}, null, 8, Qe),
|
|
1333
1333
|
S("stop", {
|
|
1334
1334
|
offset: "100%",
|
|
@@ -1348,9 +1348,9 @@ var We = class {
|
|
|
1348
1348
|
"stroke-width": B.value.style.chart.circles.strokeWidth * (ln.value || 1) / 100,
|
|
1349
1349
|
fill: B.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color,
|
|
1350
1350
|
rx: t.r,
|
|
1351
|
-
onMouseenter: (e) => hn(t,
|
|
1352
|
-
onMouseout: (e) => dn(t,
|
|
1353
|
-
onClick: (e) => fn(t,
|
|
1351
|
+
onMouseenter: (e) => hn(t, n, "pointer"),
|
|
1352
|
+
onMouseout: (e) => dn(t, n),
|
|
1353
|
+
onClick: (e) => fn(t, n)
|
|
1354
1354
|
}, null, 40, tt),
|
|
1355
1355
|
e.$slots.pattern ? (D(), x("rect", {
|
|
1356
1356
|
key: 1,
|
|
@@ -1386,12 +1386,12 @@ var We = class {
|
|
|
1386
1386
|
ref_for: !0
|
|
1387
1387
|
}, {
|
|
1388
1388
|
...t,
|
|
1389
|
-
createTSpans: j(
|
|
1389
|
+
createTSpans: j(l),
|
|
1390
1390
|
fontSize: {
|
|
1391
1391
|
name: t.r / 3 * B.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1392
1392
|
value: _n(t) * B.value.style.chart.circles.labels.value.fontSizeRatio
|
|
1393
1393
|
},
|
|
1394
|
-
color: B.value.style.chart.circles.labels.name.color ? B.value.style.chart.circles.labels.name.color : j(
|
|
1394
|
+
color: B.value.style.chart.circles.labels.name.color ? B.value.style.chart.circles.labels.name.color : j(g)(t.color)
|
|
1395
1395
|
}), void 0, !0) : (D(), x(_, { key: 1 }, [B.value.style.chart.circles.labels.name.show && t.name && rn(t) ? (D(), x("text", {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
style: {
|
|
@@ -1401,7 +1401,7 @@ var We = class {
|
|
|
1401
1401
|
x: t.x,
|
|
1402
1402
|
y: t.y + un(t.r, B.value.style.chart.circles.labels.name.offsetY) - t.r / 10,
|
|
1403
1403
|
"font-size": t.r / 3 * B.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1404
|
-
fill: B.value.style.chart.circles.labels.name.color === "auto" ? j(
|
|
1404
|
+
fill: B.value.style.chart.circles.labels.name.color === "auto" ? j(g)(t.color) : B.value.style.chart.circles.labels.name.color,
|
|
1405
1405
|
"font-weight": B.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
1406
1406
|
"text-anchor": "middle"
|
|
1407
1407
|
}, A(t.name), 9, it)) : b("", !0), B.value.style.chart.circles.labels.value.show && rn(t) ? (D(), x("text", {
|
|
@@ -1413,7 +1413,7 @@ var We = class {
|
|
|
1413
1413
|
x: t.x,
|
|
1414
1414
|
y: t.y + un(t.r, B.value.style.chart.circles.labels.value.offsetY) + t.r / 2.5,
|
|
1415
1415
|
"font-size": _n(t) * B.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
1416
|
-
fill: B.value.style.chart.circles.labels.value.color === "auto" ? j(
|
|
1416
|
+
fill: B.value.style.chart.circles.labels.value.color === "auto" ? j(g)(t.color) : B.value.style.chart.circles.labels.value.color,
|
|
1417
1417
|
"font-weight": B.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
1418
1418
|
"text-anchor": "middle"
|
|
1419
1419
|
}, A(gn(t)), 9, at)) : b("", !0)], 64)), k(e.$slots, "circle", Ce({ ref_for: !0 }, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "./useConfig-
|
|
4
|
-
import { t as i } from "./useNestedProp-
|
|
2
|
+
import { Lt as t, W as n, t as ee } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as r } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as i } from "./useNestedProp-BjkuFaz1.js";
|
|
5
5
|
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { n as te } from "./PackageVersion-
|
|
6
|
+
import { n as te } from "./PackageVersion-CqE8ssFu.js";
|
|
7
7
|
import { Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, nextTick as ne, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, toDisplayString as y, unref as b } from "vue";
|
|
8
8
|
//#region src/components/vue-ui-cursor.vue
|
|
9
9
|
var x = /* @__PURE__ */ e({ default: () => R }), re = [
|