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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function C(e,i,o,t={}){if(o<=0)return;e.save();const{color:s="black",lineWidth:h=1,lineCap:g="round",lineJoin:f="round",lineDash:w=null,lineDashoffset:u=0,shadowColor:l=null,shadowBlur:r=0,shadowOffsetX:y=0,shadowOffsetY:d=0,fillStyle:N="#FFFFFF"}=t;e.beginPath(),e.arc(i.x,i.y,o,0,2*Math.PI),e.strokeStyle=s,e.lineWidth=h,e.lineCap=g,e.lineJoin=f,w&&(e.setLineDash(w),e.lineDashoffset=u),l&&(e.shadowColor=l,e.shadowOffsetX=y,e.shadowOffsetY=d),r&&(e.shadowBlur=r),N&&(e.fillStyle=N),e.fillStyle&&e.fill(),e.stroke(),e.restore()}function m(e,i,o={}){if(!i.length)return;e.save();const{color:t="black",lineWidth:s=1,lineCap:h="round",lineJoin:g="round",lineDash:f=null,lineDashoffset:w=0,shadowColor:u=null,shadowBlur:l=0,shadowOffsetX:r=0,shadowOffsetY:y=0}=o;e.beginPath(),e.moveTo(i[0].x,i[0].y);for(let d=1;d<i.length;d+=1)e.lineTo(i[d].x,i[d].y);e.strokeStyle=t,e.lineWidth=s,e.lineCap=h,e.lineJoin=g,f&&(e.setLineDash(f),e.lineDashoffset=w),u&&(e.shadowColor=u,e.shadowOffsetX=r,e.shadowOffsetY=y),l&&(e.shadowBlur=l),e.stroke(),e.restore()}function L(e,i,o={}){if(!i.length)return;e.save();const{strokeColor:t="black",lineWidth:s=1,lineCap:h="round",lineJoin:g="round",lineDash:f=null,lineDashoffset:w=0,fillColor:u=null,gradient:l=null,shadowColor:r=null,shadowBlur:y=0,shadowOffsetX:d=0,shadowOffsetY:N=0}=o;e.beginPath(),e.moveTo(i[0].x,i[0].y);for(let n=1;n<i.length;n+=1)e.lineTo(i[n].x,i[n].y);if(e.closePath(),e.strokeStyle=t,e.lineWidth=s,e.lineCap=h,e.lineJoin=g,f&&(e.setLineDash(f),e.lineDashoffset=w),r&&(e.shadowColor=r,e.shadowBlur=y,e.shadowOffsetX=d,e.shadowOffsetY=N),l){let n;l.type==="linear"?n=e.createLinearGradient(a(l.start.x,Number.MIN_VALUE),a(l.start.y,Number.MIN_VALUE),a(l.end.x,Number.MIN_VALUE*2),a(l.end.y,Number.MIN_VALUE*2)):l.type==="radial"&&(n=e.createRadialGradient(a(l.start.x,Number.MIN_VALUE),a(l.start.y,Number.MIN_VALUE),l.start.r||0,a(l.end.x,Number.MIN_VALUE*2),a(l.end.y,Number.MIN_VALUE*2),l.end.r||0)),n&&l.stops&&(l.stops.forEach(p=>{n.addColorStop(p.offset,p.color)}),e.fillStyle=n)}else u&&(e.fillStyle=u);e.fillStyle&&e.fill(),t&&e.stroke(),e.restore()}function I(e,i,o={}){if(!i.length)return;e.save();const{strokeColor:t="black",lineWidth:s=1,lineCap:h="round",lineJoin:g="round",lineDash:f=null,lineDashoffset:w=0,fillColor:u=null,gradient:l=null,shadowColor:r=null,shadowBlur:y=0,shadowOffsetX:d=0,shadowOffsetY:N=0}=o;e.beginPath(),e.moveTo(i[0].x,i[0].y);for(let n=1;n<i.length;n+=1)e.lineTo(i[n].x,i[n].y);if(e.closePath(),e.strokeStyle=t,e.lineWidth=s,e.lineCap=h,e.lineJoin=g,f&&(e.setLineDash(f),e.lineDashoffset=w),r&&(e.shadowColor=r,e.shadowBlur=y,e.shadowOffsetX=d,e.shadowOffsetY=N),l){let n;l.type==="linear"?n=e.createLinearGradient(a(l.start.x,Number.MIN_VALUE),a(l.start.y,Number.MIN_VALUE),a(l.end.x,Number.MIN_VALUE*2),a(l.end.y,Number.MIN_VALUE*2)):l.type==="radial"&&(n=e.createRadialGradient(a(l.start.x,Number.MIN_VALUE),a(l.start.y,Number.MIN_VALUE),l.start.r||0,a(l.end.x,Number.MIN_VALUE*2),a(l.end.y,Number.MIN_VALUE*2),l.end.r||0)),n&&l.stops&&(l.stops.forEach(p=>{n.addColorStop(p.offset,p.color)}),e.fillStyle=n)}else u&&(e.fillStyle=u);e.fillStyle&&e.fill(),t&&e.stroke(),e.restore()}function O(e,i,o,t,s={}){e.save();const{font:h="16px sans-serif",color:g="black",align:f="start",baseline:w="alphabetic",maxWidth:u=void 0,rotation:l=0,shadowColor:r=null,shadowBlur:y=0,shadowOffsetX:d=0,shadowOffsetY:N=0,strokeColor:n=null,lineWidth:p=1,globalAlpha:b=1}=s;e.font=h,e.fillStyle=g,e.textAlign=f,e.textBaseline=w,e.globalAlpha=b,r&&(e.shadowColor=r,e.shadowBlur=y,e.shadowOffsetX=d,e.shadowOffsetY=N),n&&(e.strokeStyle=n,e.lineWidth=p),l!==0&&(e.translate(o,t),e.rotate(Math.PI/180*l),e.translate(-o,-t)),e.fillText(i,o,t,u),n&&e.strokeText(i,o,t,u),e.restore()}function A(e,i=20){let o;return function(...t){const s=this;o||(e.apply(s,t),o=!0,setTimeout(()=>o=!1,i))}}function E(e,i,o=!1){let t;return function(...s){const h=this,g=function(){t=null,o||e.apply(h,s)},f=o&&!t;clearTimeout(t),t=setTimeout(g,i),f&&e.apply(h,s)}}function S(e){const i=document.createElement("canvas");return i.width=e.width||1,i.height=e.height||1,e.width||(e.width=1),e.height||(e.height=1),i.getContext("2d").drawImage(e,0,0),i}function a(e,i){return[null,void 0,NaN,1/0,-1/0].includes(e)?i:e}function k({chart:e,title:i=null,slicer:o=null,legend:t=null,source:s=null,noTitle:h=null}){let g=0,f=0;if(e){const w=e.parentNode,{height:u,width:l}=w.getBoundingClientRect();let r=0,y=0,d=0,N=0,n=0;i&&(r=i.getBoundingClientRect().height),o&&(y=o.getBoundingClientRect().height),t&&(d=t.getBoundingClientRect().height),s&&(N=s.getBoundingClientRect().height),h&&(n=h.getBoundingClientRect().height),g=u-r-y-d-N-n,f=l}return{width:f,height:g}}exports.circle=C;exports.cloneCanvas=S;exports.debounce=E;exports.line=m;exports.polygon=L;exports.rect=I;exports.text=O;exports.throttle=A;exports.useResponsive=k;
|
|
@@ -1,670 +0,0 @@
|
|
|
1
|
-
import { useCssVars as nt, computed as f, ref as h, watch as Me, onMounted as rt, watchEffect as ut, createElementBlock as c, openBlock as n, unref as i, normalizeStyle as Y, normalizeClass as Ne, createBlock as I, createCommentVNode as y, renderSlot as m, createSlots as it, withCtx as w, normalizeProps as E, guardReactiveProps as D, createVNode as ct, Fragment as P, renderList as oe, createElementVNode as k, mergeProps as _e, toDisplayString as L, createTextVNode as vt, nextTick as dt } from "vue";
|
|
2
|
-
import { u as ft, c as Ae, t as se, p as S, a as ht, o as yt, e as mt, b as pt, d as Re, m as bt, h as Ee, f as ne, X as gt, l as kt, G, a7 as wt, q as xt, r as Ct, i as De } from "./index-Cq7-va_5.js";
|
|
3
|
-
import { u as Le } from "./useNestedProp-BEyJNlaO.js";
|
|
4
|
-
import { u as $t, U as zt } from "./usePrinter-jRjc8Naz.js";
|
|
5
|
-
import { _ as Tt } from "./Title-CUHNtIyE.js";
|
|
6
|
-
import { P as Pt } from "./PenAndPaper-CjiJra09.js";
|
|
7
|
-
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { _ as Ot } from "./PackageVersion-CURzw4q1.js";
|
|
9
|
-
import It from "./vue-ui-accordion-vAQ_LLoP.js";
|
|
10
|
-
import { D as Ft } from "./DataTable-CMUyDj6S.js";
|
|
11
|
-
import Mt from "./vue-ui-skeleton-DIrE1OTF.js";
|
|
12
|
-
import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
-
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const At = ["id"], Rt = ["xmlns", "viewBox"], Et = ["x", "y", "width", "height"], Dt = ["id"], Lt = ["stop-color"], Gt = ["stop-color"], Ut = ["stop-color"], Vt = { key: 0 }, Bt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Ht = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Xt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Yt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Wt = ["d", "fill"], jt = ["cx", "cy", "r", "opacity", "stroke", "fill"], qt = {
|
|
15
|
-
key: 0,
|
|
16
|
-
style: { pointerEvents: "none" }
|
|
17
|
-
}, Zt = { key: 1 }, Jt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Kt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Qt = {
|
|
18
|
-
key: 6,
|
|
19
|
-
class: "vue-data-ui-watermark"
|
|
20
|
-
}, el = ["innerHTML"], tl = {
|
|
21
|
-
__name: "vue-ui-circle-pack",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default() {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["selectDatapoint"],
|
|
37
|
-
setup(Ge, { expose: Ue, emit: Ve }) {
|
|
38
|
-
nt((t) => ({
|
|
39
|
-
"1144c89d": O.value,
|
|
40
|
-
"5f554054": Z.value
|
|
41
|
-
}));
|
|
42
|
-
const $ = Ge, Be = Ve, { vue_ui_circle_pack: He } = ft(), U = f(() => !!$.dataset && $.dataset.length), F = h(Ae()), re = h(null), Xe = h(null), Ye = h(null), ue = h(0), ie = h(0), ce = h(0), We = h(null), e = f({
|
|
43
|
-
get: () => he(),
|
|
44
|
-
set: (t) => t
|
|
45
|
-
}), { svgRef: ve } = Nt({ config: e.value.style.chart.title }), {
|
|
46
|
-
userOptionsVisible: W,
|
|
47
|
-
setUserOptionsVisibility: de,
|
|
48
|
-
keepUserOptionState: fe
|
|
49
|
-
} = St({ config: e.value });
|
|
50
|
-
function he() {
|
|
51
|
-
const t = Le({
|
|
52
|
-
userConfig: $.config,
|
|
53
|
-
defaultConfig: He
|
|
54
|
-
});
|
|
55
|
-
return t.theme ? {
|
|
56
|
-
...Le({
|
|
57
|
-
userConfig: ht.vue_ui_circle_pack[t.theme] || $.config,
|
|
58
|
-
defaultConfig: t
|
|
59
|
-
}),
|
|
60
|
-
customPalette: se[t.theme] || S
|
|
61
|
-
} : t;
|
|
62
|
-
}
|
|
63
|
-
Me(() => $.config, (t) => {
|
|
64
|
-
e.value = he(), W.value = !e.value.userOptions.showOnChartHover, j(), ue.value += 1, ie.value += 1, M.value.showTable = e.value.table.show;
|
|
65
|
-
}, { deep: !0 });
|
|
66
|
-
const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } = $t({
|
|
67
|
-
elementId: `vue-ui-circle-pack_${F.value}`,
|
|
68
|
-
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
69
|
-
}), je = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = h({
|
|
70
|
-
showTable: e.value.table.show
|
|
71
|
-
});
|
|
72
|
-
async function j() {
|
|
73
|
-
yt($.dataset) && mt({
|
|
74
|
-
componentName: "VueUiCirclePack",
|
|
75
|
-
type: "dataset"
|
|
76
|
-
}), await Ke();
|
|
77
|
-
}
|
|
78
|
-
rt(j), Me(() => $.dataset, async (t) => {
|
|
79
|
-
await j();
|
|
80
|
-
}, { deep: !0 });
|
|
81
|
-
const ge = f(() => pt(e.value.customPalette));
|
|
82
|
-
function ke(t, a) {
|
|
83
|
-
return Math.hypot(a.x - t.x, a.y - t.y);
|
|
84
|
-
}
|
|
85
|
-
function we(t, a) {
|
|
86
|
-
return a.some((l) => ke(t, l) < t.radius + l.radius);
|
|
87
|
-
}
|
|
88
|
-
function qe(t, a, l, s) {
|
|
89
|
-
const v = a * 2;
|
|
90
|
-
for (let x of t)
|
|
91
|
-
for (let C = 0; C < 360; C += 1) {
|
|
92
|
-
let R = C * Math.PI / 180, u = x.x + v * Math.cos(R), o = x.y - v * Math.sin(R), g = { x: u, y: o, radius: a };
|
|
93
|
-
if (u - a >= 0 && u + a <= l && o - a >= 0 && o + a <= s && !we(g, t))
|
|
94
|
-
return { x: u, y: o };
|
|
95
|
-
}
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
function Ze({
|
|
99
|
-
datapoints: t,
|
|
100
|
-
width: a,
|
|
101
|
-
height: l,
|
|
102
|
-
maxRadius: s,
|
|
103
|
-
offsetX: v = 0,
|
|
104
|
-
offsetY: x = 0
|
|
105
|
-
}) {
|
|
106
|
-
const C = Math.max(...t.map((g) => g.value)), u = t.map((g, d) => ({
|
|
107
|
-
...g,
|
|
108
|
-
radius: g.value / C * s,
|
|
109
|
-
index: d
|
|
110
|
-
})).map((g, d) => ({ ...g, index: d })).toSorted((g, d) => d.radius - g.radius);
|
|
111
|
-
let o = [];
|
|
112
|
-
o.push({
|
|
113
|
-
...u[0],
|
|
114
|
-
x: a / 2 + v,
|
|
115
|
-
y: l / 2 + x
|
|
116
|
-
});
|
|
117
|
-
for (let g of u.slice(1)) {
|
|
118
|
-
let { radius: d, ...Pe } = g, Q = qe(o, d, a, l);
|
|
119
|
-
if (Q)
|
|
120
|
-
o.push({ ...Pe, x: Q.x, y: Q.y, radius: d });
|
|
121
|
-
else {
|
|
122
|
-
let ee = null, Se = 1 / 0;
|
|
123
|
-
for (let H of o)
|
|
124
|
-
for (let te = 0; te < 360; te += 15) {
|
|
125
|
-
let Oe = te * Math.PI / 180, le = H.x + (d + H.radius) * Math.cos(Oe), ae = H.y + (d + H.radius) * Math.sin(Oe), X = { ...Pe, x: le, y: ae, radius: d };
|
|
126
|
-
if (le - d >= 0 && le + d <= a && ae - d >= 0 && ae + d <= l && !we(X, o)) {
|
|
127
|
-
let Ie = o.reduce(
|
|
128
|
-
(st, Fe) => st + (ke(X, Fe) < X.radius + Fe.radius ? 1 : 0),
|
|
129
|
-
0
|
|
130
|
-
);
|
|
131
|
-
Ie < Se && (Se = Ie, ee = X);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
ee && o.push(ee);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return o;
|
|
138
|
-
}
|
|
139
|
-
const q = f(() => $.dataset.map((t, a) => {
|
|
140
|
-
const l = Re(t.color) || ge.value[a] || se[e.value.theme || "default"][a % se[e.value.theme || "default"].length] || S[a] || S[a % S.length];
|
|
141
|
-
return {
|
|
142
|
-
...t,
|
|
143
|
-
id: Ae(),
|
|
144
|
-
color: l
|
|
145
|
-
};
|
|
146
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), b = h([]), Je = f(() => Math.max(...b.value.map((t) => t.radius)));
|
|
147
|
-
function xe(t, a) {
|
|
148
|
-
return a / Je.value * t;
|
|
149
|
-
}
|
|
150
|
-
async function Ke() {
|
|
151
|
-
b.value = Ze({
|
|
152
|
-
datapoints: q.value,
|
|
153
|
-
width: 1e4,
|
|
154
|
-
height: 1e4,
|
|
155
|
-
maxRadius: 32
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
const Ce = f(() => ({
|
|
159
|
-
width: 100,
|
|
160
|
-
height: 100
|
|
161
|
-
})), p = f(() => {
|
|
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]), s = 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) || Ce.value.width, C = (a == null ? void 0 : a.y) || 0, R = (s == null ? void 0 : s.y) || Ce.value.height;
|
|
163
|
-
return {
|
|
164
|
-
maxX: x,
|
|
165
|
-
minX: v,
|
|
166
|
-
width: Math.abs(x - v) + (t ? t.radius : 0) + (l ? l.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
|
|
167
|
-
height: Math.abs(R - C) + (a ? a.radius : 0) + (s ? s.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
|
|
168
|
-
x: t ? (t == null ? void 0 : t.x) - (t == null ? void 0 : t.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0,
|
|
169
|
-
y: a ? (a == null ? void 0 : a.y) - (a == null ? void 0 : a.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0
|
|
170
|
-
};
|
|
171
|
-
}), Qe = f(() => b.value.map((t) => {
|
|
172
|
-
if (t.breakdown)
|
|
173
|
-
return bt(
|
|
174
|
-
{ series: t.breakdown.map((a, l) => ({
|
|
175
|
-
...a,
|
|
176
|
-
color: Re(a.color) || ge.value[l] || S[l] || S[l % S.length]
|
|
177
|
-
})) },
|
|
178
|
-
t.x,
|
|
179
|
-
t.y,
|
|
180
|
-
t.radius,
|
|
181
|
-
t.radius,
|
|
182
|
-
1.99999,
|
|
183
|
-
2,
|
|
184
|
-
1,
|
|
185
|
-
360,
|
|
186
|
-
105.25,
|
|
187
|
-
t.radius / 2
|
|
188
|
-
);
|
|
189
|
-
})), r = h(null);
|
|
190
|
-
function et(t) {
|
|
191
|
-
e.value.style.chart.circles.zoom.show && (r.value = t);
|
|
192
|
-
}
|
|
193
|
-
const O = f(() => r.value ? r.value.radius : 0), Z = f(() => T.value ? O.value : r.value ? r.value.radius > p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? r.value.radius : p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), z = h(0), tt = f(() => ({
|
|
194
|
-
pointerEvents: "none",
|
|
195
|
-
opacity: z.value,
|
|
196
|
-
filter: `drop-shadow(0px 0px 6px ${Ee(r.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
197
|
-
})), N = h(O.value);
|
|
198
|
-
ut(() => {
|
|
199
|
-
N.value = O.value, z.value = 0;
|
|
200
|
-
let t = null;
|
|
201
|
-
function a(l) {
|
|
202
|
-
t || (t = l);
|
|
203
|
-
const s = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
204
|
-
s < 1 ? (N.value = O.value + (Z.value - O.value) * s, z.value = 0 + e.value.style.chart.circles.zoom.opacity * s, requestAnimationFrame(a)) : (N.value = Z.value, z.value = e.value.style.chart.circles.zoom.opacity);
|
|
205
|
-
}
|
|
206
|
-
requestAnimationFrame(a);
|
|
207
|
-
});
|
|
208
|
-
const _ = f(() => ({
|
|
209
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize * p.value.width / 300,
|
|
210
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize * p.value.width / 300
|
|
211
|
-
}));
|
|
212
|
-
function J(t) {
|
|
213
|
-
return De(
|
|
214
|
-
e.value.style.chart.circles.labels.value.formatter,
|
|
215
|
-
t.value,
|
|
216
|
-
ne({
|
|
217
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
218
|
-
v: t.value,
|
|
219
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
220
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
221
|
-
})
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
function lt() {
|
|
225
|
-
return De(
|
|
226
|
-
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
227
|
-
r.value.value,
|
|
228
|
-
ne({
|
|
229
|
-
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
230
|
-
v: r.value.value,
|
|
231
|
-
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
232
|
-
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
233
|
-
})
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
function $e(t) {
|
|
237
|
-
if (!t)
|
|
238
|
-
return 0;
|
|
239
|
-
const a = t.radius / J(t).length * (J(t).length === 1 ? 1 : 2);
|
|
240
|
-
return Math.min(t.radius / 2.5, a);
|
|
241
|
-
}
|
|
242
|
-
const A = h(!1);
|
|
243
|
-
function at(t) {
|
|
244
|
-
A.value = t, ce.value += 1;
|
|
245
|
-
}
|
|
246
|
-
const T = h(!1);
|
|
247
|
-
function K() {
|
|
248
|
-
T.value = !T.value;
|
|
249
|
-
}
|
|
250
|
-
const V = f(() => {
|
|
251
|
-
const t = q.value.map((l) => ({
|
|
252
|
-
name: l.name,
|
|
253
|
-
value: l.value,
|
|
254
|
-
color: l.color
|
|
255
|
-
})).toSorted((l, s) => s.value - l.value), a = t.map((l) => l.value);
|
|
256
|
-
return { head: t, body: a };
|
|
257
|
-
});
|
|
258
|
-
function ze() {
|
|
259
|
-
dt(() => {
|
|
260
|
-
const t = V.value.head.map((s, v) => [[
|
|
261
|
-
s.name
|
|
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 = xt(a);
|
|
263
|
-
Ct({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
const B = f(() => {
|
|
267
|
-
const t = [
|
|
268
|
-
e.value.table.columnNames.datapoint,
|
|
269
|
-
e.value.table.columnNames.value
|
|
270
|
-
], a = V.value.head.map((v, x) => {
|
|
271
|
-
const C = ne({
|
|
272
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
273
|
-
v: V.value.body[x],
|
|
274
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
275
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
276
|
-
});
|
|
277
|
-
return [
|
|
278
|
-
{
|
|
279
|
-
color: v.color,
|
|
280
|
-
name: v.name
|
|
281
|
-
},
|
|
282
|
-
C
|
|
283
|
-
];
|
|
284
|
-
}), l = {
|
|
285
|
-
th: {
|
|
286
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
287
|
-
color: e.value.table.th.color,
|
|
288
|
-
outline: e.value.table.th.outline
|
|
289
|
-
},
|
|
290
|
-
td: {
|
|
291
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
292
|
-
color: e.value.table.td.color,
|
|
293
|
-
outline: e.value.table.td.outline
|
|
294
|
-
},
|
|
295
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
296
|
-
};
|
|
297
|
-
return {
|
|
298
|
-
colNames: [
|
|
299
|
-
e.value.table.columnNames.datapoint,
|
|
300
|
-
e.value.table.columnNames.value
|
|
301
|
-
],
|
|
302
|
-
head: t,
|
|
303
|
-
body: a,
|
|
304
|
-
config: l
|
|
305
|
-
};
|
|
306
|
-
});
|
|
307
|
-
function Te() {
|
|
308
|
-
M.value.showTable = !M.value.showTable;
|
|
309
|
-
}
|
|
310
|
-
function ot() {
|
|
311
|
-
return q.value;
|
|
312
|
-
}
|
|
313
|
-
return Ue({
|
|
314
|
-
getData: ot,
|
|
315
|
-
generateCsv: ze,
|
|
316
|
-
generatePdf: pe,
|
|
317
|
-
generateImage: be,
|
|
318
|
-
toggleTable: Te,
|
|
319
|
-
toggleAnnotator: K
|
|
320
|
-
}), (t, a) => (n(), c("div", {
|
|
321
|
-
id: `vue-ui-circle-pack_${F.value}`,
|
|
322
|
-
class: Ne(`vue-ui-circle-pack ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
323
|
-
ref_key: "circlePackChart",
|
|
324
|
-
ref: re,
|
|
325
|
-
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
326
|
-
onMouseenter: a[2] || (a[2] = () => i(de)(!0)),
|
|
327
|
-
onMouseleave: a[3] || (a[3] = () => i(de)(!1))
|
|
328
|
-
}, [
|
|
329
|
-
e.value.userOptions.buttons.annotator ? (n(), I(Pt, {
|
|
330
|
-
key: 0,
|
|
331
|
-
svgRef: i(ve),
|
|
332
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
333
|
-
color: e.value.style.chart.color,
|
|
334
|
-
active: T.value,
|
|
335
|
-
onClose: K
|
|
336
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
337
|
-
m(t.$slots, "userConfig", {}, void 0, !0),
|
|
338
|
-
je.value ? (n(), c("div", {
|
|
339
|
-
key: 1,
|
|
340
|
-
ref_key: "noTitle",
|
|
341
|
-
ref: Ye,
|
|
342
|
-
class: "vue-data-ui-no-title-space",
|
|
343
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
344
|
-
}, null, 512)) : y("", !0),
|
|
345
|
-
e.value.style.chart.title.text ? (n(), c("div", {
|
|
346
|
-
key: 2,
|
|
347
|
-
ref_key: "chartTitle",
|
|
348
|
-
ref: Xe,
|
|
349
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
350
|
-
}, [
|
|
351
|
-
(n(), I(Tt, {
|
|
352
|
-
key: `title_${ue.value}`,
|
|
353
|
-
config: {
|
|
354
|
-
title: {
|
|
355
|
-
cy: "donut-div-title",
|
|
356
|
-
...e.value.style.chart.title
|
|
357
|
-
},
|
|
358
|
-
subtitle: {
|
|
359
|
-
cy: "donut-div-subtitle",
|
|
360
|
-
...e.value.style.chart.title.subtitle
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}, null, 8, ["config"]))
|
|
364
|
-
], 512)) : y("", !0),
|
|
365
|
-
e.value.userOptions.show && U.value && (i(fe) || i(W)) ? (n(), I(zt, {
|
|
366
|
-
ref: "details",
|
|
367
|
-
key: `user_option_${ce.value}`,
|
|
368
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
369
|
-
color: e.value.style.chart.color,
|
|
370
|
-
isPrinting: i(ye),
|
|
371
|
-
isImaging: i(me),
|
|
372
|
-
uid: F.value,
|
|
373
|
-
hasTooltip: !1,
|
|
374
|
-
hasLabel: !1,
|
|
375
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
376
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
377
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
378
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
379
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
380
|
-
isFullscreen: A.value,
|
|
381
|
-
chartElement: re.value,
|
|
382
|
-
position: e.value.userOptions.position,
|
|
383
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
384
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
385
|
-
isAnnotation: T.value,
|
|
386
|
-
onToggleFullscreen: at,
|
|
387
|
-
onGeneratePdf: i(pe),
|
|
388
|
-
onGenerateCsv: ze,
|
|
389
|
-
onGenerateImage: i(be),
|
|
390
|
-
onToggleTable: Te,
|
|
391
|
-
onToggleAnnotator: K,
|
|
392
|
-
style: Y({
|
|
393
|
-
visibility: i(fe) ? i(W) ? "visible" : "hidden" : "visible"
|
|
394
|
-
})
|
|
395
|
-
}, it({ _: 2 }, [
|
|
396
|
-
t.$slots.menuIcon ? {
|
|
397
|
-
name: "menuIcon",
|
|
398
|
-
fn: w(({ isOpen: l, color: s }) => [
|
|
399
|
-
m(t.$slots, "menuIcon", E(D({ isOpen: l, color: s })), void 0, !0)
|
|
400
|
-
]),
|
|
401
|
-
key: "0"
|
|
402
|
-
} : void 0,
|
|
403
|
-
t.$slots.optionPdf ? {
|
|
404
|
-
name: "optionPdf",
|
|
405
|
-
fn: w(() => [
|
|
406
|
-
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
407
|
-
]),
|
|
408
|
-
key: "1"
|
|
409
|
-
} : void 0,
|
|
410
|
-
t.$slots.optionCsv ? {
|
|
411
|
-
name: "optionCsv",
|
|
412
|
-
fn: w(() => [
|
|
413
|
-
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
414
|
-
]),
|
|
415
|
-
key: "2"
|
|
416
|
-
} : void 0,
|
|
417
|
-
t.$slots.optionImg ? {
|
|
418
|
-
name: "optionImg",
|
|
419
|
-
fn: w(() => [
|
|
420
|
-
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
421
|
-
]),
|
|
422
|
-
key: "3"
|
|
423
|
-
} : void 0,
|
|
424
|
-
t.$slots.optionTable ? {
|
|
425
|
-
name: "optionTable",
|
|
426
|
-
fn: w(() => [
|
|
427
|
-
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
428
|
-
]),
|
|
429
|
-
key: "4"
|
|
430
|
-
} : void 0,
|
|
431
|
-
t.$slots.optionFullscreen ? {
|
|
432
|
-
name: "optionFullscreen",
|
|
433
|
-
fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
434
|
-
m(t.$slots, "optionFullscreen", E(D({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
435
|
-
]),
|
|
436
|
-
key: "5"
|
|
437
|
-
} : void 0,
|
|
438
|
-
t.$slots.optionAnnotator ? {
|
|
439
|
-
name: "optionAnnotator",
|
|
440
|
-
fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
441
|
-
m(t.$slots, "optionAnnotator", E(D({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
442
|
-
]),
|
|
443
|
-
key: "6"
|
|
444
|
-
} : void 0
|
|
445
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
446
|
-
U.value ? (n(), c("svg", {
|
|
447
|
-
key: 4,
|
|
448
|
-
ref_key: "svgRef",
|
|
449
|
-
ref: ve,
|
|
450
|
-
xmlns: i(gt),
|
|
451
|
-
viewBox: `${p.value.x} ${p.value.y} ${p.value.width} ${p.value.height}`,
|
|
452
|
-
width: "100%",
|
|
453
|
-
class: Ne({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
454
|
-
style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};`)
|
|
455
|
-
}, [
|
|
456
|
-
ct(Ot),
|
|
457
|
-
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
458
|
-
key: 0,
|
|
459
|
-
x: p.value.x,
|
|
460
|
-
y: p.value.y,
|
|
461
|
-
width: p.value.width,
|
|
462
|
-
height: p.value.height,
|
|
463
|
-
style: {
|
|
464
|
-
pointerEvents: "none"
|
|
465
|
-
}
|
|
466
|
-
}, [
|
|
467
|
-
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
468
|
-
], 8, Et)) : y("", !0),
|
|
469
|
-
(n(!0), c(P, null, oe(b.value, (l) => (n(), c(P, null, [
|
|
470
|
-
k("defs", null, [
|
|
471
|
-
k("radialGradient", {
|
|
472
|
-
id: l.id,
|
|
473
|
-
fy: "30%"
|
|
474
|
-
}, [
|
|
475
|
-
k("stop", {
|
|
476
|
-
offset: "10%",
|
|
477
|
-
"stop-color": i(kt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
478
|
-
}, null, 8, Lt),
|
|
479
|
-
k("stop", {
|
|
480
|
-
offset: "90%",
|
|
481
|
-
"stop-color": i(Ee)(l.color, 0.1)
|
|
482
|
-
}, null, 8, Gt),
|
|
483
|
-
k("stop", {
|
|
484
|
-
offset: "100%",
|
|
485
|
-
"stop-color": l.color
|
|
486
|
-
}, null, 8, Ut)
|
|
487
|
-
], 8, Dt)
|
|
488
|
-
]),
|
|
489
|
-
t.$slots.pattern ? (n(), c("g", Vt, [
|
|
490
|
-
k("defs", null, [
|
|
491
|
-
m(t.$slots, "pattern", _e({ ref_for: !0 }, { ...l, patternId: `pattern_${F.value}_${l.id}` }), void 0, !0)
|
|
492
|
-
])
|
|
493
|
-
])) : y("", !0),
|
|
494
|
-
k("rect", {
|
|
495
|
-
x: l.x - l.radius,
|
|
496
|
-
y: l.y - l.radius,
|
|
497
|
-
width: l.radius * 2,
|
|
498
|
-
height: l.radius * 2,
|
|
499
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
500
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
501
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
|
|
502
|
-
rx: l.radius,
|
|
503
|
-
onMouseenter: () => et(l),
|
|
504
|
-
onMouseout: a[0] || (a[0] = (s) => r.value = null),
|
|
505
|
-
onClick: (s) => Be("selectDatapoint", l)
|
|
506
|
-
}, null, 40, Bt),
|
|
507
|
-
t.$slots.pattern ? (n(), c("rect", {
|
|
508
|
-
key: 1,
|
|
509
|
-
x: l.x - l.radius,
|
|
510
|
-
y: l.y - l.radius,
|
|
511
|
-
width: l.radius * 2,
|
|
512
|
-
height: l.radius * 2,
|
|
513
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
514
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
515
|
-
fill: `url(#pattern_${F.value}_${l.id})`,
|
|
516
|
-
rx: l.radius,
|
|
517
|
-
style: {
|
|
518
|
-
pointerEvents: "none"
|
|
519
|
-
}
|
|
520
|
-
}, null, 8, Ht)) : y("", !0),
|
|
521
|
-
t.$slots["data-label"] ? m(t.$slots, "data-label", _e({
|
|
522
|
-
key: 2,
|
|
523
|
-
ref_for: !0
|
|
524
|
-
}, { ...l, createTSpans: i(wt), fontSize: { name: l.radius / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: $e(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 : i(G)(l.color) }), void 0, !0) : (n(), c(P, { key: 3 }, [
|
|
525
|
-
e.value.style.chart.circles.labels.name.show && l.name ? (n(), c("text", {
|
|
526
|
-
key: 0,
|
|
527
|
-
style: {
|
|
528
|
-
pointerEvents: "none",
|
|
529
|
-
transition: "opacity 0.2s ease-in-out"
|
|
530
|
-
},
|
|
531
|
-
opacity: r.value && !T.value ? 0.2 : 1,
|
|
532
|
-
x: l.x,
|
|
533
|
-
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.name.offsetY) - l.radius / 6,
|
|
534
|
-
"font-size": l.radius / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
535
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(G)(l.color),
|
|
536
|
-
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
537
|
-
"text-anchor": "middle"
|
|
538
|
-
}, L(l.name), 9, Xt)) : y("", !0),
|
|
539
|
-
e.value.style.chart.circles.labels.value.show ? (n(), c("text", {
|
|
540
|
-
key: 1,
|
|
541
|
-
style: {
|
|
542
|
-
pointerEvents: "none",
|
|
543
|
-
transition: "opacity 0.2s ease-in-out"
|
|
544
|
-
},
|
|
545
|
-
opacity: r.value && !T.value ? 0.2 : 1,
|
|
546
|
-
x: l.x,
|
|
547
|
-
y: l.y + xe(l.radius, e.value.style.chart.circles.labels.value.offsetY) + l.radius / 3,
|
|
548
|
-
"font-size": $e(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
549
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(G)(l.color),
|
|
550
|
-
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
551
|
-
"text-anchor": "middle"
|
|
552
|
-
}, L(J(l)), 9, Yt)) : y("", !0)
|
|
553
|
-
], 64)),
|
|
554
|
-
(n(!0), c(P, null, oe(Qe.value, (s) => (n(), c(P, null, [
|
|
555
|
-
(n(!0), c(P, null, oe(s, (v) => (n(), c("path", {
|
|
556
|
-
d: v.arcSlice,
|
|
557
|
-
fill: v.color,
|
|
558
|
-
stroke: "black"
|
|
559
|
-
}, null, 8, Wt))), 256))
|
|
560
|
-
], 64))), 256))
|
|
561
|
-
], 64))), 256)),
|
|
562
|
-
r.value && e.value.style.chart.circles.zoom.show && !T.value ? (n(), c(P, { key: 1 }, [
|
|
563
|
-
k("circle", {
|
|
564
|
-
style: Y(tt.value),
|
|
565
|
-
cx: r.value.x,
|
|
566
|
-
cy: r.value.y,
|
|
567
|
-
r: N.value,
|
|
568
|
-
opacity: z.value,
|
|
569
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
570
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${r.value.id})` : r.value.color
|
|
571
|
-
}, null, 12, jt),
|
|
572
|
-
t.$slots["zoom-label"] ? (n(), c("g", qt, [
|
|
573
|
-
m(t.$slots, "zoom-label", E(D({ ...r.value, zoomOpacity: z.value, currentRadius: N.value, fontSize: _.value })), void 0, !0)
|
|
574
|
-
])) : (n(), c("g", Zt, [
|
|
575
|
-
k("text", {
|
|
576
|
-
style: {
|
|
577
|
-
pointerEvents: "none"
|
|
578
|
-
},
|
|
579
|
-
opacity: z.value,
|
|
580
|
-
x: r.value.x,
|
|
581
|
-
y: r.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - _.value.name / 4,
|
|
582
|
-
"text-anchor": "middle",
|
|
583
|
-
"font-size": _.value.name,
|
|
584
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : i(G)(r.value.color),
|
|
585
|
-
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
586
|
-
}, L(r.value.name), 9, Jt),
|
|
587
|
-
k("text", {
|
|
588
|
-
style: {
|
|
589
|
-
pointerEvents: "none"
|
|
590
|
-
},
|
|
591
|
-
opacity: z.value,
|
|
592
|
-
x: r.value.x,
|
|
593
|
-
y: r.value.y + _.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
594
|
-
"text-anchor": "middle",
|
|
595
|
-
"font-size": _.value.value,
|
|
596
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : i(G)(r.value.color),
|
|
597
|
-
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
598
|
-
}, L(lt()), 9, Kt)
|
|
599
|
-
]))
|
|
600
|
-
], 64)) : y("", !0),
|
|
601
|
-
m(t.$slots, "svg", {
|
|
602
|
-
svg: { ...p.value }
|
|
603
|
-
}, void 0, !0)
|
|
604
|
-
], 14, Rt)) : y("", !0),
|
|
605
|
-
U.value ? y("", !0) : (n(), I(Mt, {
|
|
606
|
-
key: 5,
|
|
607
|
-
config: {
|
|
608
|
-
type: "circlePack",
|
|
609
|
-
style: {
|
|
610
|
-
color: "#CCCCCC"
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
})),
|
|
614
|
-
t.$slots.watermark ? (n(), c("div", Qt, [
|
|
615
|
-
m(t.$slots, "watermark", E(D({ isPrinting: i(ye) || i(me) })), void 0, !0)
|
|
616
|
-
])) : y("", !0),
|
|
617
|
-
t.$slots.source ? (n(), c("div", {
|
|
618
|
-
key: 7,
|
|
619
|
-
ref_key: "source",
|
|
620
|
-
ref: We,
|
|
621
|
-
dir: "auto"
|
|
622
|
-
}, [
|
|
623
|
-
m(t.$slots, "source", {}, void 0, !0)
|
|
624
|
-
], 512)) : y("", !0),
|
|
625
|
-
U.value ? (n(), I(It, {
|
|
626
|
-
key: 8,
|
|
627
|
-
hideDetails: "",
|
|
628
|
-
config: {
|
|
629
|
-
open: M.value.showTable,
|
|
630
|
-
maxHeight: 1e4,
|
|
631
|
-
body: {
|
|
632
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
633
|
-
color: e.value.style.chart.color
|
|
634
|
-
},
|
|
635
|
-
head: {
|
|
636
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
637
|
-
color: e.value.style.chart.color
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}, {
|
|
641
|
-
content: w(() => [
|
|
642
|
-
(n(), I(Ft, {
|
|
643
|
-
key: `table_${ie.value}`,
|
|
644
|
-
colNames: B.value.colNames,
|
|
645
|
-
head: B.value.head,
|
|
646
|
-
body: B.value.body,
|
|
647
|
-
config: B.value.config,
|
|
648
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
649
|
-
onClose: a[1] || (a[1] = (l) => M.value.showTable = !1)
|
|
650
|
-
}, {
|
|
651
|
-
th: w(({ th: l }) => [
|
|
652
|
-
k("div", {
|
|
653
|
-
innerHTML: l,
|
|
654
|
-
style: { display: "flex", "align-items": "center" }
|
|
655
|
-
}, null, 8, el)
|
|
656
|
-
]),
|
|
657
|
-
td: w(({ td: l }) => [
|
|
658
|
-
vt(L(l.name || l), 1)
|
|
659
|
-
]),
|
|
660
|
-
_: 1
|
|
661
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
662
|
-
]),
|
|
663
|
-
_: 1
|
|
664
|
-
}, 8, ["config"])) : y("", !0)
|
|
665
|
-
], 46, At));
|
|
666
|
-
}
|
|
667
|
-
}, yl = /* @__PURE__ */ _t(tl, [["__scopeId", "data-v-42098803"]]);
|
|
668
|
-
export {
|
|
669
|
-
yl as default
|
|
670
|
-
};
|