vue-data-ui 2.4.10 → 2.4.12
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 +25 -0
- package/dist/{Arrow-CM_kK1lh.js → Arrow-CGKCROwz.js} +1 -1
- package/dist/{Arrow-DUr4i9t2.cjs → Arrow-CtkFVr5U.cjs} +1 -1
- package/dist/{BaseIcon-CAU2cQG0.js → BaseIcon-C4ndCspW.js} +1 -1
- package/dist/{BaseIcon-DGcywBgz.cjs → BaseIcon-CLoM8DDe.cjs} +1 -1
- package/dist/{DataTable-BGBoMvME.cjs → DataTable-C1e5i-AQ.cjs} +1 -1
- package/dist/{DataTable-DlskIWF5.js → DataTable-CveCk6xW.js} +2 -2
- package/dist/{Legend-CSYqCPTm.js → Legend-DDWzCGWe.js} +1 -1
- package/dist/{Legend-B40iHzw3.cjs → Legend-XfQwPnB6.cjs} +1 -1
- package/dist/{PackageVersion-DH0d8pMI.js → PackageVersion-Bi8RUX5W.js} +1 -1
- package/dist/{PackageVersion-BQj9e8Pe.cjs → PackageVersion-BzA9shEH.cjs} +1 -1
- package/dist/{PenAndPaper-BY24yHU3.js → PenAndPaper-DnMUcq2C.js} +2 -2
- package/dist/{PenAndPaper-CT1cbWxJ.cjs → PenAndPaper-DolOORON.cjs} +1 -1
- package/dist/{Shape-D_HmNdly.js → Shape-BvB4qzcw.js} +1 -1
- package/dist/{Shape-DCM4mNbd.cjs → Shape-CmAme9xi.cjs} +1 -1
- package/dist/{Slicer-CCdYT_l-.cjs → Slicer-BVuY0EjX.cjs} +1 -1
- package/dist/{Slicer-CWt_RFCu.js → Slicer-Be_ldy79.js} +2 -2
- package/dist/{Title-Mdlm-Z1o.js → Title-CAfojmIe.js} +1 -1
- package/dist/{Title-BUfOW_RU.cjs → Title-CYDoc6j3.cjs} +1 -1
- package/dist/{Tooltip-jO6bDIPj.cjs → Tooltip-BABZKovD.cjs} +1 -1
- package/dist/{Tooltip-Jc-upaDj.js → Tooltip-v1xcr7vF.js} +1 -1
- package/dist/{index-DK5d18KK.js → index-CFa1LJja.js} +1265 -1195
- package/dist/index-KDxAXZXP.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -0
- package/dist/types/vue-data-ui.d.ts +18 -0
- package/dist/{useNestedProp-B0n5mAli.cjs → useNestedProp-CXjSKjKD.cjs} +1 -1
- package/dist/{useNestedProp-ClXcrtps.js → useNestedProp-DtAqKb0W.js} +1 -1
- package/dist/{usePrinter-DGDIrVlD.js → usePrinter-DEvTXkt_.js} +1 -1
- package/dist/{usePrinter-NqofNL0V.cjs → usePrinter-l7v2Rcgc.cjs} +1 -1
- package/dist/{vue-data-ui-BfhnPKln.cjs → vue-data-ui-C1RPDTzl.cjs} +1 -1
- package/dist/{vue-data-ui-lH7ymNyt.js → vue-data-ui-CXYOFCkg.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +11 -11
- package/dist/{vue-ui-3d-bar-DqwELWxm.cjs → vue-ui-3d-bar-BCaGJcxZ.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CoVF3XOc.js → vue-ui-3d-bar-BSiHb8c-.js} +9 -9
- package/dist/{vue-ui-accordion-BPPv4_ip.js → vue-ui-accordion-BjK5Zqcp.js} +3 -3
- package/dist/{vue-ui-accordion-Cs1ai6jc.cjs → vue-ui-accordion-D5b-rLq8.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C53sStsM.js → vue-ui-age-pyramid-DaAUzEm9.js} +10 -10
- package/dist/{vue-ui-age-pyramid-3C4d-_GM.cjs → vue-ui-age-pyramid-DfYUkpdC.cjs} +1 -1
- package/dist/{vue-ui-annotator-k76x9J6j.js → vue-ui-annotator-BdKHB-q4.js} +1 -1
- package/dist/{vue-ui-annotator-_Q0ZIzn8.cjs → vue-ui-annotator-Cb0lPmzD.cjs} +1 -1
- package/dist/{vue-ui-bullet-jgSYPjBF.js → vue-ui-bullet-C-nXv9dy.js} +8 -8
- package/dist/{vue-ui-bullet-vlz1aeyd.cjs → vue-ui-bullet-wx_gocM4.cjs} +1 -1
- package/dist/{vue-ui-candlestick-4E2zfgXm.cjs → vue-ui-candlestick-DB00WcCz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C5WvA_0-.js → vue-ui-candlestick-DWO7x9nX.js} +11 -11
- package/dist/{vue-ui-carousel-table-BGhnNK69.js → vue-ui-carousel-table-BLBPwKS8.js} +4 -4
- package/dist/{vue-ui-carousel-table-Dvv07d2C.cjs → vue-ui-carousel-table-F-DEBome.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CS3-u4Ni.js → vue-ui-chestnut-CXlm92u0.js} +8 -8
- package/dist/{vue-ui-chestnut-BN0WYuYI.cjs → vue-ui-chestnut-CzFwENN8.cjs} +1 -1
- package/dist/{vue-ui-cursor-CBzNiBah.cjs → vue-ui-cursor-DJLKYGcb.cjs} +1 -1
- package/dist/{vue-ui-cursor-CvO35XOa.js → vue-ui-cursor-D_pO4Spk.js} +2 -2
- package/dist/{vue-ui-dashboard-B_wLH-4X.cjs → vue-ui-dashboard-4NILx623.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CxcVLbE6.js → vue-ui-dashboard-COKACbCL.js} +2 -2
- package/dist/{vue-ui-digits-BGSghuCv.js → vue-ui-digits-BPL49_3d.js} +2 -2
- package/dist/{vue-ui-digits-B7Fl83L7.cjs → vue-ui-digits-BTTzz0k1.cjs} +1 -1
- package/dist/{vue-ui-donut-DOpR22Ej.cjs → vue-ui-donut-DcEFUd-o.cjs} +1 -1
- package/dist/{vue-ui-donut-dwvOwA-U.js → vue-ui-donut-DqJKys7z.js} +11 -11
- package/dist/{vue-ui-donut-evolution-5uLcYRnw.cjs → vue-ui-donut-evolution-BJhAsLVn.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-VOiW2ObU.js → vue-ui-donut-evolution-CYsUMYt3.js} +11 -11
- package/dist/{vue-ui-dumbbell-C0MpVaFs.js → vue-ui-dumbbell-Be6aaQry.js} +10 -10
- package/dist/{vue-ui-dumbbell-9q9h1dDn.cjs → vue-ui-dumbbell-By2gkcbi.cjs} +1 -1
- package/dist/{vue-ui-flow-Cq4LCfPc.js → vue-ui-flow-Bu2IHLu9.js} +9 -9
- package/dist/{vue-ui-flow-CHwAarVU.cjs → vue-ui-flow-CJNjrSDE.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B4CfayH0.js → vue-ui-galaxy--W8nCy3k.js} +11 -11
- package/dist/{vue-ui-galaxy-Cnvl-yLA.cjs → vue-ui-galaxy-Bl6v7ahB.cjs} +1 -1
- package/dist/{vue-ui-gauge-CaobjymM.js → vue-ui-gauge-CAKo27_R.js} +7 -7
- package/dist/{vue-ui-gauge-BjJLKF-b.cjs → vue-ui-gauge-D9dkzTLj.cjs} +1 -1
- package/dist/{vue-ui-gizmo-_y5hJB9C.cjs → vue-ui-gizmo-BnrcwQ_f.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cj8gfmZ2.js → vue-ui-gizmo-CGSp6322.js} +3 -3
- package/dist/{vue-ui-heatmap-BpC1gF0u.cjs → vue-ui-heatmap-5NsMNQC1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D21A-6Uy.js → vue-ui-heatmap-CGiaD-XX.js} +10 -10
- package/dist/{vue-ui-kpi-BcXppcHM.cjs → vue-ui-kpi-DcvKKcCZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-BsRb8jt8.js → vue-ui-kpi-_o8oGkDo.js} +3 -3
- package/dist/{vue-ui-mini-loader-azeChSwS.cjs → vue-ui-mini-loader-BnWpe-Jx.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DtrX9TLF.js → vue-ui-mini-loader-BwahnZ5M.js} +2 -2
- package/dist/{vue-ui-molecule-vi8RLRaQ.js → vue-ui-molecule-DW45rSTG.js} +11 -11
- package/dist/{vue-ui-molecule-nZnahWmt.cjs → vue-ui-molecule-EI0QZuPn.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CEaUUawh.cjs → vue-ui-mood-radar-Bgunn4sw.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DL1kGEqS.js → vue-ui-mood-radar-Sia4EwXF.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Dbw6EGVj.js → vue-ui-nested-donuts-Cf7hGnwG.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BKORKmdq.cjs → vue-ui-nested-donuts-tWesxUCT.cjs} +1 -1
- package/dist/{vue-ui-onion-DWDZ6qgP.js → vue-ui-onion-BaZ_wTbo.js} +11 -11
- package/dist/{vue-ui-onion-BUbTjewt.cjs → vue-ui-onion-C6MaVU1K.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BCIse3jy.js → vue-ui-parallel-coordinate-plot-BtIKgxvv.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BQbTgBLZ.cjs → vue-ui-parallel-coordinate-plot-DrV9F60N.cjs} +1 -1
- package/dist/vue-ui-quadrant-Cle11mCD.cjs +1 -0
- package/dist/{vue-ui-quadrant-DG7cPvvY.js → vue-ui-quadrant-L6SfZjpt.js} +130 -123
- package/dist/{vue-ui-quick-chart-Dir7Bzan.cjs → vue-ui-quick-chart-CqS3PeU-.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BpI2l7KR.js → vue-ui-quick-chart-DYu27_hL.js} +9 -9
- package/dist/{vue-ui-radar-kJVA04dK.js → vue-ui-radar-BHirHWDO.js} +12 -12
- package/dist/{vue-ui-radar-CJJsi6T1.cjs → vue-ui-radar-DSrgQE0m.cjs} +1 -1
- package/dist/{vue-ui-rating-DePJC_kO.js → vue-ui-rating-BBRC3Fex.js} +11 -11
- package/dist/{vue-ui-rating-D1AwQnIf.cjs → vue-ui-rating-BJHo9SsT.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CBEVCM1z.js → vue-ui-relation-circle-CpGiH1jp.js} +7 -7
- package/dist/{vue-ui-relation-circle-C2I_udoT.cjs → vue-ui-relation-circle-DzRQKnES.cjs} +1 -1
- package/dist/{vue-ui-rings-8z2SwA9Z.js → vue-ui-rings-B7tPoi26.js} +11 -11
- package/dist/{vue-ui-rings-Bya_txxb.cjs → vue-ui-rings-DT_F10Cs.cjs} +1 -1
- package/dist/vue-ui-scatter-B5G15tC4.cjs +1 -0
- package/dist/{vue-ui-scatter-CpSoThxp.js → vue-ui-scatter-CTk2BZ_d.js} +131 -127
- package/dist/{vue-ui-screenshot-m4dgEnYd.js → vue-ui-screenshot-CZr_osbk.js} +1 -1
- package/dist/{vue-ui-screenshot-B5ZTnb9m.cjs → vue-ui-screenshot-DRe3Coog.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BRE3meIp.js → vue-ui-skeleton-CHLsECtI.js} +20 -20
- package/dist/{vue-ui-skeleton-DtwM9cxs.cjs → vue-ui-skeleton-CdeslaC3.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dr-w5W-S.cjs → vue-ui-smiley-BcgpnSoO.cjs} +1 -1
- package/dist/{vue-ui-smiley-DKfb2gzh.js → vue-ui-smiley-esJYBMWC.js} +2 -2
- package/dist/vue-ui-spark-trend-B744D8Vm.cjs +1 -0
- package/dist/vue-ui-spark-trend-CLLnG7sn.js +282 -0
- package/dist/{vue-ui-sparkbar-CBJzI2Y6.js → vue-ui-sparkbar-DP4IIvXP.js} +4 -4
- package/dist/{vue-ui-sparkbar-CSIYw26l.cjs → vue-ui-sparkbar-sM0UolJY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ChJrYz-j.cjs → vue-ui-sparkgauge-CdCvjUt1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-WVawdMgw.js → vue-ui-sparkgauge-DxXLjj0m.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B_rv8cdu.cjs → vue-ui-sparkhistogram-BKH_x2YZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DjOfNle3.js → vue-ui-sparkhistogram-eiNFDU7_.js} +5 -5
- package/dist/{vue-ui-sparkline-CDqZbqFZ.js → vue-ui-sparkline-5JHLo5sp.js} +134 -124
- package/dist/vue-ui-sparkline-B2O2Ltg7.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-uxG--V1I.cjs → vue-ui-sparkstackbar-5yePKW_I.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CRXbTlb3.js → vue-ui-sparkstackbar-R08GxmHX.js} +5 -5
- package/dist/{vue-ui-stackbar-hVWTvq2q.cjs → vue-ui-stackbar-7KA0-619.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C2_GdpuG.js → vue-ui-stackbar-DLdmXSKP.js} +12 -12
- package/dist/{vue-ui-strip-plot--PGjbjCQ.js → vue-ui-strip-plot-5JzjqmSe.js} +11 -11
- package/dist/{vue-ui-strip-plot-Df3v8CjI.cjs → vue-ui-strip-plot-iJg6nab9.cjs} +1 -1
- package/dist/{vue-ui-table-CnOw_aIw.cjs → vue-ui-table-BwjCx5AH.cjs} +1 -1
- package/dist/{vue-ui-table-CaEHdo-i.js → vue-ui-table-DBuVWV5Y.js} +10 -10
- package/dist/{vue-ui-table-heatmap-DGY-jDJp.js → vue-ui-table-heatmap-DYCUCDMQ.js} +21 -21
- package/dist/{vue-ui-table-heatmap-DBP8PC6T.cjs → vue-ui-table-heatmap-_bASSmfs.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DXg8PsM9.cjs → vue-ui-table-sparkline-BEJ__c2i.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DgX8QjmZ.js → vue-ui-table-sparkline-BvozgKWZ.js} +16 -16
- package/dist/{vue-ui-thermometer-B8sDrFQi.js → vue-ui-thermometer-1HmsfwA6.js} +7 -7
- package/dist/{vue-ui-thermometer-dTugfFAc.cjs → vue-ui-thermometer-Dc49W_uX.cjs} +1 -1
- package/dist/{vue-ui-timer-Bk7NwPQj.cjs → vue-ui-timer-CzsWb_ok.cjs} +1 -1
- package/dist/{vue-ui-timer-BCdkpEqq.js → vue-ui-timer-ccFYaDXI.js} +5 -5
- package/dist/{vue-ui-tiremarks-C1jy9rfy.js → vue-ui-tiremarks-CMQ6uKOm.js} +7 -7
- package/dist/{vue-ui-tiremarks-D-feFYrh.cjs → vue-ui-tiremarks-CqjOSr6y.cjs} +1 -1
- package/dist/{vue-ui-treemap-B9waqwni.cjs → vue-ui-treemap-CLTdGsvf.cjs} +1 -1
- package/dist/{vue-ui-treemap-yOP6_AwZ.js → vue-ui-treemap-Dbkr_rdH.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D0TIrS3E.js → vue-ui-vertical-bar-BzIh5UUg.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BIIeyp43.cjs → vue-ui-vertical-bar-DzWoUrXd.cjs} +1 -1
- package/dist/{vue-ui-waffle-CxpK1bY4.js → vue-ui-waffle-CQw6Qf9H.js} +11 -11
- package/dist/{vue-ui-waffle-LfnZeSYq.cjs → vue-ui-waffle-GvNWX9QC.cjs} +1 -1
- package/dist/{vue-ui-wheel-xX3KGkhv.js → vue-ui-wheel-CXmf0H03.js} +7 -7
- package/dist/{vue-ui-wheel-B6VvLnYu.cjs → vue-ui-wheel-Cafjyq_O.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BQ3rUXo5.cjs → vue-ui-word-cloud-B-5D28w8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DBOUW839.js → vue-ui-word-cloud-CAJ-pqpM.js} +10 -10
- package/dist/{vue-ui-xy-zsQa4PDM.js → vue-ui-xy-BNCxzo7p.js} +314 -300
- package/dist/vue-ui-xy-DejNMLt_.cjs +3 -0
- package/dist/vue-ui-xy-canvas-BCMw2wOS.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DMjbTHI4.js → vue-ui-xy-canvas-cnjS60Rg.js} +63 -60
- package/package.json +1 -1
- package/dist/index-MkqCn_ca.cjs +0 -9
- package/dist/vue-ui-quadrant-CXWcP-cN.cjs +0 -1
- package/dist/vue-ui-scatter-DdBFmaXw.cjs +0 -1
- package/dist/vue-ui-spark-trend-C2OEDDlH.js +0 -272
- package/dist/vue-ui-spark-trend-DLy5nzXJ.cjs +0 -1
- package/dist/vue-ui-sparkline-CCfZsEZd.cjs +0 -1
- package/dist/vue-ui-xy-CSejjEnw.cjs +0 -3
- package/dist/vue-ui-xy-canvas-MERAnzru.cjs +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-KDxAXZXP.cjs"),ke=require("./useResponsive-BJ7DTGpm.cjs"),ze=require("./Title-CYDoc6j3.cjs"),xe=require("./usePrinter-l7v2Rcgc.cjs"),Ve=require("./Tooltip-BABZKovD.cjs"),Ae=require("./Legend-XfQwPnB6.cjs"),be=require("./Shape-CmAme9xi.cjs"),Te=require("./DataTable-C1e5i-AQ.cjs"),Pe=require("./vue-ui-skeleton-CdeslaC3.cjs"),De=require("./vue-ui-accordion-D5b-rLq8.cjs"),Be=require("./useNestedProp-CXjSKjKD.cjs"),Fe=require("./PackageVersion-BzA9shEH.cjs"),Oe=require("./PenAndPaper-DolOORON.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),qe=["id"],Ie=["xmlns","viewBox"],Xe={key:0},Ye=["x1","x2","y1","y2","stroke","stroke-width"],je=["x1","x2","y1","y2","stroke","stroke-width"],Re={key:1},Ge=["points","fill","stroke-width","stroke-dasharray","stroke"],Ue={key:0},He=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Je={key:1},Ke={key:2},Qe=["id"],Ze=["stop-color"],et=["stop-color"],tt=["id"],lt=["stop-color"],at=["stop-color"],ot=["x","y","width","height","fill","stroke","stroke-width","rx"],st=["x","y","height","width","fill","stroke","stroke-width","rx"],rt={key:0},nt=["d","stroke","stroke-width"],ut=["d","stroke","stroke-width"],it=["d","stroke","stroke-width"],ct=["d","stroke","stroke-width"],yt={key:3,style:{"pointer-events":"none !important"}},vt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],dt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],pt=["x","y","font-size","fill","font-weight","text-anchor"],ht=["x","y","font-size","fill","font-weight"],ft=["cx","cy","r","fill","stroke","stroke-width"],mt=["cx","cy","r","fill","stroke","stroke-width"],gt=["x","y","font-size","fill","font-weight","text-anchor"],kt={key:4},xt=["x","y","font-size","fill"],bt=["x","y","font-size","fill"],Bt=["id","transform","font-size","font-weight","fill"],wt={key:5},_t=["x","y","font-size","fill"],Ct=["x","y","font-size","fill"],Nt=["font-size","font-weight","fill","x","y"],St=["id"],Mt=["x","y","width","height"],$t={key:6},Et=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Lt=["x","y","fill","font-size","font-weight"],zt={key:5,class:"vue-data-ui-watermark"},Vt=["onClick"],At={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},Tt={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Pt={key:0},Dt=["innerHTML"],Ft={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(we,{expose:_e}){const C=we,{vue_ui_scatter:Ce}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),Ne=e.ref(null),I=e.ref(!1),X=e.ref(""),J=e.ref(0),V=e.ref(null),K=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(0),le=e.ref(0),ae=e.ref(0),t=e.computed({get:()=>oe(),set:a=>a});function oe(){const a=Be.useNestedProp({userConfig:C.config,defaultConfig:Ce});return a.theme?{...Be.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=oe(),se(),te.value+=1,le.value+=1,ae.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{se()});function se(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=ke.throttle(()=>{const{width:u,height:l}=ke.useResponsive({chart:V.value,title:t.value.style.title.text?K.value:null,legend:t.value.style.legend.show?Q.value:null,source:Z.value,noTitle:ee.value});k.value.width=u,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(V.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:re,isImaging:ne,generatePdf:ue,generateImage:ie}=xe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),Se=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),ce=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,values:s.largestTriangleThreeBuckets({data:a.values,threshold:t.value.downsample.threshold}),id:l,color:a.color?a.color:ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>he(l),isSegregated:p.value.includes(l)}})),Me=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>Y.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),A=l-E*u,_={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+A,y2:E*n.value.right+A,coefficient:h},m=(_.y2-_.y1)/(_.x2-_.x1),B=_.y1-m*_.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-B)/m)),q={x:N,y:m*N+B<=t.value.style.layout.padding.top?n.value.top:m*N+B};return{...a,correlation:_,label:q,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*B)/(1+Math.pow(m,2)),G=(m*d.x+Math.pow(m,2)*d.y+B)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-G,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ye=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function $e(){return x.value}function ve(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,A=h-i,_=E/u,m=A/u,B=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const U=Math.floor((f-r)/_),H=Math.floor((z-i)/m);B[U]||(B[U]=0),N[H]||(N[H]=0),B[U]+=1,N[H]+=1});const q=[],d=[];for(let f=0;f<u;f+=1)q.push(r+(f+.5)*_),d.push(i+(f+.5)*m);const L=Math.max(...B),G=Math.max(...N);return{x:B,y:N,avgX:q,avgY:d,maxX:L,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ve(Y.value,M.value)),Ee=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(l=>{const r=ve(l,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),w=e.ref(void 0),c=e.ref(null),j=e.ref(null);function de(a,u){w.value=a.id,c.value=a;let l="";j.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?X.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",X.value=`<div>${l}</div>`),I.value=!0}function pe(){I.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function he(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function fe(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const O=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),l={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{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Le(a){T.value=a,J.value+=1}function me(){S.value.showTable=!S.value.showTable}function ge(){S.value.showTooltip=!S.value.showTooltip}const W=e.ref(!1);function R(){W.value=!W.value}return _e({getData:$e,generatePdf:ue,generateCsv:fe,generateImage:ie,toggleTable:me,toggleTooltip:ge,toggleAnnotator:R}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:V,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Oe.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Se.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:ee,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:K,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${te.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value?(e.openBlock(),e.createBlock(xe.UserOptions,{ref_key:"details",ref:Ne,key:`user_options_${J.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ne),isPrinting:e.unref(re),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:S.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:V.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(ue),onGenerateCsv:fe,onGenerateImage:e.unref(ie),onToggleTable:me,onToggleTooltip:ge,onToggleAnnotator:R},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Fe._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ye),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,je)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ge)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:w.value&&w.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>de(o,r),onMouseleave:pe,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ye.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,He))),256))])):(e.openBlock(),e.createElementBlock("g",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(be._sfc_main,{plot:{x:o.x,y:o.y},radius:w.value&&w.value===o.id?o.weight*2:o.weight,shape:l.shape,color:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>de(o,r),onMouseleave:pe,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ye.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",Ke,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ze),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,et)],8,Qe),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,lt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,at)],8,tt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/M.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/M.value<=0?1e-4:n.value.width/M.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,ot)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/M.value/2,height:n.value.height/M.value<=0?1e-4:n.value.height/M.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,st)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,nt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ut)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,it)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ct))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",yt,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,vt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,dt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,pt),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,ht),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,ft),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,mt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,gt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",kt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,xt),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,bt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,Bt)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,_t),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Ct),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Nt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,Mt)],8,St),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",$t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Lt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Ie)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",zt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(re)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Pe.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Q},[t.value.style.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${ae.value}`,legendSet:$.value,config:Me.value,onClickMarker:u[0]||(u[0]=({legend:l})=>he(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Vt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Z,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ve._sfc_main,{show:S.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:V.value,content:X.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",At,[(e.openBlock(),e.createElementBlock("svg",Tt,[e.createVNode(be._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),P.value?(e.openBlock(),e.createBlock(De.default,{key:8,hideDetails:"",config:{open:S.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${le.value}`,colNames:O.value.colNames,head:O.value.head,body:O.value.body,config:O.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>S.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",Pt,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Dt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,qe))}},Ot=We._export_sfc(Ft,[["__scopeId","data-v-0648a715"]]);exports.default=Ot;
|