vue-data-ui 2.6.52-beta.7 → 2.6.52-beta.9
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-DaC4Jggt.cjs → Arrow-Bvc0lWZf.cjs} +1 -1
- package/dist/{Arrow-Dac3K3h8.js → Arrow-DMgiQZ_4.js} +1 -1
- package/dist/{BaseIcon-By9WO4ls.js → BaseIcon-4qX1_lK_.js} +1 -1
- package/dist/{BaseIcon-qK9HKOKj.cjs → BaseIcon-D5l-ujm_.cjs} +1 -1
- package/dist/{ColorPicker-D4DTJqI4.cjs → ColorPicker-CfOcggUt.cjs} +1 -1
- package/dist/{ColorPicker-CRLN58_A.js → ColorPicker-DSeral-H.js} +3 -3
- package/dist/{DataTable-0qV0jhOu.js → DataTable-D192lIs1.js} +2 -2
- package/dist/{DataTable-ON_AwHrY.cjs → DataTable-RPRtm5dz.cjs} +1 -1
- package/dist/{Legend-Cz8MqyYC.cjs → Legend-C931uD4w.cjs} +1 -1
- package/dist/{Legend-D_pcYpOJ.js → Legend-t6D-CcgS.js} +2 -2
- package/dist/{PackageVersion-BudVgT3M.js → PackageVersion-DP9T4NNf.js} +1 -1
- package/dist/{PackageVersion-C018cxFA.cjs → PackageVersion-Dx3HlVxy.cjs} +1 -1
- package/dist/{PenAndPaper-BYiQGyiJ.js → PenAndPaper-Db_wnpFu.js} +3 -3
- package/dist/{PenAndPaper-eLbpB2Tr.cjs → PenAndPaper-DxFQUt06.cjs} +1 -1
- package/dist/{Shape-CcYM5MgR.js → Shape-B6CG6Tjf.js} +1 -1
- package/dist/{Shape-COTQ5iv2.cjs → Shape-BT10qNqK.cjs} +1 -1
- package/dist/{Slicer-DCHrly-q.cjs → Slicer-C32r4aWq.cjs} +1 -1
- package/dist/{Slicer-DDKRQlPl.js → Slicer-zUNWJ7Rt.js} +2 -2
- package/dist/{Title-eLQhK-oq.js → Title-BNDJzlYk.js} +1 -1
- package/dist/{Title-D9WNuQFw.cjs → Title-K-KcP2WR.cjs} +1 -1
- package/dist/{Tooltip-BSVuMX7E.js → Tooltip-DQeCgEls.js} +1 -1
- package/dist/{Tooltip-B3kdH-2d.cjs → Tooltip-DmYALolD.cjs} +1 -1
- package/dist/dom-to-png-CNdnROpG.js +223 -0
- package/dist/dom-to-png-CP7WJd1S.cjs +3 -0
- package/dist/{img-LQGQYbAP.js → img-CAUOYafO.js} +1 -1
- package/dist/{img-kapZonyN.cjs → img-CKhJxCzz.cjs} +1 -1
- package/dist/{index-BdRXF4zl.js → index-BBwKaiVY.js} +1 -1
- package/dist/{index-BpnRfvUv.cjs → index-DdmI4IyM.cjs} +1 -1
- package/dist/{pdf-dfIXjDRu.cjs → pdf-Bv-7Cz5O.cjs} +1 -1
- package/dist/{pdf-CCssh6kD.js → pdf-DGsZCtrD.js} +1 -1
- package/dist/{useNestedProp-BdfpF0fL.js → useNestedProp-CRcJE21n.js} +1 -1
- package/dist/{useNestedProp-yHffQRpQ.cjs → useNestedProp-Dctcwxef.cjs} +1 -1
- package/dist/{usePrinter-BlwwnMSN.cjs → usePrinter-ClXx8Fo-.cjs} +1 -1
- package/dist/{usePrinter-C2JlskbC.js → usePrinter-Csngp5T1.js} +3 -3
- package/dist/{vue-data-ui-7v42K5gt.cjs → vue-data-ui-B-HYjyTv.cjs} +1 -1
- package/dist/{vue-data-ui-DskkVLyv.js → vue-data-ui-DRkvQU1Z.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-SlYzaTWe.cjs → vue-ui-3d-bar-DKTpxLQf.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-5_2LNSHm.js → vue-ui-3d-bar-Or_Pxl4f.js} +9 -9
- package/dist/{vue-ui-accordion-Dv7_RuxV.cjs → vue-ui-accordion-fsdtcWoA.cjs} +1 -1
- package/dist/{vue-ui-accordion-MQI7RWbr.js → vue-ui-accordion-zwn0yEvW.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DGgHWKGr.js → vue-ui-age-pyramid-CR4X9AYe.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DA8ecgTq.cjs → vue-ui-age-pyramid-CmeUQWOn.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bam-aGzF.js → vue-ui-annotator-DP0d9bO-.js} +2 -2
- package/dist/{vue-ui-annotator-B50RLG4_.cjs → vue-ui-annotator-iAmIySMn.cjs} +1 -1
- package/dist/{vue-ui-bullet-B5uALO6p.js → vue-ui-bullet-BwRsLv44.js} +8 -8
- package/dist/{vue-ui-bullet-BCCEdISW.cjs → vue-ui-bullet-NSxVF_H8.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D2MEbWNY.cjs → vue-ui-candlestick-CGDmTY9u.cjs} +1 -1
- package/dist/{vue-ui-candlestick--ZbkDpG_.js → vue-ui-candlestick-DxvXpsyX.js} +11 -11
- package/dist/{vue-ui-carousel-table-CN8NGTlR.cjs → vue-ui-carousel-table--LhcSQMy.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BM8buKoR.js → vue-ui-carousel-table-DD5-DjT1.js} +4 -4
- package/dist/{vue-ui-chestnut-CbDkM7ky.cjs → vue-ui-chestnut-4VdU7keY.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B8QPhKND.js → vue-ui-chestnut-CQJTn7fn.js} +8 -8
- package/dist/{vue-ui-circle-pack-BO-u58zm.js → vue-ui-circle-pack-CiQ8_5Cm.js} +9 -9
- package/dist/{vue-ui-circle-pack-Dft1dJUa.cjs → vue-ui-circle-pack-DtgTkVIO.cjs} +1 -1
- package/dist/{vue-ui-cursor-k_iArHJc.js → vue-ui-cursor-DZSRtqAI.js} +2 -2
- package/dist/{vue-ui-cursor-BLTxIE3s.cjs → vue-ui-cursor-sRVxw9VU.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DPscKTx9.cjs → vue-ui-dashboard-BC5PNjG6.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DghtiiV0.js → vue-ui-dashboard-CgDCZgWu.js} +3 -3
- package/dist/{vue-ui-digits-C163oPQi.js → vue-ui-digits-BnSm6HOD.js} +2 -2
- package/dist/{vue-ui-digits-C5MYWO6c.cjs → vue-ui-digits-CIPlnX4m.cjs} +1 -1
- package/dist/{vue-ui-donut-DGmc_2ql.js → vue-ui-donut-CGN_56A-.js} +12 -12
- package/dist/{vue-ui-donut-CdTrxJPw.cjs → vue-ui-donut-Dt682HYD.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CUjSJbxw.js → vue-ui-donut-evolution-BUu7nOHx.js} +11 -11
- package/dist/{vue-ui-donut-evolution-B_Ryni-e.cjs → vue-ui-donut-evolution-YnZ1tQZD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DyqVa3uy.cjs → vue-ui-dumbbell-BWZRBoK5.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-WqCILK1Y.js → vue-ui-dumbbell-Cah5eNlf.js} +10 -10
- package/dist/{vue-ui-flow-qnDJs7TX.js → vue-ui-flow-Cr1-IEyc.js} +9 -9
- package/dist/{vue-ui-flow-B1FWfGHZ.cjs → vue-ui-flow-NSqG-VJj.cjs} +1 -1
- package/dist/{vue-ui-funnel-BoetEPIk.js → vue-ui-funnel-CdUSmZCU.js} +9 -9
- package/dist/{vue-ui-funnel-CaDqiFzZ.cjs → vue-ui-funnel-FSBnYvMH.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CxdhenWS.cjs → vue-ui-galaxy-CfHSHPsj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D_8Vd-bt.js → vue-ui-galaxy-f0Mb4bW5.js} +11 -11
- package/dist/{vue-ui-gauge-DIBzYR9Q.js → vue-ui-gauge-BNBcgNxb.js} +7 -7
- package/dist/{vue-ui-gauge-D9Ezw8B7.cjs → vue-ui-gauge-DiBPBBm0.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cb4_knsM.cjs → vue-ui-gizmo-D4ntZeoD.cjs} +1 -1
- package/dist/{vue-ui-gizmo-_SZ4F9Tq.js → vue-ui-gizmo-D5QF_8_x.js} +3 -3
- package/dist/{vue-ui-heatmap-CGkUNTgH.cjs → vue-ui-heatmap-D4OrEjjo.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BSI3N3xB.js → vue-ui-heatmap-MxSJwSDk.js} +10 -10
- package/dist/{vue-ui-history-plot-BJa7JIzW.cjs → vue-ui-history-plot-DKHvI-HZ.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C_alDuC1.js → vue-ui-history-plot-PmmDMNhU.js} +11 -11
- package/dist/{vue-ui-kpi-Dj65b5iZ.cjs → vue-ui-kpi-DGvhcEZy.cjs} +1 -1
- package/dist/{vue-ui-kpi-D1MeO3Cd.js → vue-ui-kpi-DT94o6m6.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bl0krmav.cjs → vue-ui-mini-loader-BmeR7-9f.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C2RuVDXi.js → vue-ui-mini-loader-DLN6kXO9.js} +2 -2
- package/dist/{vue-ui-molecule-BbGpmjGK.cjs → vue-ui-molecule-D51X1kpt.cjs} +1 -1
- package/dist/{vue-ui-molecule-B8X_ADL9.js → vue-ui-molecule-DypBWu0b.js} +11 -11
- package/dist/{vue-ui-mood-radar-BPi1Td2q.js → vue-ui-mood-radar-D6VaT0FM.js} +11 -11
- package/dist/{vue-ui-mood-radar-DjMoBLgA.cjs → vue-ui-mood-radar-wCI5H7Ka.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DErVz3N4.js → vue-ui-nested-donuts-3ICSijpW.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DCVonBCM.cjs → vue-ui-nested-donuts-Bped69kR.cjs} +1 -1
- package/dist/{vue-ui-onion-NH4sxfSF.cjs → vue-ui-onion-75D677VV.cjs} +1 -1
- package/dist/{vue-ui-onion-BUYmuiEj.js → vue-ui-onion-gJqbUjYS.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CVlP5vY8.js → vue-ui-parallel-coordinate-plot-CAxkNqsH.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CY6jzBpv.cjs → vue-ui-parallel-coordinate-plot-pRNEcwtp.cjs} +1 -1
- package/dist/{vue-ui-quadrant-R2YsB5-E.js → vue-ui-quadrant-BSxpUAnN.js} +12 -12
- package/dist/{vue-ui-quadrant-eR9JtoM3.cjs → vue-ui-quadrant-HPB66J-s.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BytiWbRR.js → vue-ui-quick-chart-2GMvbDAA.js} +9 -9
- package/dist/{vue-ui-quick-chart-DNQH765e.cjs → vue-ui-quick-chart-DM5Qyur7.cjs} +1 -1
- package/dist/{vue-ui-radar-DKbD---J.cjs → vue-ui-radar-CrrE7tgM.cjs} +1 -1
- package/dist/{vue-ui-radar-BiQHcJl8.js → vue-ui-radar-DRbxZIfI.js} +12 -12
- package/dist/{vue-ui-rating-jJJLduA9.cjs → vue-ui-rating-B74MvkB-.cjs} +1 -1
- package/dist/{vue-ui-rating-BDOS2tMB.js → vue-ui-rating-BVzeHFsE.js} +2 -2
- package/dist/{vue-ui-relation-circle-BQXf37dy.js → vue-ui-relation-circle-Vb6vY4qc.js} +7 -7
- package/dist/{vue-ui-relation-circle-CXpjECVe.cjs → vue-ui-relation-circle-bonK2Qo7.cjs} +1 -1
- package/dist/{vue-ui-rings-8xTm_fSZ.js → vue-ui-rings-5S7O4poi.js} +12 -12
- package/dist/{vue-ui-rings-Dibiz3by.cjs → vue-ui-rings-D8vjaeiH.cjs} +1 -1
- package/dist/{vue-ui-scatter-DRfMPJxM.cjs → vue-ui-scatter-B3rdJPB7.cjs} +1 -1
- package/dist/{vue-ui-scatter-CVOdgA4o.js → vue-ui-scatter-BzyLf6Hr.js} +12 -12
- package/dist/{vue-ui-skeleton-B0nPRRlJ.js → vue-ui-skeleton-CoW0Qci5.js} +3 -3
- package/dist/{vue-ui-skeleton-R-5ZiSXE.cjs → vue-ui-skeleton-DSAQr6x5.cjs} +1 -1
- package/dist/{vue-ui-smiley-DsfyKykj.js → vue-ui-smiley-CNRok3pP.js} +2 -2
- package/dist/{vue-ui-smiley-DL4v0xTc.cjs → vue-ui-smiley-DnO-ASKu.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CtZueeli.cjs → vue-ui-spark-trend-Ct1UY_MC.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DeNpHh0b.js → vue-ui-spark-trend-PplShNvM.js} +5 -5
- package/dist/{vue-ui-sparkbar-BuyBi1lu.cjs → vue-ui-sparkbar-CYYHcuyY.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CCMc6e3r.js → vue-ui-sparkbar-I8_tYiKU.js} +4 -4
- package/dist/{vue-ui-sparkgauge-GeDl1JLP.js → vue-ui-sparkgauge-CvxLXm7g.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Du2ue49R.cjs → vue-ui-sparkgauge-DB40CpGm.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CWmqcycr.cjs → vue-ui-sparkhistogram-COtHy-A9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B_Z5HNKE.js → vue-ui-sparkhistogram-CZRAkAG-.js} +5 -5
- package/dist/{vue-ui-sparkline-Dmb_5C0G.cjs → vue-ui-sparkline-Be0XWPEe.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DuI3UoML.js → vue-ui-sparkline-DESd7Yax.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ntCbTlSM.js → vue-ui-sparkstackbar-CzEuwnJV.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-C3e6K5v1.cjs → vue-ui-sparkstackbar-DxdMxOFQ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C6KJfccr.cjs → vue-ui-stackbar-C9XLE8w2.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DUIwcaso.js → vue-ui-stackbar-DNuc2OCh.js} +13 -13
- package/dist/{vue-ui-strip-plot-C0bfeCNH.js → vue-ui-strip-plot-DuM855Hq.js} +11 -11
- package/dist/{vue-ui-strip-plot-DP_PpPtz.cjs → vue-ui-strip-plot-EVjIBlOg.cjs} +1 -1
- package/dist/{vue-ui-table-DaxNA7Ul.js → vue-ui-table-CobFbKRN.js} +1 -1
- package/dist/{vue-ui-table-D2Cwg4FX.cjs → vue-ui-table-Dh_NnOFW.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-iysX0iSr.cjs → vue-ui-table-heatmap-CLzAaAW1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DvPQdgJS.js → vue-ui-table-heatmap-DrgPZTXL.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D2d4XFaK.cjs → vue-ui-table-sparkline-BQDc_il5.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-0Zpt7gvo.js → vue-ui-table-sparkline-D8_WyZeB.js} +5 -5
- package/dist/{vue-ui-thermometer-0BbHDeMW.js → vue-ui-thermometer-CUrWmL9J.js} +7 -7
- package/dist/{vue-ui-thermometer-6-ENHra5.cjs → vue-ui-thermometer-CW1KJ1Ix.cjs} +1 -1
- package/dist/{vue-ui-timer-BsuWxldB.js → vue-ui-timer-C5HcU0qt.js} +5 -5
- package/dist/{vue-ui-timer-BVidfYwu.cjs → vue-ui-timer-CjXvzokw.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DYkVKOcU.js → vue-ui-tiremarks-PsEoJbuf.js} +7 -7
- package/dist/{vue-ui-tiremarks-C2oBMeBH.cjs → vue-ui-tiremarks-YtX_KuXp.cjs} +1 -1
- package/dist/{vue-ui-treemap-y0ahQpVZ.cjs → vue-ui-treemap-CGgRCl4E.cjs} +1 -1
- package/dist/{vue-ui-treemap-B6D40yJF.js → vue-ui-treemap-DZ2QMQ2S.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CacgMbML.js → vue-ui-vertical-bar-Bg68IfRu.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Cvnk_DfK.cjs → vue-ui-vertical-bar-Bz-pbusQ.cjs} +1 -1
- package/dist/{vue-ui-waffle-bQ9QKWYN.js → vue-ui-waffle-Ci_DVsdn.js} +12 -12
- package/dist/{vue-ui-waffle-Lt6Np1DU.cjs → vue-ui-waffle-FNP844zt.cjs} +1 -1
- package/dist/{vue-ui-wheel-_L5kmjKE.cjs → vue-ui-wheel-DCdliwye.cjs} +1 -1
- package/dist/{vue-ui-wheel-BKkVrcIW.js → vue-ui-wheel-avTcqygq.js} +7 -7
- package/dist/{vue-ui-word-cloud-BPFArbsP.js → vue-ui-word-cloud-BwNVlteE.js} +10 -10
- package/dist/{vue-ui-word-cloud-THML_zJG.cjs → vue-ui-word-cloud-DrApMsSm.cjs} +1 -1
- package/dist/{vue-ui-xy-BQnq2Jvu.cjs → vue-ui-xy-BdfDxlX6.cjs} +2 -2
- package/dist/{vue-ui-xy-mIg7Wumg.js → vue-ui-xy-Ds8oB37Y.js} +16 -16
- package/dist/{vue-ui-xy-canvas-CLJtE3DK.js → vue-ui-xy-canvas-B1LLzFGi.js} +12 -12
- package/dist/{vue-ui-xy-canvas-B_KgByGx.cjs → vue-ui-xy-canvas-B7cjV0K6.cjs} +1 -1
- package/package.json +1 -1
- package/dist/dom-to-png-DHexIXWy.cjs +0 -2
- package/dist/dom-to-png-qzX39YwJ.js +0 -147
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),xe=require("./BaseIcon-qK9HKOKj.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-BpnRfvUv.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
1
|
+
"use strict";const e=require("vue"),xe=require("./BaseIcon-D5l-ujm_.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-DdmI4IyM.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
|
|
2
|
-
import Ve from "./BaseIcon-
|
|
2
|
+
import Ve from "./BaseIcon-4qX1_lK_.js";
|
|
3
3
|
import { t as We, u as Xe } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-
|
|
4
|
+
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-BBwKaiVY.js";
|
|
5
5
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Ge = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-CRcJE21n.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-Dctcwxef.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"atom-title",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"atom-subtitle",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as a, onMounted as b, onUnmounted as h, computed as p, createBlock as g, openBlock as v, Teleport as x, createElementBlock as S, createCommentVNode as k, normalizeStyle as $, normalizeClass as C, renderSlot as c, createElementVNode as B } from "vue";
|
|
2
|
-
import { s as F } from "./index-
|
|
2
|
+
import { s as F } from "./index-BBwKaiVY.js";
|
|
3
3
|
function w({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: u = 24, blockShiftY: s = !1 }) {
|
|
4
4
|
const l = a(0), f = a(u);
|
|
5
5
|
if (e && o) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-DdmI4IyM.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:f=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:d,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<d?n.value=-r+(r-(o.x-d)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<d+r?n.value=-r+(r-(o.x-d)):n.value=-r),o.y+c>v&&!f&&(s.value=-c-a)}return{top:o.y+s.value,left:o.x+n.value}}function b(e,l,o){t.onMounted(()=>e.addEventListener(l,o)),t.onUnmounted(()=>e.removeEventListener(l,o))}function m(){const e=t.ref(0),l=t.ref(0);return b(window,"mousemove",o=>{e.value=o.clientX,l.value=o.clientY}),{x:e,y:l}}const h=["aria-hidden"],g=["innerHTML"],x={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1}},setup(e){const l=e,o=t.ref(null),u=t.ref(m(l.parent)),a=t.computed(()=>y({tooltip:o.value,chart:l.parent,clientPosition:u.value,positionPreference:l.position,defaultOffsetY:l.offsetY,blockShiftY:l.blockShiftY})),f=t.computed(()=>p.setOpacity(l.backgroundColor,l.backgroundOpacity));return(n,s)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.isFullscreen?e.parent:"body"},[e.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"tooltip",ref:o,role:"tooltip","aria-hidden":!e.show,"aria-live":"polite",class:t.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:t.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};z-index:2147483647;`)},[t.renderSlot(n.$slots,"tooltip-before"),t.renderSlot(n.$slots,"default"),t.createElementVNode("div",{innerHTML:e.content},null,8,g),t.renderSlot(n.$slots,"tooltip-after")],14,h)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { X as v } from "./index-BBwKaiVY.js";
|
|
2
|
+
async function j(e) {
|
|
3
|
+
const i = e.querySelectorAll("img"), n = [];
|
|
4
|
+
i.forEach((t) => {
|
|
5
|
+
t.src && !t.src.startsWith("data:") && n.push(
|
|
6
|
+
new Promise((s) => {
|
|
7
|
+
const a = new window.Image();
|
|
8
|
+
a.crossOrigin = "anonymous", a.onload = function() {
|
|
9
|
+
try {
|
|
10
|
+
const o = document.createElement("canvas");
|
|
11
|
+
o.width = a.naturalWidth, o.height = a.naturalHeight, o.getContext("2d").drawImage(a, 0, 0), t.src = o.toDataURL();
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
s();
|
|
15
|
+
}, a.onerror = function() {
|
|
16
|
+
s();
|
|
17
|
+
}, a.src = t.src;
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
}), await Promise.all(n);
|
|
21
|
+
}
|
|
22
|
+
function T(e) {
|
|
23
|
+
e.querySelectorAll("[data-dom-to-png-ignore]").forEach((n) => {
|
|
24
|
+
n.remove();
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function x(e, i, n) {
|
|
28
|
+
const t = window.getComputedStyle(i), s = i.getBoundingClientRect(), a = t.display.includes("flex");
|
|
29
|
+
let o = {}, l = e.getAttribute("style");
|
|
30
|
+
typeof l != "string" && (l = ""), l.split(";").forEach((r) => {
|
|
31
|
+
if (typeof r == "string" && r.trim()) {
|
|
32
|
+
const [d, y] = r.split(":");
|
|
33
|
+
d && y !== void 0 && (o[d.trim()] = y.trim());
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
for (let r = 0; r < t.length; r += 1) {
|
|
37
|
+
const d = t[r], y = t.getPropertyValue(d);
|
|
38
|
+
o[d] = y;
|
|
39
|
+
}
|
|
40
|
+
o.color = t.color, o["background-color"] = t.backgroundColor;
|
|
41
|
+
let c = t.fontFamily || n || "";
|
|
42
|
+
(!c || c.trim() === "" || c === "inherit" || c === "initial" || c.toLowerCase().startsWith("system-ui") || c.toLowerCase() === "sans-serif" || c.toLowerCase() === "serif" || c.toLowerCase() === "monospace") && (c = "Helvetica, Arial, sans-serif"), o["font-family"] = c, o["font-size"] = t.fontSize, o["font-weight"] = t.fontWeight, (a || t.display.includes("grid") || ["inline-block", "absolute", "fixed"].includes(t.position)) && (s.width > 0 && (o.width = s.width + "px"), s.height > 0 && (o.height = s.height + "px")), a && t.flexWrap === "nowrap" && (o["white-space"] = "nowrap"), ["box-sizing", "padding", "margin", "border"].forEach((r) => {
|
|
43
|
+
o[r] = t.getPropertyValue(r);
|
|
44
|
+
}), o.overflow = "visible", o["overflow-x"] = "visible", o["overflow-y"] = "visible";
|
|
45
|
+
let f = "";
|
|
46
|
+
for (const r in o)
|
|
47
|
+
f += `${r}:${o[r]};`;
|
|
48
|
+
e.setAttribute("style", f);
|
|
49
|
+
const g = e.children || [], m = i.children || [];
|
|
50
|
+
for (let r = 0; r < g.length; r++)
|
|
51
|
+
g[r].nodeType === 1 && m[r] && x(g[r], m[r], c);
|
|
52
|
+
}
|
|
53
|
+
function q(e, i) {
|
|
54
|
+
e.querySelectorAll("text").forEach((t) => {
|
|
55
|
+
t.setAttribute("font-family", i), t.style.fontFamily = i;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function L(e) {
|
|
59
|
+
const i = new TextEncoder().encode(e);
|
|
60
|
+
let n = "";
|
|
61
|
+
return i.forEach((t) => n += String.fromCharCode(t)), btoa(n);
|
|
62
|
+
}
|
|
63
|
+
function $(e, i, n) {
|
|
64
|
+
let s = new XMLSerializer().serializeToString(e);
|
|
65
|
+
s.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (s = s.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
|
|
66
|
+
const a = window.btoa(unescape(encodeURIComponent(s))), o = new window.Image();
|
|
67
|
+
return o.src = `data:image/svg+xml;base64,${a}`, new Promise((l, c) => {
|
|
68
|
+
o.onload = function() {
|
|
69
|
+
const f = document.createElement("canvas");
|
|
70
|
+
f.width = i, f.height = n, f.getContext("2d").drawImage(o, 0, 0, i, n), l(f.toDataURL("image/png", 1));
|
|
71
|
+
}, o.onerror = (f) => c(f);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function A(e) {
|
|
75
|
+
if (e.nodeType !== 1) return;
|
|
76
|
+
const i = window.getComputedStyle(e);
|
|
77
|
+
let n = "";
|
|
78
|
+
for (let t = 0; t < i.length; t++) {
|
|
79
|
+
const s = i[t];
|
|
80
|
+
n += `${s}:${i.getPropertyValue(s)};`;
|
|
81
|
+
}
|
|
82
|
+
e.setAttribute("style", n);
|
|
83
|
+
for (let t = 0; t < e.children.length; t++)
|
|
84
|
+
A(e.children[t]);
|
|
85
|
+
}
|
|
86
|
+
function I() {
|
|
87
|
+
const e = [];
|
|
88
|
+
for (const i of document.styleSheets)
|
|
89
|
+
try {
|
|
90
|
+
const n = i.cssRules;
|
|
91
|
+
if (!n) continue;
|
|
92
|
+
for (const t of n)
|
|
93
|
+
(typeof CSSFontFaceRule < "u" && t instanceof CSSFontFaceRule || t.cssText.trim().startsWith("@font-face")) && e.push(t.cssText);
|
|
94
|
+
} catch {
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
return e;
|
|
98
|
+
}
|
|
99
|
+
function z(e) {
|
|
100
|
+
const i = I();
|
|
101
|
+
if (!i.length) return;
|
|
102
|
+
const n = document.createElement("style");
|
|
103
|
+
n.setAttribute("type", "text/css"), n.textContent = i.join(`
|
|
104
|
+
`);
|
|
105
|
+
const t = e.querySelector("defs") || document.createElementNS(v, "defs");
|
|
106
|
+
t.appendChild(n), e.querySelector("defs") || e.insertBefore(t, e.firstChild);
|
|
107
|
+
}
|
|
108
|
+
function M(e, i) {
|
|
109
|
+
const n = e.querySelectorAll("foreignObject"), t = i.querySelectorAll("foreignObject");
|
|
110
|
+
n.forEach((s, a) => {
|
|
111
|
+
const o = t[a];
|
|
112
|
+
if (!o) return;
|
|
113
|
+
function l(c, f) {
|
|
114
|
+
if (!c || !f) return;
|
|
115
|
+
if (c.nodeType === 1 && f.nodeType === 1) {
|
|
116
|
+
const r = window.getComputedStyle(f);
|
|
117
|
+
let d = "";
|
|
118
|
+
for (let y = 0; y < r.length; y++) {
|
|
119
|
+
const b = r[y];
|
|
120
|
+
d += `${b}:${r.getPropertyValue(b)};`;
|
|
121
|
+
}
|
|
122
|
+
c.setAttribute("style", d);
|
|
123
|
+
}
|
|
124
|
+
const g = c.children || [], m = f.children || [];
|
|
125
|
+
for (let r = 0; r < g.length; r++)
|
|
126
|
+
l(g[r], m[r]);
|
|
127
|
+
}
|
|
128
|
+
l(s, o);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function W(e) {
|
|
132
|
+
e.querySelectorAll("foreignObject").forEach((n) => {
|
|
133
|
+
let t = "";
|
|
134
|
+
const s = Array.from(n.querySelectorAll("*"));
|
|
135
|
+
if (s.length !== 0) {
|
|
136
|
+
for (const a of document.styleSheets) {
|
|
137
|
+
let o;
|
|
138
|
+
try {
|
|
139
|
+
o = a.cssRules;
|
|
140
|
+
} catch {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if (o) {
|
|
144
|
+
for (const l of o)
|
|
145
|
+
if (!(typeof CSSStyleRule < "u" && !(l instanceof CSSStyleRule)))
|
|
146
|
+
try {
|
|
147
|
+
s.some((c) => c.matches(l.selectorText)) && (t += l.cssText + `
|
|
148
|
+
`);
|
|
149
|
+
} catch {
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (t) {
|
|
155
|
+
const a = document.createElement("style");
|
|
156
|
+
a.textContent = t, n.insertBefore(a, n.firstChild);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function P(e) {
|
|
162
|
+
e.querySelectorAll("foreignObject").forEach((n) => {
|
|
163
|
+
const t = n.firstElementChild;
|
|
164
|
+
t && t.tagName.toLowerCase() !== "svg" && t.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function H(e, i) {
|
|
168
|
+
const n = e.querySelectorAll("foreignObject"), t = i.querySelectorAll("foreignObject");
|
|
169
|
+
n.forEach((s, a) => {
|
|
170
|
+
const o = t[a];
|
|
171
|
+
if (!s || !o) return;
|
|
172
|
+
const l = s.firstElementChild, c = o.firstElementChild;
|
|
173
|
+
l && c && F(l, c);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function F(e, i) {
|
|
177
|
+
if (e.nodeType !== 1 || !i) return;
|
|
178
|
+
x(e, i);
|
|
179
|
+
const n = e.children || [], t = i.children || [];
|
|
180
|
+
for (let s = 0; s < n.length; s++)
|
|
181
|
+
F(n[s], t[s]);
|
|
182
|
+
}
|
|
183
|
+
async function D({ container: e, scale: i = 2 }) {
|
|
184
|
+
if (!e) throw new Error("No container provided");
|
|
185
|
+
await document.fonts.ready;
|
|
186
|
+
let n = window.getComputedStyle(e).fontFamily || "Helvetica";
|
|
187
|
+
n.toLowerCase().includes("helvetica") || (n += ", Helvetica");
|
|
188
|
+
const t = e.cloneNode(!0), s = t.querySelectorAll("canvas"), a = e.querySelectorAll("canvas");
|
|
189
|
+
for (let p = 0; p < a.length; p += 1) {
|
|
190
|
+
const u = a[p], h = s[p];
|
|
191
|
+
if (u && h) {
|
|
192
|
+
const w = document.createElement("img");
|
|
193
|
+
w.src = u.toDataURL("image/png"), w.width = u.width, w.height = u.height, w.style.width = u.style.width || u.width + "px", w.style.height = u.style.height || u.height + "px", h.replaceWith(w);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const o = e.querySelector("svg[aria-label]"), l = t.querySelector("svg[aria-label]");
|
|
197
|
+
if (o && l) {
|
|
198
|
+
P(l), W(l), M(l, o), H(l, o), A(l), q(l, n);
|
|
199
|
+
const p = o.getBoundingClientRect(), u = p.width, h = p.height, w = Math.round(u * i), R = Math.round(h * i), E = await $(l, w, R), S = document.createElement("img");
|
|
200
|
+
S.src = E, S.width = u, S.height = h, S.style.width = u + "px", S.style.height = h + "px", l.parentNode.replaceChild(S, l);
|
|
201
|
+
}
|
|
202
|
+
x(t, e, n), T(t), await j(t);
|
|
203
|
+
const { width: c, height: f } = e.getBoundingClientRect(), g = Math.round(Math.max(t.scrollWidth, c) * i), m = Math.round(Math.max(t.scrollHeight, f) * 1.01 * i), r = document.createElementNS(v, "svg");
|
|
204
|
+
r.setAttribute("viewBox", `0 0 ${g} ${m}`), r.setAttribute("width", g), r.setAttribute("height", m), r.setAttribute("style", `font-family:${n};`);
|
|
205
|
+
const d = document.createElementNS(v, "foreignObject");
|
|
206
|
+
d.setAttribute("x", 0), d.setAttribute("y", 0), d.setAttribute("width", g), d.setAttribute("height", m), d.setAttribute("style", `font-family:${n};`), t.style.transform = `scale(${i})`, t.style.transformOrigin = "top left", t.style.width = c + "px", t.style.height = f + "px", t.style.background = window.getComputedStyle(e).backgroundColor, d.appendChild(t), z(r), r.appendChild(d);
|
|
207
|
+
const b = new XMLSerializer().serializeToString(r), O = L(b), C = new window.Image();
|
|
208
|
+
return C.crossOrigin = "anonymous", C.src = `data:image/svg+xml;base64,${O}`, new Promise((p, u) => {
|
|
209
|
+
C.onload = function() {
|
|
210
|
+
try {
|
|
211
|
+
const h = document.createElement("canvas");
|
|
212
|
+
h.width = g, h.height = m, h.getContext("2d").drawImage(C, 0, 0, g, m), p(h.toDataURL("image/png", 1));
|
|
213
|
+
} catch (h) {
|
|
214
|
+
u("Failed to draw SVG on canvas: " + h);
|
|
215
|
+
}
|
|
216
|
+
}, C.onerror = function() {
|
|
217
|
+
u("Failed to load SVG image for conversion");
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
D as d
|
|
223
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const v=require("./index-DdmI4IyM.cjs");async function j(e){const i=e.querySelectorAll("img"),n=[];i.forEach(t=>{t.src&&!t.src.startsWith("data:")&&n.push(new Promise(s=>{const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const o=document.createElement("canvas");o.width=a.naturalWidth,o.height=a.naturalHeight,o.getContext("2d").drawImage(a,0,0),t.src=o.toDataURL()}catch{}s()},a.onerror=function(){s()},a.src=t.src}))}),await Promise.all(n)}function L(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(n=>{n.remove()})}function x(e,i,n){const t=window.getComputedStyle(i),s=i.getBoundingClientRect(),a=t.display.includes("flex");let o={},l=e.getAttribute("style");typeof l!="string"&&(l=""),l.split(";").forEach(r=>{if(typeof r=="string"&&r.trim()){const[f,m]=r.split(":");f&&m!==void 0&&(o[f.trim()]=m.trim())}});for(let r=0;r<t.length;r+=1){const f=t[r],m=t.getPropertyValue(f);o[f]=m}o.color=t.color,o["background-color"]=t.backgroundColor;let c=t.fontFamily||n||"";(!c||c.trim()===""||c==="inherit"||c==="initial"||c.toLowerCase().startsWith("system-ui")||c.toLowerCase()==="sans-serif"||c.toLowerCase()==="serif"||c.toLowerCase()==="monospace")&&(c="Helvetica, Arial, sans-serif"),o["font-family"]=c,o["font-size"]=t.fontSize,o["font-weight"]=t.fontWeight,(a||t.display.includes("grid")||["inline-block","absolute","fixed"].includes(t.position))&&(s.width>0&&(o.width=s.width+"px"),s.height>0&&(o.height=s.height+"px")),a&&t.flexWrap==="nowrap"&&(o["white-space"]="nowrap"),["box-sizing","padding","margin","border"].forEach(r=>{o[r]=t.getPropertyValue(r)}),o.overflow="visible",o["overflow-x"]="visible",o["overflow-y"]="visible";let d="";for(const r in o)d+=`${r}:${o[r]};`;e.setAttribute("style",d);const g=e.children||[],y=i.children||[];for(let r=0;r<g.length;r++)g[r].nodeType===1&&y[r]&&x(g[r],y[r],c)}function T(e,i){e.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",i),t.style.fontFamily=i})}function q(e){const i=new TextEncoder().encode(e);let n="";return i.forEach(t=>n+=String.fromCharCode(t)),btoa(n)}function M(e,i,n){let s=new XMLSerializer().serializeToString(e);s.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(s=s.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(s))),o=new window.Image;return o.src=`data:image/svg+xml;base64,${a}`,new Promise((l,c)=>{o.onload=function(){const d=document.createElement("canvas");d.width=i,d.height=n,d.getContext("2d").drawImage(o,0,0,i,n),l(d.toDataURL("image/png",1))},o.onerror=d=>c(d)})}function A(e){if(e.nodeType!==1)return;const i=window.getComputedStyle(e);let n="";for(let t=0;t<i.length;t++){const s=i[t];n+=`${s}:${i.getPropertyValue(s)};`}e.setAttribute("style",n);for(let t=0;t<e.children.length;t++)A(e.children[t])}function $(){const e=[];for(const i of document.styleSheets)try{const n=i.cssRules;if(!n)continue;for(const t of n)(typeof CSSFontFaceRule<"u"&&t instanceof CSSFontFaceRule||t.cssText.trim().startsWith("@font-face"))&&e.push(t.cssText)}catch{continue}return e}function I(e){const i=$();if(!i.length)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.textContent=i.join(`
|
|
2
|
+
`);const t=e.querySelector("defs")||document.createElementNS(v.XMLNS,"defs");t.appendChild(n),e.querySelector("defs")||e.insertBefore(t,e.firstChild)}function z(e,i){const n=e.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");n.forEach((s,a)=>{const o=t[a];if(!o)return;function l(c,d){if(!c||!d)return;if(c.nodeType===1&&d.nodeType===1){const r=window.getComputedStyle(d);let f="";for(let m=0;m<r.length;m++){const b=r[m];f+=`${b}:${r.getPropertyValue(b)};`}c.setAttribute("style",f)}const g=c.children||[],y=d.children||[];for(let r=0;r<g.length;r++)l(g[r],y[r])}l(s,o)})}function P(e){e.querySelectorAll("foreignObject").forEach(n=>{let t="";const s=Array.from(n.querySelectorAll("*"));if(s.length!==0){for(const a of document.styleSheets){let o;try{o=a.cssRules}catch{continue}if(o){for(const l of o)if(!(typeof CSSStyleRule<"u"&&!(l instanceof CSSStyleRule)))try{s.some(c=>c.matches(l.selectorText))&&(t+=l.cssText+`
|
|
3
|
+
`)}catch{continue}}}if(t){const a=document.createElement("style");a.textContent=t,n.insertBefore(a,n.firstChild)}}})}function W(e){e.querySelectorAll("foreignObject").forEach(n=>{const t=n.firstElementChild;t&&t.tagName.toLowerCase()!=="svg"&&t.setAttribute("xmlns","http://www.w3.org/1999/xhtml")})}function H(e,i){const n=e.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");n.forEach((s,a)=>{const o=t[a];if(!s||!o)return;const l=s.firstElementChild,c=o.firstElementChild;l&&c&&F(l,c)})}function F(e,i){if(e.nodeType!==1||!i)return;x(e,i);const n=e.children||[],t=i.children||[];for(let s=0;s<n.length;s++)F(n[s],t[s])}async function B({container:e,scale:i=2}){if(!e)throw new Error("No container provided");await document.fonts.ready;let n=window.getComputedStyle(e).fontFamily||"Helvetica";n.toLowerCase().includes("helvetica")||(n+=", Helvetica");const t=e.cloneNode(!0),s=t.querySelectorAll("canvas"),a=e.querySelectorAll("canvas");for(let p=0;p<a.length;p+=1){const u=a[p],h=s[p];if(u&&h){const w=document.createElement("img");w.src=u.toDataURL("image/png"),w.width=u.width,w.height=u.height,w.style.width=u.style.width||u.width+"px",w.style.height=u.style.height||u.height+"px",h.replaceWith(w)}}const o=e.querySelector("svg[aria-label]"),l=t.querySelector("svg[aria-label]");if(o&&l){W(l),P(l),z(l,o),H(l,o),A(l),T(l,n);const p=o.getBoundingClientRect(),u=p.width,h=p.height,w=Math.round(u*i),R=Math.round(h*i),E=await M(l,w,R),S=document.createElement("img");S.src=E,S.width=u,S.height=h,S.style.width=u+"px",S.style.height=h+"px",l.parentNode.replaceChild(S,l)}x(t,e,n),L(t),await j(t);const{width:c,height:d}=e.getBoundingClientRect(),g=Math.round(Math.max(t.scrollWidth,c)*i),y=Math.round(Math.max(t.scrollHeight,d)*1.01*i),r=document.createElementNS(v.XMLNS,"svg");r.setAttribute("viewBox",`0 0 ${g} ${y}`),r.setAttribute("width",g),r.setAttribute("height",y),r.setAttribute("style",`font-family:${n};`);const f=document.createElementNS(v.XMLNS,"foreignObject");f.setAttribute("x",0),f.setAttribute("y",0),f.setAttribute("width",g),f.setAttribute("height",y),f.setAttribute("style",`font-family:${n};`),t.style.transform=`scale(${i})`,t.style.transformOrigin="top left",t.style.width=c+"px",t.style.height=d+"px",t.style.background=window.getComputedStyle(e).backgroundColor,f.appendChild(t),I(r),r.appendChild(f);const b=new XMLSerializer().serializeToString(r),O=q(b),C=new window.Image;return C.crossOrigin="anonymous",C.src=`data:image/svg+xml;base64,${O}`,new Promise((p,u)=>{C.onload=function(){try{const h=document.createElement("canvas");h.width=g,h.height=y,h.getContext("2d").drawImage(C,0,0,g,y),p(h.toDataURL("image/png",1))}catch(h){u("Failed to draw SVG on canvas: "+h)}},C.onerror=function(){u("Failed to load SVG image for conversion")}})}exports.domToPng=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-CP7WJd1S.cjs");async function d({domElement:r,fileName:n,format:t="png",scale:c=2}){if(!r)return Promise.reject("No element provided");if(t==="svg"){const o=converter.convertToImg({container:r,scale:c});if(!o)return Promise.reject("Could not create SVG image");const e=document.createElement("a");return e.href=o.src,e.download=`${n}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e),Promise.resolve()}try{const o=await i.domToPng({container:r,scale:c}),e=document.createElement("a");e.href=o,e.download=`${n}.${t}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(o){throw console.error("Error generating image:",o),o}}exports.default=d;
|
|
@@ -6528,7 +6528,7 @@ function we(o, l) {
|
|
|
6528
6528
|
const r = O(o);
|
|
6529
6529
|
return bt(r, l);
|
|
6530
6530
|
}
|
|
6531
|
-
const Le = C(() => import("./Arrow-
|
|
6531
|
+
const Le = C(() => import("./Arrow-DMgiQZ_4.js")), Se = C(() => import("./vue-data-ui-DRkvQU1Z.js")), ve = C(() => import("./vue-ui-3d-bar-Or_Pxl4f.js")), _e = C(() => import("./vue-ui-accordion-zwn0yEvW.js")), ze = C(() => import("./vue-ui-age-pyramid-CR4X9AYe.js")), Re = C(() => import("./vue-ui-annotator-DP0d9bO-.js")), Oe = C(() => import("./vue-ui-candlestick-DxvXpsyX.js")), Te = C(() => import("./vue-ui-chestnut-CQJTn7fn.js")), Pe = C(() => import("./vue-ui-cursor-DZSRtqAI.js")), Ne = C(() => import("./vue-ui-dashboard-CgDCZgWu.js")), Me = C(() => import("./vue-ui-digits-BnSm6HOD.js")), Ve = C(() => import("./vue-ui-donut-CGN_56A-.js")), Ie = C(() => import("./vue-ui-donut-evolution-BUu7nOHx.js")), We = C(() => import("./vue-ui-dumbbell-Cah5eNlf.js")), Ue = C(() => import("./vue-ui-flow-Cr1-IEyc.js")), Ge = C(() => import("./vue-ui-galaxy-f0Mb4bW5.js")), Ye = C(() => import("./vue-ui-gauge-BNBcgNxb.js")), He = C(() => import("./vue-ui-heatmap-MxSJwSDk.js")), $e = C(() => import("./BaseIcon-4qX1_lK_.js")), Xe = C(() => import("./vue-ui-kpi-DT94o6m6.js")), Ke = C(() => import("./vue-ui-mini-loader-DLN6kXO9.js")), je = C(() => import("./vue-ui-molecule-DypBWu0b.js")), qe = C(() => import("./vue-ui-mood-radar-D6VaT0FM.js")), Qe = C(() => import("./vue-ui-nested-donuts-3ICSijpW.js")), Ze = C(() => import("./vue-ui-onion-gJqbUjYS.js")), Je = C(() => import("./vue-ui-parallel-coordinate-plot-CAxkNqsH.js")), ol = C(() => import("./vue-ui-quadrant-BSxpUAnN.js")), rl = C(() => import("./vue-ui-quick-chart-2GMvbDAA.js")), tl = C(() => import("./vue-ui-radar-DRbxZIfI.js")), el = C(() => import("./vue-ui-rating-BVzeHFsE.js")), ll = C(() => import("./vue-ui-relation-circle-Vb6vY4qc.js")), al = C(() => import("./vue-ui-rings-5S7O4poi.js")), cl = C(() => import("./vue-ui-scatter-BzyLf6Hr.js")), nl = C(() => import("./vue-ui-skeleton-CoW0Qci5.js")), sl = C(() => import("./vue-ui-smiley-CNRok3pP.js")), il = C(() => import("./vue-ui-sparkhistogram-CZRAkAG-.js")), ul = C(() => import("./vue-ui-sparkstackbar-CzEuwnJV.js")), dl = C(() => import("./vue-ui-spark-trend-PplShNvM.js")), bl = C(() => import("./vue-ui-sparkbar-I8_tYiKU.js")), fl = C(() => import("./vue-ui-sparkgauge-CvxLXm7g.js")), gl = C(() => import("./vue-ui-sparkline-DESd7Yax.js")), Al = C(() => import("./vue-ui-strip-plot-DuM855Hq.js")), Cl = C(() => import("./vue-ui-table-CobFbKRN.js")), hl = C(() => import("./vue-ui-table-heatmap-DrgPZTXL.js")), Fl = C(() => import("./vue-ui-table-sparkline-D8_WyZeB.js")), kl = C(() => import("./vue-ui-thermometer-CUrWmL9J.js")), El = C(() => import("./vue-ui-timer-C5HcU0qt.js")), pl = C(() => import("./vue-ui-tiremarks-PsEoJbuf.js")), Dl = C(() => import("./vue-ui-treemap-DZ2QMQ2S.js")), Bl = C(() => import("./vue-ui-vertical-bar-Bg68IfRu.js")), yl = C(() => import("./vue-ui-waffle-Ci_DVsdn.js")), ml = C(() => import("./vue-ui-wheel-avTcqygq.js")), xl = C(() => import("./vue-ui-word-cloud-BwNVlteE.js")), wl = C(() => import("./vue-ui-xy-Ds8oB37Y.js")), Ll = C(() => import("./vue-ui-xy-canvas-B1LLzFGi.js")), Sl = C(() => import("./vue-ui-carousel-table-DD5-DjT1.js")), vl = C(() => import("./vue-ui-gizmo-D5QF_8_x.js")), _l = C(() => import("./vue-ui-stackbar-DNuc2OCh.js")), zl = C(() => import("./vue-ui-bullet-BwRsLv44.js")), Rl = C(() => import("./vue-ui-funnel-CdUSmZCU.js")), Ol = C(() => import("./vue-ui-history-plot-PmmDMNhU.js")), Tl = C(() => import("./vue-ui-pattern-DsYgSZWn.js")), Pl = C(() => import("./vue-ui-circle-pack-CiQ8_5Cm.js"));
|
|
6532
6532
|
export {
|
|
6533
6533
|
Ee as $,
|
|
6534
6534
|
nt as A,
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
L ${D} ${g}
|
|
7
7
|
A ${s} ${s} 0 0 1 ${k} ${p}
|
|
8
8
|
Z
|
|
9
|
-
`.trim(),middlePoint:{x:h,y:m}}})}function kt({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c);let s=0,b=0;for(const f of u)s+=f.x,b+=f.y;s/=u.length,b/=u.length;let d=-1,t=n;for(let f=i;f<c;f+=1){const A=Math.abs((o[n].x-s)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(b-o[n].y));A>d&&(d=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c),s=u.reduce((t,f)=>t+f,0)/u.length;let b=-1,d=n;for(let t=i;t<c;t+=1){const f=Math.abs((o[n]-s)*(t-n));f>b&&(b=f,d=t)}e.push(o[d]),n=d}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let i=0;i<l-2;i+=1){const c=Math.floor((i+1)*n)+1,u=Math.min(Math.floor((i+2)*n)+1,o.length),s=o.slice(c,u),b=s.reduce((f,A)=>f+A[e],0)/s.length;let d=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-b)*(f-r));A>d&&(d=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function pt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,i=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${i} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Dt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let s=0,b=0;return i.x-u.width/2<c.left?s=0:i.x+u.width>c.right?s=-u.width:s=-u.width/2,i.y-a-u.height<c.top?b=a:b=-u.height-a,{top:i.y+b,left:i.x+s}}function Bt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let s=n==="right"?0:-u,b=-(c/2);return{top:i.y+b,left:i.x+s}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function mt(o,l){const e=R(o);return no(e,l)}function yt(o,l){const e=R(o);return co(e,l)}function xt(o,l){const e=R(o);return lo(e,l)}const wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-DaC4Jggt.cjs"))),Lt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-7v42K5gt.cjs"))),vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-SlYzaTWe.cjs"))),St=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-Dv7_RuxV.cjs"))),_t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DA8ecgTq.cjs"))),Pt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-B50RLG4_.cjs"))),zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-D2MEbWNY.cjs"))),Rt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CbDkM7ky.cjs"))),Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-BLTxIE3s.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-DPscKTx9.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-C5MYWO6c.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-CdTrxJPw.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-B_Ryni-e.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-DyqVa3uy.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-B1FWfGHZ.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CxdhenWS.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-D9Ezw8B7.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CGkUNTgH.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-qK9HKOKj.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-Dj65b5iZ.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-Bl0krmav.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-BbGpmjGK.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-DjMoBLgA.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-DCVonBCM.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-NH4sxfSF.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-CY6jzBpv.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-eR9JtoM3.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-DNQH765e.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-DKbD---J.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-jJJLduA9.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-CXpjECVe.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-Dibiz3by.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DRfMPJxM.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-R-5ZiSXE.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-DL4v0xTc.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-CWmqcycr.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-C3e6K5v1.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-CtZueeli.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-BuyBi1lu.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-Du2ue49R.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-Dmb_5C0G.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-DP_PpPtz.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-D2Cwg4FX.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-iysX0iSr.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-D2d4XFaK.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-6-ENHra5.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-BVidfYwu.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-C2oBMeBH.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-y0ahQpVZ.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-Cvnk_DfK.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-Lt6Np1DU.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-_L5kmjKE.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-THML_zJG.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-BQnq2Jvu.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-B_KgByGx.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CN8NGTlR.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-Cb4_knsM.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-C6KJfccr.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-BCCEdISW.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-CaDqiFzZ.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-BJa7JIzW.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-Dft1dJUa.cjs")));exports.Arrow=wt;exports.VueDataUi=Lt;exports.VueUi3dBar=vt;exports.VueUiAccordion=St;exports.VueUiAgePyramid=_t;exports.VueUiAnnotator=Pt;exports.VueUiBullet=_l;exports.VueUiCandlestick=zt;exports.VueUiCarouselTable=Ll;exports.VueUiChestnut=Rt;exports.VueUiCirclePack=Ol;exports.VueUiCursor=Ot;exports.VueUiDashboard=Tt;exports.VueUiDigits=Vt;exports.VueUiDonut=Nt;exports.VueUiDonutEvolution=Mt;exports.VueUiDumbbell=Ut;exports.VueUiFlow=It;exports.VueUiFunnel=Pl;exports.VueUiGalaxy=Wt;exports.VueUiGauge=Gt;exports.VueUiGizmo=vl;exports.VueUiHeatmap=Ht;exports.VueUiHistoryPlot=zl;exports.VueUiIcon=Yt;exports.VueUiKpi=$t;exports.VueUiMiniLoader=Xt;exports.VueUiMolecule=qt;exports.VueUiMoodRadar=Kt;exports.VueUiNestedDonuts=jt;exports.VueUiOnion=Qt;exports.VueUiParallelCoordinatePlot=Zt;exports.VueUiPattern=Rl;exports.VueUiQuadrant=Jt;exports.VueUiQuickChart=ol;exports.VueUiRadar=el;exports.VueUiRating=rl;exports.VueUiRelationCircle=tl;exports.VueUiRings=ll;exports.VueUiScatter=al;exports.VueUiSkeleton=nl;exports.VueUiSmiley=cl;exports.VueUiSparkHistogram=sl;exports.VueUiSparkStackbar=il;exports.VueUiSparkTrend=ul;exports.VueUiSparkbar=dl;exports.VueUiSparkgauge=bl;exports.VueUiSparkline=fl;exports.VueUiStackbar=Sl;exports.VueUiStripPlot=Al;exports.VueUiTable=gl;exports.VueUiTableHeatmap=Cl;exports.VueUiTableSparkline=hl;exports.VueUiThermometer=kl;exports.VueUiTimer=Fl;exports.VueUiTiremarks=El;exports.VueUiTreemap=pl;exports.VueUiVerticalBar=Dl;exports.VueUiWaffle=Bl;exports.VueUiWheel=ml;exports.VueUiWordCloud=yl;exports.VueUiXy=xl;exports.VueUiXyCanvas=wl;exports.XMLNS=tt;exports.abbreviate=qr;exports.adaptColorToBackground=wr;exports.applyDataLabel=ft;exports.assignStackRatios=st;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=Sr;exports.calcNutArrowPath=Vr;exports.calcTrend=lt;exports.calculateNiceScale=Hr;exports.calculateNiceScaleWithExactExtremes=Yr;exports.canShowValue=Mr;exports.checkNaN=F;exports.closestDecimal=Nr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=nt;exports.createCsvContent=Gr;exports.createHalfCircleArc=pt;exports.createPolarAreas=ht;exports.createPolygonPath=Br;exports.createSmoothPath=Pr;exports.createSmoothPathVertical=zr;exports.createSpiralPath=ot;exports.createStar=yr;exports.createStraightPath=_r;exports.createTSpans=at;exports.createUid=Rr;exports.createWordCloudDatasetFromPlainText=ct;exports.darkenColor=yt;exports.darkenHexColor=co;exports.dataLabel=Xr;exports.deepClone=V;exports.downloadCsv=Wr;exports.error=Zr;exports.forceValidValue=Fr;exports.functionReturnsString=jr;exports.getMissingDatasetAttributes=et;exports.getPalette=Er;exports.getPathLengthFromCoordinates=it;exports.getThemeConfig=nr;exports.getVueDataUiConfig=Ae;exports.giftWrap=xr;exports.hasDeepProperty=At;exports.interpolateColorHex=$r;exports.isFunction=Kr;exports.isSafeValue=kr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=kt;exports.largestTriangleThreeBucketsArray=Ft;exports.largestTriangleThreeBucketsArrayObjects=Et;exports.lightenColor=mt;exports.lightenHexColor=no;exports.makeDonut=Ar;exports.makePath=Ir;exports.objectIsEmpty=Qr;exports.offsetFromCenterPoint=Or;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Dt;exports.placeXYTag=Bt;exports.sanitizeArray=gt;exports.setOpacity=Ct;exports.shiftColorHue=xt;exports.shiftHue=lo;exports.sumByAttribute=Ur;exports.sumSeries=dt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=ut;exports.treeShake=ro;exports.useConfig=oo;
|
|
9
|
+
`.trim(),middlePoint:{x:h,y:m}}})}function kt({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c);let s=0,b=0;for(const f of u)s+=f.x,b+=f.y;s/=u.length,b/=u.length;let d=-1,t=n;for(let f=i;f<c;f+=1){const A=Math.abs((o[n].x-s)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(b-o[n].y));A>d&&(d=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c),s=u.reduce((t,f)=>t+f,0)/u.length;let b=-1,d=n;for(let t=i;t<c;t+=1){const f=Math.abs((o[n]-s)*(t-n));f>b&&(b=f,d=t)}e.push(o[d]),n=d}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let i=0;i<l-2;i+=1){const c=Math.floor((i+1)*n)+1,u=Math.min(Math.floor((i+2)*n)+1,o.length),s=o.slice(c,u),b=s.reduce((f,A)=>f+A[e],0)/s.length;let d=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-b)*(f-r));A>d&&(d=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function pt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,i=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${i} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Dt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let s=0,b=0;return i.x-u.width/2<c.left?s=0:i.x+u.width>c.right?s=-u.width:s=-u.width/2,i.y-a-u.height<c.top?b=a:b=-u.height-a,{top:i.y+b,left:i.x+s}}function Bt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let s=n==="right"?0:-u,b=-(c/2);return{top:i.y+b,left:i.x+s}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function mt(o,l){const e=R(o);return no(e,l)}function yt(o,l){const e=R(o);return co(e,l)}function xt(o,l){const e=R(o);return lo(e,l)}const wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-Bvc0lWZf.cjs"))),Lt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-B-HYjyTv.cjs"))),vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-DKTpxLQf.cjs"))),St=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-fsdtcWoA.cjs"))),_t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-CmeUQWOn.cjs"))),Pt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-iAmIySMn.cjs"))),zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-CGDmTY9u.cjs"))),Rt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-4VdU7keY.cjs"))),Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-sRVxw9VU.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BC5PNjG6.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-CIPlnX4m.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-Dt682HYD.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-YnZ1tQZD.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BWZRBoK5.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-NSqG-VJj.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CfHSHPsj.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-DiBPBBm0.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-D4OrEjjo.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-D5l-ujm_.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-DGvhcEZy.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-BmeR7-9f.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-D51X1kpt.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-wCI5H7Ka.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-Bped69kR.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-75D677VV.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-pRNEcwtp.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-HPB66J-s.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-DM5Qyur7.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-CrrE7tgM.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-B74MvkB-.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-bonK2Qo7.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-D8vjaeiH.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-B3rdJPB7.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-DSAQr6x5.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-DnO-ASKu.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-COtHy-A9.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-DxdMxOFQ.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-Ct1UY_MC.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CYYHcuyY.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DB40CpGm.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-Be0XWPEe.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-EVjIBlOg.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-Dh_NnOFW.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-CLzAaAW1.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-BQDc_il5.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-CW1KJ1Ix.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-CjXvzokw.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-YtX_KuXp.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-CGgRCl4E.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-Bz-pbusQ.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-FNP844zt.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-DCdliwye.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-DrApMsSm.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-BdfDxlX6.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-B7cjV0K6.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table--LhcSQMy.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-D4ntZeoD.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-C9XLE8w2.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-NSxVF_H8.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-FSBnYvMH.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-DKHvI-HZ.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-DtgTkVIO.cjs")));exports.Arrow=wt;exports.VueDataUi=Lt;exports.VueUi3dBar=vt;exports.VueUiAccordion=St;exports.VueUiAgePyramid=_t;exports.VueUiAnnotator=Pt;exports.VueUiBullet=_l;exports.VueUiCandlestick=zt;exports.VueUiCarouselTable=Ll;exports.VueUiChestnut=Rt;exports.VueUiCirclePack=Ol;exports.VueUiCursor=Ot;exports.VueUiDashboard=Tt;exports.VueUiDigits=Vt;exports.VueUiDonut=Nt;exports.VueUiDonutEvolution=Mt;exports.VueUiDumbbell=Ut;exports.VueUiFlow=It;exports.VueUiFunnel=Pl;exports.VueUiGalaxy=Wt;exports.VueUiGauge=Gt;exports.VueUiGizmo=vl;exports.VueUiHeatmap=Ht;exports.VueUiHistoryPlot=zl;exports.VueUiIcon=Yt;exports.VueUiKpi=$t;exports.VueUiMiniLoader=Xt;exports.VueUiMolecule=qt;exports.VueUiMoodRadar=Kt;exports.VueUiNestedDonuts=jt;exports.VueUiOnion=Qt;exports.VueUiParallelCoordinatePlot=Zt;exports.VueUiPattern=Rl;exports.VueUiQuadrant=Jt;exports.VueUiQuickChart=ol;exports.VueUiRadar=el;exports.VueUiRating=rl;exports.VueUiRelationCircle=tl;exports.VueUiRings=ll;exports.VueUiScatter=al;exports.VueUiSkeleton=nl;exports.VueUiSmiley=cl;exports.VueUiSparkHistogram=sl;exports.VueUiSparkStackbar=il;exports.VueUiSparkTrend=ul;exports.VueUiSparkbar=dl;exports.VueUiSparkgauge=bl;exports.VueUiSparkline=fl;exports.VueUiStackbar=Sl;exports.VueUiStripPlot=Al;exports.VueUiTable=gl;exports.VueUiTableHeatmap=Cl;exports.VueUiTableSparkline=hl;exports.VueUiThermometer=kl;exports.VueUiTimer=Fl;exports.VueUiTiremarks=El;exports.VueUiTreemap=pl;exports.VueUiVerticalBar=Dl;exports.VueUiWaffle=Bl;exports.VueUiWheel=ml;exports.VueUiWordCloud=yl;exports.VueUiXy=xl;exports.VueUiXyCanvas=wl;exports.XMLNS=tt;exports.abbreviate=qr;exports.adaptColorToBackground=wr;exports.applyDataLabel=ft;exports.assignStackRatios=st;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=Sr;exports.calcNutArrowPath=Vr;exports.calcTrend=lt;exports.calculateNiceScale=Hr;exports.calculateNiceScaleWithExactExtremes=Yr;exports.canShowValue=Mr;exports.checkNaN=F;exports.closestDecimal=Nr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=nt;exports.createCsvContent=Gr;exports.createHalfCircleArc=pt;exports.createPolarAreas=ht;exports.createPolygonPath=Br;exports.createSmoothPath=Pr;exports.createSmoothPathVertical=zr;exports.createSpiralPath=ot;exports.createStar=yr;exports.createStraightPath=_r;exports.createTSpans=at;exports.createUid=Rr;exports.createWordCloudDatasetFromPlainText=ct;exports.darkenColor=yt;exports.darkenHexColor=co;exports.dataLabel=Xr;exports.deepClone=V;exports.downloadCsv=Wr;exports.error=Zr;exports.forceValidValue=Fr;exports.functionReturnsString=jr;exports.getMissingDatasetAttributes=et;exports.getPalette=Er;exports.getPathLengthFromCoordinates=it;exports.getThemeConfig=nr;exports.getVueDataUiConfig=Ae;exports.giftWrap=xr;exports.hasDeepProperty=At;exports.interpolateColorHex=$r;exports.isFunction=Kr;exports.isSafeValue=kr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=kt;exports.largestTriangleThreeBucketsArray=Ft;exports.largestTriangleThreeBucketsArrayObjects=Et;exports.lightenColor=mt;exports.lightenHexColor=no;exports.makeDonut=Ar;exports.makePath=Ir;exports.objectIsEmpty=Qr;exports.offsetFromCenterPoint=Or;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Dt;exports.placeXYTag=Bt;exports.sanitizeArray=gt;exports.setOpacity=Ct;exports.shiftColorHue=xt;exports.shiftHue=lo;exports.sumByAttribute=Ur;exports.sumSeries=dt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=ut;exports.treeShake=ro;exports.useConfig=oo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-CP7WJd1S.cjs");async function P({domElement:d,fileName:l,scale:m=2,options:H={}}){if(!d)return Promise.reject("No domElement provided");const t={width:595.28,height:841.89},a=await p.domToPng({container:d,scale:m});return await new Promise((f,u)=>{const e=new window.Image;e.onload=function(){const i=e.naturalWidth,r=e.naturalHeight;let g=t.width,s=t.width/i*r;const o=new w.E("","pt","a4");let c=0,n=r;const h=i/t.width*t.height;if(n<h)o.addImage(a,"PNG",0,0,g,s,"","FAST");else for(;n>0;)o.addImage(a,"PNG",0,c,g,s,"","FAST"),n-=h,c-=t.height,n>0&&o.addPage();o.save(`${l}.pdf`),f()},e.onerror=i=>u("Failed to load image for PDF: "+i),e.src=a})}exports.default=P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as p } from "./jspdf.es.min-t_OLULUR.js";
|
|
2
|
-
import { d as u } from "./dom-to-png-
|
|
2
|
+
import { d as u } from "./dom-to-png-CNdnROpG.js";
|
|
3
3
|
async function I({ domElement: d, fileName: m, scale: f = 2, options: P = {} }) {
|
|
4
4
|
if (!d) return Promise.reject("No domElement provided");
|
|
5
5
|
const t = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-DdmI4IyM.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
|