vue-data-ui 2.5.7 → 2.5.9
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/README.md +83 -1
- package/dist/{Arrow-BQy5IqAX.cjs → Arrow-CDI_L834.cjs} +1 -1
- package/dist/{Arrow-5QI0f9hp.js → Arrow-DMfadOFB.js} +1 -1
- package/dist/{BaseIcon-BXpK120h.js → BaseIcon-CE4KhOox.js} +1 -1
- package/dist/{BaseIcon-Dk8gByg1.cjs → BaseIcon-CSpqq62V.cjs} +1 -1
- package/dist/{DataTable-CpOh1tx3.js → DataTable-C_YX1pwI.js} +2 -2
- package/dist/{DataTable-D93-QmC8.cjs → DataTable-cvwMC0Ke.cjs} +1 -1
- package/dist/{Legend-DqRstaxU.js → Legend-BIE7T807.js} +2 -2
- package/dist/{Legend-Dh9aF6uH.cjs → Legend-C91nJUyp.cjs} +1 -1
- package/dist/{PackageVersion-CdmZAhdE.cjs → PackageVersion-B5cHkz3-.cjs} +1 -1
- package/dist/{PackageVersion-iscNRe7N.js → PackageVersion-N_Q2K_Kp.js} +1 -1
- package/dist/{PenAndPaper-BsncKiRE.cjs → PenAndPaper-BVSRnwAP.cjs} +1 -1
- package/dist/{PenAndPaper-B-VQ8eSo.js → PenAndPaper-NvAJhDOQ.js} +3 -3
- package/dist/{Shape-DZRynz5E.cjs → Shape-DvB-ALI9.cjs} +1 -1
- package/dist/{Shape-CB0mE9KP.js → Shape-o0w_YFes.js} +1 -1
- package/dist/{Slicer-Cm0a7Otv.cjs → Slicer-DFMMoat-.cjs} +1 -1
- package/dist/{Slicer-DiUftIFQ.js → Slicer-jSg6umvj.js} +2 -2
- package/dist/{Title-CiQQgFbV.js → Title-DP3fclaW.js} +1 -1
- package/dist/{Title-DFq_8HYJ.cjs → Title-zIr3pW0Y.cjs} +1 -1
- package/dist/{Tooltip-ZYQUXVWv.js → Tooltip-DpqJj1_e.js} +1 -1
- package/dist/{Tooltip-pcZXVRMj.cjs → Tooltip-JUdLirBN.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiqenHrX.js → index-B6iCkgQj.js} +1 -1
- package/dist/{index-C_VTEz1N.cjs → index-j0ggGyqh.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +46 -0
- package/dist/types/vue-data-ui.d.ts +46 -0
- package/dist/{useNestedProp-C7bLHE7v.cjs → useNestedProp-BBCLfU_n.cjs} +1 -1
- package/dist/{useNestedProp-B3CQkP95.js → useNestedProp-egyWxFl6.js} +1 -1
- package/dist/{usePrinter-DWCqeYW6.cjs → usePrinter-CosdKiXK.cjs} +1 -1
- package/dist/{usePrinter-CHAgX1f-.js → usePrinter-DEBltZby.js} +1 -1
- package/dist/{vue-data-ui-BAAnNikX.js → vue-data-ui-D8MNJnP8.js} +61 -61
- package/dist/{vue-data-ui-VikO3yRe.cjs → vue-data-ui-DcaK4iTA.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -8
- package/dist/{vue-ui-3d-bar-BR-ihA3S.cjs → vue-ui-3d-bar-DSluLRkx.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-C4OjP6pi.js → vue-ui-3d-bar-DmHG0BRY.js} +9 -9
- package/dist/{vue-ui-accordion-DA6XnWaz.js → vue-ui-accordion-CpTs7ThO.js} +3 -3
- package/dist/{vue-ui-accordion-CtBhoUw4.cjs → vue-ui-accordion-I9jITkh5.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-2AgqaHOS.js → vue-ui-age-pyramid-BO5zBebr.js} +10 -10
- package/dist/{vue-ui-age-pyramid-E0fCV03f.cjs → vue-ui-age-pyramid-DERS1GEK.cjs} +1 -1
- package/dist/{vue-ui-annotator-CdLA2R6h.js → vue-ui-annotator-BmQ1WZoF.js} +1 -1
- package/dist/{vue-ui-annotator-UcABxDAz.cjs → vue-ui-annotator-DPnDCeXh.cjs} +1 -1
- package/dist/{vue-ui-bullet-C4wEiJn8.cjs → vue-ui-bullet-BH7ufdgn.cjs} +1 -1
- package/dist/{vue-ui-bullet-AFqmPWo3.js → vue-ui-bullet-QiEF5O5Z.js} +8 -8
- package/dist/{vue-ui-candlestick-BkQsD1Yi.cjs → vue-ui-candlestick-D8LUwHP_.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bs0DE1Xi.js → vue-ui-candlestick-DMhlF7OF.js} +11 -11
- package/dist/{vue-ui-carousel-table-NYlYQbo9.js → vue-ui-carousel-table-B_jSw5nK.js} +4 -4
- package/dist/{vue-ui-carousel-table-KX-cLx3F.cjs → vue-ui-carousel-table-s5TEXTHg.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BzHRBq_Z.cjs → vue-ui-chestnut-CFeiJBCZ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BAJjfgKR.js → vue-ui-chestnut-DCeek-W6.js} +8 -8
- package/dist/vue-ui-circle-pack-B2wyvjmX.cjs +1 -0
- package/dist/{vue-ui-circle-pack-BoolEIij.js → vue-ui-circle-pack-B7_t2TS8.js} +227 -217
- package/dist/{vue-ui-cursor-ut60ihG1.js → vue-ui-cursor-BrZJeqQP.js} +2 -2
- package/dist/{vue-ui-cursor-BjQLjw1a.cjs → vue-ui-cursor-CBf8BAyI.cjs} +1 -1
- package/dist/{vue-ui-dashboard-FQxiN7Jj.js → vue-ui-dashboard-DiX6_Lu1.js} +2 -2
- package/dist/{vue-ui-dashboard-BXVdZdEF.cjs → vue-ui-dashboard-thDl2UZd.cjs} +1 -1
- package/dist/{vue-ui-digits-j2WKJUNf.cjs → vue-ui-digits-BmjxLWsH.cjs} +1 -1
- package/dist/{vue-ui-digits-Rb48H8et.js → vue-ui-digits-ffVg5Sdo.js} +2 -2
- package/dist/{vue-ui-donut-DUKnsxUu.js → vue-ui-donut-BPKISbjU.js} +12 -12
- package/dist/{vue-ui-donut-CbFW--I1.cjs → vue-ui-donut-Dnio43ap.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-n-ue754h.js → vue-ui-donut-evolution-6MFHeOYA.js} +11 -11
- package/dist/{vue-ui-donut-evolution-9mJgbwpR.cjs → vue-ui-donut-evolution-CVWbXBVz.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C4r0NeY_.js → vue-ui-dumbbell-9ON2GlRd.js} +10 -10
- package/dist/{vue-ui-dumbbell-sXSCnY75.cjs → vue-ui-dumbbell-BZkCJ0sm.cjs} +1 -1
- package/dist/{vue-ui-flow-CuZbUegy.js → vue-ui-flow-BZ59oOLx.js} +9 -9
- package/dist/{vue-ui-flow-C8-oqGo7.cjs → vue-ui-flow-D3_h_vbo.cjs} +1 -1
- package/dist/{vue-ui-funnel-Cb0LSIxk.cjs → vue-ui-funnel-CKGhYUAT.cjs} +1 -1
- package/dist/{vue-ui-funnel-D9whnJ6X.js → vue-ui-funnel-CfmnrlJc.js} +9 -9
- package/dist/{vue-ui-galaxy-CRECMRY6.js → vue-ui-galaxy-D79eHzul.js} +11 -11
- package/dist/{vue-ui-galaxy-DUHSlUJQ.cjs → vue-ui-galaxy-eworfjhq.cjs} +1 -1
- package/dist/{vue-ui-gauge-BfmvvI7e.cjs → vue-ui-gauge-Dep8eww5.cjs} +1 -1
- package/dist/{vue-ui-gauge-BEhMYmCg.js → vue-ui-gauge-FopbSPHo.js} +7 -7
- package/dist/{vue-ui-gizmo-BkZTXg7I.cjs → vue-ui-gizmo-DRfspDQI.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DtXR6xgr.js → vue-ui-gizmo-Df5lHeLd.js} +3 -3
- package/dist/{vue-ui-heatmap-B1XZnqbm.cjs → vue-ui-heatmap-B2n7fqiJ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BlBHNDJV.js → vue-ui-heatmap-smAgvLBm.js} +10 -10
- package/dist/{vue-ui-history-plot-DqM3d3p7.cjs → vue-ui-history-plot-4UYJWhE5.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BmzpDPL6.js → vue-ui-history-plot-CpO69hOT.js} +11 -11
- package/dist/{vue-ui-kpi-XdIADLDq.js → vue-ui-kpi-BWpoNAlF.js} +3 -3
- package/dist/{vue-ui-kpi-D1i-2otW.cjs → vue-ui-kpi-DN8R7Urm.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DZgbFjuS.cjs → vue-ui-mini-loader-DhQ61Wi8.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BdDY5AwD.js → vue-ui-mini-loader-nBgnWAxN.js} +2 -2
- package/dist/{vue-ui-molecule-a0IHQMkN.cjs → vue-ui-molecule-BV1l0DPy.cjs} +1 -1
- package/dist/{vue-ui-molecule-DstYXfTV.js → vue-ui-molecule-CZpmGIkh.js} +11 -11
- package/dist/{vue-ui-mood-radar-DjtnprtG.js → vue-ui-mood-radar-CTx3EsLc.js} +11 -11
- package/dist/{vue-ui-mood-radar-BafPNccC.cjs → vue-ui-mood-radar-D_Qxz-H3.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-XQ_auu4H.js → vue-ui-nested-donuts-CNXC60eJ.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DC7oX5GH.cjs → vue-ui-nested-donuts-DqDmuoKl.cjs} +1 -1
- package/dist/{vue-ui-onion-D_myFmJv.js → vue-ui-onion-CYWHy2Ul.js} +11 -11
- package/dist/{vue-ui-onion-DEfVifyj.cjs → vue-ui-onion-gUY_8Pk7.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Bv3lIZ0J.cjs → vue-ui-parallel-coordinate-plot-CbWbh3YQ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DQsyE4kf.js → vue-ui-parallel-coordinate-plot-D_ku0iBm.js} +12 -12
- package/dist/{vue-ui-quadrant-DXU4OdLD.cjs → vue-ui-quadrant-CcQtjV1R.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DBvqgk3y.js → vue-ui-quadrant-DV-W3Bc7.js} +12 -12
- package/dist/{vue-ui-quick-chart-C-bsRZf1.js → vue-ui-quick-chart-CM_6czjm.js} +9 -9
- package/dist/{vue-ui-quick-chart-Dl-94hQE.cjs → vue-ui-quick-chart-m_0oN75l.cjs} +1 -1
- package/dist/{vue-ui-radar-QQ8vOOYq.cjs → vue-ui-radar-B3ZSBg8X.cjs} +1 -1
- package/dist/{vue-ui-radar-He8orFXJ.js → vue-ui-radar-CTYYMUUA.js} +12 -12
- package/dist/{vue-ui-rating-qUauyHHk.js → vue-ui-rating-B13cpPP5.js} +2 -2
- package/dist/{vue-ui-rating-6kyP3DDH.cjs → vue-ui-rating-C2O4ltHl.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BO4wP-bR.cjs → vue-ui-relation-circle-CCGfhiCo.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DfVg4VBp.js → vue-ui-relation-circle-D3-uWUh9.js} +7 -7
- package/dist/{vue-ui-rings-DjoVPXun.js → vue-ui-rings-B2-BG00g.js} +12 -12
- package/dist/{vue-ui-rings-D_cVoXDa.cjs → vue-ui-rings-CWy-hNpb.cjs} +1 -1
- package/dist/{vue-ui-scatter-45hc4NIf.cjs → vue-ui-scatter-B0vkzYer.cjs} +1 -1
- package/dist/{vue-ui-scatter-DBcO00g4.js → vue-ui-scatter-BweU03yc.js} +12 -12
- package/dist/{vue-ui-screenshot-zc-jsepS.js → vue-ui-screenshot-DCWrDOFK.js} +1 -1
- package/dist/{vue-ui-screenshot-lJJxoLDu.cjs → vue-ui-screenshot-DwbXIuKi.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D1bJntn7.cjs → vue-ui-skeleton-B3chMg3p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BwWHgSoq.js → vue-ui-skeleton-BVn408dA.js} +3 -3
- package/dist/{vue-ui-smiley-BVFxYYJl.js → vue-ui-smiley-BNmpQkTu.js} +2 -2
- package/dist/{vue-ui-smiley-CZPe292C.cjs → vue-ui-smiley-Bm_Sor3t.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-8LZqy_wz.js → vue-ui-spark-trend-CUjHlDOq.js} +5 -5
- package/dist/{vue-ui-spark-trend-BJ3_K1DU.cjs → vue-ui-spark-trend-iHE9BSRD.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C93PvNz6.js → vue-ui-sparkbar-0_5f6jHS.js} +4 -4
- package/dist/{vue-ui-sparkbar-B3idsjFj.cjs → vue-ui-sparkbar-Bwm4YKT1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B1uABI9w.js → vue-ui-sparkgauge-Bv39vGRr.js} +4 -4
- package/dist/{vue-ui-sparkgauge-66qZ-DgD.cjs → vue-ui-sparkgauge-Dou1ZAwl.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-vAgBJK79.js → vue-ui-sparkhistogram-DmqjOiSy.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-D7ECtpUW.cjs → vue-ui-sparkhistogram-DnUAwkLS.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B2JarTjo.js → vue-ui-sparkline-0rGL6Gic.js} +4 -4
- package/dist/{vue-ui-sparkline-YOIgP_Dl.cjs → vue-ui-sparkline-rB-JplKe.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DMClZgds.cjs → vue-ui-sparkstackbar-BiAAKqhB.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C2E7YRP0.js → vue-ui-sparkstackbar-iWl3B8vy.js} +5 -5
- package/dist/{vue-ui-stackbar-n27TJh0C.js → vue-ui-stackbar-92YraSYR.js} +13 -13
- package/dist/{vue-ui-stackbar-BP_qrJ-s.cjs → vue-ui-stackbar-C8_nrogq.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DN7X6zBk.cjs → vue-ui-strip-plot-A5MnXNhF.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Bjy7C_Ry.js → vue-ui-strip-plot-CWkfKq60.js} +11 -11
- package/dist/{vue-ui-table-DnHvIIqi.js → vue-ui-table-4d9uSLEP.js} +1 -1
- package/dist/{vue-ui-table-6rqw4Gi-.cjs → vue-ui-table-DW_fRtOb.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Dt8DAC4A.js → vue-ui-table-heatmap-D2a0wP1j.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BQKXP9Na.cjs → vue-ui-table-heatmap-DNXHs86Z.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CLQJbHX8.js → vue-ui-table-sparkline-DJLP27Ad.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DmNJFPHo.cjs → vue-ui-table-sparkline-vLm9b1I5.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BTmiPdUs.js → vue-ui-thermometer-CNts_rvi.js} +7 -7
- package/dist/{vue-ui-thermometer-DnVSE7_V.cjs → vue-ui-thermometer-DHSzFidy.cjs} +1 -1
- package/dist/{vue-ui-timer-D6j-aYnJ.js → vue-ui-timer-BFcOw1hO.js} +5 -5
- package/dist/{vue-ui-timer-CINerMki.cjs → vue-ui-timer-YFtl58_g.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CRGMkwwv.cjs → vue-ui-tiremarks-DoUwvkC6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ztoJZwQn.js → vue-ui-tiremarks-uYzoi0Az.js} +7 -7
- package/dist/{vue-ui-treemap-CbqRlXgA.cjs → vue-ui-treemap-CCaxQbC5.cjs} +1 -1
- package/dist/{vue-ui-treemap-B0NYnKie.js → vue-ui-treemap-DyVr-7tU.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DzcpRwPF.js → vue-ui-vertical-bar-CkIPLo9K.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Cosr8beH.cjs → vue-ui-vertical-bar-DgkIij4V.cjs} +1 -1
- package/dist/{vue-ui-waffle-DkVKQERp.cjs → vue-ui-waffle-CRD2OK-Z.cjs} +1 -1
- package/dist/{vue-ui-waffle-CE1MnOqa.js → vue-ui-waffle-DMF4YPMb.js} +12 -12
- package/dist/{vue-ui-wheel-CGYGLKyG.cjs → vue-ui-wheel-B33BipCK.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMS12xPv.js → vue-ui-wheel-GRUDawxW.js} +7 -7
- package/dist/{vue-ui-word-cloud-D_CyZOE0.js → vue-ui-word-cloud-BWkyB_vh.js} +10 -10
- package/dist/{vue-ui-word-cloud-C1klEiea.cjs → vue-ui-word-cloud-C3bj_ty9.cjs} +1 -1
- package/dist/{vue-ui-xy-GgA45y9X.js → vue-ui-xy-B5cBN3Pc.js} +14 -14
- package/dist/{vue-ui-xy-Nj-5ko1z.cjs → vue-ui-xy-D0hbPR0k.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BRPQBL8l.js → vue-ui-xy-canvas-1ZUGY0mI.js} +11 -11
- package/dist/{vue-ui-xy-canvas-CQt5pre_.cjs → vue-ui-xy-canvas-CmrS0Mvt.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-BrmdreXG.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
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 { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as at, computed as h, ref as f, watch as Fe, onMounted as ot, watchEffect as st, openBlock as s, createElementBlock as i, normalizeClass as Me, normalizeStyle as Y, unref as c, createBlock as S, createCommentVNode as y, renderSlot as p, createSlots as nt, withCtx as C, normalizeProps as O, guardReactiveProps as D, createVNode as rt, Fragment as T, renderList as se, createElementVNode as k, mergeProps as ut, toDisplayString as R, createTextVNode as it, nextTick as ct } from "vue";
|
|
2
|
+
import { u as vt, c as Ne, t as dt, a as ne, p as P, o as ht, e as ft, b as yt, d as _e, m as pt, h as Ae, f as re, X as mt, l as bt, a8 as gt, G as L, i as Ee, q as kt, r as xt } from "./index-B6iCkgQj.js";
|
|
3
|
+
import { u as De } from "./useNestedProp-egyWxFl6.js";
|
|
4
|
+
import { u as wt, U as Ct } from "./usePrinter-DEBltZby.js";
|
|
5
|
+
import { _ as zt } from "./Title-DP3fclaW.js";
|
|
6
|
+
import { P as $t } from "./PenAndPaper-NvAJhDOQ.js";
|
|
7
|
+
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as Pt } from "./PackageVersion-N_Q2K_Kp.js";
|
|
9
|
+
import St from "./vue-ui-accordion-CpTs7ThO.js";
|
|
10
|
+
import { D as Ot } from "./DataTable-C_YX1pwI.js";
|
|
11
|
+
import It from "./vue-ui-skeleton-BVn408dA.js";
|
|
12
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Mt = ["id"], Nt = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"], At = ["id"], Et = ["stop-color"], Dt = ["stop-color"], Rt = ["stop-color"], Lt = { key: 0 }, Gt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Ut = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Bt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["d", "fill"], Xt = ["cx", "cy", "r", "opacity", "stroke", "fill"], Yt = {
|
|
14
14
|
key: 0,
|
|
15
15
|
style: { pointerEvents: "none" }
|
|
16
|
-
},
|
|
16
|
+
}, Wt = { key: 1 }, jt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], qt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Zt = {
|
|
17
17
|
key: 6,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, Jt = ["innerHTML"], Kt = {
|
|
20
20
|
__name: "vue-ui-circle-pack",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -32,69 +32,77 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
35
|
+
emits: ["selectDatapoint"],
|
|
36
|
+
setup(Re, { expose: Le, emit: Ge }) {
|
|
37
|
+
const z = Re;
|
|
38
|
+
at((t) => ({
|
|
39
|
+
"3d829984": M.value,
|
|
40
|
+
"205f8306": J.value
|
|
40
41
|
}));
|
|
41
|
-
const { vue_ui_circle_pack:
|
|
42
|
+
const { vue_ui_circle_pack: Ue } = vt(), G = h(() => !!z.dataset && z.dataset.length), I = f(Ne()), W = f(null), Ve = f(null), Be = f(null), ue = f(0), ie = f(0), ce = f(0), He = f(null), e = h({
|
|
42
43
|
get: () => he(),
|
|
43
44
|
set: (t) => t
|
|
44
45
|
}), {
|
|
45
46
|
userOptionsVisible: j,
|
|
46
47
|
setUserOptionsVisibility: ve,
|
|
47
48
|
keepUserOptionState: de
|
|
48
|
-
} =
|
|
49
|
+
} = Tt({ config: e.value });
|
|
49
50
|
function he() {
|
|
50
|
-
const t =
|
|
51
|
+
const t = De({
|
|
51
52
|
userConfig: z.config,
|
|
52
|
-
defaultConfig:
|
|
53
|
+
defaultConfig: Ue
|
|
53
54
|
});
|
|
54
55
|
return t.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
56
|
+
...De({
|
|
57
|
+
userConfig: dt.vue_ui_circle_pack[t.theme] || z.config,
|
|
57
58
|
defaultConfig: t
|
|
58
59
|
}),
|
|
59
|
-
customPalette:
|
|
60
|
+
customPalette: ne[t.theme] || P
|
|
60
61
|
} : t;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
e.value = he(), j.value = !e.value.userOptions.showOnChartHover, q(), ue.value += 1, ie.value += 1,
|
|
63
|
+
Fe(() => z.config, (t) => {
|
|
64
|
+
e.value = he(), j.value = !e.value.userOptions.showOnChartHover, q(), ue.value += 1, ie.value += 1, F.value.showTable = e.value.table.show;
|
|
64
65
|
}, { deep: !0 });
|
|
65
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: pe, generateImage: me } =
|
|
66
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: pe, generateImage: me } = wt({
|
|
66
67
|
elementId: `vue-ui-circle-pack_${I.value}`,
|
|
67
68
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
68
|
-
}),
|
|
69
|
+
}), Xe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), F = f({
|
|
69
70
|
showTable: e.value.table.show
|
|
70
71
|
});
|
|
71
72
|
async function q() {
|
|
72
|
-
|
|
73
|
+
ht(z.dataset) && ft({
|
|
73
74
|
componentName: "VueUiCirclePack",
|
|
74
75
|
type: "dataset"
|
|
75
|
-
}), await
|
|
76
|
+
}), await qe();
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
+
ot(q), Fe(() => z.dataset, async (t) => {
|
|
78
79
|
await q();
|
|
79
80
|
}, { deep: !0 });
|
|
80
|
-
const be = h(() =>
|
|
81
|
+
const be = h(() => yt(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 Ye(t, a, l, n) {
|
|
88
89
|
const v = a * 2;
|
|
89
90
|
for (let x of t)
|
|
90
|
-
for (let w = 0; w < 360; w +=
|
|
91
|
-
let
|
|
91
|
+
for (let w = 0; w < 360; w += 1) {
|
|
92
|
+
let E = w * Math.PI / 180, u = x.x + v * Math.cos(E), o = x.y - v * Math.sin(E), g = { x: u, y: o, radius: a };
|
|
92
93
|
if (u - a >= 0 && u + a <= l && o - a >= 0 && o + a <= n && !ke(g, t))
|
|
93
94
|
return { x: u, y: o };
|
|
94
95
|
}
|
|
95
96
|
return null;
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function We({
|
|
99
|
+
datapoints: t,
|
|
100
|
+
width: a,
|
|
101
|
+
height: l,
|
|
102
|
+
maxRadius: n,
|
|
103
|
+
offsetX: v = 0,
|
|
104
|
+
offsetY: x = 0
|
|
105
|
+
}) {
|
|
98
106
|
const w = Math.max(...t.map((g) => g.value)), u = t.map((g, d) => ({
|
|
99
107
|
...g,
|
|
100
108
|
radius: g.value / w * n,
|
|
@@ -107,20 +115,20 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
107
115
|
y: l / 2 + x
|
|
108
116
|
});
|
|
109
117
|
for (let g of u.slice(1)) {
|
|
110
|
-
let { radius: d,
|
|
118
|
+
let { radius: d, ...Te } = g, ee = Ye(o, d, a, l);
|
|
111
119
|
if (ee)
|
|
112
|
-
o.push({
|
|
120
|
+
o.push({ ...Te, x: ee.x, y: ee.y, radius: d });
|
|
113
121
|
else {
|
|
114
122
|
let te = null, Pe = 1 / 0;
|
|
115
|
-
for (let
|
|
123
|
+
for (let H of o)
|
|
116
124
|
for (let le = 0; le < 360; le += 15) {
|
|
117
|
-
let
|
|
118
|
-
if (ae - d >= 0 && ae + d <= a && oe - d >= 0 && oe + d <= l && !ke(
|
|
125
|
+
let Se = le * Math.PI / 180, ae = H.x + (d + H.radius) * Math.cos(Se), oe = H.y + (d + H.radius) * Math.sin(Se), X = { ...Te, x: ae, y: oe, radius: d };
|
|
126
|
+
if (ae - d >= 0 && ae + d <= a && oe - d >= 0 && oe + d <= l && !ke(X, o)) {
|
|
119
127
|
let Oe = o.reduce(
|
|
120
|
-
(
|
|
128
|
+
(lt, Ie) => lt + (ge(X, Ie) < X.radius + Ie.radius ? 1 : 0),
|
|
121
129
|
0
|
|
122
130
|
);
|
|
123
|
-
Oe < Pe && (Pe = Oe, te =
|
|
131
|
+
Oe < Pe && (Pe = Oe, te = X);
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
134
|
te && o.push(te);
|
|
@@ -129,44 +137,43 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
129
137
|
return o;
|
|
130
138
|
}
|
|
131
139
|
const Z = h(() => z.dataset.map((t, a) => {
|
|
132
|
-
const l =
|
|
140
|
+
const l = _e(t.color) || be.value[a] || ne[e.value.theme || "default"][a % ne[e.value.theme || "default"].length] || P[a] || P[a % P.length];
|
|
133
141
|
return {
|
|
134
142
|
...t,
|
|
135
|
-
id:
|
|
143
|
+
id: Ne(),
|
|
136
144
|
color: l
|
|
137
145
|
};
|
|
138
|
-
}).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)));
|
|
139
147
|
function xe(t, a) {
|
|
140
|
-
return a /
|
|
148
|
+
return a / je.value * t;
|
|
141
149
|
}
|
|
142
|
-
async function
|
|
143
|
-
b.value =
|
|
144
|
-
Z.value,
|
|
145
|
-
|
|
146
|
-
1e4,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
);
|
|
150
|
+
async function qe() {
|
|
151
|
+
b.value = We({
|
|
152
|
+
datapoints: Z.value,
|
|
153
|
+
width: 1e4,
|
|
154
|
+
height: 1e4,
|
|
155
|
+
maxRadius: 32
|
|
156
|
+
});
|
|
150
157
|
}
|
|
151
158
|
const we = h(() => ({
|
|
152
159
|
width: 100,
|
|
153
160
|
height: 100
|
|
154
|
-
})),
|
|
155
|
-
const t = b.value.reduce((u, o) => o.x - o.radius < u.x - u.radius ? o : u, b.value[0]), a = b.value.reduce((u, o) => o.y - o.radius < u.y - u.radius ? o : u, b.value[0]), l = b.value.reduce((u, o) => o.x + o.radius > u.x + u.radius ? o : u, b.value[0]), n = b.value.reduce((u, o) => o.y + o.radius > u.y + u.radius ? o : u, b.value[0]), v = (t == null ? void 0 : t.x) || 0, x = (l == null ? void 0 : l.x) || we.value.width, w = (a == null ? void 0 : a.y) || 0,
|
|
161
|
+
})), m = h(() => {
|
|
162
|
+
const t = b.value.reduce((u, o) => o.x - o.radius < u.x - u.radius ? o : u, b.value[0]), a = b.value.reduce((u, o) => o.y - o.radius < u.y - u.radius ? o : u, b.value[0]), l = b.value.reduce((u, o) => o.x + o.radius > u.x + u.radius ? o : u, b.value[0]), n = b.value.reduce((u, o) => o.y + o.radius > u.y + u.radius ? o : u, b.value[0]), v = (t == null ? void 0 : t.x) || 0, x = (l == null ? void 0 : l.x) || we.value.width, w = (a == null ? void 0 : a.y) || 0, E = (n == null ? void 0 : n.y) || we.value.height;
|
|
156
163
|
return {
|
|
157
164
|
maxX: x,
|
|
158
165
|
minX: v,
|
|
159
166
|
width: Math.abs(x - v) + (t ? t.radius : 0) + (l ? l.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
|
|
160
|
-
height: Math.abs(
|
|
167
|
+
height: Math.abs(E - w) + (a ? a.radius : 0) + (n ? n.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
|
|
161
168
|
x: t ? (t == null ? void 0 : t.x) - (t == null ? void 0 : t.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0,
|
|
162
169
|
y: a ? (a == null ? void 0 : a.y) - (a == null ? void 0 : a.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0
|
|
163
170
|
};
|
|
164
|
-
}),
|
|
171
|
+
}), Ze = h(() => b.value.map((t) => {
|
|
165
172
|
if (t.breakdown)
|
|
166
|
-
return
|
|
173
|
+
return pt(
|
|
167
174
|
{ series: t.breakdown.map((a, l) => ({
|
|
168
175
|
...a,
|
|
169
|
-
color:
|
|
176
|
+
color: _e(a.color) || be.value[l] || P[l] || P[l % P.length]
|
|
170
177
|
})) },
|
|
171
178
|
t.x,
|
|
172
179
|
t.y,
|
|
@@ -180,33 +187,33 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
180
187
|
t.radius / 2
|
|
181
188
|
);
|
|
182
189
|
})), r = f(null);
|
|
183
|
-
function
|
|
190
|
+
function Je(t) {
|
|
184
191
|
e.value.style.chart.circles.zoom.show && (r.value = t);
|
|
185
192
|
}
|
|
186
|
-
const
|
|
193
|
+
const M = h(() => r.value ? r.value.radius : 0), J = h(() => r.value ? r.value.radius > m.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? r.value.radius : m.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), $ = f(0), Ke = h(() => ({
|
|
187
194
|
pointerEvents: "none",
|
|
188
195
|
opacity: $.value,
|
|
189
|
-
filter: `drop-shadow(0px 0px 6px ${
|
|
190
|
-
})),
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
filter: `drop-shadow(0px 0px 6px ${Ae(r.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
197
|
+
})), N = f(M.value);
|
|
198
|
+
st(() => {
|
|
199
|
+
N.value = M.value, $.value = 0;
|
|
193
200
|
let t = null;
|
|
194
201
|
function a(l) {
|
|
195
202
|
t || (t = l);
|
|
196
203
|
const n = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
197
|
-
n < 1 ? (
|
|
204
|
+
n < 1 ? (N.value = M.value + (J.value - M.value) * n, $.value = 0 + e.value.style.chart.circles.zoom.opacity * n, requestAnimationFrame(a)) : (N.value = J.value, $.value = e.value.style.chart.circles.zoom.opacity);
|
|
198
205
|
}
|
|
199
206
|
requestAnimationFrame(a);
|
|
200
207
|
});
|
|
201
|
-
const
|
|
202
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize *
|
|
203
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize *
|
|
208
|
+
const _ = h(() => ({
|
|
209
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * m.value.width / 300,
|
|
210
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * m.value.width / 300
|
|
204
211
|
}));
|
|
205
212
|
function K(t) {
|
|
206
|
-
return
|
|
213
|
+
return Ee(
|
|
207
214
|
e.value.style.chart.circles.labels.value.formatter,
|
|
208
215
|
t.value,
|
|
209
|
-
|
|
216
|
+
re({
|
|
210
217
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
211
218
|
v: t.value,
|
|
212
219
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
@@ -214,33 +221,33 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
214
221
|
})
|
|
215
222
|
);
|
|
216
223
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
224
|
+
function Qe() {
|
|
225
|
+
return Ee(
|
|
219
226
|
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
220
227
|
r.value.value,
|
|
221
|
-
|
|
228
|
+
re({
|
|
222
229
|
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
223
230
|
v: r.value.value,
|
|
224
231
|
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
225
|
-
r: e.value.style.chart.circles.zoom.label.rounding
|
|
232
|
+
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
226
233
|
})
|
|
227
234
|
);
|
|
228
235
|
}
|
|
229
|
-
function
|
|
236
|
+
function Ce(t) {
|
|
230
237
|
if (!t)
|
|
231
238
|
return 0;
|
|
232
239
|
const a = t.radius / K(t).length * (K(t).length === 1 ? 1 : 2);
|
|
233
240
|
return Math.min(t.radius / 2.5, a);
|
|
234
241
|
}
|
|
235
|
-
const
|
|
236
|
-
function
|
|
237
|
-
|
|
242
|
+
const A = f(!1);
|
|
243
|
+
function et(t) {
|
|
244
|
+
A.value = t, ce.value += 1;
|
|
238
245
|
}
|
|
239
|
-
const
|
|
246
|
+
const U = f(!1);
|
|
240
247
|
function Q() {
|
|
241
|
-
|
|
248
|
+
U.value = !U.value;
|
|
242
249
|
}
|
|
243
|
-
const
|
|
250
|
+
const V = h(() => {
|
|
244
251
|
const t = Z.value.map((l) => ({
|
|
245
252
|
name: l.name,
|
|
246
253
|
value: l.value,
|
|
@@ -248,22 +255,22 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
248
255
|
})).toSorted((l, n) => n.value - l.value), a = t.map((l) => l.value);
|
|
249
256
|
return { head: t, body: a };
|
|
250
257
|
});
|
|
251
|
-
function
|
|
252
|
-
|
|
253
|
-
const t =
|
|
258
|
+
function ze() {
|
|
259
|
+
ct(() => {
|
|
260
|
+
const t = V.value.head.map((n, v) => [[
|
|
254
261
|
n.name
|
|
255
|
-
], [
|
|
256
|
-
|
|
262
|
+
], [V.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 = kt(a);
|
|
263
|
+
xt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
257
264
|
});
|
|
258
265
|
}
|
|
259
|
-
const
|
|
266
|
+
const B = h(() => {
|
|
260
267
|
const t = [
|
|
261
268
|
e.value.table.columnNames.datapoint,
|
|
262
269
|
e.value.table.columnNames.value
|
|
263
|
-
], a =
|
|
264
|
-
const w =
|
|
270
|
+
], a = V.value.head.map((v, x) => {
|
|
271
|
+
const w = re({
|
|
265
272
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
266
|
-
v:
|
|
273
|
+
v: V.value.body[x],
|
|
267
274
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
268
275
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
269
276
|
});
|
|
@@ -297,51 +304,51 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
297
304
|
config: l
|
|
298
305
|
};
|
|
299
306
|
});
|
|
300
|
-
function
|
|
301
|
-
|
|
307
|
+
function $e() {
|
|
308
|
+
F.value.showTable = !F.value.showTable;
|
|
302
309
|
}
|
|
303
|
-
function
|
|
310
|
+
function tt() {
|
|
304
311
|
return Z.value;
|
|
305
312
|
}
|
|
306
313
|
return Le({
|
|
307
|
-
getData:
|
|
308
|
-
generateCsv:
|
|
314
|
+
getData: tt,
|
|
315
|
+
generateCsv: ze,
|
|
309
316
|
generatePdf: pe,
|
|
310
317
|
generateImage: me,
|
|
311
|
-
toggleTable:
|
|
318
|
+
toggleTable: $e,
|
|
312
319
|
toggleAnnotator: Q
|
|
313
320
|
}), (t, a) => (s(), i("div", {
|
|
314
321
|
id: `vue-ui-circle-pack_${I.value}`,
|
|
315
|
-
class:
|
|
322
|
+
class: Me(`vue-ui-circle-pack ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
316
323
|
ref_key: "circlePackChart",
|
|
317
324
|
ref: W,
|
|
318
|
-
style:
|
|
325
|
+
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
319
326
|
onMouseenter: a[2] || (a[2] = () => c(ve)(!0)),
|
|
320
327
|
onMouseleave: a[3] || (a[3] = () => c(ve)(!1))
|
|
321
328
|
}, [
|
|
322
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
329
|
+
e.value.userOptions.buttons.annotator ? (s(), S($t, {
|
|
323
330
|
key: 0,
|
|
324
331
|
parent: W.value,
|
|
325
332
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
326
333
|
color: e.value.style.chart.color,
|
|
327
|
-
active:
|
|
334
|
+
active: U.value,
|
|
328
335
|
onClose: Q
|
|
329
336
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
330
|
-
|
|
331
|
-
|
|
337
|
+
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
338
|
+
Xe.value ? (s(), i("div", {
|
|
332
339
|
key: 1,
|
|
333
340
|
ref_key: "noTitle",
|
|
334
|
-
ref:
|
|
341
|
+
ref: Be,
|
|
335
342
|
class: "vue-data-ui-no-title-space",
|
|
336
343
|
style: "height:36px; width: 100%;background:transparent"
|
|
337
344
|
}, null, 512)) : y("", !0),
|
|
338
345
|
e.value.style.chart.title.text ? (s(), i("div", {
|
|
339
346
|
key: 2,
|
|
340
347
|
ref_key: "chartTitle",
|
|
341
|
-
ref:
|
|
348
|
+
ref: Ve,
|
|
342
349
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
343
350
|
}, [
|
|
344
|
-
(s(),
|
|
351
|
+
(s(), S(zt, {
|
|
345
352
|
key: `title_${ue.value}`,
|
|
346
353
|
config: {
|
|
347
354
|
title: {
|
|
@@ -355,7 +362,7 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
355
362
|
}
|
|
356
363
|
}, null, 8, ["config"]))
|
|
357
364
|
], 512)) : y("", !0),
|
|
358
|
-
e.value.userOptions.show &&
|
|
365
|
+
e.value.userOptions.show && G.value && (c(de) || c(j)) ? (s(), S(Ct, {
|
|
359
366
|
ref: "details",
|
|
360
367
|
key: `user_option_${ce.value}`,
|
|
361
368
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -370,87 +377,87 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
370
377
|
hasXls: e.value.userOptions.buttons.csv,
|
|
371
378
|
hasTable: e.value.userOptions.buttons.table,
|
|
372
379
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
373
|
-
isFullscreen:
|
|
380
|
+
isFullscreen: A.value,
|
|
374
381
|
chartElement: W.value,
|
|
375
382
|
position: e.value.userOptions.position,
|
|
376
383
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
377
384
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
378
|
-
isAnnotation:
|
|
379
|
-
onToggleFullscreen:
|
|
385
|
+
isAnnotation: U.value,
|
|
386
|
+
onToggleFullscreen: et,
|
|
380
387
|
onGeneratePdf: c(pe),
|
|
381
|
-
onGenerateCsv:
|
|
388
|
+
onGenerateCsv: ze,
|
|
382
389
|
onGenerateImage: c(me),
|
|
383
|
-
onToggleTable:
|
|
390
|
+
onToggleTable: $e,
|
|
384
391
|
onToggleAnnotator: Q,
|
|
385
|
-
style:
|
|
392
|
+
style: Y({
|
|
386
393
|
visibility: c(de) ? c(j) ? "visible" : "hidden" : "visible"
|
|
387
394
|
})
|
|
388
|
-
},
|
|
395
|
+
}, nt({ _: 2 }, [
|
|
389
396
|
t.$slots.optionPdf ? {
|
|
390
397
|
name: "optionPdf",
|
|
391
398
|
fn: C(() => [
|
|
392
|
-
|
|
399
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
393
400
|
]),
|
|
394
401
|
key: "0"
|
|
395
402
|
} : void 0,
|
|
396
403
|
t.$slots.optionCsv ? {
|
|
397
404
|
name: "optionCsv",
|
|
398
405
|
fn: C(() => [
|
|
399
|
-
|
|
406
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
400
407
|
]),
|
|
401
408
|
key: "1"
|
|
402
409
|
} : void 0,
|
|
403
410
|
t.$slots.optionImg ? {
|
|
404
411
|
name: "optionImg",
|
|
405
412
|
fn: C(() => [
|
|
406
|
-
|
|
413
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
407
414
|
]),
|
|
408
415
|
key: "2"
|
|
409
416
|
} : void 0,
|
|
410
417
|
t.$slots.optionTable ? {
|
|
411
418
|
name: "optionTable",
|
|
412
419
|
fn: C(() => [
|
|
413
|
-
|
|
420
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
414
421
|
]),
|
|
415
422
|
key: "3"
|
|
416
423
|
} : void 0,
|
|
417
424
|
t.$slots.optionFullscreen ? {
|
|
418
425
|
name: "optionFullscreen",
|
|
419
426
|
fn: C(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
420
|
-
|
|
427
|
+
p(t.$slots, "optionFullscreen", O(D({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
421
428
|
]),
|
|
422
429
|
key: "4"
|
|
423
430
|
} : void 0,
|
|
424
431
|
t.$slots.optionAnnotator ? {
|
|
425
432
|
name: "optionAnnotator",
|
|
426
433
|
fn: C(({ toggleAnnotator: l, isAnnotator: n }) => [
|
|
427
|
-
|
|
434
|
+
p(t.$slots, "optionAnnotator", O(D({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
|
|
428
435
|
]),
|
|
429
436
|
key: "5"
|
|
430
437
|
} : void 0
|
|
431
438
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
432
|
-
|
|
439
|
+
G.value ? (s(), i("svg", {
|
|
433
440
|
key: 4,
|
|
434
|
-
xmlns: c(
|
|
435
|
-
viewBox: `${
|
|
441
|
+
xmlns: c(mt),
|
|
442
|
+
viewBox: `${m.value.x} ${m.value.y} ${m.value.width} ${m.value.height}`,
|
|
436
443
|
width: "100%",
|
|
437
|
-
class:
|
|
438
|
-
style:
|
|
444
|
+
class: Me({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
445
|
+
style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};`)
|
|
439
446
|
}, [
|
|
440
|
-
rt(
|
|
447
|
+
rt(Pt),
|
|
441
448
|
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
442
449
|
key: 0,
|
|
443
|
-
x:
|
|
444
|
-
y:
|
|
445
|
-
width:
|
|
446
|
-
height:
|
|
450
|
+
x: m.value.x,
|
|
451
|
+
y: m.value.y,
|
|
452
|
+
width: m.value.width,
|
|
453
|
+
height: m.value.height,
|
|
447
454
|
style: {
|
|
448
455
|
pointerEvents: "none"
|
|
449
456
|
}
|
|
450
457
|
}, [
|
|
451
|
-
|
|
452
|
-
], 8,
|
|
453
|
-
(s(!0), i(
|
|
458
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
459
|
+
], 8, _t)) : y("", !0),
|
|
460
|
+
(s(!0), i(T, null, se(b.value, (l) => (s(), i(T, null, [
|
|
454
461
|
k("defs", null, [
|
|
455
462
|
k("radialGradient", {
|
|
456
463
|
id: l.id,
|
|
@@ -458,21 +465,21 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
458
465
|
}, [
|
|
459
466
|
k("stop", {
|
|
460
467
|
offset: "10%",
|
|
461
|
-
"stop-color": c(
|
|
462
|
-
}, null, 8,
|
|
468
|
+
"stop-color": c(bt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
469
|
+
}, null, 8, Et),
|
|
463
470
|
k("stop", {
|
|
464
471
|
offset: "90%",
|
|
465
|
-
"stop-color": c(
|
|
466
|
-
}, null, 8,
|
|
472
|
+
"stop-color": c(Ae)(l.color, 0.1)
|
|
473
|
+
}, null, 8, Dt),
|
|
467
474
|
k("stop", {
|
|
468
475
|
offset: "100%",
|
|
469
476
|
"stop-color": l.color
|
|
470
|
-
}, null, 8,
|
|
471
|
-
], 8,
|
|
477
|
+
}, null, 8, Rt)
|
|
478
|
+
], 8, At)
|
|
472
479
|
]),
|
|
473
|
-
t.$slots.pattern ? (s(), i("g",
|
|
480
|
+
t.$slots.pattern ? (s(), i("g", Lt, [
|
|
474
481
|
k("defs", null, [
|
|
475
|
-
|
|
482
|
+
p(t.$slots, "pattern", O(D({ ...l, patternId: `pattern_${I.value}_${l.id}` })), void 0, !0)
|
|
476
483
|
])
|
|
477
484
|
])) : y("", !0),
|
|
478
485
|
k("rect", {
|
|
@@ -484,9 +491,10 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
484
491
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
485
492
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
486
493
|
rx: l.radius,
|
|
487
|
-
onMouseenter: () =>
|
|
488
|
-
onMouseout: a[0] || (a[0] = (n) => r.value = null)
|
|
489
|
-
|
|
494
|
+
onMouseenter: () => Je(l),
|
|
495
|
+
onMouseout: a[0] || (a[0] = (n) => r.value = null),
|
|
496
|
+
onClick: (n) => Ge("selectDatapoint", l)
|
|
497
|
+
}, null, 40, Gt),
|
|
490
498
|
t.$slots.pattern ? (s(), i("rect", {
|
|
491
499
|
key: 1,
|
|
492
500
|
x: l.x - l.radius,
|
|
@@ -500,87 +508,89 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
500
508
|
style: {
|
|
501
509
|
pointerEvents: "none"
|
|
502
510
|
}
|
|
503
|
-
}, null, 8,
|
|
504
|
-
e.value.style.chart.circles.labels.name.
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
511
|
+
}, null, 8, Ut)) : y("", !0),
|
|
512
|
+
t.$slots["data-label"] ? p(t.$slots, "data-label", O(ut({ key: 2 }, { ...l, createTSpans: c(gt), 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(L)(l.color) })), void 0, !0) : (s(), i(T, { key: 3 }, [
|
|
513
|
+
e.value.style.chart.circles.labels.name.show && l.name ? (s(), i("text", {
|
|
514
|
+
key: 0,
|
|
515
|
+
style: {
|
|
516
|
+
pointerEvents: "none",
|
|
517
|
+
transition: "opacity 0.2s ease-in-out"
|
|
518
|
+
},
|
|
519
|
+
opacity: r.value ? 0.2 : 1,
|
|
520
|
+
x: l.x,
|
|
521
|
+
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.name.offsetY) - l.radius / 6,
|
|
522
|
+
"font-size": l.radius / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
523
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : c(L)(l.color),
|
|
524
|
+
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
525
|
+
"text-anchor": "middle"
|
|
526
|
+
}, R(l.name), 9, Vt)) : y("", !0),
|
|
527
|
+
e.value.style.chart.circles.labels.value.show ? (s(), i("text", {
|
|
528
|
+
key: 1,
|
|
529
|
+
style: {
|
|
530
|
+
pointerEvents: "none",
|
|
531
|
+
transition: "opacity 0.2s ease-in-out"
|
|
532
|
+
},
|
|
533
|
+
opacity: r.value ? 0.2 : 1,
|
|
534
|
+
x: l.x,
|
|
535
|
+
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.value.offsetY) + l.radius / 3,
|
|
536
|
+
"font-size": Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
537
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : c(L)(l.color),
|
|
538
|
+
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
539
|
+
"text-anchor": "middle"
|
|
540
|
+
}, R(K(l)), 9, Bt)) : y("", !0)
|
|
541
|
+
], 64)),
|
|
542
|
+
(s(!0), i(T, null, se(Ze.value, (n) => (s(), i(T, null, [
|
|
543
|
+
(s(!0), i(T, null, se(n, (v) => (s(), i("path", {
|
|
534
544
|
d: v.arcSlice,
|
|
535
545
|
fill: v.color,
|
|
536
546
|
stroke: "black"
|
|
537
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, Ht))), 256))
|
|
538
548
|
], 64))), 256))
|
|
539
549
|
], 64))), 256)),
|
|
540
|
-
r.value && e.value.style.chart.circles.zoom.show ? (s(), i(
|
|
550
|
+
r.value && e.value.style.chart.circles.zoom.show ? (s(), i(T, { key: 1 }, [
|
|
541
551
|
k("circle", {
|
|
542
|
-
style:
|
|
552
|
+
style: Y(Ke.value),
|
|
543
553
|
cx: r.value.x,
|
|
544
554
|
cy: r.value.y,
|
|
545
|
-
r:
|
|
555
|
+
r: N.value,
|
|
546
556
|
opacity: $.value,
|
|
547
557
|
stroke: e.value.style.chart.circles.stroke,
|
|
548
558
|
fill: e.value.style.chart.circles.gradient.show ? `url(#${r.value.id})` : r.value.color
|
|
549
|
-
}, null, 12,
|
|
550
|
-
t.$slots["zoom-label"] ? (s(), i("g",
|
|
551
|
-
|
|
552
|
-
])) : (s(), i("g",
|
|
559
|
+
}, null, 12, Xt),
|
|
560
|
+
t.$slots["zoom-label"] ? (s(), i("g", Yt, [
|
|
561
|
+
p(t.$slots, "zoom-label", O(D({ ...r.value, zoomOpacity: $.value, currentRadius: N.value, fontSize: _.value })), void 0, !0)
|
|
562
|
+
])) : (s(), i("g", Wt, [
|
|
553
563
|
k("text", {
|
|
554
564
|
style: {
|
|
555
565
|
pointerEvents: "none"
|
|
556
566
|
},
|
|
557
567
|
opacity: $.value,
|
|
558
568
|
x: r.value.x,
|
|
559
|
-
y: r.value.y + e.value.style.chart.circles.zoom.label.name.offsetY -
|
|
569
|
+
y: r.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - _.value.name / 4,
|
|
560
570
|
"text-anchor": "middle",
|
|
561
|
-
"font-size":
|
|
562
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(
|
|
571
|
+
"font-size": _.value.name,
|
|
572
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(L)(r.value.color),
|
|
563
573
|
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
564
|
-
},
|
|
574
|
+
}, R(r.value.name), 9, jt),
|
|
565
575
|
k("text", {
|
|
566
576
|
style: {
|
|
567
577
|
pointerEvents: "none"
|
|
568
578
|
},
|
|
569
579
|
opacity: $.value,
|
|
570
580
|
x: r.value.x,
|
|
571
|
-
y: r.value.y +
|
|
581
|
+
y: r.value.y + _.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
572
582
|
"text-anchor": "middle",
|
|
573
|
-
"font-size":
|
|
574
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(
|
|
583
|
+
"font-size": _.value.value,
|
|
584
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(L)(r.value.color),
|
|
575
585
|
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
576
|
-
},
|
|
586
|
+
}, R(Qe()), 9, qt)
|
|
577
587
|
]))
|
|
578
588
|
], 64)) : y("", !0),
|
|
579
|
-
|
|
580
|
-
svg: { ...
|
|
589
|
+
p(t.$slots, "svg", {
|
|
590
|
+
svg: { ...m.value }
|
|
581
591
|
}, void 0, !0)
|
|
582
|
-
], 14,
|
|
583
|
-
|
|
592
|
+
], 14, Nt)) : y("", !0),
|
|
593
|
+
G.value ? y("", !0) : (s(), S(It, {
|
|
584
594
|
key: 5,
|
|
585
595
|
config: {
|
|
586
596
|
type: "circlePack",
|
|
@@ -589,22 +599,22 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
589
599
|
}
|
|
590
600
|
}
|
|
591
601
|
})),
|
|
592
|
-
t.$slots.watermark ? (s(), i("div",
|
|
593
|
-
|
|
602
|
+
t.$slots.watermark ? (s(), i("div", Zt, [
|
|
603
|
+
p(t.$slots, "watermark", O(D({ isPrinting: c(fe) || c(ye) })), void 0, !0)
|
|
594
604
|
])) : y("", !0),
|
|
595
605
|
t.$slots.source ? (s(), i("div", {
|
|
596
606
|
key: 7,
|
|
597
607
|
ref_key: "source",
|
|
598
|
-
ref:
|
|
608
|
+
ref: He,
|
|
599
609
|
dir: "auto"
|
|
600
610
|
}, [
|
|
601
|
-
|
|
611
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
602
612
|
], 512)) : y("", !0),
|
|
603
|
-
|
|
613
|
+
G.value ? (s(), S(St, {
|
|
604
614
|
key: 8,
|
|
605
615
|
hideDetails: "",
|
|
606
616
|
config: {
|
|
607
|
-
open:
|
|
617
|
+
open: F.value.showTable,
|
|
608
618
|
maxHeight: 1e4,
|
|
609
619
|
body: {
|
|
610
620
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -617,32 +627,32 @@ const It = ["id"], St = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
617
627
|
}
|
|
618
628
|
}, {
|
|
619
629
|
content: C(() => [
|
|
620
|
-
(s(),
|
|
630
|
+
(s(), S(Ot, {
|
|
621
631
|
key: `table_${ie.value}`,
|
|
622
|
-
colNames:
|
|
623
|
-
head:
|
|
624
|
-
body:
|
|
625
|
-
config:
|
|
632
|
+
colNames: B.value.colNames,
|
|
633
|
+
head: B.value.head,
|
|
634
|
+
body: B.value.body,
|
|
635
|
+
config: B.value.config,
|
|
626
636
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
|
-
onClose: a[1] || (a[1] = (l) =>
|
|
637
|
+
onClose: a[1] || (a[1] = (l) => F.value.showTable = !1)
|
|
628
638
|
}, {
|
|
629
639
|
th: C(({ th: l }) => [
|
|
630
640
|
k("div", {
|
|
631
641
|
innerHTML: l,
|
|
632
642
|
style: { display: "flex", "align-items": "center" }
|
|
633
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, Jt)
|
|
634
644
|
]),
|
|
635
645
|
td: C(({ td: l }) => [
|
|
636
|
-
|
|
646
|
+
it(R(l.name || l), 1)
|
|
637
647
|
]),
|
|
638
648
|
_: 1
|
|
639
649
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
640
650
|
]),
|
|
641
651
|
_: 1
|
|
642
652
|
}, 8, ["config"])) : y("", !0)
|
|
643
|
-
], 46,
|
|
653
|
+
], 46, Mt));
|
|
644
654
|
}
|
|
645
|
-
},
|
|
655
|
+
}, vl = /* @__PURE__ */ Ft(Kt, [["__scopeId", "data-v-ec56e8f7"]]);
|
|
646
656
|
export {
|
|
647
|
-
|
|
657
|
+
vl as default
|
|
648
658
|
};
|