vue-data-ui 2.6.22 → 2.6.24
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-Cf2BhlTz.js → Arrow-CF3NjnkA.js} +1 -1
- package/dist/{Arrow-Dkww_cPT.cjs → Arrow-wDaSVoPf.cjs} +1 -1
- package/dist/{BaseIcon-sQ0Yl3WG.js → BaseIcon-BtcvUPWF.js} +1 -1
- package/dist/{BaseIcon-CMg_B1n7.cjs → BaseIcon-C4WRCMmb.cjs} +1 -1
- package/dist/{DataTable-2Igu4lk9.js → DataTable-ByaBWEYb.js} +2 -2
- package/dist/{DataTable-CdAOPHJa.cjs → DataTable-CdCwimMg.cjs} +1 -1
- package/dist/{Legend-CWcXXd69.cjs → Legend-BSYRK6Q_.cjs} +1 -1
- package/dist/{Legend-BSuEi9g7.js → Legend-C-2SfIPW.js} +2 -2
- package/dist/{PackageVersion-D9dPTMdO.cjs → PackageVersion-BOKy76ww.cjs} +1 -1
- package/dist/{PackageVersion-V-_CbVlt.js → PackageVersion-BiK7Dx4X.js} +1 -1
- package/dist/{PenAndPaper-Cpwa77pt.cjs → PenAndPaper-DOWIdZvQ.cjs} +1 -1
- package/dist/{PenAndPaper-Dq-ECAue.js → PenAndPaper-f3zHe5BC.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-D0PiYPFe.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DHVJRD8Q.js} +3 -3
- package/dist/{Shape-BPvU0s7x.js → Shape-BDGST5GY.js} +1 -1
- package/dist/{Shape-Ca9CTckg.cjs → Shape-coApcye5.cjs} +1 -1
- package/dist/{Slicer-DXEJzT3U.cjs → Slicer-BXJXxW-u.cjs} +1 -1
- package/dist/{Slicer-CATr5IB9.js → Slicer-DH7c09Nd.js} +2 -2
- package/dist/{Title-CUbvh4nY.js → Title-BVFJm0A0.js} +1 -1
- package/dist/{Title-Vp8RX2Nj.cjs → Title-BnX-oH1C.cjs} +1 -1
- package/dist/{Tooltip-CYcP5JH9.js → Tooltip-BGERkvjK.js} +1 -1
- package/dist/{Tooltip-D6K610_p.cjs → Tooltip-CeVBkaaR.cjs} +1 -1
- package/dist/{index-BVM1Hjat.js → index-DemRsUvG.js} +1 -1
- package/dist/{index-BCAY_TBF.cjs → index-inkOR4zq.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Ces_ZEmq.cjs → useNestedProp-C8eIYJIz.cjs} +1 -1
- package/dist/{useNestedProp-B7524T_I.js → useNestedProp-DvO0Mp94.js} +1 -1
- package/dist/{usePrinter-CMRlY9rc.cjs → usePrinter-D6taMMgW.cjs} +1 -1
- package/dist/{usePrinter-BuEZ1Mqw.js → usePrinter-DMfMqFyO.js} +1 -1
- package/dist/{vue-data-ui-CMHydJ3z.js → vue-data-ui-BEuKSdnW.js} +61 -61
- package/dist/{vue-data-ui-Cl21-Qn-.cjs → vue-data-ui-BtJq8Z8S.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-BB9IHMFV.cjs → vue-ui-3d-bar-D3mGE27n.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CiVt8Lvp.js → vue-ui-3d-bar-dKnpTu5u.js} +9 -9
- package/dist/{vue-ui-accordion-Zeu2qcSI.js → vue-ui-accordion-C0kWmaMq.js} +3 -3
- package/dist/{vue-ui-accordion-D86VhQnK.cjs → vue-ui-accordion-D4bxWDy8.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CaZSG2fN.js → vue-ui-age-pyramid-DFUCuJHW.js} +10 -10
- package/dist/{vue-ui-age-pyramid-t5v8gG7E.cjs → vue-ui-age-pyramid-DTBDqmNa.cjs} +1 -1
- package/dist/{vue-ui-annotator-DqMnXHaK.js → vue-ui-annotator-BrATC8rJ.js} +1 -1
- package/dist/{vue-ui-annotator-DPQRwLra.cjs → vue-ui-annotator-DoVhDHt5.cjs} +1 -1
- package/dist/{vue-ui-bullet-oN99bgSq.js → vue-ui-bullet-B3BiTbbB.js} +8 -8
- package/dist/{vue-ui-bullet-DfJ9YR2-.cjs → vue-ui-bullet-bGgUZsv1.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BIznNizW.js → vue-ui-candlestick-CRPzO3jV.js} +11 -11
- package/dist/{vue-ui-candlestick-CbvO_6uK.cjs → vue-ui-candlestick-DKN07ffF.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DKQSfGt-.cjs → vue-ui-carousel-table-Czyd-yQT.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DjWEv7sx.js → vue-ui-carousel-table-yJ1cZ2SB.js} +4 -4
- package/dist/{vue-ui-chestnut-DJsFMi3a.cjs → vue-ui-chestnut-Bj4tpH0Z.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DtC70R0X.js → vue-ui-chestnut-DRsZmKvi.js} +8 -8
- package/dist/vue-ui-circle-pack-BBvHAYcK.cjs +1 -0
- package/dist/vue-ui-circle-pack-XwKYgJdF.js +658 -0
- package/dist/{vue-ui-cursor-Bh3F6uU7.cjs → vue-ui-cursor-5bSGnkYd.cjs} +1 -1
- package/dist/{vue-ui-cursor-BbrupWFh.js → vue-ui-cursor-iTemcqMh.js} +2 -2
- package/dist/{vue-ui-dashboard-he9hja0v.js → vue-ui-dashboard-By4J6P3X.js} +2 -2
- package/dist/{vue-ui-dashboard-CR09TdSL.cjs → vue-ui-dashboard-DcnZVhVH.cjs} +1 -1
- package/dist/{vue-ui-digits-eow8_8IF.js → vue-ui-digits-CkiC_YMf.js} +2 -2
- package/dist/{vue-ui-digits-CrQuYkCF.cjs → vue-ui-digits-DG65Tfkm.cjs} +1 -1
- package/dist/{vue-ui-donut-C2Ab0qsE.js → vue-ui-donut-BXIjFGJB.js} +12 -12
- package/dist/{vue-ui-donut-evolution-C4ZSty9k.js → vue-ui-donut-evolution-Bv2oM81w.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CwPKiglD.cjs → vue-ui-donut-evolution-kg8wqJDB.cjs} +1 -1
- package/dist/{vue-ui-donut-Dh75AMUR.cjs → vue-ui-donut-mCho6qBB.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CafiAGaw.cjs → vue-ui-dumbbell-CBN-X80u.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BN8fJSvG.js → vue-ui-dumbbell-o4QpOynw.js} +10 -10
- package/dist/{vue-ui-flow-DKpHc3FI.js → vue-ui-flow-CncXcy0d.js} +9 -9
- package/dist/{vue-ui-flow-BWm4K97n.cjs → vue-ui-flow-DR5034H5.cjs} +1 -1
- package/dist/{vue-ui-funnel-DkmKmnNf.js → vue-ui-funnel-B5w0-4vu.js} +9 -9
- package/dist/{vue-ui-funnel-C25z-XuU.cjs → vue-ui-funnel-D_S6rQ9k.cjs} +1 -1
- package/dist/{vue-ui-galaxy-wgZKEqln.cjs → vue-ui-galaxy-DS3XMtZa.cjs} +1 -1
- package/dist/{vue-ui-galaxy-oV4efmeX.js → vue-ui-galaxy-DXE6dFTu.js} +11 -11
- package/dist/{vue-ui-gauge-CzA2PhpW.cjs → vue-ui-gauge-V2uXgW7I.cjs} +1 -1
- package/dist/{vue-ui-gauge-DEKM0_3Q.js → vue-ui-gauge-VkQfLBcb.js} +7 -7
- package/dist/{vue-ui-gizmo-UO3Zkeme.js → vue-ui-gizmo-Cj9PY8rs.js} +3 -3
- package/dist/{vue-ui-gizmo-DlNuWEmn.cjs → vue-ui-gizmo-bCgG-r_M.cjs} +1 -1
- package/dist/{vue-ui-heatmap-E_CcRS7D.js → vue-ui-heatmap-36GeFTus.js} +10 -10
- package/dist/{vue-ui-heatmap-dnvzPPoV.cjs → vue-ui-heatmap-C7gBu19g.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DRbZ8X1X.js → vue-ui-history-plot-B8wCm4rL.js} +11 -11
- package/dist/{vue-ui-history-plot-EWyGCjPe.cjs → vue-ui-history-plot-Ba2F3ma5.cjs} +1 -1
- package/dist/{vue-ui-kpi-DWJbsdvG.cjs → vue-ui-kpi-C7blSAMJ.cjs} +1 -1
- package/dist/{vue-ui-kpi-BZxftzEv.js → vue-ui-kpi-zSGrUH-l.js} +3 -3
- package/dist/{vue-ui-mini-loader-BvWPS_gQ.cjs → vue-ui-mini-loader-3cvYovRy.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DsCVKpe9.js → vue-ui-mini-loader-BD7Ie55D.js} +2 -2
- package/dist/{vue-ui-molecule-BnYkqFk0.js → vue-ui-molecule-CNAG2Nyi.js} +10 -10
- package/dist/{vue-ui-molecule-BdANdT7O.cjs → vue-ui-molecule-DTVrFf15.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cgn-5GqE.js → vue-ui-mood-radar-CuVymXcE.js} +11 -11
- package/dist/{vue-ui-mood-radar-D_uLYLXE.cjs → vue-ui-mood-radar-DFHVK8CB.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BzOUk2Kz.cjs → vue-ui-nested-donuts-BFXA48jU.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BP9UnBkw.js → vue-ui-nested-donuts-BRDod5S4.js} +11 -11
- package/dist/{vue-ui-onion-vu27Cwcx.js → vue-ui-onion-BeULK855.js} +11 -11
- package/dist/{vue-ui-onion-DGw3Ce3f.cjs → vue-ui-onion-jLEkENH3.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dy3yQFd1.js → vue-ui-parallel-coordinate-plot-BQK1LFap.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-Bo-yxxDH.cjs → vue-ui-parallel-coordinate-plot-vH5KDV5C.cjs} +1 -1
- package/dist/{vue-ui-quadrant-B9GkwB5l.cjs → vue-ui-quadrant-BUJ_2TfY.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DgQqkCxk.js → vue-ui-quadrant-yN--29xI.js} +12 -12
- package/dist/{vue-ui-quick-chart-DcpVDq8t.js → vue-ui-quick-chart-B8s0HfLG.js} +9 -9
- package/dist/{vue-ui-quick-chart-CMQFeKWK.cjs → vue-ui-quick-chart-Dy5e9EbI.cjs} +1 -1
- package/dist/{vue-ui-radar-cwhwGVar.js → vue-ui-radar-DNVE3P2u.js} +12 -12
- package/dist/{vue-ui-radar-CnqMJrEU.cjs → vue-ui-radar-DqWSc0Ri.cjs} +1 -1
- package/dist/{vue-ui-rating-Bub3mYba.cjs → vue-ui-rating-BzoHa_Xm.cjs} +1 -1
- package/dist/{vue-ui-rating-BmtemUqF.js → vue-ui-rating-pEtSN7qF.js} +2 -2
- package/dist/{vue-ui-relation-circle-D0py_PRH.cjs → vue-ui-relation-circle-CkCpcFUh.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BerdR_4-.js → vue-ui-relation-circle-Db5QIgyX.js} +7 -7
- package/dist/{vue-ui-rings-BSm_KC-r.js → vue-ui-rings-CCYGbn-w.js} +12 -12
- package/dist/{vue-ui-rings-zQ-4JnNS.cjs → vue-ui-rings-Dcx1RI3v.cjs} +1 -1
- package/dist/{vue-ui-scatter-D0dIO0lS.js → vue-ui-scatter-DJWbwJc-.js} +12 -12
- package/dist/{vue-ui-scatter-DXAm7w2U.cjs → vue-ui-scatter-DhPfwLTo.cjs} +1 -1
- package/dist/{vue-ui-screenshot-_KsufqYT.js → vue-ui-screenshot-Bbkc82hY.js} +1 -1
- package/dist/{vue-ui-screenshot-BdJzHzn9.cjs → vue-ui-screenshot-jKerg5g_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CjC_RR5C.js → vue-ui-skeleton-5TjpkMTD.js} +3 -3
- package/dist/{vue-ui-skeleton-CNtHe3B_.cjs → vue-ui-skeleton-pv3sv7Lv.cjs} +1 -1
- package/dist/{vue-ui-smiley-CdYhD3n7.js → vue-ui-smiley-Cmr-yvoN.js} +2 -2
- package/dist/{vue-ui-smiley-C-dKXMYz.cjs → vue-ui-smiley-DwyVZnbf.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZSffEbvM.cjs → vue-ui-spark-trend-BfpC69Rf.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DT0q7zha.js → vue-ui-spark-trend-CdR_LNbz.js} +5 -5
- package/dist/{vue-ui-sparkbar-hm3wy78R.js → vue-ui-sparkbar-CCHf1UWo.js} +4 -4
- package/dist/{vue-ui-sparkbar-Ca8RoM26.cjs → vue-ui-sparkbar-xD5Yd7Z-.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dsy3BtE1.js → vue-ui-sparkgauge-BhdOefUS.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Wzb-9Nec.cjs → vue-ui-sparkgauge-LCYwqBpU.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CcyyqdgC.cjs → vue-ui-sparkhistogram-BYnq8406.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DIccfqcP.js → vue-ui-sparkhistogram-nkPBrovr.js} +5 -5
- package/dist/{vue-ui-sparkline-edCpjS99.js → vue-ui-sparkline-B85oZ43L.js} +4 -4
- package/dist/{vue-ui-sparkline-CJfM9R-P.cjs → vue-ui-sparkline-DXP4hIdC.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-UzWOXV8T.js → vue-ui-sparkstackbar-V7INAzpf.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BCkwH7OH.cjs → vue-ui-sparkstackbar-ilI8fpIz.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DtxiLdkG.js → vue-ui-stackbar-BtKP5hCO.js} +13 -13
- package/dist/{vue-ui-stackbar-DLw1lhqT.cjs → vue-ui-stackbar-DaAsN81z.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DZBPceJC.js → vue-ui-strip-plot-D20CENu1.js} +11 -11
- package/dist/{vue-ui-strip-plot-Bot6lWVZ.cjs → vue-ui-strip-plot-DRF_yjql.cjs} +1 -1
- package/dist/{vue-ui-table-DR-vUv2U.js → vue-ui-table-BXFPiplW.js} +1 -1
- package/dist/{vue-ui-table-CyT0sQtg.cjs → vue-ui-table-DZ4sqrq2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D4JBAEBg.js → vue-ui-table-heatmap-BzRvSr0i.js} +4 -4
- package/dist/{vue-ui-table-heatmap-IsfxseMB.cjs → vue-ui-table-heatmap-TvLepJ62.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Do9vWT7v.cjs → vue-ui-table-sparkline-BT-AdDNH.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ClYyMljO.js → vue-ui-table-sparkline-BUXOBLm6.js} +5 -5
- package/dist/{vue-ui-thermometer-CkN0NXuR.cjs → vue-ui-thermometer-BQq7s9zK.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CY0Gi2uj.js → vue-ui-thermometer-ClhSAGOe.js} +7 -7
- package/dist/{vue-ui-timer-Zx3zQyAq.cjs → vue-ui-timer-Brw77esz.cjs} +1 -1
- package/dist/{vue-ui-timer-t0fSn-_9.js → vue-ui-timer-C8bnmq5H.js} +5 -5
- package/dist/{vue-ui-tiremarks-0JbzmUh6.cjs → vue-ui-tiremarks-B3RRA7SW.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-5YPN_NoO.js → vue-ui-tiremarks-iQunddHD.js} +7 -7
- package/dist/{vue-ui-treemap-kwbjdy0P.js → vue-ui-treemap-DPrymyeh.js} +11 -11
- package/dist/{vue-ui-treemap-B4BUhmni.cjs → vue-ui-treemap-DqPXxUyM.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DRuH5f-B.js → vue-ui-vertical-bar-67sEQw3O.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CCNvuAMI.cjs → vue-ui-vertical-bar-DAIV8bL-.cjs} +1 -1
- package/dist/{vue-ui-waffle-CqVwTFrC.cjs → vue-ui-waffle-Bzb83CXy.cjs} +1 -1
- package/dist/{vue-ui-waffle-B9zlDgeL.js → vue-ui-waffle-DGUdtn0S.js} +12 -12
- package/dist/{vue-ui-wheel-CAS9hnki.js → vue-ui-wheel-BWgZoCqk.js} +7 -7
- package/dist/{vue-ui-wheel-CGWDNbH-.cjs → vue-ui-wheel-BvtzwkQ7.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BKRBPyWR.js → vue-ui-word-cloud-DztNBq0w.js} +10 -10
- package/dist/{vue-ui-word-cloud-CxbTioTG.cjs → vue-ui-word-cloud-U21NvaCz.cjs} +1 -1
- package/dist/{vue-ui-xy-D_OI_ry8.js → vue-ui-xy-CHyiFCbV.js} +14 -14
- package/dist/{vue-ui-xy-DRn-1RsC.cjs → vue-ui-xy-DB4EGI04.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DXDh8Vzd.js → vue-ui-xy-canvas-BXV5dpRc.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DrjjMaQM.cjs → vue-ui-xy-canvas-CyvhHbkZ.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-Bi3Usmkl.js +0 -648
- package/dist/vue-ui-circle-pack-KCMKYM9w.cjs +0 -1
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import { useCssVars as We, computed as w, ref as p, watch as $e, onMounted as Xe, watchEffect as Ye, createElementBlock as b, openBlock as f, unref as m, normalizeStyle as K, normalizeClass as Te, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ze, withCtx as z, normalizeProps as U, guardReactiveProps as B, createVNode as Je, Fragment as Q, renderList as Ke, createElementVNode as C, mergeProps as Pe, toDisplayString as j, createTextVNode as Qe, nextTick as Se } from "vue";
|
|
2
|
+
import { u as et, c as Ie, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Oe, f as ce, X as nt, l as rt, G as q, a7 as ut, q as it, r as ct, i as Fe } from "./index-DemRsUvG.js";
|
|
3
|
+
import { u as Ne } from "./useNestedProp-DvO0Mp94.js";
|
|
4
|
+
import { u as vt, U as dt } from "./usePrinter-DMfMqFyO.js";
|
|
5
|
+
import { _ as ht } from "./Title-BVFJm0A0.js";
|
|
6
|
+
import { P as ft } from "./PenAndPaper-f3zHe5BC.js";
|
|
7
|
+
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as mt } from "./PackageVersion-BiK7Dx4X.js";
|
|
9
|
+
import pt from "./vue-ui-accordion-C0kWmaMq.js";
|
|
10
|
+
import { D as bt } from "./DataTable-ByaBWEYb.js";
|
|
11
|
+
import gt from "./vue-ui-skeleton-5TjpkMTD.js";
|
|
12
|
+
import { u as kt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { t as xt, u as wt } from "./useResponsive-vZgZwV-S.js";
|
|
14
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function Me(r, c = 0) {
|
|
16
|
+
const h = r.reduce((a, { x: s, r: u }) => Math.min(a, s - u - c), 1 / 0), i = r.reduce((a, { x: s, r: u }) => Math.max(a, s + u + c), -1 / 0), v = r.reduce((a, { y: s, r: u }) => Math.min(a, s - u - c), 1 / 0), o = r.reduce((a, { y: s, r: u }) => Math.max(a, s + u + c), -1 / 0);
|
|
17
|
+
return [h, v, i - h, o - v];
|
|
18
|
+
}
|
|
19
|
+
function _t(r, c, h) {
|
|
20
|
+
const i = r._, v = r.next._, o = i.r + v.r, a = (i.x * v.r + v.x * i.r) / o, s = (i.y * v.r + v.y * i.r) / o;
|
|
21
|
+
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
22
|
+
}
|
|
23
|
+
function Ee(r, c, h) {
|
|
24
|
+
const i = _t, v = r.length;
|
|
25
|
+
if (!v) return r;
|
|
26
|
+
let o, a, s;
|
|
27
|
+
if (o = r[0], o.x = 0, o.y = 0, !(v > 1) || (a = r[1], o.x = -a.r, a.x = o.r, a.y = 0, !(v > 2))) return r;
|
|
28
|
+
Re(a, o, s = r[2]), o = new te(o), a = new te(a), s = new te(s), o.next = s.previous = a, a.next = o.previous = s, s.next = a.previous = o;
|
|
29
|
+
e: for (let u = 3; u < v; ++u) {
|
|
30
|
+
Re(o._, a._, s = r[u]), s = new te(s);
|
|
31
|
+
let g = a.next, $ = o.previous, E = a._.r, R = o._.r;
|
|
32
|
+
do
|
|
33
|
+
if (E <= R) {
|
|
34
|
+
if (Ae(g._, s._)) {
|
|
35
|
+
a = g, o.next = a, a.previous = o, --u;
|
|
36
|
+
continue e;
|
|
37
|
+
}
|
|
38
|
+
E += g._.r, g = g.next;
|
|
39
|
+
} else {
|
|
40
|
+
if (Ae($._, s._)) {
|
|
41
|
+
o = $, o.next = a, a.previous = o, --u;
|
|
42
|
+
continue e;
|
|
43
|
+
}
|
|
44
|
+
R += $._.r, $ = $.previous;
|
|
45
|
+
}
|
|
46
|
+
while (g !== $.next);
|
|
47
|
+
s.previous = o, s.next = a, o.next = a.previous = a = s;
|
|
48
|
+
let A = i(o, h, c), W;
|
|
49
|
+
for (; (s = s.next) !== a; )
|
|
50
|
+
(W = i(s, h, c)) < A && (o = s, A = W);
|
|
51
|
+
a = o.next;
|
|
52
|
+
}
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
function Re(r, c, h) {
|
|
56
|
+
const i = r.x - c.x, v = r.y - c.y, o = i * i + v * v;
|
|
57
|
+
if (o) {
|
|
58
|
+
const a = (c.r + h.r) ** 2, s = (r.r + h.r) ** 2;
|
|
59
|
+
if (a > s) {
|
|
60
|
+
const u = (o + s - a) / (2 * o), g = Math.sqrt(Math.max(0, s / o - u * u));
|
|
61
|
+
h.x = r.x - u * i - g * v, h.y = r.y - u * v + g * i;
|
|
62
|
+
} else {
|
|
63
|
+
const u = (o + a - s) / (2 * o), g = Math.sqrt(Math.max(0, a / o - u * u));
|
|
64
|
+
h.x = c.x + u * i - g * v, h.y = c.y + u * v + g * i;
|
|
65
|
+
}
|
|
66
|
+
} else
|
|
67
|
+
h.x = c.x + h.r, h.y = c.y;
|
|
68
|
+
}
|
|
69
|
+
function Ae(r, c) {
|
|
70
|
+
const h = r.r + c.r - 1e-6, i = c.x - r.x, v = c.y - r.y;
|
|
71
|
+
return h > 0 && h * h > i * i + v * v;
|
|
72
|
+
}
|
|
73
|
+
class te {
|
|
74
|
+
constructor(c) {
|
|
75
|
+
this._ = c, this.next = null, this.previous = null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const zt = ["id"], $t = ["xmlns", "viewBox", "height", "width"], Tt = ["x", "y", "width", "height"], Pt = ["id"], St = ["stop-color"], It = ["stop-color"], Ot = ["stop-color"], Ft = { key: 0 }, Nt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Mt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Et = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Rt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], At = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Dt = {
|
|
79
|
+
key: 0,
|
|
80
|
+
style: { pointerEvents: "none" }
|
|
81
|
+
}, Lt = { key: 1 }, Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Gt = {
|
|
82
|
+
key: 6,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Ut = ["innerHTML"], Bt = {
|
|
85
|
+
__name: "vue-ui-circle-pack",
|
|
86
|
+
props: {
|
|
87
|
+
config: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default() {
|
|
90
|
+
return {};
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
dataset: {
|
|
94
|
+
type: Array,
|
|
95
|
+
default() {
|
|
96
|
+
return [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
emits: ["selectDatapoint"],
|
|
101
|
+
setup(r, { expose: c, emit: h }) {
|
|
102
|
+
We((t) => ({
|
|
103
|
+
bf62f51c: N.value,
|
|
104
|
+
"623b642a": oe.value
|
|
105
|
+
}));
|
|
106
|
+
const i = r, v = h, { vue_ui_circle_pack: o } = et(), a = w(() => !!i.dataset && i.dataset.length), s = p(Ie()), u = p(null), g = p(null), $ = p(null), E = p(0), R = p(0), A = p(0), W = p(null), e = w({
|
|
107
|
+
get: () => fe(),
|
|
108
|
+
set: (t) => t
|
|
109
|
+
}), { svgRef: ve } = kt({ config: e.value.style.chart.title }), {
|
|
110
|
+
userOptionsVisible: le,
|
|
111
|
+
setUserOptionsVisibility: de,
|
|
112
|
+
keepUserOptionState: he
|
|
113
|
+
} = yt({ config: e.value });
|
|
114
|
+
function fe() {
|
|
115
|
+
const t = Ne({
|
|
116
|
+
userConfig: i.config,
|
|
117
|
+
defaultConfig: o
|
|
118
|
+
});
|
|
119
|
+
return t.theme ? {
|
|
120
|
+
...Ne({
|
|
121
|
+
userConfig: tt.vue_ui_circle_pack[t.theme] || i.config,
|
|
122
|
+
defaultConfig: t
|
|
123
|
+
}),
|
|
124
|
+
customPalette: ie[t.theme] || ee
|
|
125
|
+
} : t;
|
|
126
|
+
}
|
|
127
|
+
$e(() => i.config, (t) => {
|
|
128
|
+
e.value = fe(), le.value = !e.value.userOptions.showOnChartHover, ae(), E.value += 1, R.value += 1, D.value.showTable = e.value.table.show;
|
|
129
|
+
}, { deep: !0 });
|
|
130
|
+
const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } = vt({
|
|
131
|
+
elementId: `vue-ui-circle-pack_${s.value}`,
|
|
132
|
+
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
133
|
+
}), De = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = p({
|
|
134
|
+
showTable: e.value.table.show
|
|
135
|
+
}), ge = p(null), I = p({ h: 10, w: 10 }), ke = p(0), O = p([0, 0, 100, 100]), X = p({ h: 0, w: 0 });
|
|
136
|
+
async function ae() {
|
|
137
|
+
lt(i.dataset) && at({
|
|
138
|
+
componentName: "VueUiCirclePack",
|
|
139
|
+
type: "dataset"
|
|
140
|
+
}), F.value = await Ee(Y.value), T.value = Me(F.value, 1).join(" "), X.value = xe(u.value);
|
|
141
|
+
const t = xt(() => {
|
|
142
|
+
const { width: n, height: l, heightTitle: y, heightNoTitle: _ } = wt({
|
|
143
|
+
chart: u.value,
|
|
144
|
+
title: g.value,
|
|
145
|
+
noTitle: $.value
|
|
146
|
+
}), re = n || 10, ue = l && l > 10 ? l : 10;
|
|
147
|
+
ke.value = e.value.style.chart.title.text ? y : _, requestAnimationFrame(() => {
|
|
148
|
+
I.value.w = re, I.value.h = ue - ke.value, Se(async () => {
|
|
149
|
+
const je = Y.value.map((qe) => ({ ...qe }));
|
|
150
|
+
F.value = await Ee(je, I.value.h, I.value.w), O.value = Me(F.value, 1), T.value = O.value.join(" "), X.value = xe(u.value);
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
ge.value = new ResizeObserver(t), ge.value.observe(u.value.parentNode);
|
|
155
|
+
}
|
|
156
|
+
Xe(ae);
|
|
157
|
+
function xe(t) {
|
|
158
|
+
if (!t || !t.parentElement)
|
|
159
|
+
return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
|
|
160
|
+
const n = t.parentElement;
|
|
161
|
+
if (n.offsetWidth > 0 && n.offsetHeight > 0)
|
|
162
|
+
return { w: n.offsetWidth, h: n.offsetHeight };
|
|
163
|
+
const l = window.getComputedStyle(n), y = l.width, _ = l.height;
|
|
164
|
+
return y !== "auto" && _ !== "auto" && parseFloat(y) > 0 && parseFloat(_) > 0 ? { w: parseFloat(y), h: parseFloat(_) } : { w: 0, h: 0 };
|
|
165
|
+
}
|
|
166
|
+
$e(() => i.dataset, async (t) => {
|
|
167
|
+
await ae();
|
|
168
|
+
}, { deep: !0 });
|
|
169
|
+
const Le = w(() => ot(e.value.customPalette)), Y = w(() => i.dataset.map((t, n) => {
|
|
170
|
+
const l = st(t.color) || Le.value[n] || ie[e.value.theme || "default"][n % ie[e.value.theme || "default"].length] || ee[n] || ee[n % ee.length];
|
|
171
|
+
return {
|
|
172
|
+
...t,
|
|
173
|
+
r: t.value,
|
|
174
|
+
id: Ie(),
|
|
175
|
+
color: l
|
|
176
|
+
};
|
|
177
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), F = p([]), T = p("0 0 100 100"), L = w(() => Math.max(...F.value.map((t) => t.r)));
|
|
178
|
+
function we(t, n) {
|
|
179
|
+
return n / L.value * t;
|
|
180
|
+
}
|
|
181
|
+
const d = p(null);
|
|
182
|
+
function He(t) {
|
|
183
|
+
e.value.style.chart.circles.zoom.show && (d.value = t);
|
|
184
|
+
}
|
|
185
|
+
const N = w(() => d.value ? d.value.r : 0), oe = w(() => S.value ? N.value : d.value ? d.value.r > O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : O.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), P = p(0), Ve = w(() => ({
|
|
186
|
+
pointerEvents: "none",
|
|
187
|
+
opacity: P.value,
|
|
188
|
+
filter: `drop-shadow(0px 0px 6px ${Oe(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
189
|
+
})), H = p(N.value);
|
|
190
|
+
Ye(() => {
|
|
191
|
+
H.value = N.value, P.value = 0;
|
|
192
|
+
let t = null;
|
|
193
|
+
function n(l) {
|
|
194
|
+
t || (t = l);
|
|
195
|
+
const y = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
196
|
+
y < 1 ? (H.value = N.value + (oe.value - N.value) * y, P.value = 0 + e.value.style.chart.circles.zoom.opacity * y, requestAnimationFrame(n)) : (H.value = oe.value, P.value = e.value.style.chart.circles.zoom.opacity);
|
|
197
|
+
}
|
|
198
|
+
requestAnimationFrame(n);
|
|
199
|
+
});
|
|
200
|
+
const V = w(() => ({
|
|
201
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * O.value[3] / 300,
|
|
202
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * O.value[3] / 300
|
|
203
|
+
}));
|
|
204
|
+
function se(t) {
|
|
205
|
+
return Fe(
|
|
206
|
+
e.value.style.chart.circles.labels.value.formatter,
|
|
207
|
+
t.value,
|
|
208
|
+
ce({
|
|
209
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
210
|
+
v: t.value,
|
|
211
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
212
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
function Ge() {
|
|
217
|
+
return Fe(
|
|
218
|
+
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
219
|
+
d.value.value,
|
|
220
|
+
ce({
|
|
221
|
+
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
222
|
+
v: d.value.value,
|
|
223
|
+
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
224
|
+
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
225
|
+
})
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
function Ce(t) {
|
|
229
|
+
if (!t)
|
|
230
|
+
return 0;
|
|
231
|
+
const n = t.r / se(t).length * (se(t).length === 1 ? 1 : 2);
|
|
232
|
+
return Math.min(t.r / 2.5, n);
|
|
233
|
+
}
|
|
234
|
+
const G = p(!1);
|
|
235
|
+
function Ue(t) {
|
|
236
|
+
G.value = t, A.value += 1;
|
|
237
|
+
}
|
|
238
|
+
const S = p(!1);
|
|
239
|
+
function ne() {
|
|
240
|
+
S.value = !S.value;
|
|
241
|
+
}
|
|
242
|
+
const Z = w(() => {
|
|
243
|
+
const t = Y.value.map((l) => ({
|
|
244
|
+
name: l.name,
|
|
245
|
+
value: l.value,
|
|
246
|
+
color: l.color
|
|
247
|
+
})).toSorted((l, y) => y.value - l.value), n = t.map((l) => l.value);
|
|
248
|
+
return { head: t, body: n };
|
|
249
|
+
});
|
|
250
|
+
function _e() {
|
|
251
|
+
Se(() => {
|
|
252
|
+
const t = Z.value.head.map((y, _) => [[
|
|
253
|
+
y.name
|
|
254
|
+
], [Z.value.body[_]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l = it(n);
|
|
255
|
+
ct({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
const J = w(() => {
|
|
259
|
+
const t = [
|
|
260
|
+
e.value.table.columnNames.datapoint,
|
|
261
|
+
e.value.table.columnNames.value
|
|
262
|
+
], n = Z.value.head.map((_, re) => {
|
|
263
|
+
const ue = ce({
|
|
264
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
265
|
+
v: Z.value.body[re],
|
|
266
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
267
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
268
|
+
});
|
|
269
|
+
return [
|
|
270
|
+
{
|
|
271
|
+
color: _.color,
|
|
272
|
+
name: _.name
|
|
273
|
+
},
|
|
274
|
+
ue
|
|
275
|
+
];
|
|
276
|
+
}), l = {
|
|
277
|
+
th: {
|
|
278
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
279
|
+
color: e.value.table.th.color,
|
|
280
|
+
outline: e.value.table.th.outline
|
|
281
|
+
},
|
|
282
|
+
td: {
|
|
283
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
284
|
+
color: e.value.table.td.color,
|
|
285
|
+
outline: e.value.table.td.outline
|
|
286
|
+
},
|
|
287
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
288
|
+
};
|
|
289
|
+
return {
|
|
290
|
+
colNames: [
|
|
291
|
+
e.value.table.columnNames.datapoint,
|
|
292
|
+
e.value.table.columnNames.value
|
|
293
|
+
],
|
|
294
|
+
head: t,
|
|
295
|
+
body: n,
|
|
296
|
+
config: l
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
function ze() {
|
|
300
|
+
D.value.showTable = !D.value.showTable;
|
|
301
|
+
}
|
|
302
|
+
function Be() {
|
|
303
|
+
return Y.value;
|
|
304
|
+
}
|
|
305
|
+
return c({
|
|
306
|
+
getData: Be,
|
|
307
|
+
generateCsv: _e,
|
|
308
|
+
generatePdf: pe,
|
|
309
|
+
generateImage: be,
|
|
310
|
+
toggleTable: ze,
|
|
311
|
+
toggleAnnotator: ne
|
|
312
|
+
}), (t, n) => (f(), b("div", {
|
|
313
|
+
id: `vue-ui-circle-pack_${s.value}`,
|
|
314
|
+
class: Te(`vue-ui-circle-pack ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
315
|
+
ref_key: "circlePackChart",
|
|
316
|
+
ref: u,
|
|
317
|
+
style: K(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${X.value.h}px; width:${X.value.w}px`),
|
|
318
|
+
onMouseenter: n[2] || (n[2] = () => m(de)(!0)),
|
|
319
|
+
onMouseleave: n[3] || (n[3] = () => m(de)(!1))
|
|
320
|
+
}, [
|
|
321
|
+
e.value.userOptions.buttons.annotator ? (f(), M(ft, {
|
|
322
|
+
key: 0,
|
|
323
|
+
svgRef: m(ve),
|
|
324
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
325
|
+
color: e.value.style.chart.color,
|
|
326
|
+
active: S.value,
|
|
327
|
+
scale: L.value / 100,
|
|
328
|
+
onClose: ne
|
|
329
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
330
|
+
x(t.$slots, "userConfig", {}, void 0, !0),
|
|
331
|
+
De.value ? (f(), b("div", {
|
|
332
|
+
key: 1,
|
|
333
|
+
ref_key: "noTitle",
|
|
334
|
+
ref: $,
|
|
335
|
+
class: "vue-data-ui-no-title-space",
|
|
336
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
337
|
+
}, null, 512)) : k("", !0),
|
|
338
|
+
e.value.style.chart.title.text ? (f(), b("div", {
|
|
339
|
+
key: 2,
|
|
340
|
+
ref_key: "chartTitle",
|
|
341
|
+
ref: g,
|
|
342
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
343
|
+
}, [
|
|
344
|
+
(f(), M(ht, {
|
|
345
|
+
key: `title_${E.value}`,
|
|
346
|
+
config: {
|
|
347
|
+
title: {
|
|
348
|
+
cy: "donut-div-title",
|
|
349
|
+
...e.value.style.chart.title
|
|
350
|
+
},
|
|
351
|
+
subtitle: {
|
|
352
|
+
cy: "donut-div-subtitle",
|
|
353
|
+
...e.value.style.chart.title.subtitle
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}, null, 8, ["config"]))
|
|
357
|
+
], 512)) : k("", !0),
|
|
358
|
+
e.value.userOptions.show && a.value && (m(he) || m(le)) ? (f(), M(dt, {
|
|
359
|
+
ref: "details",
|
|
360
|
+
key: `user_option_${A.value}`,
|
|
361
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
362
|
+
color: e.value.style.chart.color,
|
|
363
|
+
isPrinting: m(ye),
|
|
364
|
+
isImaging: m(me),
|
|
365
|
+
uid: s.value,
|
|
366
|
+
hasTooltip: !1,
|
|
367
|
+
hasLabel: !1,
|
|
368
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
369
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
370
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
371
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
372
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
373
|
+
isFullscreen: G.value,
|
|
374
|
+
chartElement: u.value,
|
|
375
|
+
position: e.value.userOptions.position,
|
|
376
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
377
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
378
|
+
isAnnotation: S.value,
|
|
379
|
+
onToggleFullscreen: Ue,
|
|
380
|
+
onGeneratePdf: m(pe),
|
|
381
|
+
onGenerateCsv: _e,
|
|
382
|
+
onGenerateImage: m(be),
|
|
383
|
+
onToggleTable: ze,
|
|
384
|
+
onToggleAnnotator: ne,
|
|
385
|
+
style: K({
|
|
386
|
+
visibility: m(he) ? m(le) ? "visible" : "hidden" : "visible"
|
|
387
|
+
})
|
|
388
|
+
}, Ze({ _: 2 }, [
|
|
389
|
+
t.$slots.menuIcon ? {
|
|
390
|
+
name: "menuIcon",
|
|
391
|
+
fn: z(({ isOpen: l, color: y }) => [
|
|
392
|
+
x(t.$slots, "menuIcon", U(B({ isOpen: l, color: y })), void 0, !0)
|
|
393
|
+
]),
|
|
394
|
+
key: "0"
|
|
395
|
+
} : void 0,
|
|
396
|
+
t.$slots.optionPdf ? {
|
|
397
|
+
name: "optionPdf",
|
|
398
|
+
fn: z(() => [
|
|
399
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
400
|
+
]),
|
|
401
|
+
key: "1"
|
|
402
|
+
} : void 0,
|
|
403
|
+
t.$slots.optionCsv ? {
|
|
404
|
+
name: "optionCsv",
|
|
405
|
+
fn: z(() => [
|
|
406
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
407
|
+
]),
|
|
408
|
+
key: "2"
|
|
409
|
+
} : void 0,
|
|
410
|
+
t.$slots.optionImg ? {
|
|
411
|
+
name: "optionImg",
|
|
412
|
+
fn: z(() => [
|
|
413
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
414
|
+
]),
|
|
415
|
+
key: "3"
|
|
416
|
+
} : void 0,
|
|
417
|
+
t.$slots.optionTable ? {
|
|
418
|
+
name: "optionTable",
|
|
419
|
+
fn: z(() => [
|
|
420
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
421
|
+
]),
|
|
422
|
+
key: "4"
|
|
423
|
+
} : void 0,
|
|
424
|
+
t.$slots.optionFullscreen ? {
|
|
425
|
+
name: "optionFullscreen",
|
|
426
|
+
fn: z(({ toggleFullscreen: l, isFullscreen: y }) => [
|
|
427
|
+
x(t.$slots, "optionFullscreen", U(B({ toggleFullscreen: l, isFullscreen: y })), void 0, !0)
|
|
428
|
+
]),
|
|
429
|
+
key: "5"
|
|
430
|
+
} : void 0,
|
|
431
|
+
t.$slots.optionAnnotator ? {
|
|
432
|
+
name: "optionAnnotator",
|
|
433
|
+
fn: z(({ toggleAnnotator: l, isAnnotator: y }) => [
|
|
434
|
+
x(t.$slots, "optionAnnotator", U(B({ toggleAnnotator: l, isAnnotator: y })), void 0, !0)
|
|
435
|
+
]),
|
|
436
|
+
key: "6"
|
|
437
|
+
} : void 0
|
|
438
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
439
|
+
a.value ? (f(), b("svg", {
|
|
440
|
+
key: 4,
|
|
441
|
+
ref_key: "svgRef",
|
|
442
|
+
ref: ve,
|
|
443
|
+
xmlns: m(nt),
|
|
444
|
+
viewBox: T.value,
|
|
445
|
+
height: I.value.h,
|
|
446
|
+
width: I.value.w,
|
|
447
|
+
class: Te({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
448
|
+
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
449
|
+
}, [
|
|
450
|
+
Je(mt),
|
|
451
|
+
t.$slots["chart-background"] ? (f(), b("foreignObject", {
|
|
452
|
+
key: 0,
|
|
453
|
+
x: T.value.x,
|
|
454
|
+
y: T.value.y,
|
|
455
|
+
width: T.value.width,
|
|
456
|
+
height: T.value.height,
|
|
457
|
+
style: {
|
|
458
|
+
pointerEvents: "none"
|
|
459
|
+
}
|
|
460
|
+
}, [
|
|
461
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
462
|
+
], 8, Tt)) : k("", !0),
|
|
463
|
+
(f(!0), b(Q, null, Ke(F.value, (l) => (f(), b(Q, null, [
|
|
464
|
+
C("defs", null, [
|
|
465
|
+
C("radialGradient", {
|
|
466
|
+
id: l.id,
|
|
467
|
+
fy: "30%"
|
|
468
|
+
}, [
|
|
469
|
+
C("stop", {
|
|
470
|
+
offset: "10%",
|
|
471
|
+
"stop-color": m(rt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
472
|
+
}, null, 8, St),
|
|
473
|
+
C("stop", {
|
|
474
|
+
offset: "90%",
|
|
475
|
+
"stop-color": m(Oe)(l.color, 0.1)
|
|
476
|
+
}, null, 8, It),
|
|
477
|
+
C("stop", {
|
|
478
|
+
offset: "100%",
|
|
479
|
+
"stop-color": l.color
|
|
480
|
+
}, null, 8, Ot)
|
|
481
|
+
], 8, Pt)
|
|
482
|
+
]),
|
|
483
|
+
t.$slots.pattern ? (f(), b("g", Ft, [
|
|
484
|
+
C("defs", null, [
|
|
485
|
+
x(t.$slots, "pattern", Pe({ ref_for: !0 }, { ...l, patternId: `pattern_${s.value}_${l.id}` }), void 0, !0)
|
|
486
|
+
])
|
|
487
|
+
])) : k("", !0),
|
|
488
|
+
C("rect", {
|
|
489
|
+
x: l.x - l.r,
|
|
490
|
+
y: l.y - l.r,
|
|
491
|
+
width: l.r * 2,
|
|
492
|
+
height: l.r * 2,
|
|
493
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
494
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
495
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
496
|
+
rx: l.r,
|
|
497
|
+
onMouseenter: () => He(l),
|
|
498
|
+
onMouseout: n[0] || (n[0] = (y) => d.value = null),
|
|
499
|
+
onClick: (y) => v("selectDatapoint", l)
|
|
500
|
+
}, null, 40, Nt),
|
|
501
|
+
t.$slots.pattern ? (f(), b("rect", {
|
|
502
|
+
key: 1,
|
|
503
|
+
x: l.x - l.r,
|
|
504
|
+
y: l.y - l.r,
|
|
505
|
+
width: l.r * 2,
|
|
506
|
+
height: l.r * 2,
|
|
507
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
508
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
509
|
+
fill: `url(#pattern_${s.value}_${l.id})`,
|
|
510
|
+
rx: l.r,
|
|
511
|
+
style: {
|
|
512
|
+
pointerEvents: "none"
|
|
513
|
+
}
|
|
514
|
+
}, null, 8, Mt)) : k("", !0),
|
|
515
|
+
t.$slots["data-label"] ? x(t.$slots, "data-label", Pe({
|
|
516
|
+
key: 2,
|
|
517
|
+
ref_for: !0
|
|
518
|
+
}, { ...l, createTSpans: m(ut), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : m(q)(l.color) }), void 0, !0) : (f(), b(Q, { key: 3 }, [
|
|
519
|
+
e.value.style.chart.circles.labels.name.show && l.name ? (f(), b("text", {
|
|
520
|
+
key: 0,
|
|
521
|
+
style: {
|
|
522
|
+
pointerEvents: "none",
|
|
523
|
+
transition: "opacity 0.2s ease-in-out"
|
|
524
|
+
},
|
|
525
|
+
opacity: d.value && !S.value ? 0.2 : 1,
|
|
526
|
+
x: l.x,
|
|
527
|
+
y: l.y + we(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
|
|
528
|
+
"font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
529
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : m(q)(l.color),
|
|
530
|
+
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
531
|
+
"text-anchor": "middle"
|
|
532
|
+
}, j(l.name), 9, Et)) : k("", !0),
|
|
533
|
+
e.value.style.chart.circles.labels.value.show ? (f(), b("text", {
|
|
534
|
+
key: 1,
|
|
535
|
+
style: {
|
|
536
|
+
pointerEvents: "none",
|
|
537
|
+
transition: "opacity 0.2s ease-in-out"
|
|
538
|
+
},
|
|
539
|
+
opacity: d.value && !S.value ? 0.2 : 1,
|
|
540
|
+
x: l.x,
|
|
541
|
+
y: l.y + we(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
|
|
542
|
+
"font-size": Ce(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
543
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : m(q)(l.color),
|
|
544
|
+
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
545
|
+
"text-anchor": "middle"
|
|
546
|
+
}, j(se(l)), 9, Rt)) : k("", !0)
|
|
547
|
+
], 64))
|
|
548
|
+
], 64))), 256)),
|
|
549
|
+
d.value && e.value.style.chart.circles.zoom.show && !S.value ? (f(), b(Q, { key: 1 }, [
|
|
550
|
+
C("circle", {
|
|
551
|
+
style: K(Ve.value),
|
|
552
|
+
cx: d.value.x,
|
|
553
|
+
cy: d.value.y,
|
|
554
|
+
r: H.value,
|
|
555
|
+
opacity: P.value,
|
|
556
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
557
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
558
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
559
|
+
}, null, 12, At),
|
|
560
|
+
t.$slots["zoom-label"] ? (f(), b("g", Dt, [
|
|
561
|
+
x(t.$slots, "zoom-label", U(B({ ...d.value, zoomOpacity: P.value, currentRadius: H.value, fontSize: V.value })), void 0, !0)
|
|
562
|
+
])) : (f(), b("g", Lt, [
|
|
563
|
+
C("text", {
|
|
564
|
+
style: {
|
|
565
|
+
pointerEvents: "none"
|
|
566
|
+
},
|
|
567
|
+
opacity: P.value,
|
|
568
|
+
x: d.value.x,
|
|
569
|
+
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - V.value.name / 4,
|
|
570
|
+
"text-anchor": "middle",
|
|
571
|
+
"font-size": V.value.name,
|
|
572
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : m(q)(d.value.color),
|
|
573
|
+
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
574
|
+
}, j(d.value.name), 9, Ht),
|
|
575
|
+
C("text", {
|
|
576
|
+
style: {
|
|
577
|
+
pointerEvents: "none"
|
|
578
|
+
},
|
|
579
|
+
opacity: P.value,
|
|
580
|
+
x: d.value.x,
|
|
581
|
+
y: d.value.y + V.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
582
|
+
"text-anchor": "middle",
|
|
583
|
+
"font-size": V.value.value,
|
|
584
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : m(q)(d.value.color),
|
|
585
|
+
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
586
|
+
}, j(Ge()), 9, Vt)
|
|
587
|
+
]))
|
|
588
|
+
], 64)) : k("", !0),
|
|
589
|
+
x(t.$slots, "svg", {
|
|
590
|
+
svg: { ...T.value }
|
|
591
|
+
}, void 0, !0)
|
|
592
|
+
], 14, $t)) : k("", !0),
|
|
593
|
+
a.value ? k("", !0) : (f(), M(gt, {
|
|
594
|
+
key: 5,
|
|
595
|
+
config: {
|
|
596
|
+
type: "circlePack",
|
|
597
|
+
style: {
|
|
598
|
+
color: "#CCCCCC"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
})),
|
|
602
|
+
t.$slots.watermark ? (f(), b("div", Gt, [
|
|
603
|
+
x(t.$slots, "watermark", U(B({ isPrinting: m(ye) || m(me) })), void 0, !0)
|
|
604
|
+
])) : k("", !0),
|
|
605
|
+
t.$slots.source ? (f(), b("div", {
|
|
606
|
+
key: 7,
|
|
607
|
+
ref_key: "source",
|
|
608
|
+
ref: W,
|
|
609
|
+
dir: "auto"
|
|
610
|
+
}, [
|
|
611
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
612
|
+
], 512)) : k("", !0),
|
|
613
|
+
a.value ? (f(), M(pt, {
|
|
614
|
+
key: 8,
|
|
615
|
+
hideDetails: "",
|
|
616
|
+
config: {
|
|
617
|
+
open: D.value.showTable,
|
|
618
|
+
maxHeight: 1e4,
|
|
619
|
+
body: {
|
|
620
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
621
|
+
color: e.value.style.chart.color
|
|
622
|
+
},
|
|
623
|
+
head: {
|
|
624
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
625
|
+
color: e.value.style.chart.color
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}, {
|
|
629
|
+
content: z(() => [
|
|
630
|
+
(f(), M(bt, {
|
|
631
|
+
key: `table_${R.value}`,
|
|
632
|
+
colNames: J.value.colNames,
|
|
633
|
+
head: J.value.head,
|
|
634
|
+
body: J.value.body,
|
|
635
|
+
config: J.value.config,
|
|
636
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
637
|
+
onClose: n[1] || (n[1] = (l) => D.value.showTable = !1)
|
|
638
|
+
}, {
|
|
639
|
+
th: z(({ th: l }) => [
|
|
640
|
+
C("div", {
|
|
641
|
+
innerHTML: l,
|
|
642
|
+
style: { display: "flex", "align-items": "center" }
|
|
643
|
+
}, null, 8, Ut)
|
|
644
|
+
]),
|
|
645
|
+
td: z(({ td: l }) => [
|
|
646
|
+
Qe(j(l.name || l), 1)
|
|
647
|
+
]),
|
|
648
|
+
_: 1
|
|
649
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
650
|
+
]),
|
|
651
|
+
_: 1
|
|
652
|
+
}, 8, ["config"])) : k("", !0)
|
|
653
|
+
], 46, zt));
|
|
654
|
+
}
|
|
655
|
+
}, sl = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-6e0719a8"]]);
|
|
656
|
+
export {
|
|
657
|
+
sl as default
|
|
658
|
+
};
|