vue-data-ui 3.16.5 → 3.17.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 +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -0,0 +1,1484 @@
|
|
|
1
|
+
import { useCssVars as Dl, ref as h, computed as s, watch as le, onMounted as Xl, onBeforeUnmount as je, onUpdated as It, nextTick as fe, openBlock as u, createElementBlock as r, normalizeStyle as F, createElementVNode as N, renderSlot as Wt, createVNode as Hl, createCommentVNode as v, Fragment as p, unref as ge, renderList as S, normalizeProps as Vt, mergeProps as Ne, withModifiers as Le, normalizeClass as ae, withDirectives as Dt, withKeys as Xt, vModelText as Ht, toDisplayString as Ue } from "vue";
|
|
2
|
+
import { j as zl, T as Kl, X as zt, W as qe, L as Kt, c as Ot, M as Zt, b as jt, av as Ut } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as Ye, u as Ol, d as Zl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import jl from "./BaseIcon-Cb3zzG6s.js";
|
|
5
|
+
import { _ as Ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ql = ["data-minimap"], Yl = {
|
|
7
|
+
class: "vue-data-ui-slicer-labels",
|
|
8
|
+
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
+
}, Gl = {
|
|
10
|
+
key: 0,
|
|
11
|
+
style: { width: "100%", position: "relative", "pointer-events": "all" }
|
|
12
|
+
}, Jl = {
|
|
13
|
+
class: "minimap",
|
|
14
|
+
style: { width: "100%" }
|
|
15
|
+
}, Ql = ["xmlns", "viewBox"], _l = ["id"], ea = ["stop-color"], ta = ["width", "height", "stroke"], la = ["d", "stroke"], aa = ["d", "fill"], na = ["x", "y", "width", "height", "fill"], ia = ["d", "stroke", "stroke-dasharray"], ua = ["cx", "cy", "fill", "stroke"], ra = ["cx", "cy", "fill", "stroke"], oa = ["x", "width", "height", "fill", "rx"], sa = ["x", "width", "height", "rx", "fill"], ca = ["x", "width", "height", "fill", "rx", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], va = ["x2", "y1", "y2", "stroke"], ma = { key: "merged-tree" }, da = ["d", "fill"], ha = ["d", "stroke"], fa = ["cx", "cy", "stroke", "fill"], ga = ["cx", "cy", "stroke", "fill"], ya = { key: "split-tree" }, xa = ["x", "y", "width", "height", "fill"], Ma = ["d", "stroke", "stroke-dasharray"], pa = ["cx", "cy", "fill", "stroke"], ba = { key: "merged-tree" }, ka = ["cx", "cy", "stroke", "fill"], wa = ["cx", "cy", "fill"], Sa = ["cx", "cy", "stroke", "fill"], Ca = ["cx", "cy", "fill"], Na = { key: 1 }, La = ["d", "stroke", "stroke-dasharray"], Pa = ["cx", "cy", "fill", "stroke"], $a = ["cx", "cy", "stroke", "fill"], Aa = ["cx", "cy", "fill"], Fa = ["cx", "cy", "stroke", "fill"], Ea = ["cx", "cy", "fill"], Ra = ["cx", "cy", "fill", "stroke"], Ta = ["x", "height", "width", "onMouseenter"], Ba = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "minimap-handle-overlay"
|
|
18
|
+
}, Ia = ["xmlns", "viewBox"], Wa = ["x", "width", "height", "fill", "stroke", "stroke-width"], Va = ["transform"], Da = ["width", "height"], Xa = ["fill", "stroke"], Ha = ["stroke"], za = ["fill"], Ka = ["x", "width", "height", "fill", "stroke", "stroke-width"], Oa = ["transform"], Za = ["width", "height"], ja = ["fill", "stroke"], Ua = ["stroke"], qa = ["fill"], Ya = {
|
|
19
|
+
class: "compact-overlay-boundary-dots",
|
|
20
|
+
style: { "pointer-events": "none" }
|
|
21
|
+
}, Ga = ["cx", "cy", "fill", "stroke"], Ja = ["cx", "cy", "fill"], Qa = ["min", "max", "tabindex"], _a = ["min", "max", "tabindex"], Ge = 48, en = {
|
|
22
|
+
__name: "SlicerPreview",
|
|
23
|
+
props: {
|
|
24
|
+
uuid: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
immediate: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
background: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "#FFFFFF"
|
|
35
|
+
},
|
|
36
|
+
borderColor: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "#FFFFFF"
|
|
39
|
+
},
|
|
40
|
+
fontSize: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 14
|
|
43
|
+
},
|
|
44
|
+
labelLeft: {
|
|
45
|
+
type: [String, Number],
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
labelRight: {
|
|
49
|
+
type: [String, Number],
|
|
50
|
+
default: ""
|
|
51
|
+
},
|
|
52
|
+
textColor: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "#1A1A1A"
|
|
55
|
+
},
|
|
56
|
+
inputColor: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "#1A1A1A"
|
|
59
|
+
},
|
|
60
|
+
max: {
|
|
61
|
+
type: Number,
|
|
62
|
+
default: 0
|
|
63
|
+
},
|
|
64
|
+
min: {
|
|
65
|
+
type: Number,
|
|
66
|
+
default: 0
|
|
67
|
+
},
|
|
68
|
+
selectColor: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "#4A4A4A"
|
|
71
|
+
},
|
|
72
|
+
useResetSlot: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
valueStart: {
|
|
77
|
+
type: [Number, String],
|
|
78
|
+
default: 0
|
|
79
|
+
},
|
|
80
|
+
valueEnd: {
|
|
81
|
+
type: [Number, String],
|
|
82
|
+
default: 0
|
|
83
|
+
},
|
|
84
|
+
minimap: {
|
|
85
|
+
type: Array,
|
|
86
|
+
default: []
|
|
87
|
+
},
|
|
88
|
+
smoothMinimap: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
92
|
+
minimapSelectedColor: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: "#1f77b4"
|
|
95
|
+
},
|
|
96
|
+
minimapSelectionRadius: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: 12
|
|
99
|
+
},
|
|
100
|
+
minimapLineColor: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: "#2D353C"
|
|
103
|
+
},
|
|
104
|
+
minimapSelectedColorOpacity: {
|
|
105
|
+
type: Number,
|
|
106
|
+
default: 0.2
|
|
107
|
+
},
|
|
108
|
+
minimapSelectedIndex: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: null
|
|
111
|
+
},
|
|
112
|
+
minimapIndicatorColor: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: "#2D353C"
|
|
115
|
+
},
|
|
116
|
+
refreshStartPoint: {
|
|
117
|
+
type: Number,
|
|
118
|
+
default: 0
|
|
119
|
+
},
|
|
120
|
+
refreshEndPoint: {
|
|
121
|
+
type: Number,
|
|
122
|
+
default: null
|
|
123
|
+
},
|
|
124
|
+
enableRangeHandles: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: !1
|
|
127
|
+
},
|
|
128
|
+
enableSelectionDrag: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: !0
|
|
131
|
+
},
|
|
132
|
+
verticalHandles: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: !1
|
|
135
|
+
},
|
|
136
|
+
timeLabels: {
|
|
137
|
+
type: Array
|
|
138
|
+
},
|
|
139
|
+
isPreview: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: !1
|
|
142
|
+
},
|
|
143
|
+
preciseLabels: {
|
|
144
|
+
type: Array,
|
|
145
|
+
default() {
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
usePreciseLabels: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !1
|
|
152
|
+
},
|
|
153
|
+
selectedSeries: {
|
|
154
|
+
type: Object
|
|
155
|
+
},
|
|
156
|
+
customFormat: {
|
|
157
|
+
type: [Function, null]
|
|
158
|
+
},
|
|
159
|
+
minimapCompact: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
},
|
|
163
|
+
allMinimaps: {
|
|
164
|
+
type: Array,
|
|
165
|
+
default() {
|
|
166
|
+
return [];
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
minimapMerged: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: !1
|
|
172
|
+
},
|
|
173
|
+
minimapFrameColor: {
|
|
174
|
+
type: String,
|
|
175
|
+
default: "#e1e5e8"
|
|
176
|
+
},
|
|
177
|
+
cutNullValues: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: !1
|
|
180
|
+
},
|
|
181
|
+
focusOnDrag: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: !1
|
|
184
|
+
},
|
|
185
|
+
focusRangeRatio: {
|
|
186
|
+
type: Number,
|
|
187
|
+
default: 0.1
|
|
188
|
+
},
|
|
189
|
+
minScale: {
|
|
190
|
+
type: Number,
|
|
191
|
+
default: null
|
|
192
|
+
},
|
|
193
|
+
maxScale: {
|
|
194
|
+
type: Number,
|
|
195
|
+
default: null
|
|
196
|
+
},
|
|
197
|
+
// Used to center zero line in VueUiStackBar (non distributed mode)
|
|
198
|
+
forceZeroCenter: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: !1
|
|
201
|
+
},
|
|
202
|
+
maxWidth: {
|
|
203
|
+
type: Number,
|
|
204
|
+
default: null
|
|
205
|
+
},
|
|
206
|
+
isCursorPointer: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: !1
|
|
209
|
+
},
|
|
210
|
+
additionalMinimapHeight: {
|
|
211
|
+
type: Number,
|
|
212
|
+
default: 0
|
|
213
|
+
},
|
|
214
|
+
handleType: {
|
|
215
|
+
type: String,
|
|
216
|
+
default: ""
|
|
217
|
+
},
|
|
218
|
+
handleWidth: {
|
|
219
|
+
type: Number,
|
|
220
|
+
default: 20
|
|
221
|
+
},
|
|
222
|
+
handleBorderWidth: {
|
|
223
|
+
type: Number,
|
|
224
|
+
default: 1
|
|
225
|
+
},
|
|
226
|
+
handleIconColor: {
|
|
227
|
+
type: String,
|
|
228
|
+
default: null
|
|
229
|
+
},
|
|
230
|
+
handleBorderColor: {
|
|
231
|
+
type: String,
|
|
232
|
+
default: null
|
|
233
|
+
},
|
|
234
|
+
handleFill: {
|
|
235
|
+
type: String,
|
|
236
|
+
default: null
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
240
|
+
setup(n, { expose: qt, emit: Yt }) {
|
|
241
|
+
Dl((t) => ({
|
|
242
|
+
v40c66868: Jt.value,
|
|
243
|
+
v77925440: y.value,
|
|
244
|
+
v4e369c9e: _t.value,
|
|
245
|
+
v57c79570: n.selectColor,
|
|
246
|
+
v4d53c7fe: Qt.value,
|
|
247
|
+
v562ea530: a.additionalMinimapHeight
|
|
248
|
+
}));
|
|
249
|
+
const a = n, $ = h(null), g = h(a.min), x = h(a.max), M = s(() => !!a.allMinimaps.length), Pe = h(zl()), R = h(!1), Q = s(() => M.value && a.minimapCompact), Z = h(null), ne = h(!1), $e = h(0), Ae = h(0), Je = s(() => Math.min(40, Math.max(20, a.handleWidth))), Qe = h(0), ye = Ye((t) => B("futureStart", t), 0), xe = Ye((t) => B("futureEnd", t), 0), j = s({
|
|
250
|
+
get: () => g.value,
|
|
251
|
+
set(t) {
|
|
252
|
+
const l = Math.min(t, x.value - 1);
|
|
253
|
+
l !== g.value && (g.value = l, ue.value && (ue.value.value = String(l)), a.immediate ? B("update:start", Number(l)) : R.value && ye(l));
|
|
254
|
+
}
|
|
255
|
+
}), U = s({
|
|
256
|
+
get: () => x.value,
|
|
257
|
+
set(t) {
|
|
258
|
+
const l = Math.max(t, g.value + 1);
|
|
259
|
+
l !== x.value && (x.value = l, re.value && (re.value.value = String(l)), a.immediate ? B("update:end", Number(l)) : R.value && xe(l));
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
let _e = null;
|
|
263
|
+
function A() {
|
|
264
|
+
clearTimeout(_e), a.immediate || (B("update:start", Number(g.value)), B("update:end", Number(x.value))), R.value = !1;
|
|
265
|
+
}
|
|
266
|
+
const Gt = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), B = Yt, Me = s(() => {
|
|
267
|
+
if (Q.value) {
|
|
268
|
+
const l = Math.max(1, q.value - 1);
|
|
269
|
+
return pe.value / l * 100;
|
|
270
|
+
}
|
|
271
|
+
const t = Math.max(1, a.max - a.min);
|
|
272
|
+
return (g.value - a.min) / t * 100;
|
|
273
|
+
}), Fe = s(() => {
|
|
274
|
+
if (Q.value) {
|
|
275
|
+
const l = Math.max(1, q.value - 1);
|
|
276
|
+
return be.value / l * 100;
|
|
277
|
+
}
|
|
278
|
+
const t = Math.max(1, a.max - a.min);
|
|
279
|
+
return (x.value - a.min) / t * 100;
|
|
280
|
+
}), Ee = s(() => (Me.value + Fe.value) / 2), Re = s(() => {
|
|
281
|
+
if (!$.value) return !1;
|
|
282
|
+
const t = Math.max(1, a.max - a.min);
|
|
283
|
+
return $.value.getBoundingClientRect().width * ((g.value - a.min) / t) - ke.value / 2 < 0;
|
|
284
|
+
}), Te = s(() => {
|
|
285
|
+
if (!$.value) return !1;
|
|
286
|
+
const t = Math.max(1, a.max - a.min), l = $.value.getBoundingClientRect().width;
|
|
287
|
+
return l * ((x.value - a.min) / t) + ve.value / 2 > l;
|
|
288
|
+
}), T = s(() => {
|
|
289
|
+
const t = Te.value ? `calc(${Ee.value}% - ${de.value.width}px)` : Re.value ? `calc(${Ee.value}% - 8px)` : `calc(${Ee.value}% - ${de.value.width / 2}px)`;
|
|
290
|
+
return {
|
|
291
|
+
left: `${Me.value}%`,
|
|
292
|
+
width: `${Math.max(0, Fe.value - Me.value)}%`,
|
|
293
|
+
background: a.selectColor,
|
|
294
|
+
tooltipLeft: `calc(${Me.value}% - ${Re.value ? 9 : ke.value / 2}px)`,
|
|
295
|
+
tooltipRight: `calc(${Fe.value}% - ${Te.value ? ve.value - 9 : ve.value / 2}px)`,
|
|
296
|
+
tooltipCenter: t,
|
|
297
|
+
arrowLeft: !Re.value,
|
|
298
|
+
arrowRight: !Te.value
|
|
299
|
+
};
|
|
300
|
+
}), Jt = s(() => a.inputColor), Qt = s(() => a.background), _t = s(() => `${a.selectColor}33`), y = s(() => a.borderColor), et = s(() => {
|
|
301
|
+
let t = [];
|
|
302
|
+
for (let l = 0; l < a.max; l += 1)
|
|
303
|
+
t.push(l);
|
|
304
|
+
return t;
|
|
305
|
+
});
|
|
306
|
+
function tt() {
|
|
307
|
+
B("reset");
|
|
308
|
+
}
|
|
309
|
+
le(
|
|
310
|
+
() => a.min,
|
|
311
|
+
(t) => {
|
|
312
|
+
Number(g.value) < Number(t) && (g.value = Number(t)), Number(x.value) < Number(t) && (x.value = Number(t));
|
|
313
|
+
}
|
|
314
|
+
), le(
|
|
315
|
+
() => a.max,
|
|
316
|
+
(t) => {
|
|
317
|
+
Number(g.value) > Number(t) && (g.value = Number(t)), Number(x.value) > Number(t) && (x.value = Number(t));
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
const V = h(null), d = h({
|
|
321
|
+
width: 1,
|
|
322
|
+
height: 1
|
|
323
|
+
}), _ = h(null);
|
|
324
|
+
Xl(() => {
|
|
325
|
+
if (M.value) {
|
|
326
|
+
const t = Ye(() => {
|
|
327
|
+
if (!V.value) return;
|
|
328
|
+
const { width: l, height: e } = Ol({ chart: V.value }), i = Math.max(0, Math.round(l)), o = Math.max(0, Math.round(e - 47));
|
|
329
|
+
(i !== d.value.width || o !== d.value.height) && (d.value.width = i, d.value.height = o + a.additionalMinimapHeight);
|
|
330
|
+
}, 0);
|
|
331
|
+
_.value = new ResizeObserver(t), _.value.observe(V.value);
|
|
332
|
+
}
|
|
333
|
+
}), je(() => {
|
|
334
|
+
_.value && _.value.disconnect();
|
|
335
|
+
});
|
|
336
|
+
const q = s(() => Math.max(1, a.max - a.min));
|
|
337
|
+
function lt(t) {
|
|
338
|
+
const l = Math.floor(t - a.min);
|
|
339
|
+
return Math.min(Math.max(0, l), q.value);
|
|
340
|
+
}
|
|
341
|
+
function el(t) {
|
|
342
|
+
const l = Math.ceil(t - a.min);
|
|
343
|
+
return Math.min(Math.max(0, l), q.value);
|
|
344
|
+
}
|
|
345
|
+
const I = s(() => lt(g.value)), Y = s(() => el(x.value)), Be = s(() => Math.max(...a.allMinimaps.map((t) => t.series.length))), tl = s(() => M.value && a.minimapCompact ? 40 : 0), ll = s(() => tl.value / 2);
|
|
346
|
+
s(() => Math.max(1, d.value.width - ll.value * 2));
|
|
347
|
+
const k = s(() => {
|
|
348
|
+
const t = Math.max(1, Be.value - (a.minimapCompact ? 1 : 0));
|
|
349
|
+
return d.value.width / t;
|
|
350
|
+
}), at = s(() => a.allMinimaps.length ? a.allMinimaps.filter((t) => t.type === "bar" && t.isVisible).length : 0), Ie = s(() => k.value / (at.value || 1) * 0.8);
|
|
351
|
+
function nt(t, l, e) {
|
|
352
|
+
const i = Ie.value, o = Math.max(1, at.value), c = Be.value - 1;
|
|
353
|
+
return e === 0 ? t + i / 2 * l : e === c ? t - i / 2 * (o - l) : t - o * i / 2 + l * i;
|
|
354
|
+
}
|
|
355
|
+
function it(t, l) {
|
|
356
|
+
return [0, Be.value - 1].includes(l) ? Ie.value / 2 : Ie.value;
|
|
357
|
+
}
|
|
358
|
+
const al = s(() => {
|
|
359
|
+
const t = [];
|
|
360
|
+
if (Array.isArray(a.minimap) && a.minimap.length && a.minimapMerged && t.push(...a.minimap.filter(Number.isFinite)), Array.isArray(a.allMinimaps) && a.allMinimaps.length)
|
|
361
|
+
for (const l of a.allMinimaps)
|
|
362
|
+
l?.isVisible && Array.isArray(l?.series) && t.push(...l.series.filter(Number.isFinite));
|
|
363
|
+
return t.length ? { min: Math.min(...t), max: Math.max(...t) } : { min: 0, max: 1 };
|
|
364
|
+
}), ut = s(() => {
|
|
365
|
+
if (a.minScale == null && a.forceZeroCenter) return null;
|
|
366
|
+
const t = Number(a.minScale);
|
|
367
|
+
return Number.isFinite(t) ? t : null;
|
|
368
|
+
}), rt = s(() => {
|
|
369
|
+
if (a.maxScale == null && a.forceZeroCenter) return null;
|
|
370
|
+
const t = Number(a.maxScale);
|
|
371
|
+
return Number.isFinite(t) ? t : null;
|
|
372
|
+
}), We = s(() => ut.value !== null && rt.value !== null), ot = s(() => {
|
|
373
|
+
const { min: t, max: l } = al.value, e = ut.value, i = rt.value;
|
|
374
|
+
let o, c;
|
|
375
|
+
return e !== null && i !== null ? (o = Math.min(e, t), c = Math.max(i, l)) : (o = e !== null ? e : t, c = i !== null ? i : l), Number.isFinite(o) || (o = 0), Number.isFinite(c) || (c = 1), o === c ? c = o + 1 : o > c && ([o, c] = [c, o]), { min: o, max: c };
|
|
376
|
+
}), ee = s(() => ot.value.min), ie = s(() => ot.value.max), nl = s(() => ee.value < 0 && ie.value > 0 || ie.value <= 0 ? ee.value : 0), il = (t) => {
|
|
377
|
+
const l = Math.max(1, d.value.height);
|
|
378
|
+
return st(
|
|
379
|
+
ee.value,
|
|
380
|
+
ie.value,
|
|
381
|
+
l,
|
|
382
|
+
We.value
|
|
383
|
+
)(t);
|
|
384
|
+
}, Ve = s(() => il(0));
|
|
385
|
+
function st(t, l, e, i = !1) {
|
|
386
|
+
const o = (f, P, E) => Math.max(P, Math.min(E, f)), L = Math.max(1e-9, l - t);
|
|
387
|
+
if (i)
|
|
388
|
+
return (f) => {
|
|
389
|
+
const P = (f - t) / L;
|
|
390
|
+
return e - P * e;
|
|
391
|
+
};
|
|
392
|
+
if (l <= 0) {
|
|
393
|
+
const f = Math.max(1e-9, 0 - t);
|
|
394
|
+
return (P) => e - (P - t) / f * e;
|
|
395
|
+
} else if (t >= 0) {
|
|
396
|
+
const f = Math.max(1e-9, l - 0);
|
|
397
|
+
return (P) => e - (P - 0) / f * e;
|
|
398
|
+
} else {
|
|
399
|
+
const f = Math.max(1e-9, Math.max(Math.abs(t), Math.abs(l)));
|
|
400
|
+
return (P) => (1 - (o(P / f, -1, 1) + 1) / 2) * e;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function ct(t, l = !1) {
|
|
404
|
+
if (!t || !t.length)
|
|
405
|
+
return {
|
|
406
|
+
fullSet: "",
|
|
407
|
+
points: [],
|
|
408
|
+
selectionSet: "",
|
|
409
|
+
sliced: [],
|
|
410
|
+
firstPlot: null,
|
|
411
|
+
lastPlot: null,
|
|
412
|
+
hasFull: !1,
|
|
413
|
+
hasSelection: !1,
|
|
414
|
+
fullMarkers: [],
|
|
415
|
+
selectionMarkers: [],
|
|
416
|
+
dashed: !1
|
|
417
|
+
};
|
|
418
|
+
const e = Math.max(1, d.value.height), i = st(ee.value, ie.value, e, We.value), o = t.length, c = Math.min(Math.max(0, I.value), Math.max(0, o - 1)), L = Math.min(o, Math.max(c + 1, Y.value)), f = t.map((w, Tt) => {
|
|
419
|
+
const he = w, Bt = Number.isFinite(he), El = k.value * Tt + (a.minimapCompact ? 0 : k.value / 2), Rl = (Il, Wl, Vl) => Math.max(Wl, Math.min(Vl, Il)), Tl = We.value ? Rl(0, ee.value, ie.value) : 0, Bl = i(Tl);
|
|
420
|
+
return {
|
|
421
|
+
x: El,
|
|
422
|
+
y: Bt ? i(he) : NaN,
|
|
423
|
+
v: he,
|
|
424
|
+
value: he == null ? null : Bt ? he : null,
|
|
425
|
+
y0: Bl,
|
|
426
|
+
i: Tt
|
|
427
|
+
};
|
|
428
|
+
}), P = (w) => w >= 0 && w < f.length && Number.isFinite(f[w]?.value), E = f.filter((w) => Number.isFinite(w.value) && !P(w.i - 1) && !P(w.i + 1)), Ce = E.filter((w) => w.i >= c && w.i < L), J = f.slice(c, L), Al = f.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Kt(f) : Ot(f.filter((w) => w.value != null)) : a.cutNullValues ? Zt(f) : jt(f.filter((w) => w.value != null)) : "", Fl = J.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Kt(J) : Ot(J.filter((w) => w.value != null)) : a.cutNullValues ? Zt(J) : jt(J.filter((w) => w.value != null)) : "";
|
|
429
|
+
return {
|
|
430
|
+
fullSet: Al,
|
|
431
|
+
points: f,
|
|
432
|
+
selectionSet: Fl,
|
|
433
|
+
sliced: J,
|
|
434
|
+
firstPlot: f[c] || null,
|
|
435
|
+
lastPlot: f[Math.max(0, L - 1)] || null,
|
|
436
|
+
hasFull: f.length >= 2,
|
|
437
|
+
hasSelection: J.length >= 2,
|
|
438
|
+
fullMarkers: E,
|
|
439
|
+
selectionMarkers: Ce
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
const m = s(() => a.minimap.length ? ct(a.minimap) : []), W = s(() => a.allMinimaps.length ? a.allMinimaps.map((t, l) => {
|
|
443
|
+
const e = ct(t?.series || [], !!t.smooth), i = t?.id ?? t?.name ?? l;
|
|
444
|
+
return {
|
|
445
|
+
key: typeof i == "object" ? JSON.stringify(i) : String(i),
|
|
446
|
+
color: t?.color,
|
|
447
|
+
...e,
|
|
448
|
+
temperatureColors: t?.temperatureColors ?? null,
|
|
449
|
+
isVisible: t.isVisible,
|
|
450
|
+
type: t.type || "line",
|
|
451
|
+
dashed: t.dashed ?? !1
|
|
452
|
+
};
|
|
453
|
+
}) : []), C = s(() => {
|
|
454
|
+
const t = I.value, l = Math.max(t + 1, Y.value);
|
|
455
|
+
return {
|
|
456
|
+
x: k.value * t + (a.minimapCompact ? 0 : k.value / 2),
|
|
457
|
+
width: k.value * (l - t) - k.value
|
|
458
|
+
};
|
|
459
|
+
}), D = h(a.minimapSelectedIndex), vt = (t) => Math.round(a.min + t), pe = s({
|
|
460
|
+
get() {
|
|
461
|
+
return Q.value ? I.value : Number(j.value);
|
|
462
|
+
},
|
|
463
|
+
set(t) {
|
|
464
|
+
if (Q.value) {
|
|
465
|
+
const l = Math.round(+t || 0);
|
|
466
|
+
Xe(vt(l));
|
|
467
|
+
} else {
|
|
468
|
+
let l = Math.round(+t || 0);
|
|
469
|
+
const e = Number(x.value) - 1, i = Math.min(Math.max(a.min, l), e);
|
|
470
|
+
ue.value && (ue.value.valueAsNumber = i), Xe(i);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}), be = s({
|
|
474
|
+
get() {
|
|
475
|
+
return Q.value ? Math.max(I.value, Y.value - 1) : Number(U.value);
|
|
476
|
+
},
|
|
477
|
+
set(t) {
|
|
478
|
+
if (Q.value) {
|
|
479
|
+
const l = Math.round(+t || 0);
|
|
480
|
+
ze(vt(l + 1));
|
|
481
|
+
} else {
|
|
482
|
+
let l = Math.round(+t || 0);
|
|
483
|
+
const e = Number(g.value) + 1, i = Math.max(e, Math.min(l, a.max));
|
|
484
|
+
re.value && (re.value.valueAsNumber = i), ze(i);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
function ul(t) {
|
|
489
|
+
D.value = lt(a.valueStart) + t;
|
|
490
|
+
}
|
|
491
|
+
const rl = Zl(ul, 60);
|
|
492
|
+
le(() => a.minimapSelectedIndex, (t, l) => {
|
|
493
|
+
if ([null, void 0].includes(t)) {
|
|
494
|
+
D.value = null;
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
t !== l && rl(t);
|
|
498
|
+
}, { immediate: !0 });
|
|
499
|
+
function ol(t) {
|
|
500
|
+
D.value = t;
|
|
501
|
+
const l = I.value, e = Y.value;
|
|
502
|
+
t >= l && t < e && !O.value && B("trapMouse", t - l);
|
|
503
|
+
}
|
|
504
|
+
const ue = h(null), re = h(null);
|
|
505
|
+
function mt(t) {
|
|
506
|
+
if (typeof t == "object" && t && "target" in t) {
|
|
507
|
+
const e = t.target, i = "valueAsNumber" in e ? e.valueAsNumber : +e.value;
|
|
508
|
+
return Number.isFinite(i) ? i : NaN;
|
|
509
|
+
}
|
|
510
|
+
const l = +t;
|
|
511
|
+
return Number.isFinite(l) ? l : NaN;
|
|
512
|
+
}
|
|
513
|
+
let De = 0;
|
|
514
|
+
function Xe(t) {
|
|
515
|
+
R.value = !0;
|
|
516
|
+
const l = mt(t);
|
|
517
|
+
Number.isFinite(l) && (cancelAnimationFrame(De), De = requestAnimationFrame(() => {
|
|
518
|
+
j.value = l;
|
|
519
|
+
}));
|
|
520
|
+
}
|
|
521
|
+
let He = 0;
|
|
522
|
+
function ze(t) {
|
|
523
|
+
R.value = !0;
|
|
524
|
+
const l = mt(t);
|
|
525
|
+
Number.isFinite(l) && (cancelAnimationFrame(He), He = requestAnimationFrame(() => {
|
|
526
|
+
U.value = l;
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
je(() => {
|
|
530
|
+
cancelAnimationFrame(De), cancelAnimationFrame(He);
|
|
531
|
+
});
|
|
532
|
+
const oe = s(() => a.valueEnd - a.valueStart), sl = s(() => oe.value < a.max - a.min), te = h(!1);
|
|
533
|
+
let cl = h(null);
|
|
534
|
+
const vl = s(() => (Qe.value - 48) / (a.max - a.min) * oe.value), ml = s(() => Math.max(1, Qe.value - Ge - vl.value)), dl = s(() => Math.max(1, a.max - a.min - oe.value)), hl = s(() => dl.value / ml.value), dt = h(0), ht = h(0), fl = h(0), gl = h(0);
|
|
535
|
+
let X = null, H = null, z = null, K = null;
|
|
536
|
+
const ft = h(a.min);
|
|
537
|
+
function Ke(t) {
|
|
538
|
+
if (!$.value) return a.min;
|
|
539
|
+
const l = $.value.getBoundingClientRect(), e = l.left + Ge / 2, i = l.right - Ge / 2, o = Math.max(1, i - e), L = (Math.max(e, Math.min(t, i)) - e) / o, f = Math.max(1, a.max - a.min);
|
|
540
|
+
return Math.round(a.min + L * f);
|
|
541
|
+
}
|
|
542
|
+
const gt = async (t) => {
|
|
543
|
+
if (R.value = !0, G.value = !0, !a.enableSelectionDrag) return;
|
|
544
|
+
const l = t.type === "touchstart";
|
|
545
|
+
l || t.stopPropagation();
|
|
546
|
+
const e = l && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, i = l ? e ? e.target : null : t.target;
|
|
547
|
+
if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle") || i.closest(".minimap-handle-overlay"))
|
|
548
|
+
return;
|
|
549
|
+
te.value = !0;
|
|
550
|
+
const o = l ? e ? e.clientX : 0 : t.clientX;
|
|
551
|
+
if (cl.value = o, dt.value = o, a.focusOnDrag && !sl.value && $.value) {
|
|
552
|
+
ft.value = Ke(o);
|
|
553
|
+
const c = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), L = a.max - a.min, f = Math.max(1, Math.round(L * c)), P = Math.floor(f / 2);
|
|
554
|
+
let E = ft.value - P;
|
|
555
|
+
E = Math.max(a.min, Math.min(E, a.max - f));
|
|
556
|
+
const Ce = Math.min(a.max, E + f);
|
|
557
|
+
j.value = E, U.value = Ce, ye(E), xe(Ce), Ut($.value, "mouseup"), await fe(), Ut($.value, "mousedown", { clientX: o });
|
|
558
|
+
}
|
|
559
|
+
ht.value = g.value, fl.value = x.value, gl.value = hl.value, X = l ? "touchmove" : "mousemove", H = l ? "touchend" : "mouseup", z = l ? xl : yl, K = l ? pl : Ml, window.addEventListener(X, z, { passive: !1 }), window.addEventListener(H, K);
|
|
560
|
+
};
|
|
561
|
+
function yl(t) {
|
|
562
|
+
te.value && yt(t.clientX);
|
|
563
|
+
}
|
|
564
|
+
function xl(t) {
|
|
565
|
+
if (!te.value || !$.value) return;
|
|
566
|
+
const l = t.target;
|
|
567
|
+
if (!(l instanceof Element) || !$.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
568
|
+
t.preventDefault();
|
|
569
|
+
const e = t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null;
|
|
570
|
+
e && yt(e.clientX);
|
|
571
|
+
}
|
|
572
|
+
function yt(t) {
|
|
573
|
+
if (!te.value) return;
|
|
574
|
+
const l = Ke(dt.value), i = Ke(t) - l;
|
|
575
|
+
let o = Math.round(ht.value + i);
|
|
576
|
+
o = Math.max(a.min, Math.min(o, a.max - oe.value));
|
|
577
|
+
const c = o + oe.value;
|
|
578
|
+
j.value = o, U.value = c, ye(o), xe(c);
|
|
579
|
+
}
|
|
580
|
+
function Ml() {
|
|
581
|
+
xt();
|
|
582
|
+
}
|
|
583
|
+
function pl() {
|
|
584
|
+
xt();
|
|
585
|
+
}
|
|
586
|
+
function xt() {
|
|
587
|
+
te.value = !1, X && z && window.removeEventListener(X, z), H && K && window.removeEventListener(H, K), X = H = null, z = K = null, A();
|
|
588
|
+
}
|
|
589
|
+
const O = h(!1), se = h(null), ce = h(null), ke = h(1), ve = h(1), G = h(!1);
|
|
590
|
+
function Oe() {
|
|
591
|
+
if (se.value) {
|
|
592
|
+
const t = Math.round(se.value.getBoundingClientRect().width);
|
|
593
|
+
t !== ke.value && (ke.value = t);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function Ze() {
|
|
597
|
+
if (ce.value) {
|
|
598
|
+
const t = Math.round(ce.value.getBoundingClientRect().width);
|
|
599
|
+
t !== ve.value && (ve.value = t);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
It(() => {
|
|
603
|
+
Oe(), Ze();
|
|
604
|
+
});
|
|
605
|
+
const Mt = h(0);
|
|
606
|
+
function pt(t) {
|
|
607
|
+
Mt.value = t === "start" ? 1 : 0;
|
|
608
|
+
}
|
|
609
|
+
const me = h(!1), de = h({
|
|
610
|
+
width: 0,
|
|
611
|
+
left: 0
|
|
612
|
+
});
|
|
613
|
+
le([g, x], async () => {
|
|
614
|
+
if (await fe(), !se.value || !ce.value) {
|
|
615
|
+
me.value = !1, de.value = { width: 0, left: 0 };
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
const t = se.value.getBoundingClientRect(), l = ce.value.getBoundingClientRect();
|
|
619
|
+
me.value = t.x + t.width > l.x;
|
|
620
|
+
const e = t.x + t.width / 2, i = l.x + l.width / 2, o = t.width + l.width, c = (e + i) / 2;
|
|
621
|
+
de.value = {
|
|
622
|
+
width: o,
|
|
623
|
+
left: c - o / 2
|
|
624
|
+
};
|
|
625
|
+
}), It(() => {
|
|
626
|
+
Oe(), Ze();
|
|
627
|
+
}), le(() => a.labelLeft, () => {
|
|
628
|
+
fe(Oe);
|
|
629
|
+
}, { deep: !0 }), le(() => a.labelRight, () => {
|
|
630
|
+
fe(Ze);
|
|
631
|
+
}, { deep: !0 });
|
|
632
|
+
const b = s(() => {
|
|
633
|
+
let t = "", l = "", e = !1;
|
|
634
|
+
if (Kl(a.customFormat))
|
|
635
|
+
try {
|
|
636
|
+
const i = a.customFormat({
|
|
637
|
+
absoluteIndex: g.value,
|
|
638
|
+
seriesIndex: g.value,
|
|
639
|
+
datapoint: a.selectedSeries,
|
|
640
|
+
timeLabel: a.preciseLabels[g.value],
|
|
641
|
+
side: "left"
|
|
642
|
+
}), o = a.customFormat({
|
|
643
|
+
absoluteIndex: x.value - 1,
|
|
644
|
+
seriesIndex: -1,
|
|
645
|
+
datapoint: a.selectedSeries,
|
|
646
|
+
timeLabel: a.preciseLabels[x.value - 1],
|
|
647
|
+
side: "right"
|
|
648
|
+
});
|
|
649
|
+
typeof i == "string" && typeof o == "string" && (t = i, l = o, e = !0);
|
|
650
|
+
} catch {
|
|
651
|
+
e = !1;
|
|
652
|
+
}
|
|
653
|
+
if (!e) {
|
|
654
|
+
const i = a.usePreciseLabels ? a.preciseLabels.find((c) => c.absoluteIndex === g.value) : a.timeLabels.find((c) => c.absoluteIndex === g.value), o = a.usePreciseLabels ? a.preciseLabels.find((c) => c.absoluteIndex === x.value - 1) : a.timeLabels.find((c) => c.absoluteIndex === x.value - 1);
|
|
655
|
+
t = i ? i.text : "", l = o ? o.text : "";
|
|
656
|
+
}
|
|
657
|
+
return { left: t, right: l };
|
|
658
|
+
});
|
|
659
|
+
je(() => {
|
|
660
|
+
_.value && _.value.disconnect(), X && z && window.removeEventListener(X, z), H && K && window.removeEventListener(H, K), X = H = null, z = K = null, clearTimeout(_e);
|
|
661
|
+
});
|
|
662
|
+
const bl = s(() => {
|
|
663
|
+
if (!et.value.length) return null;
|
|
664
|
+
if (D.value >= I.value && D.value < Y.value) {
|
|
665
|
+
const t = D.value, l = k.value * t + (a.minimapCompact ? 0 : k.value / 2);
|
|
666
|
+
return {
|
|
667
|
+
x1: l,
|
|
668
|
+
x2: l,
|
|
669
|
+
y1: 0,
|
|
670
|
+
y2: Math.max(d.value.height, 0),
|
|
671
|
+
stroke: a.minimapIndicatorColor,
|
|
672
|
+
"stroke-linecap": "round",
|
|
673
|
+
"stroke-dasharray": 2,
|
|
674
|
+
"stroke-width": 1
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
return null;
|
|
678
|
+
}), bt = s(() => Number(g.value) < Number(x.value) - 1), kt = s(() => Number(g.value) > Number(a.min)), wt = s(() => Number(x.value) < Number(a.max)), St = s(() => Number(x.value) > Number(g.value) + 1);
|
|
679
|
+
function Ct(t) {
|
|
680
|
+
const l = Number(g.value) + t;
|
|
681
|
+
t > 0 && !bt.value || t < 0 && !kt.value || (R.value = !0, j.value = l, A());
|
|
682
|
+
}
|
|
683
|
+
function Nt(t) {
|
|
684
|
+
const l = Number(x.value) + t;
|
|
685
|
+
t > 0 && !wt.value || t < 0 && !St.value || (R.value = !0, U.value = l, A());
|
|
686
|
+
}
|
|
687
|
+
const we = {
|
|
688
|
+
plus: () => Ct(1),
|
|
689
|
+
minus: () => Ct(-1),
|
|
690
|
+
canPlus: bt,
|
|
691
|
+
canMinus: kt
|
|
692
|
+
}, Se = {
|
|
693
|
+
plus: () => Nt(1),
|
|
694
|
+
minus: () => Nt(-1),
|
|
695
|
+
canPlus: wt,
|
|
696
|
+
canMinus: St
|
|
697
|
+
};
|
|
698
|
+
function kl(t) {
|
|
699
|
+
if (!t || Lt(t.target)) return;
|
|
700
|
+
const l = t.key, e = l === "ArrowLeft" || l === "ArrowDown" || l === "-" || l === "Subtract", i = l === "ArrowRight" || l === "ArrowUp" || l === "+" || l === "Add";
|
|
701
|
+
!e && !i || (t.preventDefault(), t.stopPropagation(), i ? (we.plus(), Se.plus()) : (we.minus(), Se.minus()));
|
|
702
|
+
}
|
|
703
|
+
function Lt(t) {
|
|
704
|
+
return t instanceof HTMLElement && (t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.tagName === "SELECT");
|
|
705
|
+
}
|
|
706
|
+
function wl(t) {
|
|
707
|
+
if (!M.value || !a.minimapCompact) return;
|
|
708
|
+
const l = $.value;
|
|
709
|
+
if (!l) return;
|
|
710
|
+
const e = t === "start" ? '[data-cy="slicer-compact-handle-left"]' : '[data-cy="slicer-compact-handle-right"]', i = l.querySelector(e);
|
|
711
|
+
i && i instanceof SVGElement && typeof i.focus == "function" && i.focus();
|
|
712
|
+
}
|
|
713
|
+
function Pt(t, l) {
|
|
714
|
+
if (!l || Lt(l.target)) return;
|
|
715
|
+
const e = l.key, i = e === "ArrowLeft" || e === "ArrowDown" || e === "-" || e === "Subtract", o = e === "ArrowRight" || e === "ArrowUp" || e === "+" || e === "Add";
|
|
716
|
+
!i && !o || (l.preventDefault(), l.stopPropagation(), t === "start" ? o ? we.plus() : we.minus() : o ? Se.plus() : Se.minus(), fe(() => wl(t)));
|
|
717
|
+
}
|
|
718
|
+
const Sl = s(() => ({
|
|
719
|
+
tabindex: 0,
|
|
720
|
+
role: "slider",
|
|
721
|
+
"aria-label": "Range start",
|
|
722
|
+
"aria-valuemin": Number(a.min),
|
|
723
|
+
"aria-valuemax": Math.max(Number(a.min), Number(x.value) - 1),
|
|
724
|
+
"aria-valuenow": Number(g.value)
|
|
725
|
+
})), Cl = s(() => ({
|
|
726
|
+
tabindex: 0,
|
|
727
|
+
role: "slider",
|
|
728
|
+
"aria-label": "Range end",
|
|
729
|
+
"aria-valuemin": Math.min(Number(a.max), Number(g.value) + 1),
|
|
730
|
+
"aria-valuemax": Number(a.max),
|
|
731
|
+
"aria-valuenow": Number(x.value)
|
|
732
|
+
}));
|
|
733
|
+
function $t(t) {
|
|
734
|
+
if (!V.value) return 0;
|
|
735
|
+
const l = V.value.getBoundingClientRect();
|
|
736
|
+
if (!l.width) return 0;
|
|
737
|
+
const e = t - l.left, i = d.value.width / l.width;
|
|
738
|
+
return e * i;
|
|
739
|
+
}
|
|
740
|
+
function Nl(t) {
|
|
741
|
+
const l = a.minimapCompact ? 0 : k.value / 2, e = (t - l) / Math.max(1, k.value);
|
|
742
|
+
return Math.max(
|
|
743
|
+
0,
|
|
744
|
+
Math.min(Math.max(0, q.value - 1), Math.round(e))
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
function Ll(t) {
|
|
748
|
+
const l = Nl(t);
|
|
749
|
+
if (Z.value === "start") {
|
|
750
|
+
const e = Math.min(a.min + l, Number(x.value) - 1);
|
|
751
|
+
j.value = e, ye(e);
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
if (Z.value === "end") {
|
|
755
|
+
const e = Math.max(Number(g.value) + 1, a.min + l + 1), i = Math.min(a.max, e);
|
|
756
|
+
U.value = i, xe(i);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
function At(t) {
|
|
760
|
+
if (!Z.value || !V.value) return;
|
|
761
|
+
const l = t.clientX - $e.value;
|
|
762
|
+
if (!ne.value) {
|
|
763
|
+
if (Math.abs(l) < 4) return;
|
|
764
|
+
ne.value = !0, R.value = !0, G.value = !0;
|
|
765
|
+
}
|
|
766
|
+
const i = $t(t.clientX) - Ae.value, o = Z.value === "start" ? i + Je.value : i;
|
|
767
|
+
Ll(o);
|
|
768
|
+
}
|
|
769
|
+
function Ft() {
|
|
770
|
+
if (!Z.value) return;
|
|
771
|
+
window.removeEventListener("mousemove", At, !0), window.removeEventListener("mouseup", Ft, !0);
|
|
772
|
+
const t = ne.value;
|
|
773
|
+
Z.value = null, ne.value = !1, $e.value = 0, Ae.value = 0, t && A();
|
|
774
|
+
}
|
|
775
|
+
function Et(t, l) {
|
|
776
|
+
if (!M.value || !a.minimapCompact || !V.value) return;
|
|
777
|
+
l.preventDefault(), l.stopPropagation();
|
|
778
|
+
const e = $t(l.clientX), i = t === "start" ? C.value.x - Je.value : C.value.x + C.value.width;
|
|
779
|
+
Z.value = t, ne.value = !1, $e.value = l.clientX, Ae.value = e - i, window.addEventListener("mousemove", At, !0), window.addEventListener("mouseup", Ft, !0);
|
|
780
|
+
}
|
|
781
|
+
const Pl = s(() => I.value), $l = s(() => Math.max(I.value, Y.value - 1)), Rt = s(() => {
|
|
782
|
+
if (!M.value || !a.minimapCompact || !a.allMinimaps.length) return [];
|
|
783
|
+
const t = Pl.value, l = $l.value;
|
|
784
|
+
return W.value.flatMap((e) => {
|
|
785
|
+
if (!e?.isVisible) return [];
|
|
786
|
+
if (!["line", "plot"].includes(e.type)) return [];
|
|
787
|
+
const i = [], o = e.points?.find((L) => L.i === t && L.value !== null), c = e.points?.find((L) => L.i === l && L.value !== null);
|
|
788
|
+
return o && i.push({
|
|
789
|
+
key: `${e.key}-left-${o.i}`,
|
|
790
|
+
x: o.x,
|
|
791
|
+
y: o.y,
|
|
792
|
+
color: e.color
|
|
793
|
+
}), c && l !== t && i.push({
|
|
794
|
+
key: `${e.key}-right-${c.i}`,
|
|
795
|
+
x: c.x,
|
|
796
|
+
y: c.y,
|
|
797
|
+
color: e.color
|
|
798
|
+
}), i;
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
return qt({
|
|
802
|
+
setStartValue: Xe,
|
|
803
|
+
setEndValue: ze
|
|
804
|
+
}), (t, l) => (u(), r("div", {
|
|
805
|
+
"data-minimap": M.value,
|
|
806
|
+
"data-dom-to-png-ignore": "",
|
|
807
|
+
style: F([{ padding: "0 48px" }, {
|
|
808
|
+
maxWidth: n.maxWidth ? n.maxWidth + "px" : void 0,
|
|
809
|
+
margin: n.maxWidth ? "0 auto" : void 0
|
|
810
|
+
}]),
|
|
811
|
+
class: "vue-data-ui-zoom",
|
|
812
|
+
ref_key: "zoomWrapper",
|
|
813
|
+
ref: $,
|
|
814
|
+
onMousedown: gt,
|
|
815
|
+
onTouchstart: gt
|
|
816
|
+
}, [
|
|
817
|
+
N("div", Yl, [
|
|
818
|
+
n.valueStart !== n.refreshStartPoint || n.valueEnd !== Gt.value ? (u(), r("div", Gl, [
|
|
819
|
+
Wt(t.$slots, "reset-action", { reset: tt }, () => [
|
|
820
|
+
N("button", {
|
|
821
|
+
tabindex: "0",
|
|
822
|
+
role: "button",
|
|
823
|
+
class: "vue-data-ui-refresh-button",
|
|
824
|
+
style: F({
|
|
825
|
+
top: M.value ? "36px" : "-16px",
|
|
826
|
+
cursor: n.isCursorPointer ? "pointer" : "default"
|
|
827
|
+
}),
|
|
828
|
+
onClick: tt
|
|
829
|
+
}, [
|
|
830
|
+
Hl(jl, {
|
|
831
|
+
name: "refresh",
|
|
832
|
+
stroke: n.textColor
|
|
833
|
+
}, null, 8, ["stroke"])
|
|
834
|
+
], 4)
|
|
835
|
+
], !0)
|
|
836
|
+
])) : v("", !0)
|
|
837
|
+
]),
|
|
838
|
+
N("div", {
|
|
839
|
+
class: "double-range-slider",
|
|
840
|
+
ref_key: "minimapWrapper",
|
|
841
|
+
ref: V,
|
|
842
|
+
style: F([{ "z-index": "0" }, M.value ? {
|
|
843
|
+
"--minimap-unit-px": k.value + "px",
|
|
844
|
+
"--minimap-offset-px": (n.minimapCompact ? 0 : k.value / 2) + "px"
|
|
845
|
+
} : void 0]),
|
|
846
|
+
onMouseenter: l[19] || (l[19] = (e) => G.value = !0),
|
|
847
|
+
onMouseleave: l[20] || (l[20] = (e) => G.value = !1)
|
|
848
|
+
}, [
|
|
849
|
+
M.value ? (u(), r(p, { key: 0 }, [
|
|
850
|
+
N("div", Jl, [
|
|
851
|
+
(u(), r("svg", {
|
|
852
|
+
key: `mm-${n.minimapMerged ? "merged" : "split"}-${n.minimapCompact ? "compact" : "normal"}`,
|
|
853
|
+
xmlns: ge(zt),
|
|
854
|
+
viewBox: `0 0 ${Math.max(0, d.value.width)} ${Math.max(0, d.value.height)}`
|
|
855
|
+
}, [
|
|
856
|
+
N("defs", null, [
|
|
857
|
+
N("linearGradient", {
|
|
858
|
+
id: Pe.value,
|
|
859
|
+
x1: "0%",
|
|
860
|
+
y1: "0%",
|
|
861
|
+
x2: "0%",
|
|
862
|
+
y2: "100%"
|
|
863
|
+
}, [
|
|
864
|
+
N("stop", {
|
|
865
|
+
offset: "0%",
|
|
866
|
+
"stop-color": `${n.minimapLineColor}50`
|
|
867
|
+
}, null, 8, ea),
|
|
868
|
+
l[21] || (l[21] = N("stop", {
|
|
869
|
+
offset: "100%",
|
|
870
|
+
"stop-color": "transparent"
|
|
871
|
+
}, null, -1))
|
|
872
|
+
], 8, _l)
|
|
873
|
+
]),
|
|
874
|
+
n.minimapCompact ? (u(), r("rect", {
|
|
875
|
+
key: 0,
|
|
876
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
877
|
+
x: 0,
|
|
878
|
+
y: 0,
|
|
879
|
+
width: d.value.width,
|
|
880
|
+
height: d.value.height,
|
|
881
|
+
fill: "none",
|
|
882
|
+
stroke: n.minimapFrameColor,
|
|
883
|
+
rx: 3
|
|
884
|
+
}, null, 8, ta)) : v("", !0),
|
|
885
|
+
t.$slots.slotMap ? v("", !0) : (u(), r(p, { key: 1 }, [
|
|
886
|
+
n.minimapMerged ? (u(), r("path", {
|
|
887
|
+
key: 0,
|
|
888
|
+
d: `M${m.value.fullSet}`,
|
|
889
|
+
stroke: `${n.minimapLineColor}`,
|
|
890
|
+
fill: "none",
|
|
891
|
+
"stroke-width": "1",
|
|
892
|
+
"stroke-linecap": "round",
|
|
893
|
+
"stroke-linejoin": "round",
|
|
894
|
+
style: { opacity: "0.6" }
|
|
895
|
+
}, null, 8, la)) : v("", !0),
|
|
896
|
+
n.minimapMerged && !n.minimapCompact ? (u(), r("path", {
|
|
897
|
+
key: 1,
|
|
898
|
+
d: `M${k.value / 2},${Math.max(d.value.height, 0)} ${m.value.fullSet} L${d.value.width - k.value / 2},${Math.max(d.value.height, 0)}Z`,
|
|
899
|
+
fill: `url(#${Pe.value})`,
|
|
900
|
+
stroke: "none",
|
|
901
|
+
style: { opacity: "0.6" }
|
|
902
|
+
}, null, 8, aa)) : n.minimapMerged ? v("", !0) : (u(), r(p, { key: 2 }, [
|
|
903
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "bar" && e.isVisible), (e, i) => (u(), r("g", null, [
|
|
904
|
+
(u(!0), r(p, null, S(e.points, (o, c) => (u(), r(p, null, [
|
|
905
|
+
e && !isNaN(o.y) ? (u(), r("rect", {
|
|
906
|
+
key: 0,
|
|
907
|
+
x: nt(o.x, i, c),
|
|
908
|
+
y: o.v >= 0 ? o.y : o.y0,
|
|
909
|
+
width: it(i, c),
|
|
910
|
+
height: o.v >= 0 ? o.y0 - o.y : o.y - o.y0,
|
|
911
|
+
fill: e.color,
|
|
912
|
+
style: { opacity: 0.6 }
|
|
913
|
+
}, null, 8, na)) : v("", !0)
|
|
914
|
+
], 64))), 256))
|
|
915
|
+
]))), 256)),
|
|
916
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "line"), (e) => (u(), r("g", null, [
|
|
917
|
+
e.isVisible ? (u(), r("path", {
|
|
918
|
+
key: 0,
|
|
919
|
+
d: `M ${e.fullSet}`,
|
|
920
|
+
fill: "none",
|
|
921
|
+
stroke: e.color,
|
|
922
|
+
style: { opacity: "0.6" },
|
|
923
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
924
|
+
}, null, 8, ia)) : v("", !0),
|
|
925
|
+
e.isVisible && n.cutNullValues ? (u(!0), r(p, { key: 1 }, S(e.fullMarkers, (i) => (u(), r("circle", {
|
|
926
|
+
key: `sel-dot-under-${e.key}-${i.i}`,
|
|
927
|
+
cx: i.x,
|
|
928
|
+
cy: i.y,
|
|
929
|
+
r: "2",
|
|
930
|
+
fill: e.color,
|
|
931
|
+
stroke: y.value,
|
|
932
|
+
"stroke-width": "0.5",
|
|
933
|
+
style: { opacity: "0.6" }
|
|
934
|
+
}, null, 8, ua))), 128)) : v("", !0)
|
|
935
|
+
]))), 256)),
|
|
936
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "plot"), (e) => (u(), r("g", null, [
|
|
937
|
+
(u(!0), r(p, null, S(e.points, (i) => (u(), r("g", null, [
|
|
938
|
+
e.isVisible && i.value !== null ? (u(), r("circle", {
|
|
939
|
+
key: `sel-plot-under-${e.key}-${i.i}`,
|
|
940
|
+
cx: i.x,
|
|
941
|
+
cy: i.y,
|
|
942
|
+
r: "2",
|
|
943
|
+
fill: e.color,
|
|
944
|
+
stroke: y.value,
|
|
945
|
+
"stroke-width": "0.5",
|
|
946
|
+
style: { opacity: "0.6" }
|
|
947
|
+
}, null, 8, ra)) : v("", !0)
|
|
948
|
+
]))), 256))
|
|
949
|
+
]))), 256))
|
|
950
|
+
], 64))
|
|
951
|
+
], 64)),
|
|
952
|
+
N("rect", {
|
|
953
|
+
x: C.value.x,
|
|
954
|
+
y: 0,
|
|
955
|
+
width: Math.max(0, C.value.width),
|
|
956
|
+
height: Math.max(d.value.height, 0),
|
|
957
|
+
fill: y.value,
|
|
958
|
+
rx: n.minimapSelectionRadius,
|
|
959
|
+
stroke: "none"
|
|
960
|
+
}, null, 8, oa),
|
|
961
|
+
N("rect", {
|
|
962
|
+
x: C.value.x,
|
|
963
|
+
y: 0,
|
|
964
|
+
width: C.value.width < 0 ? 0 : C.value.width,
|
|
965
|
+
height: Math.max(d.value.height, 0),
|
|
966
|
+
rx: n.minimapSelectionRadius,
|
|
967
|
+
fill: y.value,
|
|
968
|
+
style: F({ opacity: te.value || R.value ? 0 : 1 })
|
|
969
|
+
}, null, 12, sa),
|
|
970
|
+
N("rect", {
|
|
971
|
+
x: C.value.x,
|
|
972
|
+
y: 0,
|
|
973
|
+
width: C.value.width < 0 ? 0 : C.value.width,
|
|
974
|
+
height: Math.max(d.value.height, 0),
|
|
975
|
+
fill: n.minimapSelectedColor,
|
|
976
|
+
rx: n.minimapSelectionRadius,
|
|
977
|
+
style: F({ opacity: n.minimapSelectedColorOpacity }),
|
|
978
|
+
tabindex: "0",
|
|
979
|
+
role: "slider",
|
|
980
|
+
"aria-label": "Selected range",
|
|
981
|
+
"aria-valuemin": Number(a.min),
|
|
982
|
+
"aria-valuemax": Number(a.max),
|
|
983
|
+
"aria-valuenow": Number(g.value),
|
|
984
|
+
"aria-valuetext": b.value.left && b.value.right ? `${b.value.left} – ${b.value.right}` : void 0,
|
|
985
|
+
onKeydown: kl
|
|
986
|
+
}, null, 44, ca),
|
|
987
|
+
!n.minimapMerged && nl.value < 0 ? (u(), r("line", {
|
|
988
|
+
key: 2,
|
|
989
|
+
class: "slicer-minimap-zero-line",
|
|
990
|
+
x1: 0,
|
|
991
|
+
x2: d.value.width,
|
|
992
|
+
y1: Ve.value,
|
|
993
|
+
y2: Ve.value,
|
|
994
|
+
stroke: n.minimapFrameColor,
|
|
995
|
+
"stroke-width": "0.5"
|
|
996
|
+
}, null, 8, va)) : v("", !0),
|
|
997
|
+
t.$slots.slotMap ? v("", !0) : (u(), r(p, { key: 3 }, [
|
|
998
|
+
n.minimapMerged ? (u(), r("g", ma, [
|
|
999
|
+
m.value && m.value.sliced && m.value.sliced.length ? (u(), r(p, { key: 0 }, [
|
|
1000
|
+
m.value.selectionSet ? (u(), r("path", {
|
|
1001
|
+
key: 0,
|
|
1002
|
+
d: `M${m.value.sliced[0].x},${Math.max(d.value.height, 0)} ${m.value.selectionSet} L${m.value.sliced[m.value.sliced.length - 1].x},${Math.max(d.value.height, 0)}Z`,
|
|
1003
|
+
fill: `url(#${Pe.value})`,
|
|
1004
|
+
stroke: "none",
|
|
1005
|
+
style: { opacity: "1" }
|
|
1006
|
+
}, null, 8, da)) : v("", !0),
|
|
1007
|
+
m.value.selectionSet ? (u(), r("path", {
|
|
1008
|
+
key: 1,
|
|
1009
|
+
d: `M ${m.value.selectionSet}`,
|
|
1010
|
+
stroke: `${n.minimapLineColor}`,
|
|
1011
|
+
fill: "transparent",
|
|
1012
|
+
"stroke-width": "2",
|
|
1013
|
+
"stroke-linecap": "round",
|
|
1014
|
+
"stroke-linejoin": "round"
|
|
1015
|
+
}, null, 8, ha)) : v("", !0)
|
|
1016
|
+
], 64)) : v("", !0),
|
|
1017
|
+
m.value && m.value.firstPlot ? (u(), r("circle", {
|
|
1018
|
+
key: 1,
|
|
1019
|
+
cx: m.value.firstPlot.x,
|
|
1020
|
+
cy: m.value.firstPlot.y,
|
|
1021
|
+
"stroke-width": "0.5",
|
|
1022
|
+
stroke: y.value,
|
|
1023
|
+
r: "3",
|
|
1024
|
+
fill: n.minimapLineColor
|
|
1025
|
+
}, null, 8, fa)) : v("", !0),
|
|
1026
|
+
m.value && m.value.lastPlot ? (u(), r("circle", {
|
|
1027
|
+
key: 2,
|
|
1028
|
+
cx: m.value.lastPlot.x,
|
|
1029
|
+
cy: m.value.lastPlot.y,
|
|
1030
|
+
"stroke-width": "0.5",
|
|
1031
|
+
stroke: y.value,
|
|
1032
|
+
r: "3",
|
|
1033
|
+
fill: n.minimapLineColor
|
|
1034
|
+
}, null, 8, ga)) : v("", !0)
|
|
1035
|
+
])) : (u(), r("g", ya, [
|
|
1036
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "bar" && e.isVisible), (e, i) => (u(), r("g", null, [
|
|
1037
|
+
(u(!0), r(p, null, S(e.points, (o, c) => (u(), r(p, null, [
|
|
1038
|
+
e && !isNaN(o.y) ? (u(), r("rect", {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
x: nt(o.x, i, c),
|
|
1041
|
+
y: o.v >= 0 ? o.y : o.y0,
|
|
1042
|
+
width: it(i, c),
|
|
1043
|
+
height: o.v >= 0 ? o.y0 - o.y : o.y - o.y0,
|
|
1044
|
+
fill: e.color,
|
|
1045
|
+
style: F({ opacity: c >= j.value && c < U.value ? 1 : 0 })
|
|
1046
|
+
}, null, 12, xa)) : v("", !0)
|
|
1047
|
+
], 64))), 256))
|
|
1048
|
+
]))), 256)),
|
|
1049
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "line"), (e, i) => (u(), r("g", {
|
|
1050
|
+
key: String(e.key)
|
|
1051
|
+
}, [
|
|
1052
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (u(), r("path", {
|
|
1053
|
+
key: 0,
|
|
1054
|
+
d: `M ${e.selectionSet}`,
|
|
1055
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${i}_${n.uuid})` : e.color,
|
|
1056
|
+
fill: "transparent",
|
|
1057
|
+
"stroke-width": "2",
|
|
1058
|
+
"stroke-linecap": "round",
|
|
1059
|
+
"stroke-linejoin": "round",
|
|
1060
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1061
|
+
}, null, 8, Ma)) : v("", !0)
|
|
1062
|
+
]))), 128)),
|
|
1063
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "plot"), (e) => (u(), r("g", {
|
|
1064
|
+
key: String(e.key)
|
|
1065
|
+
}, [
|
|
1066
|
+
(u(!0), r(p, null, S(e.points, (i) => (u(), r("g", null, [
|
|
1067
|
+
e.isVisible && i.value !== null ? (u(), r("circle", {
|
|
1068
|
+
key: 0,
|
|
1069
|
+
cx: i.x,
|
|
1070
|
+
cy: i.y,
|
|
1071
|
+
r: "2",
|
|
1072
|
+
fill: e.color,
|
|
1073
|
+
stroke: y.value,
|
|
1074
|
+
"stroke-width": "0.5",
|
|
1075
|
+
style: { opacity: "0.6" }
|
|
1076
|
+
}, null, 8, pa)) : v("", !0)
|
|
1077
|
+
]))), 256))
|
|
1078
|
+
]))), 128))
|
|
1079
|
+
]))
|
|
1080
|
+
], 64)),
|
|
1081
|
+
t.$slots.slotMap ? Wt(t.$slots, "slotMap", Vt(Ne({ key: 4 }, {
|
|
1082
|
+
width: Math.max(0, d.value.width),
|
|
1083
|
+
height: Math.max(0, d.value.height),
|
|
1084
|
+
zeroY: Ve.value,
|
|
1085
|
+
unitW: Math.max(0, k.value)
|
|
1086
|
+
})), void 0, !0) : v("", !0),
|
|
1087
|
+
D.value !== null && !O.value ? (u(), r("line", Vt(Ne({ key: 5 }, bl.value)), null, 16)) : v("", !0),
|
|
1088
|
+
t.$slots.slotMap ? v("", !0) : (u(), r(p, { key: 6 }, [
|
|
1089
|
+
n.minimapMerged ? (u(), r("g", ba, [
|
|
1090
|
+
m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), r("circle", {
|
|
1091
|
+
key: 0,
|
|
1092
|
+
cx: m.value.firstPlot.x,
|
|
1093
|
+
cy: m.value.firstPlot.y,
|
|
1094
|
+
"stroke-width": "0.5",
|
|
1095
|
+
stroke: y.value,
|
|
1096
|
+
r: "4",
|
|
1097
|
+
fill: n.minimapLineColor
|
|
1098
|
+
}, null, 8, ka)) : v("", !0),
|
|
1099
|
+
m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), r("circle", {
|
|
1100
|
+
key: 1,
|
|
1101
|
+
cx: m.value.firstPlot.x,
|
|
1102
|
+
cy: m.value.firstPlot.y,
|
|
1103
|
+
r: 2,
|
|
1104
|
+
fill: y.value
|
|
1105
|
+
}, null, 8, wa)) : v("", !0),
|
|
1106
|
+
m.value && m.value.lastPlot && m.value.lastPlot.value !== null ? (u(), r("circle", {
|
|
1107
|
+
key: 2,
|
|
1108
|
+
cx: m.value.lastPlot.x,
|
|
1109
|
+
cy: m.value.lastPlot.y,
|
|
1110
|
+
"stroke-width": "0.5",
|
|
1111
|
+
stroke: y.value,
|
|
1112
|
+
r: "4",
|
|
1113
|
+
fill: n.minimapLineColor
|
|
1114
|
+
}, null, 8, Sa)) : v("", !0),
|
|
1115
|
+
m.value && m.value.lastPlot && m.value.lastPlot.value !== null ? (u(), r("circle", {
|
|
1116
|
+
key: 3,
|
|
1117
|
+
cx: m.value.lastPlot.x,
|
|
1118
|
+
cy: m.value.lastPlot.y,
|
|
1119
|
+
r: "2",
|
|
1120
|
+
fill: y.value
|
|
1121
|
+
}, null, 8, Ca)) : v("", !0)
|
|
1122
|
+
])) : (u(), r("g", Na, [
|
|
1123
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "line"), (e, i) => (u(), r("g", {
|
|
1124
|
+
key: String(e.key)
|
|
1125
|
+
}, [
|
|
1126
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (u(), r("path", {
|
|
1127
|
+
key: 0,
|
|
1128
|
+
d: `M ${e.selectionSet}`,
|
|
1129
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${i}_${n.uuid})` : e.color,
|
|
1130
|
+
fill: "transparent",
|
|
1131
|
+
"stroke-width": "2",
|
|
1132
|
+
"stroke-linecap": "round",
|
|
1133
|
+
"stroke-linejoin": "round",
|
|
1134
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1135
|
+
}, null, 8, La)) : v("", !0),
|
|
1136
|
+
e.isVisible && n.cutNullValues ? (u(!0), r(p, { key: 1 }, S(e.selectionMarkers, (o) => (u(), r("circle", {
|
|
1137
|
+
key: `sel-dot-${e.key}-${o.i}`,
|
|
1138
|
+
cx: o.x,
|
|
1139
|
+
cy: o.y,
|
|
1140
|
+
r: "2.5",
|
|
1141
|
+
fill: e.color,
|
|
1142
|
+
stroke: y.value,
|
|
1143
|
+
"stroke-width": "0.5"
|
|
1144
|
+
}, null, 8, Pa))), 128)) : v("", !0),
|
|
1145
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (u(), r("circle", {
|
|
1146
|
+
key: 2,
|
|
1147
|
+
cx: e.firstPlot.x,
|
|
1148
|
+
cy: e.firstPlot.y,
|
|
1149
|
+
"stroke-width": "0.5",
|
|
1150
|
+
stroke: y.value,
|
|
1151
|
+
r: "4",
|
|
1152
|
+
fill: e.color
|
|
1153
|
+
}, null, 8, $a)) : v("", !0),
|
|
1154
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (u(), r("circle", {
|
|
1155
|
+
key: 3,
|
|
1156
|
+
cx: e.firstPlot.x,
|
|
1157
|
+
cy: e.firstPlot.y,
|
|
1158
|
+
r: "2",
|
|
1159
|
+
fill: y.value
|
|
1160
|
+
}, null, 8, Aa)) : v("", !0),
|
|
1161
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (u(), r("circle", {
|
|
1162
|
+
key: 4,
|
|
1163
|
+
cx: e.lastPlot.x,
|
|
1164
|
+
cy: e.lastPlot.y,
|
|
1165
|
+
"stroke-width": "0.5",
|
|
1166
|
+
stroke: y.value,
|
|
1167
|
+
r: "4",
|
|
1168
|
+
fill: e.color
|
|
1169
|
+
}, null, 8, Fa)) : v("", !0),
|
|
1170
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (u(), r("circle", {
|
|
1171
|
+
key: 5,
|
|
1172
|
+
cx: e.lastPlot.x,
|
|
1173
|
+
cy: e.lastPlot.y,
|
|
1174
|
+
r: "2",
|
|
1175
|
+
fill: y.value
|
|
1176
|
+
}, null, 8, Ea)) : v("", !0)
|
|
1177
|
+
]))), 128)),
|
|
1178
|
+
(u(!0), r(p, null, S(W.value.filter((e) => e.type === "plot"), (e) => (u(), r("g", {
|
|
1179
|
+
key: String(e.key)
|
|
1180
|
+
}, [
|
|
1181
|
+
(u(!0), r(p, null, S(e.points, (i) => (u(), r("g", null, [
|
|
1182
|
+
e.isVisible && n.cutNullValues && i.value !== null ? (u(), r("circle", {
|
|
1183
|
+
key: `sel-plot-${e.key}-${i.i}`,
|
|
1184
|
+
cx: i.x,
|
|
1185
|
+
cy: i.y,
|
|
1186
|
+
r: "2.5",
|
|
1187
|
+
fill: e.color,
|
|
1188
|
+
stroke: y.value,
|
|
1189
|
+
"stroke-width": "0.5"
|
|
1190
|
+
}, null, 8, Ra)) : v("", !0)
|
|
1191
|
+
]))), 256))
|
|
1192
|
+
]))), 128))
|
|
1193
|
+
]))
|
|
1194
|
+
], 64)),
|
|
1195
|
+
(u(!0), r(p, null, S(et.value, (e, i) => (u(), r("rect", {
|
|
1196
|
+
x: k.value * i - (n.minimapCompact ? k.value / 2 : 0),
|
|
1197
|
+
y: 0,
|
|
1198
|
+
height: Math.max(d.value.height, 0),
|
|
1199
|
+
width: k.value < 0 ? 0 : k.value,
|
|
1200
|
+
fill: "transparent",
|
|
1201
|
+
style: F([{ "pointer-events": "all !important" }, { cursor: e >= I.value && e < Y.value && n.enableSelectionDrag ? O.value ? "grabbing" : "grab" : "default" }]),
|
|
1202
|
+
onMousedown: l[0] || (l[0] = (o) => O.value = !0),
|
|
1203
|
+
onMouseup: l[1] || (l[1] = (o) => O.value = !1),
|
|
1204
|
+
onMouseenter: (o) => ol(e),
|
|
1205
|
+
onMouseleave: l[2] || (l[2] = (o) => {
|
|
1206
|
+
D.value = null, B("trapMouse", null);
|
|
1207
|
+
})
|
|
1208
|
+
}, null, 44, Ta))), 256))
|
|
1209
|
+
], 8, Ql))
|
|
1210
|
+
]),
|
|
1211
|
+
M.value && n.minimapCompact ? (u(), r("div", Ba, [
|
|
1212
|
+
(u(), r("svg", {
|
|
1213
|
+
xmlns: ge(zt),
|
|
1214
|
+
viewBox: `0 0 ${Math.max(0, d.value.width)} ${Math.max(0, d.value.height)}`,
|
|
1215
|
+
preserveAspectRatio: "none"
|
|
1216
|
+
}, [
|
|
1217
|
+
N("rect", Ne({
|
|
1218
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1219
|
+
x: C.value.x - Math.min(40, Math.max(20, n.handleWidth)),
|
|
1220
|
+
y: 0,
|
|
1221
|
+
width: Math.min(40, Math.max(20, n.handleWidth)),
|
|
1222
|
+
height: d.value.height,
|
|
1223
|
+
fill: n.handleFill || y.value,
|
|
1224
|
+
stroke: n.handleBorderColor || n.textColor,
|
|
1225
|
+
"stroke-width": n.handleBorderWidth,
|
|
1226
|
+
rx: 3
|
|
1227
|
+
}, Sl.value, {
|
|
1228
|
+
onKeydown: l[3] || (l[3] = (e) => Pt("start", e)),
|
|
1229
|
+
onMousedown: l[4] || (l[4] = Le((e) => Et("start", e), ["stop", "prevent"])),
|
|
1230
|
+
onClick: l[5] || (l[5] = Le(() => {
|
|
1231
|
+
}, ["stop", "prevent"]))
|
|
1232
|
+
}), null, 16, Wa),
|
|
1233
|
+
n.handleType && n.handleType !== "empty" ? (u(), r("g", {
|
|
1234
|
+
key: 0,
|
|
1235
|
+
class: "compact-handle-icon",
|
|
1236
|
+
transform: `translate(${C.value.x - Math.min(40, Math.max(20, n.handleWidth))}, 0)`,
|
|
1237
|
+
style: { "pointer-events": "none" }
|
|
1238
|
+
}, [
|
|
1239
|
+
(u(), r("svg", {
|
|
1240
|
+
width: Math.min(40, Math.max(20, n.handleWidth)),
|
|
1241
|
+
height: d.value.height,
|
|
1242
|
+
viewBox: "0 0 20 20"
|
|
1243
|
+
}, [
|
|
1244
|
+
n.handleType === "arrow" ? (u(), r("path", {
|
|
1245
|
+
key: 0,
|
|
1246
|
+
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",
|
|
1247
|
+
fill: y.value,
|
|
1248
|
+
stroke: n.handleIconColor || n.textColor,
|
|
1249
|
+
"stroke-width": 0.618,
|
|
1250
|
+
"stroke-linejoin": "round",
|
|
1251
|
+
"stroke-linecap": "round"
|
|
1252
|
+
}, null, 8, Xa)) : n.handleType === "chevron" ? (u(), r("path", {
|
|
1253
|
+
key: 1,
|
|
1254
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1255
|
+
fill: "none",
|
|
1256
|
+
stroke: n.handleIconColor || n.textColor,
|
|
1257
|
+
"stroke-width": 0.618,
|
|
1258
|
+
"stroke-linejoin": "round",
|
|
1259
|
+
"stroke-linecap": "round"
|
|
1260
|
+
}, null, 8, Ha)) : n.handleType === "grab" ? (u(), r("path", {
|
|
1261
|
+
key: 2,
|
|
1262
|
+
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",
|
|
1263
|
+
fill: n.handleIconColor || n.textColor,
|
|
1264
|
+
stroke: "none",
|
|
1265
|
+
opacity: "0.6"
|
|
1266
|
+
}, null, 8, za)) : v("", !0)
|
|
1267
|
+
], 8, Da))
|
|
1268
|
+
], 8, Va)) : v("", !0),
|
|
1269
|
+
N("rect", Ne({
|
|
1270
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1271
|
+
x: C.value.x + C.value.width,
|
|
1272
|
+
y: 0,
|
|
1273
|
+
width: Math.min(40, Math.max(20, n.handleWidth)),
|
|
1274
|
+
height: d.value.height,
|
|
1275
|
+
fill: n.handleFill || y.value,
|
|
1276
|
+
stroke: n.handleBorderColor || n.textColor,
|
|
1277
|
+
"stroke-width": n.handleBorderWidth,
|
|
1278
|
+
rx: 3
|
|
1279
|
+
}, Cl.value, {
|
|
1280
|
+
onKeydown: l[6] || (l[6] = (e) => Pt("end", e)),
|
|
1281
|
+
onMousedown: l[7] || (l[7] = Le((e) => Et("end", e), ["stop", "prevent"])),
|
|
1282
|
+
onClick: l[8] || (l[8] = Le(() => {
|
|
1283
|
+
}, ["stop", "prevent"]))
|
|
1284
|
+
}), null, 16, Ka),
|
|
1285
|
+
n.handleType && n.handleType !== "empty" ? (u(), r("g", {
|
|
1286
|
+
key: 1,
|
|
1287
|
+
class: "compact-handle-icon",
|
|
1288
|
+
transform: `translate(${C.value.x + C.value.width}, 0)`,
|
|
1289
|
+
style: { "pointer-events": "none" }
|
|
1290
|
+
}, [
|
|
1291
|
+
(u(), r("svg", {
|
|
1292
|
+
width: Math.min(40, Math.max(20, n.handleWidth)),
|
|
1293
|
+
height: d.value.height,
|
|
1294
|
+
viewBox: "0 0 20 20"
|
|
1295
|
+
}, [
|
|
1296
|
+
n.handleType === "arrow" ? (u(), r("path", {
|
|
1297
|
+
key: 0,
|
|
1298
|
+
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",
|
|
1299
|
+
fill: y.value,
|
|
1300
|
+
stroke: n.handleIconColor || n.textColor,
|
|
1301
|
+
"stroke-width": 0.618,
|
|
1302
|
+
"stroke-linejoin": "round",
|
|
1303
|
+
"stroke-linecap": "round"
|
|
1304
|
+
}, null, 8, ja)) : n.handleType === "chevron" ? (u(), r("path", {
|
|
1305
|
+
key: 1,
|
|
1306
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1307
|
+
fill: "none",
|
|
1308
|
+
stroke: n.handleIconColor || n.textColor,
|
|
1309
|
+
"stroke-width": 0.618,
|
|
1310
|
+
"stroke-linejoin": "round",
|
|
1311
|
+
"stroke-linecap": "round"
|
|
1312
|
+
}, null, 8, Ua)) : n.handleType === "grab" ? (u(), r("path", {
|
|
1313
|
+
key: 2,
|
|
1314
|
+
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",
|
|
1315
|
+
fill: n.handleIconColor || n.textColor,
|
|
1316
|
+
stroke: "none",
|
|
1317
|
+
opacity: "0.6"
|
|
1318
|
+
}, null, 8, qa)) : v("", !0)
|
|
1319
|
+
], 8, Za))
|
|
1320
|
+
], 8, Oa)) : v("", !0),
|
|
1321
|
+
N("g", Ya, [
|
|
1322
|
+
(u(!0), r(p, null, S(Rt.value, (e) => (u(), r("circle", {
|
|
1323
|
+
key: e.key,
|
|
1324
|
+
cx: e.x,
|
|
1325
|
+
cy: e.y,
|
|
1326
|
+
r: "4",
|
|
1327
|
+
fill: e.color,
|
|
1328
|
+
stroke: y.value,
|
|
1329
|
+
"stroke-width": "0.5"
|
|
1330
|
+
}, null, 8, Ga))), 128)),
|
|
1331
|
+
(u(!0), r(p, null, S(Rt.value, (e) => (u(), r("circle", {
|
|
1332
|
+
key: `${e.key}-inner`,
|
|
1333
|
+
cx: e.x,
|
|
1334
|
+
cy: e.y,
|
|
1335
|
+
r: "2",
|
|
1336
|
+
fill: y.value
|
|
1337
|
+
}, null, 8, Ja))), 128))
|
|
1338
|
+
])
|
|
1339
|
+
], 8, Ia))
|
|
1340
|
+
])) : v("", !0)
|
|
1341
|
+
], 64)) : v("", !0),
|
|
1342
|
+
N("div", {
|
|
1343
|
+
class: "slider-track",
|
|
1344
|
+
style: F({ visibility: M.value && n.minimapCompact ? "hidden" : "visible" })
|
|
1345
|
+
}, null, 4),
|
|
1346
|
+
N("div", {
|
|
1347
|
+
class: ae({ "range-highlight": !0, move: n.enableSelectionDrag }),
|
|
1348
|
+
onMousedown: l[9] || (l[9] = (e) => O.value = !0),
|
|
1349
|
+
onMouseup: l[10] || (l[10] = (e) => O.value = !1),
|
|
1350
|
+
style: F({
|
|
1351
|
+
...T.value,
|
|
1352
|
+
cursor: O.value ? "grabbing" : "grab",
|
|
1353
|
+
visibility: M.value && n.minimapCompact ? "hidden" : "visible"
|
|
1354
|
+
})
|
|
1355
|
+
}, null, 38),
|
|
1356
|
+
n.enableRangeHandles ? Dt((u(), r("input", {
|
|
1357
|
+
key: 1,
|
|
1358
|
+
"aria-label": "range-handle-left",
|
|
1359
|
+
ref_key: "rangeStart",
|
|
1360
|
+
ref: ue,
|
|
1361
|
+
type: "range",
|
|
1362
|
+
class: ae({
|
|
1363
|
+
"range-left": !0,
|
|
1364
|
+
"range-handle": !0,
|
|
1365
|
+
"range-minimap": M.value && n.verticalHandles,
|
|
1366
|
+
"range-invisible": M.value && n.minimapCompact
|
|
1367
|
+
}),
|
|
1368
|
+
min: n.min,
|
|
1369
|
+
max: n.minimapCompact && M.value ? Math.max(0, q.value - 1) : n.max,
|
|
1370
|
+
tabindex: M.value ? -1 : 0,
|
|
1371
|
+
"onUpdate:modelValue": l[11] || (l[11] = (e) => pe.value = e),
|
|
1372
|
+
onFocus: l[12] || (l[12] = (e) => M.value && e.target.blur()),
|
|
1373
|
+
onInput: l[13] || (l[13] = (e) => pe.value = e.target.valueAsNumber),
|
|
1374
|
+
onChange: A,
|
|
1375
|
+
onKeyup: Xt(A, ["enter"]),
|
|
1376
|
+
onBlur: A,
|
|
1377
|
+
onMouseenter: l[14] || (l[14] = (e) => pt("start")),
|
|
1378
|
+
onPointerup: A
|
|
1379
|
+
}, null, 42, Qa)), [
|
|
1380
|
+
[
|
|
1381
|
+
Ht,
|
|
1382
|
+
pe.value,
|
|
1383
|
+
void 0,
|
|
1384
|
+
{ number: !0 }
|
|
1385
|
+
]
|
|
1386
|
+
]) : v("", !0),
|
|
1387
|
+
n.enableRangeHandles ? Dt((u(), r("input", {
|
|
1388
|
+
key: 2,
|
|
1389
|
+
"aria-label": "range-handle-right",
|
|
1390
|
+
ref_key: "rangeEnd",
|
|
1391
|
+
ref: re,
|
|
1392
|
+
type: "range",
|
|
1393
|
+
class: ae({
|
|
1394
|
+
"range-right": !0,
|
|
1395
|
+
"range-handle": !0,
|
|
1396
|
+
"range-minimap": M.value && n.verticalHandles,
|
|
1397
|
+
"range-invisible": M.value && n.minimapCompact
|
|
1398
|
+
}),
|
|
1399
|
+
min: n.min,
|
|
1400
|
+
max: n.minimapCompact && M.value ? Math.max(0, q.value - 1) : n.max,
|
|
1401
|
+
tabindex: M.value ? -1 : 0,
|
|
1402
|
+
onFocus: l[15] || (l[15] = (e) => M.value && e.target.blur()),
|
|
1403
|
+
"onUpdate:modelValue": l[16] || (l[16] = (e) => be.value = e),
|
|
1404
|
+
onInput: l[17] || (l[17] = (e) => be.value = e.target.valueAsNumber),
|
|
1405
|
+
onChange: A,
|
|
1406
|
+
onKeyup: Xt(A, ["enter"]),
|
|
1407
|
+
onBlur: A,
|
|
1408
|
+
onMouseenter: l[18] || (l[18] = (e) => pt("end")),
|
|
1409
|
+
onPointerup: A
|
|
1410
|
+
}, null, 42, _a)), [
|
|
1411
|
+
[
|
|
1412
|
+
Ht,
|
|
1413
|
+
be.value,
|
|
1414
|
+
void 0,
|
|
1415
|
+
{ number: !0 }
|
|
1416
|
+
]
|
|
1417
|
+
]) : v("", !0),
|
|
1418
|
+
b.value.left ? (u(), r("div", {
|
|
1419
|
+
key: 3,
|
|
1420
|
+
ref_key: "tooltipLeft",
|
|
1421
|
+
ref: se,
|
|
1422
|
+
class: ae({
|
|
1423
|
+
"range-tooltip": !0,
|
|
1424
|
+
"range-tooltip-visible": G.value,
|
|
1425
|
+
"range-tooltip-arrow": T.value.arrowLeft && !n.verticalHandles,
|
|
1426
|
+
"range-tooltip-arrow-left": !T.value.arrowLeft && !n.verticalHandles
|
|
1427
|
+
}),
|
|
1428
|
+
style: F({
|
|
1429
|
+
left: T.value.tooltipLeft,
|
|
1430
|
+
color: ge(qe)(n.selectColor),
|
|
1431
|
+
backgroundColor: n.selectColor,
|
|
1432
|
+
border: `1px solid ${y.value}`,
|
|
1433
|
+
zIndex: `${Mt.value + 4}`,
|
|
1434
|
+
visibility: me.value || b.value.left === b.value.right ? "hidden" : "visible",
|
|
1435
|
+
top: M.value && n.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1436
|
+
})
|
|
1437
|
+
}, Ue(b.value.left), 7)) : v("", !0),
|
|
1438
|
+
(me.value || b.value.left === b.value.right) && (b.value.left || b.value.right) ? (u(), r("div", {
|
|
1439
|
+
key: 4,
|
|
1440
|
+
ref: "tooltipMerge",
|
|
1441
|
+
class: ae({
|
|
1442
|
+
"range-tooltip": !0,
|
|
1443
|
+
"range-tooltip-visible": G.value,
|
|
1444
|
+
"range-tooltip-arrow": !0,
|
|
1445
|
+
"range-tooltip-arrow-left": !T.value.arrowLeft && !n.verticalHandles,
|
|
1446
|
+
"range-tooltip-arrow-right": !T.value.arrowRight && !n.verticalHandles
|
|
1447
|
+
}),
|
|
1448
|
+
style: F({
|
|
1449
|
+
left: T.value.tooltipCenter,
|
|
1450
|
+
width: de.value.width + "px",
|
|
1451
|
+
color: ge(qe)(n.selectColor),
|
|
1452
|
+
backgroundColor: n.selectColor,
|
|
1453
|
+
border: `1px solid ${y.value}`,
|
|
1454
|
+
zIndex: "4",
|
|
1455
|
+
top: M.value && n.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1456
|
+
})
|
|
1457
|
+
}, Ue(b.value.left === b.value.right ? b.value.left : `${b.value.left} - ${b.value.right}`), 7)) : v("", !0),
|
|
1458
|
+
b.value.right ? (u(), r("div", {
|
|
1459
|
+
key: 5,
|
|
1460
|
+
ref_key: "tooltipRight",
|
|
1461
|
+
ref: ce,
|
|
1462
|
+
class: ae({
|
|
1463
|
+
"range-tooltip": !0,
|
|
1464
|
+
"range-tooltip-visible": G.value,
|
|
1465
|
+
"range-tooltip-arrow": T.value.arrowRight && !n.verticalHandles,
|
|
1466
|
+
"range-tooltip-arrow-right": !T.value.arrowRight && !n.verticalHandles
|
|
1467
|
+
}),
|
|
1468
|
+
style: F({
|
|
1469
|
+
left: T.value.tooltipRight,
|
|
1470
|
+
color: ge(qe)(n.selectColor),
|
|
1471
|
+
backgroundColor: n.selectColor,
|
|
1472
|
+
border: `1px solid ${y.value}`,
|
|
1473
|
+
zIndex: "4",
|
|
1474
|
+
visibility: me.value || b.value.left === b.value.right ? "hidden" : "visible",
|
|
1475
|
+
top: M.value && n.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1476
|
+
})
|
|
1477
|
+
}, Ue(b.value.right), 7)) : v("", !0)
|
|
1478
|
+
], 36)
|
|
1479
|
+
], 44, ql));
|
|
1480
|
+
}
|
|
1481
|
+
}, rn = /* @__PURE__ */ Ul(en, [["__scopeId", "data-v-98936e70"]]);
|
|
1482
|
+
export {
|
|
1483
|
+
rn as S
|
|
1484
|
+
};
|