vue-data-ui 2.6.20 → 2.6.22
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-C9wt_iwE.js → Arrow-Cf2BhlTz.js} +1 -1
- package/dist/{Arrow-mU42Peiq.cjs → Arrow-Dkww_cPT.cjs} +1 -1
- package/dist/{BaseIcon-DMhDupLt.cjs → BaseIcon-CMg_B1n7.cjs} +1 -1
- package/dist/{BaseIcon-CR8s5lLC.js → BaseIcon-sQ0Yl3WG.js} +1 -1
- package/dist/{DataTable-CMUyDj6S.js → DataTable-2Igu4lk9.js} +2 -2
- package/dist/{DataTable-Qba16zLZ.cjs → DataTable-CdAOPHJa.cjs} +1 -1
- package/dist/{Legend-CaMKYW-V.js → Legend-BSuEi9g7.js} +2 -2
- package/dist/{Legend-EauKcdAx.cjs → Legend-CWcXXd69.cjs} +1 -1
- package/dist/{PackageVersion-Vv7wNIAl.cjs → PackageVersion-D9dPTMdO.cjs} +1 -1
- package/dist/{PackageVersion-CURzw4q1.js → PackageVersion-V-_CbVlt.js} +1 -1
- package/dist/PenAndPaper-Cpwa77pt.cjs +1 -0
- package/dist/{PenAndPaper-CjiJra09.js → PenAndPaper-Dq-ECAue.js} +20 -16
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js} +3 -3
- package/dist/{Shape-F5v4f45p.js → Shape-BPvU0s7x.js} +1 -1
- package/dist/{Shape-gLknKTb6.cjs → Shape-Ca9CTckg.cjs} +1 -1
- package/dist/{Slicer-DQp19cm1.js → Slicer-CATr5IB9.js} +3 -3
- package/dist/{Slicer-CVVRixhP.cjs → Slicer-DXEJzT3U.cjs} +1 -1
- package/dist/{Title-CUHNtIyE.js → Title-CUbvh4nY.js} +1 -1
- package/dist/{Title-m1x23s4w.cjs → Title-Vp8RX2Nj.cjs} +1 -1
- package/dist/{Tooltip-BuAQ8HVL.js → Tooltip-CYcP5JH9.js} +1 -1
- package/dist/{Tooltip-BXY2gKbA.cjs → Tooltip-D6K610_p.cjs} +1 -1
- package/dist/{index-CmhvuQro.cjs → index-BCAY_TBF.cjs} +1 -1
- package/dist/{index-Cq7-va_5.js → index-BVM1Hjat.js} +1 -1
- package/dist/index.es-DvaaoatM.cjs +18 -0
- package/dist/index.es-RWt7DWPC.js +6645 -0
- package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
- package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
- package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
- package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BEyJNlaO.js → useNestedProp-B7524T_I.js} +1 -1
- package/dist/{useNestedProp-CnH-XcZU.cjs → useNestedProp-Ces_ZEmq.cjs} +1 -1
- package/dist/{usePrinter-jRjc8Naz.js → usePrinter-BuEZ1Mqw.js} +2 -2
- package/dist/{usePrinter-DhZH4pcR.cjs → usePrinter-CMRlY9rc.cjs} +1 -1
- package/dist/useResponsive-N8jl0-aC.cjs +1 -0
- package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
- package/dist/{vue-data-ui-BPSCRfcK.js → vue-data-ui-CMHydJ3z.js} +61 -61
- package/dist/{vue-data-ui-DD5SV4SW.cjs → vue-data-ui-Cl21-Qn-.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-BlCSdagh.cjs → vue-ui-3d-bar-BB9IHMFV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-TB1XdncJ.js → vue-ui-3d-bar-CiVt8Lvp.js} +9 -9
- package/dist/{vue-ui-accordion-C3Ljak65.cjs → vue-ui-accordion-D86VhQnK.cjs} +1 -1
- package/dist/{vue-ui-accordion-vAQ_LLoP.js → vue-ui-accordion-Zeu2qcSI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BUWoRp_B.js → vue-ui-age-pyramid-CaZSG2fN.js} +11 -11
- package/dist/{vue-ui-age-pyramid-CrDKpPil.cjs → vue-ui-age-pyramid-t5v8gG7E.cjs} +1 -1
- package/dist/{vue-ui-annotator-wjsB7Ihy.cjs → vue-ui-annotator-DPQRwLra.cjs} +1 -1
- package/dist/{vue-ui-annotator-BVE-xqSy.js → vue-ui-annotator-DqMnXHaK.js} +2 -2
- package/dist/{vue-ui-bullet-BcU0lGMw.cjs → vue-ui-bullet-DfJ9YR2-.cjs} +1 -1
- package/dist/{vue-ui-bullet-Cj4GC_-F.js → vue-ui-bullet-oN99bgSq.js} +8 -8
- package/dist/{vue-ui-candlestick-C2hAp3Fi.js → vue-ui-candlestick-BIznNizW.js} +12 -12
- package/dist/{vue-ui-candlestick-n--kSbN7.cjs → vue-ui-candlestick-CbvO_6uK.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CU96d16y.cjs → vue-ui-carousel-table-DKQSfGt-.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Do1uzI_G.js → vue-ui-carousel-table-DjWEv7sx.js} +4 -4
- package/dist/{vue-ui-chestnut-DJq8IWIL.cjs → vue-ui-chestnut-DJsFMi3a.cjs} +1 -1
- package/dist/{vue-ui-chestnut-fb3ioT4a.js → vue-ui-chestnut-DtC70R0X.js} +8 -8
- package/dist/vue-ui-circle-pack-Bi3Usmkl.js +648 -0
- package/dist/vue-ui-circle-pack-KCMKYM9w.cjs +1 -0
- package/dist/{vue-ui-cursor-scYLETJY.js → vue-ui-cursor-BbrupWFh.js} +2 -2
- package/dist/{vue-ui-cursor-DSCiOK2l.cjs → vue-ui-cursor-Bh3F6uU7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BBDfkeCW.cjs → vue-ui-dashboard-CR09TdSL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DjxJGI1j.js → vue-ui-dashboard-he9hja0v.js} +3 -3
- package/dist/{vue-ui-digits-Cmn1NNzQ.cjs → vue-ui-digits-CrQuYkCF.cjs} +1 -1
- package/dist/{vue-ui-digits-7bQAdMhs.js → vue-ui-digits-eow8_8IF.js} +2 -2
- package/dist/{vue-ui-donut-RJQUTfyW.js → vue-ui-donut-C2Ab0qsE.js} +13 -13
- package/dist/{vue-ui-donut-C291KoIU.cjs → vue-ui-donut-Dh75AMUR.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DPW_ITH8.js → vue-ui-donut-evolution-C4ZSty9k.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Dp15D88c.cjs → vue-ui-donut-evolution-CwPKiglD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B8Zm8EVd.js → vue-ui-dumbbell-BN8fJSvG.js} +11 -11
- package/dist/{vue-ui-dumbbell-BdEUvUV7.cjs → vue-ui-dumbbell-CafiAGaw.cjs} +1 -1
- package/dist/{vue-ui-flow-BukV6_Zl.cjs → vue-ui-flow-BWm4K97n.cjs} +1 -1
- package/dist/{vue-ui-flow-BNIgPNGy.js → vue-ui-flow-DKpHc3FI.js} +9 -9
- package/dist/{vue-ui-funnel-CIgZpg3T.cjs → vue-ui-funnel-C25z-XuU.cjs} +1 -1
- package/dist/{vue-ui-funnel-BrPqtGct.js → vue-ui-funnel-DkmKmnNf.js} +10 -10
- package/dist/{vue-ui-galaxy-D1IYOUwX.js → vue-ui-galaxy-oV4efmeX.js} +11 -11
- package/dist/{vue-ui-galaxy-FGqZ4tWB.cjs → vue-ui-galaxy-wgZKEqln.cjs} +1 -1
- package/dist/{vue-ui-gauge-B00JvBFF.cjs → vue-ui-gauge-CzA2PhpW.cjs} +1 -1
- package/dist/{vue-ui-gauge-BsOXy5MV.js → vue-ui-gauge-DEKM0_3Q.js} +8 -8
- package/dist/{vue-ui-gizmo-D_uv6qkV.cjs → vue-ui-gizmo-DlNuWEmn.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cyl89etd.js → vue-ui-gizmo-UO3Zkeme.js} +3 -3
- package/dist/{vue-ui-heatmap-CgF4n8Bh.js → vue-ui-heatmap-E_CcRS7D.js} +10 -10
- package/dist/{vue-ui-heatmap-CGg2_xWH.cjs → vue-ui-heatmap-dnvzPPoV.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Rdjb-yOk.js → vue-ui-history-plot-DRbZ8X1X.js} +12 -12
- package/dist/{vue-ui-history-plot-DR11Ips0.cjs → vue-ui-history-plot-EWyGCjPe.cjs} +1 -1
- package/dist/{vue-ui-kpi-COfnJm-X.js → vue-ui-kpi-BZxftzEv.js} +3 -3
- package/dist/{vue-ui-kpi-CbAgFb-9.cjs → vue-ui-kpi-DWJbsdvG.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CizZv79e.cjs → vue-ui-mini-loader-BvWPS_gQ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DNM7jU2W.js → vue-ui-mini-loader-DsCVKpe9.js} +2 -2
- package/dist/{vue-ui-molecule-CiOIVjFk.cjs → vue-ui-molecule-BdANdT7O.cjs} +1 -1
- package/dist/{vue-ui-molecule-Cv6jp9D_.js → vue-ui-molecule-BnYkqFk0.js} +10 -10
- package/dist/{vue-ui-mood-radar-B-VE2pVS.js → vue-ui-mood-radar-Cgn-5GqE.js} +11 -11
- package/dist/{vue-ui-mood-radar-CoHouhrl.cjs → vue-ui-mood-radar-D_uLYLXE.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-D-7tn_Qe.js → vue-ui-nested-donuts-BP9UnBkw.js} +12 -12
- package/dist/{vue-ui-nested-donuts-ITcu4gJW.cjs → vue-ui-nested-donuts-BzOUk2Kz.cjs} +1 -1
- package/dist/{vue-ui-onion-fzXsWjjI.cjs → vue-ui-onion-DGw3Ce3f.cjs} +1 -1
- package/dist/{vue-ui-onion-B4SgCj8L.js → vue-ui-onion-vu27Cwcx.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs → vue-ui-parallel-coordinate-plot-Bo-yxxDH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CpQOyh-W.js → vue-ui-parallel-coordinate-plot-Dy3yQFd1.js} +13 -13
- package/dist/{vue-ui-quadrant-ByRNr-XD.cjs → vue-ui-quadrant-B9GkwB5l.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DhODDM5V.js → vue-ui-quadrant-DgQqkCxk.js} +13 -13
- package/dist/{vue-ui-quick-chart-BsQAMw9M.cjs → vue-ui-quick-chart-CMQFeKWK.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DpeGH277.js → vue-ui-quick-chart-DcpVDq8t.js} +10 -10
- package/dist/{vue-ui-radar-D-qttZKw.cjs → vue-ui-radar-CnqMJrEU.cjs} +1 -1
- package/dist/{vue-ui-radar-CWkrni4Y.js → vue-ui-radar-cwhwGVar.js} +13 -13
- package/dist/{vue-ui-rating-DB4nQsuM.js → vue-ui-rating-BmtemUqF.js} +2 -2
- package/dist/{vue-ui-rating-CY25IY75.cjs → vue-ui-rating-Bub3mYba.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B_PxY9ZN.js → vue-ui-relation-circle-BerdR_4-.js} +8 -8
- package/dist/{vue-ui-relation-circle-KDFaFqqu.cjs → vue-ui-relation-circle-D0py_PRH.cjs} +1 -1
- package/dist/{vue-ui-rings-D5-sTr38.js → vue-ui-rings-BSm_KC-r.js} +13 -13
- package/dist/{vue-ui-rings-C1Upd5ja.cjs → vue-ui-rings-zQ-4JnNS.cjs} +1 -1
- package/dist/{vue-ui-scatter-C8cn3MR5.js → vue-ui-scatter-D0dIO0lS.js} +13 -13
- package/dist/{vue-ui-scatter-B-aqlIcn.cjs → vue-ui-scatter-DXAm7w2U.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D9EV_KXZ.cjs → vue-ui-screenshot-BdJzHzn9.cjs} +1 -1
- package/dist/{vue-ui-screenshot-kQRZJHLO.js → vue-ui-screenshot-_KsufqYT.js} +1 -1
- package/dist/{vue-ui-skeleton-DyJu1ibj.cjs → vue-ui-skeleton-CNtHe3B_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DIrE1OTF.js → vue-ui-skeleton-CjC_RR5C.js} +3 -3
- package/dist/{vue-ui-smiley-B7dNRQyO.cjs → vue-ui-smiley-C-dKXMYz.cjs} +1 -1
- package/dist/{vue-ui-smiley-DVjsjIa4.js → vue-ui-smiley-CdYhD3n7.js} +2 -2
- package/dist/{vue-ui-spark-trend-DsUy3aw-.js → vue-ui-spark-trend-DT0q7zha.js} +5 -5
- package/dist/{vue-ui-spark-trend-DRtaXADG.cjs → vue-ui-spark-trend-ZSffEbvM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-x0F1llCZ.cjs → vue-ui-sparkbar-Ca8RoM26.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Dm8xksUj.js → vue-ui-sparkbar-hm3wy78R.js} +4 -4
- package/dist/{vue-ui-sparkgauge-_gF53YgV.js → vue-ui-sparkgauge-Dsy3BtE1.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B4DRMVOW.cjs → vue-ui-sparkgauge-Wzb-9Nec.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CIMJUDlb.cjs → vue-ui-sparkhistogram-CcyyqdgC.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CD_0ihS9.js → vue-ui-sparkhistogram-DIccfqcP.js} +5 -5
- package/dist/{vue-ui-sparkline-DzOL1IDW.cjs → vue-ui-sparkline-CJfM9R-P.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cs0h6tKI.js → vue-ui-sparkline-edCpjS99.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BBz1lDg0.cjs → vue-ui-sparkstackbar-BCkwH7OH.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dhula5ka.js → vue-ui-sparkstackbar-UzWOXV8T.js} +5 -5
- package/dist/{vue-ui-stackbar-BuUtwfyC.cjs → vue-ui-stackbar-DLw1lhqT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DanAQnBd.js → vue-ui-stackbar-DtxiLdkG.js} +14 -14
- package/dist/{vue-ui-strip-plot-95uUJ2fc.cjs → vue-ui-strip-plot-Bot6lWVZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DIlGTBzG.js → vue-ui-strip-plot-DZBPceJC.js} +12 -12
- package/dist/{vue-ui-table-CDS7xlZS.cjs → vue-ui-table-CyT0sQtg.cjs} +1 -1
- package/dist/{vue-ui-table-FKZF6cxI.js → vue-ui-table-DR-vUv2U.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BcGX_vpU.js → vue-ui-table-heatmap-D4JBAEBg.js} +4 -4
- package/dist/{vue-ui-table-heatmap-qVmiG576.cjs → vue-ui-table-heatmap-IsfxseMB.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CVY9EZ7Q.js → vue-ui-table-sparkline-ClYyMljO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnVFXbUB.cjs → vue-ui-table-sparkline-Do9vWT7v.cjs} +1 -1
- package/dist/{vue-ui-thermometer-tcTgQiAu.js → vue-ui-thermometer-CY0Gi2uj.js} +7 -7
- package/dist/{vue-ui-thermometer-BTer1qaq.cjs → vue-ui-thermometer-CkN0NXuR.cjs} +1 -1
- package/dist/{vue-ui-timer-CmLGKRcK.cjs → vue-ui-timer-Zx3zQyAq.cjs} +1 -1
- package/dist/{vue-ui-timer-DO_VKZHm.js → vue-ui-timer-t0fSn-_9.js} +6 -6
- package/dist/{vue-ui-tiremarks-BPxAgMQx.cjs → vue-ui-tiremarks-0JbzmUh6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BKnAiR_H.js → vue-ui-tiremarks-5YPN_NoO.js} +7 -7
- package/dist/{vue-ui-treemap-BnKYnm8A.cjs → vue-ui-treemap-B4BUhmni.cjs} +1 -1
- package/dist/{vue-ui-treemap-oE2QDc_9.js → vue-ui-treemap-kwbjdy0P.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CHUZAnfv.cjs → vue-ui-vertical-bar-CCNvuAMI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BfFnXSO5.js → vue-ui-vertical-bar-DRuH5f-B.js} +13 -13
- package/dist/{vue-ui-waffle-YwQAGMlZ.js → vue-ui-waffle-B9zlDgeL.js} +13 -13
- package/dist/{vue-ui-waffle-DxL_bhhX.cjs → vue-ui-waffle-CqVwTFrC.cjs} +1 -1
- package/dist/{vue-ui-wheel-gZQIZUx1.js → vue-ui-wheel-CAS9hnki.js} +8 -8
- package/dist/{vue-ui-wheel-CbEf5uhL.cjs → vue-ui-wheel-CGWDNbH-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CXpfOcDf.js → vue-ui-word-cloud-BKRBPyWR.js} +11 -11
- package/dist/{vue-ui-word-cloud-Ddmhs5i-.cjs → vue-ui-word-cloud-CxbTioTG.cjs} +1 -1
- package/dist/{vue-ui-xy-BFdih9uG.cjs → vue-ui-xy-DRn-1RsC.cjs} +2 -2
- package/dist/{vue-ui-xy-BHGNHgRk.js → vue-ui-xy-D_OI_ry8.js} +15 -15
- package/dist/{vue-ui-xy-canvas-BFZjHXBj.js → vue-ui-xy-canvas-DXDh8Vzd.js} +13 -13
- package/dist/{vue-ui-xy-canvas-hM1oa-dn.cjs → vue-ui-xy-canvas-DrjjMaQM.cjs} +1 -1
- package/package.json +2 -7
- package/dist/PenAndPaper-DSEAEpTs.cjs +0 -1
- package/dist/index-Dwoe0gcF.cjs +0 -15
- package/dist/index-Fl-W8YeZ.js +0 -3971
- package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
- package/dist/vue-ui-circle-pack-DByIHOMA.js +0 -670
- package/dist/vue-ui-circle-pack-DnwKX38S.cjs +0 -1
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { useCssVars as je, computed as w, ref as m, watch as _e, onMounted as qe, watchEffect as Xe, createElementBlock as b, openBlock as f, unref as y, normalizeStyle as J, normalizeClass as ze, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ye, withCtx as _, normalizeProps as B, guardReactiveProps as H, createVNode as We, Fragment as K, renderList as Ze, createElementVNode as C, mergeProps as $e, toDisplayString as j, createTextVNode as Je, nextTick as Te } from "vue";
|
|
2
|
+
import { u as Ke, c as Pe, t as ue, p as Q, a as Qe, o as et, e as tt, b as lt, d as at, h as Ie, f as ie, X as ot, l as st, G as q, a7 as nt, q as rt, r as ut, i as Oe } from "./index-BVM1Hjat.js";
|
|
3
|
+
import { u as Se } from "./useNestedProp-B7524T_I.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-BuEZ1Mqw.js";
|
|
5
|
+
import { _ as vt } from "./Title-CUbvh4nY.js";
|
|
6
|
+
import { P as dt } from "./PenAndPaper-Dq-ECAue.js";
|
|
7
|
+
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { _ as ft } from "./PackageVersion-V-_CbVlt.js";
|
|
9
|
+
import yt from "./vue-ui-accordion-Zeu2qcSI.js";
|
|
10
|
+
import { D as mt } from "./DataTable-2Igu4lk9.js";
|
|
11
|
+
import pt from "./vue-ui-skeleton-CjC_RR5C.js";
|
|
12
|
+
import { u as bt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { t as gt, u as kt } from "./useResponsive-vZgZwV-S.js";
|
|
14
|
+
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function Ne(n, c = 0) {
|
|
16
|
+
const h = n.reduce((a, { x: s, r: u }) => Math.min(a, s - u - c), 1 / 0), r = n.reduce((a, { x: s, r: u }) => Math.max(a, s + u + c), -1 / 0), v = n.reduce((a, { y: s, r: u }) => Math.min(a, s - u - c), 1 / 0), o = n.reduce((a, { y: s, r: u }) => Math.max(a, s + u + c), -1 / 0);
|
|
17
|
+
return [h, v, r - h, o - v];
|
|
18
|
+
}
|
|
19
|
+
function wt(n, c, h) {
|
|
20
|
+
const r = n._, v = n.next._, o = r.r + v.r, a = (r.x * v.r + v.x * r.r) / o, s = (r.y * v.r + v.y * r.r) / o;
|
|
21
|
+
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
22
|
+
}
|
|
23
|
+
function Fe(n, c, h) {
|
|
24
|
+
const r = wt, v = n.length;
|
|
25
|
+
if (!v) return n;
|
|
26
|
+
let o, a, s;
|
|
27
|
+
if (o = n[0], o.x = 0, o.y = 0, !(v > 1) || (a = n[1], o.x = -a.r, a.x = o.r, a.y = 0, !(v > 2))) return n;
|
|
28
|
+
Me(a, o, s = n[2]), o = new ee(o), a = new ee(a), s = new ee(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
|
+
Me(o._, a._, s = n[u]), s = new ee(s);
|
|
31
|
+
let g = a.next, z = o.previous, R = a._.r, A = o._.r;
|
|
32
|
+
do
|
|
33
|
+
if (R <= A) {
|
|
34
|
+
if (Re(g._, s._)) {
|
|
35
|
+
a = g, o.next = a, a.previous = o, --u;
|
|
36
|
+
continue e;
|
|
37
|
+
}
|
|
38
|
+
R += g._.r, g = g.next;
|
|
39
|
+
} else {
|
|
40
|
+
if (Re(z._, s._)) {
|
|
41
|
+
o = z, o.next = a, a.previous = o, --u;
|
|
42
|
+
continue e;
|
|
43
|
+
}
|
|
44
|
+
A += z._.r, z = z.previous;
|
|
45
|
+
}
|
|
46
|
+
while (g !== z.next);
|
|
47
|
+
s.previous = o, s.next = a, o.next = a.previous = a = s;
|
|
48
|
+
let E = r(o, h, c), X;
|
|
49
|
+
for (; (s = s.next) !== a; )
|
|
50
|
+
(X = r(s, h, c)) < E && (o = s, E = X);
|
|
51
|
+
a = o.next;
|
|
52
|
+
}
|
|
53
|
+
return n;
|
|
54
|
+
}
|
|
55
|
+
function Me(n, c, h) {
|
|
56
|
+
const r = n.x - c.x, v = n.y - c.y, o = r * r + v * v;
|
|
57
|
+
if (o) {
|
|
58
|
+
const a = (c.r + h.r) ** 2, s = (n.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 = n.x - u * r - g * v, h.y = n.y - u * v + g * r;
|
|
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 * r - g * v, h.y = c.y + u * v + g * r;
|
|
65
|
+
}
|
|
66
|
+
} else
|
|
67
|
+
h.x = c.x + h.r, h.y = c.y;
|
|
68
|
+
}
|
|
69
|
+
function Re(n, c) {
|
|
70
|
+
const h = n.r + c.r - 1e-6, r = c.x - n.x, v = c.y - n.y;
|
|
71
|
+
return h > 0 && h * h > r * r + v * v;
|
|
72
|
+
}
|
|
73
|
+
class ee {
|
|
74
|
+
constructor(c) {
|
|
75
|
+
this._ = c, this.next = null, this.previous = null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const Ct = ["id"], _t = ["xmlns", "viewBox", "height", "width"], zt = ["x", "y", "width", "height"], $t = ["id"], Tt = ["stop-color"], Pt = ["stop-color"], It = ["stop-color"], Ot = { key: 0 }, St = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Nt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Ft = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Mt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Rt = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], At = {
|
|
79
|
+
key: 0,
|
|
80
|
+
style: { pointerEvents: "none" }
|
|
81
|
+
}, Et = { key: 1 }, Dt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Lt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = {
|
|
82
|
+
key: 6,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Gt = ["innerHTML"], Ut = {
|
|
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(n, { expose: c, emit: h }) {
|
|
102
|
+
je((l) => ({
|
|
103
|
+
a03951ec: N.value,
|
|
104
|
+
"002ea583": ae.value
|
|
105
|
+
}));
|
|
106
|
+
const r = n, v = h, { vue_ui_circle_pack: o } = Ke(), a = w(() => !!r.dataset && r.dataset.length), s = m(Pe()), u = m(null), g = m(null), z = m(null), R = m(0), A = m(0), E = m(0), X = m(null), e = w({
|
|
107
|
+
get: () => he(),
|
|
108
|
+
set: (l) => l
|
|
109
|
+
}), { svgRef: ce } = bt({ config: e.value.style.chart.title }), {
|
|
110
|
+
userOptionsVisible: te,
|
|
111
|
+
setUserOptionsVisibility: ve,
|
|
112
|
+
keepUserOptionState: de
|
|
113
|
+
} = ht({ config: e.value });
|
|
114
|
+
function he() {
|
|
115
|
+
const l = Se({
|
|
116
|
+
userConfig: r.config,
|
|
117
|
+
defaultConfig: o
|
|
118
|
+
});
|
|
119
|
+
return l.theme ? {
|
|
120
|
+
...Se({
|
|
121
|
+
userConfig: Qe.vue_ui_circle_pack[l.theme] || r.config,
|
|
122
|
+
defaultConfig: l
|
|
123
|
+
}),
|
|
124
|
+
customPalette: ue[l.theme] || Q
|
|
125
|
+
} : l;
|
|
126
|
+
}
|
|
127
|
+
_e(() => r.config, (l) => {
|
|
128
|
+
e.value = he(), te.value = !e.value.userOptions.showOnChartHover, le(), R.value += 1, A.value += 1, D.value.showTable = e.value.table.show;
|
|
129
|
+
}, { deep: !0 });
|
|
130
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: me, generateImage: pe } = it({
|
|
131
|
+
elementId: `vue-ui-circle-pack_${s.value}`,
|
|
132
|
+
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
133
|
+
}), Ae = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = m({
|
|
134
|
+
showTable: e.value.table.show
|
|
135
|
+
}), be = m(null), I = m({ h: 10, w: 10 }), ge = m(0), O = m([0, 0, 100, 100]);
|
|
136
|
+
async function le() {
|
|
137
|
+
et(r.dataset) && tt({
|
|
138
|
+
componentName: "VueUiCirclePack",
|
|
139
|
+
type: "dataset"
|
|
140
|
+
}), S.value = await Fe(Y.value), $.value = Ne(S.value, 1).join(" ");
|
|
141
|
+
const l = gt(() => {
|
|
142
|
+
const { width: i, height: t, heightTitle: p, heightNoTitle: F } = kt({
|
|
143
|
+
chart: u.value,
|
|
144
|
+
title: g.value,
|
|
145
|
+
noTitle: z.value
|
|
146
|
+
}), ne = i || 10, re = t && t > 10 ? t : 10;
|
|
147
|
+
ge.value = e.value.style.chart.title.text ? p : F, requestAnimationFrame(() => {
|
|
148
|
+
I.value.w = ne, I.value.h = re - ge.value, Te(async () => {
|
|
149
|
+
const Be = Y.value.map((He) => ({ ...He }));
|
|
150
|
+
S.value = await Fe(Be, I.value.h, I.value.w), O.value = Ne(S.value, 1), $.value = O.value.join(" ");
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
be.value = new ResizeObserver(l), be.value.observe(u.value.parentNode);
|
|
155
|
+
}
|
|
156
|
+
qe(le), _e(() => r.dataset, async (l) => {
|
|
157
|
+
await le();
|
|
158
|
+
}, { deep: !0 });
|
|
159
|
+
const Ee = w(() => lt(e.value.customPalette)), Y = w(() => r.dataset.map((l, i) => {
|
|
160
|
+
const t = at(l.color) || Ee.value[i] || ue[e.value.theme || "default"][i % ue[e.value.theme || "default"].length] || Q[i] || Q[i % Q.length];
|
|
161
|
+
return {
|
|
162
|
+
...l,
|
|
163
|
+
r: l.value,
|
|
164
|
+
id: Pe(),
|
|
165
|
+
color: t
|
|
166
|
+
};
|
|
167
|
+
}).filter((l) => ![null, void 0, 1 / 0, -1 / 0].includes(l.value))), S = m([]), $ = m("0 0 100 100"), L = w(() => Math.max(...S.value.map((l) => l.r)));
|
|
168
|
+
function ke(l, i) {
|
|
169
|
+
return i / L.value * l;
|
|
170
|
+
}
|
|
171
|
+
const d = m(null);
|
|
172
|
+
function De(l) {
|
|
173
|
+
e.value.style.chart.circles.zoom.show && (d.value = l);
|
|
174
|
+
}
|
|
175
|
+
const N = w(() => d.value ? d.value.r : 0), ae = w(() => P.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), T = m(0), Le = w(() => ({
|
|
176
|
+
pointerEvents: "none",
|
|
177
|
+
opacity: T.value,
|
|
178
|
+
filter: `drop-shadow(0px 0px 6px ${Ie(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
179
|
+
})), V = m(N.value);
|
|
180
|
+
Xe(() => {
|
|
181
|
+
V.value = N.value, T.value = 0;
|
|
182
|
+
let l = null;
|
|
183
|
+
function i(t) {
|
|
184
|
+
l || (l = t);
|
|
185
|
+
const p = (t - l) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
186
|
+
p < 1 ? (V.value = N.value + (ae.value - N.value) * p, T.value = 0 + e.value.style.chart.circles.zoom.opacity * p, requestAnimationFrame(i)) : (V.value = ae.value, T.value = e.value.style.chart.circles.zoom.opacity);
|
|
187
|
+
}
|
|
188
|
+
requestAnimationFrame(i);
|
|
189
|
+
});
|
|
190
|
+
const G = w(() => ({
|
|
191
|
+
name: e.value.style.chart.circles.zoom.label.name.fontSize * O.value[3] / 300,
|
|
192
|
+
value: e.value.style.chart.circles.zoom.label.value.fontSize * O.value[3] / 300
|
|
193
|
+
}));
|
|
194
|
+
function oe(l) {
|
|
195
|
+
return Oe(
|
|
196
|
+
e.value.style.chart.circles.labels.value.formatter,
|
|
197
|
+
l.value,
|
|
198
|
+
ie({
|
|
199
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
200
|
+
v: l.value,
|
|
201
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
202
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
203
|
+
})
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
function Ve() {
|
|
207
|
+
return Oe(
|
|
208
|
+
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
209
|
+
d.value.value,
|
|
210
|
+
ie({
|
|
211
|
+
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
212
|
+
v: d.value.value,
|
|
213
|
+
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
214
|
+
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
215
|
+
})
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function xe(l) {
|
|
219
|
+
if (!l)
|
|
220
|
+
return 0;
|
|
221
|
+
const i = l.r / oe(l).length * (oe(l).length === 1 ? 1 : 2);
|
|
222
|
+
return Math.min(l.r / 2.5, i);
|
|
223
|
+
}
|
|
224
|
+
const U = m(!1);
|
|
225
|
+
function Ge(l) {
|
|
226
|
+
U.value = l, E.value += 1;
|
|
227
|
+
}
|
|
228
|
+
const P = m(!1);
|
|
229
|
+
function se() {
|
|
230
|
+
P.value = !P.value;
|
|
231
|
+
}
|
|
232
|
+
const W = w(() => {
|
|
233
|
+
const l = Y.value.map((t) => ({
|
|
234
|
+
name: t.name,
|
|
235
|
+
value: t.value,
|
|
236
|
+
color: t.color
|
|
237
|
+
})).toSorted((t, p) => p.value - t.value), i = l.map((t) => t.value);
|
|
238
|
+
return { head: l, body: i };
|
|
239
|
+
});
|
|
240
|
+
function we() {
|
|
241
|
+
Te(() => {
|
|
242
|
+
const l = W.value.head.map((p, F) => [[
|
|
243
|
+
p.name
|
|
244
|
+
], [W.value.body[F]]]), i = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(l), t = rt(i);
|
|
245
|
+
ut({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
const Z = w(() => {
|
|
249
|
+
const l = [
|
|
250
|
+
e.value.table.columnNames.datapoint,
|
|
251
|
+
e.value.table.columnNames.value
|
|
252
|
+
], i = W.value.head.map((F, ne) => {
|
|
253
|
+
const re = ie({
|
|
254
|
+
p: e.value.style.chart.circles.labels.value.prefix,
|
|
255
|
+
v: W.value.body[ne],
|
|
256
|
+
s: e.value.style.chart.circles.labels.value.suffix,
|
|
257
|
+
r: e.value.style.chart.circles.labels.value.rounding
|
|
258
|
+
});
|
|
259
|
+
return [
|
|
260
|
+
{
|
|
261
|
+
color: F.color,
|
|
262
|
+
name: F.name
|
|
263
|
+
},
|
|
264
|
+
re
|
|
265
|
+
];
|
|
266
|
+
}), t = {
|
|
267
|
+
th: {
|
|
268
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
269
|
+
color: e.value.table.th.color,
|
|
270
|
+
outline: e.value.table.th.outline
|
|
271
|
+
},
|
|
272
|
+
td: {
|
|
273
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
274
|
+
color: e.value.table.td.color,
|
|
275
|
+
outline: e.value.table.td.outline
|
|
276
|
+
},
|
|
277
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
278
|
+
};
|
|
279
|
+
return {
|
|
280
|
+
colNames: [
|
|
281
|
+
e.value.table.columnNames.datapoint,
|
|
282
|
+
e.value.table.columnNames.value
|
|
283
|
+
],
|
|
284
|
+
head: l,
|
|
285
|
+
body: i,
|
|
286
|
+
config: t
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
function Ce() {
|
|
290
|
+
D.value.showTable = !D.value.showTable;
|
|
291
|
+
}
|
|
292
|
+
function Ue() {
|
|
293
|
+
return Y.value;
|
|
294
|
+
}
|
|
295
|
+
return c({
|
|
296
|
+
getData: Ue,
|
|
297
|
+
generateCsv: we,
|
|
298
|
+
generatePdf: me,
|
|
299
|
+
generateImage: pe,
|
|
300
|
+
toggleTable: Ce,
|
|
301
|
+
toggleAnnotator: se
|
|
302
|
+
}), (l, i) => (f(), b("div", {
|
|
303
|
+
id: `vue-ui-circle-pack_${s.value}`,
|
|
304
|
+
class: ze(`vue-ui-circle-pack ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
305
|
+
ref_key: "circlePackChart",
|
|
306
|
+
ref: u,
|
|
307
|
+
style: J(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
308
|
+
onMouseenter: i[2] || (i[2] = () => y(ve)(!0)),
|
|
309
|
+
onMouseleave: i[3] || (i[3] = () => y(ve)(!1))
|
|
310
|
+
}, [
|
|
311
|
+
e.value.userOptions.buttons.annotator ? (f(), M(dt, {
|
|
312
|
+
key: 0,
|
|
313
|
+
svgRef: y(ce),
|
|
314
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
315
|
+
color: e.value.style.chart.color,
|
|
316
|
+
active: P.value,
|
|
317
|
+
scale: L.value / 100,
|
|
318
|
+
onClose: se
|
|
319
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
|
|
320
|
+
x(l.$slots, "userConfig", {}, void 0, !0),
|
|
321
|
+
Ae.value ? (f(), b("div", {
|
|
322
|
+
key: 1,
|
|
323
|
+
ref_key: "noTitle",
|
|
324
|
+
ref: z,
|
|
325
|
+
class: "vue-data-ui-no-title-space",
|
|
326
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
327
|
+
}, null, 512)) : k("", !0),
|
|
328
|
+
e.value.style.chart.title.text ? (f(), b("div", {
|
|
329
|
+
key: 2,
|
|
330
|
+
ref_key: "chartTitle",
|
|
331
|
+
ref: g,
|
|
332
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
333
|
+
}, [
|
|
334
|
+
(f(), M(vt, {
|
|
335
|
+
key: `title_${R.value}`,
|
|
336
|
+
config: {
|
|
337
|
+
title: {
|
|
338
|
+
cy: "donut-div-title",
|
|
339
|
+
...e.value.style.chart.title
|
|
340
|
+
},
|
|
341
|
+
subtitle: {
|
|
342
|
+
cy: "donut-div-subtitle",
|
|
343
|
+
...e.value.style.chart.title.subtitle
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}, null, 8, ["config"]))
|
|
347
|
+
], 512)) : k("", !0),
|
|
348
|
+
e.value.userOptions.show && a.value && (y(de) || y(te)) ? (f(), M(ct, {
|
|
349
|
+
ref: "details",
|
|
350
|
+
key: `user_option_${E.value}`,
|
|
351
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
352
|
+
color: e.value.style.chart.color,
|
|
353
|
+
isPrinting: y(fe),
|
|
354
|
+
isImaging: y(ye),
|
|
355
|
+
uid: s.value,
|
|
356
|
+
hasTooltip: !1,
|
|
357
|
+
hasLabel: !1,
|
|
358
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
359
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
360
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
361
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
362
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
363
|
+
isFullscreen: U.value,
|
|
364
|
+
chartElement: u.value,
|
|
365
|
+
position: e.value.userOptions.position,
|
|
366
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
367
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
368
|
+
isAnnotation: P.value,
|
|
369
|
+
onToggleFullscreen: Ge,
|
|
370
|
+
onGeneratePdf: y(me),
|
|
371
|
+
onGenerateCsv: we,
|
|
372
|
+
onGenerateImage: y(pe),
|
|
373
|
+
onToggleTable: Ce,
|
|
374
|
+
onToggleAnnotator: se,
|
|
375
|
+
style: J({
|
|
376
|
+
visibility: y(de) ? y(te) ? "visible" : "hidden" : "visible"
|
|
377
|
+
})
|
|
378
|
+
}, Ye({ _: 2 }, [
|
|
379
|
+
l.$slots.menuIcon ? {
|
|
380
|
+
name: "menuIcon",
|
|
381
|
+
fn: _(({ isOpen: t, color: p }) => [
|
|
382
|
+
x(l.$slots, "menuIcon", B(H({ isOpen: t, color: p })), void 0, !0)
|
|
383
|
+
]),
|
|
384
|
+
key: "0"
|
|
385
|
+
} : void 0,
|
|
386
|
+
l.$slots.optionPdf ? {
|
|
387
|
+
name: "optionPdf",
|
|
388
|
+
fn: _(() => [
|
|
389
|
+
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
390
|
+
]),
|
|
391
|
+
key: "1"
|
|
392
|
+
} : void 0,
|
|
393
|
+
l.$slots.optionCsv ? {
|
|
394
|
+
name: "optionCsv",
|
|
395
|
+
fn: _(() => [
|
|
396
|
+
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
397
|
+
]),
|
|
398
|
+
key: "2"
|
|
399
|
+
} : void 0,
|
|
400
|
+
l.$slots.optionImg ? {
|
|
401
|
+
name: "optionImg",
|
|
402
|
+
fn: _(() => [
|
|
403
|
+
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
404
|
+
]),
|
|
405
|
+
key: "3"
|
|
406
|
+
} : void 0,
|
|
407
|
+
l.$slots.optionTable ? {
|
|
408
|
+
name: "optionTable",
|
|
409
|
+
fn: _(() => [
|
|
410
|
+
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
411
|
+
]),
|
|
412
|
+
key: "4"
|
|
413
|
+
} : void 0,
|
|
414
|
+
l.$slots.optionFullscreen ? {
|
|
415
|
+
name: "optionFullscreen",
|
|
416
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: p }) => [
|
|
417
|
+
x(l.$slots, "optionFullscreen", B(H({ toggleFullscreen: t, isFullscreen: p })), void 0, !0)
|
|
418
|
+
]),
|
|
419
|
+
key: "5"
|
|
420
|
+
} : void 0,
|
|
421
|
+
l.$slots.optionAnnotator ? {
|
|
422
|
+
name: "optionAnnotator",
|
|
423
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: p }) => [
|
|
424
|
+
x(l.$slots, "optionAnnotator", B(H({ toggleAnnotator: t, isAnnotator: p })), void 0, !0)
|
|
425
|
+
]),
|
|
426
|
+
key: "6"
|
|
427
|
+
} : void 0
|
|
428
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
429
|
+
a.value ? (f(), b("svg", {
|
|
430
|
+
key: 4,
|
|
431
|
+
ref_key: "svgRef",
|
|
432
|
+
ref: ce,
|
|
433
|
+
xmlns: y(ot),
|
|
434
|
+
viewBox: $.value,
|
|
435
|
+
height: I.value.h,
|
|
436
|
+
width: I.value.w,
|
|
437
|
+
class: ze({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
438
|
+
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
439
|
+
}, [
|
|
440
|
+
We(ft),
|
|
441
|
+
l.$slots["chart-background"] ? (f(), b("foreignObject", {
|
|
442
|
+
key: 0,
|
|
443
|
+
x: $.value.x,
|
|
444
|
+
y: $.value.y,
|
|
445
|
+
width: $.value.width,
|
|
446
|
+
height: $.value.height,
|
|
447
|
+
style: {
|
|
448
|
+
pointerEvents: "none"
|
|
449
|
+
}
|
|
450
|
+
}, [
|
|
451
|
+
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
452
|
+
], 8, zt)) : k("", !0),
|
|
453
|
+
(f(!0), b(K, null, Ze(S.value, (t) => (f(), b(K, null, [
|
|
454
|
+
C("defs", null, [
|
|
455
|
+
C("radialGradient", {
|
|
456
|
+
id: t.id,
|
|
457
|
+
fy: "30%"
|
|
458
|
+
}, [
|
|
459
|
+
C("stop", {
|
|
460
|
+
offset: "10%",
|
|
461
|
+
"stop-color": y(st)(t.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
462
|
+
}, null, 8, Tt),
|
|
463
|
+
C("stop", {
|
|
464
|
+
offset: "90%",
|
|
465
|
+
"stop-color": y(Ie)(t.color, 0.1)
|
|
466
|
+
}, null, 8, Pt),
|
|
467
|
+
C("stop", {
|
|
468
|
+
offset: "100%",
|
|
469
|
+
"stop-color": t.color
|
|
470
|
+
}, null, 8, It)
|
|
471
|
+
], 8, $t)
|
|
472
|
+
]),
|
|
473
|
+
l.$slots.pattern ? (f(), b("g", Ot, [
|
|
474
|
+
C("defs", null, [
|
|
475
|
+
x(l.$slots, "pattern", $e({ ref_for: !0 }, { ...t, patternId: `pattern_${s.value}_${t.id}` }), void 0, !0)
|
|
476
|
+
])
|
|
477
|
+
])) : k("", !0),
|
|
478
|
+
C("rect", {
|
|
479
|
+
x: t.x - t.r,
|
|
480
|
+
y: t.y - t.r,
|
|
481
|
+
width: t.r * 2,
|
|
482
|
+
height: t.r * 2,
|
|
483
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
484
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
485
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color,
|
|
486
|
+
rx: t.r,
|
|
487
|
+
onMouseenter: () => De(t),
|
|
488
|
+
onMouseout: i[0] || (i[0] = (p) => d.value = null),
|
|
489
|
+
onClick: (p) => v("selectDatapoint", t)
|
|
490
|
+
}, null, 40, St),
|
|
491
|
+
l.$slots.pattern ? (f(), b("rect", {
|
|
492
|
+
key: 1,
|
|
493
|
+
x: t.x - t.r,
|
|
494
|
+
y: t.y - t.r,
|
|
495
|
+
width: t.r * 2,
|
|
496
|
+
height: t.r * 2,
|
|
497
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
498
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
499
|
+
fill: `url(#pattern_${s.value}_${t.id})`,
|
|
500
|
+
rx: t.r,
|
|
501
|
+
style: {
|
|
502
|
+
pointerEvents: "none"
|
|
503
|
+
}
|
|
504
|
+
}, null, 8, Nt)) : k("", !0),
|
|
505
|
+
l.$slots["data-label"] ? x(l.$slots, "data-label", $e({
|
|
506
|
+
key: 2,
|
|
507
|
+
ref_for: !0
|
|
508
|
+
}, { ...t, createTSpans: y(nt), fontSize: { name: t.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: xe(t) * 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 : y(q)(t.color) }), void 0, !0) : (f(), b(K, { key: 3 }, [
|
|
509
|
+
e.value.style.chart.circles.labels.name.show && t.name ? (f(), b("text", {
|
|
510
|
+
key: 0,
|
|
511
|
+
style: {
|
|
512
|
+
pointerEvents: "none",
|
|
513
|
+
transition: "opacity 0.2s ease-in-out"
|
|
514
|
+
},
|
|
515
|
+
opacity: d.value && !P.value ? 0.2 : 1,
|
|
516
|
+
x: t.x,
|
|
517
|
+
y: t.y + ke(t.r, e.value.style.chart.circles.labels.name.offsetY) - t.r / 10,
|
|
518
|
+
"font-size": t.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
519
|
+
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : y(q)(t.color),
|
|
520
|
+
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
521
|
+
"text-anchor": "middle"
|
|
522
|
+
}, j(t.name), 9, Ft)) : k("", !0),
|
|
523
|
+
e.value.style.chart.circles.labels.value.show ? (f(), b("text", {
|
|
524
|
+
key: 1,
|
|
525
|
+
style: {
|
|
526
|
+
pointerEvents: "none",
|
|
527
|
+
transition: "opacity 0.2s ease-in-out"
|
|
528
|
+
},
|
|
529
|
+
opacity: d.value && !P.value ? 0.2 : 1,
|
|
530
|
+
x: t.x,
|
|
531
|
+
y: t.y + ke(t.r, e.value.style.chart.circles.labels.value.offsetY) + t.r / 2.5,
|
|
532
|
+
"font-size": xe(t) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
533
|
+
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : y(q)(t.color),
|
|
534
|
+
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
535
|
+
"text-anchor": "middle"
|
|
536
|
+
}, j(oe(t)), 9, Mt)) : k("", !0)
|
|
537
|
+
], 64))
|
|
538
|
+
], 64))), 256)),
|
|
539
|
+
d.value && e.value.style.chart.circles.zoom.show && !P.value ? (f(), b(K, { key: 1 }, [
|
|
540
|
+
C("circle", {
|
|
541
|
+
style: J(Le.value),
|
|
542
|
+
cx: d.value.x,
|
|
543
|
+
cy: d.value.y,
|
|
544
|
+
r: V.value,
|
|
545
|
+
opacity: T.value,
|
|
546
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
547
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth * L.value / 100,
|
|
548
|
+
fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
|
|
549
|
+
}, null, 12, Rt),
|
|
550
|
+
l.$slots["zoom-label"] ? (f(), b("g", At, [
|
|
551
|
+
x(l.$slots, "zoom-label", B(H({ ...d.value, zoomOpacity: T.value, currentRadius: V.value, fontSize: G.value })), void 0, !0)
|
|
552
|
+
])) : (f(), b("g", Et, [
|
|
553
|
+
C("text", {
|
|
554
|
+
style: {
|
|
555
|
+
pointerEvents: "none"
|
|
556
|
+
},
|
|
557
|
+
opacity: T.value,
|
|
558
|
+
x: d.value.x,
|
|
559
|
+
y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - G.value.name / 4,
|
|
560
|
+
"text-anchor": "middle",
|
|
561
|
+
"font-size": G.value.name,
|
|
562
|
+
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : y(q)(d.value.color),
|
|
563
|
+
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
564
|
+
}, j(d.value.name), 9, Dt),
|
|
565
|
+
C("text", {
|
|
566
|
+
style: {
|
|
567
|
+
pointerEvents: "none"
|
|
568
|
+
},
|
|
569
|
+
opacity: T.value,
|
|
570
|
+
x: d.value.x,
|
|
571
|
+
y: d.value.y + G.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
572
|
+
"text-anchor": "middle",
|
|
573
|
+
"font-size": G.value.value,
|
|
574
|
+
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : y(q)(d.value.color),
|
|
575
|
+
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
576
|
+
}, j(Ve()), 9, Lt)
|
|
577
|
+
]))
|
|
578
|
+
], 64)) : k("", !0),
|
|
579
|
+
x(l.$slots, "svg", {
|
|
580
|
+
svg: { ...$.value }
|
|
581
|
+
}, void 0, !0)
|
|
582
|
+
], 14, _t)) : k("", !0),
|
|
583
|
+
a.value ? k("", !0) : (f(), M(pt, {
|
|
584
|
+
key: 5,
|
|
585
|
+
config: {
|
|
586
|
+
type: "circlePack",
|
|
587
|
+
style: {
|
|
588
|
+
color: "#CCCCCC"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
})),
|
|
592
|
+
l.$slots.watermark ? (f(), b("div", Vt, [
|
|
593
|
+
x(l.$slots, "watermark", B(H({ isPrinting: y(fe) || y(ye) })), void 0, !0)
|
|
594
|
+
])) : k("", !0),
|
|
595
|
+
l.$slots.source ? (f(), b("div", {
|
|
596
|
+
key: 7,
|
|
597
|
+
ref_key: "source",
|
|
598
|
+
ref: X,
|
|
599
|
+
dir: "auto"
|
|
600
|
+
}, [
|
|
601
|
+
x(l.$slots, "source", {}, void 0, !0)
|
|
602
|
+
], 512)) : k("", !0),
|
|
603
|
+
a.value ? (f(), M(yt, {
|
|
604
|
+
key: 8,
|
|
605
|
+
hideDetails: "",
|
|
606
|
+
config: {
|
|
607
|
+
open: D.value.showTable,
|
|
608
|
+
maxHeight: 1e4,
|
|
609
|
+
body: {
|
|
610
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
611
|
+
color: e.value.style.chart.color
|
|
612
|
+
},
|
|
613
|
+
head: {
|
|
614
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
615
|
+
color: e.value.style.chart.color
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
content: _(() => [
|
|
620
|
+
(f(), M(mt, {
|
|
621
|
+
key: `table_${A.value}`,
|
|
622
|
+
colNames: Z.value.colNames,
|
|
623
|
+
head: Z.value.head,
|
|
624
|
+
body: Z.value.body,
|
|
625
|
+
config: Z.value.config,
|
|
626
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
|
+
onClose: i[1] || (i[1] = (t) => D.value.showTable = !1)
|
|
628
|
+
}, {
|
|
629
|
+
th: _(({ th: t }) => [
|
|
630
|
+
C("div", {
|
|
631
|
+
innerHTML: t,
|
|
632
|
+
style: { display: "flex", "align-items": "center" }
|
|
633
|
+
}, null, 8, Gt)
|
|
634
|
+
]),
|
|
635
|
+
td: _(({ td: t }) => [
|
|
636
|
+
Je(j(t.name || t), 1)
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
640
|
+
]),
|
|
641
|
+
_: 1
|
|
642
|
+
}, 8, ["config"])) : k("", !0)
|
|
643
|
+
], 46, Ct));
|
|
644
|
+
}
|
|
645
|
+
}, al = /* @__PURE__ */ xt(Ut, [["__scopeId", "data-v-98ca8327"]]);
|
|
646
|
+
export {
|
|
647
|
+
al as default
|
|
648
|
+
};
|