vue-data-ui 2.4.41 → 2.4.42
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-6z0ZQva_.js → Arrow-DE71uBJZ.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DTscDttD.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-C8XxmpRq.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DEdQvqB1.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-D_w08xos.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-BWDoQii_.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-C4rlR-Ge.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CH6MCx6T.js} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-BWTR3U2d.js} +3 -3
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BLS-KzBD.cjs} +1 -1
- package/dist/{Shape-C3ywBhkW.js → Shape-xrlfL_v4.js} +1 -1
- package/dist/Slicer-8gKX0l4Q.cjs +1 -0
- package/dist/Slicer-DIYseEL1.js +423 -0
- package/dist/{Title-D9gPXVTT.cjs → Title-B-xkTfi8.cjs} +1 -1
- package/dist/{Title-BB0O0yol.js → Title-Cnl9ySNH.js} +1 -1
- package/dist/Tooltip-Brbj6DqX.cjs +1 -0
- package/dist/{Tooltip-GvLaModr.js → Tooltip-DEAOBZ8h.js} +33 -25
- package/dist/index-B68kzBN9.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-DnukYspq.js} +45 -41
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-CVOQGx-X.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-C9yUesCc.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-DVIALk5e.js} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-BmmjmNbb.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-f9NTID9e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-C82vEb7R.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
- package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
- package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DtNvb8lM.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-C028OlzU.js} +99 -98
- package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-QRimZUXT.js} +46 -46
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-CBymVSdd.js} +19 -19
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-CZi84tUl.js} +26 -25
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-CIRGvycb.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
- package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-CXXAYowO.js} +38 -37
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-DOqMciYJ.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-BEv568py.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-CR3iWQV_.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-B--CFaNX.js} +49 -48
- package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-C-RD4h73.js} +26 -25
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
- package/dist/{vue-ui-stackbar-BZbOagnf.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-CS-NSZjj.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DYdcFM17.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-B3346TfB.js} +195 -185
- package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
- package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
package/package.json
CHANGED
package/dist/Slicer-B2aHb4bj.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),O=require("./BaseIcon-D-JUZiGA.cjs"),C=require("./useResponsive-BJ7DTGpm.cjs"),v=require("./index-B5Ugkauv.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=l=>(e.pushScopeId("data-v-ed77abe8"),l=l(),e.popScopeId(),l),U={"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom"},W={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},j={key:0,style:{width:"100%",position:"relative"}},X={key:0,class:"minimap",style:{width:"100%"}},Z=["xmlns","viewBox"],_=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","rx","fill"],ee=["x","width","height","fill","rx"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__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"}},emits:["update:start","update:end","reset","trapMouse"],setup(l,{emit:h}){const t=l;e.useCssVars(a=>({"724603fa":$.value,"0a3b8c6e":f.value,"31bae142":M.value,"2b1e64c4":l.selectColor,"7b29392c":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(v.createUid()),V=e.computed(()=>{const a=t.max-t.min,o=(r.value-t.min)/a*100,i=(u.value-t.min)/a*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),M=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),N=e.computed(()=>{let a=[];for(let o=0;o<t.minimap.length;o+=1)a.push(o);return a});function E(){h("reset")}function z(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function L(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,a=>{Number(r.value)<Number(a)&&(r.value=Number(a)),Number(u.value)<Number(a)&&(u.value=Number(a))}),e.watch(()=>t.max,a=>{Number(r.value)>Number(a)&&(r.value=Number(a)),Number(u.value)>Number(a)&&(u.value=Number(a))});const b=e.ref(null),n=e.ref({width:1,height:1}),y=e.ref(null);e.onMounted(()=>{if(p.value){const a=C.throttle(()=>{const{width:o,height:i}=C.useResponsive({chart:b.value});n.value.width=o,n.value.height=i-47});y.value=new ResizeObserver(a),y.value.observe(b.value)}}),e.onBeforeUnmount(()=>{y.value&&y.value.disconnect()});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const a=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=a-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),S=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),k=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(k):v.createStraightPath(k);return{fullSet:S,selectionSet:R,sliced:k,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),x=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,a=>{x.value=a+t.valueStart},{immediate:!0});function P(a){x.value=a,a>=t.valueStart&&a<t.valueEnd&&h("trapMouse",a-t.valueStart)}return(a,o)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[l.valueStart>0||l.valueEnd<l.max?(e.openBlock(),e.createElementBlock("div",j,[l.useResetSlot?e.renderSlot(a.$slots,"reset-action",{key:1,reset:E},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:E},[e.createVNode(O.default,{name:"refresh",stroke:l.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:b,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.minimapLineColor}50`},null,8,G),H],8,_)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${l.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,fill:f.value,rx:l.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(n.value.height,0)} ${c.value.fullSet} L${n.value.width-s.value/2},${Math.max(n.value.height,0)}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,rx:l.minimapSelectionRadius,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,fill:l.minimapSelectedColor,rx:l.minimapSelectionRadius,style:e.normalizeStyle({opacity:l.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${Math.max(n.value.height,0)} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${Math.max(n.value.height,0)}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${l.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ne),x.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[x.value===i&&i>=l.valueStart&&i<l.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(n.value.height,0),stroke:l.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(n.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:S=>P(i),onMouseleave:o[0]||(o[0]=S=>{x.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,Z))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:l.min,max:l.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:z},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(l.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:l.min,max:l.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:L},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(l.labelRight),5)],512)]))}},de=T._export_sfc(ce,[["__scopeId","data-v-ed77abe8"]]);exports.Slicer=de;
|
package/dist/Slicer-D9ASV60L.js
DELETED
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, onBeforeUnmount as ee, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as te, renderSlot as le, createCommentVNode as C, unref as ae, Fragment as F, renderList as R, withDirectives as E, vModelText as P, toDisplayString as A, pushScopeId as ie, popScopeId as ne } from "vue";
|
|
2
|
-
import oe from "./BaseIcon-DCE3wRiG.js";
|
|
3
|
-
import { t as ue, u as re } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { c as se, R as V, Q as B, X as de } from "./index-B6Q1Fyk0.js";
|
|
5
|
-
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const O = (t) => (ie("data-v-ed77abe8"), t = t(), ne(), t), ce = {
|
|
7
|
-
"data-html2canvas-ignore": "",
|
|
8
|
-
style: { padding: "0 24px" },
|
|
9
|
-
class: "vue-data-ui-zoom"
|
|
10
|
-
}, ve = {
|
|
11
|
-
class: "vue-data-ui-slicer-labels",
|
|
12
|
-
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
13
|
-
}, he = {
|
|
14
|
-
key: 0,
|
|
15
|
-
style: { width: "100%", position: "relative" }
|
|
16
|
-
}, pe = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "minimap",
|
|
19
|
-
style: { width: "100%" }
|
|
20
|
-
}, fe = ["xmlns", "viewBox"], xe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */ i("stop", {
|
|
21
|
-
offset: "100%",
|
|
22
|
-
"stop-color": "transparent"
|
|
23
|
-
}, null, -1)), be = ["d", "stroke"], Se = ["x", "width", "height", "fill", "rx"], ke = ["d", "fill"], Ce = ["x", "width", "height", "rx", "fill"], we = ["x", "width", "height", "fill", "rx"], Ne = ["d", "fill"], $e = ["d", "stroke"], Me = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Ie = ["x1", "x2", "y2", "stroke"], ze = ["x", "height", "width", "onMouseenter"], Fe = /* @__PURE__ */ O(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), Re = ["min", "max"], Ee = ["min", "max"], Pe = {
|
|
24
|
-
__name: "Slicer",
|
|
25
|
-
props: {
|
|
26
|
-
background: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "#FFFFFF"
|
|
29
|
-
},
|
|
30
|
-
borderColor: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "#FFFFFF"
|
|
33
|
-
},
|
|
34
|
-
fontSize: {
|
|
35
|
-
type: Number,
|
|
36
|
-
default: 14
|
|
37
|
-
},
|
|
38
|
-
labelLeft: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
labelRight: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
textColor: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "#1A1A1A"
|
|
49
|
-
},
|
|
50
|
-
inputColor: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: "#1A1A1A"
|
|
53
|
-
},
|
|
54
|
-
max: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 0
|
|
57
|
-
},
|
|
58
|
-
min: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 0
|
|
61
|
-
},
|
|
62
|
-
selectColor: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: "#4A4A4A"
|
|
65
|
-
},
|
|
66
|
-
useResetSlot: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
},
|
|
70
|
-
valueStart: {
|
|
71
|
-
type: [Number, String],
|
|
72
|
-
default: 0
|
|
73
|
-
},
|
|
74
|
-
valueEnd: {
|
|
75
|
-
type: [Number, String],
|
|
76
|
-
default: 0
|
|
77
|
-
},
|
|
78
|
-
minimap: {
|
|
79
|
-
type: Array,
|
|
80
|
-
default: []
|
|
81
|
-
},
|
|
82
|
-
smoothMinimap: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !1
|
|
85
|
-
},
|
|
86
|
-
minimapSelectedColor: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: "#1f77b4"
|
|
89
|
-
},
|
|
90
|
-
minimapSelectionRadius: {
|
|
91
|
-
type: Number,
|
|
92
|
-
default: 12
|
|
93
|
-
},
|
|
94
|
-
minimapLineColor: {
|
|
95
|
-
type: String,
|
|
96
|
-
default: "#2D353C"
|
|
97
|
-
},
|
|
98
|
-
minimapSelectedColorOpacity: {
|
|
99
|
-
type: Number,
|
|
100
|
-
default: 0.2
|
|
101
|
-
},
|
|
102
|
-
minimapSelectedIndex: {
|
|
103
|
-
type: Number,
|
|
104
|
-
default: null
|
|
105
|
-
},
|
|
106
|
-
minimapIndicatorColor: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: "#2D353C"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
112
|
-
setup(t, { emit: x }) {
|
|
113
|
-
const e = t;
|
|
114
|
-
K((l) => ({
|
|
115
|
-
"724603fa": U.value,
|
|
116
|
-
"0a3b8c6e": g.value,
|
|
117
|
-
"31bae142": W.value,
|
|
118
|
-
"2b1e64c4": t.selectColor,
|
|
119
|
-
"7b29392c": T.value
|
|
120
|
-
}));
|
|
121
|
-
const u = f(e.min), r = f(e.max), y = d(() => !!e.minimap.length), w = f(se()), D = d(() => {
|
|
122
|
-
const l = e.max - e.min, n = (u.value - e.min) / l * 100, o = (r.value - e.min) / l * 100;
|
|
123
|
-
return {
|
|
124
|
-
left: `${n}%`,
|
|
125
|
-
width: `${o - n}%`,
|
|
126
|
-
background: e.selectColor
|
|
127
|
-
};
|
|
128
|
-
}), U = d(() => e.inputColor), T = d(() => e.background), W = d(() => `${e.selectColor}33`), g = d(() => e.borderColor), I = d(() => {
|
|
129
|
-
let l = [];
|
|
130
|
-
for (let n = 0; n < e.minimap.length; n += 1)
|
|
131
|
-
l.push(n);
|
|
132
|
-
return l;
|
|
133
|
-
});
|
|
134
|
-
function z() {
|
|
135
|
-
x("reset");
|
|
136
|
-
}
|
|
137
|
-
function X() {
|
|
138
|
-
Number(u.value) > Number(r.value) - 1 && (u.value = Number(r.value) - 1), x("update:start", Number(u.value));
|
|
139
|
-
}
|
|
140
|
-
function j() {
|
|
141
|
-
Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), x("update:end", Number(r.value));
|
|
142
|
-
}
|
|
143
|
-
L(
|
|
144
|
-
() => e.min,
|
|
145
|
-
(l) => {
|
|
146
|
-
Number(u.value) < Number(l) && (u.value = Number(l)), Number(r.value) < Number(l) && (r.value = Number(l));
|
|
147
|
-
}
|
|
148
|
-
), L(
|
|
149
|
-
() => e.max,
|
|
150
|
-
(l) => {
|
|
151
|
-
Number(u.value) > Number(l) && (u.value = Number(l)), Number(r.value) > Number(l) && (r.value = Number(l));
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
const N = f(null), a = f({
|
|
155
|
-
width: 1,
|
|
156
|
-
height: 1
|
|
157
|
-
}), k = f(null);
|
|
158
|
-
Y(() => {
|
|
159
|
-
if (y.value) {
|
|
160
|
-
const l = ue(() => {
|
|
161
|
-
const { width: n, height: o } = re({
|
|
162
|
-
chart: N.value
|
|
163
|
-
});
|
|
164
|
-
a.value.width = n, a.value.height = o - 47;
|
|
165
|
-
});
|
|
166
|
-
k.value = new ResizeObserver(l), k.value.observe(N.value);
|
|
167
|
-
}
|
|
168
|
-
}), ee(() => {
|
|
169
|
-
k.value && k.value.disconnect();
|
|
170
|
-
});
|
|
171
|
-
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), m = d(() => {
|
|
172
|
-
if (!e.minimap.length) return [];
|
|
173
|
-
const l = Math.max(...e.minimap), n = Math.min(...e.minimap) - 10, o = l - (n > 0 ? 0 : n), c = e.minimap.map((_, H) => {
|
|
174
|
-
const J = _ - n;
|
|
175
|
-
return {
|
|
176
|
-
x: a.value.width / e.minimap.length * H + s.value / 2,
|
|
177
|
-
y: a.value.height - J / o * (a.value.height * 0.9)
|
|
178
|
-
};
|
|
179
|
-
}), $ = e.smoothMinimap ? V(c) : B(c), M = [...c].slice(e.valueStart, e.valueEnd), Q = e.smoothMinimap ? V(M) : B(M);
|
|
180
|
-
return {
|
|
181
|
-
fullSet: $,
|
|
182
|
-
selectionSet: Q,
|
|
183
|
-
sliced: M,
|
|
184
|
-
firstPlot: c[e.valueStart],
|
|
185
|
-
lastPlot: c[e.valueEnd - 1]
|
|
186
|
-
};
|
|
187
|
-
}), p = d(() => ({
|
|
188
|
-
x: s.value * u.value + s.value / 2,
|
|
189
|
-
width: a.value.width * ((r.value - u.value) / e.max) - s.value
|
|
190
|
-
})), Z = d(() => ({
|
|
191
|
-
left: 0,
|
|
192
|
-
color: e.textColor,
|
|
193
|
-
fontSize: `${e.fontSize}px`,
|
|
194
|
-
top: y.value ? "28px" : "-28px",
|
|
195
|
-
pointerEvents: "none"
|
|
196
|
-
})), q = d(() => ({
|
|
197
|
-
right: 0,
|
|
198
|
-
color: e.textColor,
|
|
199
|
-
fontSize: `${e.fontSize}px`,
|
|
200
|
-
top: y.value ? "28px" : "-28px",
|
|
201
|
-
direction: "rtl",
|
|
202
|
-
pointerEvents: "none"
|
|
203
|
-
})), b = f(e.minimapSelectedIndex);
|
|
204
|
-
L(() => e.minimapSelectedIndex, (l) => {
|
|
205
|
-
b.value = l + e.valueStart;
|
|
206
|
-
}, { immediate: !0 });
|
|
207
|
-
function G(l) {
|
|
208
|
-
b.value = l, l >= e.valueStart && l < e.valueEnd && x("trapMouse", l - e.valueStart);
|
|
209
|
-
}
|
|
210
|
-
return (l, n) => (v(), h("div", ce, [
|
|
211
|
-
i("div", ve, [
|
|
212
|
-
t.valueStart > 0 || t.valueEnd < t.max ? (v(), h("div", he, [
|
|
213
|
-
t.useResetSlot ? le(l.$slots, "reset-action", {
|
|
214
|
-
key: 1,
|
|
215
|
-
reset: z
|
|
216
|
-
}, void 0, !0) : (v(), h("button", {
|
|
217
|
-
key: 0,
|
|
218
|
-
"data-cy-reset": "",
|
|
219
|
-
tabindex: "0",
|
|
220
|
-
role: "button",
|
|
221
|
-
class: "vue-data-ui-refresh-button",
|
|
222
|
-
style: S({
|
|
223
|
-
top: y.value ? "36px" : "-16px",
|
|
224
|
-
pointerEvents: "all !important"
|
|
225
|
-
}),
|
|
226
|
-
onClick: z
|
|
227
|
-
}, [
|
|
228
|
-
te(oe, {
|
|
229
|
-
name: "refresh",
|
|
230
|
-
stroke: t.textColor
|
|
231
|
-
}, null, 8, ["stroke"])
|
|
232
|
-
], 4))
|
|
233
|
-
])) : C("", !0)
|
|
234
|
-
]),
|
|
235
|
-
i("div", {
|
|
236
|
-
class: "double-range-slider",
|
|
237
|
-
ref_key: "minimapWrapper",
|
|
238
|
-
ref: N,
|
|
239
|
-
style: { "z-index": "0" }
|
|
240
|
-
}, [
|
|
241
|
-
y.value ? (v(), h("div", pe, [
|
|
242
|
-
(v(), h("svg", {
|
|
243
|
-
xmlns: ae(de),
|
|
244
|
-
viewBox: `0 0 ${a.value.width < 0 ? 0 : a.value.width} ${a.value.height < 0 ? 0 : a.value.height}`
|
|
245
|
-
}, [
|
|
246
|
-
i("defs", null, [
|
|
247
|
-
i("linearGradient", {
|
|
248
|
-
id: w.value,
|
|
249
|
-
x1: "0%",
|
|
250
|
-
y1: "0%",
|
|
251
|
-
x2: "0%",
|
|
252
|
-
y2: "100%"
|
|
253
|
-
}, [
|
|
254
|
-
i("stop", {
|
|
255
|
-
offset: "0%",
|
|
256
|
-
"stop-color": `${t.minimapLineColor}50`
|
|
257
|
-
}, null, 8, ye),
|
|
258
|
-
ge
|
|
259
|
-
], 8, xe)
|
|
260
|
-
]),
|
|
261
|
-
i("path", {
|
|
262
|
-
d: `M${m.value.fullSet}`,
|
|
263
|
-
stroke: `${t.minimapLineColor}`,
|
|
264
|
-
fill: "none",
|
|
265
|
-
"stroke-width": "1",
|
|
266
|
-
"stroke-linecap": "round",
|
|
267
|
-
"stroke-linejoin": "round",
|
|
268
|
-
style: { opacity: "1" }
|
|
269
|
-
}, null, 8, be),
|
|
270
|
-
i("rect", {
|
|
271
|
-
x: p.value.x,
|
|
272
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
273
|
-
height: Math.max(a.value.height, 0),
|
|
274
|
-
y: 0,
|
|
275
|
-
fill: g.value,
|
|
276
|
-
rx: t.minimapSelectionRadius,
|
|
277
|
-
stroke: "none"
|
|
278
|
-
}, null, 8, Se),
|
|
279
|
-
i("path", {
|
|
280
|
-
d: `M${s.value / 2},${Math.max(a.value.height, 0)} ${m.value.fullSet} L${a.value.width - s.value / 2},${Math.max(a.value.height, 0)}Z`,
|
|
281
|
-
fill: `url(#${w.value})`,
|
|
282
|
-
stroke: "none",
|
|
283
|
-
style: { opacity: "1" }
|
|
284
|
-
}, null, 8, ke),
|
|
285
|
-
i("rect", {
|
|
286
|
-
x: p.value.x,
|
|
287
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
288
|
-
height: Math.max(a.value.height, 0),
|
|
289
|
-
y: 0,
|
|
290
|
-
rx: t.minimapSelectionRadius,
|
|
291
|
-
fill: g.value
|
|
292
|
-
}, null, 8, Ce),
|
|
293
|
-
i("rect", {
|
|
294
|
-
x: p.value.x,
|
|
295
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
296
|
-
height: Math.max(a.value.height, 0),
|
|
297
|
-
y: 0,
|
|
298
|
-
fill: t.minimapSelectedColor,
|
|
299
|
-
rx: t.minimapSelectionRadius,
|
|
300
|
-
style: S({
|
|
301
|
-
opacity: t.minimapSelectedColorOpacity
|
|
302
|
-
})
|
|
303
|
-
}, null, 12, we),
|
|
304
|
-
i("path", {
|
|
305
|
-
d: `M${m.value.sliced[0].x},${Math.max(a.value.height, 0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(a.value.height, 0)}Z`,
|
|
306
|
-
fill: `url(#${w.value})`,
|
|
307
|
-
stroke: "none",
|
|
308
|
-
style: { opacity: "1" }
|
|
309
|
-
}, null, 8, Ne),
|
|
310
|
-
i("path", {
|
|
311
|
-
d: `M ${m.value.selectionSet}`,
|
|
312
|
-
stroke: `${t.minimapLineColor}`,
|
|
313
|
-
fill: "transparent",
|
|
314
|
-
"stroke-width": "2",
|
|
315
|
-
"stroke-linecap": "round",
|
|
316
|
-
"stroke-linejoin": "round"
|
|
317
|
-
}, null, 8, $e),
|
|
318
|
-
i("circle", {
|
|
319
|
-
cx: m.value.firstPlot.x,
|
|
320
|
-
cy: m.value.firstPlot.y,
|
|
321
|
-
"stroke-width": "0.5",
|
|
322
|
-
stroke: g.value,
|
|
323
|
-
r: "3",
|
|
324
|
-
fill: t.minimapLineColor
|
|
325
|
-
}, null, 8, Me),
|
|
326
|
-
i("circle", {
|
|
327
|
-
cx: m.value.lastPlot.x,
|
|
328
|
-
cy: m.value.lastPlot.y,
|
|
329
|
-
"stroke-width": "0.5",
|
|
330
|
-
stroke: g.value,
|
|
331
|
-
r: "3",
|
|
332
|
-
fill: t.minimapLineColor
|
|
333
|
-
}, null, 8, Le),
|
|
334
|
-
b.value !== null ? (v(!0), h(F, { key: 0 }, R(I.value, (o, c) => (v(), h("g", null, [
|
|
335
|
-
b.value === o && o >= t.valueStart && o < t.valueEnd ? (v(), h("line", {
|
|
336
|
-
key: 0,
|
|
337
|
-
x1: s.value * c + s.value / 2,
|
|
338
|
-
x2: s.value * c + s.value / 2,
|
|
339
|
-
y1: 0,
|
|
340
|
-
y2: Math.max(a.value.height, 0),
|
|
341
|
-
stroke: t.minimapIndicatorColor,
|
|
342
|
-
"stroke-linecap": "round",
|
|
343
|
-
"stroke-dasharray": "2",
|
|
344
|
-
"stroke-width": "1"
|
|
345
|
-
}, null, 8, Ie)) : C("", !0)
|
|
346
|
-
]))), 256)) : C("", !0),
|
|
347
|
-
(v(!0), h(F, null, R(I.value, (o, c) => (v(), h("rect", {
|
|
348
|
-
x: s.value * c,
|
|
349
|
-
y: 0,
|
|
350
|
-
height: Math.max(a.value.height, 0),
|
|
351
|
-
width: s.value < 0 ? 0 : s.value,
|
|
352
|
-
fill: "transparent",
|
|
353
|
-
style: { "pointer-events": "all !important" },
|
|
354
|
-
onMouseenter: ($) => G(o),
|
|
355
|
-
onMouseleave: n[0] || (n[0] = ($) => {
|
|
356
|
-
b.value = null, x("trapMouse", null);
|
|
357
|
-
})
|
|
358
|
-
}, null, 40, ze))), 256))
|
|
359
|
-
], 8, fe))
|
|
360
|
-
])) : C("", !0),
|
|
361
|
-
Fe,
|
|
362
|
-
i("div", {
|
|
363
|
-
class: "range-highlight",
|
|
364
|
-
style: S(D.value)
|
|
365
|
-
}, null, 4),
|
|
366
|
-
E(i("input", {
|
|
367
|
-
type: "range",
|
|
368
|
-
class: "range-left",
|
|
369
|
-
min: t.min,
|
|
370
|
-
max: t.max,
|
|
371
|
-
"onUpdate:modelValue": n[1] || (n[1] = (o) => u.value = o),
|
|
372
|
-
onInput: X
|
|
373
|
-
}, null, 40, Re), [
|
|
374
|
-
[P, u.value]
|
|
375
|
-
]),
|
|
376
|
-
i("div", {
|
|
377
|
-
class: "thumb-label thumb-label-left",
|
|
378
|
-
style: S(Z.value)
|
|
379
|
-
}, A(t.labelLeft), 5),
|
|
380
|
-
E(i("input", {
|
|
381
|
-
type: "range",
|
|
382
|
-
class: "range-right",
|
|
383
|
-
min: t.min,
|
|
384
|
-
max: t.max,
|
|
385
|
-
"onUpdate:modelValue": n[2] || (n[2] = (o) => r.value = o),
|
|
386
|
-
onInput: j
|
|
387
|
-
}, null, 40, Ee), [
|
|
388
|
-
[P, r.value]
|
|
389
|
-
]),
|
|
390
|
-
i("div", {
|
|
391
|
-
class: "thumb-label thumb-label-right",
|
|
392
|
-
style: S(q.value)
|
|
393
|
-
}, A(t.labelRight), 5)
|
|
394
|
-
], 512)
|
|
395
|
-
]));
|
|
396
|
-
}
|
|
397
|
-
}, Ue = /* @__PURE__ */ me(Pe, [["__scopeId", "data-v-ed77abe8"]]);
|
|
398
|
-
export {
|
|
399
|
-
Ue as S
|
|
400
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),p=require("./index-B5Ugkauv.cjs");function y({tooltip:e,chart:r,clientPosition:t,positionPreference:l="center",defaultOffsetY:a=24,blockShiftY:d=!1}){const n=o.ref(0),s=o.ref(a);if(e&&r){const{width:u,height:c}=e.getBoundingClientRect(),{right:i,left:f,bottom:v}=r.getBoundingClientRect();l==="center"&&(t.x+u/2>i?n.value=-u+(i-t.x):t.x-u/2<f?n.value=-u+(u-(t.x-f)):n.value=-u/2),l==="right"&&(t.x+u>i?n.value=-u+(i-t.x):n.value=0),l==="left"&&(t.x<f+u?n.value=-u+(u-(t.x-f)):n.value=-u),t.y+c>v&&!d&&(s.value=-c-a)}return{top:t.y+s.value,left:t.x+n.value}}function b(e,r,t){o.onMounted(()=>e.addEventListener(r,t)),o.onUnmounted(()=>e.removeEventListener(r,t))}function m(){const e=o.ref(0),r=o.ref(0);return b(window,"mousemove",t=>{e.value=t.clientX,r.value=t.clientY}),{x:e,y:r}}const 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}},setup(e){const r=e,t=o.ref(null),l=o.ref(m()),a=o.computed(()=>y({tooltip:t.value,chart:r.parent,clientPosition:l.value,positionPreference:r.position,defaultOffsetY:r.offsetY,blockShiftY:r.blockShiftY})),d=o.computed(()=>p.setOpacity(r.backgroundColor,r.backgroundOpacity));return(n,s)=>e.show?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"tooltip",ref:t,class:o.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:o.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${d.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};`)},[o.renderSlot(n.$slots,"tooltip-before"),o.renderSlot(n.$slots,"default"),o.createElementVNode("div",{innerHTML:e.content},null,8,g),o.renderSlot(n.$slots,"tooltip-after")],6)):o.createCommentVNode("",!0)}};exports._sfc_main=x;exports.useMouse=m;
|