vue-data-ui 2.5.6 → 2.5.7
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-D0mlKPSd.js → Arrow-5QI0f9hp.js} +1 -1
- package/dist/{Arrow-DsebY7M5.cjs → Arrow-BQy5IqAX.cjs} +1 -1
- package/dist/{BaseIcon-C_HpYm7J.js → BaseIcon-BXpK120h.js} +1 -1
- package/dist/{BaseIcon-C8K0PDCr.cjs → BaseIcon-Dk8gByg1.cjs} +1 -1
- package/dist/{DataTable-C6-IwvDN.js → DataTable-CpOh1tx3.js} +2 -2
- package/dist/{DataTable-CvEk_3ue.cjs → DataTable-D93-QmC8.cjs} +1 -1
- package/dist/{Legend-_VSW3gtH.cjs → Legend-Dh9aF6uH.cjs} +1 -1
- package/dist/{Legend-BMQRE4wt.js → Legend-DqRstaxU.js} +2 -2
- package/dist/{PackageVersion-D3FEDqJ4.cjs → PackageVersion-CdmZAhdE.cjs} +1 -1
- package/dist/{PackageVersion-CT0EYzFv.js → PackageVersion-iscNRe7N.js} +1 -1
- package/dist/{PenAndPaper-DhMT8zUE.js → PenAndPaper-B-VQ8eSo.js} +3 -3
- package/dist/{PenAndPaper-0PiYibYi.cjs → PenAndPaper-BsncKiRE.cjs} +1 -1
- package/dist/{Shape-DUv8_NIN.js → Shape-CB0mE9KP.js} +1 -1
- package/dist/{Shape-Cilordd5.cjs → Shape-DZRynz5E.cjs} +1 -1
- package/dist/{Slicer-CS9co0ra.cjs → Slicer-Cm0a7Otv.cjs} +1 -1
- package/dist/{Slicer-CT-dGY0K.js → Slicer-DiUftIFQ.js} +2 -2
- package/dist/{Title-BH26TG78.js → Title-CiQQgFbV.js} +1 -1
- package/dist/{Title-BX4Wt59j.cjs → Title-DFq_8HYJ.cjs} +1 -1
- package/dist/{Tooltip-vdsIKE2_.js → Tooltip-ZYQUXVWv.js} +1 -1
- package/dist/{Tooltip-BRF0SCJo.cjs → Tooltip-pcZXVRMj.cjs} +1 -1
- package/dist/index-C_VTEz1N.cjs +9 -0
- package/dist/{index-BpkxOytt.js → index-DiqenHrX.js} +3 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-XW-Jo5ax.js → useNestedProp-B3CQkP95.js} +1 -1
- package/dist/{useNestedProp-C5bsAL3S.cjs → useNestedProp-C7bLHE7v.cjs} +1 -1
- package/dist/{usePrinter-Cbh3Ya4M.js → usePrinter-CHAgX1f-.js} +1 -1
- package/dist/{usePrinter-DOZ7DmEX.cjs → usePrinter-DWCqeYW6.cjs} +1 -1
- package/dist/{vue-data-ui-CwBKTkGS.js → vue-data-ui-BAAnNikX.js} +61 -61
- package/dist/{vue-data-ui-Dbznz6XK.cjs → vue-data-ui-VikO3yRe.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-DC0EeOla.cjs → vue-ui-3d-bar-BR-ihA3S.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B0smLY_E.js → vue-ui-3d-bar-C4OjP6pi.js} +9 -9
- package/dist/{vue-ui-accordion-BFGSPdZa.cjs → vue-ui-accordion-CtBhoUw4.cjs} +1 -1
- package/dist/{vue-ui-accordion-DSCrwQ1c.js → vue-ui-accordion-DA6XnWaz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cshs8aQx.js → vue-ui-age-pyramid-2AgqaHOS.js} +10 -10
- package/dist/{vue-ui-age-pyramid-Ddrrqt6J.cjs → vue-ui-age-pyramid-E0fCV03f.cjs} +1 -1
- package/dist/{vue-ui-annotator-axaLgcSw.js → vue-ui-annotator-CdLA2R6h.js} +1 -1
- package/dist/{vue-ui-annotator-CZavUoIP.cjs → vue-ui-annotator-UcABxDAz.cjs} +1 -1
- package/dist/{vue-ui-bullet-BZ5bRAeI.js → vue-ui-bullet-AFqmPWo3.js} +8 -8
- package/dist/{vue-ui-bullet-ChqQFfgl.cjs → vue-ui-bullet-C4wEiJn8.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DnyNK5cD.cjs → vue-ui-candlestick-BkQsD1Yi.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bgh8xG_8.js → vue-ui-candlestick-Bs0DE1Xi.js} +11 -11
- package/dist/{vue-ui-carousel-table-C5VY-kzI.cjs → vue-ui-carousel-table-KX-cLx3F.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CesPP16e.js → vue-ui-carousel-table-NYlYQbo9.js} +4 -4
- package/dist/{vue-ui-chestnut-CCYod_9i.js → vue-ui-chestnut-BAJjfgKR.js} +8 -8
- package/dist/{vue-ui-chestnut-Lcrru7aA.cjs → vue-ui-chestnut-BzHRBq_Z.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BCk8TBYV.js → vue-ui-circle-pack-BoolEIij.js} +126 -120
- package/dist/vue-ui-circle-pack-BrmdreXG.cjs +1 -0
- package/dist/{vue-ui-cursor-71zF-JDU.cjs → vue-ui-cursor-BjQLjw1a.cjs} +1 -1
- package/dist/{vue-ui-cursor-DBtL_mGd.js → vue-ui-cursor-ut60ihG1.js} +2 -2
- package/dist/{vue-ui-dashboard-CjUkRkFX.cjs → vue-ui-dashboard-BXVdZdEF.cjs} +1 -1
- package/dist/{vue-ui-dashboard-C4naVahi.js → vue-ui-dashboard-FQxiN7Jj.js} +2 -2
- package/dist/{vue-ui-digits-DsjcFYeL.js → vue-ui-digits-Rb48H8et.js} +2 -2
- package/dist/{vue-ui-digits-DJ053E_1.cjs → vue-ui-digits-j2WKJUNf.cjs} +1 -1
- package/dist/{vue-ui-donut-CgK9ni10.cjs → vue-ui-donut-CbFW--I1.cjs} +1 -1
- package/dist/{vue-ui-donut-WZ50Vvo0.js → vue-ui-donut-DUKnsxUu.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DWmEdszT.cjs → vue-ui-donut-evolution-9mJgbwpR.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CNLISKb_.js → vue-ui-donut-evolution-n-ue754h.js} +11 -11
- package/dist/{vue-ui-dumbbell-Di6hNJyp.js → vue-ui-dumbbell-C4r0NeY_.js} +10 -10
- package/dist/{vue-ui-dumbbell-CNk9SRIK.cjs → vue-ui-dumbbell-sXSCnY75.cjs} +1 -1
- package/dist/{vue-ui-flow-BVRCJKqg.cjs → vue-ui-flow-C8-oqGo7.cjs} +1 -1
- package/dist/{vue-ui-flow-wzudVfwo.js → vue-ui-flow-CuZbUegy.js} +9 -9
- package/dist/{vue-ui-funnel-BkQ729Lk.cjs → vue-ui-funnel-Cb0LSIxk.cjs} +1 -1
- package/dist/{vue-ui-funnel-DDgrNiIx.js → vue-ui-funnel-D9whnJ6X.js} +9 -9
- package/dist/{vue-ui-galaxy-DDR33VLd.js → vue-ui-galaxy-CRECMRY6.js} +11 -11
- package/dist/{vue-ui-galaxy-CCxgO-Ut.cjs → vue-ui-galaxy-DUHSlUJQ.cjs} +1 -1
- package/dist/{vue-ui-gauge-BmYimTMu.js → vue-ui-gauge-BEhMYmCg.js} +7 -7
- package/dist/{vue-ui-gauge-6nNhmzjK.cjs → vue-ui-gauge-BfmvvI7e.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BEDeV0ju.cjs → vue-ui-gizmo-BkZTXg7I.cjs} +1 -1
- package/dist/{vue-ui-gizmo-D7n0y9Xb.js → vue-ui-gizmo-DtXR6xgr.js} +3 -3
- package/dist/{vue-ui-heatmap-BRouZjc0.cjs → vue-ui-heatmap-B1XZnqbm.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DcvyIipN.js → vue-ui-heatmap-BlBHNDJV.js} +10 -10
- package/dist/{vue-ui-history-plot-CdsNfUw3.js → vue-ui-history-plot-BmzpDPL6.js} +11 -11
- package/dist/{vue-ui-history-plot-OAR3Zmfr.cjs → vue-ui-history-plot-DqM3d3p7.cjs} +1 -1
- package/dist/{vue-ui-kpi-eAJqL_IN.cjs → vue-ui-kpi-D1i-2otW.cjs} +1 -1
- package/dist/{vue-ui-kpi-7w8bSN5A.js → vue-ui-kpi-XdIADLDq.js} +3 -3
- package/dist/{vue-ui-mini-loader-DgW6tqQq.js → vue-ui-mini-loader-BdDY5AwD.js} +2 -2
- package/dist/{vue-ui-mini-loader-Iil3HNis.cjs → vue-ui-mini-loader-DZgbFjuS.cjs} +1 -1
- package/dist/{vue-ui-molecule-Dbzc2SXh.js → vue-ui-molecule-DstYXfTV.js} +11 -11
- package/dist/{vue-ui-molecule-Cdoog-Pu.cjs → vue-ui-molecule-a0IHQMkN.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-U7w0Tah2.cjs → vue-ui-mood-radar-BafPNccC.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BDHEAPC5.js → vue-ui-mood-radar-DjtnprtG.js} +11 -11
- package/dist/{vue-ui-nested-donuts-hCTBO5wt.cjs → vue-ui-nested-donuts-DC7oX5GH.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BfFnlW9x.js → vue-ui-nested-donuts-XQ_auu4H.js} +11 -11
- package/dist/{vue-ui-onion-CuVCB7RM.cjs → vue-ui-onion-DEfVifyj.cjs} +1 -1
- package/dist/{vue-ui-onion-B1AiYUgS.js → vue-ui-onion-D_myFmJv.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CHSzunQI.cjs → vue-ui-parallel-coordinate-plot-Bv3lIZ0J.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Box7xMhZ.js → vue-ui-parallel-coordinate-plot-DQsyE4kf.js} +12 -12
- package/dist/{vue-ui-quadrant-DAWxPvEO.js → vue-ui-quadrant-DBvqgk3y.js} +12 -12
- package/dist/{vue-ui-quadrant-CWNw-UWV.cjs → vue-ui-quadrant-DXU4OdLD.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-r3ohg6Cy.js → vue-ui-quick-chart-C-bsRZf1.js} +9 -9
- package/dist/{vue-ui-quick-chart-5OT4sNfY.cjs → vue-ui-quick-chart-Dl-94hQE.cjs} +1 -1
- package/dist/{vue-ui-radar-C1CdBUUI.js → vue-ui-radar-He8orFXJ.js} +12 -12
- package/dist/{vue-ui-radar-nniZ57pv.cjs → vue-ui-radar-QQ8vOOYq.cjs} +1 -1
- package/dist/{vue-ui-rating-B6KkUn_L.cjs → vue-ui-rating-6kyP3DDH.cjs} +1 -1
- package/dist/{vue-ui-rating-BOB44E6x.js → vue-ui-rating-qUauyHHk.js} +2 -2
- package/dist/{vue-ui-relation-circle-CGcO1q75.cjs → vue-ui-relation-circle-BO4wP-bR.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BHA9HuI0.js → vue-ui-relation-circle-DfVg4VBp.js} +7 -7
- package/dist/{vue-ui-rings-DnrxCB5o.cjs → vue-ui-rings-D_cVoXDa.cjs} +1 -1
- package/dist/{vue-ui-rings-BJPit1Ra.js → vue-ui-rings-DjoVPXun.js} +12 -12
- package/dist/{vue-ui-scatter-BZ027kSK.cjs → vue-ui-scatter-45hc4NIf.cjs} +1 -1
- package/dist/{vue-ui-scatter-DNB5bka2.js → vue-ui-scatter-DBcO00g4.js} +12 -12
- package/dist/{vue-ui-screenshot-CtUiJQiA.cjs → vue-ui-screenshot-lJJxoLDu.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DymukoBK.js → vue-ui-screenshot-zc-jsepS.js} +1 -1
- package/dist/{vue-ui-skeleton-CwwH64lu.js → vue-ui-skeleton-BwWHgSoq.js} +3 -3
- package/dist/{vue-ui-skeleton-BVhUJapg.cjs → vue-ui-skeleton-D1bJntn7.cjs} +1 -1
- package/dist/{vue-ui-smiley-DAOVxquy.js → vue-ui-smiley-BVFxYYJl.js} +2 -2
- package/dist/{vue-ui-smiley-BgYL5aLw.cjs → vue-ui-smiley-CZPe292C.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Pj2sDKI5.js → vue-ui-spark-trend-8LZqy_wz.js} +5 -5
- package/dist/{vue-ui-spark-trend-D-UfGnMi.cjs → vue-ui-spark-trend-BJ3_K1DU.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D-odOB5o.cjs → vue-ui-sparkbar-B3idsjFj.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CouWvtoJ.js → vue-ui-sparkbar-C93PvNz6.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dp2myRtH.cjs → vue-ui-sparkgauge-66qZ-DgD.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ntZ966hh.js → vue-ui-sparkgauge-B1uABI9w.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BBqNkAC9.cjs → vue-ui-sparkhistogram-D7ECtpUW.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CVcHSsRt.js → vue-ui-sparkhistogram-vAgBJK79.js} +5 -5
- package/dist/{vue-ui-sparkline-B4YkZ8aR.js → vue-ui-sparkline-B2JarTjo.js} +4 -4
- package/dist/{vue-ui-sparkline-D-jKCztU.cjs → vue-ui-sparkline-YOIgP_Dl.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-SlfuB973.js → vue-ui-sparkstackbar-C2E7YRP0.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CgSpNVWV.cjs → vue-ui-sparkstackbar-DMClZgds.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Do0cVXn_.cjs → vue-ui-stackbar-BP_qrJ-s.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BNHmR_5M.js → vue-ui-stackbar-n27TJh0C.js} +13 -13
- package/dist/{vue-ui-strip-plot-DfvoiHgh.js → vue-ui-strip-plot-Bjy7C_Ry.js} +11 -11
- package/dist/{vue-ui-strip-plot-CUIM6p_e.cjs → vue-ui-strip-plot-DN7X6zBk.cjs} +1 -1
- package/dist/{vue-ui-table-IRFF_yye.cjs → vue-ui-table-6rqw4Gi-.cjs} +1 -1
- package/dist/{vue-ui-table-B1yvOggj.js → vue-ui-table-DnHvIIqi.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BXY52SRf.cjs → vue-ui-table-heatmap-BQKXP9Na.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-GItg9-dC.js → vue-ui-table-heatmap-Dt8DAC4A.js} +4 -4
- package/dist/{vue-ui-table-sparkline-iGFAWMYo.js → vue-ui-table-sparkline-CLQJbHX8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BHfIm9UT.cjs → vue-ui-table-sparkline-DmNJFPHo.cjs} +1 -1
- package/dist/{vue-ui-thermometer-UICgp_zs.js → vue-ui-thermometer-BTmiPdUs.js} +7 -7
- package/dist/{vue-ui-thermometer-DvqP69hY.cjs → vue-ui-thermometer-DnVSE7_V.cjs} +1 -1
- package/dist/{vue-ui-timer-DJzscIpZ.cjs → vue-ui-timer-CINerMki.cjs} +1 -1
- package/dist/{vue-ui-timer-p0KgWSfy.js → vue-ui-timer-D6j-aYnJ.js} +5 -5
- package/dist/{vue-ui-tiremarks-DpXsBy1-.cjs → vue-ui-tiremarks-CRGMkwwv.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Bq6ciZp0.js → vue-ui-tiremarks-ztoJZwQn.js} +7 -7
- package/dist/{vue-ui-treemap-B9TKmG5Z.js → vue-ui-treemap-B0NYnKie.js} +11 -11
- package/dist/{vue-ui-treemap-BIXzY6rt.cjs → vue-ui-treemap-CbqRlXgA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-p8nAYFrW.cjs → vue-ui-vertical-bar-Cosr8beH.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CBsaQ0m4.js → vue-ui-vertical-bar-DzcpRwPF.js} +12 -12
- package/dist/{vue-ui-waffle-CecnWv5a.js → vue-ui-waffle-CE1MnOqa.js} +12 -12
- package/dist/{vue-ui-waffle-CMDTMHXM.cjs → vue-ui-waffle-DkVKQERp.cjs} +1 -1
- package/dist/{vue-ui-wheel-ChZI90Rv.cjs → vue-ui-wheel-CGYGLKyG.cjs} +1 -1
- package/dist/{vue-ui-wheel-BvML9VG5.js → vue-ui-wheel-DMS12xPv.js} +7 -7
- package/dist/{vue-ui-word-cloud-0Kj2o6G9.cjs → vue-ui-word-cloud-C1klEiea.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-T_f0AHVo.js → vue-ui-word-cloud-D_CyZOE0.js} +10 -10
- package/dist/{vue-ui-xy-DYGyMln-.js → vue-ui-xy-GgA45y9X.js} +14 -14
- package/dist/{vue-ui-xy-wLaSuJNp.cjs → vue-ui-xy-Nj-5ko1z.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D00_TYAC.js → vue-ui-xy-canvas-BRPQBL8l.js} +11 -11
- package/dist/{vue-ui-xy-canvas-BB8ojPuv.cjs → vue-ui-xy-canvas-CQt5pre_.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index--Qj2S12-.cjs +0 -9
- package/dist/vue-ui-circle-pack-nfi25HeN.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as Ee } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { P as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import $t from "./vue-ui-accordion-
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as lt, computed as h, ref as f, watch as Se, onMounted as at, watchEffect as ot, openBlock as s, createElementBlock as i, normalizeClass as Fe, normalizeStyle as X, unref as c, createBlock as T, createCommentVNode as y, renderSlot as m, createSlots as st, withCtx as C, normalizeProps as E, guardReactiveProps as D, createVNode as rt, Fragment as O, renderList as se, createElementVNode as k, toDisplayString as L, createTextVNode as nt, nextTick as ut } from "vue";
|
|
2
|
+
import { u as it, c as Me, t as ct, a as re, p as P, o as vt, e as dt, b as ht, d as Ne, m as ft, h as _e, f as ne, X as yt, l as pt, G as Y, i as Ae, q as mt, r as bt } from "./index-DiqenHrX.js";
|
|
3
|
+
import { u as Ee } from "./useNestedProp-B3CQkP95.js";
|
|
4
|
+
import { u as gt, U as kt } from "./usePrinter-CHAgX1f-.js";
|
|
5
|
+
import { _ as xt } from "./Title-CiQQgFbV.js";
|
|
6
|
+
import { P as wt } from "./PenAndPaper-B-VQ8eSo.js";
|
|
7
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as zt } from "./PackageVersion-iscNRe7N.js";
|
|
9
|
+
import $t from "./vue-ui-accordion-DA6XnWaz.js";
|
|
10
|
+
import { D as Pt } from "./DataTable-CpOh1tx3.js";
|
|
11
|
+
import Tt from "./vue-ui-skeleton-BwWHgSoq.js";
|
|
12
|
+
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"], Mt = ["id"], Nt = ["stop-color"], _t = ["stop-color"], At = ["stop-color"], Et = { key: 0 }, Dt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter"], Lt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Rt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Gt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ut = ["d", "fill"], Vt = ["cx", "cy", "r", "opacity", "stroke", "fill"], Bt = {
|
|
14
14
|
key: 0,
|
|
15
15
|
style: { pointerEvents: "none" }
|
|
16
|
-
},
|
|
16
|
+
}, Ht = { key: 1 }, Xt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Yt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Wt = {
|
|
17
17
|
key: 6,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, jt = ["innerHTML"], qt = {
|
|
20
20
|
__name: "vue-ui-circle-pack",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,51 +33,51 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(De, { expose: Le }) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
36
|
+
const z = De;
|
|
37
|
+
lt((t) => ({
|
|
38
|
+
"76fa81dc": F.value,
|
|
39
|
+
"68186f8b": J.value
|
|
40
40
|
}));
|
|
41
|
-
const { vue_ui_circle_pack:
|
|
41
|
+
const { vue_ui_circle_pack: Re } = it(), R = h(() => !!z.dataset && z.dataset.length), I = f(Me()), W = f(null), Ge = f(null), Ue = f(null), ue = f(0), ie = f(0), ce = f(0), Ve = f(null), e = h({
|
|
42
42
|
get: () => he(),
|
|
43
43
|
set: (t) => t
|
|
44
44
|
}), {
|
|
45
45
|
userOptionsVisible: j,
|
|
46
46
|
setUserOptionsVisibility: ve,
|
|
47
47
|
keepUserOptionState: de
|
|
48
|
-
} =
|
|
48
|
+
} = Ct({ config: e.value });
|
|
49
49
|
function he() {
|
|
50
50
|
const t = Ee({
|
|
51
|
-
userConfig:
|
|
52
|
-
defaultConfig:
|
|
51
|
+
userConfig: z.config,
|
|
52
|
+
defaultConfig: Re
|
|
53
53
|
});
|
|
54
54
|
return t.theme ? {
|
|
55
55
|
...Ee({
|
|
56
|
-
userConfig:
|
|
56
|
+
userConfig: ct.vue_ui_circle_pack[t.theme] || z.config,
|
|
57
57
|
defaultConfig: t
|
|
58
58
|
}),
|
|
59
59
|
customPalette: re[t.theme] || P
|
|
60
60
|
} : t;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
e.value = he(), j.value = !e.value.userOptions.showOnChartHover, q(), ue.value += 1, ie.value += 1,
|
|
62
|
+
Se(() => z.config, (t) => {
|
|
63
|
+
e.value = he(), j.value = !e.value.userOptions.showOnChartHover, q(), ue.value += 1, ie.value += 1, S.value.showTable = e.value.table.show;
|
|
64
64
|
}, { deep: !0 });
|
|
65
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: pe, generateImage: me } =
|
|
65
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: pe, generateImage: me } = gt({
|
|
66
66
|
elementId: `vue-ui-circle-pack_${I.value}`,
|
|
67
67
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
68
|
-
}),
|
|
68
|
+
}), Be = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), S = f({
|
|
69
69
|
showTable: e.value.table.show
|
|
70
70
|
});
|
|
71
71
|
async function q() {
|
|
72
|
-
|
|
72
|
+
vt(z.dataset) && dt({
|
|
73
73
|
componentName: "VueUiCirclePack",
|
|
74
74
|
type: "dataset"
|
|
75
75
|
}), await We();
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
at(q), Se(() => z.dataset, async (t) => {
|
|
78
78
|
await q();
|
|
79
79
|
}, { deep: !0 });
|
|
80
|
-
const be = h(() =>
|
|
80
|
+
const be = h(() => ht(e.value.customPalette));
|
|
81
81
|
function ge(t, a) {
|
|
82
82
|
return Math.hypot(a.x - t.x, a.y - t.y);
|
|
83
83
|
}
|
|
@@ -107,17 +107,17 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
107
107
|
y: l / 2 + x
|
|
108
108
|
});
|
|
109
109
|
for (let g of u.slice(1)) {
|
|
110
|
-
let { radius: d,
|
|
110
|
+
let { radius: d, ...$e } = g, ee = He(o, d, a, l);
|
|
111
111
|
if (ee)
|
|
112
|
-
o.push({
|
|
112
|
+
o.push({ ...$e, x: ee.x, y: ee.y, radius: d });
|
|
113
113
|
else {
|
|
114
114
|
let te = null, Pe = 1 / 0;
|
|
115
|
-
for (let
|
|
115
|
+
for (let B of o)
|
|
116
116
|
for (let le = 0; le < 360; le += 15) {
|
|
117
|
-
let Te = le * Math.PI / 180, ae =
|
|
117
|
+
let Te = le * Math.PI / 180, ae = B.x + (d + B.radius) * Math.cos(Te), oe = B.y + (d + B.radius) * Math.sin(Te), H = { ...$e, x: ae, y: oe, radius: d };
|
|
118
118
|
if (ae - d >= 0 && ae + d <= a && oe - d >= 0 && oe + d <= l && !ke(H, o)) {
|
|
119
119
|
let Oe = o.reduce(
|
|
120
|
-
(
|
|
120
|
+
(tt, Ie) => tt + (ge(H, Ie) < H.radius + Ie.radius ? 1 : 0),
|
|
121
121
|
0
|
|
122
122
|
);
|
|
123
123
|
Oe < Pe && (Pe = Oe, te = H);
|
|
@@ -128,8 +128,8 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
128
128
|
}
|
|
129
129
|
return o;
|
|
130
130
|
}
|
|
131
|
-
const Z = h(() =>
|
|
132
|
-
const l =
|
|
131
|
+
const Z = h(() => z.dataset.map((t, a) => {
|
|
132
|
+
const l = Ne(t.color) || be.value[a] || re[e.value.theme || "default"][a % re[e.value.theme || "default"].length] || P[a] || P[a % P.length];
|
|
133
133
|
return {
|
|
134
134
|
...t,
|
|
135
135
|
id: Me(),
|
|
@@ -163,10 +163,10 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
163
163
|
};
|
|
164
164
|
}), je = h(() => b.value.map((t) => {
|
|
165
165
|
if (t.breakdown)
|
|
166
|
-
return
|
|
166
|
+
return ft(
|
|
167
167
|
{ series: t.breakdown.map((a, l) => ({
|
|
168
168
|
...a,
|
|
169
|
-
color:
|
|
169
|
+
color: Ne(a.color) || be.value[l] || P[l] || P[l % P.length]
|
|
170
170
|
})) },
|
|
171
171
|
t.x,
|
|
172
172
|
t.y,
|
|
@@ -183,22 +183,22 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
183
183
|
function qe(t) {
|
|
184
184
|
e.value.style.chart.circles.zoom.show && (r.value = t);
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const F = h(() => r.value ? r.value.radius : 0), J = h(() => r.value ? r.value.radius > p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? r.value.radius : p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), $ = f(0), Ze = h(() => ({
|
|
187
187
|
pointerEvents: "none",
|
|
188
|
-
opacity:
|
|
188
|
+
opacity: $.value,
|
|
189
189
|
filter: `drop-shadow(0px 0px 6px ${_e(r.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
190
|
-
})), M = f(
|
|
191
|
-
|
|
192
|
-
M.value =
|
|
190
|
+
})), M = f(F.value);
|
|
191
|
+
ot(() => {
|
|
192
|
+
M.value = F.value, $.value = 0;
|
|
193
193
|
let t = null;
|
|
194
194
|
function a(l) {
|
|
195
195
|
t || (t = l);
|
|
196
196
|
const n = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
197
|
-
n < 1 ? (M.value =
|
|
197
|
+
n < 1 ? (M.value = F.value + (J.value - F.value) * n, $.value = 0 + e.value.style.chart.circles.zoom.opacity * n, requestAnimationFrame(a)) : (M.value = J.value, $.value = e.value.style.chart.circles.zoom.opacity);
|
|
198
198
|
}
|
|
199
199
|
requestAnimationFrame(a);
|
|
200
200
|
});
|
|
201
|
-
const
|
|
201
|
+
const N = h(() => ({
|
|
202
202
|
name: e.value.style.chart.circles.zoom.label.name.fontSize * p.value.width / 300,
|
|
203
203
|
value: e.value.style.chart.circles.zoom.label.value.fontSize * p.value.width / 300
|
|
204
204
|
}));
|
|
@@ -226,15 +226,21 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
226
226
|
})
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
const _ = f(!1);
|
|
230
229
|
function Ke(t) {
|
|
230
|
+
if (!t)
|
|
231
|
+
return 0;
|
|
232
|
+
const a = t.radius / K(t).length * (K(t).length === 1 ? 1 : 2);
|
|
233
|
+
return Math.min(t.radius / 2.5, a);
|
|
234
|
+
}
|
|
235
|
+
const _ = f(!1);
|
|
236
|
+
function Qe(t) {
|
|
231
237
|
_.value = t, ce.value += 1;
|
|
232
238
|
}
|
|
233
|
-
const
|
|
239
|
+
const G = f(!1);
|
|
234
240
|
function Q() {
|
|
235
|
-
|
|
241
|
+
G.value = !G.value;
|
|
236
242
|
}
|
|
237
|
-
const
|
|
243
|
+
const U = h(() => {
|
|
238
244
|
const t = Z.value.map((l) => ({
|
|
239
245
|
name: l.name,
|
|
240
246
|
value: l.value,
|
|
@@ -243,21 +249,21 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
243
249
|
return { head: t, body: a };
|
|
244
250
|
});
|
|
245
251
|
function Ce() {
|
|
246
|
-
|
|
247
|
-
const t =
|
|
252
|
+
ut(() => {
|
|
253
|
+
const t = U.value.head.map((n, v) => [[
|
|
248
254
|
n.name
|
|
249
|
-
], [
|
|
250
|
-
|
|
255
|
+
], [U.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 = mt(a);
|
|
256
|
+
bt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
251
257
|
});
|
|
252
258
|
}
|
|
253
|
-
const
|
|
259
|
+
const V = h(() => {
|
|
254
260
|
const t = [
|
|
255
261
|
e.value.table.columnNames.datapoint,
|
|
256
262
|
e.value.table.columnNames.value
|
|
257
|
-
], a =
|
|
263
|
+
], a = U.value.head.map((v, x) => {
|
|
258
264
|
const w = ne({
|
|
259
265
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
260
|
-
v:
|
|
266
|
+
v: U.value.body[x],
|
|
261
267
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
262
268
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
263
269
|
});
|
|
@@ -291,51 +297,51 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
291
297
|
config: l
|
|
292
298
|
};
|
|
293
299
|
});
|
|
294
|
-
function
|
|
295
|
-
|
|
300
|
+
function ze() {
|
|
301
|
+
S.value.showTable = !S.value.showTable;
|
|
296
302
|
}
|
|
297
|
-
function
|
|
303
|
+
function et() {
|
|
298
304
|
return Z.value;
|
|
299
305
|
}
|
|
300
306
|
return Le({
|
|
301
|
-
getData:
|
|
307
|
+
getData: et,
|
|
302
308
|
generateCsv: Ce,
|
|
303
309
|
generatePdf: pe,
|
|
304
310
|
generateImage: me,
|
|
305
|
-
toggleTable:
|
|
311
|
+
toggleTable: ze,
|
|
306
312
|
toggleAnnotator: Q
|
|
307
313
|
}), (t, a) => (s(), i("div", {
|
|
308
314
|
id: `vue-ui-circle-pack_${I.value}`,
|
|
309
|
-
class:
|
|
315
|
+
class: Fe(`vue-ui-circle-pack ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
310
316
|
ref_key: "circlePackChart",
|
|
311
317
|
ref: W,
|
|
312
318
|
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
313
319
|
onMouseenter: a[2] || (a[2] = () => c(ve)(!0)),
|
|
314
320
|
onMouseleave: a[3] || (a[3] = () => c(ve)(!1))
|
|
315
321
|
}, [
|
|
316
|
-
e.value.userOptions.buttons.annotator ? (s(), T(
|
|
322
|
+
e.value.userOptions.buttons.annotator ? (s(), T(wt, {
|
|
317
323
|
key: 0,
|
|
318
324
|
parent: W.value,
|
|
319
325
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
320
326
|
color: e.value.style.chart.color,
|
|
321
|
-
active:
|
|
327
|
+
active: G.value,
|
|
322
328
|
onClose: Q
|
|
323
329
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
324
330
|
m(t.$slots, "userConfig", {}, void 0, !0),
|
|
325
|
-
|
|
331
|
+
Be.value ? (s(), i("div", {
|
|
326
332
|
key: 1,
|
|
327
333
|
ref_key: "noTitle",
|
|
328
|
-
ref:
|
|
334
|
+
ref: Ue,
|
|
329
335
|
class: "vue-data-ui-no-title-space",
|
|
330
336
|
style: "height:36px; width: 100%;background:transparent"
|
|
331
337
|
}, null, 512)) : y("", !0),
|
|
332
338
|
e.value.style.chart.title.text ? (s(), i("div", {
|
|
333
339
|
key: 2,
|
|
334
340
|
ref_key: "chartTitle",
|
|
335
|
-
ref:
|
|
341
|
+
ref: Ge,
|
|
336
342
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
337
343
|
}, [
|
|
338
|
-
(s(), T(
|
|
344
|
+
(s(), T(xt, {
|
|
339
345
|
key: `title_${ue.value}`,
|
|
340
346
|
config: {
|
|
341
347
|
title: {
|
|
@@ -349,7 +355,7 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
349
355
|
}
|
|
350
356
|
}, null, 8, ["config"]))
|
|
351
357
|
], 512)) : y("", !0),
|
|
352
|
-
e.value.userOptions.show &&
|
|
358
|
+
e.value.userOptions.show && R.value && (c(de) || c(j)) ? (s(), T(kt, {
|
|
353
359
|
ref: "details",
|
|
354
360
|
key: `user_option_${ce.value}`,
|
|
355
361
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -369,17 +375,17 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
369
375
|
position: e.value.userOptions.position,
|
|
370
376
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
371
377
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
|
-
isAnnotation:
|
|
373
|
-
onToggleFullscreen:
|
|
378
|
+
isAnnotation: G.value,
|
|
379
|
+
onToggleFullscreen: Qe,
|
|
374
380
|
onGeneratePdf: c(pe),
|
|
375
381
|
onGenerateCsv: Ce,
|
|
376
382
|
onGenerateImage: c(me),
|
|
377
|
-
onToggleTable:
|
|
383
|
+
onToggleTable: ze,
|
|
378
384
|
onToggleAnnotator: Q,
|
|
379
385
|
style: X({
|
|
380
386
|
visibility: c(de) ? c(j) ? "visible" : "hidden" : "visible"
|
|
381
387
|
})
|
|
382
|
-
},
|
|
388
|
+
}, st({ _: 2 }, [
|
|
383
389
|
t.$slots.optionPdf ? {
|
|
384
390
|
name: "optionPdf",
|
|
385
391
|
fn: C(() => [
|
|
@@ -423,15 +429,15 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
423
429
|
key: "5"
|
|
424
430
|
} : void 0
|
|
425
431
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
426
|
-
|
|
432
|
+
R.value ? (s(), i("svg", {
|
|
427
433
|
key: 4,
|
|
428
|
-
xmlns: c(
|
|
434
|
+
xmlns: c(yt),
|
|
429
435
|
viewBox: `${p.value.x} ${p.value.y} ${p.value.width} ${p.value.height}`,
|
|
430
436
|
width: "100%",
|
|
431
|
-
class:
|
|
437
|
+
class: Fe({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
432
438
|
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};`)
|
|
433
439
|
}, [
|
|
434
|
-
|
|
440
|
+
rt(zt),
|
|
435
441
|
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
436
442
|
key: 0,
|
|
437
443
|
x: p.value.x,
|
|
@@ -452,19 +458,19 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
452
458
|
}, [
|
|
453
459
|
k("stop", {
|
|
454
460
|
offset: "10%",
|
|
455
|
-
"stop-color": c(
|
|
456
|
-
}, null, 8,
|
|
461
|
+
"stop-color": c(pt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
462
|
+
}, null, 8, Nt),
|
|
457
463
|
k("stop", {
|
|
458
464
|
offset: "90%",
|
|
459
465
|
"stop-color": c(_e)(l.color, 0.1)
|
|
460
|
-
}, null, 8,
|
|
466
|
+
}, null, 8, _t),
|
|
461
467
|
k("stop", {
|
|
462
468
|
offset: "100%",
|
|
463
469
|
"stop-color": l.color
|
|
464
|
-
}, null, 8,
|
|
465
|
-
], 8,
|
|
470
|
+
}, null, 8, At)
|
|
471
|
+
], 8, Mt)
|
|
466
472
|
]),
|
|
467
|
-
t.$slots.pattern ? (s(), i("g",
|
|
473
|
+
t.$slots.pattern ? (s(), i("g", Et, [
|
|
468
474
|
k("defs", null, [
|
|
469
475
|
m(t.$slots, "pattern", E(D({ ...l, patternId: `pattern_${I.value}_${l.id}` })), void 0, !0)
|
|
470
476
|
])
|
|
@@ -480,7 +486,7 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
480
486
|
rx: l.radius,
|
|
481
487
|
onMouseenter: () => qe(l),
|
|
482
488
|
onMouseout: a[0] || (a[0] = (n) => r.value = null)
|
|
483
|
-
}, null, 40,
|
|
489
|
+
}, null, 40, Dt),
|
|
484
490
|
t.$slots.pattern ? (s(), i("rect", {
|
|
485
491
|
key: 1,
|
|
486
492
|
x: l.x - l.radius,
|
|
@@ -494,7 +500,7 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
494
500
|
style: {
|
|
495
501
|
pointerEvents: "none"
|
|
496
502
|
}
|
|
497
|
-
}, null, 8,
|
|
503
|
+
}, null, 8, Lt)) : y("", !0),
|
|
498
504
|
e.value.style.chart.circles.labels.name.show && l.name ? (s(), i("text", {
|
|
499
505
|
key: 2,
|
|
500
506
|
style: {
|
|
@@ -504,11 +510,11 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
504
510
|
opacity: r.value ? 0.2 : 1,
|
|
505
511
|
x: l.x,
|
|
506
512
|
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.name.offsetY) - l.radius / 6,
|
|
507
|
-
"font-size": l.radius /
|
|
513
|
+
"font-size": l.radius / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
508
514
|
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : c(Y)(l.color),
|
|
509
515
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
510
516
|
"text-anchor": "middle"
|
|
511
|
-
}, L(l.name), 9,
|
|
517
|
+
}, L(l.name), 9, Rt)) : y("", !0),
|
|
512
518
|
e.value.style.chart.circles.labels.value.show ? (s(), i("text", {
|
|
513
519
|
key: 3,
|
|
514
520
|
style: {
|
|
@@ -518,7 +524,7 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
518
524
|
opacity: r.value ? 0.2 : 1,
|
|
519
525
|
x: l.x,
|
|
520
526
|
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.value.offsetY) + l.radius / 3,
|
|
521
|
-
"font-size":
|
|
527
|
+
"font-size": Ke(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
522
528
|
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : c(Y)(l.color),
|
|
523
529
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
524
530
|
"text-anchor": "middle"
|
|
@@ -537,44 +543,44 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
537
543
|
cx: r.value.x,
|
|
538
544
|
cy: r.value.y,
|
|
539
545
|
r: M.value,
|
|
540
|
-
opacity:
|
|
546
|
+
opacity: $.value,
|
|
541
547
|
stroke: e.value.style.chart.circles.stroke,
|
|
542
548
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${r.value.id})` : r.value.color
|
|
543
|
-
}, null, 12,
|
|
544
|
-
t.$slots["zoom-label"] ? (s(), i("g",
|
|
545
|
-
m(t.$slots, "zoom-label", E(D({ ...r.value, zoomOpacity:
|
|
546
|
-
])) : (s(), i("g",
|
|
549
|
+
}, null, 12, Vt),
|
|
550
|
+
t.$slots["zoom-label"] ? (s(), i("g", Bt, [
|
|
551
|
+
m(t.$slots, "zoom-label", E(D({ ...r.value, zoomOpacity: $.value, currentRadius: M.value, fontSize: N.value })), void 0, !0)
|
|
552
|
+
])) : (s(), i("g", Ht, [
|
|
547
553
|
k("text", {
|
|
548
554
|
style: {
|
|
549
555
|
pointerEvents: "none"
|
|
550
556
|
},
|
|
551
|
-
opacity:
|
|
557
|
+
opacity: $.value,
|
|
552
558
|
x: r.value.x,
|
|
553
|
-
y: r.value.y + e.value.style.chart.circles.zoom.label.name.offsetY -
|
|
559
|
+
y: r.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - N.value.name / 4,
|
|
554
560
|
"text-anchor": "middle",
|
|
555
|
-
"font-size":
|
|
561
|
+
"font-size": N.value.name,
|
|
556
562
|
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(Y)(r.value.color),
|
|
557
563
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
558
|
-
}, L(r.value.name), 9,
|
|
564
|
+
}, L(r.value.name), 9, Xt),
|
|
559
565
|
k("text", {
|
|
560
566
|
style: {
|
|
561
567
|
pointerEvents: "none"
|
|
562
568
|
},
|
|
563
|
-
opacity:
|
|
569
|
+
opacity: $.value,
|
|
564
570
|
x: r.value.x,
|
|
565
|
-
y: r.value.y +
|
|
571
|
+
y: r.value.y + N.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
566
572
|
"text-anchor": "middle",
|
|
567
|
-
"font-size":
|
|
573
|
+
"font-size": N.value.value,
|
|
568
574
|
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(Y)(r.value.color),
|
|
569
575
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
570
|
-
}, L(Je()), 9,
|
|
576
|
+
}, L(Je()), 9, Yt)
|
|
571
577
|
]))
|
|
572
578
|
], 64)) : y("", !0),
|
|
573
579
|
m(t.$slots, "svg", {
|
|
574
580
|
svg: { ...p.value }
|
|
575
581
|
}, void 0, !0)
|
|
576
|
-
], 14,
|
|
577
|
-
|
|
582
|
+
], 14, St)) : y("", !0),
|
|
583
|
+
R.value ? y("", !0) : (s(), T(Tt, {
|
|
578
584
|
key: 5,
|
|
579
585
|
config: {
|
|
580
586
|
type: "circlePack",
|
|
@@ -583,22 +589,22 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
583
589
|
}
|
|
584
590
|
}
|
|
585
591
|
})),
|
|
586
|
-
t.$slots.watermark ? (s(), i("div",
|
|
592
|
+
t.$slots.watermark ? (s(), i("div", Wt, [
|
|
587
593
|
m(t.$slots, "watermark", E(D({ isPrinting: c(fe) || c(ye) })), void 0, !0)
|
|
588
594
|
])) : y("", !0),
|
|
589
595
|
t.$slots.source ? (s(), i("div", {
|
|
590
596
|
key: 7,
|
|
591
597
|
ref_key: "source",
|
|
592
|
-
ref:
|
|
598
|
+
ref: Ve,
|
|
593
599
|
dir: "auto"
|
|
594
600
|
}, [
|
|
595
601
|
m(t.$slots, "source", {}, void 0, !0)
|
|
596
602
|
], 512)) : y("", !0),
|
|
597
|
-
|
|
603
|
+
R.value ? (s(), T($t, {
|
|
598
604
|
key: 8,
|
|
599
605
|
hideDetails: "",
|
|
600
606
|
config: {
|
|
601
|
-
open:
|
|
607
|
+
open: S.value.showTable,
|
|
602
608
|
maxHeight: 1e4,
|
|
603
609
|
body: {
|
|
604
610
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -611,32 +617,32 @@ const Ot = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
611
617
|
}
|
|
612
618
|
}, {
|
|
613
619
|
content: C(() => [
|
|
614
|
-
(s(), T(
|
|
620
|
+
(s(), T(Pt, {
|
|
615
621
|
key: `table_${ie.value}`,
|
|
616
|
-
colNames:
|
|
617
|
-
head:
|
|
618
|
-
body:
|
|
619
|
-
config:
|
|
622
|
+
colNames: V.value.colNames,
|
|
623
|
+
head: V.value.head,
|
|
624
|
+
body: V.value.body,
|
|
625
|
+
config: V.value.config,
|
|
620
626
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
621
|
-
onClose: a[1] || (a[1] = (l) =>
|
|
627
|
+
onClose: a[1] || (a[1] = (l) => S.value.showTable = !1)
|
|
622
628
|
}, {
|
|
623
629
|
th: C(({ th: l }) => [
|
|
624
630
|
k("div", {
|
|
625
631
|
innerHTML: l,
|
|
626
632
|
style: { display: "flex", "align-items": "center" }
|
|
627
|
-
}, null, 8,
|
|
633
|
+
}, null, 8, jt)
|
|
628
634
|
]),
|
|
629
635
|
td: C(({ td: l }) => [
|
|
630
|
-
|
|
636
|
+
nt(L(l.name || l), 1)
|
|
631
637
|
]),
|
|
632
638
|
_: 1
|
|
633
639
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
634
640
|
]),
|
|
635
641
|
_: 1
|
|
636
642
|
}, 8, ["config"])) : y("", !0)
|
|
637
|
-
], 46,
|
|
643
|
+
], 46, It));
|
|
638
644
|
}
|
|
639
|
-
},
|
|
645
|
+
}, ul = /* @__PURE__ */ Ot(qt, [["__scopeId", "data-v-0a09e1d3"]]);
|
|
640
646
|
export {
|
|
641
|
-
|
|
647
|
+
ul as default
|
|
642
648
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C_VTEz1N.cjs"),ve=require("./useNestedProp-C7bLHE7v.cjs"),fe=require("./usePrinter-DWCqeYW6.cjs"),Oe=require("./Title-DFq_8HYJ.cjs"),Fe=require("./PenAndPaper-BsncKiRE.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),Me=require("./PackageVersion-CdmZAhdE.cjs"),_e=require("./vue-ui-accordion-CtBhoUw4.cjs"),Ae=require("./DataTable-D93-QmC8.cjs"),De=require("./vue-ui-skeleton-D1bJntn7.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),qe=["id"],Re=["xmlns","viewBox"],Ue=["x","y","width","height"],He=["id"],Ge=["stop-color"],Ye=["stop-color"],We=["stop-color"],Xe={key:0},je=["x","y","width","height","stroke","stroke-width","fill","rx","onMouseenter"],Ze=["x","y","width","height","stroke","stroke-width","fill","rx"],Je=["opacity","x","y","font-size","fill","font-weight"],Ke=["opacity","x","y","font-size","fill","font-weight"],Qe=["d","fill"],et=["cx","cy","r","opacity","stroke","fill"],tt={key:0,style:{pointerEvents:"none"}},lt={key:1},at=["opacity","x","y","font-size","fill","font-weight"],ot=["opacity","x","y","font-size","fill","font-weight"],rt={key:6,class:"vue-data-ui-watermark"},nt=["innerHTML"],st={__name:"vue-ui-circle-pack",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(me,{expose:he}){const y=me;e.useCssVars(l=>({"76fa81dc":C.value,"68186f8b":M.value}));const{vue_ui_circle_pack:pe}=r.useConfig(),$=e.computed(()=>!!y.dataset&&y.dataset.length),k=e.ref(r.createUid()),V=e.ref(null),ye=e.ref(null),ge=e.ref(null),H=e.ref(0),G=e.ref(0),Y=e.ref(0),ke=e.ref(null),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:O,setUserOptionsVisibility:W,keepUserOptionState:X}=Ie.useUserOptionState({config:t.value});function j(){const l=ve.useNestedProp({userConfig:y.config,defaultConfig:pe});return l.theme?{...ve.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}=fe.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 ze()}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 Ce(l,o,a,u){const c=o*2;for(let h of l)for(let p=0;p<360;p+=30){let B=p*Math.PI/180,i=h.x+c*Math.cos(B),n=h.y+c*Math.sin(B),m={x:i,y:n,radius:o};if(i-o>=0&&i+o<=a&&n-o>=0&&n+o<=u&&!le(m,l))return{x:i,y:n}}return null}function xe(l,o,a,u,c=0,h=0){const p=Math.max(...l.map(m=>m.value)),i=l.map((m,d)=>({...m,radius:m.value/p*u,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,...se}=m,D=Ce(n,d,o,a);if(D)n.push({...se,x:D.x,y:D.y,radius:d});else{let L=null,ue=1/0;for(let E of n)for(let q=0;q<360;q+=15){let ie=q*Math.PI/180,R=E.x+(d+E.radius)*Math.cos(ie),U=E.y+(d+E.radius)*Math.sin(ie),T={...se,x:R,y:U,radius:d};if(R-d>=0&&R+d<=o&&U-d>=0&&U+d<=a&&!le(T,n)){let ce=n.reduce((Ve,de)=>Ve+(te(T,de)<T.radius+de.radius?1:0),0);ce<ue&&(ue=ce,L=T)}}L&&n.push(L)}}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([]),we=e.computed(()=>Math.max(...f.value.map(l=>l.radius)));function ae(l,o){return o/we.value*l}async function ze(){f.value=xe(I.value,1e4,1e4,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]),u=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,B=(u==null?void 0:u.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(B-p)+(o?o.radius:0)+(u?u.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}}),Be=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)})),s=e.ref(null);function $e(l){t.value.style.chart.circles.zoom.show&&(s.value=l)}const C=e.computed(()=>s.value?s.value.radius:0),M=e.computed(()=>s.value?s.value.radius>v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio?s.value.radius:v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio:0),g=e.ref(0),Pe=e.computed(()=>({pointerEvents:"none",opacity:g.value,filter:`drop-shadow(0px 0px 6px ${r.darkenHexColor(s.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 u=(a-l)/t.value.style.chart.circles.zoom.animationFrameMs;u<1?(x.value=C.value+(M.value-C.value)*u,g.value=0+t.value.style.chart.circles.zoom.opacity*u,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 _(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 Ne(){return r.applyDataLabel(t.value.style.chart.circles.zoom.label.value.formatter,s.value.value,r.dataLabel({p:t.value.style.chart.circles.zoom.label.value.prefix,v:s.value.value,s:t.value.style.chart.circles.zoom.label.value.suffix,r:t.value.style.chart.circles.zoom.label.rounding}))}function Se(l){if(!l)return 0;const o=l.radius/_(l).length*(_(l).length===1?1:2);return Math.min(l.radius/2.5,o)}const z=e.ref(!1);function Ee(l){z.value=l,Y.value+=1}const P=e.ref(!1);function A(){P.value=!P.value}const N=e.computed(()=>{const l=I.value.map(a=>({name:a.name,value:a.value,color:a.color})).toSorted((a,u)=>u.value-a.value),o=l.map(a=>a.value);return{head:l,body:o}});function re(){e.nextTick(()=>{const l=N.value.head.map((u,c)=>[[u.name],[N.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 S=e.computed(()=>{const l=[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],o=N.value.head.map((c,h)=>{const p=r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:N.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 ne(){b.value.showTable=!b.value.showTable}function Te(){return I.value}return he({getData:Te,generateCsv:re,generatePdf:K,generateImage:Q,toggleTable:ne,toggleAnnotator:A}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`vue-ui-circle-pack_${k.value}`,class:e.normalizeClass(`vue-ui-circle-pack ${z.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(Fe.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:P.value,onClose:A},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:ge,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:ye,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Oe._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(fe.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:z.value,chartElement:V.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:P.value,onToggleFullscreen:Ee,onGeneratePdf:e.unref(K),onGenerateCsv:re,onGenerateImage:e.unref(Q),onToggleTable:ne,onToggleAnnotator:A,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:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:u})),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,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":z.value,"vue-data-ui-fulscreen--off":!z.value}),style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(Me._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,Ue)):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,Ge),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,We)],8,He)]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({...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:()=>$e(a),onMouseout:o[0]||(o[0]=u=>s.value=null)},null,40,je),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,Ze)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.name.show&&a.name?(e.openBlock(),e.createElementBlock("text",{key:2,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:s.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,Je)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.value.show?(e.openBlock(),e.createElementBlock("text",{key:3,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:s.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":Se(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)),9,Ke)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Be.value,u=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,c=>(e.openBlock(),e.createElementBlock("path",{d:c.arcSlice,fill:c.color,stroke:"black"},null,8,Qe))),256))],64))),256))],64))),256)),s.value&&t.value.style.chart.circles.zoom.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("circle",{style:e.normalizeStyle(Pe.value),cx:s.value.x,cy:s.value.y,r:x.value,opacity:g.value,stroke:t.value.style.chart.circles.stroke,fill:t.value.style.chart.circles.gradient.show?`url(#${s.value.id})`:s.value.color},null,12,et),l.$slots["zoom-label"]?(e.openBlock(),e.createElementBlock("g",tt,[e.renderSlot(l.$slots,"zoom-label",e.normalizeProps(e.guardReactiveProps({...s.value,zoomOpacity:g.value,currentRadius:x.value,fontSize:w.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock("g",lt,[e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:s.value.x,y:s.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)(s.value.color),"font-weight":t.value.style.chart.circles.zoom.label.name.bold?"bold":"normal"},e.toDisplayString(s.value.name),9,at),e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:s.value.x,y:s.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)(s.value.color),"font-weight":t.value.style.chart.circles.zoom.label.value.bold?"bold":"normal"},e.toDisplayString(Ne()),9,ot)]))],64)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:{...v.value}},void 0,!0)],14,Re)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:5,config:{type:"circlePack",style:{color:"#CCCCCC"}}})),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",rt,[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:ke,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(_e.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(Ae.DataTable,{key:`table_${G.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.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,nt)]),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,qe))}},ut=Le._export_sfc(st,[["__scopeId","data-v-0a09e1d3"]]);exports.default=ut;
|