vue-data-ui 2.4.58 → 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-DyvFEpcu.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-gAjHZoeI.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-B0g_Fksl.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DKQOeA_7.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-Bju6hUOX.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-BloVsNyj.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-BsPIe_nG.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-CdpH9pz7.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-W3d_oNMs.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-Bmujq1-q.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-Be8tn5wI.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-xuFs3BqZ.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-CXTDY_Vo.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-Cx89w9Ul.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-HGyFRIya.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-ENfxtrty.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-CNO85jNx.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-1u-GspsX.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-B-1Q-Tts.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-DQOeAhx3.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-BSzkwF5n.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CSKuqs0C.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-BWC_DPZ5.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-D-iwyLyE.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-DtwWejoO.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-Com866XF.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-jb1K_VTO.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-Cqc5gqnb.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-lCjQo2kd.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CJdfn7N-.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D89kDZnF.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-muK3_F6c.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-Cf-zFFmT.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-CT5Gkoot.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-DmsHITZF.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-N7QL7jRR.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-C7b1puxs.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-CAnOat4M.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-BOS7Yvio.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OzgTaY3n.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-DI22fn9M.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-DGP4EmpQ.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-DCm2stj-.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-BilWHtZy.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DKmnEHH_.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-KwkTK5_q.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-BShJPhpa.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-D4xk_DsA.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-Ch3QRiP6.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-DZUv5beK.js → vue-ui-gauge-B9M8ICMX.js} +119 -107
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-B39J58Zm.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-z8KMf1yo.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot--Lw1-910.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-BgNONvkD.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-DjEyKAQe.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BrCuKpE6.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-C_eF6tga.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ch_Qkx9d.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-uqfXLRGX.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-CbYOkmrF.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-aLNOckoo.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-CuPCDHgS.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-DBCH5qM1.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-BamYIcPL.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-DxaSXiPx.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-C9_8YW0u.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-DFzPi4m9.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-n_jHEngt.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BzY_uB1R.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-1_OHWjZv.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-DKtNfORj.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Ojz7f2oH.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CXvJ3sXA.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-uyDT9RJC.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CxW1vMP2.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-NmLBla47.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-B8SukBWt.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-CokyAm9w.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-QgZq1O55.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-CTvPYXjb.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-DXPoWvNA.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-8M1ctuqL.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-Bb3BBVjm.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-Bv0EfTut.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-Bs72Df0-.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-DRGjTOIy.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-DCA2Dkfi.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-CTqweMbJ.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-tz9AdMu0.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-BEkWSr_A.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-DQPO5aOU.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B0u6LKiw.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-CEns9_NI.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-DxpIt6dh.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-D_Qiy2N1.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas--zS_4x6O.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-DHwfzZfj.cjs +0 -9
- package/dist/vue-ui-3d-bar-Dif8_wHk.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DHxsu2a1.cjs +0 -1
- package/dist/vue-ui-bullet-CKbrouCq.cjs +0 -34
- package/dist/vue-ui-candlestick-C3YNgFyO.cjs +0 -2
- package/dist/vue-ui-carousel-table-BU1bmZWZ.cjs +0 -1
- package/dist/vue-ui-chestnut-BEALHSS3.cjs +0 -6
- package/dist/vue-ui-donut-Jjz58SJJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BtfRmlIq.cjs +0 -1
- package/dist/vue-ui-dumbbell-C2LYuBRx.cjs +0 -9
- package/dist/vue-ui-flow-3vjkptJR.cjs +0 -1
- package/dist/vue-ui-funnel-DyJdIi_i.cjs +0 -1
- package/dist/vue-ui-galaxy-BmGIzIeD.cjs +0 -1
- package/dist/vue-ui-gauge-LeMSJBEk.cjs +0 -1
- package/dist/vue-ui-gizmo-B7Kum6eT.cjs +0 -1
- package/dist/vue-ui-heatmap-CqPuEjJ1.cjs +0 -1
- package/dist/vue-ui-history-plot-bjMvk_4h.cjs +0 -1
- package/dist/vue-ui-kpi-DIuPP4R7.cjs +0 -1
- package/dist/vue-ui-molecule-C3wtpoCr.cjs +0 -1
- package/dist/vue-ui-mood-radar-BomqP0zI.cjs +0 -1
- package/dist/vue-ui-nested-donuts-KRq3Fcqy.cjs +0 -17
- package/dist/vue-ui-onion-G4p7rA61.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B2OIBraO.cjs +0 -8
- package/dist/vue-ui-quadrant-DoWeGQSC.cjs +0 -1
- package/dist/vue-ui-quick-chart-DR1qF9kr.cjs +0 -15
- package/dist/vue-ui-radar-B6M2ZChR.cjs +0 -1
- package/dist/vue-ui-rating-HSL7IrbQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CM_QkigI.cjs +0 -1
- package/dist/vue-ui-rings-CmD8g04s.cjs +0 -2
- package/dist/vue-ui-scatter-D_WxNGoY.cjs +0 -1
- package/dist/vue-ui-smiley-sKWpgakD.cjs +0 -2
- package/dist/vue-ui-spark-trend-ByxJmVE5.cjs +0 -1
- package/dist/vue-ui-sparkbar-DYHuBv3f.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CCvUn2R2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-FU-uE07T.cjs +0 -1
- package/dist/vue-ui-sparkline-9LU8yp1t.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-9k6C-g_r.cjs +0 -1
- package/dist/vue-ui-stackbar-Drqz1of9.cjs +0 -6
- package/dist/vue-ui-strip-plot-UYP2fk1H.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BqQpJ_Ou.cjs +0 -1
- package/dist/vue-ui-table-sparkline-D5xemE-q.cjs +0 -1
- package/dist/vue-ui-thermometer-DzynFkq0.cjs +0 -1
- package/dist/vue-ui-timer-W5dIiOew.cjs +0 -64
- package/dist/vue-ui-tiremarks-BbAzwE5q.cjs +0 -1
- package/dist/vue-ui-treemap-CEVP7-S2.cjs +0 -1
- package/dist/vue-ui-vertical-bar-D_2WzLxJ.cjs +0 -4
- package/dist/vue-ui-waffle-BAvqVwhK.cjs +0 -1
- package/dist/vue-ui-wheel-Cjnheeql.cjs +0 -1
- package/dist/vue-ui-word-cloud-bxF8a7TI.cjs +0 -1
- package/dist/vue-ui-xy-BBvVOSPm.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DaDv7p0W.cjs"),ue=require("./Legend-BYngLoV6.cjs"),ie=require("./Title-CpfNWbUc.cjs"),ce=require("./Tooltip-DZuVxmLc.cjs"),de=require("./DataTable-BHCbVv8x.cjs"),X=require("./usePrinter-BIHu0O5X.cjs"),ve=require("./vue-ui-skeleton-B24XJJ2p.cjs"),pe=require("./vue-ui-accordion-6Clt339w.cjs"),Y=require("./useNestedProp-DkpuL8Iv.cjs"),he=require("./PackageVersion-nr7f_VNw.cjs"),fe=require("./PenAndPaper-C9v0NXEg.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=["id"],be={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ke={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ce=["xmlns","viewBox"],we=["width","height"],xe=["id"],$e=["stdDeviation"],Be=["d","stroke","stroke-width"],Se=["d","stroke","stroke-width"],Ne=["filter"],Te=["d","stroke","stroke-width"],Pe=["d","stroke-width","onMouseenter","onClick"],_e={key:5,class:"vue-data-ui-watermark"},Ve=["onClick"],Ee={key:0},Le={key:1},Oe={key:8,ref:"source",dir:"auto"},Fe=["innerHTML"],Ae={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(J,{expose:K,emit:_}){const i=J,{vue_ui_galaxy:Q}=r.useConfig(),k=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{V()});function V(){r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):i.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiGalaxy",type:"datasetSerieAttribute",property:o,index:a})})})}const g=e.ref(r.createUid()),C=e.ref(null),Z=e.ref(null),$=e.ref(!1),B=e.ref(""),c=e.ref(null),E=e.ref(0),L=e.ref(0),O=e.ref(0),F=e.ref(0),t=e.computed({get:()=>I(),set:l=>l}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:z}=ye.useUserOptionState({config:t.value});function I(){const l=Y.useNestedProp({userConfig:i.config,defaultConfig:Q});return l.theme?{...Y.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>i.config,l=>{t.value=I(),S.value=!t.value.showOnChartHover,V(),L.value+=1,O.value+=1,F.value+=1},{deep:!0});const{isPrinting:D,isImaging:q,generatePdf:M,generateImage:U}=X.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),m=e.ref({height:180,width:250}),u=e.ref([]);function N(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),_("selectLegend",b.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const h=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||te.value[a]||r.palette[a]||r.palette[a%r.palette.length],value:l.values?r.sanitizeArray(l.values).reduce((o,n)=>o+n,0):0,absoluteValues:r.sanitizeArray(l.values),id:r.createUid(),seriesIndex:a})).sort((l,a)=>a.value-l.value));function le(){return h.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),oe=e.ref(190),G=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id))),b=e.computed(()=>{const l=[];for(let a=0;a<G.value.length;a+=1){const o=G.value[a];let n=o.value/d.value*oe.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/d.value,path:r.createSpiralPath({points:n,startX:115+t.value.style.chart.layout.arcs.offsetX,startY:90+t.value.style.chart.layout.arcs.offsetY})})}return l.filter((a,o)=>!u.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),y=e.ref(!1);function ae(l){y.value=l,E.value+=1}const T=e.ref(null);function re({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:h.value,config:t.value},$.value=n,c.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:h.value,config:t.value}))?B.value=f({seriesIndex:o,datapoint:l,series:h.value,config:t.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?s+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:s+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),B.value=`<div>${s}</div>`)}const W=e.computed(()=>h.value.map((l,a)=>({...l,proportion:(l.value||0)/i.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:u.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>N(l),isSegregated:u.value.includes(l.id)}))),ne=e.computed(()=>({cy:"galaxy-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>{const l=b.value.map(o=>({name:o.name,color:o.color})),a=b.value.map(o=>o.value);return{head:l,body:a}});function H(){e.nextTick(()=>{const l=p.value.head.map((n,s)=>[[n.name],[p.value.body[s]],[isNaN(p.value.body[s]/d.value)?"-":p.value.body[s]/d.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-galaxy"})})}const w=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=p.value.head.map((s,f)=>{const se=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value.body[f],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},se,isNaN(p.value.body[f]/d.value)?"-":r.dataLabel({v:p.value.body[f]/d.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:a,config:o}});function R(){v.value.showTable=!v.value.showTable}function j(){v.value.showTooltip=!v.value.showTooltip}const x=e.ref(!1);function P(){x.value=!x.value}return K({getData:le,generatePdf:M,generateCsv:H,generateImage:U,toggleTable:R,toggleTooltip:j,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:C,class:e.normalizeClass(`vue-ui-galaxy ${y.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`galaxy_${g.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(A)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(fe.PenAndPaper,{key:0,parent:C.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",be,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${L.value}`,config:{title:{cy:"galaxy-div-title",...t.value.style.chart.title},subtitle:{cy:"galaxy-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value&&(e.unref(z)||e.unref(S))?(e.openBlock(),e.createBlock(X.UserOptions,{ref_key:"details",ref:Z,key:`user_option_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(q),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:v.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:ae,onGeneratePdf:e.unref(M),onGenerateCsv:H,onGenerateImage:e.unref(U),onToggleTable:R,onToggleTooltip:j,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(z)?e.unref(S)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${m.value.width} ${m.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:m.value.width,height:m.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,we)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${g.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.arcs.gradient.intensity},null,8,$e)],8,xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:t.value.style.chart.backgroundColor,"stroke-width":(t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth)*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:o.path,fill:"none",stroke:o.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Se)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${g.value})`},[e.createElementVNode("path",{d:o.path,fill:"none",stroke:t.value.style.chart.layout.arcs.gradient.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth/2*(c.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`vue-ui-galaxy-gradient ${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Te)],8,Ne)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:"transparent","stroke-width":t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth,"stroke-linecap":"round",onMouseenter:s=>re({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{$.value=!1,c.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,Pe)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:m.value},void 0,!0)],14,Ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"galaxy",style:{backgroundColor:t.value.style.chart.backgroundColor,galaxy:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ue.Legend,{key:`legend_${F.value}`,legendSet:W.value,config:ne.value,onClickMarker:a[1]||(a[1]=({legend:o})=>N(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>N(o),style:e.normalizeStyle(`opacity:${u.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),u.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Le," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ee," ("+e.toDisplayString(isNaN(o.value/d.value)?"-":e.unref(r.dataLabel)({v:o.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ve)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:W.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ce._sfc_main,{show:v.value.showTooltip&&$.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:B.value,isFullscreen:y.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),k.value?(e.openBlock(),e.createBlock(pe.default,{key:9,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${O.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Fe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,me))}},ze=ge._export_sfc(Ae,[["__scopeId","data-v-ce1544eb"]]);exports.default=ze;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as
|
|
2
|
-
import { u as Ue, c as We, t as
|
|
1
|
+
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as ge, normalizeStyle as L, unref as i, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, createSlots as Ge, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as Ee, createElementVNode as g, Fragment as x, renderList as S, mergeProps as G } from "vue";
|
|
2
|
+
import { u as Ue, c as We, t as je, a as Te, p as pe, b as Le, o as ke, d as De, e as E, g as be, m as V, I as $, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-B9RAElpI.js";
|
|
3
3
|
import { t as qe, u as He } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { u as Ze, U as Je } from "./usePrinter-
|
|
5
|
-
import Ke from "./vue-ui-skeleton-
|
|
6
|
-
import { _ as Qe } from "./Title-
|
|
7
|
-
import { u as xe } from "./useNestedProp-
|
|
8
|
-
import { _ as et } from "./PackageVersion-
|
|
9
|
-
import { P as tt } from "./PenAndPaper-
|
|
4
|
+
import { u as Ze, U as Je } from "./usePrinter-CwTAwqtF.js";
|
|
5
|
+
import Ke from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
6
|
+
import { _ as Qe } from "./Title-zZtEcB9F.js";
|
|
7
|
+
import { u as xe } from "./useNestedProp-DuruL3Nt.js";
|
|
8
|
+
import { _ as et } from "./PackageVersion-C_FFs0BP.js";
|
|
9
|
+
import { P as tt } from "./PenAndPaper-Dx24BtRW.js";
|
|
10
10
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["
|
|
12
|
+
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["width", "height"], nt = ["id"], it = ["stop-color"], ct = ["stop-color"], vt = ["stop-color"], ht = ["id"], dt = ["stdDeviation"], yt = ["d", "fill", "stroke"], ft = ["id", "d"], mt = ["fill", "font-size", "font-weight"], gt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], kt = ["d", "filter"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = ["stroke", "stroke-width"], St = { key: 5 }, $t = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], Ft = { key: 7 }, Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Mt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Pt = { key: 8 }, Nt = ["d", "fill", "stroke", "stroke-width"], Xt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Yt = ["x", "y", "font-size", "fill"], It = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, At = {
|
|
16
16
|
__name: "vue-ui-gauge",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -29,7 +29,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(U, { expose: _e }) {
|
|
32
|
-
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0),
|
|
32
|
+
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0), O = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(null), le = d(0), e = y({
|
|
33
33
|
get: () => oe(),
|
|
34
34
|
set: (t) => t
|
|
35
35
|
}), { userOptionsVisible: W, setUserOptionsVisibility: se, keepUserOptionState: re } = at({ config: e.value });
|
|
@@ -43,16 +43,16 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
43
43
|
});
|
|
44
44
|
return t.theme ? {
|
|
45
45
|
...xe({
|
|
46
|
-
userConfig:
|
|
46
|
+
userConfig: je.vue_ui_gauge[t.theme] || v.config,
|
|
47
47
|
defaultConfig: t
|
|
48
48
|
}),
|
|
49
|
-
customPalette:
|
|
49
|
+
customPalette: Te[t.theme] || pe
|
|
50
50
|
} : t;
|
|
51
51
|
}
|
|
52
52
|
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Ze({
|
|
53
53
|
elementId: `vue-ui-gauge_${_.value}`,
|
|
54
54
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
55
|
-
}),
|
|
55
|
+
}), $e = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = y(() => Le(e.value.customPalette)), z = y(() => {
|
|
56
56
|
if (!Y.value || ke(v.dataset.series || {}))
|
|
57
57
|
return {
|
|
58
58
|
value: 0,
|
|
@@ -72,17 +72,17 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
72
72
|
...v.dataset,
|
|
73
73
|
series: (v.dataset.series || []).map((a, r) => ({
|
|
74
74
|
...a,
|
|
75
|
-
color: De(a.color) ||
|
|
75
|
+
color: De(a.color) || ze.value[r] || pe[r],
|
|
76
76
|
value: ((a.to || 0) - (a.from || 0)) / s * 100
|
|
77
77
|
}))
|
|
78
78
|
};
|
|
79
|
-
}),
|
|
79
|
+
}), p = d(512), l = d({
|
|
80
80
|
height: 358.4,
|
|
81
|
-
width:
|
|
81
|
+
width: p.value,
|
|
82
82
|
top: 0,
|
|
83
83
|
bottom: 358.4,
|
|
84
84
|
centerX: 179.2,
|
|
85
|
-
centerY:
|
|
85
|
+
centerY: p.value / 2,
|
|
86
86
|
labelFontSize: 18,
|
|
87
87
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
88
88
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -91,14 +91,14 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
91
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
92
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
93
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
94
|
-
}),
|
|
94
|
+
}), M = d(0), P = d(0), f = d(
|
|
95
95
|
e.value.style.chart.animation.use ? Math.min(...v.dataset.series.map((t) => t.from)) : v.dataset.value
|
|
96
96
|
);
|
|
97
97
|
me(() => v.dataset.value, () => {
|
|
98
98
|
de(v.dataset.value);
|
|
99
99
|
});
|
|
100
100
|
const n = y(() => {
|
|
101
|
-
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (
|
|
101
|
+
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI;
|
|
102
102
|
return {
|
|
103
103
|
x1: t,
|
|
104
104
|
y1: s,
|
|
@@ -106,11 +106,11 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
106
106
|
y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
107
107
|
};
|
|
108
108
|
}), ve = y(() => {
|
|
109
|
-
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (
|
|
109
|
+
const t = l.value.width / 2, s = c.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI, r = t + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), b = l.value.pointerRadius, Ne = t + b * Math.cos(a + Math.PI / 2), Xe = s + b * Math.sin(a + Math.PI / 2), Ye = t + b * Math.cos(a - Math.PI / 2), Ie = s + b * Math.sin(a - Math.PI / 2);
|
|
110
110
|
return isNaN(r) ? null : `M ${r},${k} ${Ne},${Xe} ${Ye},${Ie} Z`;
|
|
111
|
-
}),
|
|
112
|
-
for (let t = 0; t <
|
|
113
|
-
const { color: s, from: a, to: r } =
|
|
111
|
+
}), j = y(() => {
|
|
112
|
+
for (let t = 0; t < z.value.series.length; t += 1) {
|
|
113
|
+
const { color: s, from: a, to: r } = z.value.series[t];
|
|
114
114
|
if (f.value >= a && f.value <= r)
|
|
115
115
|
return s;
|
|
116
116
|
}
|
|
@@ -148,33 +148,33 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
148
148
|
}))), de(v.dataset.value || 0), e.value.responsive) {
|
|
149
149
|
const t = qe(() => {
|
|
150
150
|
const { width: s, height: a } = He({
|
|
151
|
-
chart:
|
|
151
|
+
chart: O.value,
|
|
152
152
|
title: e.value.style.chart.title.text ? Q.value : null,
|
|
153
153
|
legend: ee.value,
|
|
154
154
|
source: te.value,
|
|
155
155
|
noTitle: ae.value
|
|
156
156
|
});
|
|
157
|
-
l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY =
|
|
157
|
+
l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY = p.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / p.value * Math.min(a, s) < 10 ? 10 : 18 / p.value * Math.min(a, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / p.value * Math.min(a, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / p.value * Math.min(a, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / p.value * Math.min(a, s), l.value.trackSize = e.value.style.chart.layout.track.size / p.value * Math.min(a, s), l.value.pointerStrokeWidth = J({
|
|
158
158
|
relator: Math.min(s, a),
|
|
159
|
-
adjuster:
|
|
159
|
+
adjuster: p.value,
|
|
160
160
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
161
161
|
threshold: 2,
|
|
162
162
|
fallback: 2
|
|
163
163
|
}), l.value.markerOffset = J({
|
|
164
164
|
relator: Math.max(s, a),
|
|
165
|
-
adjuster:
|
|
165
|
+
adjuster: p.value,
|
|
166
166
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
167
167
|
threshold: 2,
|
|
168
168
|
fallback: 2
|
|
169
169
|
}), l.value.segmentFontSize = J({
|
|
170
170
|
relator: Math.min(s, a),
|
|
171
|
-
adjuster:
|
|
171
|
+
adjuster: p.value,
|
|
172
172
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
173
173
|
threshold: 8,
|
|
174
174
|
fallback: 8
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
|
-
I.value = new ResizeObserver(t), I.value.observe(
|
|
177
|
+
I.value = new ResizeObserver(t), I.value.observe(O.value.parentNode);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
Ae(() => {
|
|
@@ -184,9 +184,9 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
184
184
|
});
|
|
185
185
|
function de(t) {
|
|
186
186
|
const s = [];
|
|
187
|
-
(
|
|
187
|
+
(z.value.series || []).forEach((b) => {
|
|
188
188
|
s.push(b.from || 0), s.push(b.to || 0);
|
|
189
|
-
}),
|
|
189
|
+
}), M.value = Math.max(...s), P.value = Math.min(...s);
|
|
190
190
|
let a = e.value.style.chart.animation.speed;
|
|
191
191
|
const r = Math.abs(t - f.value) / (a * 60);
|
|
192
192
|
function k() {
|
|
@@ -204,7 +204,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
204
204
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
205
205
|
};
|
|
206
206
|
}), m = y(() => V(
|
|
207
|
-
{ series:
|
|
207
|
+
{ series: z.value.series },
|
|
208
208
|
l.value.width / 2,
|
|
209
209
|
c.value.base,
|
|
210
210
|
c.value.arcs,
|
|
@@ -216,7 +216,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
216
216
|
109.9495,
|
|
217
217
|
40 * l.value.trackSize
|
|
218
218
|
)), Fe = y(() => V(
|
|
219
|
-
{ series:
|
|
219
|
+
{ series: z.value.series },
|
|
220
220
|
l.value.width / 2,
|
|
221
221
|
c.value.base,
|
|
222
222
|
c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -228,13 +228,13 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
228
228
|
109.9495,
|
|
229
229
|
40 * l.value.trackSize
|
|
230
230
|
)), F = y(() => m.value.map((t) => c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), ye = y(() => {
|
|
231
|
-
const { x: t, y: s } =
|
|
231
|
+
const { x: t, y: s } = $({
|
|
232
232
|
initX: m.value[0].firstSeparator.x,
|
|
233
233
|
initY: m.value[0].firstSeparator.y,
|
|
234
234
|
centerX: n.value.x1,
|
|
235
235
|
centerY: n.value.y1,
|
|
236
236
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
237
|
-
}), { x: a, y: r } =
|
|
237
|
+
}), { x: a, y: r } = $({
|
|
238
238
|
initX: m.value[0].startX,
|
|
239
239
|
initY: m.value[0].startY,
|
|
240
240
|
centerX: n.value.x1,
|
|
@@ -243,13 +243,13 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
243
243
|
});
|
|
244
244
|
return { x1: t, y1: s, x2: a, y2: r };
|
|
245
245
|
}), fe = y(() => m.value.map((t) => {
|
|
246
|
-
const { x: s, y: a } =
|
|
246
|
+
const { x: s, y: a } = $({
|
|
247
247
|
initX: t.separator.x,
|
|
248
248
|
initY: t.separator.y,
|
|
249
249
|
centerX: n.value.x1,
|
|
250
250
|
centerY: n.value.y1,
|
|
251
251
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
252
|
-
}), { x: r, y: k } =
|
|
252
|
+
}), { x: r, y: k } = $({
|
|
253
253
|
initX: t.endX,
|
|
254
254
|
initY: t.endY,
|
|
255
255
|
centerX: n.value.x1,
|
|
@@ -265,8 +265,8 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
265
265
|
let r = 0;
|
|
266
266
|
return t.map((k) => (r += k, `${r / 100 * a - k / 4}%`));
|
|
267
267
|
}
|
|
268
|
-
const
|
|
269
|
-
{ series:
|
|
268
|
+
const Oe = y(() => Ce(m.value.map((t) => t.proportion * 100))), Me = y(() => V(
|
|
269
|
+
{ series: z.value.series },
|
|
270
270
|
l.value.width / 2,
|
|
271
271
|
c.value.base,
|
|
272
272
|
c.value.gradients,
|
|
@@ -282,17 +282,17 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
282
282
|
N.value = t, K.value += 1;
|
|
283
283
|
}
|
|
284
284
|
const A = d(!1);
|
|
285
|
-
function
|
|
285
|
+
function T() {
|
|
286
286
|
A.value = !A.value;
|
|
287
287
|
}
|
|
288
288
|
return _e({
|
|
289
289
|
generatePdf: ie,
|
|
290
290
|
generateImage: ce,
|
|
291
|
-
toggleAnnotator:
|
|
291
|
+
toggleAnnotator: T
|
|
292
292
|
}), (t, s) => (o(), u("div", {
|
|
293
|
-
class:
|
|
293
|
+
class: ge(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
294
294
|
ref_key: "gaugeChart",
|
|
295
|
-
ref:
|
|
295
|
+
ref: O,
|
|
296
296
|
id: `vue-ui-gauge_${_.value}`,
|
|
297
297
|
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
298
298
|
onMouseenter: s[0] || (s[0] = () => i(se)(!0)),
|
|
@@ -300,13 +300,13 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
300
300
|
}, [
|
|
301
301
|
e.value.userOptions.buttons.annotator ? (o(), R(tt, {
|
|
302
302
|
key: 0,
|
|
303
|
-
parent:
|
|
303
|
+
parent: O.value,
|
|
304
304
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
305
305
|
color: e.value.style.chart.color,
|
|
306
306
|
active: A.value,
|
|
307
|
-
onClose:
|
|
307
|
+
onClose: T
|
|
308
308
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
309
|
-
|
|
309
|
+
$e.value ? (o(), u("div", {
|
|
310
310
|
key: 1,
|
|
311
311
|
ref_key: "noTitle",
|
|
312
312
|
ref: ae,
|
|
@@ -353,14 +353,14 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
353
353
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
354
354
|
isFullscreen: N.value,
|
|
355
355
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
356
|
-
chartElement:
|
|
356
|
+
chartElement: O.value,
|
|
357
357
|
position: e.value.userOptions.position,
|
|
358
358
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
359
359
|
isAnnotation: A.value,
|
|
360
360
|
onToggleFullscreen: Pe,
|
|
361
361
|
onGeneratePdf: i(ie),
|
|
362
362
|
onGenerateImage: i(ce),
|
|
363
|
-
onToggleAnnotator:
|
|
363
|
+
onToggleAnnotator: T,
|
|
364
364
|
style: L({
|
|
365
365
|
visibility: i(re) ? i(W) ? "visible" : "hidden" : "visible"
|
|
366
366
|
})
|
|
@@ -397,13 +397,25 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
397
397
|
Y.value ? (o(), u("svg", {
|
|
398
398
|
key: 4,
|
|
399
399
|
xmlns: i(Be),
|
|
400
|
-
class:
|
|
400
|
+
class: ge({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
401
401
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
402
402
|
style: L(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
403
403
|
}, [
|
|
404
404
|
Ee(et),
|
|
405
|
-
|
|
406
|
-
|
|
405
|
+
t.$slots["chart-background"] ? (o(), u("foreignObject", {
|
|
406
|
+
key: 0,
|
|
407
|
+
x: 0,
|
|
408
|
+
y: 0,
|
|
409
|
+
width: l.value.width <= 0 ? 10 : l.value.width,
|
|
410
|
+
height: l.value.height <= 0 ? 10 : l.value.height,
|
|
411
|
+
style: {
|
|
412
|
+
pointerEvents: "none"
|
|
413
|
+
}
|
|
414
|
+
}, [
|
|
415
|
+
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
416
|
+
], 8, ut)) : h("", !0),
|
|
417
|
+
g("defs", null, [
|
|
418
|
+
g("radialGradient", {
|
|
407
419
|
id: `gradient_${_.value}`,
|
|
408
420
|
cx: "50%",
|
|
409
421
|
cy: "50%",
|
|
@@ -411,33 +423,33 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
411
423
|
fx: "50%",
|
|
412
424
|
fy: "50%"
|
|
413
425
|
}, [
|
|
414
|
-
|
|
426
|
+
g("stop", {
|
|
415
427
|
offset: "0%",
|
|
416
428
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
417
|
-
}, null, 8,
|
|
418
|
-
|
|
429
|
+
}, null, 8, it),
|
|
430
|
+
g("stop", {
|
|
419
431
|
offset: "80%",
|
|
420
432
|
"stop-color": i(q)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
421
|
-
}, null, 8,
|
|
422
|
-
|
|
433
|
+
}, null, 8, ct),
|
|
434
|
+
g("stop", {
|
|
423
435
|
offset: "100%",
|
|
424
436
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
425
|
-
}, null, 8,
|
|
426
|
-
], 8,
|
|
437
|
+
}, null, 8, vt)
|
|
438
|
+
], 8, nt)
|
|
427
439
|
]),
|
|
428
|
-
|
|
429
|
-
|
|
440
|
+
g("defs", null, [
|
|
441
|
+
g("filter", {
|
|
430
442
|
id: `blur_${_.value}`,
|
|
431
443
|
x: "-50%",
|
|
432
444
|
y: "-50%",
|
|
433
445
|
width: "200%",
|
|
434
446
|
height: "200%"
|
|
435
447
|
}, [
|
|
436
|
-
|
|
448
|
+
g("feGaussianBlur", {
|
|
437
449
|
in: "SourceGraphic",
|
|
438
450
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
439
|
-
}, null, 8,
|
|
440
|
-
], 8,
|
|
451
|
+
}, null, 8, dt)
|
|
452
|
+
], 8, ht)
|
|
441
453
|
]),
|
|
442
454
|
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
|
|
443
455
|
key: `arc_${r}`,
|
|
@@ -445,26 +457,26 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
445
457
|
fill: a.color,
|
|
446
458
|
stroke: e.value.style.chart.backgroundColor,
|
|
447
459
|
"stroke-linecap": "round"
|
|
448
|
-
}, null, 8,
|
|
449
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(x, { key:
|
|
460
|
+
}, null, 8, yt))), 128)),
|
|
461
|
+
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(x, { key: 1 }, [
|
|
450
462
|
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("path", {
|
|
451
463
|
id: `curve_${_.value}_${r}`,
|
|
452
464
|
d: `M ${n.value.x1},${n.value.y1} m -${F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 ${2 * F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 -${2 * F.value[r]},0`,
|
|
453
465
|
fill: "transparent"
|
|
454
|
-
}, null, 8,
|
|
466
|
+
}, null, 8, ft))), 256)),
|
|
455
467
|
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
|
|
456
468
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
457
469
|
"font-size": l.value.segmentFontSize,
|
|
458
470
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
459
471
|
"text-anchor": "middle"
|
|
460
472
|
}, [
|
|
461
|
-
|
|
473
|
+
g("textPath", {
|
|
462
474
|
href: `#curve_${_.value}_${r}`,
|
|
463
|
-
startOffset:
|
|
464
|
-
}, C(a.name || ""), 9,
|
|
465
|
-
], 8,
|
|
475
|
+
startOffset: Oe.value[r]
|
|
476
|
+
}, C(a.name || ""), 9, gt)
|
|
477
|
+
], 8, mt))), 256))
|
|
466
478
|
], 64)) : h("", !0),
|
|
467
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key:
|
|
479
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 2 }, S(Fe.value, (a, r) => (o(), u("text", {
|
|
468
480
|
x: a.center.endX,
|
|
469
481
|
y: a.center.endY,
|
|
470
482
|
"text-anchor": i(Ve)(a, !1, 12).anchor,
|
|
@@ -472,46 +484,46 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
472
484
|
"font-size": l.value.segmentFontSize,
|
|
473
485
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
474
486
|
}, C(a.name || ""), 9, pt))), 256)) : h("", !0),
|
|
475
|
-
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key:
|
|
487
|
+
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 3 }, S(Me.value, (a, r) => (o(), u("path", {
|
|
476
488
|
key: `arc_${r}`,
|
|
477
489
|
d: a.arcSlice,
|
|
478
490
|
fill: "#FFFFFF",
|
|
479
491
|
stroke: "none",
|
|
480
492
|
"stroke-linecap": "round",
|
|
481
493
|
filter: `url(#blur_${_.value})`
|
|
482
|
-
}, null, 8,
|
|
483
|
-
e.value.style.chart.layout.segmentSeparators.show ? (o(), u(x, { key:
|
|
484
|
-
|
|
494
|
+
}, null, 8, kt))), 128)) : h("", !0),
|
|
495
|
+
e.value.style.chart.layout.segmentSeparators.show ? (o(), u(x, { key: 4 }, [
|
|
496
|
+
g("line", G(ye.value, {
|
|
485
497
|
stroke: e.value.style.chart.backgroundColor,
|
|
486
498
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
487
499
|
"stroke-linecap": "round"
|
|
488
|
-
}), null, 16,
|
|
489
|
-
|
|
500
|
+
}), null, 16, bt),
|
|
501
|
+
g("line", G(ye.value, {
|
|
490
502
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
491
503
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
492
504
|
"stroke-linecap": "round"
|
|
493
|
-
}), null, 16,
|
|
505
|
+
}), null, 16, xt),
|
|
494
506
|
(o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
|
|
495
507
|
stroke: e.value.style.chart.backgroundColor,
|
|
496
508
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
497
509
|
"stroke-linecap": "round"
|
|
498
|
-
}), null, 16,
|
|
510
|
+
}), null, 16, _t))), 256)),
|
|
499
511
|
(o(!0), u(x, null, S(fe.value, (a) => (o(), u("line", G(a, {
|
|
500
512
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
501
513
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
502
514
|
"stroke-linecap": "round"
|
|
503
|
-
}), null, 16,
|
|
515
|
+
}), null, 16, wt))), 256))
|
|
504
516
|
], 64)) : h("", !0),
|
|
505
|
-
e.value.style.chart.layout.markers.show ? (o(), u("g",
|
|
517
|
+
e.value.style.chart.layout.markers.show ? (o(), u("g", St, [
|
|
506
518
|
(o(!0), u(x, null, S(m.value, (a, r) => (o(), u("text", {
|
|
507
|
-
x: i(
|
|
519
|
+
x: i($)({
|
|
508
520
|
centerX: n.value.x1,
|
|
509
521
|
centerY: c.value.base,
|
|
510
522
|
initX: a.center.startX,
|
|
511
523
|
initY: a.center.startY,
|
|
512
524
|
offset: l.value.markerOffset
|
|
513
525
|
}).x,
|
|
514
|
-
y: i(
|
|
526
|
+
y: i($)({
|
|
515
527
|
centerX: n.value.x1,
|
|
516
528
|
centerY: c.value.base,
|
|
517
529
|
initX: a.center.startX,
|
|
@@ -531,18 +543,18 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
531
543
|
s: e.value.style.chart.layout.markers.suffix,
|
|
532
544
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
533
545
|
})
|
|
534
|
-
)), 9,
|
|
546
|
+
)), 9, $t))), 256))
|
|
535
547
|
])) : h("", !0),
|
|
536
548
|
e.value.style.chart.layout.markers.show ? (o(), u("text", {
|
|
537
|
-
key:
|
|
538
|
-
x: i(
|
|
549
|
+
key: 6,
|
|
550
|
+
x: i($)({
|
|
539
551
|
centerX: l.value.width / 2,
|
|
540
552
|
centerY: c.value.base,
|
|
541
553
|
initX: m.value.at(-1).endX,
|
|
542
554
|
initY: m.value.at(-1).endY,
|
|
543
555
|
offset: l.value.markerOffset
|
|
544
556
|
}).x,
|
|
545
|
-
y: i(
|
|
557
|
+
y: i($)({
|
|
546
558
|
centerX: l.value.width / 2,
|
|
547
559
|
centerY: c.value.base,
|
|
548
560
|
initX: m.value.at(-1).endX,
|
|
@@ -555,15 +567,15 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
555
567
|
fill: e.value.style.chart.layout.markers.color
|
|
556
568
|
}, C(i(H)(
|
|
557
569
|
e.value.style.chart.layout.markers.formatter,
|
|
558
|
-
|
|
570
|
+
M.value,
|
|
559
571
|
i(Z)({
|
|
560
572
|
p: e.value.style.chart.layout.markers.prefix,
|
|
561
|
-
v:
|
|
573
|
+
v: M.value,
|
|
562
574
|
s: e.value.style.chart.layout.markers.suffix,
|
|
563
575
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
564
576
|
})
|
|
565
577
|
)), 9, zt)) : h("", !0),
|
|
566
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), u("g",
|
|
578
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), u("g", Ft, [
|
|
567
579
|
isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
|
|
568
580
|
key: 0,
|
|
569
581
|
x1: n.value.x1,
|
|
@@ -573,17 +585,17 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
573
585
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
574
586
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
575
587
|
"stroke-linecap": "round"
|
|
576
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, Ct)),
|
|
577
589
|
isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
|
|
578
590
|
key: 1,
|
|
579
591
|
x1: n.value.x1,
|
|
580
592
|
y1: n.value.y1,
|
|
581
593
|
x2: n.value.x2,
|
|
582
594
|
y2: n.value.y2,
|
|
583
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
595
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? j.value : e.value.style.chart.layout.pointer.color,
|
|
584
596
|
"stroke-linecap": "round",
|
|
585
597
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
586
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, Ot)),
|
|
587
599
|
!isNaN(n.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), u("line", {
|
|
588
600
|
key: 2,
|
|
589
601
|
x1: n.value.x1,
|
|
@@ -595,32 +607,32 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
595
607
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
596
608
|
filter: `url(#blur_${_.value})`
|
|
597
609
|
}, null, 8, Mt)) : h("", !0)
|
|
598
|
-
])) : (o(), u("g",
|
|
610
|
+
])) : (o(), u("g", Pt, [
|
|
599
611
|
ve.value ? (o(), u("path", {
|
|
600
612
|
key: 0,
|
|
601
613
|
d: ve.value,
|
|
602
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
614
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? j.value : e.value.style.chart.layout.pointer.color,
|
|
603
615
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
604
616
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
605
617
|
"stroke-linejoin": "round"
|
|
606
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, Nt)) : h("", !0)
|
|
607
619
|
])),
|
|
608
|
-
|
|
620
|
+
g("circle", {
|
|
609
621
|
cx: l.value.width / 2,
|
|
610
622
|
cy: c.value.base,
|
|
611
623
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
612
624
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
613
625
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
614
626
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
615
|
-
}, null, 8,
|
|
627
|
+
}, null, 8, Xt),
|
|
616
628
|
e.value.style.chart.legend.show ? (o(), u("text", {
|
|
617
|
-
key:
|
|
629
|
+
key: 9,
|
|
618
630
|
x: l.value.width / 2,
|
|
619
631
|
y: c.value.ratingBase,
|
|
620
632
|
"text-anchor": "middle",
|
|
621
633
|
"font-size": l.value.legendFontSize,
|
|
622
634
|
"font-weight": "bold",
|
|
623
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
635
|
+
fill: e.value.style.chart.legend.useRatingColor ? j.value : e.value.style.chart.legend.color
|
|
624
636
|
}, C(i(H)(
|
|
625
637
|
e.value.style.chart.legend.formatter,
|
|
626
638
|
f.value,
|
|
@@ -630,10 +642,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
630
642
|
s: e.value.style.chart.legend.suffix,
|
|
631
643
|
r: e.value.style.chart.legend.roundingValue
|
|
632
644
|
})
|
|
633
|
-
)), 9,
|
|
645
|
+
)), 9, Yt)) : h("", !0),
|
|
634
646
|
w(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
635
647
|
], 14, ot)) : h("", !0),
|
|
636
|
-
t.$slots.watermark ? (o(), u("div",
|
|
648
|
+
t.$slots.watermark ? (o(), u("div", It, [
|
|
637
649
|
w(t.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
638
650
|
])) : h("", !0),
|
|
639
651
|
Y.value ? h("", !0) : (o(), R(Ke, {
|
|
@@ -648,11 +660,11 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
648
660
|
}
|
|
649
661
|
}
|
|
650
662
|
}, null, 8, ["config"])),
|
|
651
|
-
|
|
663
|
+
g("div", {
|
|
652
664
|
ref_key: "chartLegend",
|
|
653
665
|
ref: ee
|
|
654
666
|
}, [
|
|
655
|
-
w(t.$slots, "legend", { legend:
|
|
667
|
+
w(t.$slots, "legend", { legend: z.value }, void 0, !0)
|
|
656
668
|
], 512),
|
|
657
669
|
t.$slots.source ? (o(), u("div", {
|
|
658
670
|
key: 7,
|
|
@@ -664,7 +676,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
664
676
|
], 512)) : h("", !0)
|
|
665
677
|
], 46, st));
|
|
666
678
|
}
|
|
667
|
-
},
|
|
679
|
+
}, qt = /* @__PURE__ */ lt(At, [["__scopeId", "data-v-2c21fd75"]]);
|
|
668
680
|
export {
|
|
669
|
-
|
|
681
|
+
qt as default
|
|
670
682
|
};
|