vue-data-ui 2.4.83 → 2.4.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdtSSnUZ.cjs → Arrow-Ajt3NMEa.cjs} +1 -1
- package/dist/{Arrow-Bl2aigOV.js → Arrow-Qayb_B0s.js} +1 -1
- package/dist/{BaseIcon-DG_iYn4X.js → BaseIcon-B8U62FEj.js} +1 -1
- package/dist/{BaseIcon-D92qdnv7.cjs → BaseIcon-BVrsMbvi.cjs} +1 -1
- package/dist/{DataTable-DyvnYg-x.cjs → DataTable-1PQD-SFb.cjs} +1 -1
- package/dist/{DataTable-CaiuB_-j.js → DataTable-C0tCPQ9i.js} +2 -2
- package/dist/{Legend-D2J3bvDm.cjs → Legend-BJ2Wbqut.cjs} +1 -1
- package/dist/{Legend-Br9uWuyZ.js → Legend-BTpe6qQB.js} +2 -2
- package/dist/{PackageVersion-Bxz2crF7.cjs → PackageVersion-BjfedMsH.cjs} +1 -1
- package/dist/{PackageVersion-tmgQTzP2.js → PackageVersion-CENy3Lm2.js} +1 -1
- package/dist/{PenAndPaper-CJ3Rnk2Q.js → PenAndPaper-Dr7ndoP_.js} +3 -3
- package/dist/{PenAndPaper-BFCXiNMF.cjs → PenAndPaper-nqRtAh6J.cjs} +1 -1
- package/dist/{Shape-qjsquBuY.cjs → Shape-Boa32JEn.cjs} +1 -1
- package/dist/{Shape-6QlwV5xV.js → Shape-zFv85Gc2.js} +1 -1
- package/dist/{Slicer-B9BStSWS.js → Slicer-BUYuk07t.js} +109 -124
- package/dist/Slicer-D6QLMg5N.cjs +1 -0
- package/dist/{Title-Bhq6SOYu.js → Title-CaET2xuF.js} +1 -1
- package/dist/{Title-BqNuK5vc.cjs → Title-DJUxOiaO.cjs} +1 -1
- package/dist/{Tooltip-CeBpQ6yn.js → Tooltip-Bkc4233T.js} +1 -1
- package/dist/{Tooltip-Kn7RnF0L.cjs → Tooltip-C5QuW94e.cjs} +1 -1
- package/dist/{index-BqR_a-C7.js → index-B7nCQFK0.js} +2 -1
- package/dist/index-COIn1phv.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DqofSFeh.js → useNestedProp-C9rlBRTT.js} +1 -1
- package/dist/{useNestedProp-D_XfpfnF.cjs → useNestedProp-CbMuGGl3.cjs} +1 -1
- package/dist/{usePrinter-BPjMJmKg.js → usePrinter-CQMn1b4E.js} +1 -1
- package/dist/{usePrinter-Bfrr3DDK.cjs → usePrinter-CXXfgFFN.cjs} +1 -1
- package/dist/{vue-data-ui-DsBOcTDd.js → vue-data-ui-BnsKGbqb.js} +60 -60
- package/dist/{vue-data-ui-oW2xn5YG.cjs → vue-data-ui-Bu_VIHgr.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DL4o7lJD.cjs → vue-ui-3d-bar-D39F2dKF.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-D5BCQifA.js → vue-ui-3d-bar-V5FBS9MA.js} +9 -9
- package/dist/{vue-ui-accordion-Cz3VCEN0.js → vue-ui-accordion-B8ptB5BQ.js} +3 -3
- package/dist/{vue-ui-accordion-Sqna6-tk.cjs → vue-ui-accordion-CGlnNTr8.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Cl9eaBGr.js → vue-ui-age-pyramid-Bjp1R8Ku.js} +14 -12
- package/dist/{vue-ui-annotator-Ctx3YK1X.cjs → vue-ui-annotator-BoWZZRPg.cjs} +1 -1
- package/dist/{vue-ui-annotator-DQKvjXgI.js → vue-ui-annotator-V9m5fTGG.js} +1 -1
- package/dist/{vue-ui-bullet-CsMr2xzr.js → vue-ui-bullet-Bqvb5PV-.js} +8 -8
- package/dist/{vue-ui-bullet-CWJzycj2.cjs → vue-ui-bullet-DLIxlhFF.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DKjfum_x.cjs → vue-ui-candlestick-D4BD8LyJ.cjs} +2 -2
- package/dist/{vue-ui-candlestick-BZ12fWHz.js → vue-ui-candlestick-DHCtmsh3.js} +72 -70
- package/dist/{vue-ui-carousel-table-CDR1Vv5V.js → vue-ui-carousel-table-Cn2RJkSb.js} +4 -4
- package/dist/{vue-ui-carousel-table-C6L5d_Fz.cjs → vue-ui-carousel-table-VIuoh2QI.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CAnxXvl6.js → vue-ui-chestnut-C5qUO1uK.js} +8 -8
- package/dist/{vue-ui-chestnut-DFgQWktZ.cjs → vue-ui-chestnut-ClG9HZoC.cjs} +1 -1
- package/dist/{vue-ui-cursor-BHKTewso.cjs → vue-ui-cursor-Bo8et-dD.cjs} +1 -1
- package/dist/{vue-ui-cursor-CEG5U4Hg.js → vue-ui-cursor-eJau3iyr.js} +2 -2
- package/dist/{vue-ui-dashboard-CAZvucxS.js → vue-ui-dashboard-DnaH9bCw.js} +2 -2
- package/dist/{vue-ui-dashboard-cCxI_-fr.cjs → vue-ui-dashboard-WJqGQ8iR.cjs} +1 -1
- package/dist/{vue-ui-digits-xPdav4hy.js → vue-ui-digits-Cqjts2eq.js} +2 -2
- package/dist/{vue-ui-digits-Dl0z8lL5.cjs → vue-ui-digits-qIckO4-r.cjs} +1 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-BgXDvYij.cjs → vue-ui-donut-evolution-Cz8uFJp8.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DtfH9oY2.js → vue-ui-donut-evolution-EzYvP11F.js} +11 -11
- package/dist/{vue-ui-donut-BX4NBJNA.js → vue-ui-donut-pprcnbIw.js} +17 -15
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DgTOdhga.js → vue-ui-dumbbell-DaxcxmnU.js} +48 -46
- package/dist/{vue-ui-flow-DIbRLuAg.js → vue-ui-flow-DbRgaKBu.js} +9 -9
- package/dist/{vue-ui-flow-Bt0sz3lA.cjs → vue-ui-flow-HeRCplGL.cjs} +1 -1
- package/dist/{vue-ui-funnel-CedEHtHD.js → vue-ui-funnel-B2del8KB.js} +37 -35
- package/dist/vue-ui-funnel-DxniWNkD.cjs +1 -0
- package/dist/{vue-ui-galaxy-aqDlVOGG.cjs → vue-ui-galaxy-BDA64dud.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BcBicruu.js → vue-ui-galaxy-pUYeASJf.js} +11 -11
- package/dist/vue-ui-gauge-BOXoAgWk.cjs +1 -0
- package/dist/{vue-ui-gauge-B8ybUmVP.js → vue-ui-gauge-DpsXpEaW.js} +28 -26
- package/dist/{vue-ui-gizmo-J759kkHO.js → vue-ui-gizmo-BpYrhkon.js} +3 -3
- package/dist/{vue-ui-gizmo-DAzVCVgd.cjs → vue-ui-gizmo-Bq9uAmqd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-5PChWU--.cjs → vue-ui-heatmap-CbKgGLtN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-zXe_ZfjW.js → vue-ui-heatmap-Cz6_9Veh.js} +10 -10
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +1 -0
- package/dist/{vue-ui-history-plot-DpCqc_J5.js → vue-ui-history-plot-DAotUjSF.js} +56 -54
- package/dist/{vue-ui-kpi-B0YGZB0U.js → vue-ui-kpi-Ch2p7m-i.js} +3 -3
- package/dist/{vue-ui-kpi-C-7Ihvt0.cjs → vue-ui-kpi-D6mp6EQ2.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Cn4Q6TSw.cjs → vue-ui-mini-loader-CO-KGVlC.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-7sjb3XBu.js → vue-ui-mini-loader-E13lmwfO.js} +2 -2
- package/dist/{vue-ui-molecule-DZpXgYuN.js → vue-ui-molecule-C69K6EPO.js} +11 -11
- package/dist/{vue-ui-molecule-BDumH6dl.cjs → vue-ui-molecule-CeoDnPXB.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-pnwFktum.cjs → vue-ui-mood-radar-BwOqQUuT.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CKqyK1Hp.js → vue-ui-mood-radar-DDtky572.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DbxWMbwd.js → vue-ui-nested-donuts-AYPYIRrE.js} +16 -14
- package/dist/{vue-ui-nested-donuts-CHpsvVxD.cjs → vue-ui-nested-donuts-DMCd6DqT.cjs} +2 -2
- package/dist/{vue-ui-onion-F9rcTxc5.cjs → vue-ui-onion-BedLvfFe.cjs} +2 -2
- package/dist/{vue-ui-onion-q54wqIiz.js → vue-ui-onion-Bsa88sKK.js} +31 -29
- package/dist/{vue-ui-parallel-coordinate-plot-Cwnja7PH.cjs → vue-ui-parallel-coordinate-plot-CSOMIABF.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-myA1ugJ6.js → vue-ui-parallel-coordinate-plot-KCEb4iRs.js} +62 -60
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +1 -0
- package/dist/{vue-ui-quadrant-OoCEzm12.js → vue-ui-quadrant-Bd_88Eht.js} +16 -14
- package/dist/{vue-ui-quick-chart-5lnK5fYa.js → vue-ui-quick-chart-CXAYKYHa.js} +55 -53
- package/dist/{vue-ui-quick-chart-CazRj-4z.cjs → vue-ui-quick-chart-dLItYwM_.cjs} +2 -2
- package/dist/vue-ui-radar-BuNtocmn.cjs +1 -0
- package/dist/{vue-ui-radar-BDKh_0GC.js → vue-ui-radar-De397oTB.js} +100 -98
- package/dist/{vue-ui-rating-BOzhaiSc.cjs → vue-ui-rating-BjiMVoyX.cjs} +1 -1
- package/dist/{vue-ui-rating-Dt3vyE2H.js → vue-ui-rating-wK3_ZWE5.js} +2 -2
- package/dist/vue-ui-relation-circle-BEGyr1h-.cjs +1 -0
- package/dist/{vue-ui-relation-circle-BOMeOf10.js → vue-ui-relation-circle-BxlK8MVs.js} +56 -54
- package/dist/{vue-ui-rings-3O2lFlg1.js → vue-ui-rings-BXrtMSML.js} +39 -37
- package/dist/{vue-ui-rings-DIA0oj1w.cjs → vue-ui-rings-BcNMBXxq.cjs} +2 -2
- package/dist/{vue-ui-scatter-SRz39O4w.js → vue-ui-scatter-BWZfLJ9P.js} +52 -50
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +1 -0
- package/dist/{vue-ui-screenshot-OBhZYkuN.cjs → vue-ui-screenshot-BJgOwFMW.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DeseMlsh.js → vue-ui-screenshot-hw4PC9Uu.js} +1 -1
- package/dist/{vue-ui-skeleton-6_VzxeeY.cjs → vue-ui-skeleton-BIqMxXV7.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DbI8wJH-.js → vue-ui-skeleton-D66ZIUln.js} +3 -3
- package/dist/{vue-ui-smiley-BqRjGeM4.js → vue-ui-smiley-DWPYdcDB.js} +2 -2
- package/dist/{vue-ui-smiley-CQYCG8iR.cjs → vue-ui-smiley-Duy5Xo-j.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-YKlzV5ph.js → vue-ui-spark-trend-Ce4IaqPz.js} +5 -5
- package/dist/{vue-ui-spark-trend-C1MfKChb.cjs → vue-ui-spark-trend-DP5foaNi.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BGc7K3E7.cjs → vue-ui-sparkbar-Bbns4V16.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BEY67Uh8.js → vue-ui-sparkbar-Fa-Kc9Fr.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DBJ6JcY4.cjs → vue-ui-sparkgauge-BrLrvNLH.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-COy9kS3g.js → vue-ui-sparkgauge-DUWcJ7cM.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Kof1NLnh.cjs → vue-ui-sparkhistogram-B0rhs_UN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-TOZ7cGZE.js → vue-ui-sparkhistogram-PgC-c-5a.js} +5 -5
- package/dist/{vue-ui-sparkline-Corg_lTS.js → vue-ui-sparkline-BqNlrKjb.js} +37 -35
- package/dist/vue-ui-sparkline-c5Awoj8J.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-2Vwz74c6.cjs → vue-ui-sparkstackbar-BmYIcpVZ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D-W-02aO.js → vue-ui-sparkstackbar-DyJIUulr.js} +5 -5
- package/dist/{vue-ui-stackbar-DRLdPZii.js → vue-ui-stackbar-BebRtOYL.js} +55 -53
- package/dist/{vue-ui-stackbar-DZvxTz3J.cjs → vue-ui-stackbar-DJ9NH_l1.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-tQk3HsSn.js → vue-ui-strip-plot-BGHj1BHd.js} +77 -75
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +1 -0
- package/dist/{vue-ui-table-G09LTync.cjs → vue-ui-table-BFdGppRF.cjs} +1 -1
- package/dist/{vue-ui-table-CNsJsvNH.js → vue-ui-table-ClPMKcMn.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Dl4lMTS6.cjs → vue-ui-table-heatmap-B7wTjM-H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CTs7AxUi.js → vue-ui-table-heatmap-DVQtPt-M.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Dy5shfoJ.cjs → vue-ui-table-sparkline-DaKODjfM.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ZtfktJZh.js → vue-ui-table-sparkline-DjxKXWQm.js} +5 -5
- package/dist/{vue-ui-thermometer-CaFnSru6.js → vue-ui-thermometer-CV_9k37V.js} +7 -7
- package/dist/{vue-ui-thermometer-039Cyhc2.cjs → vue-ui-thermometer-DE9r0emf.cjs} +1 -1
- package/dist/{vue-ui-timer-ChuLD5VW.js → vue-ui-timer-2w5Ayq7G.js} +35 -33
- package/dist/vue-ui-timer-Ct-KYWSX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-nDFTQjHJ.js → vue-ui-tiremarks-BJnh0GBj.js} +7 -7
- package/dist/{vue-ui-tiremarks-BiLfVwpF.cjs → vue-ui-tiremarks-Cf04zARl.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dv9HNV59.js → vue-ui-treemap-BD546LBi.js} +37 -35
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-W7AgfJa9.cjs → vue-ui-vertical-bar-D3QKHHnS.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-M3IDlqbG.js → vue-ui-vertical-bar-E5CTb1Bd.js} +53 -51
- package/dist/{vue-ui-waffle-CJYfXE-I.js → vue-ui-waffle-BAJIMbZK.js} +50 -48
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +1 -0
- package/dist/{vue-ui-wheel-BaMfH-RC.js → vue-ui-wheel-CPPLUSFq.js} +22 -20
- package/dist/vue-ui-wheel-Dy_B7BTG.cjs +1 -0
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-qympaTse.js → vue-ui-word-cloud-BVZcDY7m.js} +47 -45
- package/dist/vue-ui-xy-D4hRtHAi.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-Dn_4rMul.cjs → vue-ui-xy-canvas-BSZTrqci.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-qk5Vd9ng.js → vue-ui-xy-canvas-DFUfTZwz.js} +36 -34
- package/dist/{vue-ui-xy-BB_4gujH.js → vue-ui-xy-tB-6IP2y.js} +833 -839
- package/package.json +1 -1
- package/dist/Slicer-BZ-tooWv.cjs +0 -1
- package/dist/index-D4M1RdVn.cjs +0 -9
- package/dist/vue-ui-age-pyramid-BP3AgRGA.cjs +0 -1
- package/dist/vue-ui-donut--6AZz6OL.cjs +0 -1
- package/dist/vue-ui-dumbbell-6eYMBh5-.cjs +0 -9
- package/dist/vue-ui-funnel-CnyUx_rr.cjs +0 -1
- package/dist/vue-ui-gauge-Cg5wvQOF.cjs +0 -1
- package/dist/vue-ui-history-plot-N8Okj-iE.cjs +0 -1
- package/dist/vue-ui-quadrant-BSaMyYkS.cjs +0 -1
- package/dist/vue-ui-radar-BBKYxxex.cjs +0 -1
- package/dist/vue-ui-relation-circle-COKOM6l_.cjs +0 -1
- package/dist/vue-ui-scatter-oA9YA_np.cjs +0 -1
- package/dist/vue-ui-sparkline-De42544c.cjs +0 -1
- package/dist/vue-ui-strip-plot-CY7AKOJ8.cjs +0 -1
- package/dist/vue-ui-timer-BIAfoC2X.cjs +0 -64
- package/dist/vue-ui-treemap-8aBLlF51.cjs +0 -1
- package/dist/vue-ui-waffle-DefdpuXf.cjs +0 -1
- package/dist/vue-ui-wheel-DicUDLkK.cjs +0 -1
- package/dist/vue-ui-word-cloud-B5n21JbB.cjs +0 -1
- package/dist/vue-ui-xy-Du5PZnkC.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-COIn1phv.cjs"),Z=require("./useResponsive-BJ7DTGpm.cjs"),Ce=require("./Title-DJUxOiaO.cjs"),ee=require("./usePrinter-CXXfgFFN.cjs"),Be=require("./vue-ui-skeleton-BIqMxXV7.cjs"),te=require("./useNestedProp-CbMuGGl3.cjs"),$e=require("./PackageVersion-BjfedMsH.cjs"),Pe=require("./PenAndPaper-nqRtAh6J.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ze=["id"],Oe=["xmlns","viewBox"],Se=["width","height"],Ee=["cx","cy","r","stroke","stroke-width"],Ae={key:1},Ne=["stroke","d","stroke-width"],Ie={style:{"pointer-events":"none"}},Ve=["cx","cy","fill","r","stroke"],Fe=["x","y","fill","font-size"],Me={key:2},Te=["stroke","stroke-width","x1","x2","y1","y2"],Re={style:{"pointer-events":"none"}},je=["cx","cy","fill","r","stroke"],qe=["x","y","fill","font-size"],De=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],Ue=["cx","cy","fill","stroke","onClick","r"],Ge={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(le,{expose:re}){const y=le;e.useCssVars(t=>({"6a4b731d":ue.value,d1cda308:ie.value,"1841315e":ce.value}));const{vue_ui_relation_circle:ne}=o.useConfig(),$=e.computed(()=>!!y.dataset&&Object.keys(y.dataset).length),w=e.ref(o.createUid()),E=e.ref(0),x=e.ref(null),A=e.ref(null),N=e.ref(null),I=e.ref(null),V=e.ref(0),r=e.computed({get:()=>T(),set:t=>t}),{userOptionsVisible:P,setUserOptionsVisibility:F,keepUserOptionState:M}=_e.useUserOptionState({config:r.value});function T(){const t=te.useNestedProp({userConfig:y.config,defaultConfig:ne});return t.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||y.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>y.config,t=>{r.value=T(),P.value=!r.value.showOnChartHover,Y(),V.value+=1},{deep:!0});const{isPrinting:R,isImaging:j,generatePdf:q,generateImage:D}=ee.usePrinter({elementId:`relation_circle_${w.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),oe=e.computed(()=>r.value.userOptions.show&&!r.value.style.title.text),U=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),h=e.ref([]),d=e.ref([]),i=e.ref({}),v=e.ref([]),se=e.ref(0),_=e.computed(()=>y.dataset.slice(0,r.value.style.limit)),k=e.ref(r.value.style.size),f=e.ref(r.value.style.weightLabels.size),G=e.ref(r.value.style.plot.radius),W=e.ref(r.value.style.labels.fontSize),a=e.ref({height:r.value.style.size,width:r.value.style.size}),m=e.computed({get(){return k.value*r.value.style.circle.radiusProportion},set(t){return t}}),ae=e.computed(()=>r.value.style.links.curved),ie=e.computed(()=>`${r.value.style.animation.speedMs}ms`),ue=e.computed(()=>m.value*2),ce=e.computed(()=>m.value*4),b=e.ref(null);e.onMounted(()=>{Y(),document.getElementById(`relation_circle_${w.value}`).addEventListener("click",X)});function Y(){if(o.objectIsEmpty(y.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):y.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=Z.throttle(()=>{const{width:n,height:l}=Z.useResponsive({chart:x.value,title:r.value.style.title.text?A.value:null,source:N.value,noTitle:I.value});requestAnimationFrame(()=>{k.value=Math.min(n,l),a.value.width=n,a.value.height=l,m.value=k.value*r.value.style.circle.radiusProportion,h.value=[],d.value=[],H(),J(),f.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.weightLabels.size,threshold:6,fallback:6}),G.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.plot.radius,threshold:1,fallback:1}),W.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.labels.fontSize,threshold:6,fallback:6})})});b.value=new ResizeObserver(t),b.value.observe(x.value.parentNode)}else h.value=[],d.value=[],H(),J()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${w.value}`).removeEventListener("click",X),b.value&&b.value.disconnect()});function X(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},v.value=[])}function H(){const t=6.28319/_.value.length,n=360/_.value.length;let l=0,s=0;_.value.forEach((c,u)=>{const O=c.weights.reduce((xe,be)=>xe+be,0),S=m.value*Math.cos(l)+a.value.width/2,we=m.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;h.value.push({x:S,y:we,...c,color:c.color?c.color:U.value[u]?U.value[u]:o.palette[u],regAngle:s,totalWeight:O}),l+=t,s+=n})}function de(t,n){const l=(t.x+n.x)/2,s=(t.y+n.y)/2;return{x:l,y:s}}function J(){d.value=[],h.value.forEach(t=>{h.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{const c=l.relations.indexOf(t.id);d.value.push({weight:l.weights[c]?l.weights[c]:0,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,midPointLine:de({x:t.x,y:t.y},{x:l.x,y:l.y}),midPointBezier:ve({x1:t.x,x2:l.x,y1:t.y,y2:l.y}),...t})})})}function ve(t){const n={x:t.x1,y:t.y1},l={x:t.x2,y:t.y2},s={x:t.x1,y:t.y1},c={x:a.value.width/2,y:a.value.height/2+r.value.style.circle.offsetY},u=.5,O=Math.pow(1-u,3)*n.x+3*Math.pow(1-u,2)*u*s.x+3*(1-u)*Math.pow(u,2)*c.x+Math.pow(u,3)*l.x,S=Math.pow(1-u,3)*n.y+3*Math.pow(1-u,2)*u*s.y+3*(1-u)*Math.pow(u,2)*c.y+Math.pow(u,3)*l.y;return{x:O,y:S}}const fe=e.computed(()=>Math.max(...d.value.map(t=>t.weight)));function ye(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function g(t){return t.colorSource}function K(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${L(t)}`:"opacity: 0":"opacity: 1"}function p(t){return Object.hasOwn(i.value,"x")?!!(v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`):!1}function ge(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function he(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function me(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||v.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function ke(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function Q(t){se.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},v.value=[]):(i.value=t,v.value=[...t.relations])}function L(t){const n=t.weight/fe.value*r.value.style.links.maxWidth;return Math.max(.3,n)}const C=e.ref(!1);function pe(t){C.value=t,E.value+=1}const B=e.ref(!1);function z(){B.value=!B.value}return re({generatePdf:q,generateImage:D,toggleAnnotator:z}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:x,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${w.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref(F)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(F)(!1))},[r.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Pe.PenAndPaper,{key:0,parent:x.value,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,active:B.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),oe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:I,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&$.value&&(e.unref(M)||e.unref(P))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref:"details",key:`user_options_${E.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(j),uid:w.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:C.value,titles:{...r.value.userOptions.buttonTitles},chartElement:x.value,position:r.value.userOptions.position,hasAnnotator:r.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode($e._sfc_main),t.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:a.value.width<=0?10:a.value.width,height:a.value.height<=0?10:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(t.$slots,"chart-background",{},void 0,!0)],8,Se)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:m.value<=0?1e-4:m.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,Ee),ae.value?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(K(l)),stroke:g(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":L(l),"stroke-linecap":"round"},null,14,Ne))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",Ie,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.normalizeProps(e.mergeProps({key:0},{x:l.midPointBezier.x,y:l.midPointBezier.y,color:g(l),weight:l.weight,fontSize:f.value})),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointBezier.x,cy:l.midPointBezier.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,Ve)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointBezier.x,y:l.midPointBezier.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Fe)):e.createCommentVNode("",!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:g(l),"stroke-width":L(l),style:e.normalizeStyle(K(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}),"stroke-linecap":"round"},null,14,Te))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",Re,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.normalizeProps(e.mergeProps({key:0},{x:l.midPointLine.x,y:l.midPointLine.y,color:g(l),weight:l.weight,fontSize:f.value})),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointLine.x,cy:l.midPointLine.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,je)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointLine.x,y:l.midPointLine.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,qe)):e.createCommentVNode("",!0)]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":ge(l),transform:ke(l),x:he(l),y:l.y+5,onClick:c=>Q(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${me(l)}`),"font-size":W.value,fill:r.value.style.labels.color},e.toDisplayString(l.label)+" ("+e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.totalWeight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.totalWeight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l}))+") ",13,De))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(ye(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.useSerieColor?l.color:r.value.style.plot.color,stroke:r.value.style.backgroundColor,"stroke-width":"1",onClick:c=>Q(l),r:G.value},null,12,Ue))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,Oe)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:N,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Be.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],44,ze))}},Ye=Le._export_sfc(We,[["__scopeId","data-v-26967977"]]);exports.default=Ye;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useCssVars as Ge, computed as
|
|
2
|
-
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-
|
|
1
|
+
import { useCssVars as Ge, computed as h, ref as o, watch as Ve, onMounted as We, onBeforeUnmount as De, openBlock as i, createElementBlock as a, normalizeStyle as C, unref as u, createBlock as F, createCommentVNode as v, createSlots as Xe, withCtx as B, renderSlot as f, normalizeProps as A, guardReactiveProps as W, normalizeClass as D, createVNode as Ye, createElementVNode as qe, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as E } from "vue";
|
|
2
|
+
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-B7nCQFK0.js";
|
|
3
3
|
import { t as st, u as it } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as at } from "./Title-
|
|
5
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
6
|
-
import ut from "./vue-ui-skeleton-
|
|
7
|
-
import { u as we } from "./useNestedProp-
|
|
8
|
-
import { _ as ot } from "./PackageVersion-
|
|
9
|
-
import { P as ct } from "./PenAndPaper-
|
|
4
|
+
import { _ as at } from "./Title-CaET2xuF.js";
|
|
5
|
+
import { u as nt, U as rt } from "./usePrinter-CQMn1b4E.js";
|
|
6
|
+
import ut from "./vue-ui-skeleton-D66ZIUln.js";
|
|
7
|
+
import { u as we } from "./useNestedProp-C9rlBRTT.js";
|
|
8
|
+
import { _ as ot } from "./PackageVersion-CENy3Lm2.js";
|
|
9
|
+
import { P as ct } from "./PenAndPaper-Dr7ndoP_.js";
|
|
10
10
|
import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const yt = ["id"],
|
|
12
|
+
const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["cx", "cy", "r", "stroke", "stroke-width"], mt = { key: 1 }, kt = ["stroke", "d", "stroke-width"], pt = { style: { "pointer-events": "none" } }, wt = ["cx", "cy", "fill", "r", "stroke"], xt = ["x", "y", "fill", "font-size"], bt = { key: 2 }, $t = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], _t = { style: { "pointer-events": "none" } }, Ct = ["cx", "cy", "fill", "r", "stroke"], Pt = ["x", "y", "fill", "font-size"], Lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ot = ["cx", "cy", "fill", "stroke", "onClick", "r"], zt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, At = {
|
|
@@ -31,11 +31,11 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
31
31
|
setup(xe, { expose: be }) {
|
|
32
32
|
const p = xe;
|
|
33
33
|
Ge((e) => ({
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
"6a4b731d": Oe.value,
|
|
35
|
+
d1cda308: Le.value,
|
|
36
|
+
"1841315e": ze.value
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_relation_circle: $e } = He(), T =
|
|
38
|
+
const { vue_ui_relation_circle: $e } = He(), T = h(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Je()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = h({
|
|
39
39
|
get: () => le(),
|
|
40
40
|
set: (e) => e
|
|
41
41
|
}), { userOptionsVisible: N, setUserOptionsVisibility: ee, keepUserOptionState: te } = dt({ config: l.value });
|
|
@@ -58,17 +58,17 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
58
58
|
const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: ne } = nt({
|
|
59
59
|
elementId: `relation_circle_${O.value}`,
|
|
60
60
|
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
61
|
-
}), _e =
|
|
61
|
+
}), _e = h(() => l.value.userOptions.show && !l.value.style.title.text), re = h(() => Ze(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Ce = o(0), R = h(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), r = o({
|
|
62
62
|
height: l.value.style.size,
|
|
63
63
|
width: l.value.style.size
|
|
64
|
-
}), b =
|
|
64
|
+
}), b = h({
|
|
65
65
|
get() {
|
|
66
66
|
return $.value * l.value.style.circle.radiusProportion;
|
|
67
67
|
},
|
|
68
68
|
set(e) {
|
|
69
69
|
return e;
|
|
70
70
|
}
|
|
71
|
-
}), Pe =
|
|
71
|
+
}), Pe = h(() => l.value.style.links.curved), Le = h(() => `${l.value.style.animation.speedMs}ms`), Oe = h(() => b.value * 2), ze = h(() => b.value * 4), I = o(null);
|
|
72
72
|
We(() => {
|
|
73
73
|
ce(), document.getElementById(`relation_circle_${O.value}`).addEventListener("click", de);
|
|
74
74
|
});
|
|
@@ -96,24 +96,26 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
96
96
|
source: K.value,
|
|
97
97
|
noTitle: Q.value
|
|
98
98
|
});
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
99
|
+
requestAnimationFrame(() => {
|
|
100
|
+
$.value = Math.min(s, t), r.value.width = s, r.value.height = t, b.value = $.value * l.value.style.circle.radiusProportion, x.value = [], g.value = [], ve(), ye(), k.value = q({
|
|
101
|
+
relator: $.value,
|
|
102
|
+
adjuster: l.value.style.size,
|
|
103
|
+
source: l.value.style.weightLabels.size,
|
|
104
|
+
threshold: 6,
|
|
105
|
+
fallback: 6
|
|
106
|
+
}), ue.value = q({
|
|
107
|
+
relator: $.value,
|
|
108
|
+
adjuster: l.value.style.size,
|
|
109
|
+
source: l.value.style.plot.radius,
|
|
110
|
+
threshold: 1,
|
|
111
|
+
fallback: 1
|
|
112
|
+
}), oe.value = q({
|
|
113
|
+
relator: $.value,
|
|
114
|
+
adjuster: l.value.style.size,
|
|
115
|
+
source: l.value.style.labels.fontSize,
|
|
116
|
+
threshold: 6,
|
|
117
|
+
fallback: 6
|
|
118
|
+
});
|
|
117
119
|
});
|
|
118
120
|
});
|
|
119
121
|
I.value = new ResizeObserver(e), I.value.observe(z.value.parentNode);
|
|
@@ -171,14 +173,14 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
171
173
|
}, d = 0.5, G = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * n.x + 3 * (1 - d) * Math.pow(d, 2) * y.x + Math.pow(d, 3) * t.x, V = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * n.y + 3 * (1 - d) * Math.pow(d, 2) * y.y + Math.pow(d, 3) * t.y;
|
|
172
174
|
return { x: G, y: V };
|
|
173
175
|
}
|
|
174
|
-
const Me =
|
|
176
|
+
const Me = h(() => Math.max(...g.value.map((e) => e.weight)));
|
|
175
177
|
function Se(e) {
|
|
176
178
|
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
177
179
|
}
|
|
178
180
|
function w(e) {
|
|
179
181
|
return e.colorSource;
|
|
180
182
|
}
|
|
181
|
-
function
|
|
183
|
+
function he(e) {
|
|
182
184
|
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${j(e)}` : "opacity: 0" : "opacity: 1";
|
|
183
185
|
}
|
|
184
186
|
function _(e) {
|
|
@@ -196,7 +198,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
196
198
|
function Te(e) {
|
|
197
199
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
198
200
|
}
|
|
199
|
-
function
|
|
201
|
+
function fe(e) {
|
|
200
202
|
Ce.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
|
|
201
203
|
}
|
|
202
204
|
function j(e) {
|
|
@@ -288,28 +290,28 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
288
290
|
e.$slots.optionPdf ? {
|
|
289
291
|
name: "optionPdf",
|
|
290
292
|
fn: B(() => [
|
|
291
|
-
|
|
293
|
+
f(e.$slots, "optionPdf", {}, void 0, !0)
|
|
292
294
|
]),
|
|
293
295
|
key: "0"
|
|
294
296
|
} : void 0,
|
|
295
297
|
e.$slots.optionImg ? {
|
|
296
298
|
name: "optionImg",
|
|
297
299
|
fn: B(() => [
|
|
298
|
-
|
|
300
|
+
f(e.$slots, "optionImg", {}, void 0, !0)
|
|
299
301
|
]),
|
|
300
302
|
key: "1"
|
|
301
303
|
} : void 0,
|
|
302
304
|
e.$slots.optionFullscreen ? {
|
|
303
305
|
name: "optionFullscreen",
|
|
304
306
|
fn: B(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
305
|
-
|
|
307
|
+
f(e.$slots, "optionFullscreen", A(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
306
308
|
]),
|
|
307
309
|
key: "2"
|
|
308
310
|
} : void 0,
|
|
309
311
|
e.$slots.optionAnnotator ? {
|
|
310
312
|
name: "optionAnnotator",
|
|
311
313
|
fn: B(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
312
|
-
|
|
314
|
+
f(e.$slots, "optionAnnotator", A(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
313
315
|
]),
|
|
314
316
|
key: "3"
|
|
315
317
|
} : void 0
|
|
@@ -333,8 +335,8 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
333
335
|
pointerEvents: "none"
|
|
334
336
|
}
|
|
335
337
|
}, [
|
|
336
|
-
|
|
337
|
-
], 8,
|
|
338
|
+
f(e.$slots, "chart-background", {}, void 0, !0)
|
|
339
|
+
], 8, ft)) : v("", !0),
|
|
338
340
|
qe("circle", {
|
|
339
341
|
cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
|
|
340
342
|
cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
|
|
@@ -347,7 +349,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
347
349
|
Pe.value ? (i(), a("g", mt, [
|
|
348
350
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("path", {
|
|
349
351
|
key: `relation_${n}`,
|
|
350
|
-
style: C(
|
|
352
|
+
style: C(he(t)),
|
|
351
353
|
stroke: w(t),
|
|
352
354
|
class: D(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }]),
|
|
353
355
|
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
@@ -356,7 +358,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
356
358
|
"stroke-linecap": "round"
|
|
357
359
|
}, null, 14, kt))), 128)),
|
|
358
360
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", pt, [
|
|
359
|
-
_(t) ?
|
|
361
|
+
_(t) ? f(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
360
362
|
x: t.midPointBezier.x,
|
|
361
363
|
y: t.midPointBezier.y,
|
|
362
364
|
color: w(t),
|
|
@@ -396,7 +398,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
396
398
|
key: `relation_${n}`,
|
|
397
399
|
stroke: w(t),
|
|
398
400
|
"stroke-width": j(t),
|
|
399
|
-
style: C(
|
|
401
|
+
style: C(he(t)),
|
|
400
402
|
x1: t.x1,
|
|
401
403
|
x2: t.x2,
|
|
402
404
|
y1: t.y1,
|
|
@@ -405,7 +407,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
405
407
|
"stroke-linecap": "round"
|
|
406
408
|
}, null, 14, $t))), 128)),
|
|
407
409
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", _t, [
|
|
408
|
-
_(t) ?
|
|
410
|
+
_(t) ? f(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
409
411
|
x: t.midPointLine.x,
|
|
410
412
|
y: t.midPointLine.y,
|
|
411
413
|
color: w(t),
|
|
@@ -447,7 +449,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
447
449
|
transform: Te(t),
|
|
448
450
|
x: Be(t),
|
|
449
451
|
y: t.y + 5,
|
|
450
|
-
onClick: (y) =>
|
|
452
|
+
onClick: (y) => fe(t),
|
|
451
453
|
class: "vue-ui-relation-circle-legend",
|
|
452
454
|
"transform-origin": "start",
|
|
453
455
|
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
@@ -474,13 +476,13 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
474
476
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
475
477
|
stroke: l.value.style.backgroundColor,
|
|
476
478
|
"stroke-width": "1",
|
|
477
|
-
onClick: (y) =>
|
|
479
|
+
onClick: (y) => fe(t),
|
|
478
480
|
r: ue.value
|
|
479
481
|
}, null, 12, Ot))), 128)),
|
|
480
|
-
|
|
481
|
-
], 10,
|
|
482
|
+
f(e.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
483
|
+
], 10, ht)) : v("", !0),
|
|
482
484
|
e.$slots.watermark ? (i(), a("div", zt, [
|
|
483
|
-
|
|
485
|
+
f(e.$slots, "watermark", A(W({ isPrinting: u(se) || u(ie) })), void 0, !0)
|
|
484
486
|
])) : v("", !0),
|
|
485
487
|
e.$slots.source ? (i(), a("div", {
|
|
486
488
|
key: 6,
|
|
@@ -488,7 +490,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
488
490
|
ref: K,
|
|
489
491
|
dir: "auto"
|
|
490
492
|
}, [
|
|
491
|
-
|
|
493
|
+
f(e.$slots, "source", {}, void 0, !0)
|
|
492
494
|
], 512)) : v("", !0),
|
|
493
495
|
T.value ? v("", !0) : (i(), F(ut, {
|
|
494
496
|
key: 7,
|
|
@@ -504,7 +506,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
504
506
|
}, null, 8, ["config"]))
|
|
505
507
|
], 44, yt));
|
|
506
508
|
}
|
|
507
|
-
}, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-
|
|
509
|
+
}, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-26967977"]]);
|
|
508
510
|
export {
|
|
509
511
|
Gt as default
|
|
510
512
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { useSlots as De, ref as r, computed as h, watch as Ee, onMounted as Ge, onBeforeUnmount as He, openBlock as n, createElementBlock as v, normalizeClass as V, normalizeStyle as N, unref as i, createBlock as O, createCommentVNode as m, createSlots as $e, withCtx as g, renderSlot as p, normalizeProps as
|
|
2
|
-
import { u as Xe, c as _e, t as
|
|
1
|
+
import { useSlots as De, ref as r, computed as h, watch as Ee, onMounted as Ge, onBeforeUnmount as He, openBlock as n, createElementBlock as v, normalizeClass as V, normalizeStyle as N, unref as i, createBlock as O, createCommentVNode as m, createSlots as $e, withCtx as g, renderSlot as p, normalizeProps as F, guardReactiveProps as L, createVNode as J, createElementVNode as w, Fragment as K, renderList as Q, createTextVNode as we, toDisplayString as E, nextTick as je } from "vue";
|
|
2
|
+
import { u as Xe, c as _e, t as qe, a as Ye, p as I, o as Je, e as Z, g as Ke, b as Qe, J as Ze, d as Te, f as P, X as et, s as tt, w as lt, v as G, i as xe, x as ot, y as at, q as st, r as nt } from "./index-B7nCQFK0.js";
|
|
3
3
|
import { t as ut, u as rt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as it } from "./Title-
|
|
5
|
-
import { u as vt, U as ct } from "./usePrinter-
|
|
6
|
-
import { _ as dt } from "./Tooltip-
|
|
7
|
-
import { D as pt } from "./DataTable-
|
|
8
|
-
import { L as ht } from "./Legend-
|
|
9
|
-
import gt from "./vue-ui-skeleton-
|
|
10
|
-
import ft from "./vue-ui-accordion-
|
|
11
|
-
import { u as Ne } from "./useNestedProp-
|
|
12
|
-
import { _ as yt } from "./PackageVersion-
|
|
13
|
-
import { P as mt } from "./PenAndPaper-
|
|
4
|
+
import { _ as it } from "./Title-CaET2xuF.js";
|
|
5
|
+
import { u as vt, U as ct } from "./usePrinter-CQMn1b4E.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-Bkc4233T.js";
|
|
7
|
+
import { D as pt } from "./DataTable-C0tCPQ9i.js";
|
|
8
|
+
import { L as ht } from "./Legend-BTpe6qQB.js";
|
|
9
|
+
import gt from "./vue-ui-skeleton-D66ZIUln.js";
|
|
10
|
+
import ft from "./vue-ui-accordion-B8ptB5BQ.js";
|
|
11
|
+
import { u as Ne } from "./useNestedProp-C9rlBRTT.js";
|
|
12
|
+
import { _ as yt } from "./PackageVersion-CENy3Lm2.js";
|
|
13
|
+
import { P as mt } from "./PenAndPaper-Dr7ndoP_.js";
|
|
14
14
|
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as kt } from "./Shape-
|
|
15
|
+
import { _ as kt } from "./Shape-zFv85Gc2.js";
|
|
16
16
|
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["id"], xt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 1 }, It = ["stroke", "cx", "cy", "r", "fill"], Pt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], St = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], At = ["cx", "cy", "r", "onMouseenter"],
|
|
17
|
+
const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["id"], xt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 1 }, It = ["stroke", "cx", "cy", "r", "fill"], Pt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], St = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], At = ["cx", "cy", "r", "onMouseenter"], Ft = {
|
|
18
18
|
key: 5,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Lt = ["onClick"], Mt = { key: 0 }, Vt = { key: 1 }, zt = ["innerHTML"], Rt = {
|
|
21
21
|
__name: "vue-ui-rings",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -35,7 +35,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
37
|
setup(Oe, { expose: Ie, emit: Pe }) {
|
|
38
|
-
const b = Oe, { vue_ui_rings: Se } = Xe(), Ae = De(), x = r(!1), z = h(() => !!b.dataset && b.dataset.length), C = r(_e()),
|
|
38
|
+
const b = Oe, { vue_ui_rings: Se } = Xe(), Ae = De(), x = r(!1), z = h(() => !!b.dataset && b.dataset.length), C = r(_e()), Fe = r(null), R = r(!1), H = r(""), $ = r(null), ee = r(0), S = r(null), te = r(null), le = r(null), oe = r(null), ae = r(null), se = r(0), ne = r(0), ue = r(0), e = h({
|
|
39
39
|
get: () => ve(),
|
|
40
40
|
set: (t) => t
|
|
41
41
|
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = bt({ config: e.value });
|
|
@@ -46,10 +46,10 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
46
46
|
});
|
|
47
47
|
return t.theme ? {
|
|
48
48
|
...Ne({
|
|
49
|
-
userConfig:
|
|
49
|
+
userConfig: qe.vue_ui_rings[t.theme] || b.config,
|
|
50
50
|
defaultConfig: t
|
|
51
51
|
}),
|
|
52
|
-
customPalette:
|
|
52
|
+
customPalette: Ye[t.theme] || I
|
|
53
53
|
} : t;
|
|
54
54
|
}
|
|
55
55
|
Ee(() => b.config, (t) => {
|
|
@@ -87,7 +87,9 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
87
87
|
source: oe.value,
|
|
88
88
|
noTitle: ae.value
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
requestAnimationFrame(() => {
|
|
91
|
+
s.value.width = o, s.value.height = l;
|
|
92
|
+
});
|
|
91
93
|
});
|
|
92
94
|
U.value = new ResizeObserver(t), U.value.observe(S.value.parentNode);
|
|
93
95
|
}
|
|
@@ -101,7 +103,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
101
103
|
const { isPrinting: de, isImaging: pe, generatePdf: he, generateImage: ge } = vt({
|
|
102
104
|
elementId: `rings_${C.value}`,
|
|
103
105
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
104
|
-
}),
|
|
106
|
+
}), Le = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), fe = h(() => Qe(e.value.customPalette)), _ = r({
|
|
105
107
|
showTable: e.value.table.show,
|
|
106
108
|
showTooltip: e.value.style.chart.tooltip.show
|
|
107
109
|
}), s = r({
|
|
@@ -165,10 +167,10 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
165
167
|
})
|
|
166
168
|
);
|
|
167
169
|
}
|
|
168
|
-
const c = h(() => Me.value - e.value.style.chart.layout.rings.strokeWidth * 2),
|
|
170
|
+
const c = h(() => Me.value - e.value.style.chart.layout.rings.strokeWidth * 2), q = r(null);
|
|
169
171
|
function Ue(t, o) {
|
|
170
172
|
if (f.value.length === b.dataset.length) return;
|
|
171
|
-
|
|
173
|
+
q.value = {
|
|
172
174
|
datapoint: o,
|
|
173
175
|
seriesIndex: t,
|
|
174
176
|
series: d.value,
|
|
@@ -273,7 +275,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
273
275
|
_.value.showTooltip = !_.value.showTooltip;
|
|
274
276
|
}
|
|
275
277
|
const D = r(!1);
|
|
276
|
-
function
|
|
278
|
+
function Y() {
|
|
277
279
|
D.value = !D.value;
|
|
278
280
|
}
|
|
279
281
|
return Ie({
|
|
@@ -283,7 +285,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
283
285
|
generateImage: ge,
|
|
284
286
|
toggleTable: ke,
|
|
285
287
|
toggleTooltip: Ce,
|
|
286
|
-
toggleAnnotator:
|
|
288
|
+
toggleAnnotator: Y
|
|
287
289
|
}), (t, o) => (n(), v("div", {
|
|
288
290
|
ref_key: "ringsChart",
|
|
289
291
|
ref: S,
|
|
@@ -301,9 +303,9 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
301
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
302
304
|
color: e.value.style.chart.color,
|
|
303
305
|
active: D.value,
|
|
304
|
-
onClose:
|
|
306
|
+
onClose: Y
|
|
305
307
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : m("", !0),
|
|
306
|
-
|
|
308
|
+
Le.value ? (n(), v("div", {
|
|
307
309
|
key: 1,
|
|
308
310
|
ref_key: "noTitle",
|
|
309
311
|
ref: ae,
|
|
@@ -332,7 +334,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
332
334
|
], 512)) : m("", !0),
|
|
333
335
|
e.value.userOptions.show && z.value && (i(ie) || i(j)) ? (n(), O(ct, {
|
|
334
336
|
ref_key: "details",
|
|
335
|
-
ref:
|
|
337
|
+
ref: Fe,
|
|
336
338
|
key: `user_options_${ee.value}`,
|
|
337
339
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
338
340
|
color: e.value.style.chart.color,
|
|
@@ -358,7 +360,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
358
360
|
onGenerateImage: i(ge),
|
|
359
361
|
onToggleTable: ke,
|
|
360
362
|
onToggleTooltip: Ce,
|
|
361
|
-
onToggleAnnotator:
|
|
363
|
+
onToggleAnnotator: Y,
|
|
362
364
|
style: N({
|
|
363
365
|
visibility: i(ie) ? i(j) ? "visible" : "hidden" : "visible"
|
|
364
366
|
})
|
|
@@ -401,14 +403,14 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
401
403
|
t.$slots.optionFullscreen ? {
|
|
402
404
|
name: "optionFullscreen",
|
|
403
405
|
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
404
|
-
p(t.$slots, "optionFullscreen", L(
|
|
406
|
+
p(t.$slots, "optionFullscreen", F(L({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
405
407
|
]),
|
|
406
408
|
key: "5"
|
|
407
409
|
} : void 0,
|
|
408
410
|
t.$slots.optionAnnotator ? {
|
|
409
411
|
name: "optionAnnotator",
|
|
410
412
|
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
411
|
-
p(t.$slots, "optionAnnotator", L(
|
|
413
|
+
p(t.$slots, "optionAnnotator", F(L({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
412
414
|
]),
|
|
413
415
|
key: "6"
|
|
414
416
|
} : void 0
|
|
@@ -454,7 +456,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
454
456
|
]),
|
|
455
457
|
t.$slots.pattern ? (n(), v("g", Ot, [
|
|
456
458
|
(n(!0), v(K, null, Q(d.value, (l) => (n(), v("defs", null, [
|
|
457
|
-
p(t.$slots, "pattern", L(
|
|
459
|
+
p(t.$slots, "pattern", F(L({ seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` })), void 0, !0)
|
|
458
460
|
]))), 256))
|
|
459
461
|
])) : m("", !0),
|
|
460
462
|
(n(!0), v(K, null, Q(d.value, (l, a) => (n(), v("g", null, [
|
|
@@ -517,8 +519,8 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
517
519
|
]))), 256)),
|
|
518
520
|
p(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
519
521
|
], 14, wt)) : m("", !0),
|
|
520
|
-
t.$slots.watermark ? (n(), v("div",
|
|
521
|
-
p(t.$slots, "watermark", L(
|
|
522
|
+
t.$slots.watermark ? (n(), v("div", Ft, [
|
|
523
|
+
p(t.$slots, "watermark", F(L({ isPrinting: i(de) || i(pe) })), void 0, !0)
|
|
522
524
|
])) : m("", !0),
|
|
523
525
|
z.value ? m("", !0) : (n(), O(gt, {
|
|
524
526
|
key: 6,
|
|
@@ -564,7 +566,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
564
566
|
s: "%",
|
|
565
567
|
r: e.value.style.chart.legend.roundingPercentage
|
|
566
568
|
})) + ") ", 1))
|
|
567
|
-
], 12,
|
|
569
|
+
], 12, Lt)
|
|
568
570
|
]),
|
|
569
571
|
_: 2
|
|
570
572
|
}, [
|
|
@@ -611,10 +613,10 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
611
613
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
612
614
|
}, {
|
|
613
615
|
"tooltip-before": g(() => [
|
|
614
|
-
p(t.$slots, "tooltip-before", L(
|
|
616
|
+
p(t.$slots, "tooltip-before", F(L({ ...q.value })), void 0, !0)
|
|
615
617
|
]),
|
|
616
618
|
"tooltip-after": g(() => [
|
|
617
|
-
p(t.$slots, "tooltip-after", L(
|
|
619
|
+
p(t.$slots, "tooltip-after", F(L({ ...q.value })), void 0, !0)
|
|
618
620
|
]),
|
|
619
621
|
_: 3
|
|
620
622
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -660,7 +662,7 @@ const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["i
|
|
|
660
662
|
}, 8, ["config"])) : m("", !0)
|
|
661
663
|
], 46, $t));
|
|
662
664
|
}
|
|
663
|
-
}, tl = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-
|
|
665
|
+
}, tl = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-bb9ae26d"]]);
|
|
664
666
|
export {
|
|
665
667
|
tl as default
|
|
666
668
|
};
|