vue-data-ui 2.7.1 → 2.7.2
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-sEenfS8R.cjs → Arrow-Cuf9zUpa.cjs} +1 -1
- package/dist/{Arrow-BTKw6r9B.js → Arrow-SOQeOwmT.js} +1 -1
- package/dist/{BaseIcon-DnyvDfd_.cjs → BaseIcon-C0unoacb.cjs} +1 -1
- package/dist/{BaseIcon-DnLYMp6l.js → BaseIcon-DqYzMisq.js} +1 -1
- package/dist/{ColorPicker-9DFhTw_f.cjs → ColorPicker-DLNc3kpl.cjs} +1 -1
- package/dist/{ColorPicker-C6lNE5YG.js → ColorPicker-DyOTLjAA.js} +3 -3
- package/dist/{DataTable-CngiZztx.cjs → DataTable-ByOfBGEi.cjs} +1 -1
- package/dist/{DataTable-CqmM6dKK.js → DataTable-C_28ZqiP.js} +2 -2
- package/dist/{Legend-2egPeIm_.js → Legend-CmKaL7xe.js} +2 -2
- package/dist/{Legend-CYRB328N.cjs → Legend-mrAy7yUC.cjs} +1 -1
- package/dist/{PackageVersion-CwdFBcJ8.js → PackageVersion-39l3KkzC.js} +1 -1
- package/dist/{PackageVersion-yffL-jfv.cjs → PackageVersion-By81XV8X.cjs} +1 -1
- package/dist/{PenAndPaper--UiqgX9J.js → PenAndPaper-CmcfpltX.js} +3 -3
- package/dist/{PenAndPaper-CN2oty-x.cjs → PenAndPaper-DNbX5hR8.cjs} +1 -1
- package/dist/{Shape-BpeBdbVN.js → Shape-iIO-95sh.js} +1 -1
- package/dist/{Shape-CUqYvf42.cjs → Shape-x7U3IhoM.cjs} +1 -1
- package/dist/{Slicer-D1W5yNMr.js → Slicer-C49MotZz.js} +2 -2
- package/dist/{Slicer-BgcqkoSq.cjs → Slicer-Ct66sqV1.cjs} +1 -1
- package/dist/{Title-DIthuQxK.cjs → Title-BgVFZwZZ.cjs} +1 -1
- package/dist/{Title-D-MrSzZ9.js → Title-Co3F59jq.js} +1 -1
- package/dist/{Tooltip-D43-t32P.cjs → Tooltip-B8E9uCVm.cjs} +1 -1
- package/dist/{Tooltip-CB3FSZI5.js → Tooltip-Cr89wMKa.js} +1 -1
- package/dist/{dom-to-png-BJwSQsyy.cjs → dom-to-png-D9eujpXB.cjs} +1 -1
- package/dist/{dom-to-png-5VOUqviC.js → dom-to-png-DtBlqZMR.js} +1 -1
- package/dist/{img-DuSrtdjC.js → img-DQDP5JIH.js} +1 -1
- package/dist/{img-BfzPdY_5.cjs → img-DgRUFehB.cjs} +1 -1
- package/dist/index-BeJeDy5m.cjs +9 -0
- package/dist/{index-A6avPZLy.js → index-gC66Se26.js} +926 -810
- package/dist/{pdf-BgE_moLQ.cjs → pdf-Bu1ahAX2.cjs} +1 -1
- package/dist/{pdf-DjL_T4XI.js → pdf-lJiGVhtL.js} +1 -1
- 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-CcohWUPI.js → useNestedProp-BusTOV-6.js} +1 -1
- package/dist/{useNestedProp-BPS6WHYi.cjs → useNestedProp-CF-iHhIC.cjs} +1 -1
- package/dist/{usePrinter-Bn2DXY9B.cjs → usePrinter-Bz_kd3vb.cjs} +1 -1
- package/dist/{usePrinter-B6swu4OY.js → usePrinter-KMFl0n0s.js} +3 -3
- package/dist/{vue-data-ui-B80lDfFi.js → vue-data-ui-BApY_erH.js} +60 -60
- package/dist/{vue-data-ui-BsseA1is.cjs → vue-data-ui-Bak-lr4I.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +17 -17
- package/dist/{vue-ui-3d-bar-CcFHL1qI.js → vue-ui-3d-bar-BWjU0K3_.js} +9 -9
- package/dist/{vue-ui-3d-bar-DcrMP_O7.cjs → vue-ui-3d-bar-CmbTiJVx.cjs} +1 -1
- package/dist/{vue-ui-accordion-CGoz8eg6.cjs → vue-ui-accordion-CZBJSHT_.cjs} +1 -1
- package/dist/{vue-ui-accordion-B_xjSc0r.js → vue-ui-accordion-j2beIma_.js} +3 -3
- package/dist/{vue-ui-age-pyramid-AXVyoK6L.js → vue-ui-age-pyramid-Cmw4WVB4.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BCNi5bGZ.cjs → vue-ui-age-pyramid-Sv-HbbDJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-BtNdaDFA.cjs → vue-ui-annotator-BVv5XkoE.cjs} +1 -1
- package/dist/{vue-ui-annotator-BXvnhWt_.js → vue-ui-annotator-CKmqZjUD.js} +2 -2
- package/dist/{vue-ui-bullet-DRXo5EpT.js → vue-ui-bullet-U_yJjO0m.js} +8 -8
- package/dist/{vue-ui-bullet-CQxs2TaZ.cjs → vue-ui-bullet-vcmTY4AX.cjs} +1 -1
- package/dist/{vue-ui-candlestick-3nGxvy8S.cjs → vue-ui-candlestick-DQT-8PRz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BpqYCJVJ.js → vue-ui-candlestick-DhdlFIQE.js} +11 -11
- package/dist/{vue-ui-carousel-table-BYXPK4gh.cjs → vue-ui-carousel-table-BhC5cEe3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-YrKkEqX7.js → vue-ui-carousel-table-Ej7qzKkp.js} +4 -4
- package/dist/{vue-ui-chestnut-FQoFMnGd.cjs → vue-ui-chestnut-BzNHXzDj.cjs} +2 -2
- package/dist/{vue-ui-chestnut-C25jWRRE.js → vue-ui-chestnut-L0bS5jtX.js} +14 -14
- package/dist/{vue-ui-circle-pack-CD8-rMNk.cjs → vue-ui-circle-pack-CVLJs0XP.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-PLHydEfP.js → vue-ui-circle-pack-DwCzeO3L.js} +9 -9
- package/dist/{vue-ui-cursor-nwZ7x8lx.cjs → vue-ui-cursor-0mZP5nBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-CRb53VBn.js → vue-ui-cursor-DwHdXwLS.js} +2 -2
- package/dist/{vue-ui-dashboard-Bh3_EFPN.cjs → vue-ui-dashboard-CegApY8_.cjs} +1 -1
- package/dist/{vue-ui-dashboard-5frkuD5u.js → vue-ui-dashboard-DILmOchy.js} +3 -3
- package/dist/{vue-ui-digits-CDviNXaL.js → vue-ui-digits-Dbwzk-sl.js} +2 -2
- package/dist/{vue-ui-digits-DoTiNrVN.cjs → vue-ui-digits-me8Nky0A.cjs} +1 -1
- package/dist/{vue-ui-donut-CNNRNtzQ.js → vue-ui-donut-DwE-iZSV.js} +12 -12
- package/dist/{vue-ui-donut-BcszyS6r.cjs → vue-ui-donut-FoRYusUX.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DfPyKT8R.cjs → vue-ui-donut-evolution-BIK2yfIJ.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CHik7Z_g.js → vue-ui-donut-evolution-DhFABvEv.js} +11 -11
- package/dist/{vue-ui-dumbbell-D2UJtygq.cjs → vue-ui-dumbbell-CL15d-aQ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CgwlIofy.js → vue-ui-dumbbell-Cqq4iV6-.js} +10 -10
- package/dist/{vue-ui-flow-rDb1-sH0.js → vue-ui-flow-CU-orj9I.js} +9 -9
- package/dist/{vue-ui-flow-D6JFBrIX.cjs → vue-ui-flow-N825fjRf.cjs} +1 -1
- package/dist/{vue-ui-funnel-BY0tWmrS.cjs → vue-ui-funnel-B6XMYl89.cjs} +1 -1
- package/dist/{vue-ui-funnel-B6bLvPa_.js → vue-ui-funnel-DQmQmdNV.js} +9 -9
- package/dist/{vue-ui-galaxy-DckvTL3q.js → vue-ui-galaxy-nqyCbQ9j.js} +11 -11
- package/dist/{vue-ui-galaxy-B_52sAx2.cjs → vue-ui-galaxy-p-sbDnSY.cjs} +1 -1
- package/dist/{vue-ui-gauge-C2LiUQBN.js → vue-ui-gauge-BV3CJfqe.js} +7 -7
- package/dist/{vue-ui-gauge-Cs7mUhqe.cjs → vue-ui-gauge-DsZFk8T_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-WAsThdrY.js → vue-ui-gizmo-CJwSAsxs.js} +3 -3
- package/dist/{vue-ui-gizmo-BpzuY03-.cjs → vue-ui-gizmo-CNRAH2zT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DJB3RODU.js → vue-ui-heatmap-B1s7KejC.js} +10 -10
- package/dist/{vue-ui-heatmap-CGK5-uSo.cjs → vue-ui-heatmap-VXgeMOwT.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CZCGVMtm.cjs → vue-ui-history-plot-JmeGiR--.cjs} +1 -1
- package/dist/{vue-ui-history-plot-UwqNF7IY.js → vue-ui-history-plot-z_KFt5z_.js} +11 -11
- package/dist/{vue-ui-kpi-DGwMrY-1.js → vue-ui-kpi-DabR5K70.js} +3 -3
- package/dist/{vue-ui-kpi-COSK1X00.cjs → vue-ui-kpi-FaGp6_XP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CiDr-Ata.cjs → vue-ui-mini-loader-_plxZxma.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-wC1Se-5k.js → vue-ui-mini-loader-w-BmywLJ.js} +2 -2
- package/dist/{vue-ui-molecule-R-yZGvaP.cjs → vue-ui-molecule-3ClCLk7L.cjs} +1 -1
- package/dist/{vue-ui-molecule-DB8vn7Ud.js → vue-ui-molecule-aiWG--to.js} +11 -11
- package/dist/{vue-ui-mood-radar-B4V2v62P.cjs → vue-ui-mood-radar-CO5sPVVG.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DeLXvSPU.js → vue-ui-mood-radar-DwxCn06q.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CsvNzTz6.cjs → vue-ui-nested-donuts-D0nALasd.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-PgGg2Jah.js → vue-ui-nested-donuts-ONgAaLY-.js} +11 -11
- package/dist/{vue-ui-onion-DCHNA84o.cjs → vue-ui-onion-CBqx4q4k.cjs} +1 -1
- package/dist/{vue-ui-onion-DZAkMkto.js → vue-ui-onion-DjoQuBo8.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Bxjxz4LI.js → vue-ui-parallel-coordinate-plot-DWGVzaHE.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-Drm4BFOT.cjs → vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D5anVEqh.cjs → vue-ui-quadrant-BOkyMgCm.cjs} +1 -1
- package/dist/{vue-ui-quadrant-nheekDou.js → vue-ui-quadrant-CgiD9c7i.js} +12 -12
- package/dist/{vue-ui-quick-chart-BpQr6koy.js → vue-ui-quick-chart-5NiRxtpD.js} +9 -9
- package/dist/{vue-ui-quick-chart-2-oPKc1z.cjs → vue-ui-quick-chart-BRp_bNso.cjs} +1 -1
- package/dist/{vue-ui-radar-Crx4uENB.cjs → vue-ui-radar-BpicgiWF.cjs} +1 -1
- package/dist/{vue-ui-radar-BH3cHleE.js → vue-ui-radar-CfKAy0nI.js} +12 -12
- package/dist/{vue-ui-rating-lZe0UltX.js → vue-ui-rating-CbZvsZNv.js} +2 -2
- package/dist/{vue-ui-rating-CHbI6v-k.cjs → vue-ui-rating-yiM_5H0W.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DMuA1Jqp.cjs → vue-ui-relation-circle-Dg6rdyGP.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D3dCS2lC.js → vue-ui-relation-circle-RRK2jhHr.js} +7 -7
- package/dist/{vue-ui-rings-CCePZEmj.cjs → vue-ui-rings-A49lyv-J.cjs} +1 -1
- package/dist/{vue-ui-rings-CL5eq_lr.js → vue-ui-rings-CiMKMEpp.js} +12 -12
- package/dist/{vue-ui-scatter-DhWpisoX.js → vue-ui-scatter-9PFXuvoo.js} +12 -12
- package/dist/{vue-ui-scatter-DrWHtQ7A.cjs → vue-ui-scatter-C_jHsy8M.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CDtUy7-2.js → vue-ui-skeleton-7Zfds6H1.js} +3 -3
- package/dist/{vue-ui-skeleton-CyD0WfiB.cjs → vue-ui-skeleton-KW-jcPRN.cjs} +1 -1
- package/dist/{vue-ui-smiley-CYAJ1Yz6.cjs → vue-ui-smiley-BNQlshyY.cjs} +1 -1
- package/dist/{vue-ui-smiley-CxC_mXgi.js → vue-ui-smiley-D0jhMBUh.js} +2 -2
- package/dist/{vue-ui-spark-trend-DqJoZswk.cjs → vue-ui-spark-trend-CLm12POW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-W6ET0LN0.js → vue-ui-spark-trend-D8nDY0fS.js} +5 -5
- package/dist/{vue-ui-sparkbar-BaL4aiR2.cjs → vue-ui-sparkbar-ChEbpWYC.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DFk4vX4T.js → vue-ui-sparkbar-wKlwMCph.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DaCbYvsy.js → vue-ui-sparkgauge-CvhIe_mP.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C0XL80YM.cjs → vue-ui-sparkgauge-DG824sGI.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-yHLpPhmY.cjs → vue-ui-sparkhistogram-B8k8a538.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DO4EtsIl.js → vue-ui-sparkhistogram-CVmbTFTc.js} +5 -5
- package/dist/{vue-ui-sparkline-_3p0ZMii.cjs → vue-ui-sparkline-7wnWuXDQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BT2uzkRB.js → vue-ui-sparkline-CtqAbSzZ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-D87hGVto.cjs → vue-ui-sparkstackbar-57SONMGP.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CvPROcMS.js → vue-ui-sparkstackbar-DfwEeUC5.js} +5 -5
- package/dist/{vue-ui-stackbar-pZS4uclE.cjs → vue-ui-stackbar--0FZ_eBi.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CF1ZciKz.js → vue-ui-stackbar-CGSVPiPx.js} +13 -13
- package/dist/{vue-ui-strip-plot-DqPSiGXm.cjs → vue-ui-strip-plot-C_ggDAQ-.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DbJmyFzD.js → vue-ui-strip-plot-fJFkn8_0.js} +11 -11
- package/dist/{vue-ui-table-BvlGS9xl.js → vue-ui-table-CliL2Wsp.js} +1 -1
- package/dist/{vue-ui-table-_lP4IT01.cjs → vue-ui-table-Das3959J.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVZ4FKcO.cjs → vue-ui-table-heatmap-C28ozf2S.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-I3d1FZkm.js → vue-ui-table-heatmap-ZsJMMGpG.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DxgxuYn1.cjs → vue-ui-table-sparkline-0i9FAXug.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-KTwO8xf0.js → vue-ui-table-sparkline-CrQNShdH.js} +5 -5
- package/dist/{vue-ui-thermometer-CacmwD1Y.js → vue-ui-thermometer-BaGL6WSb.js} +7 -7
- package/dist/{vue-ui-thermometer-DbOYeE4L.cjs → vue-ui-thermometer-h0rymM2v.cjs} +1 -1
- package/dist/{vue-ui-timer-CE_E850f.cjs → vue-ui-timer-CFtgJ_Vi.cjs} +1 -1
- package/dist/{vue-ui-timer-CPDwkxN8.js → vue-ui-timer-Nk94fV-n.js} +5 -5
- package/dist/{vue-ui-tiremarks-CjEVWJs3.cjs → vue-ui-tiremarks-Cj8-XGcp.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C0_iMDa_.js → vue-ui-tiremarks-zYgdq_99.js} +7 -7
- package/dist/{vue-ui-treemap-DwXyhU2O.js → vue-ui-treemap-CAxPcxn-.js} +12 -12
- package/dist/{vue-ui-treemap-Cz8zJOFx.cjs → vue-ui-treemap-CybL6mVf.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CElDAKiI.cjs → vue-ui-vertical-bar-D4IkwvAB.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-RbZ1m7aH.js → vue-ui-vertical-bar-Di3FBkwJ.js} +12 -12
- package/dist/{vue-ui-waffle-CqnW-IzI.cjs → vue-ui-waffle-7otLUrER.cjs} +1 -1
- package/dist/{vue-ui-waffle-D2Olsiof.js → vue-ui-waffle-DBJAQsEf.js} +12 -12
- package/dist/{vue-ui-wheel-DJbSOnmZ.js → vue-ui-wheel-BTZEr2Vs.js} +7 -7
- package/dist/{vue-ui-wheel-DDllncND.cjs → vue-ui-wheel-BUJXtmeP.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Cw03GidN.cjs → vue-ui-word-cloud-BEaRWIu-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BVjlvTWA.js → vue-ui-word-cloud-DBCVUkLM.js} +10 -10
- package/dist/vue-ui-xy-DbN93Pcf.cjs +3 -0
- package/dist/{vue-ui-xy-CvM6YBcJ.js → vue-ui-xy-aKaGgYGL.js} +769 -758
- package/dist/{vue-ui-xy-canvas-BwtGqNbz.cjs → vue-ui-xy-canvas-CF_lqLg-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CPwKMu2P.js → vue-ui-xy-canvas-CVQ__d4u.js} +12 -12
- package/package.json +1 -1
- package/dist/index-BkB2NdNK.cjs +0 -9
- package/dist/vue-ui-xy-CpTEJDag.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BkB2NdNK.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-D43-t32P.cjs"),dt=require("./Legend-CYRB328N.cjs"),ht=require("./Title-DIthuQxK.cjs"),ft=require("./Slicer-BgcqkoSq.cjs"),Ye=require("./usePrinter-Bn2DXY9B.cjs"),yt=require("./vue-ui-accordion-CGoz8eg6.cjs"),pt=require("./DataTable-CngiZztx.cjs"),gt=require("./vue-ui-skeleton-CyD0WfiB.cjs"),He=require("./useNestedProp-BPS6WHYi.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-DnyvDfd_.cjs"),xt=require("./ColorPicker-9DFhTw_f.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BeJeDy5m.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-B8E9uCVm.cjs"),dt=require("./Legend-mrAy7yUC.cjs"),ht=require("./Title-BgVFZwZZ.cjs"),ft=require("./Slicer-Ct66sqV1.cjs"),Ye=require("./usePrinter-Bz_kd3vb.cjs"),yt=require("./vue-ui-accordion-CZBJSHT_.cjs"),pt=require("./DataTable-ByOfBGEi.cjs"),gt=require("./vue-ui-skeleton-KW-jcPRN.cjs"),He=require("./useNestedProp-CF-iHhIC.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-C0unoacb.cjs"),xt=require("./ColorPicker-DLNc3kpl.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as i, computed as T, onMounted as Ge, nextTick as Ie, onBeforeUnmount as bt, watch as te, createElementBlock as X, openBlock as C, Fragment as We, createCommentVNode as le, normalizeClass as fe, createElementVNode as U, withDirectives as Ut, normalizeStyle as W, createVNode as ke, vModelText as Wt, withModifiers as dt, unref as D, renderList as Vt, useSlots as Zt, createBlock as ue, createSlots as Gt, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as _t } from "vue";
|
|
2
|
-
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll,
|
|
2
|
+
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll, ai as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-gC66Se26.js";
|
|
3
3
|
import { d as il, t as cl, u as vl, c as dl, a as gt, l as I, r as Ze, b as ee, p as pt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as hl } from "./Tooltip-
|
|
5
|
-
import { L as fl } from "./Legend-
|
|
6
|
-
import { _ as yl } from "./Title-
|
|
7
|
-
import { S as gl } from "./Slicer-
|
|
8
|
-
import { u as pl, U as ml } from "./usePrinter-
|
|
9
|
-
import bl from "./vue-ui-accordion-
|
|
10
|
-
import { D as xl } from "./DataTable-
|
|
11
|
-
import kl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as mt } from "./useNestedProp-
|
|
4
|
+
import { _ as hl } from "./Tooltip-Cr89wMKa.js";
|
|
5
|
+
import { L as fl } from "./Legend-CmKaL7xe.js";
|
|
6
|
+
import { _ as yl } from "./Title-Co3F59jq.js";
|
|
7
|
+
import { S as gl } from "./Slicer-C49MotZz.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-KMFl0n0s.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-j2beIma_.js";
|
|
10
|
+
import { D as xl } from "./DataTable-C_28ZqiP.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-7Zfds6H1.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-BusTOV-6.js";
|
|
13
13
|
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as Cl } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import Ye from "./BaseIcon-
|
|
16
|
-
import { C as wl } from "./ColorPicker-
|
|
15
|
+
import Ye from "./BaseIcon-DqYzMisq.js";
|
|
16
|
+
import { C as wl } from "./ColorPicker-DyOTLjAA.js";
|
|
17
17
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ fe({
|
package/package.json
CHANGED