vue-data-ui 3.25.13 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -53
- package/dist/{Arrow-BhZDUeMp.js → Arrow-Bt3aGRMb.js} +1 -1
- package/dist/{BaseDraggableDialog-Ck6R5Q0K.js → BaseDraggableDialog-C1Slb3Yh.js} +2 -2
- package/dist/{BaseIcon-Dlz7gfx0.js → BaseIcon-BV75ei8X.js} +1 -1
- package/dist/{BaseLegendToggle-DGG65LAR.js → BaseLegendToggle-DtS_Oj3B.js} +1 -1
- package/dist/{BaseZoomControls-BK0PxEa8.js → BaseZoomControls-DIhoeyZu.js} +2 -2
- package/dist/{ColorPicker-DMTwxvi_.js → ColorPicker--Y89hTnE.js} +2 -2
- package/dist/{DataTable-BD1eZ0zB.js → DataTable-DX5fToAo.js} +2 -2
- package/dist/{HillActions-CiP2m7Nz.js → HillActions-D6weVdns.js} +1 -1
- package/dist/{Legend-C0Ln0VNe.js → Legend-Dv90gh-6.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BjrMLISf.js → NonSvgPenAndPaper-D2BM5C1-.js} +3 -3
- package/dist/{PackageVersion-D5QkTJQU.js → PackageVersion-DhXk363L.js} +1 -1
- package/dist/{PenAndPaper-XdUD8uB3.js → PenAndPaper-DkQ4sEhs.js} +3 -3
- package/dist/{Shape-VCdxvFV9.js → Shape-B_kDj1gF.js} +1 -1
- package/dist/SlicerPreview-BgyIezm0.js +1730 -0
- package/dist/{SparkTooltip-B1gRxPfb.js → SparkTooltip-BNpyQ021.js} +1 -1
- package/dist/{Title-DeqmC-vN.js → Title-C2JKI5td.js} +1 -1
- package/dist/{Tooltip-DZ4a3XJQ.js → Tooltip-2NAb_Rrx.js} +1 -1
- package/dist/{UserOptions-wFD9vo9g.js → UserOptions-Dgn3StKw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DdqmzDdY.js → dom-to-png-DKdtTkNC.js} +1 -1
- package/dist/{exposedLib-BBtjpydc.js → exposedLib-DN6QRAx2.js} +1 -1
- package/dist/{img-W50sC9SC.js → img-CaIaBHA0.js} +1 -1
- package/dist/{labelUtils-Dvm-7rse.js → labelUtils-CD5XzcAo.js} +1 -1
- package/dist/{lib-DOpaUOQx.js → lib-CklJ7rIN.js} +29 -18
- package/dist/{package-Cmcke8zR.js → package-BVRea5S_.js} +1 -1
- package/dist/{pdf-zGbDDpCi.js → pdf-6hacmnKW.js} +1 -1
- package/dist/{render-common-CG1wuHZY.js → render-common-ChwuwzU3.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +110 -5
- package/dist/types/vue-ui-candlestick.d.ts +4 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +4 -0
- package/dist/types/vue-ui-quick-chart.d.ts +4 -0
- package/dist/types/vue-ui-sparkline.d.ts +5 -1
- package/dist/types/vue-ui-stackbar.d.ts +4 -0
- package/dist/types/vue-ui-stackline.d.ts +4 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +2 -0
- package/dist/types/vue-ui-xy.d.ts +2 -0
- package/dist/{useConfig-C2uy4ltq.js → useConfig-DObkR9Aa.js} +49 -4
- package/dist/{useNestedProp-Bux0f4iY.js → useNestedProp-Tc9i6ZcN.js} +1 -1
- package/dist/{useObjectBindings-CEuNiBIT.js → useObjectBindings-CPmyIJxB.js} +9 -9
- package/dist/{usePrinter-BBBooAGP.js → usePrinter-Dp3X1vqr.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/vue-data-ui-Dr0uoRD_.js +191 -0
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-Ckauu3d4.js → vue-ui-3d-bar-BvJwq13N.js} +7 -7
- package/dist/{vue-ui-accordion-yHZMJLaY.js → vue-ui-accordion-15kKhkup.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BczIt1-U.js → vue-ui-age-pyramid-CVzina7X.js} +7 -7
- package/dist/{vue-ui-annotator-BGB6K6u0.js → vue-ui-annotator-J4Wo2_DR.js} +7 -7
- package/dist/{vue-ui-bullet-BoTsLccZ.js → vue-ui-bullet-CuI5_uF1.js} +8 -8
- package/dist/{vue-ui-bump-B5ztSSQO.js → vue-ui-bump-GGNG4vwu.js} +7 -7
- package/dist/vue-ui-candlestick-Ca9dvzvk.js +2144 -0
- package/dist/{vue-ui-carousel-table-D-3KSWok.js → vue-ui-carousel-table-DOxh9sEm.js} +5 -5
- package/dist/{vue-ui-chestnut-W2l-W0_e.js → vue-ui-chestnut-DQhC_gB8.js} +6 -6
- package/dist/{vue-ui-chord-BFPQsMj8.js → vue-ui-chord-Blnvne2p.js} +9 -9
- package/dist/{vue-ui-circle-pack-BtPc1BR3.js → vue-ui-circle-pack-mNHA1U8B.js} +7 -7
- package/dist/{vue-ui-cursor-CpNOiwkt.js → vue-ui-cursor-D2hgivhn.js} +4 -4
- package/dist/{vue-ui-dag-i-zPwLcN.js → vue-ui-dag-DDSyO2ts.js} +8 -8
- package/dist/{vue-ui-dashboard-DtaW9a2P.js → vue-ui-dashboard-C9MnWAnE.js} +70 -70
- package/dist/{vue-ui-digits-BIlec9af.js → vue-ui-digits-h7H-yHd0.js} +4 -4
- package/dist/{vue-ui-donut-CJlBEyxu.js → vue-ui-donut-D-8OekQ5.js} +3 -3
- package/dist/vue-ui-donut-evolution-CJ6tIbgl.js +1869 -0
- package/dist/{vue-ui-donut-Bgf-n95J.js → vue-ui-donut-oY4iu5pY.js} +11 -11
- package/dist/{vue-ui-dumbbell-C112YLkC.js → vue-ui-dumbbell-52gWeLGK.js} +8 -8
- package/dist/{vue-ui-flow-j4bDg9Zd.js → vue-ui-flow-edMUCkcr.js} +8 -8
- package/dist/{vue-ui-funnel-CVHpfBCW.js → vue-ui-funnel-B08mSlHH.js} +7 -7
- package/dist/{vue-ui-galaxy-ChGpUWh8.js → vue-ui-galaxy-CV59UO9t.js} +10 -10
- package/dist/{vue-ui-gauge-Cp00vXfG.js → vue-ui-gauge-BnBzapom.js} +7 -7
- package/dist/{vue-ui-geo-B4hDk5NO.js → vue-ui-geo-BCmDw5me.js} +8 -8
- package/dist/{vue-ui-gizmo-D6nCCsS4.js → vue-ui-gizmo-BZBV8haQ.js} +4 -4
- package/dist/{vue-ui-heatmap-scVJc1cw.js → vue-ui-heatmap-CjiffI23.js} +8 -8
- package/dist/{vue-ui-hill-DnYUHGAK.js → vue-ui-hill-D5WV6zro.js} +7 -7
- package/dist/{vue-ui-history-plot-C5qAMaaW.js → vue-ui-history-plot-Bd06L1Od.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-nEG4uvpv.js → vue-ui-horizontal-bar-B5Yp6Uql.js} +11 -11
- package/dist/{vue-ui-kpi-DOxId6xg.js → vue-ui-kpi-CNreX8BM.js} +4 -4
- package/dist/{vue-ui-label-BDKY7BI7.js → vue-ui-label-BDP67zvQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BknVs9VJ.js → vue-ui-mini-loader-pzS7SsP4.js} +3 -3
- package/dist/{vue-ui-molecule-_x232mMu.js → vue-ui-molecule-DqeRhja8.js} +6 -6
- package/dist/{vue-ui-mood-radar-D-F4855V.js → vue-ui-mood-radar-Cgl_QD-j.js} +8 -8
- package/dist/{vue-ui-nested-donuts-0E5IllFW.js → vue-ui-nested-donuts-MDPBZLnW.js} +10 -10
- package/dist/{vue-ui-onion-Eip0S1H7.js → vue-ui-onion-kgZ3uV3c.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DO0sQdJw.js → vue-ui-parallel-coordinate-plot-CJbZCsPd.js} +10 -10
- package/dist/{vue-ui-quadrant-CA0ClWfL.js → vue-ui-quadrant-B9efnVWT.js} +10 -10
- package/dist/{vue-ui-quick-chart-D-VuAoll.js → vue-ui-quick-chart-hNOMlqTI.js} +1053 -681
- package/dist/{vue-ui-radar-BTD7Y0Ps.js → vue-ui-radar-DJO16PTU.js} +9 -9
- package/dist/{vue-ui-rating-C_Qj6gnP.js → vue-ui-rating-BYLWm5aG.js} +3 -3
- package/dist/{vue-ui-relation-circle-CcxLBVFV.js → vue-ui-relation-circle-DVF3RlHU.js} +7 -7
- package/dist/{vue-ui-ridgeline-BZrzbbhb.js → vue-ui-ridgeline-DvgIu54T.js} +10 -10
- package/dist/{vue-ui-rings-CO48GOP2.js → vue-ui-rings-DVU7F6bL.js} +11 -11
- package/dist/{vue-ui-scatter-DrxUgZbQ.js → vue-ui-scatter-BtlRfhTt.js} +10 -10
- package/dist/{vue-ui-skeleton-CeKjW4MX.js → vue-ui-skeleton-DcMhyC4L.js} +4 -4
- package/dist/{vue-ui-smiley-BvRwx69s.js → vue-ui-smiley-qHvZQJcB.js} +3 -3
- package/dist/{vue-ui-spark-trend-DnujGRyt.js → vue-ui-spark-trend-BuHZP190.js} +4 -4
- package/dist/{vue-ui-sparkbar-Cd_uhYGD.js → vue-ui-sparkbar-MH9VeqdO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-hT31YEtt.js → vue-ui-sparkgauge-Bg_IFD0m.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PKlTYhKA.js → vue-ui-sparkhistogram-DZu07vIL.js} +5 -5
- package/dist/vue-ui-sparkline-LwEiJPe6.js +2067 -0
- package/dist/{vue-ui-sparkstackbar-R0ij2vi1.js → vue-ui-sparkstackbar-hbIoybeq.js} +5 -5
- package/dist/vue-ui-stackbar-CaxNkWPz.js +2660 -0
- package/dist/vue-ui-stackline-BJqnZXeR.js +2829 -0
- package/dist/{vue-ui-strip-plot-DR3N56rS.js → vue-ui-strip-plot-BWK3JQr6.js} +8 -8
- package/dist/{vue-ui-table-Bg6BeLrf.js → vue-ui-table-CRWoH6dc.js} +6 -6
- package/dist/{vue-ui-table-heatmap-C1b1Pcp8.js → vue-ui-table-heatmap-Bu9RiTU0.js} +6 -6
- package/dist/{vue-ui-table-sparkline-CkVXyequ.js → vue-ui-table-sparkline-CTA_6-gu.js} +5 -5
- package/dist/{vue-ui-thermometer-CqkaMF7Z.js → vue-ui-thermometer-Y5CnROrM.js} +7 -7
- package/dist/{vue-ui-timer-CgJvNwBv.js → vue-ui-timer-BYEpxxDX.js} +6 -6
- package/dist/{vue-ui-tiremarks-B078YJ9M.js → vue-ui-tiremarks-DBndWNiA.js} +7 -7
- package/dist/{vue-ui-treemap-Cfjf8mDl.js → vue-ui-treemap-Cw8a0oFl.js} +10 -10
- package/dist/{vue-ui-waffle-BZIcPa0l.js → vue-ui-waffle-BvfD05mS.js} +11 -11
- package/dist/{vue-ui-wheel-CPTm8AHn.js → vue-ui-wheel-D6NsnLRc.js} +7 -7
- package/dist/{vue-ui-word-cloud-DnGblUwj.js → vue-ui-word-cloud-YrgMp1Fo.js} +8 -8
- package/dist/{vue-ui-world-KkcpeKqp.js → vue-ui-world-BMcqvuJH.js} +8 -8
- package/dist/{vue-ui-xy-ClCV7xA5.js → vue-ui-xy-B6wckF4S.js} +4 -4
- package/dist/vue-ui-xy-Bv7fhRbS.js +5769 -0
- package/dist/{vue-ui-xy-canvas-BlpCbXKR.js → vue-ui-xy-canvas-NzaEYHDR.js} +875 -560
- package/dist/{vue_ui_candlestick-J8jmJvxP.js → vue_ui_candlestick-BXSQY82k.js} +96 -9
- package/dist/{vue_ui_donut_evolution-D1yAAIHr.js → vue_ui_donut_evolution-C6951a2f.js} +35 -7
- package/dist/{vue_ui_quick_chart-mZBdml3Z.js → vue_ui_quick_chart-DByCqSYE.js} +45 -4
- package/dist/{vue_ui_sparkline-auZhap6Y.js → vue_ui_sparkline-b9pEUyGF.js} +33 -1
- package/dist/{vue_ui_stackbar-COOrQQdK.js → vue_ui_stackbar-DdjDL6aq.js} +88 -9
- package/dist/{vue_ui_stackline-DQqKPA9z.js → vue_ui_stackline-Bh0RuInt.js} +88 -9
- package/dist/{vue_ui_xy-BA3-_LCx.js → vue_ui_xy-CcJADijP.js} +78 -9
- package/dist/{vue_ui_xy_canvas-Cb6dg3eK.js → vue_ui_xy_canvas-DrNSzYWq.js} +88 -9
- package/package.json +1 -1
- package/dist/SlicerPreview-BJ4usfYd.js +0 -1708
- package/dist/vue-data-ui-BVzA0tEV.js +0 -280
- package/dist/vue-ui-candlestick-BJtdA4Yu.js +0 -1871
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +0 -1552
- package/dist/vue-ui-sparkline-BSu1uRvP.js +0 -1610
- package/dist/vue-ui-stackbar-BrzzkGFk.js +0 -2369
- package/dist/vue-ui-stackline-zEX3gR3y.js +0 -2483
- package/dist/vue-ui-xy-C6lVqZnx.js +0 -5367
|
@@ -0,0 +1,1730 @@
|
|
|
1
|
+
import { Et as e, I as t, Ot as n, P as r, U as i, V as a, W as o, X as s, nn as c, r as ee, t as te } from "./lib-CklJ7rIN.js";
|
|
2
|
+
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { i as ne, l as u, t as re } from "./useResponsive-ZtArZtUf.js";
|
|
4
|
+
import { t as ie } from "./BaseIcon-BV75ei8X.js";
|
|
5
|
+
import { t as ae } from "./DefGrad-DVBqDjhO.js";
|
|
6
|
+
import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as oe, guardReactiveProps as se, mergeProps as ce, nextTick as le, normalizeClass as ue, normalizeProps as de, normalizeStyle as g, onBeforeUnmount as fe, onMounted as pe, onUpdated as me, openBlock as _, ref as v, renderList as y, renderSlot as he, toDisplayString as ge, unref as _e, useCssVars as ve, vModelText as ye, watch as b, withDirectives as be, withKeys as xe, withModifiers as x } from "vue";
|
|
7
|
+
//#region src/atoms/SlicerPreview.vue
|
|
8
|
+
var Se = ["data-minimap"], Ce = {
|
|
9
|
+
class: "vue-data-ui-slicer-labels",
|
|
10
|
+
style: {
|
|
11
|
+
position: "relative",
|
|
12
|
+
"z-index": "1",
|
|
13
|
+
"pointer-events": "none"
|
|
14
|
+
}
|
|
15
|
+
}, we = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
position: "relative",
|
|
20
|
+
"pointer-events": "all"
|
|
21
|
+
}
|
|
22
|
+
}, Te = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "minimap",
|
|
25
|
+
style: { width: "100%" }
|
|
26
|
+
}, Ee = ["xmlns", "viewBox"], De = ["id"], Oe = [
|
|
27
|
+
"x",
|
|
28
|
+
"width",
|
|
29
|
+
"height"
|
|
30
|
+
], ke = [
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"stroke"
|
|
34
|
+
], Ae = ["d", "stroke"], je = ["d", "fill"], Me = [
|
|
35
|
+
"x",
|
|
36
|
+
"y",
|
|
37
|
+
"width",
|
|
38
|
+
"height",
|
|
39
|
+
"fill"
|
|
40
|
+
], Ne = [
|
|
41
|
+
"d",
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-dasharray"
|
|
44
|
+
], Pe = [
|
|
45
|
+
"cx",
|
|
46
|
+
"cy",
|
|
47
|
+
"fill",
|
|
48
|
+
"stroke"
|
|
49
|
+
], Fe = [
|
|
50
|
+
"cx",
|
|
51
|
+
"cy",
|
|
52
|
+
"fill",
|
|
53
|
+
"stroke"
|
|
54
|
+
], Ie = [
|
|
55
|
+
"x",
|
|
56
|
+
"width",
|
|
57
|
+
"height",
|
|
58
|
+
"fill",
|
|
59
|
+
"rx"
|
|
60
|
+
], Le = [
|
|
61
|
+
"x",
|
|
62
|
+
"width",
|
|
63
|
+
"height",
|
|
64
|
+
"rx",
|
|
65
|
+
"fill"
|
|
66
|
+
], Re = [
|
|
67
|
+
"x",
|
|
68
|
+
"width",
|
|
69
|
+
"height",
|
|
70
|
+
"fill",
|
|
71
|
+
"rx",
|
|
72
|
+
"aria-valuemin",
|
|
73
|
+
"aria-valuemax",
|
|
74
|
+
"aria-valuenow",
|
|
75
|
+
"aria-valuetext"
|
|
76
|
+
], ze = [
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], Be = { key: "merged-tree" }, Ve = ["d", "stroke"], He = [
|
|
82
|
+
"cx",
|
|
83
|
+
"cy",
|
|
84
|
+
"stroke",
|
|
85
|
+
"fill"
|
|
86
|
+
], Ue = [
|
|
87
|
+
"cx",
|
|
88
|
+
"cy",
|
|
89
|
+
"stroke",
|
|
90
|
+
"fill"
|
|
91
|
+
], We = { key: "split-tree" }, Ge = [
|
|
92
|
+
"x",
|
|
93
|
+
"y",
|
|
94
|
+
"width",
|
|
95
|
+
"height",
|
|
96
|
+
"fill"
|
|
97
|
+
], Ke = [
|
|
98
|
+
"d",
|
|
99
|
+
"stroke",
|
|
100
|
+
"stroke-dasharray"
|
|
101
|
+
], qe = [
|
|
102
|
+
"cx",
|
|
103
|
+
"cy",
|
|
104
|
+
"fill",
|
|
105
|
+
"stroke"
|
|
106
|
+
], Je = ["width", "height"], Ye = ["transform"], Xe = [
|
|
107
|
+
"x",
|
|
108
|
+
"y",
|
|
109
|
+
"width",
|
|
110
|
+
"height"
|
|
111
|
+
], Ze = [
|
|
112
|
+
"x",
|
|
113
|
+
"width",
|
|
114
|
+
"height",
|
|
115
|
+
"fill",
|
|
116
|
+
"stroke",
|
|
117
|
+
"stroke-width"
|
|
118
|
+
], Qe = ["transform"], $e = ["width", "height"], et = ["fill", "stroke"], tt = ["stroke"], nt = ["fill"], rt = ["transform"], it = [
|
|
119
|
+
"y",
|
|
120
|
+
"width",
|
|
121
|
+
"height"
|
|
122
|
+
], at = [
|
|
123
|
+
"width",
|
|
124
|
+
"height",
|
|
125
|
+
"fill",
|
|
126
|
+
"stroke",
|
|
127
|
+
"stroke-width"
|
|
128
|
+
], ot = {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "compact-handle-icon",
|
|
131
|
+
style: { "pointer-events": "none" }
|
|
132
|
+
}, st = ["width", "height"], ct = ["fill", "stroke"], lt = ["stroke"], ut = ["fill"], dt = {
|
|
133
|
+
key: "merged-tree",
|
|
134
|
+
style: { "pointer-events": "none" }
|
|
135
|
+
}, ft = [
|
|
136
|
+
"cx",
|
|
137
|
+
"cy",
|
|
138
|
+
"stroke",
|
|
139
|
+
"fill"
|
|
140
|
+
], pt = [
|
|
141
|
+
"cx",
|
|
142
|
+
"cy",
|
|
143
|
+
"fill"
|
|
144
|
+
], mt = [
|
|
145
|
+
"cx",
|
|
146
|
+
"cy",
|
|
147
|
+
"stroke",
|
|
148
|
+
"fill"
|
|
149
|
+
], ht = [
|
|
150
|
+
"cx",
|
|
151
|
+
"cy",
|
|
152
|
+
"fill"
|
|
153
|
+
], gt = {
|
|
154
|
+
key: 1,
|
|
155
|
+
style: { "pointer-events": "none" }
|
|
156
|
+
}, _t = [
|
|
157
|
+
"d",
|
|
158
|
+
"stroke",
|
|
159
|
+
"stroke-dasharray"
|
|
160
|
+
], vt = [
|
|
161
|
+
"cx",
|
|
162
|
+
"cy",
|
|
163
|
+
"fill",
|
|
164
|
+
"stroke"
|
|
165
|
+
], yt = [
|
|
166
|
+
"cx",
|
|
167
|
+
"cy",
|
|
168
|
+
"stroke",
|
|
169
|
+
"fill"
|
|
170
|
+
], bt = [
|
|
171
|
+
"cx",
|
|
172
|
+
"cy",
|
|
173
|
+
"fill"
|
|
174
|
+
], xt = [
|
|
175
|
+
"cx",
|
|
176
|
+
"cy",
|
|
177
|
+
"stroke",
|
|
178
|
+
"fill"
|
|
179
|
+
], St = [
|
|
180
|
+
"cx",
|
|
181
|
+
"cy",
|
|
182
|
+
"fill"
|
|
183
|
+
], Ct = [
|
|
184
|
+
"cx",
|
|
185
|
+
"cy",
|
|
186
|
+
"fill",
|
|
187
|
+
"stroke"
|
|
188
|
+
], wt = [
|
|
189
|
+
"step",
|
|
190
|
+
"min",
|
|
191
|
+
"max",
|
|
192
|
+
"tabindex"
|
|
193
|
+
], Tt = [
|
|
194
|
+
"step",
|
|
195
|
+
"min",
|
|
196
|
+
"max",
|
|
197
|
+
"tabindex"
|
|
198
|
+
], Et = 48, Dt = 48, Ot = /*#__PURE__*/ l({
|
|
199
|
+
__name: "SlicerPreview",
|
|
200
|
+
props: {
|
|
201
|
+
uuid: {
|
|
202
|
+
type: String,
|
|
203
|
+
default: ""
|
|
204
|
+
},
|
|
205
|
+
immediate: {
|
|
206
|
+
type: Boolean,
|
|
207
|
+
default: !0
|
|
208
|
+
},
|
|
209
|
+
background: {
|
|
210
|
+
type: String,
|
|
211
|
+
default: "#FFFFFF"
|
|
212
|
+
},
|
|
213
|
+
borderColor: {
|
|
214
|
+
type: String,
|
|
215
|
+
default: "#FFFFFF"
|
|
216
|
+
},
|
|
217
|
+
fontSize: {
|
|
218
|
+
type: Number,
|
|
219
|
+
default: 14
|
|
220
|
+
},
|
|
221
|
+
labelLeft: {
|
|
222
|
+
type: [String, Number],
|
|
223
|
+
default: ""
|
|
224
|
+
},
|
|
225
|
+
labelRight: {
|
|
226
|
+
type: [String, Number],
|
|
227
|
+
default: ""
|
|
228
|
+
},
|
|
229
|
+
textColor: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: "#1A1A1A"
|
|
232
|
+
},
|
|
233
|
+
inputColor: {
|
|
234
|
+
type: String,
|
|
235
|
+
default: "#1A1A1A"
|
|
236
|
+
},
|
|
237
|
+
max: {
|
|
238
|
+
type: Number,
|
|
239
|
+
default: 0
|
|
240
|
+
},
|
|
241
|
+
min: {
|
|
242
|
+
type: Number,
|
|
243
|
+
default: 0
|
|
244
|
+
},
|
|
245
|
+
selectColor: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: "#4A4A4A"
|
|
248
|
+
},
|
|
249
|
+
useResetSlot: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
default: !1
|
|
252
|
+
},
|
|
253
|
+
valueStart: {
|
|
254
|
+
type: [Number, String],
|
|
255
|
+
default: 0
|
|
256
|
+
},
|
|
257
|
+
valueEnd: {
|
|
258
|
+
type: [Number, String],
|
|
259
|
+
default: 0
|
|
260
|
+
},
|
|
261
|
+
minimap: {
|
|
262
|
+
type: Array,
|
|
263
|
+
default: []
|
|
264
|
+
},
|
|
265
|
+
smoothMinimap: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
default: !1
|
|
268
|
+
},
|
|
269
|
+
minimapSelectedColor: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: "#1f77b4"
|
|
272
|
+
},
|
|
273
|
+
minimapSelectionRadius: {
|
|
274
|
+
type: Number,
|
|
275
|
+
default: 12
|
|
276
|
+
},
|
|
277
|
+
minimapLineColor: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: "#2D353C"
|
|
280
|
+
},
|
|
281
|
+
minimapSelectedColorOpacity: {
|
|
282
|
+
type: Number,
|
|
283
|
+
default: .2
|
|
284
|
+
},
|
|
285
|
+
minimapSelectedIndex: {
|
|
286
|
+
type: Number,
|
|
287
|
+
default: null
|
|
288
|
+
},
|
|
289
|
+
minimapIndicatorColor: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: "#2D353C"
|
|
292
|
+
},
|
|
293
|
+
refreshStartPoint: {
|
|
294
|
+
type: Number,
|
|
295
|
+
default: 0
|
|
296
|
+
},
|
|
297
|
+
refreshEndPoint: {
|
|
298
|
+
type: Number,
|
|
299
|
+
default: null
|
|
300
|
+
},
|
|
301
|
+
enableRangeHandles: {
|
|
302
|
+
type: Boolean,
|
|
303
|
+
default: !1
|
|
304
|
+
},
|
|
305
|
+
enableSelectionDrag: {
|
|
306
|
+
type: Boolean,
|
|
307
|
+
default: !0
|
|
308
|
+
},
|
|
309
|
+
verticalHandles: {
|
|
310
|
+
type: Boolean,
|
|
311
|
+
default: !1
|
|
312
|
+
},
|
|
313
|
+
timeLabels: { type: Array },
|
|
314
|
+
isPreview: {
|
|
315
|
+
type: Boolean,
|
|
316
|
+
default: !1
|
|
317
|
+
},
|
|
318
|
+
preciseLabels: {
|
|
319
|
+
type: Array,
|
|
320
|
+
default() {
|
|
321
|
+
return [];
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
usePreciseLabels: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: !1
|
|
327
|
+
},
|
|
328
|
+
selectedSeries: { type: Object },
|
|
329
|
+
customFormat: { type: [Function, null] },
|
|
330
|
+
minimapCompact: {
|
|
331
|
+
type: Boolean,
|
|
332
|
+
default: !1
|
|
333
|
+
},
|
|
334
|
+
allMinimaps: {
|
|
335
|
+
type: Array,
|
|
336
|
+
default() {
|
|
337
|
+
return [];
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
minimapMerged: {
|
|
341
|
+
type: Boolean,
|
|
342
|
+
default: !1
|
|
343
|
+
},
|
|
344
|
+
minimapFrameColor: {
|
|
345
|
+
type: String,
|
|
346
|
+
default: "#e1e5e8"
|
|
347
|
+
},
|
|
348
|
+
cutNullValues: {
|
|
349
|
+
type: Boolean,
|
|
350
|
+
default: !1
|
|
351
|
+
},
|
|
352
|
+
focusOnDrag: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
default: !1
|
|
355
|
+
},
|
|
356
|
+
focusRangeRatio: {
|
|
357
|
+
type: Number,
|
|
358
|
+
default: .1
|
|
359
|
+
},
|
|
360
|
+
minScale: {
|
|
361
|
+
type: Number,
|
|
362
|
+
default: null
|
|
363
|
+
},
|
|
364
|
+
maxScale: {
|
|
365
|
+
type: Number,
|
|
366
|
+
default: null
|
|
367
|
+
},
|
|
368
|
+
forceZeroCenter: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
default: !1
|
|
371
|
+
},
|
|
372
|
+
maxWidth: {
|
|
373
|
+
type: Number,
|
|
374
|
+
default: null
|
|
375
|
+
},
|
|
376
|
+
minimapLeftInsetRatio: {
|
|
377
|
+
type: Number,
|
|
378
|
+
default: null
|
|
379
|
+
},
|
|
380
|
+
minimapRightInsetRatio: {
|
|
381
|
+
type: Number,
|
|
382
|
+
default: null
|
|
383
|
+
},
|
|
384
|
+
isCursorPointer: {
|
|
385
|
+
type: Boolean,
|
|
386
|
+
default: !1
|
|
387
|
+
},
|
|
388
|
+
additionalMinimapHeight: {
|
|
389
|
+
type: Number,
|
|
390
|
+
default: 0
|
|
391
|
+
},
|
|
392
|
+
handleType: {
|
|
393
|
+
type: String,
|
|
394
|
+
default: ""
|
|
395
|
+
},
|
|
396
|
+
handleWidth: {
|
|
397
|
+
type: Number,
|
|
398
|
+
default: 20
|
|
399
|
+
},
|
|
400
|
+
handleBorderWidth: {
|
|
401
|
+
type: Number,
|
|
402
|
+
default: 1
|
|
403
|
+
},
|
|
404
|
+
handleIconColor: {
|
|
405
|
+
type: String,
|
|
406
|
+
default: null
|
|
407
|
+
},
|
|
408
|
+
handleBorderColor: {
|
|
409
|
+
type: String,
|
|
410
|
+
default: null
|
|
411
|
+
},
|
|
412
|
+
handleFill: {
|
|
413
|
+
type: String,
|
|
414
|
+
default: null
|
|
415
|
+
},
|
|
416
|
+
precision: {
|
|
417
|
+
type: Number,
|
|
418
|
+
default: 0
|
|
419
|
+
},
|
|
420
|
+
useValueRange: {
|
|
421
|
+
type: Boolean,
|
|
422
|
+
default: !1
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
emits: [
|
|
426
|
+
"futureStart",
|
|
427
|
+
"futureEnd",
|
|
428
|
+
"update:start",
|
|
429
|
+
"update:end",
|
|
430
|
+
"reset",
|
|
431
|
+
"trapMouse",
|
|
432
|
+
"trapMouseValue"
|
|
433
|
+
],
|
|
434
|
+
setup(l, { expose: Ot, emit: kt }) {
|
|
435
|
+
ve((e) => ({
|
|
436
|
+
v056d5e0e: an.value,
|
|
437
|
+
c53a32fc: L.value,
|
|
438
|
+
v53db0a73: sn.value,
|
|
439
|
+
v7d9827b2: l.selectColor,
|
|
440
|
+
v182d6940: on.value
|
|
441
|
+
}));
|
|
442
|
+
let S = l;
|
|
443
|
+
function C(e) {
|
|
444
|
+
let t = Number(e) || 0;
|
|
445
|
+
return S.precision <= 0 ? Math.round(t) : Number(t.toFixed(S.precision));
|
|
446
|
+
}
|
|
447
|
+
let w = v(null), T = v(S.min), E = v(S.max), D = f(() => !!S.allMinimaps.length), At = f(() => n(S.minimapLeftInsetRatio) && n(S.minimapRightInsetRatio)), jt = f(() => {
|
|
448
|
+
let e = Math.min(1, Math.max(0, S.minimapLeftInsetRatio)) * 100, t = Math.min(1, Math.max(0, S.minimapRightInsetRatio)) * 100;
|
|
449
|
+
return {
|
|
450
|
+
padding: At.value ? `0 ${t}% 0 ${e}%` : "0 48px",
|
|
451
|
+
maxWidth: S.maxWidth && !At.value ? `${S.maxWidth}px` : void 0,
|
|
452
|
+
margin: S.maxWidth && !At.value ? "0 auto" : void 0
|
|
453
|
+
};
|
|
454
|
+
}), Mt = v(s()), O = v(!1), k = f(() => D.value && S.minimapCompact), Nt = v(null), A = v(null), Pt = v(!1), Ft = v(0), It = v(0), Lt = v(null), Rt = v(!1), zt = f(() => Nt.value !== null), Bt = f(() => S.useValueRange ? E.value : E.value - 1), Vt = f(() => Math.max(1, Number(S.max) - Number(S.min)));
|
|
455
|
+
function Ht(e) {
|
|
456
|
+
return (Number(e) - Number(S.min)) / Vt.value * 100;
|
|
457
|
+
}
|
|
458
|
+
function Ut(e) {
|
|
459
|
+
return R.value.width * (Ht(e) / 100);
|
|
460
|
+
}
|
|
461
|
+
function Wt(e) {
|
|
462
|
+
let t = Math.min(1, Math.max(0, e / Math.max(1, R.value.width)));
|
|
463
|
+
return C(Number(S.min) + Vt.value * t);
|
|
464
|
+
}
|
|
465
|
+
function Gt(e) {
|
|
466
|
+
let t = S.useValueRange ? e?.y : e;
|
|
467
|
+
return n(t) ? Number(t) : null;
|
|
468
|
+
}
|
|
469
|
+
function Kt(e, t) {
|
|
470
|
+
return S.useValueRange ? Number(e?.x) : t + Number(S.min);
|
|
471
|
+
}
|
|
472
|
+
function qt(e, t) {
|
|
473
|
+
return S.useValueRange ? Ut(Kt(e, t)) : V.value * t + (S.minimapCompact ? 0 : V.value / 2);
|
|
474
|
+
}
|
|
475
|
+
let Jt = f(() => Math.min(40, Math.max(20, S.handleWidth))), Yt = v(0), Xt = u((e) => F("futureStart", e), 0), Zt = u((e) => F("futureEnd", e), 0), j = f(() => S.precision > 0 ? 1 / 10 ** S.precision : 1), M = f({
|
|
476
|
+
get: () => T.value,
|
|
477
|
+
set(e) {
|
|
478
|
+
let t = Math.min(Number(e), Number(E.value) - j.value);
|
|
479
|
+
t !== T.value && (T.value = t, K.value && (K.value.value = String(t)), S.immediate ? F("update:start", Number(t)) : O.value && Xt(t));
|
|
480
|
+
}
|
|
481
|
+
}), N = f({
|
|
482
|
+
get: () => E.value,
|
|
483
|
+
set(e) {
|
|
484
|
+
let t = Math.max(Number(e), Number(T.value) + j.value);
|
|
485
|
+
t !== E.value && (E.value = t, q.value && (q.value.value = String(t)), S.immediate ? F("update:end", Number(t)) : O.value && Zt(t));
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
function P() {
|
|
489
|
+
clearTimeout(null), S.immediate || (F("update:start", Number(T.value)), F("update:end", Number(E.value))), O.value = !1;
|
|
490
|
+
}
|
|
491
|
+
let Qt = f(() => S.refreshEndPoint === null ? S.max : S.refreshEndPoint), F = kt, $t = f(() => {
|
|
492
|
+
if (S.useValueRange) return Ht(T.value);
|
|
493
|
+
if (k.value) {
|
|
494
|
+
let e = Math.max(1, z.value - 1);
|
|
495
|
+
return Fn.value / e * 100;
|
|
496
|
+
}
|
|
497
|
+
let e = Math.max(1, S.max - S.min);
|
|
498
|
+
return (T.value - S.min) / e * 100;
|
|
499
|
+
}), en = f(() => {
|
|
500
|
+
if (S.useValueRange) return Ht(E.value);
|
|
501
|
+
if (k.value) {
|
|
502
|
+
let e = Math.max(1, z.value - 1);
|
|
503
|
+
return In.value / e * 100;
|
|
504
|
+
}
|
|
505
|
+
let e = Math.max(1, S.max - S.min);
|
|
506
|
+
return (E.value - S.min) / e * 100;
|
|
507
|
+
}), tn = f(() => ($t.value + en.value) / 2), nn = f(() => {
|
|
508
|
+
if (!w.value) return !1;
|
|
509
|
+
let e = Math.max(1, S.max - S.min);
|
|
510
|
+
return w.value.getBoundingClientRect().width * ((T.value - S.min) / e) - yr.value / 2 < 0;
|
|
511
|
+
}), rn = f(() => {
|
|
512
|
+
if (!w.value) return !1;
|
|
513
|
+
let e = Math.max(1, S.max - S.min), t = w.value.getBoundingClientRect().width;
|
|
514
|
+
return t * ((E.value - S.min) / e) + br.value / 2 > t;
|
|
515
|
+
}), I = f(() => {
|
|
516
|
+
let e = rn.value ? `calc(${tn.value}% - ${Dr.value.width}px)` : nn.value ? `calc(${tn.value}% - 8px)` : `calc(${tn.value}% - ${Dr.value.width / 2}px)`;
|
|
517
|
+
return {
|
|
518
|
+
left: `${$t.value}%`,
|
|
519
|
+
width: `${Math.max(0, en.value - $t.value)}%`,
|
|
520
|
+
background: S.selectColor,
|
|
521
|
+
tooltipLeft: `calc(${$t.value}% - ${nn.value ? 9 : yr.value / 2}px)`,
|
|
522
|
+
tooltipRight: `calc(${en.value}% - ${rn.value ? br.value - 9 : br.value / 2}px)`,
|
|
523
|
+
tooltipCenter: e,
|
|
524
|
+
arrowLeft: !nn.value,
|
|
525
|
+
arrowRight: !rn.value
|
|
526
|
+
};
|
|
527
|
+
}), an = f(() => S.inputColor), on = f(() => S.background), sn = f(() => `${S.selectColor}33`), L = f(() => S.borderColor), cn = f(() => Number(S.max) > Number(S.min));
|
|
528
|
+
function ln() {
|
|
529
|
+
F("reset");
|
|
530
|
+
}
|
|
531
|
+
b(() => S.min, (e) => {
|
|
532
|
+
Number(T.value) < Number(e) && (T.value = Number(e)), Number(E.value) < Number(e) && (E.value = Number(e));
|
|
533
|
+
}), b(() => S.max, (e) => {
|
|
534
|
+
Number(T.value) > Number(e) && (T.value = Number(e)), Number(E.value) > Number(e) && (E.value = Number(e));
|
|
535
|
+
});
|
|
536
|
+
let un = v(null), R = v({
|
|
537
|
+
width: 1,
|
|
538
|
+
height: 1
|
|
539
|
+
}), dn = v(null);
|
|
540
|
+
pe(() => {
|
|
541
|
+
if (D.value) {
|
|
542
|
+
let e = u(() => {
|
|
543
|
+
if (!un.value) return;
|
|
544
|
+
let { width: e, height: t } = re({ chart: un.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
|
|
545
|
+
(n !== R.value.width || r !== R.value.height) && (R.value.width = n, R.value.height = r + S.additionalMinimapHeight);
|
|
546
|
+
}, 0);
|
|
547
|
+
dn.value = new ResizeObserver(e), dn.value.observe(un.value);
|
|
548
|
+
}
|
|
549
|
+
}), fe(() => {
|
|
550
|
+
dn.value && dn.value.disconnect();
|
|
551
|
+
});
|
|
552
|
+
let z = f(() => Math.max(1, S.max - S.min));
|
|
553
|
+
function fn(e) {
|
|
554
|
+
let t = Math.floor(e - S.min);
|
|
555
|
+
return Math.min(Math.max(0, t), z.value);
|
|
556
|
+
}
|
|
557
|
+
function pn(e) {
|
|
558
|
+
let t = Math.ceil(e - S.min);
|
|
559
|
+
return Math.min(Math.max(0, t), z.value);
|
|
560
|
+
}
|
|
561
|
+
let B = f(() => fn(T.value)), mn = f(() => pn(E.value)), hn = f(() => Math.max(...S.allMinimaps.map((e) => e.series.length))), gn = f(() => D.value && S.minimapCompact ? 40 : 0), _n = f(() => gn.value / 2);
|
|
562
|
+
f(() => Math.max(1, R.value.width - _n.value * 2));
|
|
563
|
+
let V = f(() => {
|
|
564
|
+
if (S.minimapCompact && !S.useValueRange) return R.value.width / Math.max(1, z.value - 1);
|
|
565
|
+
let e = Math.max(1, hn.value - +!!S.minimapCompact);
|
|
566
|
+
return R.value.width / e;
|
|
567
|
+
}), vn = f(() => S.allMinimaps.length ? S.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), yn = f(() => V.value / (vn.value || 1) * .8);
|
|
568
|
+
function bn(e, t, n) {
|
|
569
|
+
let r = yn.value, i = Math.max(1, vn.value), a = hn.value - 1;
|
|
570
|
+
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
571
|
+
}
|
|
572
|
+
function xn(e, t) {
|
|
573
|
+
return [0, hn.value - 1].includes(t) ? yn.value / 2 : yn.value;
|
|
574
|
+
}
|
|
575
|
+
let Sn = f(() => {
|
|
576
|
+
let e = [];
|
|
577
|
+
if (Array.isArray(S.minimap) && S.minimap.length && S.minimapMerged && e.push(...S.minimap.map(Gt).filter(Number.isFinite)), Array.isArray(S.allMinimaps) && S.allMinimaps.length) for (let t of S.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Gt).filter(Number.isFinite));
|
|
578
|
+
return e.length ? {
|
|
579
|
+
min: Math.min(...e),
|
|
580
|
+
max: Math.max(...e)
|
|
581
|
+
} : {
|
|
582
|
+
min: 0,
|
|
583
|
+
max: 1
|
|
584
|
+
};
|
|
585
|
+
}), Cn = f(() => {
|
|
586
|
+
if (S.minScale == null && S.forceZeroCenter) return null;
|
|
587
|
+
let e = Number(S.minScale);
|
|
588
|
+
return Number.isFinite(e) ? e : null;
|
|
589
|
+
}), wn = f(() => {
|
|
590
|
+
if (S.maxScale == null && S.forceZeroCenter) return null;
|
|
591
|
+
let e = Number(S.maxScale);
|
|
592
|
+
return Number.isFinite(e) ? e : null;
|
|
593
|
+
}), Tn = f(() => Cn.value !== null && wn.value !== null), En = f(() => {
|
|
594
|
+
let { min: e, max: t } = Sn.value, n = Cn.value, r = wn.value, i, a;
|
|
595
|
+
return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
|
|
596
|
+
min: i,
|
|
597
|
+
max: a
|
|
598
|
+
};
|
|
599
|
+
}), Dn = f(() => En.value.min), On = f(() => En.value.max), kn = f(() => Dn.value < 0 && On.value > 0 || On.value <= 0 ? Dn.value : 0), An = (e) => {
|
|
600
|
+
let t = Math.max(1, R.value.height);
|
|
601
|
+
return Mn(Dn.value, On.value, t, Tn.value)(e);
|
|
602
|
+
}, jn = f(() => An(0));
|
|
603
|
+
function Mn(e, t, n, r = !1) {
|
|
604
|
+
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
605
|
+
if (r) return (t) => n - (t - e) / o * n;
|
|
606
|
+
if (t <= 0) {
|
|
607
|
+
let t = Math.max(a, 0 - e);
|
|
608
|
+
return (r) => n - (r - e) / t * n;
|
|
609
|
+
}
|
|
610
|
+
if (e >= 0) {
|
|
611
|
+
let e = Math.max(a, t - 0);
|
|
612
|
+
return (t) => n - (t - 0) / e * n;
|
|
613
|
+
}
|
|
614
|
+
{
|
|
615
|
+
let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
|
|
616
|
+
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
function Nn(e, n = !1, s = !1) {
|
|
620
|
+
if (!e || !e.length) return {
|
|
621
|
+
fullSet: "",
|
|
622
|
+
points: [],
|
|
623
|
+
selectionSet: "",
|
|
624
|
+
sliced: [],
|
|
625
|
+
firstPlot: null,
|
|
626
|
+
lastPlot: null,
|
|
627
|
+
hasFull: !1,
|
|
628
|
+
hasSelection: !1,
|
|
629
|
+
fullMarkers: [],
|
|
630
|
+
selectionMarkers: [],
|
|
631
|
+
dashed: !1
|
|
632
|
+
};
|
|
633
|
+
let c = Math.max(1, R.value.height), ee = Mn(Dn.value, On.value, c, Tn.value), te = e.length, l = Math.min(Math.max(0, B.value), Math.max(0, te - 1)), ne = Math.min(te, Math.max(l + 1, mn.value)), u = e.map((e, t) => {
|
|
634
|
+
let n = Gt(e), r = Number.isFinite(n), i = qt(e, t), a = Tn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, Dn.value, On.value) : 0, o = ee(a);
|
|
635
|
+
return {
|
|
636
|
+
x: i,
|
|
637
|
+
y: r ? ee(n) : NaN,
|
|
638
|
+
v: n,
|
|
639
|
+
value: r ? n : null,
|
|
640
|
+
y0: o,
|
|
641
|
+
i: t,
|
|
642
|
+
xValue: Kt(e, t)
|
|
643
|
+
};
|
|
644
|
+
}), re = (e) => e >= 0 && e < u.length && Number.isFinite(u[e]?.value), ie = u.filter((e) => Number.isFinite(e.value) && !re(e.i - 1) && !re(e.i + 1)), ae = S.useValueRange ? ie.filter((e) => e.xValue >= Number(T.value) && e.xValue <= Number(E.value)) : ie.filter((e) => e.i >= l && e.i < ne), d = S.useValueRange ? u.filter((e) => e.xValue >= Number(T.value) && e.xValue <= Number(E.value)) : u.slice(l, ne);
|
|
645
|
+
return {
|
|
646
|
+
fullSet: u.length >= 2 ? s ? a(S.cutNullValues ? u : u.filter((e) => e.value != null)) : S.smoothMinimap || n ? S.cutNullValues ? t(u) : r(u.filter((e) => e.value != null)) : S.cutNullValues ? o(u) : i(u.filter((e) => e.value != null)) : "",
|
|
647
|
+
points: u,
|
|
648
|
+
selectionSet: d.length >= 2 ? s ? a(S.cutNullValues ? d : d.filter((e) => e.value != null)) : S.smoothMinimap || n ? S.cutNullValues ? t(d) : r(d.filter((e) => e.value != null)) : S.cutNullValues ? o(d) : i(d.filter((e) => e.value != null)) : "",
|
|
649
|
+
sliced: d,
|
|
650
|
+
firstPlot: S.useValueRange ? d[0] || null : u[l] || null,
|
|
651
|
+
lastPlot: S.useValueRange ? d[d.length - 1] || null : u[Math.max(0, ne - 1)] || null,
|
|
652
|
+
hasFull: u.length >= 2,
|
|
653
|
+
hasSelection: d.length >= 2,
|
|
654
|
+
fullMarkers: ie,
|
|
655
|
+
selectionMarkers: ae
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
let H = f(() => S.minimap.length ? Nn(S.minimap) : []), U = f(() => S.allMinimaps.length ? S.allMinimaps.map((e, t) => {
|
|
659
|
+
let n = Nn(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
660
|
+
return {
|
|
661
|
+
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
662
|
+
color: e?.color,
|
|
663
|
+
...n,
|
|
664
|
+
temperatureColors: e?.temperatureColors ?? null,
|
|
665
|
+
isVisible: e.isVisible,
|
|
666
|
+
type: e.type || void 0,
|
|
667
|
+
dashed: e.dashed ?? !1,
|
|
668
|
+
useStepper: !!e.useStepper
|
|
669
|
+
};
|
|
670
|
+
}) : []), W = f(() => {
|
|
671
|
+
if (S.useValueRange) {
|
|
672
|
+
let e = Ut(T.value), t = Ut(E.value);
|
|
673
|
+
return {
|
|
674
|
+
x: e,
|
|
675
|
+
width: Math.max(0, t - e)
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
let e = B.value, t = Math.max(e + 1, mn.value);
|
|
679
|
+
return {
|
|
680
|
+
x: V.value * e + (S.minimapCompact ? 0 : V.value / 2),
|
|
681
|
+
width: V.value * (t - e) - V.value
|
|
682
|
+
};
|
|
683
|
+
}), G = v(S.minimapSelectedIndex), Pn = (e) => Math.round(S.min + e), Fn = f({
|
|
684
|
+
get() {
|
|
685
|
+
return k.value ? B.value : Number(M.value);
|
|
686
|
+
},
|
|
687
|
+
set(e) {
|
|
688
|
+
if (k.value) {
|
|
689
|
+
if (S.useValueRange) {
|
|
690
|
+
let t = C(e);
|
|
691
|
+
Kn(Math.min(Math.max(Number(S.min), t), Number(E.value) - j.value));
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
let t = Math.round(+e || 0);
|
|
695
|
+
Kn(Pn(t));
|
|
696
|
+
} else {
|
|
697
|
+
let t = C(e), n = Number(E.value) - j.value, r = Math.min(Math.max(S.min, t), n);
|
|
698
|
+
K.value && (K.value.valueAsNumber = r), Kn(r);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}), In = f({
|
|
702
|
+
get() {
|
|
703
|
+
return k.value ? Math.max(B.value, mn.value - 1) : Number(N.value);
|
|
704
|
+
},
|
|
705
|
+
set(e) {
|
|
706
|
+
if (k.value) {
|
|
707
|
+
if (S.useValueRange) {
|
|
708
|
+
let t = C(e);
|
|
709
|
+
Jn(Math.max(Number(T.value) + j.value, Math.min(t, Number(S.max))));
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
let t = Math.round(+e || 0);
|
|
713
|
+
Jn(Pn(t + 1));
|
|
714
|
+
} else {
|
|
715
|
+
let t = C(e), n = Number(T.value) + j.value, r = Math.max(n, Math.min(t, S.max));
|
|
716
|
+
q.value && (q.value.valueAsNumber = r), Jn(r);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}), Ln = 0;
|
|
720
|
+
function Rn(e, t) {
|
|
721
|
+
if (t === Ln) {
|
|
722
|
+
if (S.useValueRange) {
|
|
723
|
+
G.value = Number.isFinite(Number(e)) ? Ut(Number(e)) : null;
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
G.value = fn(S.valueStart) + e;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
let zn = ne(Rn, 60);
|
|
730
|
+
b(() => S.minimapSelectedIndex, (e, t) => {
|
|
731
|
+
if (Ln += 1, [null, void 0].includes(e)) {
|
|
732
|
+
G.value = null;
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
e !== t && zn(e, Ln);
|
|
736
|
+
}, { immediate: !0 });
|
|
737
|
+
function Bn(e) {
|
|
738
|
+
if (zt.value) return;
|
|
739
|
+
G.value = e;
|
|
740
|
+
let t = B.value, n = mn.value;
|
|
741
|
+
e >= t && e < n && !Q.value && F("trapMouse", e - t);
|
|
742
|
+
}
|
|
743
|
+
function Vn(e) {
|
|
744
|
+
let t = Wt(e), n = S.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
|
|
745
|
+
point: e,
|
|
746
|
+
index: n,
|
|
747
|
+
x: Number(e?.x),
|
|
748
|
+
distance: Math.abs(Number(e?.x) - t)
|
|
749
|
+
}))).filter((e) => Number.isFinite(e.x));
|
|
750
|
+
return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
|
|
751
|
+
}
|
|
752
|
+
function Hn(e) {
|
|
753
|
+
if (!cn.value || zt.value) return;
|
|
754
|
+
let t = Ur(e.clientX);
|
|
755
|
+
if (S.useValueRange) {
|
|
756
|
+
let e = Vn(t);
|
|
757
|
+
if (!e) {
|
|
758
|
+
Un();
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
G.value = Ut(e.x), F("trapMouse", e.index), F("trapMouseValue", e.x);
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
764
|
+
Bn(Wr(t));
|
|
765
|
+
}
|
|
766
|
+
function Un() {
|
|
767
|
+
G.value = null, !zt.value && (F("trapMouse", null), F("trapMouseValue", null));
|
|
768
|
+
}
|
|
769
|
+
let K = v(null), q = v(null);
|
|
770
|
+
function Wn(e) {
|
|
771
|
+
if (typeof e == "object" && e && "target" in e) {
|
|
772
|
+
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
773
|
+
return Number.isFinite(n) ? n : NaN;
|
|
774
|
+
}
|
|
775
|
+
let t = +e;
|
|
776
|
+
return Number.isFinite(t) ? t : NaN;
|
|
777
|
+
}
|
|
778
|
+
let Gn = 0;
|
|
779
|
+
function Kn(e) {
|
|
780
|
+
O.value = !0;
|
|
781
|
+
let t = Wn(e);
|
|
782
|
+
Number.isFinite(t) && (cancelAnimationFrame(Gn), Gn = requestAnimationFrame(() => {
|
|
783
|
+
M.value = t;
|
|
784
|
+
}));
|
|
785
|
+
}
|
|
786
|
+
let qn = 0;
|
|
787
|
+
function Jn(e) {
|
|
788
|
+
O.value = !0;
|
|
789
|
+
let t = Wn(e);
|
|
790
|
+
Number.isFinite(t) && (cancelAnimationFrame(qn), qn = requestAnimationFrame(() => {
|
|
791
|
+
N.value = t;
|
|
792
|
+
}));
|
|
793
|
+
}
|
|
794
|
+
function Yn(e, t) {
|
|
795
|
+
let n = Wn(e), r = Wn(t);
|
|
796
|
+
if (!Number.isFinite(n) || !Number.isFinite(r)) return;
|
|
797
|
+
cancelAnimationFrame(Gn), cancelAnimationFrame(qn);
|
|
798
|
+
let i = Number(S.min), a = Number(S.max), o = j.value, s = C(Math.max(i, Math.min(n, a))), c = C(Math.max(i, Math.min(r, a)));
|
|
799
|
+
s = Math.min(s, a - o), c = Math.max(c, s + o), c = Math.min(c, a), c <= s && (s = i, c = a), T.value = s, E.value = c, K.value && (K.value.value = String(s)), q.value && (q.value.value = String(c));
|
|
800
|
+
}
|
|
801
|
+
fe(() => {
|
|
802
|
+
cancelAnimationFrame(Gn), cancelAnimationFrame(qn);
|
|
803
|
+
});
|
|
804
|
+
let Xn = f(() => S.valueEnd - S.valueStart), Zn = f(() => Xn.value < S.max - S.min), Qn = v(!1), $n = v(null), er = f(() => (Yt.value - 48) / (S.max - S.min) * Xn.value), tr = f(() => Math.max(1, Yt.value - Et - er.value)), nr = f(() => Math.max(1, S.max - S.min - Xn.value)), rr = f(() => nr.value / tr.value), ir = v(0), ar = v(0), or = v(0), sr = v(0), J = null, Y = null, X = null, Z = null, cr = v(S.min);
|
|
805
|
+
function lr(e) {
|
|
806
|
+
if (!w.value) return S.min;
|
|
807
|
+
let t = w.value.getBoundingClientRect(), n = t.left + Et / 2, r = t.right - Et / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, S.max - S.min);
|
|
808
|
+
return Math.round(S.min + a * o);
|
|
809
|
+
}
|
|
810
|
+
let ur = async (e) => {
|
|
811
|
+
if (O.value = !0, xr.value = !0, !S.enableSelectionDrag) return;
|
|
812
|
+
let t = e.type === "touchstart";
|
|
813
|
+
t || e.stopPropagation();
|
|
814
|
+
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
|
|
815
|
+
if (!r || !(r instanceof Element) || r.classList?.contains("range-handle") || r.classList?.contains("vue-ui-zoom-compact-minimap-handle") || r.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
816
|
+
Qn.value = !0;
|
|
817
|
+
let i = t ? n ? n.clientX : 0 : e.clientX;
|
|
818
|
+
if ($n.value = i, ir.value = i, S.focusOnDrag && !Zn.value && w.value && !Rt.value) {
|
|
819
|
+
Rt.value = !0;
|
|
820
|
+
try {
|
|
821
|
+
cr.value = lr(i);
|
|
822
|
+
let e = Math.min(.95, Math.max(.05, S.focusRangeRatio)), t = Number(S.max) - Number(S.min), n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), a = cr.value - r;
|
|
823
|
+
a = Math.max(Number(S.min), Math.min(a, Number(S.max) - n));
|
|
824
|
+
let o = Math.min(Number(S.max), a + n);
|
|
825
|
+
M.value = a, N.value = o, Xt(a), Zt(o), c(w.value, "mouseup"), await le(), c(w.value, "mousedown", { clientX: i });
|
|
826
|
+
} finally {
|
|
827
|
+
Rt.value = !1;
|
|
828
|
+
}
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
ar.value = T.value, or.value = E.value, sr.value = rr.value, J = t ? "touchmove" : "mousemove", Y = t ? "touchend" : "mouseup", X = t ? fr : dr, Z = t ? hr : mr, window.addEventListener(J, X, { passive: !1 }), window.addEventListener(Y, Z);
|
|
832
|
+
};
|
|
833
|
+
function dr(e) {
|
|
834
|
+
Qn.value && pr(e.clientX);
|
|
835
|
+
}
|
|
836
|
+
function fr(e) {
|
|
837
|
+
if (!Qn.value || !w.value) return;
|
|
838
|
+
let t = e.target;
|
|
839
|
+
if (!(t instanceof Element) || !w.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
840
|
+
e.preventDefault();
|
|
841
|
+
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
842
|
+
n && pr(n.clientX);
|
|
843
|
+
}
|
|
844
|
+
function pr(e) {
|
|
845
|
+
if (!Qn.value) return;
|
|
846
|
+
let t = lr(ir.value), n = lr(e) - t, r = Math.round(ar.value + n);
|
|
847
|
+
r = Math.max(S.min, Math.min(r, S.max - Xn.value));
|
|
848
|
+
let i = r + Xn.value;
|
|
849
|
+
M.value = r, N.value = i, Xt(r), Zt(i);
|
|
850
|
+
}
|
|
851
|
+
function mr() {
|
|
852
|
+
gr();
|
|
853
|
+
}
|
|
854
|
+
function hr() {
|
|
855
|
+
gr();
|
|
856
|
+
}
|
|
857
|
+
function gr() {
|
|
858
|
+
Qn.value = !1, J && X && window.removeEventListener(J, X), Y && Z && window.removeEventListener(Y, Z), J = Y = null, X = Z = null, P();
|
|
859
|
+
}
|
|
860
|
+
let Q = v(!1), _r = v(null), vr = v(null), yr = v(1), br = v(1), xr = v(!1);
|
|
861
|
+
function Sr() {
|
|
862
|
+
if (_r.value) {
|
|
863
|
+
let e = Math.round(_r.value.getBoundingClientRect().width);
|
|
864
|
+
e !== yr.value && (yr.value = e);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
function Cr() {
|
|
868
|
+
if (vr.value) {
|
|
869
|
+
let e = Math.round(vr.value.getBoundingClientRect().width);
|
|
870
|
+
e !== br.value && (br.value = e);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
me(() => {
|
|
874
|
+
Sr(), Cr();
|
|
875
|
+
});
|
|
876
|
+
let wr = v(0);
|
|
877
|
+
function Tr(e) {
|
|
878
|
+
wr.value = +(e === "start");
|
|
879
|
+
}
|
|
880
|
+
let Er = v(!1), Dr = v({
|
|
881
|
+
width: 0,
|
|
882
|
+
left: 0
|
|
883
|
+
});
|
|
884
|
+
b([T, E], async () => {
|
|
885
|
+
if (await le(), !_r.value || !vr.value) {
|
|
886
|
+
Er.value = !1, Dr.value = {
|
|
887
|
+
width: 0,
|
|
888
|
+
left: 0
|
|
889
|
+
};
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
let e = _r.value.getBoundingClientRect(), t = vr.value.getBoundingClientRect();
|
|
893
|
+
Er.value = e.x + e.width > t.x;
|
|
894
|
+
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width, a = (n + r) / 2;
|
|
895
|
+
Dr.value = {
|
|
896
|
+
width: i,
|
|
897
|
+
left: a - i / 2
|
|
898
|
+
};
|
|
899
|
+
}), me(() => {
|
|
900
|
+
Sr(), Cr();
|
|
901
|
+
}), b(() => S.labelLeft, () => {
|
|
902
|
+
le(Sr);
|
|
903
|
+
}, { deep: !0 }), b(() => S.labelRight, () => {
|
|
904
|
+
le(Cr);
|
|
905
|
+
}, { deep: !0 });
|
|
906
|
+
let $ = f(() => {
|
|
907
|
+
let t = "", n = "", r = !1;
|
|
908
|
+
if (e(S.customFormat)) try {
|
|
909
|
+
let e = S.customFormat({
|
|
910
|
+
absoluteIndex: T.value,
|
|
911
|
+
seriesIndex: T.value,
|
|
912
|
+
datapoint: S.selectedSeries,
|
|
913
|
+
timeLabel: S.preciseLabels[T.value],
|
|
914
|
+
side: "left"
|
|
915
|
+
}), i = S.customFormat({
|
|
916
|
+
absoluteIndex: Bt.value,
|
|
917
|
+
seriesIndex: -1,
|
|
918
|
+
datapoint: S.selectedSeries,
|
|
919
|
+
timeLabel: S.useValueRange ? null : S.preciseLabels[Bt.value],
|
|
920
|
+
side: "right"
|
|
921
|
+
});
|
|
922
|
+
typeof e == "string" && typeof i == "string" && (t = e, n = i, r = !0);
|
|
923
|
+
} catch {
|
|
924
|
+
r = !1;
|
|
925
|
+
}
|
|
926
|
+
if (!r) {
|
|
927
|
+
let e = S.useValueRange ? { text: String(Math.round(T.value * 1e3) / 1e3) } : S.usePreciseLabels ? S.preciseLabels.find((e) => e.absoluteIndex === T.value) : S.timeLabels.find((e) => e.absoluteIndex === T.value), r = S.useValueRange ? { text: String(Math.round(E.value * 1e3) / 1e3) } : S.usePreciseLabels ? S.preciseLabels.find((e) => e.absoluteIndex === Bt.value) : S.timeLabels.find((e) => e.absoluteIndex === Bt.value);
|
|
928
|
+
t = e ? e.text : "", n = r ? r.text : "";
|
|
929
|
+
}
|
|
930
|
+
return {
|
|
931
|
+
left: t,
|
|
932
|
+
right: n
|
|
933
|
+
};
|
|
934
|
+
});
|
|
935
|
+
fe(() => {
|
|
936
|
+
dn.value && dn.value.disconnect(), J && X && window.removeEventListener(J, X), Y && Z && window.removeEventListener(Y, Z), J = Y = null, X = Z = null, clearTimeout(null);
|
|
937
|
+
});
|
|
938
|
+
let Or = f(() => {
|
|
939
|
+
if (!cn.value || G.value === null) return null;
|
|
940
|
+
if (S.useValueRange) {
|
|
941
|
+
let e = G.value;
|
|
942
|
+
return e < W.value.x || e > W.value.x + W.value.width ? null : {
|
|
943
|
+
x1: e,
|
|
944
|
+
x2: e,
|
|
945
|
+
y1: 0,
|
|
946
|
+
y2: Math.max(R.value.height, 0),
|
|
947
|
+
stroke: S.minimapIndicatorColor,
|
|
948
|
+
"stroke-linecap": "round",
|
|
949
|
+
"stroke-dasharray": 2,
|
|
950
|
+
"stroke-width": 1
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
if (G.value >= B.value && G.value < mn.value) {
|
|
954
|
+
let e = G.value, t = V.value * e + (S.minimapCompact ? 0 : V.value / 2);
|
|
955
|
+
return {
|
|
956
|
+
x1: t,
|
|
957
|
+
x2: t,
|
|
958
|
+
y1: 0,
|
|
959
|
+
y2: Math.max(R.value.height, 0),
|
|
960
|
+
stroke: S.minimapIndicatorColor,
|
|
961
|
+
"stroke-linecap": "round",
|
|
962
|
+
"stroke-dasharray": 2,
|
|
963
|
+
"stroke-width": 1
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
return null;
|
|
967
|
+
}), kr = f(() => Number(T.value) < Number(E.value) - 1), Ar = f(() => Number(T.value) > Number(S.min)), jr = f(() => Number(E.value) < Number(S.max)), Mr = f(() => Number(E.value) > Number(T.value) + 1);
|
|
968
|
+
function Nr(e) {
|
|
969
|
+
let t = Number(T.value) + e;
|
|
970
|
+
e > 0 && !kr.value || e < 0 && !Ar.value || (O.value = !0, M.value = t, P());
|
|
971
|
+
}
|
|
972
|
+
function Pr(e) {
|
|
973
|
+
let t = Number(E.value) + e;
|
|
974
|
+
e > 0 && !jr.value || e < 0 && !Mr.value || (O.value = !0, N.value = t, P());
|
|
975
|
+
}
|
|
976
|
+
let Fr = {
|
|
977
|
+
plus: () => Nr(1),
|
|
978
|
+
minus: () => Nr(-1),
|
|
979
|
+
canPlus: kr,
|
|
980
|
+
canMinus: Ar
|
|
981
|
+
}, Ir = {
|
|
982
|
+
plus: () => Pr(1),
|
|
983
|
+
minus: () => Pr(-1),
|
|
984
|
+
canPlus: jr,
|
|
985
|
+
canMinus: Mr
|
|
986
|
+
};
|
|
987
|
+
function Lr(e) {
|
|
988
|
+
if (!e || Rr(e.target)) return;
|
|
989
|
+
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
990
|
+
(n || r) && (e.preventDefault(), e.stopPropagation(), r ? (Fr.plus(), Ir.plus()) : (Fr.minus(), Ir.minus()));
|
|
991
|
+
}
|
|
992
|
+
function Rr(e) {
|
|
993
|
+
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
994
|
+
}
|
|
995
|
+
function zr(e) {
|
|
996
|
+
if (!D.value || !S.minimapCompact) return;
|
|
997
|
+
let t = w.value;
|
|
998
|
+
if (!t) return;
|
|
999
|
+
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
1000
|
+
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
1001
|
+
}
|
|
1002
|
+
function Br(e, t) {
|
|
1003
|
+
if (!t || Rr(t.target)) return;
|
|
1004
|
+
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
1005
|
+
(r || i) && (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? Fr.plus() : Fr.minus() : i ? Ir.plus() : Ir.minus(), le(() => zr(e)));
|
|
1006
|
+
}
|
|
1007
|
+
let Vr = f(() => ({
|
|
1008
|
+
tabindex: 0,
|
|
1009
|
+
role: "slider",
|
|
1010
|
+
"aria-label": "Range start",
|
|
1011
|
+
"aria-valuemin": Number(S.min),
|
|
1012
|
+
"aria-valuemax": Math.max(Number(S.min), Number(E.value) - 1),
|
|
1013
|
+
"aria-valuenow": Number(T.value)
|
|
1014
|
+
})), Hr = f(() => ({
|
|
1015
|
+
tabindex: 0,
|
|
1016
|
+
role: "slider",
|
|
1017
|
+
"aria-label": "Range end",
|
|
1018
|
+
"aria-valuemin": Math.min(Number(S.max), Number(T.value) + 1),
|
|
1019
|
+
"aria-valuemax": Number(S.max),
|
|
1020
|
+
"aria-valuenow": Number(E.value)
|
|
1021
|
+
}));
|
|
1022
|
+
function Ur(e) {
|
|
1023
|
+
if (!Lt.value) return 0;
|
|
1024
|
+
let t = Lt.value.getBoundingClientRect();
|
|
1025
|
+
if (!t.width) return 0;
|
|
1026
|
+
let n = (e - t.left) / t.width;
|
|
1027
|
+
return Math.min(1, Math.max(0, n)) * R.value.width;
|
|
1028
|
+
}
|
|
1029
|
+
function Wr(e) {
|
|
1030
|
+
let t = Math.max(0, z.value - 1), n = Math.max(1, R.value.width), r = Math.min(1, Math.max(0, e / n));
|
|
1031
|
+
return Math.min(t, Math.max(0, Math.round(r * t)));
|
|
1032
|
+
}
|
|
1033
|
+
function Gr(e, t) {
|
|
1034
|
+
let n = Math.min(Math.max(0, t), Math.max(1, R.value.width));
|
|
1035
|
+
if (S.useValueRange) {
|
|
1036
|
+
let t = Wt(n);
|
|
1037
|
+
if (e === "start") {
|
|
1038
|
+
let e = Math.min(t, Number(E.value) - j.value);
|
|
1039
|
+
M.value = e, Xt(e);
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
if (e === "end") {
|
|
1043
|
+
let e = Math.max(Number(T.value) + j.value, t), n = Math.min(Number(S.max), e);
|
|
1044
|
+
N.value = n, Zt(n);
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
let r = Wr(n);
|
|
1049
|
+
if (e === "start") {
|
|
1050
|
+
let e = Math.min(S.min + r, Number(E.value) - 1);
|
|
1051
|
+
M.value = e, Xt(e);
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
if (e === "end") {
|
|
1055
|
+
let e = Math.max(Number(T.value) + 1, S.min + r + 1), t = Math.min(S.max, e);
|
|
1056
|
+
N.value = t, Zt(t);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
function Kr(e = !1) {
|
|
1060
|
+
let t = Pt.value;
|
|
1061
|
+
Nt.value = null, A.value = null, Pt.value = !1, Ft.value = 0, It.value = 0, e && t && P();
|
|
1062
|
+
}
|
|
1063
|
+
function qr(e, t) {
|
|
1064
|
+
if (Nt.value !== e || A.value !== t.pointerId || !un.value) return;
|
|
1065
|
+
if (t.pointerType === "mouse" && !(t.buttons & 1)) {
|
|
1066
|
+
Kr(!0);
|
|
1067
|
+
return;
|
|
1068
|
+
}
|
|
1069
|
+
t.preventDefault();
|
|
1070
|
+
let n = t.clientX - Ft.value;
|
|
1071
|
+
if (!Pt.value) {
|
|
1072
|
+
if (Math.abs(n) < 4) return;
|
|
1073
|
+
Pt.value = !0, O.value = !0, xr.value = !0;
|
|
1074
|
+
}
|
|
1075
|
+
let r = Ur(t.clientX) - It.value;
|
|
1076
|
+
Gr(e, e === "start" ? r + Jt.value : r);
|
|
1077
|
+
}
|
|
1078
|
+
function Jr(e, t) {
|
|
1079
|
+
if (Nt.value !== e || A.value !== t.pointerId) return;
|
|
1080
|
+
let n = t.currentTarget, r = t.pointerId;
|
|
1081
|
+
Kr(!0), n?.hasPointerCapture?.(r) && n.releasePointerCapture(r);
|
|
1082
|
+
}
|
|
1083
|
+
function Yr(e, t) {
|
|
1084
|
+
Nt.value === e && A.value === t.pointerId && Kr(!0);
|
|
1085
|
+
}
|
|
1086
|
+
function Xr(e, t) {
|
|
1087
|
+
if (!D.value || !S.minimapCompact || !un.value || t.pointerType === "mouse" && t.button !== 0 || A.value !== null) return;
|
|
1088
|
+
t.preventDefault(), t.stopPropagation(), G.value = null;
|
|
1089
|
+
let n = Ur(t.clientX), r = e === "start" ? W.value.x - Jt.value : W.value.x + W.value.width;
|
|
1090
|
+
Nt.value = e, A.value = t.pointerId, Pt.value = !1, Ft.value = t.clientX, It.value = n - r, t.currentTarget?.setPointerCapture?.(t.pointerId);
|
|
1091
|
+
}
|
|
1092
|
+
b(k, (e) => {
|
|
1093
|
+
!e && A.value !== null && Kr(!0);
|
|
1094
|
+
});
|
|
1095
|
+
let Zr = f(() => B.value), Qr = f(() => Math.max(B.value, mn.value - 1));
|
|
1096
|
+
f(() => {
|
|
1097
|
+
if (!D.value || !S.minimapCompact || !S.allMinimaps.length) return [];
|
|
1098
|
+
let e = Zr.value, t = Qr.value;
|
|
1099
|
+
return U.value.flatMap((n) => {
|
|
1100
|
+
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
1101
|
+
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
1102
|
+
return i && r.push({
|
|
1103
|
+
key: `${n.key}-left-${i.i}`,
|
|
1104
|
+
x: i.x,
|
|
1105
|
+
y: i.y,
|
|
1106
|
+
color: n.color
|
|
1107
|
+
}), a && t !== e && r.push({
|
|
1108
|
+
key: `${n.key}-right-${a.i}`,
|
|
1109
|
+
x: a.x,
|
|
1110
|
+
y: a.y,
|
|
1111
|
+
color: n.color
|
|
1112
|
+
}), r;
|
|
1113
|
+
});
|
|
1114
|
+
});
|
|
1115
|
+
let $r = f(() => Math.min(40, Math.max(20, S.handleWidth))), ei = f(() => Math.max(Dt, $r.value)), ti = f(() => Math.max(Dt, Number(R.value.height) || 0)), ni = f(() => (R.value.height - ti.value) / 2), ri = f(() => W.value.x), ii = f(() => W.value.x + W.value.width);
|
|
1116
|
+
return Ot({
|
|
1117
|
+
setStartValue: Kn,
|
|
1118
|
+
setEndValue: Jn,
|
|
1119
|
+
setRangeValues: Yn
|
|
1120
|
+
}), (e, t) => (_(), m("div", {
|
|
1121
|
+
"data-minimap": D.value,
|
|
1122
|
+
"data-dom-to-png-ignore": "",
|
|
1123
|
+
"data-dom-to-png-ignore-layout": "",
|
|
1124
|
+
class: "vue-data-ui-zoom",
|
|
1125
|
+
ref_key: "zoomWrapper",
|
|
1126
|
+
ref: w,
|
|
1127
|
+
onMousedown: ur,
|
|
1128
|
+
onTouchstart: ur,
|
|
1129
|
+
style: g(jt.value)
|
|
1130
|
+
}, [h("div", Ce, [l.valueStart !== l.refreshStartPoint || l.valueEnd !== Qt.value ? (_(), m("div", we, [he(e.$slots, "reset-action", { reset: ln }, () => [h("button", {
|
|
1131
|
+
tabindex: "0",
|
|
1132
|
+
role: "button",
|
|
1133
|
+
class: "vue-data-ui-refresh-button",
|
|
1134
|
+
style: g({
|
|
1135
|
+
top: D.value ? "36px" : "-16px",
|
|
1136
|
+
cursor: l.isCursorPointer ? "pointer" : "default"
|
|
1137
|
+
}),
|
|
1138
|
+
onClick: ln
|
|
1139
|
+
}, [oe(ie, {
|
|
1140
|
+
name: "refresh",
|
|
1141
|
+
stroke: l.textColor
|
|
1142
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : p("", !0)]), h("div", {
|
|
1143
|
+
class: "double-range-slider",
|
|
1144
|
+
ref_key: "minimapWrapper",
|
|
1145
|
+
ref: un,
|
|
1146
|
+
style: g([{ "z-index": "0" }, D.value ? {
|
|
1147
|
+
"--minimap-unit-px": V.value + "px",
|
|
1148
|
+
"--minimap-offset-px": (l.minimapCompact ? 0 : V.value / 2) + "px"
|
|
1149
|
+
} : void 0]),
|
|
1150
|
+
onMouseenter: t[26] ||= (e) => xr.value = !0,
|
|
1151
|
+
onMouseleave: t[27] ||= (e) => xr.value = !1
|
|
1152
|
+
}, [
|
|
1153
|
+
D.value ? (_(), m("div", Te, [(_(), m("svg", {
|
|
1154
|
+
ref_key: "minimapSvg",
|
|
1155
|
+
ref: Lt,
|
|
1156
|
+
key: `mm-${l.minimapMerged ? "merged" : "split"}-${l.minimapCompact ? "compact" : "normal"}`,
|
|
1157
|
+
xmlns: _e(te),
|
|
1158
|
+
viewBox: `0 0 ${Math.max(0, R.value.width)} ${Math.max(0, R.value.height)}`,
|
|
1159
|
+
preserveAspectRatio: "none"
|
|
1160
|
+
}, [
|
|
1161
|
+
h("defs", null, [oe(ae, {
|
|
1162
|
+
t: "linear",
|
|
1163
|
+
id: Mt.value,
|
|
1164
|
+
x1: "0%",
|
|
1165
|
+
y1: "0%",
|
|
1166
|
+
x2: "0%",
|
|
1167
|
+
y2: "100%",
|
|
1168
|
+
stops: [[
|
|
1169
|
+
"0%",
|
|
1170
|
+
l.minimapLineColor,
|
|
1171
|
+
.31
|
|
1172
|
+
], [
|
|
1173
|
+
"100%",
|
|
1174
|
+
"transparent",
|
|
1175
|
+
0
|
|
1176
|
+
]]
|
|
1177
|
+
}, null, 8, ["id", "stops"]), h("clipPath", { id: `selection_clip_${Mt.value}` }, [h("rect", {
|
|
1178
|
+
x: W.value.x,
|
|
1179
|
+
y: "0",
|
|
1180
|
+
width: Math.max(0, W.value.width),
|
|
1181
|
+
height: Math.max(R.value.height, 0)
|
|
1182
|
+
}, null, 8, Oe)], 8, De)]),
|
|
1183
|
+
l.minimapCompact ? (_(), m("rect", {
|
|
1184
|
+
key: 0,
|
|
1185
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
1186
|
+
x: 0,
|
|
1187
|
+
y: 0,
|
|
1188
|
+
width: R.value.width,
|
|
1189
|
+
height: R.value.height,
|
|
1190
|
+
fill: "none",
|
|
1191
|
+
stroke: l.minimapFrameColor,
|
|
1192
|
+
rx: 3
|
|
1193
|
+
}, null, 8, ke)) : p("", !0),
|
|
1194
|
+
e.$slots.slotMap ? p("", !0) : (_(), m(d, { key: 1 }, [l.minimapMerged ? (_(), m("path", {
|
|
1195
|
+
key: 0,
|
|
1196
|
+
d: `M${H.value.fullSet}`,
|
|
1197
|
+
stroke: `${l.minimapLineColor}`,
|
|
1198
|
+
fill: "none",
|
|
1199
|
+
"stroke-width": "1",
|
|
1200
|
+
"stroke-linecap": "round",
|
|
1201
|
+
"stroke-linejoin": "round",
|
|
1202
|
+
style: { opacity: "0.6" }
|
|
1203
|
+
}, null, 8, Ae)) : p("", !0), l.minimapMerged && !l.minimapCompact ? (_(), m("path", {
|
|
1204
|
+
key: 1,
|
|
1205
|
+
d: `M${V.value / 2},${Math.max(R.value.height, 0)} ${H.value.fullSet} L${R.value.width - V.value / 2},${Math.max(R.value.height, 0)}Z`,
|
|
1206
|
+
fill: `url(#${Mt.value})`,
|
|
1207
|
+
stroke: "none",
|
|
1208
|
+
style: { opacity: "0.6" }
|
|
1209
|
+
}, null, 8, je)) : l.minimapMerged ? p("", !0) : (_(), m(d, { key: 2 }, [
|
|
1210
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), m("g", null, [(_(!0), m(d, null, y(e.points, (n, r) => (_(), m(d, null, [e && !isNaN(n.y) ? (_(), m("rect", {
|
|
1211
|
+
key: 0,
|
|
1212
|
+
x: bn(n.x, t, r),
|
|
1213
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1214
|
+
width: xn(t, r),
|
|
1215
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1216
|
+
fill: e.color,
|
|
1217
|
+
style: { opacity: .6 }
|
|
1218
|
+
}, null, 8, Me)) : p("", !0)], 64))), 256))]))), 256)),
|
|
1219
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "line"), (e) => (_(), m("g", null, [e.isVisible ? (_(), m("path", {
|
|
1220
|
+
key: 0,
|
|
1221
|
+
d: `M ${e.fullSet}`,
|
|
1222
|
+
fill: "none",
|
|
1223
|
+
stroke: e.color,
|
|
1224
|
+
style: { opacity: "0.6" },
|
|
1225
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1226
|
+
}, null, 8, Ne)) : p("", !0), e.isVisible && l.cutNullValues ? (_(!0), m(d, { key: 1 }, y(e.fullMarkers, (t) => (_(), m("circle", {
|
|
1227
|
+
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
1228
|
+
cx: t.x,
|
|
1229
|
+
cy: t.y,
|
|
1230
|
+
r: "2",
|
|
1231
|
+
fill: e.color,
|
|
1232
|
+
stroke: L.value,
|
|
1233
|
+
"stroke-width": "0.5",
|
|
1234
|
+
style: { opacity: "0.6" }
|
|
1235
|
+
}, null, 8, Pe))), 128)) : p("", !0)]))), 256)),
|
|
1236
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), m("g", null, [(_(!0), m(d, null, y(e.points, (t) => (_(), m("g", null, [e.isVisible && t.value !== null ? (_(), m("circle", {
|
|
1237
|
+
key: `sel-plot-under-${e.key}-${t.i}`,
|
|
1238
|
+
cx: t.x,
|
|
1239
|
+
cy: t.y,
|
|
1240
|
+
r: "2",
|
|
1241
|
+
fill: e.color,
|
|
1242
|
+
stroke: L.value,
|
|
1243
|
+
"stroke-width": "0.5",
|
|
1244
|
+
style: { opacity: "0.6" }
|
|
1245
|
+
}, null, 8, Fe)) : p("", !0)]))), 256))]))), 256))
|
|
1246
|
+
], 64))], 64)),
|
|
1247
|
+
h("rect", {
|
|
1248
|
+
x: W.value.x,
|
|
1249
|
+
y: 0,
|
|
1250
|
+
width: Math.max(0, W.value.width),
|
|
1251
|
+
height: Math.max(R.value.height, 0),
|
|
1252
|
+
fill: L.value,
|
|
1253
|
+
rx: l.minimapSelectionRadius,
|
|
1254
|
+
stroke: "none"
|
|
1255
|
+
}, null, 8, Ie),
|
|
1256
|
+
h("rect", {
|
|
1257
|
+
x: W.value.x,
|
|
1258
|
+
y: 0,
|
|
1259
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1260
|
+
height: Math.max(R.value.height, 0),
|
|
1261
|
+
rx: l.minimapSelectionRadius,
|
|
1262
|
+
fill: L.value,
|
|
1263
|
+
style: g({ opacity: Qn.value || O.value ? 0 : 1 })
|
|
1264
|
+
}, null, 12, Le),
|
|
1265
|
+
h("rect", {
|
|
1266
|
+
x: W.value.x,
|
|
1267
|
+
y: 0,
|
|
1268
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1269
|
+
height: Math.max(R.value.height, 0),
|
|
1270
|
+
fill: l.minimapSelectedColor,
|
|
1271
|
+
rx: l.minimapSelectionRadius,
|
|
1272
|
+
style: g({ opacity: l.minimapSelectedColorOpacity }),
|
|
1273
|
+
tabindex: "0",
|
|
1274
|
+
role: "slider",
|
|
1275
|
+
"aria-label": "Selected range",
|
|
1276
|
+
"aria-valuemin": Number(S.min),
|
|
1277
|
+
"aria-valuemax": Number(S.max),
|
|
1278
|
+
"aria-valuenow": Number(T.value),
|
|
1279
|
+
"aria-valuetext": $.value.left && $.value.right ? `${$.value.left} – ${$.value.right}` : void 0,
|
|
1280
|
+
onKeydown: Lr
|
|
1281
|
+
}, null, 44, Re),
|
|
1282
|
+
!l.minimapMerged && kn.value < 0 ? (_(), m("line", {
|
|
1283
|
+
key: 2,
|
|
1284
|
+
class: "slicer-minimap-zero-line",
|
|
1285
|
+
x1: 0,
|
|
1286
|
+
x2: R.value.width,
|
|
1287
|
+
y1: jn.value,
|
|
1288
|
+
y2: jn.value,
|
|
1289
|
+
stroke: l.minimapFrameColor,
|
|
1290
|
+
"stroke-width": "0.5"
|
|
1291
|
+
}, null, 8, ze)) : p("", !0),
|
|
1292
|
+
e.$slots.slotMap ? p("", !0) : (_(), m(d, { key: 3 }, [l.minimapMerged ? (_(), m("g", Be, [
|
|
1293
|
+
H.value && H.value.sliced && H.value.sliced.length ? (_(), m(d, { key: 0 }, [H.value.selectionSet ? (_(), m("path", {
|
|
1294
|
+
key: 0,
|
|
1295
|
+
d: `M ${H.value.selectionSet}`,
|
|
1296
|
+
stroke: `${l.minimapLineColor}`,
|
|
1297
|
+
fill: "transparent",
|
|
1298
|
+
"stroke-width": "2",
|
|
1299
|
+
"stroke-linecap": "round",
|
|
1300
|
+
"stroke-linejoin": "round"
|
|
1301
|
+
}, null, 8, Ve)) : p("", !0)], 64)) : p("", !0),
|
|
1302
|
+
H.value && H.value.firstPlot ? (_(), m("circle", {
|
|
1303
|
+
key: 1,
|
|
1304
|
+
cx: H.value.firstPlot.x,
|
|
1305
|
+
cy: H.value.firstPlot.y,
|
|
1306
|
+
"stroke-width": "0.5",
|
|
1307
|
+
stroke: L.value,
|
|
1308
|
+
r: "3",
|
|
1309
|
+
fill: l.minimapLineColor
|
|
1310
|
+
}, null, 8, He)) : p("", !0),
|
|
1311
|
+
H.value && H.value.lastPlot ? (_(), m("circle", {
|
|
1312
|
+
key: 2,
|
|
1313
|
+
cx: H.value.lastPlot.x,
|
|
1314
|
+
cy: H.value.lastPlot.y,
|
|
1315
|
+
"stroke-width": "0.5",
|
|
1316
|
+
stroke: L.value,
|
|
1317
|
+
r: "3",
|
|
1318
|
+
fill: l.minimapLineColor
|
|
1319
|
+
}, null, 8, Ue)) : p("", !0)
|
|
1320
|
+
])) : (_(), m("g", We, [
|
|
1321
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), m("g", null, [(_(!0), m(d, null, y(e.points, (n, r) => (_(), m(d, null, [e && !isNaN(n.y) ? (_(), m("rect", {
|
|
1322
|
+
key: 0,
|
|
1323
|
+
x: bn(n.x, t, r),
|
|
1324
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1325
|
+
width: xn(t, r),
|
|
1326
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1327
|
+
fill: e.color,
|
|
1328
|
+
style: g({ opacity: +(r >= M.value && r < N.value) })
|
|
1329
|
+
}, null, 12, Ge)) : p("", !0)], 64))), 256))]))), 256)),
|
|
1330
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), m("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), m("path", {
|
|
1331
|
+
key: 0,
|
|
1332
|
+
d: `M ${e.selectionSet}`,
|
|
1333
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${l.uuid})` : e.color,
|
|
1334
|
+
fill: "transparent",
|
|
1335
|
+
"stroke-width": "2",
|
|
1336
|
+
"stroke-linecap": "round",
|
|
1337
|
+
"stroke-linejoin": "round",
|
|
1338
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1339
|
+
}, null, 8, Ke)) : p("", !0)]))), 128)),
|
|
1340
|
+
(_(!0), m(d, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), m("g", { key: String(e.key) }, [(_(!0), m(d, null, y(e.sliced, (t) => (_(), m("g", null, [e.isVisible && t.value !== null ? (_(), m("circle", {
|
|
1341
|
+
key: 0,
|
|
1342
|
+
cx: t.x,
|
|
1343
|
+
cy: t.y,
|
|
1344
|
+
r: "2",
|
|
1345
|
+
fill: e.color,
|
|
1346
|
+
stroke: L.value,
|
|
1347
|
+
"stroke-width": "0.5",
|
|
1348
|
+
style: { opacity: "0.6" }
|
|
1349
|
+
}, null, 8, qe)) : p("", !0)]))), 256))]))), 128))
|
|
1350
|
+
]))], 64)),
|
|
1351
|
+
e.$slots.slotMap ? he(e.$slots, "slotMap", de(se({
|
|
1352
|
+
width: Math.max(0, R.value.width),
|
|
1353
|
+
height: Math.max(0, R.value.height),
|
|
1354
|
+
zeroY: jn.value,
|
|
1355
|
+
unitW: Math.max(0, V.value)
|
|
1356
|
+
})), void 0, !0, 4) : p("", !0),
|
|
1357
|
+
G.value !== null && !Q.value ? (_(), m("line", de(ce({ key: 5 }, Or.value)), null, 16)) : p("", !0),
|
|
1358
|
+
h("rect", {
|
|
1359
|
+
x: 0,
|
|
1360
|
+
y: 0,
|
|
1361
|
+
width: Math.max(0, R.value.width),
|
|
1362
|
+
height: Math.max(0, R.value.height),
|
|
1363
|
+
fill: "transparent",
|
|
1364
|
+
style: g([{ "pointer-events": "all !important" }, { cursor: l.enableSelectionDrag ? Q.value ? "grabbing" : "grab" : "default" }]),
|
|
1365
|
+
onMousedown: t[0] ||= (e) => Q.value = !0,
|
|
1366
|
+
onMouseup: t[1] ||= (e) => Q.value = !1,
|
|
1367
|
+
onMousemove: Hn,
|
|
1368
|
+
onMouseleave: Un
|
|
1369
|
+
}, null, 44, Je),
|
|
1370
|
+
D.value && l.minimapCompact ? (_(), m(d, { key: 6 }, [h("g", ce({
|
|
1371
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1372
|
+
transform: `translate(${ri.value}, 0)`
|
|
1373
|
+
}, Vr.value, {
|
|
1374
|
+
onKeydown: t[2] ||= (e) => Br("start", e),
|
|
1375
|
+
onPointerdown: t[3] ||= x((e) => Xr("start", e), ["stop", "prevent"]),
|
|
1376
|
+
onPointermove: t[4] ||= x((e) => qr("start", e), ["stop", "prevent"]),
|
|
1377
|
+
onPointerup: t[5] ||= x((e) => Jr("start", e), ["stop", "prevent"]),
|
|
1378
|
+
onPointercancel: t[6] ||= x((e) => Jr("start", e), ["stop", "prevent"]),
|
|
1379
|
+
onLostpointercapture: t[7] ||= (e) => Yr("start", e),
|
|
1380
|
+
onClick: t[8] ||= x(() => {}, ["stop", "prevent"])
|
|
1381
|
+
}), [
|
|
1382
|
+
h("rect", {
|
|
1383
|
+
class: "vue-ui-zoom-compact-minimap-handle-hit",
|
|
1384
|
+
x: -ei.value,
|
|
1385
|
+
y: ni.value,
|
|
1386
|
+
width: ei.value,
|
|
1387
|
+
height: ti.value,
|
|
1388
|
+
fill: "transparent"
|
|
1389
|
+
}, null, 8, Xe),
|
|
1390
|
+
h("rect", {
|
|
1391
|
+
class: "vue-ui-zoom-compact-minimap-handle-visual",
|
|
1392
|
+
x: -$r.value,
|
|
1393
|
+
y: 0,
|
|
1394
|
+
width: $r.value,
|
|
1395
|
+
height: R.value.height,
|
|
1396
|
+
fill: l.handleFill || L.value,
|
|
1397
|
+
stroke: l.handleBorderColor || l.textColor,
|
|
1398
|
+
"stroke-width": l.handleBorderWidth,
|
|
1399
|
+
rx: 3
|
|
1400
|
+
}, null, 8, Ze),
|
|
1401
|
+
l.handleType && l.handleType !== "empty" ? (_(), m("g", {
|
|
1402
|
+
key: 0,
|
|
1403
|
+
class: "compact-handle-icon",
|
|
1404
|
+
transform: `translate(${-$r.value}, 0)`,
|
|
1405
|
+
style: { "pointer-events": "none" }
|
|
1406
|
+
}, [(_(), m("svg", {
|
|
1407
|
+
width: $r.value,
|
|
1408
|
+
height: R.value.height,
|
|
1409
|
+
viewBox: "0 0 20 20",
|
|
1410
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1411
|
+
}, [l.handleType === "arrow" ? (_(), m("path", {
|
|
1412
|
+
key: 0,
|
|
1413
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1414
|
+
fill: L.value,
|
|
1415
|
+
stroke: l.handleIconColor || l.textColor,
|
|
1416
|
+
"stroke-width": .618,
|
|
1417
|
+
"stroke-linejoin": "round",
|
|
1418
|
+
"stroke-linecap": "round"
|
|
1419
|
+
}, null, 8, et)) : l.handleType === "chevron" ? (_(), m("path", {
|
|
1420
|
+
key: 1,
|
|
1421
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1422
|
+
fill: "none",
|
|
1423
|
+
stroke: l.handleIconColor || l.textColor,
|
|
1424
|
+
"stroke-width": .618,
|
|
1425
|
+
"stroke-linejoin": "round",
|
|
1426
|
+
"stroke-linecap": "round"
|
|
1427
|
+
}, null, 8, tt)) : l.handleType === "grab" ? (_(), m("path", {
|
|
1428
|
+
key: 2,
|
|
1429
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1430
|
+
fill: l.handleIconColor || l.textColor,
|
|
1431
|
+
stroke: "none",
|
|
1432
|
+
opacity: "0.6"
|
|
1433
|
+
}, null, 8, nt)) : p("", !0)], 8, $e))], 8, Qe)) : p("", !0)
|
|
1434
|
+
], 16, Ye), h("g", ce({
|
|
1435
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1436
|
+
transform: `translate(${ii.value}, 0)`
|
|
1437
|
+
}, Hr.value, {
|
|
1438
|
+
onKeydown: t[9] ||= (e) => Br("end", e),
|
|
1439
|
+
onPointerdown: t[10] ||= x((e) => Xr("end", e), ["stop", "prevent"]),
|
|
1440
|
+
onPointermove: t[11] ||= x((e) => qr("end", e), ["stop", "prevent"]),
|
|
1441
|
+
onPointerup: t[12] ||= x((e) => Jr("end", e), ["stop", "prevent"]),
|
|
1442
|
+
onPointercancel: t[13] ||= x((e) => Jr("end", e), ["stop", "prevent"]),
|
|
1443
|
+
onLostpointercapture: t[14] ||= (e) => Yr("end", e),
|
|
1444
|
+
onClick: t[15] ||= x(() => {}, ["stop", "prevent"])
|
|
1445
|
+
}), [
|
|
1446
|
+
h("rect", {
|
|
1447
|
+
class: "vue-ui-zoom-compact-minimap-handle-hit",
|
|
1448
|
+
x: 0,
|
|
1449
|
+
y: ni.value,
|
|
1450
|
+
width: ei.value,
|
|
1451
|
+
height: ti.value,
|
|
1452
|
+
fill: "transparent"
|
|
1453
|
+
}, null, 8, it),
|
|
1454
|
+
h("rect", {
|
|
1455
|
+
class: "vue-ui-zoom-compact-minimap-handle-visual",
|
|
1456
|
+
x: 0,
|
|
1457
|
+
y: 0,
|
|
1458
|
+
width: $r.value,
|
|
1459
|
+
height: R.value.height,
|
|
1460
|
+
fill: l.handleFill || L.value,
|
|
1461
|
+
stroke: l.handleBorderColor || l.textColor,
|
|
1462
|
+
"stroke-width": l.handleBorderWidth,
|
|
1463
|
+
rx: 3
|
|
1464
|
+
}, null, 8, at),
|
|
1465
|
+
l.handleType && l.handleType !== "empty" ? (_(), m("g", ot, [(_(), m("svg", {
|
|
1466
|
+
width: $r.value,
|
|
1467
|
+
height: R.value.height,
|
|
1468
|
+
viewBox: "0 0 20 20",
|
|
1469
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1470
|
+
}, [l.handleType === "arrow" ? (_(), m("path", {
|
|
1471
|
+
key: 0,
|
|
1472
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1473
|
+
fill: L.value,
|
|
1474
|
+
stroke: l.handleIconColor || l.textColor,
|
|
1475
|
+
"stroke-width": .618,
|
|
1476
|
+
"stroke-linejoin": "round",
|
|
1477
|
+
"stroke-linecap": "round"
|
|
1478
|
+
}, null, 8, ct)) : l.handleType === "chevron" ? (_(), m("path", {
|
|
1479
|
+
key: 1,
|
|
1480
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1481
|
+
fill: "none",
|
|
1482
|
+
stroke: l.handleIconColor || l.textColor,
|
|
1483
|
+
"stroke-width": .618,
|
|
1484
|
+
"stroke-linejoin": "round",
|
|
1485
|
+
"stroke-linecap": "round"
|
|
1486
|
+
}, null, 8, lt)) : l.handleType === "grab" ? (_(), m("path", {
|
|
1487
|
+
key: 2,
|
|
1488
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1489
|
+
fill: l.handleIconColor || l.textColor,
|
|
1490
|
+
stroke: "none",
|
|
1491
|
+
opacity: "0.6"
|
|
1492
|
+
}, null, 8, ut)) : p("", !0)], 8, st))])) : p("", !0)
|
|
1493
|
+
], 16, rt)], 64)) : p("", !0),
|
|
1494
|
+
e.$slots.slotMap ? p("", !0) : (_(), m(d, { key: 7 }, [l.minimapMerged ? (_(), m("g", dt, [
|
|
1495
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), m("circle", {
|
|
1496
|
+
key: 0,
|
|
1497
|
+
cx: H.value.firstPlot.x,
|
|
1498
|
+
cy: H.value.firstPlot.y,
|
|
1499
|
+
"stroke-width": "0.5",
|
|
1500
|
+
stroke: L.value,
|
|
1501
|
+
r: "4",
|
|
1502
|
+
fill: l.minimapLineColor
|
|
1503
|
+
}, null, 8, ft)) : p("", !0),
|
|
1504
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), m("circle", {
|
|
1505
|
+
key: 1,
|
|
1506
|
+
cx: H.value.firstPlot.x,
|
|
1507
|
+
cy: H.value.firstPlot.y,
|
|
1508
|
+
r: 2,
|
|
1509
|
+
fill: L.value
|
|
1510
|
+
}, null, 8, pt)) : p("", !0),
|
|
1511
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), m("circle", {
|
|
1512
|
+
key: 2,
|
|
1513
|
+
cx: H.value.lastPlot.x,
|
|
1514
|
+
cy: H.value.lastPlot.y,
|
|
1515
|
+
"stroke-width": "0.5",
|
|
1516
|
+
stroke: L.value,
|
|
1517
|
+
r: "4",
|
|
1518
|
+
fill: l.minimapLineColor
|
|
1519
|
+
}, null, 8, mt)) : p("", !0),
|
|
1520
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), m("circle", {
|
|
1521
|
+
key: 3,
|
|
1522
|
+
cx: H.value.lastPlot.x,
|
|
1523
|
+
cy: H.value.lastPlot.y,
|
|
1524
|
+
r: "2",
|
|
1525
|
+
fill: L.value
|
|
1526
|
+
}, null, 8, ht)) : p("", !0)
|
|
1527
|
+
])) : (_(), m("g", gt, [(_(!0), m(d, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), m("g", { key: String(e.key) }, [
|
|
1528
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), m("path", {
|
|
1529
|
+
key: 0,
|
|
1530
|
+
d: `M ${e.selectionSet}`,
|
|
1531
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${l.uuid})` : e.color,
|
|
1532
|
+
fill: "transparent",
|
|
1533
|
+
"stroke-width": "2",
|
|
1534
|
+
"stroke-linecap": "round",
|
|
1535
|
+
"stroke-linejoin": "round",
|
|
1536
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1537
|
+
}, null, 8, _t)) : p("", !0),
|
|
1538
|
+
e.isVisible && l.cutNullValues ? (_(!0), m(d, { key: 1 }, y(e.selectionMarkers, (t) => (_(), m("circle", {
|
|
1539
|
+
key: `sel-dot-${e.key}-${t.i}`,
|
|
1540
|
+
cx: t.x,
|
|
1541
|
+
cy: t.y,
|
|
1542
|
+
r: "2.5",
|
|
1543
|
+
fill: e.color,
|
|
1544
|
+
stroke: L.value,
|
|
1545
|
+
"stroke-width": "0.5"
|
|
1546
|
+
}, null, 8, vt))), 128)) : p("", !0),
|
|
1547
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), m("circle", {
|
|
1548
|
+
key: 2,
|
|
1549
|
+
cx: e.firstPlot.x,
|
|
1550
|
+
cy: e.firstPlot.y,
|
|
1551
|
+
"stroke-width": "0.5",
|
|
1552
|
+
stroke: L.value,
|
|
1553
|
+
r: "4",
|
|
1554
|
+
fill: e.color
|
|
1555
|
+
}, null, 8, yt)) : p("", !0),
|
|
1556
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), m("circle", {
|
|
1557
|
+
key: 3,
|
|
1558
|
+
cx: e.firstPlot.x,
|
|
1559
|
+
cy: e.firstPlot.y,
|
|
1560
|
+
r: "2",
|
|
1561
|
+
fill: L.value
|
|
1562
|
+
}, null, 8, bt)) : p("", !0),
|
|
1563
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), m("circle", {
|
|
1564
|
+
key: 4,
|
|
1565
|
+
cx: e.lastPlot.x,
|
|
1566
|
+
cy: e.lastPlot.y,
|
|
1567
|
+
"stroke-width": "0.5",
|
|
1568
|
+
stroke: L.value,
|
|
1569
|
+
r: "4",
|
|
1570
|
+
fill: e.color
|
|
1571
|
+
}, null, 8, xt)) : p("", !0),
|
|
1572
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), m("circle", {
|
|
1573
|
+
key: 5,
|
|
1574
|
+
cx: e.lastPlot.x,
|
|
1575
|
+
cy: e.lastPlot.y,
|
|
1576
|
+
r: "2",
|
|
1577
|
+
fill: L.value
|
|
1578
|
+
}, null, 8, St)) : p("", !0)
|
|
1579
|
+
]))), 128)), (_(!0), m(d, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), m("g", { key: String(e.key) }, [(_(!0), m(d, null, y(e.points, (t) => (_(), m("g", null, [e.isVisible && l.cutNullValues && t.value !== null ? (_(), m("circle", {
|
|
1580
|
+
key: `sel-plot-${e.key}-${t.i}`,
|
|
1581
|
+
cx: t.x,
|
|
1582
|
+
cy: t.y,
|
|
1583
|
+
r: "2.5",
|
|
1584
|
+
fill: e.color,
|
|
1585
|
+
stroke: L.value,
|
|
1586
|
+
"stroke-width": "0.5"
|
|
1587
|
+
}, null, 8, Ct)) : p("", !0)]))), 256))]))), 128))]))], 64))
|
|
1588
|
+
], 8, Ee))])) : p("", !0),
|
|
1589
|
+
h("div", {
|
|
1590
|
+
class: "slider-track",
|
|
1591
|
+
style: g({ visibility: D.value && l.minimapCompact ? "hidden" : "visible" })
|
|
1592
|
+
}, null, 4),
|
|
1593
|
+
h("div", {
|
|
1594
|
+
class: ue({
|
|
1595
|
+
"range-highlight": !0,
|
|
1596
|
+
move: l.enableSelectionDrag
|
|
1597
|
+
}),
|
|
1598
|
+
onMousedown: t[16] ||= (e) => Q.value = !0,
|
|
1599
|
+
onMouseup: t[17] ||= (e) => Q.value = !1,
|
|
1600
|
+
style: g({
|
|
1601
|
+
...I.value,
|
|
1602
|
+
cursor: Q.value ? "grabbing" : "grab",
|
|
1603
|
+
visibility: D.value && l.minimapCompact ? "hidden" : "visible"
|
|
1604
|
+
})
|
|
1605
|
+
}, null, 38),
|
|
1606
|
+
l.enableRangeHandles && !(D.value && l.minimapCompact) ? be((_(), m("input", {
|
|
1607
|
+
key: 1,
|
|
1608
|
+
"aria-label": "range-handle-left",
|
|
1609
|
+
ref_key: "rangeStart",
|
|
1610
|
+
ref: K,
|
|
1611
|
+
type: "range",
|
|
1612
|
+
step: l.precision > 0 ? 1 / 10 ** l.precision : 1,
|
|
1613
|
+
class: ue({
|
|
1614
|
+
"range-left": !0,
|
|
1615
|
+
"range-handle": !0,
|
|
1616
|
+
"range-minimap": D.value && l.verticalHandles,
|
|
1617
|
+
"range-invisible": D.value && l.minimapCompact
|
|
1618
|
+
}),
|
|
1619
|
+
min: l.min,
|
|
1620
|
+
max: l.minimapCompact && D.value && !l.useValueRange ? Math.max(0, z.value - 1) : l.max,
|
|
1621
|
+
tabindex: D.value ? -1 : 0,
|
|
1622
|
+
"onUpdate:modelValue": t[18] ||= (e) => Fn.value = e,
|
|
1623
|
+
onFocus: t[19] ||= (e) => D.value && e.target.blur(),
|
|
1624
|
+
onInput: t[20] ||= (e) => Fn.value = e.target.valueAsNumber,
|
|
1625
|
+
onChange: P,
|
|
1626
|
+
onKeyup: xe(P, ["enter"]),
|
|
1627
|
+
onBlur: P,
|
|
1628
|
+
onMouseenter: t[21] ||= (e) => Tr("start"),
|
|
1629
|
+
onPointerup: P
|
|
1630
|
+
}, null, 42, wt)), [[
|
|
1631
|
+
ye,
|
|
1632
|
+
Fn.value,
|
|
1633
|
+
void 0,
|
|
1634
|
+
{ number: !0 }
|
|
1635
|
+
]]) : p("", !0),
|
|
1636
|
+
l.enableRangeHandles && !(D.value && l.minimapCompact) ? be((_(), m("input", {
|
|
1637
|
+
key: 2,
|
|
1638
|
+
"aria-label": "range-handle-right",
|
|
1639
|
+
ref_key: "rangeEnd",
|
|
1640
|
+
ref: q,
|
|
1641
|
+
type: "range",
|
|
1642
|
+
step: l.precision > 0 ? 1 / 10 ** l.precision : 1,
|
|
1643
|
+
class: ue({
|
|
1644
|
+
"range-right": !0,
|
|
1645
|
+
"range-handle": !0,
|
|
1646
|
+
"range-minimap": D.value && l.verticalHandles,
|
|
1647
|
+
"range-invisible": D.value && l.minimapCompact
|
|
1648
|
+
}),
|
|
1649
|
+
min: l.min,
|
|
1650
|
+
max: l.minimapCompact && D.value && !l.useValueRange ? Math.max(0, z.value - 1) : l.max,
|
|
1651
|
+
tabindex: D.value ? -1 : 0,
|
|
1652
|
+
onFocus: t[22] ||= (e) => D.value && e.target.blur(),
|
|
1653
|
+
"onUpdate:modelValue": t[23] ||= (e) => In.value = e,
|
|
1654
|
+
onInput: t[24] ||= (e) => In.value = e.target.valueAsNumber,
|
|
1655
|
+
onChange: P,
|
|
1656
|
+
onKeyup: xe(P, ["enter"]),
|
|
1657
|
+
onBlur: P,
|
|
1658
|
+
onMouseenter: t[25] ||= (e) => Tr("end"),
|
|
1659
|
+
onPointerup: P
|
|
1660
|
+
}, null, 42, Tt)), [[
|
|
1661
|
+
ye,
|
|
1662
|
+
In.value,
|
|
1663
|
+
void 0,
|
|
1664
|
+
{ number: !0 }
|
|
1665
|
+
]]) : p("", !0),
|
|
1666
|
+
$.value.left ? (_(), m("div", {
|
|
1667
|
+
key: 3,
|
|
1668
|
+
ref_key: "tooltipLeft",
|
|
1669
|
+
ref: _r,
|
|
1670
|
+
class: ue({
|
|
1671
|
+
"range-tooltip": !0,
|
|
1672
|
+
"range-tooltip-visible": xr.value,
|
|
1673
|
+
"range-tooltip-arrow": I.value.arrowLeft && !l.verticalHandles,
|
|
1674
|
+
"range-tooltip-arrow-left": !I.value.arrowLeft && !l.verticalHandles
|
|
1675
|
+
}),
|
|
1676
|
+
style: g({
|
|
1677
|
+
left: I.value.tooltipLeft,
|
|
1678
|
+
color: _e(ee)(l.selectColor),
|
|
1679
|
+
backgroundColor: l.selectColor,
|
|
1680
|
+
border: `1px solid ${L.value}`,
|
|
1681
|
+
zIndex: `${wr.value + 4}`,
|
|
1682
|
+
visibility: Er.value || $.value.left === $.value.right ? "hidden" : "visible",
|
|
1683
|
+
top: D.value && l.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1684
|
+
})
|
|
1685
|
+
}, ge($.value.left), 7)) : p("", !0),
|
|
1686
|
+
(Er.value || $.value.left === $.value.right) && ($.value.left || $.value.right) ? (_(), m("div", {
|
|
1687
|
+
key: 4,
|
|
1688
|
+
ref: "tooltipMerge",
|
|
1689
|
+
class: ue({
|
|
1690
|
+
"range-tooltip": !0,
|
|
1691
|
+
"range-tooltip-visible": xr.value,
|
|
1692
|
+
"range-tooltip-arrow": !0,
|
|
1693
|
+
"range-tooltip-arrow-left": !I.value.arrowLeft && !l.verticalHandles,
|
|
1694
|
+
"range-tooltip-arrow-right": !I.value.arrowRight && !l.verticalHandles
|
|
1695
|
+
}),
|
|
1696
|
+
style: g({
|
|
1697
|
+
left: I.value.tooltipCenter,
|
|
1698
|
+
width: Dr.value.width + "px",
|
|
1699
|
+
color: _e(ee)(l.selectColor),
|
|
1700
|
+
backgroundColor: l.selectColor,
|
|
1701
|
+
border: `1px solid ${L.value}`,
|
|
1702
|
+
zIndex: "4",
|
|
1703
|
+
top: D.value && l.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1704
|
+
})
|
|
1705
|
+
}, ge($.value.left === $.value.right ? $.value.left : `${$.value.left} - ${$.value.right}`), 7)) : p("", !0),
|
|
1706
|
+
$.value.right ? (_(), m("div", {
|
|
1707
|
+
key: 5,
|
|
1708
|
+
ref_key: "tooltipRight",
|
|
1709
|
+
ref: vr,
|
|
1710
|
+
class: ue({
|
|
1711
|
+
"range-tooltip": !0,
|
|
1712
|
+
"range-tooltip-visible": xr.value,
|
|
1713
|
+
"range-tooltip-arrow": I.value.arrowRight && !l.verticalHandles,
|
|
1714
|
+
"range-tooltip-arrow-right": !I.value.arrowRight && !l.verticalHandles
|
|
1715
|
+
}),
|
|
1716
|
+
style: g({
|
|
1717
|
+
left: I.value.tooltipRight,
|
|
1718
|
+
color: _e(ee)(l.selectColor),
|
|
1719
|
+
backgroundColor: l.selectColor,
|
|
1720
|
+
border: `1px solid ${L.value}`,
|
|
1721
|
+
zIndex: "4",
|
|
1722
|
+
visibility: Er.value || $.value.left === $.value.right ? "hidden" : "visible",
|
|
1723
|
+
top: D.value && l.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1724
|
+
})
|
|
1725
|
+
}, ge($.value.right), 7)) : p("", !0)
|
|
1726
|
+
], 36)], 44, Se));
|
|
1727
|
+
}
|
|
1728
|
+
}, [["__scopeId", "data-v-a479b5b9"]]);
|
|
1729
|
+
//#endregion
|
|
1730
|
+
export { Ot as t };
|