vue-data-ui 2.6.23 → 2.6.25-beta.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-DJiG3r33.js → Arrow-BAdaNFbq.js} +1 -1
- package/dist/{Arrow-D2_aIcM2.cjs → Arrow-CzMwGfcd.cjs} +1 -1
- package/dist/{BaseIcon-PVERbTHZ.js → BaseIcon-BjAKZREF.js} +1 -1
- package/dist/{BaseIcon-DIB9Wlvp.cjs → BaseIcon-Cu4z5qOb.cjs} +1 -1
- package/dist/{DataTable-Rgwt5jLm.js → DataTable-BF8jSYP_.js} +2 -2
- package/dist/{DataTable-DaVBEH1O.cjs → DataTable-C6qGpwbf.cjs} +1 -1
- package/dist/{Legend-DhgOMgdq.cjs → Legend-BGzf2ymO.cjs} +1 -1
- package/dist/{Legend-V8N3VATg.js → Legend-BLgxdJG6.js} +2 -2
- package/dist/{PackageVersion-DS-HtU0C.cjs → PackageVersion-BOKy76ww.cjs} +1 -1
- package/dist/{PackageVersion-iMtoLiV5.js → PackageVersion-BiK7Dx4X.js} +1 -1
- package/dist/{PenAndPaper-SlsCQe6h.js → PenAndPaper-BzFJd7bn.js} +3 -3
- package/dist/{PenAndPaper-DoCqfQwX.cjs → PenAndPaper-pnjIQe7c.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-J88AdoNs.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DMur-P6k.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DOiZB6lf.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-gRKMNGtJ.cjs} +1 -1
- package/dist/{Shape-BdDFKbBn.cjs → Shape-Dj0Gxs21.cjs} +1 -1
- package/dist/{Shape-f9GRGy-D.js → Shape-hvBooorF.js} +1 -1
- package/dist/{Slicer-BXvYiDjH.js → Slicer-DnFM9Cfy.js} +2 -2
- package/dist/{Slicer-COW0ywTC.cjs → Slicer-DofurhNU.cjs} +1 -1
- package/dist/{Title-Cp_BaOUM.js → Title-DA-ToubT.js} +1 -1
- package/dist/{Title-DcAqbRBW.cjs → Title-s0c2mmwp.cjs} +1 -1
- package/dist/{Tooltip-Cu7aaMHU.js → Tooltip-DbjT4bdy.js} +1 -1
- package/dist/{Tooltip-BmxVr2nR.cjs → Tooltip-RjlHJ2b1.cjs} +1 -1
- package/dist/index-C4henJeh.cjs +9 -0
- package/dist/{index-CORoDQCP.js → index-DaOY9hvr.js} +4 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-B7NKqijt.cjs → useNestedProp-CGTM8Oru.cjs} +1 -1
- package/dist/{useNestedProp-BP2kns_4.js → useNestedProp-Da76X-ip.js} +1 -1
- package/dist/{usePrinter-fs3l3gnB.cjs → usePrinter-DY4mJksH.cjs} +1 -1
- package/dist/{usePrinter-B4-qiZp3.js → usePrinter-DqRlipuX.js} +1 -1
- package/dist/{vue-data-ui-CiIQJgvu.cjs → vue-data-ui-BFmU6tG3.cjs} +1 -1
- package/dist/{vue-data-ui-BgpNWNqc.js → vue-data-ui-xyzhGgcQ.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Sxl3Zs19.js → vue-ui-3d-bar-D4IrdXXf.js} +9 -9
- package/dist/{vue-ui-3d-bar-DmsqEue_.cjs → vue-ui-3d-bar-X3q87U-i.cjs} +1 -1
- package/dist/{vue-ui-accordion-BnQrFX7-.js → vue-ui-accordion-B7y_o2CM.js} +3 -3
- package/dist/{vue-ui-accordion-CiPtE4C5.cjs → vue-ui-accordion-CrXKs3m4.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DhFVwfnk.cjs → vue-ui-age-pyramid-BfRVvOi1.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BMLSHqix.js → vue-ui-age-pyramid-i5VFxDrm.js} +10 -10
- package/dist/{vue-ui-annotator-D8CD5njW.cjs → vue-ui-annotator-BYW-3d9f.cjs} +1 -1
- package/dist/{vue-ui-annotator-BOQOfVRi.js → vue-ui-annotator-Ow6aEzah.js} +1 -1
- package/dist/{vue-ui-bullet-CFhLYNX0.js → vue-ui-bullet-D0OIGi2Z.js} +8 -8
- package/dist/{vue-ui-bullet-CuhFNGas.cjs → vue-ui-bullet-DUtNFOCK.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Drw87cBU.cjs → vue-ui-candlestick-BErFxfEm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Ca3RyIlE.js → vue-ui-candlestick-CxwsOOSE.js} +11 -11
- package/dist/{vue-ui-carousel-table-ZPxDGxHL.cjs → vue-ui-carousel-table-8wGKm7CY.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CzWQO7o8.js → vue-ui-carousel-table-XorN21Ch.js} +4 -4
- package/dist/{vue-ui-chestnut-BmAhPQAV.cjs → vue-ui-chestnut-8NpsXoBH.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CHq2YDla.js → vue-ui-chestnut-BRmiS0S-.js} +8 -8
- package/dist/vue-ui-circle-pack-8LEyD6Nr.cjs +1 -0
- package/dist/{vue-ui-circle-pack-DRa-twBC.js → vue-ui-circle-pack-B3-z6LYc.js} +226 -225
- package/dist/{vue-ui-cursor-CV1yQWQq.cjs → vue-ui-cursor-CQuKoDoK.cjs} +1 -1
- package/dist/{vue-ui-cursor-B6otBk5O.js → vue-ui-cursor-wFwVQ7wO.js} +2 -2
- package/dist/{vue-ui-dashboard-BxzUDFYN.js → vue-ui-dashboard-Swa-B0GO.js} +2 -2
- package/dist/{vue-ui-dashboard-ChUs9hjn.cjs → vue-ui-dashboard-iC3BO8_R.cjs} +1 -1
- package/dist/{vue-ui-digits-D6J-zOTg.js → vue-ui-digits-BcJ6kR0E.js} +2 -2
- package/dist/{vue-ui-digits-CSBA8-rP.cjs → vue-ui-digits-Wpeo7w9-.cjs} +1 -1
- package/dist/{vue-ui-donut-BzqHaS9U.cjs → vue-ui-donut-BGBQUMp8.cjs} +1 -1
- package/dist/{vue-ui-donut-CavmyRb9.js → vue-ui-donut-BP7R_ZP-.js} +12 -12
- package/dist/{vue-ui-donut-evolution-Bs9eaisH.js → vue-ui-donut-evolution-BCMTspbT.js} +11 -11
- package/dist/{vue-ui-donut-evolution-OnJlabzf.cjs → vue-ui-donut-evolution-D7XGDW1c.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BJHDVx_f.js → vue-ui-dumbbell-7CQcJFse.js} +10 -10
- package/dist/{vue-ui-dumbbell-H_D431z2.cjs → vue-ui-dumbbell-DsAMwcR6.cjs} +1 -1
- package/dist/{vue-ui-flow-CJyZd1H6.js → vue-ui-flow-CriQxeRX.js} +9 -9
- package/dist/{vue-ui-flow-BygsUZtu.cjs → vue-ui-flow-DxOk8uv2.cjs} +1 -1
- package/dist/{vue-ui-funnel-0Q_LpBDZ.cjs → vue-ui-funnel-CKENGLYA.cjs} +1 -1
- package/dist/{vue-ui-funnel-gTjgs4j9.js → vue-ui-funnel-GSxIBL8c.js} +9 -9
- package/dist/{vue-ui-galaxy-CjzJzzjR.cjs → vue-ui-galaxy-C-xr7W2K.cjs} +1 -1
- package/dist/{vue-ui-galaxy-5g43syZ_.js → vue-ui-galaxy-C6WdAXYd.js} +11 -11
- package/dist/{vue-ui-gauge-77KuagM8.cjs → vue-ui-gauge-CtBDEvOn.cjs} +1 -1
- package/dist/{vue-ui-gauge-Khz7Rc8p.js → vue-ui-gauge-fLXqVC92.js} +7 -7
- package/dist/{vue-ui-gizmo-BkzXwNSA.js → vue-ui-gizmo-BAZr0T6W.js} +3 -3
- package/dist/{vue-ui-gizmo-BNCE1QC7.cjs → vue-ui-gizmo-CKrFFnkE.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DrQmm7ns.js → vue-ui-heatmap-B9i_h3GX.js} +10 -10
- package/dist/{vue-ui-heatmap-CtYEgexU.cjs → vue-ui-heatmap-BpuwcIj9.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DtAHeCIn.js → vue-ui-history-plot-Caf88NC4.js} +11 -11
- package/dist/{vue-ui-history-plot-DBxkk8uU.cjs → vue-ui-history-plot-D1mCPSYG.cjs} +1 -1
- package/dist/{vue-ui-kpi-wCJKise3.js → vue-ui-kpi-BonTwa6f.js} +3 -3
- package/dist/{vue-ui-kpi-BJf_RiaZ.cjs → vue-ui-kpi-DJY8Tg3f.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DTdkdhel.js → vue-ui-mini-loader-B8OKo7ZA.js} +2 -2
- package/dist/{vue-ui-mini-loader-QjTF0M7X.cjs → vue-ui-mini-loader-B_E1Cuc-.cjs} +1 -1
- package/dist/{vue-ui-molecule-CMzB-8rG.cjs → vue-ui-molecule-CMGevEyN.cjs} +1 -1
- package/dist/{vue-ui-molecule-BmpVr_gK.js → vue-ui-molecule-FDomYPWP.js} +10 -10
- package/dist/{vue-ui-mood-radar-xFIV8rX7.js → vue-ui-mood-radar-D_m1qTwO.js} +11 -11
- package/dist/{vue-ui-mood-radar-CcPYNvdi.cjs → vue-ui-mood-radar-Daq1TyK6.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CX4ADWaJ.cjs → vue-ui-nested-donuts-BmGO3Hiu.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CSf69O8o.js → vue-ui-nested-donuts-DG4e_aD6.js} +11 -11
- package/dist/{vue-ui-onion-D4BQdTiM.js → vue-ui-onion-B6UwKh_z.js} +11 -11
- package/dist/{vue-ui-onion-DuMvm2D7.cjs → vue-ui-onion-BQRZh5CJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dc6N5YHX.js → vue-ui-parallel-coordinate-plot-DPNWS-Kx.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BbLVVerv.cjs → vue-ui-parallel-coordinate-plot-DzBrYLYe.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CPHUxz0i.js → vue-ui-quadrant-6450wz3p.js} +12 -12
- package/dist/{vue-ui-quadrant-B4iH_goy.cjs → vue-ui-quadrant-B7ta4fwr.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BdRCSnMP.cjs → vue-ui-quick-chart-CVXqMfjH.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-x1bjHLL_.js → vue-ui-quick-chart-DTDw76x0.js} +9 -9
- package/dist/{vue-ui-radar-BJW8f9Ha.cjs → vue-ui-radar-C4UnVmaY.cjs} +1 -1
- package/dist/{vue-ui-radar-BLhC82mY.js → vue-ui-radar-HkWzUvd7.js} +12 -12
- package/dist/{vue-ui-rating-DnyFmWGj.cjs → vue-ui-rating-Bs_fFQ9I.cjs} +1 -1
- package/dist/{vue-ui-rating-nsK29Mwb.js → vue-ui-rating-C_dS-umr.js} +2 -2
- package/dist/{vue-ui-relation-circle-B8k_TzBX.cjs → vue-ui-relation-circle-DGclgLW5.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Blb-GooX.js → vue-ui-relation-circle-DqaEq0eC.js} +7 -7
- package/dist/{vue-ui-rings-ClHVJNrR.js → vue-ui-rings-ByNGHdb6.js} +12 -12
- package/dist/{vue-ui-rings-k9gIeUIA.cjs → vue-ui-rings-xCvw5Cuh.cjs} +1 -1
- package/dist/{vue-ui-scatter-B0kbnm8B.js → vue-ui-scatter-CXelVAG1.js} +12 -12
- package/dist/{vue-ui-scatter-1i_9Zs70.cjs → vue-ui-scatter-EBnKFgVT.cjs} +1 -1
- package/dist/{vue-ui-screenshot-rdceQU35.cjs → vue-ui-screenshot-CGHnCmFe.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BucDcruu.js → vue-ui-screenshot-DxyZ1_Qu.js} +1 -1
- package/dist/{vue-ui-skeleton-CrROSIXs.js → vue-ui-skeleton-D0_Nq8rw.js} +3 -3
- package/dist/{vue-ui-skeleton-DOrpie3d.cjs → vue-ui-skeleton-DnYFlPGP.cjs} +1 -1
- package/dist/{vue-ui-smiley-B0S7szh0.js → vue-ui-smiley-CL6lLgRB.js} +2 -2
- package/dist/{vue-ui-smiley-CeVvVZJJ.cjs → vue-ui-smiley-CWnwVCjt.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DSKhap1U.cjs → vue-ui-spark-trend-BxgpidJH.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BC1zG3z1.js → vue-ui-spark-trend-DAfgfIAx.js} +5 -5
- package/dist/{vue-ui-sparkbar-CXQ8rWwv.cjs → vue-ui-sparkbar-CQMZlD5-.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DK5zyF2q.js → vue-ui-sparkbar-CoF99eY4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DoxNseQu.cjs → vue-ui-sparkgauge-BKn7G_F2.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CLF23Z6B.js → vue-ui-sparkgauge-Djgo61MY.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CeNlChEK.cjs → vue-ui-sparkhistogram-CMpv-YE_.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DFx2PdMT.js → vue-ui-sparkhistogram-DwtdhU0n.js} +5 -5
- package/dist/{vue-ui-sparkline-hDosQh2z.js → vue-ui-sparkline-TOSulCCN.js} +4 -4
- package/dist/{vue-ui-sparkline-CgdJGWkW.cjs → vue-ui-sparkline-nhiakSCd.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CiQRicBj.js → vue-ui-sparkstackbar-Cmv3gmY6.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-Bx_O0E2Q.cjs → vue-ui-sparkstackbar-D56R_hUb.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BpCvkxTQ.js → vue-ui-stackbar-C23mIVOe.js} +13 -13
- package/dist/{vue-ui-stackbar-DFrui-nK.cjs → vue-ui-stackbar-zmoPYCIE.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BaLGfp02.js → vue-ui-strip-plot-9Uqrdluj.js} +11 -11
- package/dist/{vue-ui-strip-plot-CJvbeG6e.cjs → vue-ui-strip-plot-DXnRHpgS.cjs} +1 -1
- package/dist/{vue-ui-table-sunBd8sR.js → vue-ui-table-D-xFxXFb.js} +1 -1
- package/dist/{vue-ui-table-DQ_t1xTE.cjs → vue-ui-table-ZB4Hj-hY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Czx9ATpO.js → vue-ui-table-heatmap-BsRoJIAj.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CZZDVnzr.cjs → vue-ui-table-heatmap-yBomM0G3.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CftOKg9N.cjs → vue-ui-table-sparkline-Bspr5ZGR.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B73dlAI6.js → vue-ui-table-sparkline-UyU28o32.js} +5 -5
- package/dist/{vue-ui-thermometer-BVkI8vlH.cjs → vue-ui-thermometer-CVniQ8Di.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CLRznn3m.js → vue-ui-thermometer-DHyiBKMW.js} +7 -7
- package/dist/{vue-ui-timer-BuamplsS.cjs → vue-ui-timer-DDQWQuni.cjs} +1 -1
- package/dist/{vue-ui-timer-Beaj2sv_.js → vue-ui-timer-gmLKyvkR.js} +5 -5
- package/dist/{vue-ui-tiremarks-kw2cLJwr.cjs → vue-ui-tiremarks-DJnlqFXj.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dda1Ogkj.js → vue-ui-tiremarks-DULECN3d.js} +7 -7
- package/dist/{vue-ui-treemap-qMgWCw7y.js → vue-ui-treemap-DUNc03Ga.js} +11 -11
- package/dist/{vue-ui-treemap-9i7zH6_D.cjs → vue-ui-treemap-etxY64vX.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-D6VWdpxb.cjs → vue-ui-vertical-bar-5KD70L1d.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Dau3LmOt.js → vue-ui-vertical-bar-BShiKr6x.js} +12 -12
- package/dist/{vue-ui-waffle-CSQBfdSt.js → vue-ui-waffle-BzVQCIV9.js} +12 -12
- package/dist/{vue-ui-waffle-DEyKQoF1.cjs → vue-ui-waffle-CNEUcnEt.cjs} +1 -1
- package/dist/{vue-ui-wheel-xExPUamV.cjs → vue-ui-wheel-C5ORN9_D.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cq7qBq00.js → vue-ui-wheel-D666N4kG.js} +7 -7
- package/dist/{vue-ui-word-cloud-B_ZFfVkQ.cjs → vue-ui-word-cloud-1_4jnaS0.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CzQIP7Ov.js → vue-ui-word-cloud-B-07eCCw.js} +10 -10
- package/dist/vue-ui-xy-BrB21eQl.js +2541 -0
- package/dist/vue-ui-xy-IPgVOfxQ.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-C-1Z6nVa.js → vue-ui-xy-canvas-B90sYL2l.js} +12 -12
- package/dist/{vue-ui-xy-canvas-C1FLTlGQ.cjs → vue-ui-xy-canvas-Db8HfLcv.cjs} +1 -1
- package/package.json +2 -2
- package/dist/index-ClAuXrnE.cjs +0 -9
- package/dist/vue-ui-circle-pack-CUS8c5qb.cjs +0 -1
- package/dist/vue-ui-xy-BKvIGkT4.js +0 -2512
- package/dist/vue-ui-xy-BVbXEFgP.cjs +0 -3
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as Ne } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { P as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { t as
|
|
14
|
-
import { _ as
|
|
15
|
-
function
|
|
16
|
-
const h = r.reduce((a, { x: s, r:
|
|
17
|
-
return [h, v,
|
|
1
|
+
import { useCssVars as We, computed as w, ref as p, watch as $e, onMounted as Xe, watchEffect as Ye, createElementBlock as b, openBlock as f, unref as m, normalizeStyle as K, normalizeClass as Te, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ze, withCtx as z, normalizeProps as U, guardReactiveProps as B, createVNode as Je, Fragment as Q, renderList as Ke, createElementVNode as C, mergeProps as Pe, toDisplayString as j, createTextVNode as Qe, nextTick as Se } from "vue";
|
|
2
|
+
import { u as et, c as Ie, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Oe, f as ce, X as nt, l as rt, G as q, a7 as ut, q as it, r as ct, i as Fe } from "./index-DaOY9hvr.js";
|
|
3
|
+
import { u as Ne } from "./useNestedProp-Da76X-ip.js";
|
|
4
|
+
import { u as vt, U as dt } from "./usePrinter-DqRlipuX.js";
|
|
5
|
+
import { _ as ht } from "./Title-DA-ToubT.js";
|
|
6
|
+
import { P as ft } from "./PenAndPaper-BzFJd7bn.js";
|
|
7
|
+
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as mt } from "./PackageVersion-BiK7Dx4X.js";
|
|
9
|
+
import pt from "./vue-ui-accordion-B7y_o2CM.js";
|
|
10
|
+
import { D as bt } from "./DataTable-BF8jSYP_.js";
|
|
11
|
+
import gt from "./vue-ui-skeleton-D0_Nq8rw.js";
|
|
12
|
+
import { u as kt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { t as xt, u as wt } from "./useResponsive-vZgZwV-S.js";
|
|
14
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function Me(r, c = 0) {
|
|
16
|
+
const h = r.reduce((a, { x: s, r: u }) => Math.min(a, s - u - c), 1 / 0), i = r.reduce((a, { x: s, r: u }) => Math.max(a, s + u + c), -1 / 0), v = r.reduce((a, { y: s, r: u }) => Math.min(a, s - u - c), 1 / 0), o = r.reduce((a, { y: s, r: u }) => Math.max(a, s + u + c), -1 / 0);
|
|
17
|
+
return [h, v, i - h, o - v];
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
19
|
+
function _t(r, c, h) {
|
|
20
|
+
const i = r._, v = r.next._, o = i.r + v.r, a = (i.x * v.r + v.x * i.r) / o, s = (i.y * v.r + v.y * i.r) / o;
|
|
21
21
|
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
23
|
+
function Ee(r, c, h) {
|
|
24
|
+
const i = _t, v = r.length;
|
|
25
25
|
if (!v) return r;
|
|
26
26
|
let o, a, s;
|
|
27
27
|
if (o = r[0], o.x = 0, o.y = 0, !(v > 1) || (a = r[1], o.x = -a.r, a.x = o.r, a.y = 0, !(v > 2))) return r;
|
|
28
|
-
Re(a, o, s = r[2]), o = new
|
|
29
|
-
e: for (let
|
|
30
|
-
Re(o._, a._, s = r[
|
|
31
|
-
let g = a.next,
|
|
28
|
+
Re(a, o, s = r[2]), o = new te(o), a = new te(a), s = new te(s), o.next = s.previous = a, a.next = o.previous = s, s.next = a.previous = o;
|
|
29
|
+
e: for (let u = 3; u < v; ++u) {
|
|
30
|
+
Re(o._, a._, s = r[u]), s = new te(s);
|
|
31
|
+
let g = a.next, $ = o.previous, E = a._.r, R = o._.r;
|
|
32
32
|
do
|
|
33
|
-
if (
|
|
33
|
+
if (E <= R) {
|
|
34
34
|
if (Ae(g._, s._)) {
|
|
35
|
-
a = g, o.next = a, a.previous = o, --
|
|
35
|
+
a = g, o.next = a, a.previous = o, --u;
|
|
36
36
|
continue e;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
E += g._.r, g = g.next;
|
|
39
39
|
} else {
|
|
40
|
-
if (Ae(
|
|
41
|
-
o =
|
|
40
|
+
if (Ae($._, s._)) {
|
|
41
|
+
o = $, o.next = a, a.previous = o, --u;
|
|
42
42
|
continue e;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
R += $._.r, $ = $.previous;
|
|
45
45
|
}
|
|
46
|
-
while (g !==
|
|
46
|
+
while (g !== $.next);
|
|
47
47
|
s.previous = o, s.next = a, o.next = a.previous = a = s;
|
|
48
|
-
let
|
|
48
|
+
let A = i(o, h, c), W;
|
|
49
49
|
for (; (s = s.next) !== a; )
|
|
50
|
-
(W =
|
|
50
|
+
(W = i(s, h, c)) < A && (o = s, A = W);
|
|
51
51
|
a = o.next;
|
|
52
52
|
}
|
|
53
53
|
return r;
|
|
54
54
|
}
|
|
55
55
|
function Re(r, c, h) {
|
|
56
|
-
const
|
|
56
|
+
const i = r.x - c.x, v = r.y - c.y, o = i * i + v * v;
|
|
57
57
|
if (o) {
|
|
58
58
|
const a = (c.r + h.r) ** 2, s = (r.r + h.r) ** 2;
|
|
59
59
|
if (a > s) {
|
|
60
|
-
const
|
|
61
|
-
h.x = r.x -
|
|
60
|
+
const u = (o + s - a) / (2 * o), g = Math.sqrt(Math.max(0, s / o - u * u));
|
|
61
|
+
h.x = r.x - u * i - g * v, h.y = r.y - u * v + g * i;
|
|
62
62
|
} else {
|
|
63
|
-
const
|
|
64
|
-
h.x = c.x +
|
|
63
|
+
const u = (o + a - s) / (2 * o), g = Math.sqrt(Math.max(0, a / o - u * u));
|
|
64
|
+
h.x = c.x + u * i - g * v, h.y = c.y + u * v + g * i;
|
|
65
65
|
}
|
|
66
66
|
} else
|
|
67
67
|
h.x = c.x + h.r, h.y = c.y;
|
|
68
68
|
}
|
|
69
69
|
function Ae(r, c) {
|
|
70
|
-
const h = r.r + c.r - 1e-6,
|
|
71
|
-
return h > 0 && h * h >
|
|
70
|
+
const h = r.r + c.r - 1e-6, i = c.x - r.x, v = c.y - r.y;
|
|
71
|
+
return h > 0 && h * h > i * i + v * v;
|
|
72
72
|
}
|
|
73
|
-
class
|
|
73
|
+
class te {
|
|
74
74
|
constructor(c) {
|
|
75
75
|
this._ = c, this.next = null, this.previous = null;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const zt = ["id"], $t = ["xmlns", "viewBox", "height", "width"], Tt = ["x", "y", "width", "height"], Pt = ["id"], St = ["stop-color"], It = ["stop-color"], Ot = ["stop-color"], Ft = { key: 0 }, Nt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Mt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Et = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Rt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], At = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Dt = {
|
|
79
79
|
key: 0,
|
|
80
80
|
style: { pointerEvents: "none" }
|
|
81
|
-
},
|
|
81
|
+
}, Lt = { key: 1 }, Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Gt = {
|
|
82
82
|
key: 6,
|
|
83
83
|
class: "vue-data-ui-watermark"
|
|
84
|
-
},
|
|
84
|
+
}, Ut = ["innerHTML"], Bt = {
|
|
85
85
|
__name: "vue-ui-circle-pack",
|
|
86
86
|
props: {
|
|
87
87
|
config: {
|
|
@@ -99,109 +99,110 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
99
99
|
},
|
|
100
100
|
emits: ["selectDatapoint"],
|
|
101
101
|
setup(r, { expose: c, emit: h }) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
23363570: oe.value
|
|
102
|
+
We((t) => ({
|
|
103
|
+
bf62f51c: N.value,
|
|
104
|
+
"623b642a": oe.value
|
|
106
105
|
}));
|
|
107
|
-
const
|
|
106
|
+
const i = r, v = h, { vue_ui_circle_pack: o } = et(), a = w(() => !!i.dataset && i.dataset.length), s = p(Ie()), u = p(null), g = p(null), $ = p(null), E = p(0), R = p(0), A = p(0), W = p(null), e = w({
|
|
108
107
|
get: () => fe(),
|
|
109
108
|
set: (t) => t
|
|
110
|
-
}), { svgRef: ve } =
|
|
111
|
-
userOptionsVisible:
|
|
109
|
+
}), { svgRef: ve } = kt({ config: e.value.style.chart.title }), {
|
|
110
|
+
userOptionsVisible: le,
|
|
112
111
|
setUserOptionsVisibility: de,
|
|
113
112
|
keepUserOptionState: he
|
|
114
|
-
} =
|
|
113
|
+
} = yt({ config: e.value });
|
|
115
114
|
function fe() {
|
|
116
115
|
const t = Ne({
|
|
117
|
-
userConfig:
|
|
116
|
+
userConfig: i.config,
|
|
118
117
|
defaultConfig: o
|
|
119
118
|
});
|
|
120
119
|
return t.theme ? {
|
|
121
120
|
...Ne({
|
|
122
|
-
userConfig:
|
|
121
|
+
userConfig: tt.vue_ui_circle_pack[t.theme] || i.config,
|
|
123
122
|
defaultConfig: t
|
|
124
123
|
}),
|
|
125
|
-
customPalette: ie[t.theme] ||
|
|
124
|
+
customPalette: ie[t.theme] || ee
|
|
126
125
|
} : t;
|
|
127
126
|
}
|
|
128
|
-
|
|
129
|
-
e.value = fe(),
|
|
127
|
+
$e(() => i.config, (t) => {
|
|
128
|
+
e.value = fe(), le.value = !e.value.userOptions.showOnChartHover, ae(), E.value += 1, R.value += 1, D.value.showTable = e.value.table.show;
|
|
130
129
|
}, { deep: !0 });
|
|
131
|
-
const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } =
|
|
130
|
+
const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } = vt({
|
|
132
131
|
elementId: `vue-ui-circle-pack_${s.value}`,
|
|
133
132
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
134
|
-
}),
|
|
133
|
+
}), De = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = p({
|
|
135
134
|
showTable: e.value.table.show
|
|
136
|
-
}), ge = p(null),
|
|
135
|
+
}), ge = p(null), I = p({ h: 10, w: 10 }), ke = p(0), O = p([0, 0, 100, 100]), X = p({ h: 0, w: 0 });
|
|
137
136
|
async function ae() {
|
|
138
|
-
|
|
137
|
+
lt(i.dataset) && at({
|
|
139
138
|
componentName: "VueUiCirclePack",
|
|
140
139
|
type: "dataset"
|
|
141
|
-
}),
|
|
142
|
-
const t =
|
|
143
|
-
const { width: n, height: l, heightTitle:
|
|
144
|
-
chart:
|
|
140
|
+
}), F.value = await Ee(Y.value), T.value = Me(F.value, 1).join(" "), X.value = xe(u.value);
|
|
141
|
+
const t = xt(() => {
|
|
142
|
+
const { width: n, height: l, heightTitle: y, heightNoTitle: _ } = wt({
|
|
143
|
+
chart: u.value,
|
|
145
144
|
title: g.value,
|
|
146
|
-
noTitle:
|
|
145
|
+
noTitle: $.value
|
|
147
146
|
}), re = n || 10, ue = l && l > 10 ? l : 10;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
|
|
147
|
+
ke.value = e.value.style.chart.title.text ? y : _, requestAnimationFrame(() => {
|
|
148
|
+
I.value.w = re, I.value.h = ue - ke.value, Se(async () => {
|
|
149
|
+
const je = Y.value.map((qe) => ({ ...qe }));
|
|
150
|
+
F.value = await Ee(je, I.value.h, I.value.w), O.value = Me(F.value, 1), T.value = O.value.join(" "), X.value = xe(u.value);
|
|
152
151
|
});
|
|
153
152
|
});
|
|
154
153
|
});
|
|
155
|
-
ge.value = new ResizeObserver(t), ge.value.observe(
|
|
154
|
+
ge.value = new ResizeObserver(t), ge.value.observe(u.value.parentNode);
|
|
156
155
|
}
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
Xe(ae);
|
|
157
|
+
function xe(t) {
|
|
158
|
+
if (!t || !t.parentElement)
|
|
159
|
+
return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
|
|
160
|
+
const n = t.parentElement;
|
|
161
|
+
if (n.offsetWidth > 0 && n.offsetHeight > 0)
|
|
162
|
+
return { w: n.offsetWidth, h: n.offsetHeight };
|
|
163
|
+
const l = window.getComputedStyle(n), y = l.width, _ = l.height;
|
|
164
|
+
return y !== "auto" && _ !== "auto" && parseFloat(y) > 0 && parseFloat(_) > 0 ? { w: parseFloat(y), h: parseFloat(_) } : { w: 0, h: 0 };
|
|
159
165
|
}
|
|
160
|
-
|
|
161
|
-
const l = ke(t, n), m = t / l, O = n / l;
|
|
162
|
-
return `${m}/${O}`;
|
|
163
|
-
}
|
|
164
|
-
const Le = w(() => De($.value.w, $.value.h - le.value));
|
|
165
|
-
Ye(ae), ze(() => u.dataset, async (t) => {
|
|
166
|
+
$e(() => i.dataset, async (t) => {
|
|
166
167
|
await ae();
|
|
167
168
|
}, { deep: !0 });
|
|
168
|
-
const
|
|
169
|
-
const l =
|
|
169
|
+
const Le = w(() => ot(e.value.customPalette)), Y = w(() => i.dataset.map((t, n) => {
|
|
170
|
+
const l = st(t.color) || Le.value[n] || ie[e.value.theme || "default"][n % ie[e.value.theme || "default"].length] || ee[n] || ee[n % ee.length];
|
|
170
171
|
return {
|
|
171
172
|
...t,
|
|
172
173
|
r: t.value,
|
|
173
174
|
id: Ie(),
|
|
174
175
|
color: l
|
|
175
176
|
};
|
|
176
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))),
|
|
177
|
-
function
|
|
177
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), F = p([]), T = p("0 0 100 100"), L = w(() => Math.max(...F.value.map((t) => t.r)));
|
|
178
|
+
function we(t, n) {
|
|
178
179
|
return n / L.value * t;
|
|
179
180
|
}
|
|
180
181
|
const d = p(null);
|
|
181
|
-
function
|
|
182
|
+
function He(t) {
|
|
182
183
|
e.value.style.chart.circles.zoom.show && (d.value = t);
|
|
183
184
|
}
|
|
184
|
-
const
|
|
185
|
+
const N = w(() => d.value ? d.value.r : 0), oe = w(() => S.value ? N.value : d.value ? d.value.r > O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), P = p(0), Ve = w(() => ({
|
|
185
186
|
pointerEvents: "none",
|
|
186
187
|
opacity: P.value,
|
|
187
188
|
filter: `drop-shadow(0px 0px 6px ${Oe(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
188
|
-
})),
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
})), H = p(N.value);
|
|
190
|
+
Ye(() => {
|
|
191
|
+
H.value = N.value, P.value = 0;
|
|
191
192
|
let t = null;
|
|
192
193
|
function n(l) {
|
|
193
194
|
t || (t = l);
|
|
194
|
-
const
|
|
195
|
-
|
|
195
|
+
const y = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
196
|
+
y < 1 ? (H.value = N.value + (oe.value - N.value) * y, P.value = 0 + e.value.style.chart.circles.zoom.opacity * y, requestAnimationFrame(n)) : (H.value = oe.value, P.value = e.value.style.chart.circles.zoom.opacity);
|
|
196
197
|
}
|
|
197
198
|
requestAnimationFrame(n);
|
|
198
199
|
});
|
|
199
|
-
const
|
|
200
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize *
|
|
201
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize *
|
|
200
|
+
const V = w(() => ({
|
|
201
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * O.value[3] / 300,
|
|
202
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * O.value[3] / 300
|
|
202
203
|
}));
|
|
203
204
|
function se(t) {
|
|
204
|
-
return
|
|
205
|
+
return Fe(
|
|
205
206
|
e.value.style.chart.circles.labels.value.formatter,
|
|
206
207
|
t.value,
|
|
207
208
|
ce({
|
|
@@ -212,8 +213,8 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
212
213
|
})
|
|
213
214
|
);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
216
|
+
function Ge() {
|
|
217
|
+
return Fe(
|
|
217
218
|
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
218
219
|
d.value.value,
|
|
219
220
|
ce({
|
|
@@ -224,51 +225,51 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
224
225
|
})
|
|
225
226
|
);
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
+
function Ce(t) {
|
|
228
229
|
if (!t)
|
|
229
230
|
return 0;
|
|
230
231
|
const n = t.r / se(t).length * (se(t).length === 1 ? 1 : 2);
|
|
231
232
|
return Math.min(t.r / 2.5, n);
|
|
232
233
|
}
|
|
233
|
-
const
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
const G = p(!1);
|
|
235
|
+
function Ue(t) {
|
|
236
|
+
G.value = t, A.value += 1;
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
+
const S = p(!1);
|
|
238
239
|
function ne() {
|
|
239
|
-
|
|
240
|
+
S.value = !S.value;
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
-
const t =
|
|
242
|
+
const Z = w(() => {
|
|
243
|
+
const t = Y.value.map((l) => ({
|
|
243
244
|
name: l.name,
|
|
244
245
|
value: l.value,
|
|
245
246
|
color: l.color
|
|
246
|
-
})).toSorted((l,
|
|
247
|
+
})).toSorted((l, y) => y.value - l.value), n = t.map((l) => l.value);
|
|
247
248
|
return { head: t, body: n };
|
|
248
249
|
});
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
const t =
|
|
252
|
-
|
|
253
|
-
], [
|
|
254
|
-
|
|
250
|
+
function _e() {
|
|
251
|
+
Se(() => {
|
|
252
|
+
const t = Z.value.head.map((y, _) => [[
|
|
253
|
+
y.name
|
|
254
|
+
], [Z.value.body[_]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l = it(n);
|
|
255
|
+
ct({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
+
const J = w(() => {
|
|
258
259
|
const t = [
|
|
259
260
|
e.value.table.columnNames.datapoint,
|
|
260
261
|
e.value.table.columnNames.value
|
|
261
|
-
], n =
|
|
262
|
+
], n = Z.value.head.map((_, re) => {
|
|
262
263
|
const ue = ce({
|
|
263
264
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
264
|
-
v:
|
|
265
|
+
v: Z.value.body[re],
|
|
265
266
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
266
267
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
267
268
|
});
|
|
268
269
|
return [
|
|
269
270
|
{
|
|
270
|
-
color:
|
|
271
|
-
name:
|
|
271
|
+
color: _.color,
|
|
272
|
+
name: _.name
|
|
272
273
|
},
|
|
273
274
|
ue
|
|
274
275
|
];
|
|
@@ -295,42 +296,42 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
295
296
|
config: l
|
|
296
297
|
};
|
|
297
298
|
});
|
|
298
|
-
function
|
|
299
|
+
function ze() {
|
|
299
300
|
D.value.showTable = !D.value.showTable;
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
302
|
+
function Be() {
|
|
303
|
+
return Y.value;
|
|
303
304
|
}
|
|
304
305
|
return c({
|
|
305
|
-
getData:
|
|
306
|
-
generateCsv:
|
|
306
|
+
getData: Be,
|
|
307
|
+
generateCsv: _e,
|
|
307
308
|
generatePdf: pe,
|
|
308
309
|
generateImage: be,
|
|
309
|
-
toggleTable:
|
|
310
|
+
toggleTable: ze,
|
|
310
311
|
toggleAnnotator: ne
|
|
311
312
|
}), (t, n) => (f(), b("div", {
|
|
312
313
|
id: `vue-ui-circle-pack_${s.value}`,
|
|
313
|
-
class:
|
|
314
|
+
class: Te(`vue-ui-circle-pack ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
314
315
|
ref_key: "circlePackChart",
|
|
315
|
-
ref:
|
|
316
|
-
style:
|
|
317
|
-
onMouseenter: n[2] || (n[2] = () =>
|
|
318
|
-
onMouseleave: n[3] || (n[3] = () =>
|
|
316
|
+
ref: u,
|
|
317
|
+
style: K(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${X.value.h}px; width:${X.value.w}px`),
|
|
318
|
+
onMouseenter: n[2] || (n[2] = () => m(de)(!0)),
|
|
319
|
+
onMouseleave: n[3] || (n[3] = () => m(de)(!1))
|
|
319
320
|
}, [
|
|
320
|
-
e.value.userOptions.buttons.annotator ? (f(), M(
|
|
321
|
+
e.value.userOptions.buttons.annotator ? (f(), M(ft, {
|
|
321
322
|
key: 0,
|
|
322
|
-
svgRef:
|
|
323
|
+
svgRef: m(ve),
|
|
323
324
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
324
325
|
color: e.value.style.chart.color,
|
|
325
|
-
active:
|
|
326
|
+
active: S.value,
|
|
326
327
|
scale: L.value / 100,
|
|
327
328
|
onClose: ne
|
|
328
329
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
329
330
|
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
330
|
-
|
|
331
|
+
De.value ? (f(), b("div", {
|
|
331
332
|
key: 1,
|
|
332
333
|
ref_key: "noTitle",
|
|
333
|
-
ref:
|
|
334
|
+
ref: $,
|
|
334
335
|
class: "vue-data-ui-no-title-space",
|
|
335
336
|
style: "height:36px; width: 100%;background:transparent"
|
|
336
337
|
}, null, 512)) : k("", !0),
|
|
@@ -340,8 +341,8 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
340
341
|
ref: g,
|
|
341
342
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
342
343
|
}, [
|
|
343
|
-
(f(), M(
|
|
344
|
-
key: `title_${
|
|
344
|
+
(f(), M(ht, {
|
|
345
|
+
key: `title_${E.value}`,
|
|
345
346
|
config: {
|
|
346
347
|
title: {
|
|
347
348
|
cy: "donut-div-title",
|
|
@@ -354,13 +355,13 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
354
355
|
}
|
|
355
356
|
}, null, 8, ["config"]))
|
|
356
357
|
], 512)) : k("", !0),
|
|
357
|
-
e.value.userOptions.show && a.value && (
|
|
358
|
+
e.value.userOptions.show && a.value && (m(he) || m(le)) ? (f(), M(dt, {
|
|
358
359
|
ref: "details",
|
|
359
|
-
key: `user_option_${
|
|
360
|
+
key: `user_option_${A.value}`,
|
|
360
361
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
361
362
|
color: e.value.style.chart.color,
|
|
362
|
-
isPrinting:
|
|
363
|
-
isImaging:
|
|
363
|
+
isPrinting: m(ye),
|
|
364
|
+
isImaging: m(me),
|
|
364
365
|
uid: s.value,
|
|
365
366
|
hasTooltip: !1,
|
|
366
367
|
hasLabel: !1,
|
|
@@ -369,68 +370,68 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
369
370
|
hasXls: e.value.userOptions.buttons.csv,
|
|
370
371
|
hasTable: e.value.userOptions.buttons.table,
|
|
371
372
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
372
|
-
isFullscreen:
|
|
373
|
-
chartElement:
|
|
373
|
+
isFullscreen: G.value,
|
|
374
|
+
chartElement: u.value,
|
|
374
375
|
position: e.value.userOptions.position,
|
|
375
376
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
376
377
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
377
|
-
isAnnotation:
|
|
378
|
-
onToggleFullscreen:
|
|
379
|
-
onGeneratePdf:
|
|
380
|
-
onGenerateCsv:
|
|
381
|
-
onGenerateImage:
|
|
382
|
-
onToggleTable:
|
|
378
|
+
isAnnotation: S.value,
|
|
379
|
+
onToggleFullscreen: Ue,
|
|
380
|
+
onGeneratePdf: m(pe),
|
|
381
|
+
onGenerateCsv: _e,
|
|
382
|
+
onGenerateImage: m(be),
|
|
383
|
+
onToggleTable: ze,
|
|
383
384
|
onToggleAnnotator: ne,
|
|
384
|
-
style:
|
|
385
|
-
visibility:
|
|
385
|
+
style: K({
|
|
386
|
+
visibility: m(he) ? m(le) ? "visible" : "hidden" : "visible"
|
|
386
387
|
})
|
|
387
|
-
},
|
|
388
|
+
}, Ze({ _: 2 }, [
|
|
388
389
|
t.$slots.menuIcon ? {
|
|
389
390
|
name: "menuIcon",
|
|
390
|
-
fn:
|
|
391
|
-
x(t.$slots, "menuIcon", U(B({ isOpen: l, color:
|
|
391
|
+
fn: z(({ isOpen: l, color: y }) => [
|
|
392
|
+
x(t.$slots, "menuIcon", U(B({ isOpen: l, color: y })), void 0, !0)
|
|
392
393
|
]),
|
|
393
394
|
key: "0"
|
|
394
395
|
} : void 0,
|
|
395
396
|
t.$slots.optionPdf ? {
|
|
396
397
|
name: "optionPdf",
|
|
397
|
-
fn:
|
|
398
|
+
fn: z(() => [
|
|
398
399
|
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
399
400
|
]),
|
|
400
401
|
key: "1"
|
|
401
402
|
} : void 0,
|
|
402
403
|
t.$slots.optionCsv ? {
|
|
403
404
|
name: "optionCsv",
|
|
404
|
-
fn:
|
|
405
|
+
fn: z(() => [
|
|
405
406
|
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
406
407
|
]),
|
|
407
408
|
key: "2"
|
|
408
409
|
} : void 0,
|
|
409
410
|
t.$slots.optionImg ? {
|
|
410
411
|
name: "optionImg",
|
|
411
|
-
fn:
|
|
412
|
+
fn: z(() => [
|
|
412
413
|
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
413
414
|
]),
|
|
414
415
|
key: "3"
|
|
415
416
|
} : void 0,
|
|
416
417
|
t.$slots.optionTable ? {
|
|
417
418
|
name: "optionTable",
|
|
418
|
-
fn:
|
|
419
|
+
fn: z(() => [
|
|
419
420
|
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
420
421
|
]),
|
|
421
422
|
key: "4"
|
|
422
423
|
} : void 0,
|
|
423
424
|
t.$slots.optionFullscreen ? {
|
|
424
425
|
name: "optionFullscreen",
|
|
425
|
-
fn:
|
|
426
|
-
x(t.$slots, "optionFullscreen", U(B({ toggleFullscreen: l, isFullscreen:
|
|
426
|
+
fn: z(({ toggleFullscreen: l, isFullscreen: y }) => [
|
|
427
|
+
x(t.$slots, "optionFullscreen", U(B({ toggleFullscreen: l, isFullscreen: y })), void 0, !0)
|
|
427
428
|
]),
|
|
428
429
|
key: "5"
|
|
429
430
|
} : void 0,
|
|
430
431
|
t.$slots.optionAnnotator ? {
|
|
431
432
|
name: "optionAnnotator",
|
|
432
|
-
fn:
|
|
433
|
-
x(t.$slots, "optionAnnotator", U(B({ toggleAnnotator: l, isAnnotator:
|
|
433
|
+
fn: z(({ toggleAnnotator: l, isAnnotator: y }) => [
|
|
434
|
+
x(t.$slots, "optionAnnotator", U(B({ toggleAnnotator: l, isAnnotator: y })), void 0, !0)
|
|
434
435
|
]),
|
|
435
436
|
key: "6"
|
|
436
437
|
} : void 0
|
|
@@ -439,14 +440,14 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
439
440
|
key: 4,
|
|
440
441
|
ref_key: "svgRef",
|
|
441
442
|
ref: ve,
|
|
442
|
-
xmlns:
|
|
443
|
+
xmlns: m(nt),
|
|
443
444
|
viewBox: T.value,
|
|
444
|
-
height:
|
|
445
|
-
width:
|
|
446
|
-
class:
|
|
447
|
-
style:
|
|
445
|
+
height: I.value.h,
|
|
446
|
+
width: I.value.w,
|
|
447
|
+
class: Te({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
448
|
+
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
448
449
|
}, [
|
|
449
|
-
|
|
450
|
+
Je(mt),
|
|
450
451
|
t.$slots["chart-background"] ? (f(), b("foreignObject", {
|
|
451
452
|
key: 0,
|
|
452
453
|
x: T.value.x,
|
|
@@ -458,8 +459,8 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
458
459
|
}
|
|
459
460
|
}, [
|
|
460
461
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
461
|
-
], 8,
|
|
462
|
-
(f(!0), b(
|
|
462
|
+
], 8, Tt)) : k("", !0),
|
|
463
|
+
(f(!0), b(Q, null, Ke(F.value, (l) => (f(), b(Q, null, [
|
|
463
464
|
C("defs", null, [
|
|
464
465
|
C("radialGradient", {
|
|
465
466
|
id: l.id,
|
|
@@ -467,21 +468,21 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
467
468
|
}, [
|
|
468
469
|
C("stop", {
|
|
469
470
|
offset: "10%",
|
|
470
|
-
"stop-color":
|
|
471
|
-
}, null, 8,
|
|
471
|
+
"stop-color": m(rt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
472
|
+
}, null, 8, St),
|
|
472
473
|
C("stop", {
|
|
473
474
|
offset: "90%",
|
|
474
|
-
"stop-color":
|
|
475
|
-
}, null, 8,
|
|
475
|
+
"stop-color": m(Oe)(l.color, 0.1)
|
|
476
|
+
}, null, 8, It),
|
|
476
477
|
C("stop", {
|
|
477
478
|
offset: "100%",
|
|
478
479
|
"stop-color": l.color
|
|
479
|
-
}, null, 8,
|
|
480
|
-
], 8,
|
|
480
|
+
}, null, 8, Ot)
|
|
481
|
+
], 8, Pt)
|
|
481
482
|
]),
|
|
482
483
|
t.$slots.pattern ? (f(), b("g", Ft, [
|
|
483
484
|
C("defs", null, [
|
|
484
|
-
x(t.$slots, "pattern",
|
|
485
|
+
x(t.$slots, "pattern", Pe({ ref_for: !0 }, { ...l, patternId: `pattern_${s.value}_${l.id}` }), void 0, !0)
|
|
485
486
|
])
|
|
486
487
|
])) : k("", !0),
|
|
487
488
|
C("rect", {
|
|
@@ -493,10 +494,10 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
493
494
|
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
494
495
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
495
496
|
rx: l.r,
|
|
496
|
-
onMouseenter: () =>
|
|
497
|
-
onMouseout: n[0] || (n[0] = (
|
|
498
|
-
onClick: (
|
|
499
|
-
}, null, 40,
|
|
497
|
+
onMouseenter: () => He(l),
|
|
498
|
+
onMouseout: n[0] || (n[0] = (y) => d.value = null),
|
|
499
|
+
onClick: (y) => v("selectDatapoint", l)
|
|
500
|
+
}, null, 40, Nt),
|
|
500
501
|
t.$slots.pattern ? (f(), b("rect", {
|
|
501
502
|
key: 1,
|
|
502
503
|
x: l.x - l.r,
|
|
@@ -510,86 +511,86 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
510
511
|
style: {
|
|
511
512
|
pointerEvents: "none"
|
|
512
513
|
}
|
|
513
|
-
}, null, 8,
|
|
514
|
-
t.$slots["data-label"] ? x(t.$slots, "data-label",
|
|
514
|
+
}, null, 8, Mt)) : k("", !0),
|
|
515
|
+
t.$slots["data-label"] ? x(t.$slots, "data-label", Pe({
|
|
515
516
|
key: 2,
|
|
516
517
|
ref_for: !0
|
|
517
|
-
}, { ...l, createTSpans:
|
|
518
|
+
}, { ...l, createTSpans: m(ut), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : m(q)(l.color) }), void 0, !0) : (f(), b(Q, { key: 3 }, [
|
|
518
519
|
e.value.style.chart.circles.labels.name.show && l.name ? (f(), b("text", {
|
|
519
520
|
key: 0,
|
|
520
521
|
style: {
|
|
521
522
|
pointerEvents: "none",
|
|
522
523
|
transition: "opacity 0.2s ease-in-out"
|
|
523
524
|
},
|
|
524
|
-
opacity: d.value && !
|
|
525
|
+
opacity: d.value && !S.value ? 0.2 : 1,
|
|
525
526
|
x: l.x,
|
|
526
|
-
y: l.y +
|
|
527
|
+
y: l.y + we(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
|
|
527
528
|
"font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
528
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color :
|
|
529
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : m(q)(l.color),
|
|
529
530
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
530
531
|
"text-anchor": "middle"
|
|
531
|
-
}, j(l.name), 9,
|
|
532
|
+
}, j(l.name), 9, Et)) : k("", !0),
|
|
532
533
|
e.value.style.chart.circles.labels.value.show ? (f(), b("text", {
|
|
533
534
|
key: 1,
|
|
534
535
|
style: {
|
|
535
536
|
pointerEvents: "none",
|
|
536
537
|
transition: "opacity 0.2s ease-in-out"
|
|
537
538
|
},
|
|
538
|
-
opacity: d.value && !
|
|
539
|
+
opacity: d.value && !S.value ? 0.2 : 1,
|
|
539
540
|
x: l.x,
|
|
540
|
-
y: l.y +
|
|
541
|
-
"font-size":
|
|
542
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color :
|
|
541
|
+
y: l.y + we(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
|
|
542
|
+
"font-size": Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
543
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : m(q)(l.color),
|
|
543
544
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
544
545
|
"text-anchor": "middle"
|
|
545
|
-
}, j(se(l)), 9,
|
|
546
|
+
}, j(se(l)), 9, Rt)) : k("", !0)
|
|
546
547
|
], 64))
|
|
547
548
|
], 64))), 256)),
|
|
548
|
-
d.value && e.value.style.chart.circles.zoom.show && !
|
|
549
|
+
d.value && e.value.style.chart.circles.zoom.show && !S.value ? (f(), b(Q, { key: 1 }, [
|
|
549
550
|
C("circle", {
|
|
550
|
-
style:
|
|
551
|
+
style: K(Ve.value),
|
|
551
552
|
cx: d.value.x,
|
|
552
553
|
cy: d.value.y,
|
|
553
|
-
r:
|
|
554
|
+
r: H.value,
|
|
554
555
|
opacity: P.value,
|
|
555
556
|
stroke: e.value.style.chart.circles.stroke,
|
|
556
557
|
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
557
558
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
558
|
-
}, null, 12,
|
|
559
|
-
t.$slots["zoom-label"] ? (f(), b("g",
|
|
560
|
-
x(t.$slots, "zoom-label", U(B({ ...d.value, zoomOpacity: P.value, currentRadius:
|
|
561
|
-
])) : (f(), b("g",
|
|
559
|
+
}, null, 12, At),
|
|
560
|
+
t.$slots["zoom-label"] ? (f(), b("g", Dt, [
|
|
561
|
+
x(t.$slots, "zoom-label", U(B({ ...d.value, zoomOpacity: P.value, currentRadius: H.value, fontSize: V.value })), void 0, !0)
|
|
562
|
+
])) : (f(), b("g", Lt, [
|
|
562
563
|
C("text", {
|
|
563
564
|
style: {
|
|
564
565
|
pointerEvents: "none"
|
|
565
566
|
},
|
|
566
567
|
opacity: P.value,
|
|
567
568
|
x: d.value.x,
|
|
568
|
-
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY -
|
|
569
|
+
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - V.value.name / 4,
|
|
569
570
|
"text-anchor": "middle",
|
|
570
|
-
"font-size":
|
|
571
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color :
|
|
571
|
+
"font-size": V.value.name,
|
|
572
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : m(q)(d.value.color),
|
|
572
573
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
573
|
-
}, j(d.value.name), 9,
|
|
574
|
+
}, j(d.value.name), 9, Ht),
|
|
574
575
|
C("text", {
|
|
575
576
|
style: {
|
|
576
577
|
pointerEvents: "none"
|
|
577
578
|
},
|
|
578
579
|
opacity: P.value,
|
|
579
580
|
x: d.value.x,
|
|
580
|
-
y: d.value.y +
|
|
581
|
+
y: d.value.y + V.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
581
582
|
"text-anchor": "middle",
|
|
582
|
-
"font-size":
|
|
583
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color :
|
|
583
|
+
"font-size": V.value.value,
|
|
584
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : m(q)(d.value.color),
|
|
584
585
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
585
|
-
}, j(
|
|
586
|
+
}, j(Ge()), 9, Vt)
|
|
586
587
|
]))
|
|
587
588
|
], 64)) : k("", !0),
|
|
588
589
|
x(t.$slots, "svg", {
|
|
589
590
|
svg: { ...T.value }
|
|
590
591
|
}, void 0, !0)
|
|
591
|
-
], 14,
|
|
592
|
-
a.value ? k("", !0) : (f(), M(
|
|
592
|
+
], 14, $t)) : k("", !0),
|
|
593
|
+
a.value ? k("", !0) : (f(), M(gt, {
|
|
593
594
|
key: 5,
|
|
594
595
|
config: {
|
|
595
596
|
type: "circlePack",
|
|
@@ -598,8 +599,8 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
601
|
})),
|
|
601
|
-
t.$slots.watermark ? (f(), b("div",
|
|
602
|
-
x(t.$slots, "watermark", U(B({ isPrinting:
|
|
602
|
+
t.$slots.watermark ? (f(), b("div", Gt, [
|
|
603
|
+
x(t.$slots, "watermark", U(B({ isPrinting: m(ye) || m(me) })), void 0, !0)
|
|
603
604
|
])) : k("", !0),
|
|
604
605
|
t.$slots.source ? (f(), b("div", {
|
|
605
606
|
key: 7,
|
|
@@ -609,7 +610,7 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
609
610
|
}, [
|
|
610
611
|
x(t.$slots, "source", {}, void 0, !0)
|
|
611
612
|
], 512)) : k("", !0),
|
|
612
|
-
a.value ? (f(), M(
|
|
613
|
+
a.value ? (f(), M(pt, {
|
|
613
614
|
key: 8,
|
|
614
615
|
hideDetails: "",
|
|
615
616
|
config: {
|
|
@@ -625,33 +626,33 @@ const $t = ["id"], Tt = ["xmlns", "viewBox", "height", "width"], Pt = ["x", "y",
|
|
|
625
626
|
}
|
|
626
627
|
}
|
|
627
628
|
}, {
|
|
628
|
-
content:
|
|
629
|
-
(f(), M(
|
|
630
|
-
key: `table_${
|
|
631
|
-
colNames:
|
|
632
|
-
head:
|
|
633
|
-
body:
|
|
634
|
-
config:
|
|
629
|
+
content: z(() => [
|
|
630
|
+
(f(), M(bt, {
|
|
631
|
+
key: `table_${R.value}`,
|
|
632
|
+
colNames: J.value.colNames,
|
|
633
|
+
head: J.value.head,
|
|
634
|
+
body: J.value.body,
|
|
635
|
+
config: J.value.config,
|
|
635
636
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
636
637
|
onClose: n[1] || (n[1] = (l) => D.value.showTable = !1)
|
|
637
638
|
}, {
|
|
638
|
-
th:
|
|
639
|
+
th: z(({ th: l }) => [
|
|
639
640
|
C("div", {
|
|
640
641
|
innerHTML: l,
|
|
641
642
|
style: { display: "flex", "align-items": "center" }
|
|
642
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, Ut)
|
|
643
644
|
]),
|
|
644
|
-
td:
|
|
645
|
-
|
|
645
|
+
td: z(({ td: l }) => [
|
|
646
|
+
Qe(j(l.name || l), 1)
|
|
646
647
|
]),
|
|
647
648
|
_: 1
|
|
648
649
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
649
650
|
]),
|
|
650
651
|
_: 1
|
|
651
652
|
}, 8, ["config"])) : k("", !0)
|
|
652
|
-
], 46,
|
|
653
|
+
], 46, zt));
|
|
653
654
|
}
|
|
654
|
-
},
|
|
655
|
+
}, sl = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-6e0719a8"]]);
|
|
655
656
|
export {
|
|
656
|
-
|
|
657
|
+
sl as default
|
|
657
658
|
};
|