vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-eFox7weK.cjs"),X=require("./Title-0Tp4hZ4u.cjs"),$=require("./usePrinter-CSRFnDBU.cjs"),z=require("./useResponsive-CodiGUOE.cjs"),j=require("./vue-ui-skeleton-BqKzuhkB.cjs"),F=require("./useNestedProp-BkgEhTQY.cjs"),H=require("./PackageVersion-DwI-KhXH.cjs"),D=require("./PenAndPaper-CDFVOo7X.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),W=["id"],J=["xmlns","viewBox"],K=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],Q=["cx","cy","r","stroke","stroke-width"],Z=["x","y","font-size","fill","font-weight"],ee={key:4,class:"vue-data-ui-watermark"},te={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(O,{expose:E}){const i=O,{vue_ui_wheel:M}=r.useConfig(),y=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length),p=e.ref(r.createUid()),q=e.ref(null),k=e.ref(0),d=e.ref(null),w=e.ref(null),C=e.ref(null),b=e.ref(0),t=e.computed({get:()=>P(),set:o=>o});function P(){const o=F.useNestedProp({userConfig:i.config,defaultConfig:M});return o.theme?{...F.useNestedProp({userConfig:r.themes.vue_ui_wheel[o.theme]||i.config,defaultConfig:o})}:o}e.watch(()=>i.config,o=>{t.value=P(),A(),b.value+=1},{deep:!0});const{isPrinting:_,isImaging:B,generatePdf:x,generateImage:N}=$.usePrinter({elementId:p.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),s=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function S(o,c=1){return{x:s.value.centerX+s.value.radius*Math.cos(29.85+o*Math.PI/180)*c,y:s.value.centerY+s.value.radius*Math.sin(29.85+o*Math.PI/180)*c}}const a=e.ref(t.value.style.chart.animation.use?0:i.dataset.percentage||0);e.watch(()=>i.dataset,o=>{t.value.style.chart.animation.use?I(o.percentage):a.value=o.percentage||0},{deep:!0});const v=e.ref(null);e.onMounted(()=>{A()});function A(){if(r.objectIsEmpty(i.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),I(i.dataset.percentage||0),t.value.responsive){const o=z.throttle(()=>{const{width:c,height:l}=z.useResponsive({chart:d.value,title:t.value.style.chart.title.text?w.value:null,source:C.value});n.value.width=c,n.value.height=l,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(c,l)});v.value=new ResizeObserver(o),v.value.observe(d.value.parentNode)}}e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});function I(o){let c=t.value.style.chart.animation.speed;const l=Math.abs(o-a.value)/(c*120);function u(){a.value<o?a.value=Math.min(a.value+l,o):a.value>o&&(a.value=Math.max(a.value-l,o)),a.value!==o&&requestAnimationFrame(u)}u()}const T=e.computed(()=>{const o=[];for(let l=0;l<100;l+=1){const u=a.value>l?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:R,y:L}=S(n.value.size/100*l),{x:U,y:G}=S(n.value.size/100*l,t.value.style.chart.layout.wheel.ticks.sizeRatio);o.push({x1:R,y1:L,x2:U,y2:G,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(u,l/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return o}),h=e.ref(!1);function V(o){h.value=o,k.value+=1}const f=e.ref(!1);function g(){f.value=!f.value}return E({generatePdf:x,generateImage:N,toggleAnnotator:g}),(o,c)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:d,id:p.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%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(D.PenAndPaper,{key:0,parent:d.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:g},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:w,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(X._sfc_main,{key:`title_${b.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&&y.value?(e.openBlock(),e.createBlock($.UserOptions,{ref_key:"details",ref:q,key:`user_options_${k.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(B),uid:p.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:d.value,onToggleFullscreen:V,onGeneratePdf:e.unref(x),onGenerateImage:e.unref(N),onToggleAnnotator:g},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,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"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(H._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,u)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,stroke:l.color,"stroke-width":5/360*Math.min(n.value.width,n.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,K))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:s.value.centerX,cy:s.value.centerY,r:s.value.radius*.8<=0?1e-4:s.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,Q)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.centerX,y:s.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.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(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(a.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,Z)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:n.value},void 0,!0)],14,J)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ee,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(B)})),void 0,!0)])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j.default,{key:6,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,W))}},oe=Y._export_sfc(te,[["__scopeId","data-v-d5ffc7dc"]]);exports.default=oe;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { computed as k, ref as n, watch as G, onMounted as ae, onBeforeUnmount as le, openBlock as s, createElementBlock as h, normalizeStyle as E, createBlock as w, createCommentVNode as d, unref as r, createSlots as oe, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as R, createVNode as ne, Fragment as se, renderList as re, toDisplayString as ue } from "vue";
|
|
2
|
+
import { u as ie, c as ce, t as ve, o as he, e as de, w as j, X as fe, i as ye, v as D, f as me } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { _ as pe } from "./Title-C5pIfQAz.js";
|
|
4
|
+
import { u as ge, U as ke } from "./usePrinter-CiHd1FwD.js";
|
|
5
|
+
import { t as we, u as be } from "./useResponsive-BY8tgM1n.js";
|
|
6
|
+
import Ce from "./vue-ui-skeleton-BYssP0K4.js";
|
|
7
|
+
import { u as Y } from "./useNestedProp-B33hazbH.js";
|
|
8
|
+
import { _ as _e } from "./PackageVersion-VkaUzgmt.js";
|
|
9
|
+
import { P as $e } from "./PenAndPaper-DAZYA8Ew.js";
|
|
10
|
+
import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Ie = ["id"], Pe = ["xmlns", "viewBox"], xe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Fe = ["cx", "cy", "r", "stroke", "stroke-width"], Oe = ["x", "y", "font-size", "fill", "font-weight"], ze = {
|
|
12
|
+
key: 4,
|
|
13
|
+
class: "vue-data-ui-watermark"
|
|
14
|
+
}, Se = {
|
|
15
|
+
__name: "vue-ui-wheel",
|
|
16
|
+
props: {
|
|
17
|
+
config: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
dataset: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(H, { expose: W }) {
|
|
31
|
+
const c = H, { vue_ui_wheel: q } = ie(), C = k(() => !!c.dataset && Object.keys(c.dataset).length), _ = n(ce()), J = n(null), x = n(0), y = n(null), F = n(null), O = n(null), z = n(0), e = k({
|
|
32
|
+
get: () => S(),
|
|
33
|
+
set: (t) => t
|
|
34
|
+
});
|
|
35
|
+
function S() {
|
|
36
|
+
const t = Y({
|
|
37
|
+
userConfig: c.config,
|
|
38
|
+
defaultConfig: q
|
|
39
|
+
});
|
|
40
|
+
return t.theme ? {
|
|
41
|
+
...Y({
|
|
42
|
+
userConfig: ve.vue_ui_wheel[t.theme] || c.config,
|
|
43
|
+
defaultConfig: t
|
|
44
|
+
})
|
|
45
|
+
} : t;
|
|
46
|
+
}
|
|
47
|
+
G(() => c.config, (t) => {
|
|
48
|
+
e.value = S(), X(), z.value += 1;
|
|
49
|
+
}, { deep: !0 });
|
|
50
|
+
const { isPrinting: M, isImaging: N, generatePdf: L, generateImage: T } = ge({
|
|
51
|
+
elementId: _.value,
|
|
52
|
+
fileName: e.value.style.chart.title.text || "vue-ui-wheel"
|
|
53
|
+
}), l = n({
|
|
54
|
+
size: 360,
|
|
55
|
+
height: 360,
|
|
56
|
+
width: 360
|
|
57
|
+
}), $ = n(e.value.style.chart.layout.percentage.fontSize), i = k(() => ({
|
|
58
|
+
radius: Math.min(l.value.width, l.value.height) * 0.9 / 2,
|
|
59
|
+
centerX: l.value.width / 2,
|
|
60
|
+
centerY: l.value.height / 2
|
|
61
|
+
}));
|
|
62
|
+
function U(t, v = 1) {
|
|
63
|
+
return {
|
|
64
|
+
x: i.value.centerX + i.value.radius * Math.cos(29.85 + t * Math.PI / 180) * v,
|
|
65
|
+
y: i.value.centerY + i.value.radius * Math.sin(29.85 + t * Math.PI / 180) * v
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const o = n(e.value.style.chart.animation.use ? 0 : c.dataset.percentage || 0);
|
|
69
|
+
G(() => c.dataset, (t) => {
|
|
70
|
+
e.value.style.chart.animation.use ? B(t.percentage) : o.value = t.percentage || 0;
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
const m = n(null);
|
|
73
|
+
ae(() => {
|
|
74
|
+
X();
|
|
75
|
+
});
|
|
76
|
+
function X() {
|
|
77
|
+
if (he(c.dataset) && de({
|
|
78
|
+
componentName: "VueUiWheel",
|
|
79
|
+
type: "dataset"
|
|
80
|
+
}), B(c.dataset.percentage || 0), e.value.responsive) {
|
|
81
|
+
const t = we(() => {
|
|
82
|
+
const { width: v, height: a } = be({
|
|
83
|
+
chart: y.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? F.value : null,
|
|
85
|
+
source: O.value
|
|
86
|
+
});
|
|
87
|
+
l.value.width = v, l.value.height = a, $.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(v, a);
|
|
88
|
+
});
|
|
89
|
+
m.value = new ResizeObserver(t), m.value.observe(y.value.parentNode);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
le(() => {
|
|
93
|
+
m.value && m.value.disconnect();
|
|
94
|
+
});
|
|
95
|
+
function B(t) {
|
|
96
|
+
let v = e.value.style.chart.animation.speed;
|
|
97
|
+
const a = Math.abs(t - o.value) / (v * 120);
|
|
98
|
+
function u() {
|
|
99
|
+
o.value < t ? o.value = Math.min(o.value + a, t) : o.value > t && (o.value = Math.max(o.value - a, t)), o.value !== t && requestAnimationFrame(u);
|
|
100
|
+
}
|
|
101
|
+
u();
|
|
102
|
+
}
|
|
103
|
+
const K = k(() => {
|
|
104
|
+
const t = [];
|
|
105
|
+
for (let a = 0; a < 100; a += 1) {
|
|
106
|
+
const u = o.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: Z, y: V } = U(l.value.size / 100 * a), { x: ee, y: te } = U(l.value.size / 100 * a, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
107
|
+
t.push({
|
|
108
|
+
x1: Z,
|
|
109
|
+
y1: V,
|
|
110
|
+
x2: ee,
|
|
111
|
+
y2: te,
|
|
112
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? j(u, a / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return t;
|
|
116
|
+
}), p = n(!1);
|
|
117
|
+
function Q(t) {
|
|
118
|
+
p.value = t, x.value += 1;
|
|
119
|
+
}
|
|
120
|
+
const g = n(!1);
|
|
121
|
+
function A() {
|
|
122
|
+
g.value = !g.value;
|
|
123
|
+
}
|
|
124
|
+
return W({
|
|
125
|
+
generatePdf: L,
|
|
126
|
+
generateImage: T,
|
|
127
|
+
toggleAnnotator: A
|
|
128
|
+
}), (t, v) => (s(), h("div", {
|
|
129
|
+
class: "vue-ui-wheel",
|
|
130
|
+
ref_key: "wheelChart",
|
|
131
|
+
ref: y,
|
|
132
|
+
id: _.value,
|
|
133
|
+
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
134
|
+
}, [
|
|
135
|
+
e.value.userOptions.buttons.annotator ? (s(), w($e, {
|
|
136
|
+
key: 0,
|
|
137
|
+
parent: y.value,
|
|
138
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
139
|
+
color: e.value.style.chart.color,
|
|
140
|
+
active: g.value,
|
|
141
|
+
onClose: A
|
|
142
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
|
|
143
|
+
e.value.style.chart.title.text ? (s(), h("div", {
|
|
144
|
+
key: 1,
|
|
145
|
+
ref_key: "chartTitle",
|
|
146
|
+
ref: F,
|
|
147
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
148
|
+
}, [
|
|
149
|
+
(s(), w(pe, {
|
|
150
|
+
key: `title_${z.value}`,
|
|
151
|
+
config: {
|
|
152
|
+
title: {
|
|
153
|
+
cy: "wheel-title",
|
|
154
|
+
...e.value.style.chart.title
|
|
155
|
+
},
|
|
156
|
+
subtitle: {
|
|
157
|
+
cy: "wheel-subtitle",
|
|
158
|
+
...e.value.style.chart.title.subtitle
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}, null, 8, ["config"]))
|
|
162
|
+
], 512)) : d("", !0),
|
|
163
|
+
e.value.userOptions.show && C.value ? (s(), w(ke, {
|
|
164
|
+
ref_key: "details",
|
|
165
|
+
ref: J,
|
|
166
|
+
key: `user_options_${x.value}`,
|
|
167
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
168
|
+
color: e.value.style.chart.color,
|
|
169
|
+
isPrinting: r(M),
|
|
170
|
+
isImaging: r(N),
|
|
171
|
+
uid: _.value,
|
|
172
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
173
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
174
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
175
|
+
hasXls: !1,
|
|
176
|
+
isFullscreen: p.value,
|
|
177
|
+
position: e.value.userOptions.position,
|
|
178
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
179
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
180
|
+
isAnnotation: g.value,
|
|
181
|
+
chartElement: y.value,
|
|
182
|
+
onToggleFullscreen: Q,
|
|
183
|
+
onGeneratePdf: r(L),
|
|
184
|
+
onGenerateImage: r(T),
|
|
185
|
+
onToggleAnnotator: A
|
|
186
|
+
}, oe({ _: 2 }, [
|
|
187
|
+
t.$slots.optionPdf ? {
|
|
188
|
+
name: "optionPdf",
|
|
189
|
+
fn: b(() => [
|
|
190
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
191
|
+
]),
|
|
192
|
+
key: "0"
|
|
193
|
+
} : void 0,
|
|
194
|
+
t.$slots.optionImg ? {
|
|
195
|
+
name: "optionImg",
|
|
196
|
+
fn: b(() => [
|
|
197
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
198
|
+
]),
|
|
199
|
+
key: "1"
|
|
200
|
+
} : void 0,
|
|
201
|
+
t.$slots.optionFullscreen ? {
|
|
202
|
+
name: "optionFullscreen",
|
|
203
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
204
|
+
f(t.$slots, "optionFullscreen", I(P({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
205
|
+
]),
|
|
206
|
+
key: "2"
|
|
207
|
+
} : void 0,
|
|
208
|
+
t.$slots.optionAnnotator ? {
|
|
209
|
+
name: "optionAnnotator",
|
|
210
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: u }) => [
|
|
211
|
+
f(t.$slots, "optionAnnotator", I(P({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
|
|
212
|
+
]),
|
|
213
|
+
key: "3"
|
|
214
|
+
} : void 0
|
|
215
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
216
|
+
C.value ? (s(), h("svg", {
|
|
217
|
+
key: 3,
|
|
218
|
+
xmlns: r(fe),
|
|
219
|
+
class: R({ "vue-data-ui-fullscreen--on": p.value, "vue-data-ui-fulscreen--off": !p.value }),
|
|
220
|
+
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
221
|
+
style: E(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
222
|
+
}, [
|
|
223
|
+
ne(_e),
|
|
224
|
+
(s(!0), h(se, null, re(K.value, (a, u) => (s(), h("line", {
|
|
225
|
+
x1: a.x1,
|
|
226
|
+
x2: a.x2,
|
|
227
|
+
y1: a.y1,
|
|
228
|
+
y2: a.y2,
|
|
229
|
+
stroke: a.color,
|
|
230
|
+
"stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
|
|
231
|
+
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
232
|
+
class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u <= o.value })
|
|
233
|
+
}, null, 10, xe))), 256)),
|
|
234
|
+
e.value.style.chart.layout.innerCircle.show ? (s(), h("circle", {
|
|
235
|
+
key: 0,
|
|
236
|
+
cx: i.value.centerX,
|
|
237
|
+
cy: i.value.centerY,
|
|
238
|
+
r: i.value.radius * 0.8 <= 0 ? 1e-4 : i.value.radius * 0.8,
|
|
239
|
+
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
240
|
+
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
241
|
+
fill: "none"
|
|
242
|
+
}, null, 8, Fe)) : d("", !0),
|
|
243
|
+
e.value.style.chart.layout.percentage.show ? (s(), h("text", {
|
|
244
|
+
key: 1,
|
|
245
|
+
x: i.value.centerX,
|
|
246
|
+
y: i.value.centerY + $.value / 3,
|
|
247
|
+
"font-size": $.value,
|
|
248
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? r(j)(e.value.style.chart.layout.wheel.ticks.activeColor, o.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
249
|
+
"text-anchor": "middle",
|
|
250
|
+
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
251
|
+
style: { "font-variant-numeric": "tabluar-nums" }
|
|
252
|
+
}, ue(r(ye)(
|
|
253
|
+
e.value.style.chart.layout.percentage.formatter,
|
|
254
|
+
r(D)(o.value),
|
|
255
|
+
r(me)({
|
|
256
|
+
v: r(D)(o.value),
|
|
257
|
+
s: "%",
|
|
258
|
+
r: e.value.style.chart.layout.percentage.rounding
|
|
259
|
+
})
|
|
260
|
+
)), 9, Oe)) : d("", !0),
|
|
261
|
+
f(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
262
|
+
], 14, Pe)) : d("", !0),
|
|
263
|
+
t.$slots.watermark ? (s(), h("div", ze, [
|
|
264
|
+
f(t.$slots, "watermark", I(P({ isPrinting: r(M) || r(N) })), void 0, !0)
|
|
265
|
+
])) : d("", !0),
|
|
266
|
+
t.$slots.source ? (s(), h("div", {
|
|
267
|
+
key: 5,
|
|
268
|
+
ref_key: "source",
|
|
269
|
+
ref: O,
|
|
270
|
+
dir: "auto"
|
|
271
|
+
}, [
|
|
272
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
273
|
+
], 512)) : d("", !0),
|
|
274
|
+
C.value ? d("", !0) : (s(), w(Ce, {
|
|
275
|
+
key: 6,
|
|
276
|
+
config: {
|
|
277
|
+
type: "wheel",
|
|
278
|
+
style: {
|
|
279
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
280
|
+
wheel: {
|
|
281
|
+
color: "#CCCCCC"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}, null, 8, ["config"]))
|
|
286
|
+
], 12, Ie));
|
|
287
|
+
}
|
|
288
|
+
}, je = /* @__PURE__ */ Ae(Se, [["__scopeId", "data-v-d5ffc7dc"]]);
|
|
289
|
+
export {
|
|
290
|
+
je as default
|
|
291
|
+
};
|