vue-data-ui 2.4.57 → 2.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DaDv7p0W.cjs"),W=require("./Title-CpfNWbUc.cjs"),E=require("./usePrinter-BIHu0O5X.cjs"),M=require("./useResponsive-BJ7DTGpm.cjs"),J=require("./vue-ui-skeleton-B24XJJ2p.cjs"),T=require("./useNestedProp-DkpuL8Iv.cjs"),K=require("./PackageVersion-nr7f_VNw.cjs"),Q=require("./PenAndPaper-C9v0NXEg.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["width","height"],le=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ae=["cx","cy","r","stroke","stroke-width"],re=["x","y","font-size","fill","font-weight"],se={key:5,class:"vue-data-ui-watermark"},ue={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(V,{expose:q}){const c=V,{vue_ui_wheel:U}=s.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>_(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:N}=Z.useUserOptionState({config:t.value});function _(){const n=T.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...T.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=_(),m.value=!t.value.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:O,isImaging:x,generatePdf:$,generateImage:A}=E.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function I(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=M.throttle(()=>{const{width:r,height:o}=M.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const j=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:H,y:X}=I(l.value.size/100*o),{x:D,y:Y}=I(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:H,y1:X,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function G(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return q({generatePdf:$,generateImage:A,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(N)||e.unref(m))?(e.openBlock(),e.createBlock(E.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:G,onGeneratePdf:e.unref($),onGenerateImage:e.unref(A),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),n.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(n.$slots,"chart-background",{},void 0,!0)],8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&u<=a.value})},null,10,le))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,re)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ie=ee._export_sfc(ue,[["__scopeId","data-v-9a761d10"]]);exports.default=ie;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as p, ref as
|
|
2
|
-
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-
|
|
3
|
-
import { _ as Ce } from "./Title-
|
|
4
|
-
import { u as _e, U as
|
|
5
|
-
import { t as
|
|
6
|
-
import Ae from "./vue-ui-skeleton-
|
|
7
|
-
import { u as V } from "./useNestedProp-
|
|
8
|
-
import { _ as Ie } from "./PackageVersion-
|
|
9
|
-
import { P as Pe } from "./PenAndPaper-
|
|
1
|
+
import { computed as p, ref as r, watch as H, onMounted as re, onBeforeUnmount as ue, openBlock as n, createElementBlock as c, normalizeStyle as A, unref as o, createBlock as w, createCommentVNode as v, createSlots as ie, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as Y, createVNode as ce, Fragment as ve, renderList as he, toDisplayString as de } from "vue";
|
|
2
|
+
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-B9RAElpI.js";
|
|
3
|
+
import { _ as Ce } from "./Title-zZtEcB9F.js";
|
|
4
|
+
import { u as _e, U as $e } from "./usePrinter-CwTAwqtF.js";
|
|
5
|
+
import { t as Oe, u as xe } from "./useResponsive-CoxXLe23.js";
|
|
6
|
+
import Ae from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
7
|
+
import { u as V } from "./useNestedProp-DuruL3Nt.js";
|
|
8
|
+
import { _ as Ie } from "./PackageVersion-C_FFs0BP.js";
|
|
9
|
+
import { P as Pe } from "./PenAndPaper-Dx24BtRW.js";
|
|
10
10
|
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"],
|
|
12
|
+
const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ue = ["cx", "cy", "r", "stroke", "stroke-width"], Le = ["x", "y", "font-size", "fill", "font-weight"], Xe = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, Be = {
|
|
16
16
|
__name: "vue-ui-wheel",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -29,10 +29,10 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(J, { expose: K }) {
|
|
32
|
-
const d = J, { vue_ui_wheel: Q } = fe(), C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ =
|
|
32
|
+
const d = J, { vue_ui_wheel: Q } = fe(), C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ = r(ye()), Z = r(null), F = r(0), y = r(null), S = r(null), z = r(null), M = r(null), N = r(0), e = p({
|
|
33
33
|
get: () => L(),
|
|
34
34
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible:
|
|
35
|
+
}), { userOptionsVisible: $, setUserOptionsVisibility: T, keepUserOptionState: U } = Fe({ config: e.value });
|
|
36
36
|
function L() {
|
|
37
37
|
const t = V({
|
|
38
38
|
userConfig: d.config,
|
|
@@ -46,47 +46,47 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
46
46
|
} : t;
|
|
47
47
|
}
|
|
48
48
|
H(() => d.config, (t) => {
|
|
49
|
-
e.value = L(),
|
|
49
|
+
e.value = L(), $.value = !e.value.showOnChartHover, R(), N.value += 1;
|
|
50
50
|
}, { deep: !0 });
|
|
51
|
-
const { isPrinting: X, isImaging: B, generatePdf:
|
|
51
|
+
const { isPrinting: X, isImaging: B, generatePdf: E, generateImage: G } = _e({
|
|
52
52
|
elementId: _.value,
|
|
53
53
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel"
|
|
54
|
-
}), ee = p(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
54
|
+
}), ee = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), l = r({
|
|
55
55
|
size: 360,
|
|
56
56
|
height: 360,
|
|
57
57
|
width: 360
|
|
58
|
-
}),
|
|
59
|
-
radius: Math.min(
|
|
60
|
-
centerX:
|
|
61
|
-
centerY:
|
|
58
|
+
}), O = r(e.value.style.chart.layout.percentage.fontSize), h = p(() => ({
|
|
59
|
+
radius: Math.min(l.value.width, l.value.height) * 0.9 / 2,
|
|
60
|
+
centerX: l.value.width / 2,
|
|
61
|
+
centerY: l.value.height / 2
|
|
62
62
|
}));
|
|
63
|
-
function
|
|
63
|
+
function j(t, u = 1) {
|
|
64
64
|
return {
|
|
65
|
-
x:
|
|
66
|
-
y:
|
|
65
|
+
x: h.value.centerX + h.value.radius * Math.cos(29.85 + t * Math.PI / 180) * u,
|
|
66
|
+
y: h.value.centerY + h.value.radius * Math.sin(29.85 + t * Math.PI / 180) * u
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const s = r(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
70
70
|
H(() => d.dataset, (t) => {
|
|
71
|
-
e.value.style.chart.animation.use ? D(t.percentage) :
|
|
71
|
+
e.value.style.chart.animation.use ? D(t.percentage) : s.value = t.percentage || 0;
|
|
72
72
|
}, { deep: !0 });
|
|
73
|
-
const g =
|
|
73
|
+
const g = r(null);
|
|
74
74
|
re(() => {
|
|
75
|
-
|
|
75
|
+
R();
|
|
76
76
|
});
|
|
77
|
-
function
|
|
77
|
+
function R() {
|
|
78
78
|
if (ge(d.dataset) && me({
|
|
79
79
|
componentName: "VueUiWheel",
|
|
80
80
|
type: "dataset"
|
|
81
81
|
}), D(d.dataset.percentage || 0), e.value.responsive) {
|
|
82
|
-
const t =
|
|
82
|
+
const t = Oe(() => {
|
|
83
83
|
const { width: u, height: a } = xe({
|
|
84
84
|
chart: y.value,
|
|
85
85
|
title: e.value.style.chart.title.text ? S.value : null,
|
|
86
86
|
source: z.value,
|
|
87
87
|
noTitle: M.value
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
l.value.width = u, l.value.height = a, O.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(u, a);
|
|
90
90
|
});
|
|
91
91
|
g.value = new ResizeObserver(t), g.value.observe(y.value.parentNode);
|
|
92
92
|
}
|
|
@@ -96,16 +96,16 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
96
96
|
});
|
|
97
97
|
function D(t) {
|
|
98
98
|
let u = e.value.style.chart.animation.speed;
|
|
99
|
-
const a = Math.abs(t -
|
|
99
|
+
const a = Math.abs(t - s.value) / (u * 120);
|
|
100
100
|
function i() {
|
|
101
|
-
|
|
101
|
+
s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(i);
|
|
102
102
|
}
|
|
103
103
|
i();
|
|
104
104
|
}
|
|
105
105
|
const te = p(() => {
|
|
106
106
|
const t = [];
|
|
107
107
|
for (let a = 0; a < 100; a += 1) {
|
|
108
|
-
const i =
|
|
108
|
+
const i = s.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: le, y: oe } = j(l.value.size / 100 * a), { x: ne, y: se } = j(l.value.size / 100 * a, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
109
109
|
t.push({
|
|
110
110
|
x1: le,
|
|
111
111
|
y1: oe,
|
|
@@ -115,49 +115,49 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
return t;
|
|
118
|
-
}), m =
|
|
118
|
+
}), m = r(!1);
|
|
119
119
|
function ae(t) {
|
|
120
120
|
m.value = t, F.value += 1;
|
|
121
121
|
}
|
|
122
|
-
const k =
|
|
122
|
+
const k = r(!1);
|
|
123
123
|
function x() {
|
|
124
124
|
k.value = !k.value;
|
|
125
125
|
}
|
|
126
126
|
return K({
|
|
127
|
-
generatePdf:
|
|
128
|
-
generateImage:
|
|
127
|
+
generatePdf: E,
|
|
128
|
+
generateImage: G,
|
|
129
129
|
toggleAnnotator: x
|
|
130
|
-
}), (t, u) => (
|
|
130
|
+
}), (t, u) => (n(), c("div", {
|
|
131
131
|
class: "vue-ui-wheel",
|
|
132
132
|
ref_key: "wheelChart",
|
|
133
133
|
ref: y,
|
|
134
134
|
id: _.value,
|
|
135
135
|
style: A(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
136
|
-
onMouseenter: u[0] || (u[0] = () =>
|
|
137
|
-
onMouseleave: u[1] || (u[1] = () =>
|
|
136
|
+
onMouseenter: u[0] || (u[0] = () => o(T)(!0)),
|
|
137
|
+
onMouseleave: u[1] || (u[1] = () => o(T)(!1))
|
|
138
138
|
}, [
|
|
139
|
-
e.value.userOptions.buttons.annotator ? (
|
|
139
|
+
e.value.userOptions.buttons.annotator ? (n(), w(Pe, {
|
|
140
140
|
key: 0,
|
|
141
141
|
parent: y.value,
|
|
142
142
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
143
143
|
color: e.value.style.chart.color,
|
|
144
144
|
active: k.value,
|
|
145
145
|
onClose: x
|
|
146
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
147
|
-
ee.value ? (
|
|
146
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
147
|
+
ee.value ? (n(), c("div", {
|
|
148
148
|
key: 1,
|
|
149
149
|
ref_key: "noTitle",
|
|
150
150
|
ref: M,
|
|
151
151
|
class: "vue-data-ui-no-title-space",
|
|
152
152
|
style: "height:36px; width: 100%;background:transparent"
|
|
153
|
-
}, null, 512)) :
|
|
154
|
-
e.value.style.chart.title.text ? (
|
|
153
|
+
}, null, 512)) : v("", !0),
|
|
154
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
155
155
|
key: 2,
|
|
156
156
|
ref_key: "chartTitle",
|
|
157
157
|
ref: S,
|
|
158
158
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
159
159
|
}, [
|
|
160
|
-
(
|
|
160
|
+
(n(), w(Ce, {
|
|
161
161
|
key: `title_${N.value}`,
|
|
162
162
|
config: {
|
|
163
163
|
title: {
|
|
@@ -170,15 +170,15 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}, null, 8, ["config"]))
|
|
173
|
-
], 512)) :
|
|
174
|
-
e.value.userOptions.show && C.value && (
|
|
173
|
+
], 512)) : v("", !0),
|
|
174
|
+
e.value.userOptions.show && C.value && (o(U) || o($)) ? (n(), w($e, {
|
|
175
175
|
ref_key: "details",
|
|
176
176
|
ref: Z,
|
|
177
177
|
key: `user_options_${F.value}`,
|
|
178
178
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
179
179
|
color: e.value.style.chart.color,
|
|
180
|
-
isPrinting:
|
|
181
|
-
isImaging:
|
|
180
|
+
isPrinting: o(X),
|
|
181
|
+
isImaging: o(B),
|
|
182
182
|
uid: _.value,
|
|
183
183
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
184
184
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -191,11 +191,11 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
191
191
|
isAnnotation: k.value,
|
|
192
192
|
chartElement: y.value,
|
|
193
193
|
onToggleFullscreen: ae,
|
|
194
|
-
onGeneratePdf:
|
|
195
|
-
onGenerateImage:
|
|
194
|
+
onGeneratePdf: o(E),
|
|
195
|
+
onGenerateImage: o(G),
|
|
196
196
|
onToggleAnnotator: x,
|
|
197
197
|
style: A({
|
|
198
|
-
visibility:
|
|
198
|
+
visibility: o(U) ? o($) ? "visible" : "hidden" : "visible"
|
|
199
199
|
})
|
|
200
200
|
}, ie({ _: 2 }, [
|
|
201
201
|
t.$slots.optionPdf ? {
|
|
@@ -226,66 +226,78 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
226
226
|
]),
|
|
227
227
|
key: "3"
|
|
228
228
|
} : void 0
|
|
229
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
230
|
-
C.value ? (
|
|
229
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
230
|
+
C.value ? (n(), c("svg", {
|
|
231
231
|
key: 4,
|
|
232
|
-
xmlns:
|
|
232
|
+
xmlns: o(ke),
|
|
233
233
|
class: Y({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
|
|
234
|
-
viewBox: `0 0 ${
|
|
234
|
+
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
235
235
|
style: A(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
236
236
|
}, [
|
|
237
237
|
ce(Ie),
|
|
238
|
-
|
|
238
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
239
|
+
key: 0,
|
|
240
|
+
x: 0,
|
|
241
|
+
y: 0,
|
|
242
|
+
width: l.value.width <= 0 ? 10 : l.value.width,
|
|
243
|
+
height: l.value.height <= 0 ? 10 : l.value.height,
|
|
244
|
+
style: {
|
|
245
|
+
pointerEvents: "none"
|
|
246
|
+
}
|
|
247
|
+
}, [
|
|
248
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
249
|
+
], 8, Ne)) : v("", !0),
|
|
250
|
+
(n(!0), c(ve, null, he(te.value, (a, i) => (n(), c("line", {
|
|
239
251
|
x1: a.x1,
|
|
240
252
|
x2: a.x2,
|
|
241
253
|
y1: a.y1,
|
|
242
254
|
y2: a.y2,
|
|
243
255
|
stroke: a.color,
|
|
244
|
-
"stroke-width": 5 / 360 * Math.min(
|
|
256
|
+
"stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
|
|
245
257
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
246
|
-
class: Y({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i <=
|
|
247
|
-
}, null, 10,
|
|
248
|
-
e.value.style.chart.layout.innerCircle.show ? (
|
|
249
|
-
key:
|
|
250
|
-
cx:
|
|
251
|
-
cy:
|
|
252
|
-
r:
|
|
258
|
+
class: Y({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i <= s.value })
|
|
259
|
+
}, null, 10, Te))), 256)),
|
|
260
|
+
e.value.style.chart.layout.innerCircle.show ? (n(), c("circle", {
|
|
261
|
+
key: 1,
|
|
262
|
+
cx: h.value.centerX,
|
|
263
|
+
cy: h.value.centerY,
|
|
264
|
+
r: h.value.radius * 0.8 <= 0 ? 1e-4 : h.value.radius * 0.8,
|
|
253
265
|
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
254
266
|
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
255
267
|
fill: "none"
|
|
256
|
-
}, null, 8,
|
|
257
|
-
e.value.style.chart.layout.percentage.show ? (
|
|
258
|
-
key:
|
|
259
|
-
x:
|
|
260
|
-
y:
|
|
261
|
-
"font-size":
|
|
262
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
268
|
+
}, null, 8, Ue)) : v("", !0),
|
|
269
|
+
e.value.style.chart.layout.percentage.show ? (n(), c("text", {
|
|
270
|
+
key: 2,
|
|
271
|
+
x: h.value.centerX,
|
|
272
|
+
y: h.value.centerY + O.value / 3,
|
|
273
|
+
"font-size": O.value,
|
|
274
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? o(W)(e.value.style.chart.layout.wheel.ticks.activeColor, s.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
263
275
|
"text-anchor": "middle",
|
|
264
276
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
265
277
|
style: { "font-variant-numeric": "tabluar-nums" }
|
|
266
|
-
}, de(
|
|
278
|
+
}, de(o(we)(
|
|
267
279
|
e.value.style.chart.layout.percentage.formatter,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
v:
|
|
280
|
+
o(q)(s.value),
|
|
281
|
+
o(be)({
|
|
282
|
+
v: o(q)(s.value),
|
|
271
283
|
s: "%",
|
|
272
284
|
r: e.value.style.chart.layout.percentage.rounding
|
|
273
285
|
})
|
|
274
|
-
)), 9,
|
|
275
|
-
f(t.$slots, "svg", { svg:
|
|
276
|
-
], 14, Me)) :
|
|
277
|
-
t.$slots.watermark ? (
|
|
278
|
-
f(t.$slots, "watermark", I(P({ isPrinting:
|
|
279
|
-
])) :
|
|
280
|
-
t.$slots.source ? (
|
|
286
|
+
)), 9, Le)) : v("", !0),
|
|
287
|
+
f(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
288
|
+
], 14, Me)) : v("", !0),
|
|
289
|
+
t.$slots.watermark ? (n(), c("div", Xe, [
|
|
290
|
+
f(t.$slots, "watermark", I(P({ isPrinting: o(X) || o(B) })), void 0, !0)
|
|
291
|
+
])) : v("", !0),
|
|
292
|
+
t.$slots.source ? (n(), c("div", {
|
|
281
293
|
key: 6,
|
|
282
294
|
ref_key: "source",
|
|
283
295
|
ref: z,
|
|
284
296
|
dir: "auto"
|
|
285
297
|
}, [
|
|
286
298
|
f(t.$slots, "source", {}, void 0, !0)
|
|
287
|
-
], 512)) :
|
|
288
|
-
C.value ?
|
|
299
|
+
], 512)) : v("", !0),
|
|
300
|
+
C.value ? v("", !0) : (n(), w(Ae, {
|
|
289
301
|
key: 7,
|
|
290
302
|
config: {
|
|
291
303
|
type: "wheel",
|
|
@@ -299,7 +311,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
299
311
|
}, null, 8, ["config"]))
|
|
300
312
|
], 44, ze));
|
|
301
313
|
}
|
|
302
|
-
},
|
|
314
|
+
}, Ke = /* @__PURE__ */ Se(Be, [["__scopeId", "data-v-9a761d10"]]);
|
|
303
315
|
export {
|
|
304
|
-
|
|
316
|
+
Ke as default
|
|
305
317
|
};
|