vue-data-ui 2.6.6 → 2.6.8
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-DFWjAvCY.js → Arrow-BHD3VBsD.js} +1 -1
- package/dist/{Arrow-BYqxz6UG.cjs → Arrow-YuEygGzC.cjs} +1 -1
- package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-D326yPTV.cjs} +1 -1
- package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-dThl5uNa.js} +1 -1
- package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-CaD8j-SL.cjs} +1 -1
- package/dist/{DataTable-CJN0sipt.js → DataTable-D0-zzsJg.js} +2 -2
- package/dist/{Legend-CM7IGBC3.cjs → Legend-CEw2uq9s.cjs} +1 -1
- package/dist/{Legend-BDyPoYfp.js → Legend-Oaw0MY8Y.js} +2 -2
- package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-CCgJTyH9.cjs} +1 -1
- package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-J_USnljf.js} +1 -1
- package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CoEXEMcN.js} +3 -3
- package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-DvNBHCpq.cjs} +1 -1
- package/dist/Shape-Cwx-wRaK.cjs +1 -0
- package/dist/{Shape-C_qIhG3J.js → Shape-Dtm6toQp.js} +26 -23
- package/dist/{Slicer-DPae3p1M.cjs → Slicer-7z_6bjyU.cjs} +1 -1
- package/dist/{Slicer-BQP3UIW-.js → Slicer-BAcq2vD0.js} +2 -2
- package/dist/{Title-BGiQdt7J.cjs → Title-BQSh4ukk.cjs} +1 -1
- package/dist/{Title-D6h1gTvZ.js → Title-DePxeqVl.js} +1 -1
- package/dist/{Tooltip-BonEVaob.js → Tooltip-DRw9RoFp.js} +23 -20
- package/dist/Tooltip-DtqrGu-Q.cjs +1 -0
- package/dist/{index-B9qF6XbP.js → index-CZlI7PiS.js} +1 -1
- package/dist/{index-kZKcQZM_.cjs → index-DD4PT0Pl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-Cg0NIwr6.js} +1 -1
- package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-DU7JFxpL.cjs} +1 -1
- package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-BtJq2wwh.cjs} +1 -1
- package/dist/{usePrinter-DsiBLAy1.js → usePrinter-D-sSdR2l.js} +1 -1
- package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-Dh3BJvUF.js} +61 -61
- package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-DzVmFW3P.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-Ckd-GTWY.js} +171 -168
- package/dist/vue-ui-3d-bar-llxfgI9N.cjs +19 -0
- package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-2He8z0Sy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-DVtmOO3I.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-BUGAES7K.js} +85 -82
- package/dist/vue-ui-age-pyramid-CxBb12yp.cjs +1 -0
- package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-BDUanFLb.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-gIa7-tAI.js} +1 -1
- package/dist/vue-ui-bullet-Bg8f_RzX.cjs +34 -0
- package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-DNfzMdcg.js} +92 -89
- package/dist/vue-ui-candlestick-CnKPX6xB.cjs +2 -0
- package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-jErGIOZA.js} +155 -152
- package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-DHyvpjWL.js} +4 -4
- package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-DsY9Mrdg.cjs} +1 -1
- package/dist/vue-ui-chestnut-BTCxF3dU.cjs +6 -0
- package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-kQjk4FqR.js} +186 -183
- package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-BQbwIDRa.js} +99 -96
- package/dist/vue-ui-circle-pack-D-eMMNzU.cjs +1 -0
- package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-Dd2eSMAz.cjs} +1 -1
- package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-xy62w2ep.js} +2 -2
- package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DPjU-kPn.js} +2 -2
- package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-nMODKstD.cjs} +1 -1
- package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-BNTE0Lsb.js} +2 -2
- package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-Beuy8wvV.cjs} +1 -1
- package/dist/vue-ui-donut-DWKUDr7k.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BICtQ8ke.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-DfHfXqar.js} +133 -131
- package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-ipVF2Pk6.js} +158 -155
- package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-D04To0aO.js} +125 -122
- package/dist/vue-ui-dumbbell-DPZYa6RZ.cjs +9 -0
- package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-DYpBU4gG.js} +96 -93
- package/dist/vue-ui-flow-HFjfjzgX.cjs +1 -0
- package/dist/vue-ui-funnel-BwClLXO6.cjs +1 -0
- package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-CVQHETom.js} +88 -85
- package/dist/vue-ui-galaxy-B0W8yBZU.cjs +1 -0
- package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-DseGnRIL.js} +123 -120
- package/dist/vue-ui-gauge-0vhiDi19.cjs +1 -0
- package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-B7nCLtyI.js} +86 -83
- package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-C1fpqm2H.js} +3 -3
- package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-CTMnMH7C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-B0a6TegZ.js} +109 -106
- package/dist/vue-ui-heatmap-DjxXVFyU.cjs +1 -0
- package/dist/vue-ui-history-plot-CfjWg_3c.cjs +1 -0
- package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-DsLgXpZ8.js} +130 -127
- package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-CTsWQvCi.cjs} +1 -1
- package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-be1EaVNS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BHm2QQQF.js} +2 -2
- package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-DLdlPE48.cjs} +1 -1
- package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule--G2QIMak.js} +147 -144
- package/dist/vue-ui-molecule-DQOP_2JN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-Bhr5Q9pC.js} +97 -94
- package/dist/vue-ui-mood-radar-HxyTIDLP.cjs +1 -0
- package/dist/vue-ui-nested-donuts-C0aK_Cmr.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-Dtll0W-x.js} +99 -96
- package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-CRRZ8ajr.js} +105 -102
- package/dist/vue-ui-onion-DJFv8ezH.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BTkf3dkR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-DMk3iobe.js} +97 -94
- package/dist/vue-ui-quadrant-B7iHGaqG.cjs +1 -0
- package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-EcGC8p0U.js} +155 -152
- package/dist/vue-ui-quick-chart-BOla8Yse.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-D6AS1YSx.js} +164 -161
- package/dist/vue-ui-radar-DmM3tCiY.cjs +1 -0
- package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-LzAasUWm.js} +105 -102
- package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-D9K7meNL.cjs} +1 -1
- package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-DK4hwg8z.js} +2 -2
- package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-CbOCYAmF.js} +127 -124
- package/dist/vue-ui-relation-circle-DIJuJZrt.cjs +1 -0
- package/dist/vue-ui-rings-BWgF92GG.cjs +2 -0
- package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-Cqzy5T3m.js} +114 -111
- package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DXvyWQYL.js} +157 -154
- package/dist/vue-ui-scatter-F-gNKXpp.cjs +1 -0
- package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-BL75IkNz.js} +1 -1
- package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-BXngAa8V.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-D8r-yAkW.js} +3 -3
- package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-Tk4j6G2D.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-BKWWVHh7.js} +2 -2
- package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-BLnMEG6Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-Bb7xpmpt.js} +5 -5
- package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-CqG-PKFp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-0h661dcM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-JIpGYhbq.js} +4 -4
- package/dist/vue-ui-sparkgauge-BLglWMCN.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-Cc-l_NLU.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-BysifQmq.js} +93 -90
- package/dist/vue-ui-sparkhistogram-CCbcvIJ1.cjs +1 -0
- package/dist/vue-ui-sparkline-CDJX8K9i.cjs +1 -0
- package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CV-N3Wio.js} +109 -106
- package/dist/vue-ui-sparkstackbar-Bo4JAlsR.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-WOO_AbtI.js} +59 -56
- package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CP0igpri.js} +136 -133
- package/dist/vue-ui-stackbar-D7odU6jb.cjs +6 -0
- package/dist/vue-ui-strip-plot-CUqC58Ki.cjs +1 -0
- package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-_3AJWLnm.js} +127 -124
- package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-8O19epjz.cjs} +1 -1
- package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-WdE7p5Oy.js} +1 -1
- package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CXS6WfTi.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-DH5kHmxx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-CWwjANqk.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-DnvQfr2p.cjs} +1 -1
- package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-BxrDTquG.js} +84 -81
- package/dist/vue-ui-thermometer-COmtpPaq.cjs +1 -0
- package/dist/vue-ui-timer-Bx3W4oUc.cjs +64 -0
- package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-DjKCOw9A.js} +183 -180
- package/dist/vue-ui-tiremarks--XDyJeJg.cjs +1 -0
- package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-VWxcZxB-.js} +59 -56
- package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-BGFmZcII.js} +123 -120
- package/dist/vue-ui-treemap-DTwjydy8.cjs +1 -0
- package/dist/vue-ui-vertical-bar-Bpv8mXW2.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-DC9czKCT.js} +108 -105
- package/dist/vue-ui-waffle-B_6ZAnKt.cjs +1 -0
- package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-Cu63K9Iy.js} +107 -104
- package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-AOt-pfpa.js} +75 -72
- package/dist/vue-ui-wheel-BQM-dxTa.cjs +1 -0
- package/dist/vue-ui-word-cloud-Bam3-7P_.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CrILrx6m.js} +97 -94
- package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-BuLymzS3.js} +179 -150
- package/dist/vue-ui-xy-CSmObuR7.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BQ0Lbxbd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-DPnb5mqS.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-BN3-_2DI.cjs +0 -1
- package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
- package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
- package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
- package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
- package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
- package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
- package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
- package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
- package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
- package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
- package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
- package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
- package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
- package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
- package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
- package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
- package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
- package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
- package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
- package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
- package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
- package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
- package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
- package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
- package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
- package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
- package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
- package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
- package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
- package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
- package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
- package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
- package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
- package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
- package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
- package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
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 {
|
|
13
|
-
|
|
1
|
+
import { useCssVars as rt, computed as h, ref as f, watch as Fe, onMounted as nt, watchEffect as ut, createElementBlock as i, openBlock as s, unref as c, normalizeStyle as H, normalizeClass as Me, createBlock as S, createCommentVNode as y, renderSlot as m, createSlots as it, withCtx as C, normalizeProps as X, guardReactiveProps as Y, createVNode as ct, Fragment as T, renderList as se, createElementVNode as k, mergeProps as Ne, toDisplayString as E, createTextVNode as vt, nextTick as dt } from "vue";
|
|
2
|
+
import { u as ht, c as _e, t as re, p as P, a as ft, o as yt, e as mt, b as pt, d as Ae, m as bt, h as Ee, f as ne, X as gt, l as kt, G as R, a6 as xt, q as wt, r as Ct, i as Re } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { u as De } from "./useNestedProp-Cg0NIwr6.js";
|
|
4
|
+
import { u as zt, U as $t } from "./usePrinter-D-sSdR2l.js";
|
|
5
|
+
import { _ as Tt } from "./Title-DePxeqVl.js";
|
|
6
|
+
import { P as Pt } from "./PenAndPaper-CoEXEMcN.js";
|
|
7
|
+
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as Ot } from "./PackageVersion-J_USnljf.js";
|
|
9
|
+
import It from "./vue-ui-accordion-DVtmOO3I.js";
|
|
10
|
+
import { D as Ft } from "./DataTable-D0-zzsJg.js";
|
|
11
|
+
import Mt from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
12
|
+
import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const At = ["id"], Et = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"], Dt = ["id"], Lt = ["stop-color"], Gt = ["stop-color"], Ut = ["stop-color"], Vt = { key: 0 }, Bt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Ht = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Xt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Yt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Wt = ["d", "fill"], jt = ["cx", "cy", "r", "opacity", "stroke", "fill"], qt = {
|
|
14
15
|
key: 0,
|
|
15
16
|
style: { pointerEvents: "none" }
|
|
16
|
-
},
|
|
17
|
+
}, Zt = { key: 1 }, Jt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Kt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Qt = {
|
|
17
18
|
key: 6,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, el = ["innerHTML"], tl = {
|
|
20
21
|
__name: "vue-ui-circle-pack",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -34,26 +35,26 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectDatapoint"],
|
|
36
37
|
setup(Le, { expose: Ge, emit: Ue }) {
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
rt((t) => ({
|
|
39
|
+
"21d49e49": F.value,
|
|
40
|
+
"43f6b082": J.value
|
|
40
41
|
}));
|
|
41
|
-
const z = Le, Ve = Ue, { vue_ui_circle_pack: Be } =
|
|
42
|
+
const z = Le, Ve = Ue, { vue_ui_circle_pack: Be } = ht(), D = h(() => !!z.dataset && z.dataset.length), O = f(_e()), W = f(null), He = f(null), Xe = f(null), ue = f(0), ie = f(0), ce = f(0), Ye = f(null), e = h({
|
|
42
43
|
get: () => he(),
|
|
43
44
|
set: (t) => t
|
|
44
|
-
}), {
|
|
45
|
+
}), { svgRef: We } = Nt({ config: e.value.style.chart.title }), {
|
|
45
46
|
userOptionsVisible: j,
|
|
46
47
|
setUserOptionsVisibility: ve,
|
|
47
48
|
keepUserOptionState: de
|
|
48
|
-
} =
|
|
49
|
+
} = St({ config: e.value });
|
|
49
50
|
function he() {
|
|
50
|
-
const t =
|
|
51
|
+
const t = De({
|
|
51
52
|
userConfig: z.config,
|
|
52
53
|
defaultConfig: Be
|
|
53
54
|
});
|
|
54
55
|
return t.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
56
|
+
...De({
|
|
57
|
+
userConfig: ft.vue_ui_circle_pack[t.theme] || z.config,
|
|
57
58
|
defaultConfig: t
|
|
58
59
|
}),
|
|
59
60
|
customPalette: re[t.theme] || P
|
|
@@ -62,29 +63,29 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
62
63
|
Fe(() => z.config, (t) => {
|
|
63
64
|
e.value = he(), j.value = !e.value.userOptions.showOnChartHover, q(), ue.value += 1, ie.value += 1, I.value.showTable = e.value.table.show;
|
|
64
65
|
}, { deep: !0 });
|
|
65
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: me, generateImage: pe } =
|
|
66
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: me, generateImage: pe } = zt({
|
|
66
67
|
elementId: `vue-ui-circle-pack_${O.value}`,
|
|
67
68
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
68
|
-
}),
|
|
69
|
+
}), je = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), I = f({
|
|
69
70
|
showTable: e.value.table.show
|
|
70
71
|
});
|
|
71
72
|
async function q() {
|
|
72
|
-
|
|
73
|
+
yt(z.dataset) && mt({
|
|
73
74
|
componentName: "VueUiCirclePack",
|
|
74
75
|
type: "dataset"
|
|
75
|
-
}), await
|
|
76
|
+
}), await Ke();
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
+
nt(q), Fe(() => z.dataset, async (t) => {
|
|
78
79
|
await q();
|
|
79
80
|
}, { deep: !0 });
|
|
80
|
-
const be = h(() =>
|
|
81
|
+
const be = h(() => pt(e.value.customPalette));
|
|
81
82
|
function ge(t, a) {
|
|
82
83
|
return Math.hypot(a.x - t.x, a.y - t.y);
|
|
83
84
|
}
|
|
84
85
|
function ke(t, a) {
|
|
85
86
|
return a.some((l) => ge(t, l) < t.radius + l.radius);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function qe(t, a, l, r) {
|
|
88
89
|
const v = a * 2;
|
|
89
90
|
for (let x of t)
|
|
90
91
|
for (let w = 0; w < 360; w += 1) {
|
|
@@ -94,7 +95,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
94
95
|
}
|
|
95
96
|
return null;
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function Ze({
|
|
98
99
|
datapoints: t,
|
|
99
100
|
width: a,
|
|
100
101
|
height: l,
|
|
@@ -114,7 +115,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
114
115
|
y: l / 2 + x
|
|
115
116
|
});
|
|
116
117
|
for (let g of u.slice(1)) {
|
|
117
|
-
let { radius: d, ...Te } = g, ee =
|
|
118
|
+
let { radius: d, ...Te } = g, ee = qe(o, d, a, l);
|
|
118
119
|
if (ee)
|
|
119
120
|
o.push({ ...Te, x: ee.x, y: ee.y, radius: d });
|
|
120
121
|
else {
|
|
@@ -124,7 +125,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
124
125
|
let Se = le * Math.PI / 180, ae = V.x + (d + V.radius) * Math.cos(Se), oe = V.y + (d + V.radius) * Math.sin(Se), B = { ...Te, x: ae, y: oe, radius: d };
|
|
125
126
|
if (ae - d >= 0 && ae + d <= a && oe - d >= 0 && oe + d <= l && !ke(B, o)) {
|
|
126
127
|
let Oe = o.reduce(
|
|
127
|
-
(
|
|
128
|
+
(st, Ie) => st + (ge(B, Ie) < B.radius + Ie.radius ? 1 : 0),
|
|
128
129
|
0
|
|
129
130
|
);
|
|
130
131
|
Oe < Pe && (Pe = Oe, te = B);
|
|
@@ -142,12 +143,12 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
142
143
|
id: _e(),
|
|
143
144
|
color: l
|
|
144
145
|
};
|
|
145
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), b = f([]),
|
|
146
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), b = f([]), Je = h(() => Math.max(...b.value.map((t) => t.radius)));
|
|
146
147
|
function xe(t, a) {
|
|
147
|
-
return a /
|
|
148
|
+
return a / Je.value * t;
|
|
148
149
|
}
|
|
149
|
-
async function
|
|
150
|
-
b.value =
|
|
150
|
+
async function Ke() {
|
|
151
|
+
b.value = Ze({
|
|
151
152
|
datapoints: Z.value,
|
|
152
153
|
width: 1e4,
|
|
153
154
|
height: 1e4,
|
|
@@ -167,9 +168,9 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
167
168
|
x: t ? (t == null ? void 0 : t.x) - (t == null ? void 0 : t.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0,
|
|
168
169
|
y: a ? (a == null ? void 0 : a.y) - (a == null ? void 0 : a.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0
|
|
169
170
|
};
|
|
170
|
-
}),
|
|
171
|
+
}), Qe = h(() => b.value.map((t) => {
|
|
171
172
|
if (t.breakdown)
|
|
172
|
-
return
|
|
173
|
+
return bt(
|
|
173
174
|
{ series: t.breakdown.map((a, l) => ({
|
|
174
175
|
...a,
|
|
175
176
|
color: Ae(a.color) || be.value[l] || P[l] || P[l % P.length]
|
|
@@ -186,15 +187,15 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
186
187
|
t.radius / 2
|
|
187
188
|
);
|
|
188
189
|
})), n = f(null);
|
|
189
|
-
function
|
|
190
|
+
function et(t) {
|
|
190
191
|
e.value.style.chart.circles.zoom.show && (n.value = t);
|
|
191
192
|
}
|
|
192
|
-
const F = h(() => n.value ? n.value.radius : 0), J = h(() => n.value ? n.value.radius > p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? n.value.radius : p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), $ = f(0),
|
|
193
|
+
const F = h(() => n.value ? n.value.radius : 0), J = h(() => n.value ? n.value.radius > p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? n.value.radius : p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), $ = f(0), tt = h(() => ({
|
|
193
194
|
pointerEvents: "none",
|
|
194
195
|
opacity: $.value,
|
|
195
196
|
filter: `drop-shadow(0px 0px 6px ${Ee(n.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
196
197
|
})), M = f(F.value);
|
|
197
|
-
|
|
198
|
+
ut(() => {
|
|
198
199
|
M.value = F.value, $.value = 0;
|
|
199
200
|
let t = null;
|
|
200
201
|
function a(l) {
|
|
@@ -209,7 +210,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
209
210
|
value: e.value.style.chart.circles.zoom.label.value.fontSize * p.value.width / 300
|
|
210
211
|
}));
|
|
211
212
|
function K(t) {
|
|
212
|
-
return
|
|
213
|
+
return Re(
|
|
213
214
|
e.value.style.chart.circles.labels.value.formatter,
|
|
214
215
|
t.value,
|
|
215
216
|
ne({
|
|
@@ -220,8 +221,8 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
220
221
|
})
|
|
221
222
|
);
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
return
|
|
224
|
+
function lt() {
|
|
225
|
+
return Re(
|
|
225
226
|
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
226
227
|
n.value.value,
|
|
227
228
|
ne({
|
|
@@ -239,7 +240,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
239
240
|
return Math.min(t.radius / 2.5, a);
|
|
240
241
|
}
|
|
241
242
|
const _ = f(!1);
|
|
242
|
-
function
|
|
243
|
+
function at(t) {
|
|
243
244
|
_.value = t, ce.value += 1;
|
|
244
245
|
}
|
|
245
246
|
const L = f(!1);
|
|
@@ -255,11 +256,11 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
255
256
|
return { head: t, body: a };
|
|
256
257
|
});
|
|
257
258
|
function ze() {
|
|
258
|
-
|
|
259
|
+
dt(() => {
|
|
259
260
|
const t = G.value.head.map((r, v) => [[
|
|
260
261
|
r.name
|
|
261
|
-
], [G.value.body[v]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l =
|
|
262
|
-
|
|
262
|
+
], [G.value.body[v]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l = wt(a);
|
|
263
|
+
Ct({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
266
|
const U = h(() => {
|
|
@@ -306,11 +307,11 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
306
307
|
function $e() {
|
|
307
308
|
I.value.showTable = !I.value.showTable;
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function ot() {
|
|
310
311
|
return Z.value;
|
|
311
312
|
}
|
|
312
313
|
return Ge({
|
|
313
|
-
getData:
|
|
314
|
+
getData: ot,
|
|
314
315
|
generateCsv: ze,
|
|
315
316
|
generatePdf: me,
|
|
316
317
|
generateImage: pe,
|
|
@@ -325,7 +326,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
325
326
|
onMouseenter: a[2] || (a[2] = () => c(ve)(!0)),
|
|
326
327
|
onMouseleave: a[3] || (a[3] = () => c(ve)(!1))
|
|
327
328
|
}, [
|
|
328
|
-
e.value.userOptions.buttons.annotator ? (s(), S(
|
|
329
|
+
e.value.userOptions.buttons.annotator ? (s(), S(Pt, {
|
|
329
330
|
key: 0,
|
|
330
331
|
parent: W.value,
|
|
331
332
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -334,7 +335,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
334
335
|
onClose: Q
|
|
335
336
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
336
337
|
m(t.$slots, "userConfig", {}, void 0, !0),
|
|
337
|
-
|
|
338
|
+
je.value ? (s(), i("div", {
|
|
338
339
|
key: 1,
|
|
339
340
|
ref_key: "noTitle",
|
|
340
341
|
ref: Xe,
|
|
@@ -347,7 +348,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
347
348
|
ref: He,
|
|
348
349
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
349
350
|
}, [
|
|
350
|
-
(s(), S(
|
|
351
|
+
(s(), S(Tt, {
|
|
351
352
|
key: `title_${ue.value}`,
|
|
352
353
|
config: {
|
|
353
354
|
title: {
|
|
@@ -361,7 +362,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
361
362
|
}
|
|
362
363
|
}, null, 8, ["config"]))
|
|
363
364
|
], 512)) : y("", !0),
|
|
364
|
-
e.value.userOptions.show &&
|
|
365
|
+
e.value.userOptions.show && D.value && (c(de) || c(j)) ? (s(), S($t, {
|
|
365
366
|
ref: "details",
|
|
366
367
|
key: `user_option_${ce.value}`,
|
|
367
368
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -382,7 +383,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
382
383
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
383
384
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
384
385
|
isAnnotation: L.value,
|
|
385
|
-
onToggleFullscreen:
|
|
386
|
+
onToggleFullscreen: at,
|
|
386
387
|
onGeneratePdf: c(me),
|
|
387
388
|
onGenerateCsv: ze,
|
|
388
389
|
onGenerateImage: c(pe),
|
|
@@ -391,7 +392,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
391
392
|
style: H({
|
|
392
393
|
visibility: c(de) ? c(j) ? "visible" : "hidden" : "visible"
|
|
393
394
|
})
|
|
394
|
-
},
|
|
395
|
+
}, it({ _: 2 }, [
|
|
395
396
|
t.$slots.optionPdf ? {
|
|
396
397
|
name: "optionPdf",
|
|
397
398
|
fn: C(() => [
|
|
@@ -435,15 +436,17 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
435
436
|
key: "5"
|
|
436
437
|
} : void 0
|
|
437
438
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
438
|
-
|
|
439
|
+
D.value ? (s(), i("svg", {
|
|
439
440
|
key: 4,
|
|
440
|
-
|
|
441
|
+
ref_key: "svgRef",
|
|
442
|
+
ref: We,
|
|
443
|
+
xmlns: c(gt),
|
|
441
444
|
viewBox: `${p.value.x} ${p.value.y} ${p.value.width} ${p.value.height}`,
|
|
442
445
|
width: "100%",
|
|
443
446
|
class: Me({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
444
447
|
style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};`)
|
|
445
448
|
}, [
|
|
446
|
-
|
|
449
|
+
ct(Ot),
|
|
447
450
|
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
448
451
|
key: 0,
|
|
449
452
|
x: p.value.x,
|
|
@@ -455,7 +458,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
455
458
|
}
|
|
456
459
|
}, [
|
|
457
460
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
458
|
-
], 8,
|
|
461
|
+
], 8, Rt)) : y("", !0),
|
|
459
462
|
(s(!0), i(T, null, se(b.value, (l) => (s(), i(T, null, [
|
|
460
463
|
k("defs", null, [
|
|
461
464
|
k("radialGradient", {
|
|
@@ -464,19 +467,19 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
464
467
|
}, [
|
|
465
468
|
k("stop", {
|
|
466
469
|
offset: "10%",
|
|
467
|
-
"stop-color": c(
|
|
468
|
-
}, null, 8,
|
|
470
|
+
"stop-color": c(kt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
471
|
+
}, null, 8, Lt),
|
|
469
472
|
k("stop", {
|
|
470
473
|
offset: "90%",
|
|
471
474
|
"stop-color": c(Ee)(l.color, 0.1)
|
|
472
|
-
}, null, 8,
|
|
475
|
+
}, null, 8, Gt),
|
|
473
476
|
k("stop", {
|
|
474
477
|
offset: "100%",
|
|
475
478
|
"stop-color": l.color
|
|
476
|
-
}, null, 8,
|
|
477
|
-
], 8,
|
|
479
|
+
}, null, 8, Ut)
|
|
480
|
+
], 8, Dt)
|
|
478
481
|
]),
|
|
479
|
-
t.$slots.pattern ? (s(), i("g",
|
|
482
|
+
t.$slots.pattern ? (s(), i("g", Vt, [
|
|
480
483
|
k("defs", null, [
|
|
481
484
|
m(t.$slots, "pattern", Ne({ ref_for: !0 }, { ...l, patternId: `pattern_${O.value}_${l.id}` }), void 0, !0)
|
|
482
485
|
])
|
|
@@ -490,10 +493,10 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
490
493
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
491
494
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
492
495
|
rx: l.radius,
|
|
493
|
-
onMouseenter: () =>
|
|
496
|
+
onMouseenter: () => et(l),
|
|
494
497
|
onMouseout: a[0] || (a[0] = (r) => n.value = null),
|
|
495
498
|
onClick: (r) => Ve("selectDatapoint", l)
|
|
496
|
-
}, null, 40,
|
|
499
|
+
}, null, 40, Bt),
|
|
497
500
|
t.$slots.pattern ? (s(), i("rect", {
|
|
498
501
|
key: 1,
|
|
499
502
|
x: l.x - l.radius,
|
|
@@ -507,11 +510,11 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
507
510
|
style: {
|
|
508
511
|
pointerEvents: "none"
|
|
509
512
|
}
|
|
510
|
-
}, null, 8,
|
|
513
|
+
}, null, 8, Ht)) : y("", !0),
|
|
511
514
|
t.$slots["data-label"] ? m(t.$slots, "data-label", Ne({
|
|
512
515
|
key: 2,
|
|
513
516
|
ref_for: !0
|
|
514
|
-
}, { ...l, createTSpans: c(
|
|
517
|
+
}, { ...l, createTSpans: c(xt), fontSize: { name: l.radius / 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 : c(R)(l.color) }), void 0, !0) : (s(), i(T, { key: 3 }, [
|
|
515
518
|
e.value.style.chart.circles.labels.name.show && l.name ? (s(), i("text", {
|
|
516
519
|
key: 0,
|
|
517
520
|
style: {
|
|
@@ -522,10 +525,10 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
522
525
|
x: l.x,
|
|
523
526
|
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.name.offsetY) - l.radius / 6,
|
|
524
527
|
"font-size": l.radius / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
525
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : c(
|
|
528
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : c(R)(l.color),
|
|
526
529
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
527
530
|
"text-anchor": "middle"
|
|
528
|
-
}, E(l.name), 9,
|
|
531
|
+
}, E(l.name), 9, Xt)) : y("", !0),
|
|
529
532
|
e.value.style.chart.circles.labels.value.show ? (s(), i("text", {
|
|
530
533
|
key: 1,
|
|
531
534
|
style: {
|
|
@@ -536,32 +539,32 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
536
539
|
x: l.x,
|
|
537
540
|
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.value.offsetY) + l.radius / 3,
|
|
538
541
|
"font-size": Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
539
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : c(
|
|
542
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : c(R)(l.color),
|
|
540
543
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
541
544
|
"text-anchor": "middle"
|
|
542
|
-
}, E(K(l)), 9,
|
|
545
|
+
}, E(K(l)), 9, Yt)) : y("", !0)
|
|
543
546
|
], 64)),
|
|
544
|
-
(s(!0), i(T, null, se(
|
|
547
|
+
(s(!0), i(T, null, se(Qe.value, (r) => (s(), i(T, null, [
|
|
545
548
|
(s(!0), i(T, null, se(r, (v) => (s(), i("path", {
|
|
546
549
|
d: v.arcSlice,
|
|
547
550
|
fill: v.color,
|
|
548
551
|
stroke: "black"
|
|
549
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Wt))), 256))
|
|
550
553
|
], 64))), 256))
|
|
551
554
|
], 64))), 256)),
|
|
552
555
|
n.value && e.value.style.chart.circles.zoom.show ? (s(), i(T, { key: 1 }, [
|
|
553
556
|
k("circle", {
|
|
554
|
-
style: H(
|
|
557
|
+
style: H(tt.value),
|
|
555
558
|
cx: n.value.x,
|
|
556
559
|
cy: n.value.y,
|
|
557
560
|
r: M.value,
|
|
558
561
|
opacity: $.value,
|
|
559
562
|
stroke: e.value.style.chart.circles.stroke,
|
|
560
563
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${n.value.id})` : n.value.color
|
|
561
|
-
}, null, 12,
|
|
562
|
-
t.$slots["zoom-label"] ? (s(), i("g",
|
|
564
|
+
}, null, 12, jt),
|
|
565
|
+
t.$slots["zoom-label"] ? (s(), i("g", qt, [
|
|
563
566
|
m(t.$slots, "zoom-label", X(Y({ ...n.value, zoomOpacity: $.value, currentRadius: M.value, fontSize: N.value })), void 0, !0)
|
|
564
|
-
])) : (s(), i("g",
|
|
567
|
+
])) : (s(), i("g", Zt, [
|
|
565
568
|
k("text", {
|
|
566
569
|
style: {
|
|
567
570
|
pointerEvents: "none"
|
|
@@ -571,9 +574,9 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
571
574
|
y: n.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - N.value.name / 4,
|
|
572
575
|
"text-anchor": "middle",
|
|
573
576
|
"font-size": N.value.name,
|
|
574
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(
|
|
577
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(R)(n.value.color),
|
|
575
578
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
576
|
-
}, E(n.value.name), 9,
|
|
579
|
+
}, E(n.value.name), 9, Jt),
|
|
577
580
|
k("text", {
|
|
578
581
|
style: {
|
|
579
582
|
pointerEvents: "none"
|
|
@@ -583,16 +586,16 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
583
586
|
y: n.value.y + N.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
584
587
|
"text-anchor": "middle",
|
|
585
588
|
"font-size": N.value.value,
|
|
586
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(
|
|
589
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(R)(n.value.color),
|
|
587
590
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
588
|
-
}, E(
|
|
591
|
+
}, E(lt()), 9, Kt)
|
|
589
592
|
]))
|
|
590
593
|
], 64)) : y("", !0),
|
|
591
594
|
m(t.$slots, "svg", {
|
|
592
595
|
svg: { ...p.value }
|
|
593
596
|
}, void 0, !0)
|
|
594
|
-
], 14,
|
|
595
|
-
|
|
597
|
+
], 14, Et)) : y("", !0),
|
|
598
|
+
D.value ? y("", !0) : (s(), S(Mt, {
|
|
596
599
|
key: 5,
|
|
597
600
|
config: {
|
|
598
601
|
type: "circlePack",
|
|
@@ -601,7 +604,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
601
604
|
}
|
|
602
605
|
}
|
|
603
606
|
})),
|
|
604
|
-
t.$slots.watermark ? (s(), i("div",
|
|
607
|
+
t.$slots.watermark ? (s(), i("div", Qt, [
|
|
605
608
|
m(t.$slots, "watermark", X(Y({ isPrinting: c(fe) || c(ye) })), void 0, !0)
|
|
606
609
|
])) : y("", !0),
|
|
607
610
|
t.$slots.source ? (s(), i("div", {
|
|
@@ -612,7 +615,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
612
615
|
}, [
|
|
613
616
|
m(t.$slots, "source", {}, void 0, !0)
|
|
614
617
|
], 512)) : y("", !0),
|
|
615
|
-
|
|
618
|
+
D.value ? (s(), S(It, {
|
|
616
619
|
key: 8,
|
|
617
620
|
hideDetails: "",
|
|
618
621
|
config: {
|
|
@@ -629,7 +632,7 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
629
632
|
}
|
|
630
633
|
}, {
|
|
631
634
|
content: C(() => [
|
|
632
|
-
(s(), S(
|
|
635
|
+
(s(), S(Ft, {
|
|
633
636
|
key: `table_${ie.value}`,
|
|
634
637
|
colNames: U.value.colNames,
|
|
635
638
|
head: U.value.head,
|
|
@@ -642,19 +645,19 @@ const Nt = ["id"], _t = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
642
645
|
k("div", {
|
|
643
646
|
innerHTML: l,
|
|
644
647
|
style: { display: "flex", "align-items": "center" }
|
|
645
|
-
}, null, 8,
|
|
648
|
+
}, null, 8, el)
|
|
646
649
|
]),
|
|
647
650
|
td: C(({ td: l }) => [
|
|
648
|
-
|
|
651
|
+
vt(E(l.name || l), 1)
|
|
649
652
|
]),
|
|
650
653
|
_: 1
|
|
651
654
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
652
655
|
]),
|
|
653
656
|
_: 1
|
|
654
657
|
}, 8, ["config"])) : y("", !0)
|
|
655
|
-
], 46,
|
|
658
|
+
], 46, At));
|
|
656
659
|
}
|
|
657
|
-
},
|
|
660
|
+
}, yl = /* @__PURE__ */ _t(tl, [["__scopeId", "data-v-b6738dbd"]]);
|
|
658
661
|
export {
|
|
659
|
-
|
|
662
|
+
yl as default
|
|
660
663
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DD4PT0Pl.cjs"),fe=require("./useNestedProp-DU7JFxpL.cjs"),me=require("./usePrinter-BtJq2wwh.cjs"),Me=require("./Title-BQSh4ukk.cjs"),Ae=require("./PenAndPaper-DvNBHCpq.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),De=require("./PackageVersion-CCgJTyH9.cjs"),Re=require("./vue-ui-accordion-2He8z0Sy.cjs"),Le=require("./DataTable-CaD8j-SL.cjs"),qe=require("./vue-ui-skeleton-Tk4j6G2D.cjs"),Ue=require("./useChartAccessibility-Cm7nkzTG.cjs"),He=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ge=["id"],Ye=["xmlns","viewBox"],We=["x","y","width","height"],Xe=["id"],je=["stop-color"],Ze=["stop-color"],Je=["stop-color"],Ke={key:0},Qe=["x","y","width","height","stroke","stroke-width","fill","rx","onMouseenter","onClick"],et=["x","y","width","height","stroke","stroke-width","fill","rx"],tt=["opacity","x","y","font-size","fill","font-weight"],lt=["opacity","x","y","font-size","fill","font-weight"],at=["d","fill"],ot=["cx","cy","r","opacity","stroke","fill"],rt={key:0,style:{pointerEvents:"none"}},nt={key:1},st=["opacity","x","y","font-size","fill","font-weight"],ut=["opacity","x","y","font-size","fill","font-weight"],it={key:6,class:"vue-data-ui-watermark"},ct=["innerHTML"],dt={__name:"vue-ui-circle-pack",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(he,{expose:pe,emit:ye}){e.useCssVars(l=>({"21d49e49":C.value,"43f6b082":M.value}));const y=he,ge=ye,{vue_ui_circle_pack:ke}=r.useConfig(),$=e.computed(()=>!!y.dataset&&y.dataset.length),k=e.ref(r.createUid()),V=e.ref(null),be=e.ref(null),Ce=e.ref(null),H=e.ref(0),G=e.ref(0),Y=e.ref(0),xe=e.ref(null),t=e.computed({get:()=>j(),set:l=>l}),{svgRef:we}=Ue.useChartAccessibility({config:t.value.style.chart.title}),{userOptionsVisible:O,setUserOptionsVisibility:W,keepUserOptionState:X}=_e.useUserOptionState({config:t.value});function j(){const l=fe.useNestedProp({userConfig:y.config,defaultConfig:ke});return l.theme?{...fe.useNestedProp({userConfig:r.themes.vue_ui_circle_pack[l.theme]||y.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>y.config,l=>{t.value=j(),O.value=!t.value.userOptions.showOnChartHover,F(),H.value+=1,G.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:Z,isImaging:J,generatePdf:K,generateImage:Q}=me.usePrinter({elementId:`vue-ui-circle-pack_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-circle-pack"}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),b=e.ref({showTable:t.value.table.show});async function F(){r.objectIsEmpty(y.dataset)&&r.error({componentName:"VueUiCirclePack",type:"dataset"}),await Pe()}e.onMounted(F),e.watch(()=>y.dataset,async l=>{await F()},{deep:!0});const ee=e.computed(()=>r.convertCustomPalette(t.value.customPalette));function te(l,o){return Math.hypot(o.x-l.x,o.y-l.y)}function le(l,o){return o.some(a=>te(l,a)<l.radius+a.radius)}function ze(l,o,a,s){const c=o*2;for(let h of l)for(let p=0;p<360;p+=1){let z=p*Math.PI/180,i=h.x+c*Math.cos(z),n=h.y-c*Math.sin(z),m={x:i,y:n,radius:o};if(i-o>=0&&i+o<=a&&n-o>=0&&n+o<=s&&!le(m,l))return{x:i,y:n}}return null}function $e({datapoints:l,width:o,height:a,maxRadius:s,offsetX:c=0,offsetY:h=0}){const p=Math.max(...l.map(m=>m.value)),i=l.map((m,d)=>({...m,radius:m.value/p*s,index:d})).map((m,d)=>({...m,index:d})).toSorted((m,d)=>d.radius-m.radius);let n=[];n.push({...i[0],x:o/2+c,y:a/2+h});for(let m of i.slice(1)){let{radius:d,...ue}=m,D=ze(n,d,o,a);if(D)n.push({...ue,x:D.x,y:D.y,radius:d});else{let R=null,ie=1/0;for(let E of n)for(let L=0;L<360;L+=15){let ce=L*Math.PI/180,q=E.x+(d+E.radius)*Math.cos(ce),U=E.y+(d+E.radius)*Math.sin(ce),T={...ue,x:q,y:U,radius:d};if(q-d>=0&&q+d<=o&&U-d>=0&&U+d<=a&&!le(T,n)){let de=n.reduce((Ie,ve)=>Ie+(te(T,ve)<T.radius+ve.radius?1:0),0);de<ie&&(ie=de,R=T)}}R&&n.push(R)}}return n}const I=e.computed(()=>y.dataset.map((l,o)=>{const a=r.convertColorToHex(l.color)||ee.value[o]||r.themePalettes[t.value.theme||"default"][o%r.themePalettes[t.value.theme||"default"].length]||r.palette[o]||r.palette[o%r.palette.length];return{...l,id:r.createUid(),color:a}}).filter(l=>![null,void 0,1/0,-1/0].includes(l.value))),f=e.ref([]),Se=e.computed(()=>Math.max(...f.value.map(l=>l.radius)));function ae(l,o){return o/Se.value*l}async function Pe(){f.value=$e({datapoints:I.value,width:1e4,height:1e4,maxRadius:32})}const oe=e.computed(()=>({width:100,height:100})),v=e.computed(()=>{const l=f.value.reduce((i,n)=>n.x-n.radius<i.x-i.radius?n:i,f.value[0]),o=f.value.reduce((i,n)=>n.y-n.radius<i.y-i.radius?n:i,f.value[0]),a=f.value.reduce((i,n)=>n.x+n.radius>i.x+i.radius?n:i,f.value[0]),s=f.value.reduce((i,n)=>n.y+n.radius>i.y+i.radius?n:i,f.value[0]),c=(l==null?void 0:l.x)||0,h=(a==null?void 0:a.x)||oe.value.width,p=(o==null?void 0:o.y)||0,z=(s==null?void 0:s.y)||oe.value.height;return{maxX:h,minX:c,width:Math.abs(h-c)+(l?l.radius:0)+(a?a.radius:0)+t.value.style.chart.circles.strokeWidth*4,height:Math.abs(z-p)+(o?o.radius:0)+(s?s.radius:0)+t.value.style.chart.circles.strokeWidth*4,x:l?(l==null?void 0:l.x)-(l==null?void 0:l.radius)-t.value.style.chart.circles.strokeWidth*2:0,y:o?(o==null?void 0:o.y)-(o==null?void 0:o.radius)-t.value.style.chart.circles.strokeWidth*2:0}}),Ne=e.computed(()=>f.value.map(l=>{if(l.breakdown)return r.makeDonut({series:l.breakdown.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||ee.value[a]||r.palette[a]||r.palette[a%r.palette.length]}))},l.x,l.y,l.radius,l.radius,1.99999,2,1,360,105.25,l.radius/2)})),u=e.ref(null);function Ee(l){t.value.style.chart.circles.zoom.show&&(u.value=l)}const C=e.computed(()=>u.value?u.value.radius:0),M=e.computed(()=>u.value?u.value.radius>v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio?u.value.radius:v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio:0),g=e.ref(0),Te=e.computed(()=>({pointerEvents:"none",opacity:g.value,filter:`drop-shadow(0px 0px 6px ${r.darkenHexColor(u.value.color,t.value.style.chart.circles.zoom.shadowForce)})`})),x=e.ref(C.value);e.watchEffect(()=>{x.value=C.value,g.value=0;let l=null;function o(a){l||(l=a);const s=(a-l)/t.value.style.chart.circles.zoom.animationFrameMs;s<1?(x.value=C.value+(M.value-C.value)*s,g.value=0+t.value.style.chart.circles.zoom.opacity*s,requestAnimationFrame(o)):(x.value=M.value,g.value=t.value.style.chart.circles.zoom.opacity)}requestAnimationFrame(o)});const w=e.computed(()=>({name:t.value.style.chart.circles.zoom.label.name.fontSize*v.value.width/300,value:t.value.style.chart.circles.zoom.label.value.fontSize*v.value.width/300}));function A(l){return r.applyDataLabel(t.value.style.chart.circles.labels.value.formatter,l.value,r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:l.value,s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding}))}function Ve(){return r.applyDataLabel(t.value.style.chart.circles.zoom.label.value.formatter,u.value.value,r.dataLabel({p:t.value.style.chart.circles.zoom.label.value.prefix,v:u.value.value,s:t.value.style.chart.circles.zoom.label.value.suffix,r:t.value.style.chart.circles.zoom.label.value.rounding}))}function re(l){if(!l)return 0;const o=l.radius/A(l).length*(A(l).length===1?1:2);return Math.min(l.radius/2.5,o)}const B=e.ref(!1);function Oe(l){B.value=l,Y.value+=1}const S=e.ref(!1);function _(){S.value=!S.value}const P=e.computed(()=>{const l=I.value.map(a=>({name:a.name,value:a.value,color:a.color})).toSorted((a,s)=>s.value-a.value),o=l.map(a=>a.value);return{head:l,body:o}});function ne(){e.nextTick(()=>{const l=P.value.head.map((s,c)=>[[s.name],[P.value.body[c]]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(l),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-circle-pack"})})}const N=e.computed(()=>{const l=[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],o=P.value.head.map((c,h)=>{const p=r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:P.value.body[h],s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding});return[{color:c.color,name:c.name},p]}),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],head:l,body:o,config:a}});function se(){b.value.showTable=!b.value.showTable}function Fe(){return I.value}return pe({getData:Fe,generateCsv:ne,generatePdf:K,generateImage:Q,toggleTable:se,toggleAnnotator:_}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`vue-ui-circle-pack_${k.value}`,class:e.normalizeClass(`vue-ui-circle-pack ${B.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"circlePackChart",ref:V,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:o[2]||(o[2]=()=>e.unref(W)(!0)),onMouseleave:o[3]||(o[3]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:S.value,onClose:_},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"userConfig",{},void 0,!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Ce,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:be,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(X)||e.unref(O))?(e.openBlock(),e.createBlock(me.UserOptions,{ref:"details",key:`user_option_${Y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(J),uid:k.value,hasTooltip:!1,hasLabel:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,chartElement:V.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:S.value,onToggleFullscreen:Oe,onGeneratePdf:e.unref(K),onGenerateCsv:ne,onGenerateImage:e.unref(Q),onToggleTable:se,onToggleAnnotator:_,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:we,xmlns:e.unref(r.XMLNS),viewBox:`${v.value.x} ${v.value.y} ${v.value.width} ${v.value.height}`,width:"100%",class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(De._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:v.value.x,y:v.value.y,width:v.value.width,height:v.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,We)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:a.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.circles.gradient.intensity/100)},null,8,je),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,Ze),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Je)],8,Xe)]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ke,[e.createElementVNode("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{...a,patternId:`pattern_${k.value}_${a.id}`}),void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:a.x-a.radius,y:a.y-a.radius,width:a.radius*2,height:a.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:t.value.style.chart.circles.gradient.show?`url(#${a.id})`:a.color,rx:a.radius,onMouseenter:()=>Ee(a),onMouseout:o[0]||(o[0]=s=>u.value=null),onClick:s=>ge("selectDatapoint",a)},null,40,Qe),l.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.radius,y:a.y-a.radius,width:a.radius*2,height:a.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:`url(#pattern_${k.value}_${a.id})`,rx:a.radius,style:{pointerEvents:"none"}},null,8,et)):e.createCommentVNode("",!0),l.$slots["data-label"]?e.renderSlot(l.$slots,"data-label",e.mergeProps({key:2,ref_for:!0},{...a,createTSpans:e.unref(r.createTSpans),fontSize:{name:a.radius/3*t.value.style.chart.circles.labels.name.fontSizeRatio,value:re(a)*t.value.style.chart.circles.labels.value.fontSizeRatio},color:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(r.adaptColorToBackground)(a.color)}),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.circles.labels.name.show&&a.name?(e.openBlock(),e.createElementBlock("text",{key:0,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:u.value?.2:1,x:a.x,y:a.y+ae(a.radius,t.value.style.chart.circles.labels.name.offsetY)-a.radius/6,"font-size":a.radius/3*t.value.style.chart.circles.labels.name.fontSizeRatio,fill:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(r.adaptColorToBackground)(a.color),"font-weight":t.value.style.chart.circles.labels.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(a.name),9,tt)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.value.show?(e.openBlock(),e.createElementBlock("text",{key:1,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:u.value?.2:1,x:a.x,y:a.y+ae(a.radius,t.value.style.chart.circles.labels.value.offsetY)+a.radius/3,"font-size":re(a)*t.value.style.chart.circles.labels.value.fontSizeRatio,fill:t.value.style.chart.circles.labels.value.color?t.value.style.chart.circles.labels.value.color:e.unref(r.adaptColorToBackground)(a.color),"font-weight":t.value.style.chart.circles.labels.value.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(A(a)),9,lt)):e.createCommentVNode("",!0)],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,c=>(e.openBlock(),e.createElementBlock("path",{d:c.arcSlice,fill:c.color,stroke:"black"},null,8,at))),256))],64))),256))],64))),256)),u.value&&t.value.style.chart.circles.zoom.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("circle",{style:e.normalizeStyle(Te.value),cx:u.value.x,cy:u.value.y,r:x.value,opacity:g.value,stroke:t.value.style.chart.circles.stroke,fill:t.value.style.chart.circles.gradient.show?`url(#${u.value.id})`:u.value.color},null,12,ot),l.$slots["zoom-label"]?(e.openBlock(),e.createElementBlock("g",rt,[e.renderSlot(l.$slots,"zoom-label",e.normalizeProps(e.guardReactiveProps({...u.value,zoomOpacity:g.value,currentRadius:x.value,fontSize:w.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:u.value.x,y:u.value.y+t.value.style.chart.circles.zoom.label.name.offsetY-w.value.name/4,"text-anchor":"middle","font-size":w.value.name,fill:t.value.style.chart.circles.zoom.label.name.color?t.value.style.chart.circles.zoom.label.name.color:e.unref(r.adaptColorToBackground)(u.value.color),"font-weight":t.value.style.chart.circles.zoom.label.name.bold?"bold":"normal"},e.toDisplayString(u.value.name),9,st),e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:u.value.x,y:u.value.y+w.value.value+t.value.style.chart.circles.zoom.label.value.offsetY,"text-anchor":"middle","font-size":w.value.value,fill:t.value.style.chart.circles.zoom.label.value.color?t.value.style.chart.circles.zoom.label.value.color:e.unref(r.adaptColorToBackground)(u.value.color),"font-weight":t.value.style.chart.circles.zoom.label.value.bold?"bold":"normal"},e.toDisplayString(Ve()),9,ut)]))],64)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:{...v.value}},void 0,!0)],14,Ye)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qe.default,{key:5,config:{type:"circlePack",style:{color:"#CCCCCC"}}})),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Z)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:xe,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(Re.default,{key:8,hideDetails:"",config:{open:b.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Le.DataTable,{key:`table_${G.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[1]||(o[1]=a=>b.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,ct)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ge))}},vt=He._export_sfc(dt,[["__scopeId","data-v-b6738dbd"]]);exports.default=vt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),y=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),y=require("./useNestedProp-DU7JFxpL.cjs"),i=require("./index-DD4PT0Pl.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=["xmlns","height","width"],p={id:"follower",fy:"30%",fx:"30%"},x=["stop-color","stop-opacity"],E=["r","fill","stroke","stroke-width","stroke-dasharray"],N=["r"],g={key:2,class:"wave"},V=["id"],w=["id"],S=["filter","stroke"],B={key:3,class:"crosshair"},R=["x1","stroke","stroke-width","stroke-dasharray"],b=["x1","stroke","stroke-width","stroke-dasharray"],F=["y1","stroke","stroke-width","stroke-dasharray"],z=["y1","stroke","stroke-width","stroke-dasharray"],L=["cy","r","fill"],O=["cy","r","fill"],I=["cx","r","fill"],T=["cx","r","fill"],D={key:5,class:"coordinates"},$=["x","y","font-size","fill"],W=["transform"],G=["font-size","fill"],P={__name:"vue-ui-cursor",props:{config:{type:Object,default:{}}},setup(f){const{vue_ui_cursor:h}=i.useConfig(),k=f,n=t.ref(i.createUid()),e=t.computed(()=>y.useNestedProp({userConfig:k.config,defaultConfig:h})),o=t.ref({x:-100,y:-100});function u({clientX:r,clientY:l,...A}){o.value.x=r-e.value.centerCircleRadius,o.value.y=l-e.value.centerCircleRadius}function d(r){o.value.x=r.targetTouches[0].clientX-e.value.centerCircleRadius,o.value.y=r.targetTouches[0].clientY-e.value.centerCircleRadius}const v=t.ref(!0);function a(r){v.value=r}const s=t.ref(!1),c=t.ref(null);function m(){s.value=!1,c.value&&clearTimeout(c.value),t.nextTick(()=>{s.value=!0,c.value=setTimeout(()=>{s.value=!1},1e3)})}return t.onMounted(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.addEventListener("mousemove",u),r.addEventListener("touchmove",d),r.addEventListener("mouseleave",()=>a(!1)),r.addEventListener("mouseenter",()=>a(!0)),r.addEventListener("click",m)}),t.onBeforeUnmount(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.removeEventListener("mousemove",u),r.removeEventListener("touchmove",d),r.removeEventListener("mouseleave",()=>a(!1)),r.removeEventListener("mouseenter",()=>a(!0)),r.removeEventListener("click",m)}),t.computed(()=>e.value.centerCircleRadius/2.5),(r,l)=>v.value?(t.openBlock(),t.createElementBlock("svg",{key:0,"data-html2canvas-ignore":"",xmlns:t.unref(i.XMLNS),style:t.normalizeStyle(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${o.value.y}px; left:${o.value.x}px;`),viewBox:"0 0 100 100",height:e.value.centerCircleRadius*2,width:e.value.centerCircleRadius*2},[t.createElementVNode("defs",null,[t.createElementVNode("radialGradient",p,[t.createElementVNode("stop",{offset:"10%","stop-color":e.value.bubbleEffectColor,"stop-opacity":e.value.bubbleEffectOpacity},null,8,x),l[0]||(l[0]=t.createElementVNode("stop",{offset:"95%","stop-color":"transparent"},null,-1))])]),e.value.showCenterCircle?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:50,cy:50,r:e.value.centerCircleRadius,fill:t.unref(i.setOpacity)(e.value.centerCircleColor,e.value.centerCircleOpacity*100),stroke:e.value.centerCircleStroke,"stroke-width":e.value.centerCircleStrokeWidth,"stroke-dasharray":e.value.centerCircleDasharray},null,8,E)):t.createCommentVNode("",!0),e.value.bubbleEffect?(t.openBlock(),t.createElementBlock("circle",{key:1,cx:50,cy:50,r:e.value.centerCircleRadius,fill:"url(#follower)",stroke:"none"},null,8,N)):t.createCommentVNode("",!0),e.value.useWaveOnClick?(t.openBlock(),t.createElementBlock("g",g,[t.createElementVNode("defs",null,[t.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[t.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:4,id:`blur_std_${n.value}`},null,8,w),l[1]||(l[1]=t.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,V)]),s.value?(t.openBlock(),t.createElementBlock("circle",{key:0,class:t.normalizeClass({"circle-wave":s.value}),cx:50,cy:50,r:50,filter:`url(#blur_${n.value})`,stroke:e.value.centerCircleStroke,fill:"none","stroke-width":"3"},null,10,S)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.value.showCrosshair?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("line",{x1:-e.value.centerCircleRadius+50,x2:-5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,R),t.createElementVNode("line",{x1:50+e.value.centerCircleRadius,x2:5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,b),t.createElementVNode("line",{x1:50,x2:50,y1:-e.value.centerCircleRadius+50,y2:-5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,F),t.createElementVNode("line",{x1:50,x2:50,y1:e.value.centerCircleRadius+50,y2:5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,z)])):t.createCommentVNode("",!0),e.value.showIntersectCircles?(t.openBlock(),t.createElementBlock("g",{key:4,class:t.normalizeClass({"rotating-circles":e.value.isLoading})},[t.createElementVNode("circle",{cx:50,cy:e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,L),t.createElementVNode("circle",{cx:50,cy:-e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,O),t.createElementVNode("circle",{cx:-e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,I),t.createElementVNode("circle",{cx:e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,T)],2)):t.createCommentVNode("",!0),e.value.showCoordinates?(t.openBlock(),t.createElementBlock("g",D,[t.createElementVNode("text",{"text-anchor":"end",x:-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,y:50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,"font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},"font-family":"Arial"},t.toDisplayString(o.value.x.toFixed(0)),9,$),t.createElementVNode("g",{transform:`translate(${50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset}, ${-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset})`},[t.createElementVNode("text",{"text-anchor":"start","font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},transform:"rotate(-90)","font-family":"Arial"},t.toDisplayString(o.value.y.toFixed(0)),9,G)],8,W)])):t.createCommentVNode("",!0)],12,_)):t.createCommentVNode("",!0)}},q=C._export_sfc(P,[["__scopeId","data-v-0cca0d39"]]);exports.default=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
|
|
2
|
-
import { u as F } from "./useNestedProp-
|
|
3
|
-
import { u as L, c as z, X as O, s as I } from "./index-
|
|
2
|
+
import { u as F } from "./useNestedProp-Cg0NIwr6.js";
|
|
3
|
+
import { u as L, c as z, X as O, s as I } from "./index-CZlI7PiS.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const N = ["xmlns", "height", "width"], T = {
|
|
6
6
|
id: "follower",
|