vue-data-ui 2.4.62 → 2.4.64
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-E7FjAwN-.js → Arrow-CRM8J83L.js} +1 -1
- package/dist/{Arrow-C0lmBG2-.cjs → Arrow-DSkIkWAr.cjs} +1 -1
- package/dist/{BaseIcon-DRLxlrSt.js → BaseIcon-Axko0XAg.js} +1 -1
- package/dist/{BaseIcon-DK3C9OCq.cjs → BaseIcon-D13bKBUN.cjs} +1 -1
- package/dist/{DataTable-BANy6PnS.js → DataTable-B2hVpPSW.js} +2 -2
- package/dist/{DataTable-BLSMgcEN.cjs → DataTable-DnrSae6c.cjs} +1 -1
- package/dist/{Legend-pWq2tKCl.js → Legend-CzY3Yhr8.js} +1 -1
- package/dist/{Legend-CAgxjrra.cjs → Legend-DIfEhYtz.cjs} +1 -1
- package/dist/{PackageVersion-1NslmM8M.js → PackageVersion-B684aQUP.js} +1 -1
- package/dist/{PackageVersion-D3dK8oA3.cjs → PackageVersion-FzHnQSp-.cjs} +1 -1
- package/dist/{PenAndPaper-CYFIR9j7.cjs → PenAndPaper-C6I0ckZw.cjs} +1 -1
- package/dist/{PenAndPaper-CdXSbSZY.js → PenAndPaper-mC0kh-S8.js} +3 -3
- package/dist/{Shape-BtKtwV0v.js → Shape-DbnYh6z4.js} +1 -1
- package/dist/{Shape-DPztPWor.cjs → Shape-eJUVLesM.cjs} +1 -1
- package/dist/Slicer-BBolqweG.js +484 -0
- package/dist/Slicer-C9bF7-B-.cjs +1 -0
- package/dist/{Title-DPefeOY7.js → Title-DqZErnpZ.js} +1 -1
- package/dist/{Title-BhL7TMa_.cjs → Title-DuMgnso9.cjs} +1 -1
- package/dist/{Tooltip-C5qSWrXO.cjs → Tooltip-Cz3eQmMV.cjs} +1 -1
- package/dist/{Tooltip-C72f83eg.js → Tooltip-DddRc8qD.js} +1 -1
- package/dist/index-D-xYtUSL.cjs +9 -0
- package/dist/{index-B-k71vpj.js → index-DjTPIx3R.js} +7 -3
- 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-CxwPeWts.cjs → useNestedProp-BN-VfUfj.cjs} +1 -1
- package/dist/{useNestedProp-BeXDUo1v.js → useNestedProp-BNmCbG1v.js} +1 -1
- package/dist/{usePrinter-BK-n-gRN.js → usePrinter-BFF1xn1s.js} +1 -1
- package/dist/{usePrinter-CMvfTteH.cjs → usePrinter-pT-a_sFr.cjs} +1 -1
- package/dist/{vue-data-ui-fOomZU3e.js → vue-data-ui-CPMtS74M.js} +60 -60
- package/dist/{vue-data-ui-CG-HnqKG.cjs → vue-data-ui-rWaUsffe.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C95HBkYv.js → vue-ui-3d-bar-Cpx0rTUr.js} +9 -9
- package/dist/{vue-ui-3d-bar-DLrJ9TM8.cjs → vue-ui-3d-bar-CxcO1rW_.cjs} +1 -1
- package/dist/{vue-ui-accordion-IZgkGqto.cjs → vue-ui-accordion-B1MkyNta.cjs} +1 -1
- package/dist/{vue-ui-accordion-DWAg7tbw.js → vue-ui-accordion-CDTXGeL0.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BSKXGW3a.cjs → vue-ui-age-pyramid-CEvYSZnY.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BxBU5CCr.js → vue-ui-age-pyramid-CSwlc2bd.js} +10 -10
- package/dist/{vue-ui-annotator-GSRzlJ-N.cjs → vue-ui-annotator-BUoz1Y87.cjs} +1 -1
- package/dist/{vue-ui-annotator-DupDeVZx.js → vue-ui-annotator-D5dS0BTP.js} +1 -1
- package/dist/{vue-ui-bullet-BD0MrIvY.cjs → vue-ui-bullet-Bcx-V2GQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-Dgr-mCAc.js → vue-ui-bullet-RDyK79l0.js} +8 -8
- package/dist/{vue-ui-candlestick-DpcBRWha.cjs → vue-ui-candlestick-CkjNRVDz.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DYupl4j5.js → vue-ui-candlestick-s-Z42Lns.js} +75 -73
- package/dist/{vue-ui-carousel-table-CNS6ZzTc.cjs → vue-ui-carousel-table-CoLBbF34.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DNwWV8de.js → vue-ui-carousel-table-DJNIAgAU.js} +4 -4
- package/dist/{vue-ui-chestnut-AVSIntNp.cjs → vue-ui-chestnut-P1hAffNt.cjs} +1 -1
- package/dist/{vue-ui-chestnut-OaTraMv4.js → vue-ui-chestnut-_90914ye.js} +8 -8
- package/dist/{vue-ui-cursor-CJJ78nNY.cjs → vue-ui-cursor-BoGnTfem.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dlo68AuK.js → vue-ui-cursor-Doo6HM0B.js} +2 -2
- package/dist/{vue-ui-dashboard-CzF8PeC6.js → vue-ui-dashboard-BZKKb8cZ.js} +43 -43
- package/dist/vue-ui-dashboard-mC_BLuIN.cjs +1 -0
- package/dist/{vue-ui-digits-BSE3CEuv.cjs → vue-ui-digits-DFwg7Et3.cjs} +1 -1
- package/dist/{vue-ui-digits-BHkW0Bi1.js → vue-ui-digits-Z8AprQhX.js} +2 -2
- package/dist/{vue-ui-donut-CeestESD.js → vue-ui-donut-C6i_KVvc.js} +11 -11
- package/dist/{vue-ui-donut-evolution-DGl_J0JB.js → vue-ui-donut-evolution-CK_0JI6T.js} +127 -125
- package/dist/{vue-ui-donut-evolution-BDwV-Ncf.cjs → vue-ui-donut-evolution-D-6gM9JV.cjs} +1 -1
- package/dist/{vue-ui-donut-DxH9EkK_.cjs → vue-ui-donut-uH8SS5Ms.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DlELQHtq.js → vue-ui-dumbbell-C4y9e7Gz.js} +10 -10
- package/dist/{vue-ui-dumbbell-ChipHJ9p.cjs → vue-ui-dumbbell-DS_3Z5cT.cjs} +1 -1
- package/dist/{vue-ui-flow-BowAWyMA.cjs → vue-ui-flow-C2sVVaok.cjs} +1 -1
- package/dist/{vue-ui-flow-BZIiidbF.js → vue-ui-flow-XrJvcKqr.js} +9 -9
- package/dist/{vue-ui-funnel-Bc7BrgHa.js → vue-ui-funnel-CHhVPjnM.js} +9 -9
- package/dist/{vue-ui-funnel-DLzHnLhb.cjs → vue-ui-funnel-DxhsOEbU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-t5R2Vz1t.js → vue-ui-galaxy-Bd8p21nC.js} +11 -11
- package/dist/{vue-ui-galaxy-DesiP-Ev.cjs → vue-ui-galaxy-CRsan4r5.cjs} +1 -1
- package/dist/{vue-ui-gauge-CYx4jt71.js → vue-ui-gauge-B-nOtSwD.js} +7 -7
- package/dist/{vue-ui-gauge-_-1DxTe0.cjs → vue-ui-gauge-D0Mk9_aI.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DeO_vFhP.cjs → vue-ui-gizmo-C3GRBcSW.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DVcY_OyD.js → vue-ui-gizmo-tQNlhr2p.js} +3 -3
- package/dist/{vue-ui-heatmap-wLcx9ex3.js → vue-ui-heatmap-6MpvCBmt.js} +10 -10
- package/dist/{vue-ui-heatmap-CWqJiKrJ.cjs → vue-ui-heatmap-DwalrFVm.cjs} +1 -1
- package/dist/{vue-ui-history-plot-FJnUgshF.cjs → vue-ui-history-plot-FgapeA0e.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D7VjQwLk.js → vue-ui-history-plot-Hk-UrZtS.js} +11 -11
- package/dist/{vue-ui-kpi-DcGp2H4d.cjs → vue-ui-kpi-CKZQsJnV.cjs} +1 -1
- package/dist/{vue-ui-kpi-C4tl3luu.js → vue-ui-kpi-DrCH9EuP.js} +3 -3
- package/dist/{vue-ui-mini-loader-DZ-Rxr07.js → vue-ui-mini-loader-BLvcc-fM.js} +2 -2
- package/dist/{vue-ui-mini-loader-B41vyg7t.cjs → vue-ui-mini-loader-BSKXq7CA.cjs} +1 -1
- package/dist/{vue-ui-molecule-51NSY4Z8.js → vue-ui-molecule-Ch4_SJxL.js} +11 -11
- package/dist/{vue-ui-molecule-CUiAEOC9.cjs → vue-ui-molecule-D0IHSilQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DkXzwU8x.cjs → vue-ui-mood-radar-DNPseOpJ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DG3MA8BZ.js → vue-ui-mood-radar-Gv0k1T46.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Be9FYX8F.js → vue-ui-nested-donuts-DY8Hig_-.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Cerc7ILW.cjs → vue-ui-nested-donuts-QOvJJc30.cjs} +1 -1
- package/dist/{vue-ui-onion-BpIopgzq.cjs → vue-ui-onion-Ca0Tcbu3.cjs} +1 -1
- package/dist/{vue-ui-onion-BhNd2hbK.js → vue-ui-onion-Ct_1j1fA.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-D1z9zPyF.cjs → vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CSll-Vtd.js → vue-ui-parallel-coordinate-plot-DkYcNRQk.js} +12 -12
- package/dist/{vue-ui-quadrant-303aQCVj.cjs → vue-ui-quadrant-BJuoZ_lv.cjs} +1 -1
- package/dist/{vue-ui-quadrant-mw0cCB8b.js → vue-ui-quadrant-DwAKm2Yj.js} +12 -12
- package/dist/{vue-ui-quick-chart-DJfdl_Oc.cjs → vue-ui-quick-chart-5ga8waQS.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-6sXw4LvX.js → vue-ui-quick-chart-D5V73GXO.js} +214 -212
- package/dist/{vue-ui-radar-B5c80iuj.cjs → vue-ui-radar-C3kzmi1G.cjs} +1 -1
- package/dist/{vue-ui-radar-DT2PXZ3W.js → vue-ui-radar-CmE4wCWD.js} +12 -12
- package/dist/{vue-ui-rating-RKyIWluu.cjs → vue-ui-rating-CE7LGiFS.cjs} +1 -1
- package/dist/{vue-ui-rating-x4INc3T_.js → vue-ui-rating-SAph_BKh.js} +2 -2
- package/dist/{vue-ui-relation-circle-OTUjuy7-.js → vue-ui-relation-circle-D1JdWshk.js} +7 -7
- package/dist/{vue-ui-relation-circle-T_cM-vkm.cjs → vue-ui-relation-circle-dQQw_mgd.cjs} +1 -1
- package/dist/{vue-ui-rings-B1c_TNA0.js → vue-ui-rings-C-7vrgjN.js} +11 -11
- package/dist/{vue-ui-rings-CEdur365.cjs → vue-ui-rings-kFhuaBvY.cjs} +1 -1
- package/dist/{vue-ui-scatter-BM6iF4yl.cjs → vue-ui-scatter-BrOg2xiN.cjs} +1 -1
- package/dist/{vue-ui-scatter-CjI7xkJm.js → vue-ui-scatter-DE4X0DQI.js} +12 -12
- package/dist/{vue-ui-screenshot-wadHKtkZ.cjs → vue-ui-screenshot-BXq82cfA.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DoMe-dMI.js → vue-ui-screenshot-CyWEEkg_.js} +1 -1
- package/dist/{vue-ui-skeleton-BgEjqaz9.cjs → vue-ui-skeleton-D3zg7qd2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DSXzxNMC.js → vue-ui-skeleton-Dt9cA-wa.js} +3 -3
- package/dist/{vue-ui-smiley-D5KYgUQi.cjs → vue-ui-smiley-FUNmIUpN.cjs} +1 -1
- package/dist/{vue-ui-smiley-DgfHBeGm.js → vue-ui-smiley-uRlPgN-A.js} +2 -2
- package/dist/{vue-ui-spark-trend-CEU0TB9l.js → vue-ui-spark-trend-5KFnHsjs.js} +5 -5
- package/dist/{vue-ui-spark-trend-DhPXSFpU.cjs → vue-ui-spark-trend-DYXJMJLz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-8vDQ9r97.cjs → vue-ui-sparkbar-BUg0DhGI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C8TB_YCv.js → vue-ui-sparkbar-D-Yk9z4E.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DCXX3ZDS.js → vue-ui-sparkgauge-DVLZofTg.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DnYyNQQn.cjs → vue-ui-sparkgauge-DvDPPyau.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CEmGA3kW.js → vue-ui-sparkhistogram-Dqgl_5RN.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BQGAFZWZ.cjs → vue-ui-sparkhistogram-GMZxK2oC.cjs} +1 -1
- package/dist/vue-ui-sparkline-C96IUWwW.cjs +1 -0
- package/dist/{vue-ui-sparkline-BXvaVl-R.js → vue-ui-sparkline-CPEHgvq0.js} +9 -9
- package/dist/{vue-ui-sparkstackbar-DbtbyF5W.cjs → vue-ui-sparkstackbar-BroOR6B-.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CI0uvrlh.js → vue-ui-sparkstackbar-DCceVnjJ.js} +5 -5
- package/dist/{vue-ui-stackbar-CYJLXaU0.cjs → vue-ui-stackbar-Bv7RiRae.cjs} +2 -2
- package/dist/{vue-ui-stackbar-D-_Fp5r4.js → vue-ui-stackbar-KznnSCkj.js} +81 -79
- package/dist/{vue-ui-strip-plot-DUBjl9cR.cjs → vue-ui-strip-plot-BYO72loZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-pJsObuy6.js → vue-ui-strip-plot-CJxPAY9n.js} +11 -11
- package/dist/{vue-ui-table-CbvpwN05.cjs → vue-ui-table-BTuCiJb7.cjs} +1 -1
- package/dist/{vue-ui-table-s7IHsGac.js → vue-ui-table-DKoRX7gX.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BAlngE3L.js → vue-ui-table-heatmap-4RZ4Bo12.js} +4 -4
- package/dist/{vue-ui-table-heatmap-sAuA3lIc.cjs → vue-ui-table-heatmap-L3Pg7wC0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ClrZ-BC3.js → vue-ui-table-sparkline-CVWPCRfz.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CjaF-Zjq.cjs → vue-ui-table-sparkline-GaHw2cTh.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C_sqnPkS.js → vue-ui-thermometer-BFqURwxY.js} +7 -7
- package/dist/{vue-ui-thermometer-fcy4HsN6.cjs → vue-ui-thermometer-VC967j2q.cjs} +1 -1
- package/dist/{vue-ui-timer-B0lLVb4J.cjs → vue-ui-timer-Bou1Zg22.cjs} +1 -1
- package/dist/{vue-ui-timer-DeRjcfir.js → vue-ui-timer-mPQTAvi1.js} +5 -5
- package/dist/{vue-ui-tiremarks-CBnEObhg.cjs → vue-ui-tiremarks-ClzgPlHg.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DCOJWvBx.js → vue-ui-tiremarks-DyEXFKpK.js} +7 -7
- package/dist/{vue-ui-treemap-SPe7NLHg.cjs → vue-ui-treemap-DEUSAGw0.cjs} +1 -1
- package/dist/{vue-ui-treemap-UU9kd93i.js → vue-ui-treemap-pCrT4KlF.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DtPjSOTd.cjs → vue-ui-vertical-bar-DxkQK0tN.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Do1beV1x.js → vue-ui-vertical-bar-QF9epdei.js} +11 -11
- package/dist/{vue-ui-waffle-CCWlLaex.cjs → vue-ui-waffle-DjcwBxNh.cjs} +1 -1
- package/dist/{vue-ui-waffle-B1XP-Qon.js → vue-ui-waffle-DkHP1plA.js} +11 -11
- package/dist/{vue-ui-wheel-D6IUmaVZ.js → vue-ui-wheel-L8vxpKcv.js} +7 -7
- package/dist/{vue-ui-wheel-BHVTUvG3.cjs → vue-ui-wheel-Y2Sny-6a.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BvjWoqnE.cjs → vue-ui-word-cloud-B9UJmesc.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-AubuQjfw.js → vue-ui-word-cloud-DIBB7HIj.js} +10 -10
- package/dist/{vue-ui-xy-CTLJncUe.cjs → vue-ui-xy-DwidR-Vl.cjs} +3 -3
- package/dist/{vue-ui-xy-BMJpPJeS.js → vue-ui-xy-QmsiPNcv.js} +35 -33
- package/dist/{vue-ui-xy-canvas-De-MHu0Y.cjs → vue-ui-xy-canvas-2aqG9yv5.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DHU2wBAP.js → vue-ui-xy-canvas-CeKH8VIR.js} +227 -225
- package/package.json +1 -1
- package/dist/Slicer-BggxvZRw.cjs +0 -1
- package/dist/Slicer-p4IqkHkJ.js +0 -423
- package/dist/index-CC7tVh7F.cjs +0 -9
- package/dist/vue-ui-dashboard-fYhjRzSY.cjs +0 -1
- package/dist/vue-ui-sparkline-HQaxAzTw.cjs +0 -1
package/package.json
CHANGED
package/dist/Slicer-BggxvZRw.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),Z=require("./BaseIcon-DK3C9OCq.cjs"),V=require("./useResponsive-BJ7DTGpm.cjs"),h=require("./index-CC7tVh7F.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B=a=>(e.pushScopeId("data-v-cf67df9a"),a=a(),e.popScopeId(),a),H={"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom"},J={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},K={key:0,style:{width:"100%",position:"relative"}},Q={key:0,class:"minimap",style:{width:"100%"}},Y=["xmlns","viewBox"],ee=["id"],te=["stop-color"],le=B(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),ae=["d","stroke"],ne=["x","width","height","fill","rx"],oe=["d","fill"],ie=["x","width","height","rx","fill"],re=["x","width","height","fill","rx"],ue=["d","fill"],se=["d","stroke"],ce=["cx","cy","stroke","fill"],de=["cx","cy","stroke","fill"],me=["x1","x2","y2","stroke"],ve=["x","height","width","onMouseenter"],he=B(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),pe=["min","max"],fe=["min","max"],xe={__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}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{expose:$,emit:v}){const t=a;e.useCssVars(l=>({"3d3a2c02":z.value,79587273:f.value,"72fa1da4":F.value,"598db3a3":a.selectColor,b4acd69e:L.value}));const i=e.ref(t.min),r=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(h.createUid()),M=e.computed(()=>t.refreshEndPoint===null?t.max:t.refreshEndPoint),P=e.computed(()=>{const l=t.max-t.min,o=(i.value-t.min)/l*100,u=(r.value-t.min)/l*100;return{left:`${o}%`,width:`${u-o}%`,background:t.selectColor}}),z=e.computed(()=>t.inputColor),L=e.computed(()=>t.background),F=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),C=e.computed(()=>{let l=[];for(let o=0;o<t.minimap.length;o+=1)l.push(o);return l});function w(){v("reset")}function I(){Number(i.value)>Number(r.value)-1&&(i.value=Number(r.value)-1),v("update:start",Number(i.value))}function R(){Number(r.value)<Number(i.value)+1&&(r.value=Number(i.value)+1),v("update:end",Number(r.value))}e.watch(()=>t.min,l=>{Number(i.value)<Number(l)&&(i.value=Number(l)),Number(r.value)<Number(l)&&(r.value=Number(l))}),e.watch(()=>t.max,l=>{Number(i.value)>Number(l)&&(i.value=Number(l)),Number(r.value)>Number(l)&&(r.value=Number(l))});const S=e.ref(null),n=e.ref({width:1,height:1}),y=e.ref(null);e.onMounted(()=>{if(p.value){const l=V.throttle(()=>{const{width:o,height:u}=V.useResponsive({chart:S.value});n.value.width=o,n.value.height=u-47});y.value=new ResizeObserver(l),y.value.observe(S.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 l=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,u=l-(o>0?0:o),d=t.minimap.map((W,j)=>{const X=W-o;return{x:n.value.width/t.minimap.length*j+s.value/2,y:n.value.height-X/u*(n.value.height*.9)}}),N=t.smoothMinimap?h.createSmoothPath(d):h.createStraightPath(d),E=[...d].slice(t.valueStart,t.valueEnd),_=t.smoothMinimap?h.createSmoothPath(E):h.createStraightPath(E);return{fullSet:N,selectionSet:_,sliced:E,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*i.value+s.value/2,width:n.value.width*((r.value-i.value)/t.max)-s.value})),A=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),q=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,l=>{x.value=l+t.valueStart},{immediate:!0});function D(l){x.value=l,l>=t.valueStart&&l<t.valueEnd&&v("trapMouse",l-t.valueStart)}const O=e.ref(0),b=e.ref(null),k=e.ref(null);function T(l){i.value=l,b.value&&(b.value.value=l),v("update:start",Number(i.value))}function U(l){r.value=l,k.value&&(k.value.value=l),v("update:end",Number(r.value))}return $({setStartValue:T,setEndValue:U}),(l,o)=>(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",J,[a.valueStart!==a.refreshStartPoint||a.valueEnd!==M.value?(e.openBlock(),e.createElementBlock("div",K,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:w},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:w},[e.createVNode(Z.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:S,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",Q,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(h.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":`${a.minimapLineColor}50`},null,8,te),le],8,ee)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,ae),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:a.minimapSelectionRadius,stroke:"none"},null,8,ne),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,oe),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:a.minimapSelectionRadius,fill:f.value},null,8,ie),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:a.minimapSelectedColor,rx:a.minimapSelectionRadius,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,re),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,ue),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,se),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ce),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,de),x.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(C.value,(u,d)=>(e.openBlock(),e.createElementBlock("g",null,[x.value===u&&u>=a.valueStart&&u<a.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:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,me)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,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:N=>D(u),onMouseleave:o[0]||(o[0]=N=>{x.value=null,v("trapMouse",null)})},null,40,ve))),256))],8,Y))])):e.createCommentVNode("",!0),he,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(P.value)},null,4),e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:b,key:`range-min${O.value}`,type:"range",class:"range-left",min:a.min,max:a.max,"onUpdate:modelValue":o[1]||(o[1]=u=>i.value=u),onInput:I},null,40,pe)),[[e.vModelText,i.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(A.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{ref_key:"rangeEnd",ref:k,type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":o[2]||(o[2]=u=>r.value=u),onInput:R},null,40,fe),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(q.value)},e.toDisplayString(a.labelRight),5)],512)]))}},ye=G._export_sfc(xe,[["__scopeId","data-v-cf67df9a"]]);exports.Slicer=ye;
|
package/dist/Slicer-p4IqkHkJ.js
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { useCssVars as ie, ref as f, computed as d, watch as L, onMounted as oe, onBeforeUnmount as ue, openBlock as m, createElementBlock as v, createElementVNode as n, normalizeStyle as S, createVNode as re, renderSlot as se, createCommentVNode as N, unref as de, Fragment as F, renderList as R, withDirectives as V, vModelText as A, toDisplayString as B, pushScopeId as me, popScopeId as ve } from "vue";
|
|
2
|
-
import ce from "./BaseIcon-DRLxlrSt.js";
|
|
3
|
-
import { t as he, u as fe } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { c as pe, R as O, Q as D, X as xe } from "./index-B-k71vpj.js";
|
|
5
|
-
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const U = (l) => (me("data-v-cf67df9a"), l = l(), ve(), l), ge = {
|
|
7
|
-
"data-html2canvas-ignore": "",
|
|
8
|
-
style: { padding: "0 24px" },
|
|
9
|
-
class: "vue-data-ui-zoom"
|
|
10
|
-
}, be = {
|
|
11
|
-
class: "vue-data-ui-slicer-labels",
|
|
12
|
-
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
13
|
-
}, Se = {
|
|
14
|
-
key: 0,
|
|
15
|
-
style: { width: "100%", position: "relative" }
|
|
16
|
-
}, ke = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "minimap",
|
|
19
|
-
style: { width: "100%" }
|
|
20
|
-
}, Ne = ["xmlns", "viewBox"], Ce = ["id"], we = ["stop-color"], $e = /* @__PURE__ */ U(() => /* @__PURE__ */ n("stop", {
|
|
21
|
-
offset: "100%",
|
|
22
|
-
"stop-color": "transparent"
|
|
23
|
-
}, null, -1)), Me = ["d", "stroke"], Ee = ["x", "width", "height", "fill", "rx"], Pe = ["d", "fill"], Le = ["x", "width", "height", "rx", "fill"], Ie = ["x", "width", "height", "fill", "rx"], ze = ["d", "fill"], Fe = ["d", "stroke"], Re = ["cx", "cy", "stroke", "fill"], Ve = ["cx", "cy", "stroke", "fill"], Ae = ["x1", "x2", "y2", "stroke"], Be = ["x", "height", "width", "onMouseenter"], Oe = /* @__PURE__ */ U(() => /* @__PURE__ */ n("div", { class: "slider-track" }, null, -1)), De = ["min", "max"], Ue = ["min", "max"], Te = {
|
|
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
|
-
refreshStartPoint: {
|
|
111
|
-
type: Number,
|
|
112
|
-
default: 0
|
|
113
|
-
},
|
|
114
|
-
refreshEndPoint: {
|
|
115
|
-
type: Number,
|
|
116
|
-
default: null
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
120
|
-
setup(l, { expose: T, emit: x }) {
|
|
121
|
-
const e = l;
|
|
122
|
-
ie((t) => ({
|
|
123
|
-
"3d3a2c02": _.value,
|
|
124
|
-
79587273: g.value,
|
|
125
|
-
"72fa1da4": Z.value,
|
|
126
|
-
"598db3a3": l.selectColor,
|
|
127
|
-
b4acd69e: j.value
|
|
128
|
-
}));
|
|
129
|
-
const o = f(e.min), u = f(e.max), y = d(() => !!e.minimap.length), C = f(pe()), W = d(() => e.refreshEndPoint === null ? e.max : e.refreshEndPoint), X = d(() => {
|
|
130
|
-
const t = e.max - e.min, i = (o.value - e.min) / t * 100, r = (u.value - e.min) / t * 100;
|
|
131
|
-
return {
|
|
132
|
-
left: `${i}%`,
|
|
133
|
-
width: `${r - i}%`,
|
|
134
|
-
background: e.selectColor
|
|
135
|
-
};
|
|
136
|
-
}), _ = d(() => e.inputColor), j = d(() => e.background), Z = d(() => `${e.selectColor}33`), g = d(() => e.borderColor), I = d(() => {
|
|
137
|
-
let t = [];
|
|
138
|
-
for (let i = 0; i < e.minimap.length; i += 1)
|
|
139
|
-
t.push(i);
|
|
140
|
-
return t;
|
|
141
|
-
});
|
|
142
|
-
function z() {
|
|
143
|
-
x("reset");
|
|
144
|
-
}
|
|
145
|
-
function q() {
|
|
146
|
-
Number(o.value) > Number(u.value) - 1 && (o.value = Number(u.value) - 1), x("update:start", Number(o.value));
|
|
147
|
-
}
|
|
148
|
-
function G() {
|
|
149
|
-
Number(u.value) < Number(o.value) + 1 && (u.value = Number(o.value) + 1), x("update:end", Number(u.value));
|
|
150
|
-
}
|
|
151
|
-
L(
|
|
152
|
-
() => e.min,
|
|
153
|
-
(t) => {
|
|
154
|
-
Number(o.value) < Number(t) && (o.value = Number(t)), Number(u.value) < Number(t) && (u.value = Number(t));
|
|
155
|
-
}
|
|
156
|
-
), L(
|
|
157
|
-
() => e.max,
|
|
158
|
-
(t) => {
|
|
159
|
-
Number(o.value) > Number(t) && (o.value = Number(t)), Number(u.value) > Number(t) && (u.value = Number(t));
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
const w = f(null), a = f({
|
|
163
|
-
width: 1,
|
|
164
|
-
height: 1
|
|
165
|
-
}), k = f(null);
|
|
166
|
-
oe(() => {
|
|
167
|
-
if (y.value) {
|
|
168
|
-
const t = he(() => {
|
|
169
|
-
const { width: i, height: r } = fe({
|
|
170
|
-
chart: w.value
|
|
171
|
-
});
|
|
172
|
-
a.value.width = i, a.value.height = r - 47;
|
|
173
|
-
});
|
|
174
|
-
k.value = new ResizeObserver(t), k.value.observe(w.value);
|
|
175
|
-
}
|
|
176
|
-
}), ue(() => {
|
|
177
|
-
k.value && k.value.disconnect();
|
|
178
|
-
});
|
|
179
|
-
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), c = d(() => {
|
|
180
|
-
if (!e.minimap.length) return [];
|
|
181
|
-
const t = Math.max(...e.minimap), i = Math.min(...e.minimap) - 10, r = t - (i > 0 ? 0 : i), h = e.minimap.map((le, ae) => {
|
|
182
|
-
const ne = le - i;
|
|
183
|
-
return {
|
|
184
|
-
x: a.value.width / e.minimap.length * ae + s.value / 2,
|
|
185
|
-
y: a.value.height - ne / r * (a.value.height * 0.9)
|
|
186
|
-
};
|
|
187
|
-
}), E = e.smoothMinimap ? O(h) : D(h), P = [...h].slice(e.valueStart, e.valueEnd), te = e.smoothMinimap ? O(P) : D(P);
|
|
188
|
-
return {
|
|
189
|
-
fullSet: E,
|
|
190
|
-
selectionSet: te,
|
|
191
|
-
sliced: P,
|
|
192
|
-
firstPlot: h[e.valueStart],
|
|
193
|
-
lastPlot: h[e.valueEnd - 1]
|
|
194
|
-
};
|
|
195
|
-
}), p = d(() => ({
|
|
196
|
-
x: s.value * o.value + s.value / 2,
|
|
197
|
-
width: a.value.width * ((u.value - o.value) / e.max) - s.value
|
|
198
|
-
})), Q = d(() => ({
|
|
199
|
-
left: 0,
|
|
200
|
-
color: e.textColor,
|
|
201
|
-
fontSize: `${e.fontSize}px`,
|
|
202
|
-
top: y.value ? "28px" : "-28px",
|
|
203
|
-
pointerEvents: "none"
|
|
204
|
-
})), H = d(() => ({
|
|
205
|
-
right: 0,
|
|
206
|
-
color: e.textColor,
|
|
207
|
-
fontSize: `${e.fontSize}px`,
|
|
208
|
-
top: y.value ? "28px" : "-28px",
|
|
209
|
-
direction: "rtl",
|
|
210
|
-
pointerEvents: "none"
|
|
211
|
-
})), b = f(e.minimapSelectedIndex);
|
|
212
|
-
L(() => e.minimapSelectedIndex, (t) => {
|
|
213
|
-
b.value = t + e.valueStart;
|
|
214
|
-
}, { immediate: !0 });
|
|
215
|
-
function J(t) {
|
|
216
|
-
b.value = t, t >= e.valueStart && t < e.valueEnd && x("trapMouse", t - e.valueStart);
|
|
217
|
-
}
|
|
218
|
-
const K = f(0), $ = f(null), M = f(null);
|
|
219
|
-
function Y(t) {
|
|
220
|
-
o.value = t, $.value && ($.value.value = t), x("update:start", Number(o.value));
|
|
221
|
-
}
|
|
222
|
-
function ee(t) {
|
|
223
|
-
u.value = t, M.value && (M.value.value = t), x("update:end", Number(u.value));
|
|
224
|
-
}
|
|
225
|
-
return T({
|
|
226
|
-
setStartValue: Y,
|
|
227
|
-
setEndValue: ee
|
|
228
|
-
}), (t, i) => (m(), v("div", ge, [
|
|
229
|
-
n("div", be, [
|
|
230
|
-
l.valueStart !== l.refreshStartPoint || l.valueEnd !== W.value ? (m(), v("div", Se, [
|
|
231
|
-
l.useResetSlot ? se(t.$slots, "reset-action", {
|
|
232
|
-
key: 1,
|
|
233
|
-
reset: z
|
|
234
|
-
}, void 0, !0) : (m(), v("button", {
|
|
235
|
-
key: 0,
|
|
236
|
-
"data-cy-reset": "",
|
|
237
|
-
tabindex: "0",
|
|
238
|
-
role: "button",
|
|
239
|
-
class: "vue-data-ui-refresh-button",
|
|
240
|
-
style: S({
|
|
241
|
-
top: y.value ? "36px" : "-16px",
|
|
242
|
-
pointerEvents: "all !important"
|
|
243
|
-
}),
|
|
244
|
-
onClick: z
|
|
245
|
-
}, [
|
|
246
|
-
re(ce, {
|
|
247
|
-
name: "refresh",
|
|
248
|
-
stroke: l.textColor
|
|
249
|
-
}, null, 8, ["stroke"])
|
|
250
|
-
], 4))
|
|
251
|
-
])) : N("", !0)
|
|
252
|
-
]),
|
|
253
|
-
n("div", {
|
|
254
|
-
class: "double-range-slider",
|
|
255
|
-
ref_key: "minimapWrapper",
|
|
256
|
-
ref: w,
|
|
257
|
-
style: { "z-index": "0" }
|
|
258
|
-
}, [
|
|
259
|
-
y.value ? (m(), v("div", ke, [
|
|
260
|
-
(m(), v("svg", {
|
|
261
|
-
xmlns: de(xe),
|
|
262
|
-
viewBox: `0 0 ${a.value.width < 0 ? 0 : a.value.width} ${a.value.height < 0 ? 0 : a.value.height}`
|
|
263
|
-
}, [
|
|
264
|
-
n("defs", null, [
|
|
265
|
-
n("linearGradient", {
|
|
266
|
-
id: C.value,
|
|
267
|
-
x1: "0%",
|
|
268
|
-
y1: "0%",
|
|
269
|
-
x2: "0%",
|
|
270
|
-
y2: "100%"
|
|
271
|
-
}, [
|
|
272
|
-
n("stop", {
|
|
273
|
-
offset: "0%",
|
|
274
|
-
"stop-color": `${l.minimapLineColor}50`
|
|
275
|
-
}, null, 8, we),
|
|
276
|
-
$e
|
|
277
|
-
], 8, Ce)
|
|
278
|
-
]),
|
|
279
|
-
n("path", {
|
|
280
|
-
d: `M${c.value.fullSet}`,
|
|
281
|
-
stroke: `${l.minimapLineColor}`,
|
|
282
|
-
fill: "none",
|
|
283
|
-
"stroke-width": "1",
|
|
284
|
-
"stroke-linecap": "round",
|
|
285
|
-
"stroke-linejoin": "round",
|
|
286
|
-
style: { opacity: "1" }
|
|
287
|
-
}, null, 8, Me),
|
|
288
|
-
n("rect", {
|
|
289
|
-
x: p.value.x,
|
|
290
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
291
|
-
height: Math.max(a.value.height, 0),
|
|
292
|
-
y: 0,
|
|
293
|
-
fill: g.value,
|
|
294
|
-
rx: l.minimapSelectionRadius,
|
|
295
|
-
stroke: "none"
|
|
296
|
-
}, null, 8, Ee),
|
|
297
|
-
n("path", {
|
|
298
|
-
d: `M${s.value / 2},${Math.max(a.value.height, 0)} ${c.value.fullSet} L${a.value.width - s.value / 2},${Math.max(a.value.height, 0)}Z`,
|
|
299
|
-
fill: `url(#${C.value})`,
|
|
300
|
-
stroke: "none",
|
|
301
|
-
style: { opacity: "1" }
|
|
302
|
-
}, null, 8, Pe),
|
|
303
|
-
n("rect", {
|
|
304
|
-
x: p.value.x,
|
|
305
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
306
|
-
height: Math.max(a.value.height, 0),
|
|
307
|
-
y: 0,
|
|
308
|
-
rx: l.minimapSelectionRadius,
|
|
309
|
-
fill: g.value
|
|
310
|
-
}, null, 8, Le),
|
|
311
|
-
n("rect", {
|
|
312
|
-
x: p.value.x,
|
|
313
|
-
width: p.value.width < 0 ? 0 : p.value.width,
|
|
314
|
-
height: Math.max(a.value.height, 0),
|
|
315
|
-
y: 0,
|
|
316
|
-
fill: l.minimapSelectedColor,
|
|
317
|
-
rx: l.minimapSelectionRadius,
|
|
318
|
-
style: S({
|
|
319
|
-
opacity: l.minimapSelectedColorOpacity
|
|
320
|
-
})
|
|
321
|
-
}, null, 12, Ie),
|
|
322
|
-
n("path", {
|
|
323
|
-
d: `M${c.value.sliced[0].x},${Math.max(a.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${Math.max(a.value.height, 0)}Z`,
|
|
324
|
-
fill: `url(#${C.value})`,
|
|
325
|
-
stroke: "none",
|
|
326
|
-
style: { opacity: "1" }
|
|
327
|
-
}, null, 8, ze),
|
|
328
|
-
n("path", {
|
|
329
|
-
d: `M ${c.value.selectionSet}`,
|
|
330
|
-
stroke: `${l.minimapLineColor}`,
|
|
331
|
-
fill: "transparent",
|
|
332
|
-
"stroke-width": "2",
|
|
333
|
-
"stroke-linecap": "round",
|
|
334
|
-
"stroke-linejoin": "round"
|
|
335
|
-
}, null, 8, Fe),
|
|
336
|
-
n("circle", {
|
|
337
|
-
cx: c.value.firstPlot.x,
|
|
338
|
-
cy: c.value.firstPlot.y,
|
|
339
|
-
"stroke-width": "0.5",
|
|
340
|
-
stroke: g.value,
|
|
341
|
-
r: "3",
|
|
342
|
-
fill: l.minimapLineColor
|
|
343
|
-
}, null, 8, Re),
|
|
344
|
-
n("circle", {
|
|
345
|
-
cx: c.value.lastPlot.x,
|
|
346
|
-
cy: c.value.lastPlot.y,
|
|
347
|
-
"stroke-width": "0.5",
|
|
348
|
-
stroke: g.value,
|
|
349
|
-
r: "3",
|
|
350
|
-
fill: l.minimapLineColor
|
|
351
|
-
}, null, 8, Ve),
|
|
352
|
-
b.value !== null ? (m(!0), v(F, { key: 0 }, R(I.value, (r, h) => (m(), v("g", null, [
|
|
353
|
-
b.value === r && r >= l.valueStart && r < l.valueEnd ? (m(), v("line", {
|
|
354
|
-
key: 0,
|
|
355
|
-
x1: s.value * h + s.value / 2,
|
|
356
|
-
x2: s.value * h + s.value / 2,
|
|
357
|
-
y1: 0,
|
|
358
|
-
y2: Math.max(a.value.height, 0),
|
|
359
|
-
stroke: l.minimapIndicatorColor,
|
|
360
|
-
"stroke-linecap": "round",
|
|
361
|
-
"stroke-dasharray": "2",
|
|
362
|
-
"stroke-width": "1"
|
|
363
|
-
}, null, 8, Ae)) : N("", !0)
|
|
364
|
-
]))), 256)) : N("", !0),
|
|
365
|
-
(m(!0), v(F, null, R(I.value, (r, h) => (m(), v("rect", {
|
|
366
|
-
x: s.value * h,
|
|
367
|
-
y: 0,
|
|
368
|
-
height: Math.max(a.value.height, 0),
|
|
369
|
-
width: s.value < 0 ? 0 : s.value,
|
|
370
|
-
fill: "transparent",
|
|
371
|
-
style: { "pointer-events": "all !important" },
|
|
372
|
-
onMouseenter: (E) => J(r),
|
|
373
|
-
onMouseleave: i[0] || (i[0] = (E) => {
|
|
374
|
-
b.value = null, x("trapMouse", null);
|
|
375
|
-
})
|
|
376
|
-
}, null, 40, Be))), 256))
|
|
377
|
-
], 8, Ne))
|
|
378
|
-
])) : N("", !0),
|
|
379
|
-
Oe,
|
|
380
|
-
n("div", {
|
|
381
|
-
class: "range-highlight",
|
|
382
|
-
style: S(X.value)
|
|
383
|
-
}, null, 4),
|
|
384
|
-
V((m(), v("input", {
|
|
385
|
-
ref_key: "rangeStart",
|
|
386
|
-
ref: $,
|
|
387
|
-
key: `range-min${K.value}`,
|
|
388
|
-
type: "range",
|
|
389
|
-
class: "range-left",
|
|
390
|
-
min: l.min,
|
|
391
|
-
max: l.max,
|
|
392
|
-
"onUpdate:modelValue": i[1] || (i[1] = (r) => o.value = r),
|
|
393
|
-
onInput: q
|
|
394
|
-
}, null, 40, De)), [
|
|
395
|
-
[A, o.value]
|
|
396
|
-
]),
|
|
397
|
-
n("div", {
|
|
398
|
-
class: "thumb-label thumb-label-left",
|
|
399
|
-
style: S(Q.value)
|
|
400
|
-
}, B(l.labelLeft), 5),
|
|
401
|
-
V(n("input", {
|
|
402
|
-
ref_key: "rangeEnd",
|
|
403
|
-
ref: M,
|
|
404
|
-
type: "range",
|
|
405
|
-
class: "range-right",
|
|
406
|
-
min: l.min,
|
|
407
|
-
max: l.max,
|
|
408
|
-
"onUpdate:modelValue": i[2] || (i[2] = (r) => u.value = r),
|
|
409
|
-
onInput: G
|
|
410
|
-
}, null, 40, Ue), [
|
|
411
|
-
[A, u.value]
|
|
412
|
-
]),
|
|
413
|
-
n("div", {
|
|
414
|
-
class: "thumb-label thumb-label-right",
|
|
415
|
-
style: S(H.value)
|
|
416
|
-
}, B(l.labelRight), 5)
|
|
417
|
-
], 512)
|
|
418
|
-
]));
|
|
419
|
-
}
|
|
420
|
-
}, qe = /* @__PURE__ */ ye(Te, [["__scopeId", "data-v-cf67df9a"]]);
|
|
421
|
-
export {
|
|
422
|
-
qe as S
|
|
423
|
-
};
|