vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.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-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-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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- 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/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -2,140 +2,141 @@ import { B as e, G as t, M as n, P as r, qt as i, r as a, t as o, z as ee } from
|
|
|
2
2
|
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { c, r as te } from "./canvas-lib-BOP_HS11.js";
|
|
4
4
|
import { t as l } from "./useResponsive-BfnK0KxU.js";
|
|
5
|
-
import { t as ne } from "./BaseIcon-
|
|
6
|
-
import {
|
|
5
|
+
import { t as ne } from "./BaseIcon-UdRAvP2h.js";
|
|
6
|
+
import { t as re } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as ie, mergeProps as ae, nextTick as oe, normalizeClass as h, normalizeProps as se, normalizeStyle as g, onBeforeUnmount as ce, onMounted as le, onUpdated as ue, openBlock as _, ref as v, renderList as y, renderSlot as de, toDisplayString as fe, unref as pe, useCssVars as me, vModelText as he, watch as b, withDirectives as ge } from "vue";
|
|
7
8
|
//#region src/atoms/Slicer.vue
|
|
8
|
-
var
|
|
9
|
+
var _e = ["data-minimap"], ve = {
|
|
9
10
|
class: "vue-data-ui-slicer-labels",
|
|
10
11
|
style: {
|
|
11
12
|
position: "relative",
|
|
12
13
|
"z-index": "1",
|
|
13
14
|
"pointer-events": "none"
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
+
}, ye = {
|
|
16
17
|
key: 0,
|
|
17
18
|
style: {
|
|
18
19
|
width: "100%",
|
|
19
20
|
position: "relative",
|
|
20
21
|
"pointer-events": "all"
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, be = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "minimap",
|
|
25
26
|
style: { width: "100%" }
|
|
26
|
-
},
|
|
27
|
+
}, xe = ["xmlns", "viewBox"], Se = [
|
|
27
28
|
"width",
|
|
28
29
|
"height",
|
|
29
30
|
"stroke"
|
|
30
|
-
],
|
|
31
|
+
], Ce = ["d", "stroke"], we = [
|
|
31
32
|
"x",
|
|
32
33
|
"width",
|
|
33
34
|
"y",
|
|
34
35
|
"height",
|
|
35
36
|
"fill"
|
|
36
|
-
],
|
|
37
|
+
], Te = ["d", "stroke"], Ee = [
|
|
37
38
|
"cx",
|
|
38
39
|
"cy",
|
|
39
40
|
"fill",
|
|
40
41
|
"stroke"
|
|
41
|
-
],
|
|
42
|
+
], De = [
|
|
42
43
|
"x",
|
|
43
44
|
"width",
|
|
44
45
|
"height",
|
|
45
46
|
"fill",
|
|
46
47
|
"rx"
|
|
47
|
-
],
|
|
48
|
+
], Oe = [
|
|
48
49
|
"x",
|
|
49
50
|
"width",
|
|
50
51
|
"height",
|
|
51
52
|
"rx",
|
|
52
53
|
"fill"
|
|
53
|
-
],
|
|
54
|
+
], ke = [
|
|
54
55
|
"x",
|
|
55
56
|
"width",
|
|
56
57
|
"height",
|
|
57
58
|
"fill",
|
|
58
59
|
"rx"
|
|
59
|
-
],
|
|
60
|
+
], Ae = [
|
|
60
61
|
"x2",
|
|
61
62
|
"y1",
|
|
62
63
|
"y2",
|
|
63
64
|
"stroke"
|
|
64
|
-
],
|
|
65
|
+
], je = ["d", "fill"], Me = ["d", "stroke"], Ne = { key: 6 }, Pe = [
|
|
65
66
|
"x",
|
|
66
67
|
"width",
|
|
67
68
|
"y",
|
|
68
69
|
"height",
|
|
69
70
|
"fill"
|
|
70
|
-
],
|
|
71
|
+
], Fe = ["d", "stroke"], Ie = [
|
|
71
72
|
"x",
|
|
72
73
|
"width",
|
|
73
74
|
"height",
|
|
74
75
|
"fill",
|
|
75
76
|
"stroke",
|
|
76
77
|
"stroke-width"
|
|
77
|
-
],
|
|
78
|
+
], Le = [
|
|
78
79
|
"x",
|
|
79
80
|
"width",
|
|
80
81
|
"height"
|
|
81
|
-
],
|
|
82
|
+
], Re = ["fill", "stroke"], ze = ["stroke"], Be = ["fill"], Ve = [
|
|
82
83
|
"x",
|
|
83
84
|
"width",
|
|
84
85
|
"height",
|
|
85
86
|
"fill",
|
|
86
87
|
"stroke",
|
|
87
88
|
"stroke-width"
|
|
88
|
-
],
|
|
89
|
+
], He = [
|
|
89
90
|
"x",
|
|
90
91
|
"width",
|
|
91
92
|
"height"
|
|
92
|
-
],
|
|
93
|
+
], Ue = ["fill", "stroke"], We = ["stroke"], Ge = ["fill"], Ke = [
|
|
93
94
|
"cx",
|
|
94
95
|
"cy",
|
|
95
96
|
"stroke",
|
|
96
97
|
"fill"
|
|
97
|
-
],
|
|
98
|
+
], qe = [
|
|
98
99
|
"cx",
|
|
99
100
|
"cy",
|
|
100
101
|
"fill"
|
|
101
|
-
],
|
|
102
|
+
], Je = [
|
|
102
103
|
"cx",
|
|
103
104
|
"cy",
|
|
104
105
|
"stroke",
|
|
105
106
|
"fill"
|
|
106
|
-
],
|
|
107
|
+
], Ye = [
|
|
107
108
|
"cx",
|
|
108
109
|
"cy",
|
|
109
110
|
"fill"
|
|
110
|
-
],
|
|
111
|
+
], Xe = { key: 12 }, Ze = [
|
|
111
112
|
"cx",
|
|
112
113
|
"cy",
|
|
113
114
|
"fill",
|
|
114
115
|
"stroke"
|
|
115
|
-
],
|
|
116
|
+
], Qe = [
|
|
116
117
|
"cx",
|
|
117
118
|
"cy",
|
|
118
119
|
"stroke",
|
|
119
120
|
"fill"
|
|
120
|
-
],
|
|
121
|
+
], $e = [
|
|
121
122
|
"cx",
|
|
122
123
|
"cy",
|
|
123
124
|
"fill"
|
|
124
|
-
],
|
|
125
|
+
], et = [
|
|
125
126
|
"cx",
|
|
126
127
|
"cy",
|
|
127
128
|
"stroke",
|
|
128
129
|
"fill"
|
|
129
|
-
],
|
|
130
|
+
], tt = [
|
|
130
131
|
"cx",
|
|
131
132
|
"cy",
|
|
132
133
|
"fill"
|
|
133
|
-
],
|
|
134
|
+
], nt = [
|
|
134
135
|
"height",
|
|
135
136
|
"x",
|
|
136
137
|
"width",
|
|
137
138
|
"onMouseenter"
|
|
138
|
-
],
|
|
139
|
+
], rt = ["min", "max"], it = ["min", "max"], at = 48, ot = /*#__PURE__*/ s({
|
|
139
140
|
__name: "Slicer",
|
|
140
141
|
props: {
|
|
141
142
|
background: {
|
|
@@ -315,98 +316,98 @@ var ge = ["data-minimap"], _e = {
|
|
|
315
316
|
"reset",
|
|
316
317
|
"trapMouse"
|
|
317
318
|
],
|
|
318
|
-
setup(s, { expose:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
319
|
+
setup(s, { expose: ot, emit: st }) {
|
|
320
|
+
me((e) => ({
|
|
321
|
+
v78171e72: St.value,
|
|
322
|
+
v5be9f93b: j.value,
|
|
323
|
+
v3bad6e6c: wt.value,
|
|
324
|
+
v3c1f3a6b: s.selectColor,
|
|
325
|
+
v430a7779: Ct.value
|
|
325
326
|
}));
|
|
326
|
-
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length),
|
|
327
|
-
|
|
327
|
+
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), ct = v(t()), E = d(() => T.value && x.minimapCompact), lt = v(0);
|
|
328
|
+
le(() => {
|
|
328
329
|
let e = () => {
|
|
329
|
-
S.value && (
|
|
330
|
+
S.value && (lt.value = S.value.getBoundingClientRect().width);
|
|
330
331
|
};
|
|
331
332
|
e();
|
|
332
333
|
let t = c(e, 50);
|
|
333
|
-
window.addEventListener("resize", t),
|
|
334
|
+
window.addEventListener("resize", t), ce(() => {
|
|
334
335
|
window.removeEventListener("resize", t);
|
|
335
336
|
});
|
|
336
337
|
});
|
|
337
|
-
let
|
|
338
|
+
let ut = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), D = st, O = d(() => {
|
|
338
339
|
if (E.value) {
|
|
339
|
-
let e = Math.max(1,
|
|
340
|
-
return
|
|
340
|
+
let e = Math.max(1, xn.value - 1);
|
|
341
|
+
return bt.value / e * 100;
|
|
341
342
|
}
|
|
342
343
|
let e = Math.max(1, x.max - x.min);
|
|
343
344
|
return (C.value - x.min) / e * 100;
|
|
344
|
-
}),
|
|
345
|
+
}), dt = d(() => {
|
|
345
346
|
if (E.value) {
|
|
346
|
-
let e = Math.max(1,
|
|
347
|
-
return
|
|
347
|
+
let e = Math.max(1, xn.value - 1);
|
|
348
|
+
return xt.value / e * 100;
|
|
348
349
|
}
|
|
349
350
|
let e = Math.max(1, x.max - x.min);
|
|
350
351
|
return (w.value - x.min) / e * 100;
|
|
351
|
-
}),
|
|
352
|
+
}), ft = d(() => (O.value + dt.value) / 2), pt = d(() => {
|
|
352
353
|
if (!S.value) return !1;
|
|
353
354
|
let e = S.value.getBoundingClientRect().width;
|
|
354
|
-
return O.value / 100 * e -
|
|
355
|
-
}),
|
|
355
|
+
return O.value / 100 * e - pn.value / 2 < 0;
|
|
356
|
+
}), mt = d(() => {
|
|
356
357
|
if (!S.value) return !1;
|
|
357
358
|
let e = S.value.getBoundingClientRect().width;
|
|
358
|
-
return
|
|
359
|
+
return dt.value / 100 * e + mn.value / 2 > e;
|
|
359
360
|
}), k = d(() => {
|
|
360
|
-
let e =
|
|
361
|
+
let e = mt.value ? `calc(${ft.value}% - ${bn.value.width}px)` : pt.value ? `calc(${ft.value}% - 8px)` : `calc(${ft.value}% - ${bn.value.width / 2}px)`;
|
|
361
362
|
return {
|
|
362
363
|
left: `${O.value}%`,
|
|
363
|
-
width: `${Math.max(0,
|
|
364
|
+
width: `${Math.max(0, dt.value - O.value)}%`,
|
|
364
365
|
background: x.selectColor,
|
|
365
|
-
tooltipLeft: `calc(${O.value}% - ${
|
|
366
|
-
tooltipRight: `calc(${
|
|
366
|
+
tooltipLeft: `calc(${O.value}% - ${pt.value ? 9 : pn.value / 2}px)`,
|
|
367
|
+
tooltipRight: `calc(${dt.value}% - ${mt.value ? mn.value - 9 : mn.value / 2}px)`,
|
|
367
368
|
tooltipCenter: e,
|
|
368
|
-
arrowLeft: !
|
|
369
|
-
arrowRight: !
|
|
369
|
+
arrowLeft: !pt.value,
|
|
370
|
+
arrowRight: !mt.value
|
|
370
371
|
};
|
|
371
|
-
}),
|
|
372
|
-
function
|
|
373
|
-
return
|
|
372
|
+
}), A = d(() => Math.max(0, (P.value || 1) - 1)), ht = d(() => Math.max(0, (xn.value || 1) - 1));
|
|
373
|
+
function gt(e) {
|
|
374
|
+
return ht.value === 0 ? 0 : Math.round(e / ht.value * A.value);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
376
|
+
function _t(e) {
|
|
377
|
+
return A.value === 0 ? 0 : Math.round(e / A.value * ht.value);
|
|
377
378
|
}
|
|
378
|
-
let
|
|
379
|
+
let vt = (e) => Math.floor(x.min + e), yt = (e) => Math.ceil(x.min + e), bt = d({
|
|
379
380
|
get() {
|
|
380
|
-
return E.value ?
|
|
381
|
+
return E.value ? gt(Q.value) : Number(C.value);
|
|
381
382
|
},
|
|
382
383
|
set(e) {
|
|
383
384
|
if (E.value) {
|
|
384
|
-
let t = Math.round(+e || 0), n = Math.max(0,
|
|
385
|
-
|
|
385
|
+
let t = Math.round(+e || 0), n = Math.max(0, gt(Math.max(0, $.value - 1)));
|
|
386
|
+
H(vt(_t(Math.min(Math.max(0, t), n))));
|
|
386
387
|
} else {
|
|
387
388
|
let t = Math.round(+e || 0), n = Number(w.value) - 1;
|
|
388
|
-
|
|
389
|
+
H(Math.min(Math.max(x.min, t), n));
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
}),
|
|
392
|
+
}), xt = d({
|
|
392
393
|
get() {
|
|
393
|
-
return E.value ?
|
|
394
|
+
return E.value ? gt(Math.max(Q.value, $.value - 1)) : Number(w.value);
|
|
394
395
|
},
|
|
395
396
|
set(e) {
|
|
396
397
|
if (E.value) {
|
|
397
|
-
let t = Math.round(+e || 0), n =
|
|
398
|
-
|
|
398
|
+
let t = Math.round(+e || 0), n = gt(Q.value);
|
|
399
|
+
U(yt(_t(Math.max(t, n)) + 1));
|
|
399
400
|
} else {
|
|
400
401
|
let t = Math.round(+e || 0), n = Number(C.value) + 1;
|
|
401
|
-
|
|
402
|
+
U(Math.max(n, Math.min(t, x.max)));
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
|
-
}),
|
|
405
|
+
}), St = d(() => x.inputColor), Ct = d(() => x.background), wt = d(() => `${x.selectColor}33`), j = d(() => x.borderColor), Tt = d(() => {
|
|
405
406
|
let e = [];
|
|
406
407
|
for (let t = 0; t < x.max; t += 1) e.push(t);
|
|
407
408
|
return e;
|
|
408
409
|
});
|
|
409
|
-
function
|
|
410
|
+
function Et() {
|
|
410
411
|
D("reset");
|
|
411
412
|
}
|
|
412
413
|
b(() => x.min, (e) => {
|
|
@@ -414,26 +415,26 @@ var ge = ["data-minimap"], _e = {
|
|
|
414
415
|
}), b(() => x.max, (e) => {
|
|
415
416
|
Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
|
|
416
417
|
});
|
|
417
|
-
let
|
|
418
|
+
let Dt = v(null), M = v({
|
|
418
419
|
width: 1,
|
|
419
420
|
height: 1
|
|
420
|
-
}),
|
|
421
|
-
|
|
421
|
+
}), N = v(null);
|
|
422
|
+
le(() => {
|
|
422
423
|
if (T.value) {
|
|
423
424
|
let e = c(() => {
|
|
424
|
-
let { width: e, height: t } = l({ chart:
|
|
425
|
-
|
|
425
|
+
let { width: e, height: t } = l({ chart: Dt.value });
|
|
426
|
+
M.value.width = e, M.value.height = t - 47;
|
|
426
427
|
});
|
|
427
|
-
|
|
428
|
+
N.value = new ResizeObserver(e), N.value.observe(Dt.value);
|
|
428
429
|
}
|
|
429
|
-
}),
|
|
430
|
-
|
|
430
|
+
}), ce(() => {
|
|
431
|
+
N.value && N.value.disconnect();
|
|
431
432
|
});
|
|
432
|
-
let
|
|
433
|
-
if (!
|
|
434
|
-
let e = Math.max(1,
|
|
435
|
-
return
|
|
436
|
-
}),
|
|
433
|
+
let P = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length), x.minimap.length || 0)), F = d(() => {
|
|
434
|
+
if (!P.value) return 0;
|
|
435
|
+
let e = Math.max(1, P.value - +!!x.minimapCompact);
|
|
436
|
+
return M.value.width / e;
|
|
437
|
+
}), Ot = d(() => {
|
|
437
438
|
let e = [];
|
|
438
439
|
if (Array.isArray(x.minimap) && x.minimap.length && x.minimapMerged && e.push(...x.minimap.filter(Number.isFinite)), Array.isArray(x.allMinimaps) && x.allMinimaps.length) for (let t of x.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
|
|
439
440
|
return e.length ? {
|
|
@@ -443,24 +444,24 @@ var ge = ["data-minimap"], _e = {
|
|
|
443
444
|
min: 0,
|
|
444
445
|
max: 1
|
|
445
446
|
};
|
|
446
|
-
}),
|
|
447
|
-
let t = Math.max(1,
|
|
448
|
-
if (
|
|
449
|
-
let n =
|
|
447
|
+
}), I = d(() => Ot.value.min), L = d(() => Ot.value.max), kt = d(() => I.value < 0 && L.value > 0 || L.value <= 0 ? I.value : 0), At = d(() => Math.max(1e-9, Math.max(Math.abs(I.value), Math.abs(L.value)))), jt = d(() => I.value < 0 && L.value > 0), Mt = (e) => {
|
|
448
|
+
let t = Math.max(1, M.value.height);
|
|
449
|
+
if (jt.value) {
|
|
450
|
+
let n = At.value;
|
|
450
451
|
return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
|
|
451
452
|
} else {
|
|
452
|
-
let n = Math.min(0,
|
|
453
|
+
let n = Math.min(0, I.value), r = Math.max(0, L.value);
|
|
453
454
|
return t - (e - n) / Math.max(1e-9, r - n) * t;
|
|
454
455
|
}
|
|
455
|
-
},
|
|
456
|
-
function
|
|
457
|
-
let r =
|
|
456
|
+
}, Nt = d(() => Mt(0)), Pt = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar").length : 0), Ft = d(() => F.value / (Pt.value || 1) * .8);
|
|
457
|
+
function It(e, t, n) {
|
|
458
|
+
let r = Ft.value, i = Math.max(1, Pt.value), a = P.value - 1;
|
|
458
459
|
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
-
return [0,
|
|
461
|
+
function Lt(e, t) {
|
|
462
|
+
return [0, P.value - 1].includes(t) ? Ft.value / 2 : Ft.value;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function Rt(e, t, n) {
|
|
464
465
|
let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
|
|
465
466
|
if (t <= 0) {
|
|
466
467
|
let t = Math.max(i, 0 - e);
|
|
@@ -473,7 +474,7 @@ var ge = ["data-minimap"], _e = {
|
|
|
473
474
|
let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
|
|
474
475
|
return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function zt(t, i = !1) {
|
|
477
478
|
if (!t || !t.length) return {
|
|
478
479
|
fullSet: "",
|
|
479
480
|
points: [],
|
|
@@ -486,8 +487,8 @@ var ge = ["data-minimap"], _e = {
|
|
|
486
487
|
fullMarkers: [],
|
|
487
488
|
selectionMarkers: []
|
|
488
489
|
};
|
|
489
|
-
let a = Math.max(1,
|
|
490
|
-
let n = e, r = Number.isFinite(n), i =
|
|
490
|
+
let a = Math.max(1, M.value.height), o = Rt(I.value, L.value, a), s = t.length, c = Math.min(Math.max(0, Q.value), Math.max(0, s - 1)), te = Math.min(s, Math.max(c + 1, $.value)), l = t.map((e, t) => {
|
|
491
|
+
let n = e, r = Number.isFinite(n), i = F.value * t + (x.minimapCompact ? 0 : F.value / 2), a = o(0);
|
|
491
492
|
return {
|
|
492
493
|
x: i,
|
|
493
494
|
y: r ? o(n) : NaN,
|
|
@@ -496,21 +497,21 @@ var ge = ["data-minimap"], _e = {
|
|
|
496
497
|
y0: a,
|
|
497
498
|
i: t
|
|
498
499
|
};
|
|
499
|
-
}), ne = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value),
|
|
500
|
+
}), ne = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), re = l.filter((e) => Number.isFinite(e.value) && !ne(e.i - 1) && !ne(e.i + 1)), u = re.filter((e) => e.i >= c && e.i < te), d = l.slice(c, te);
|
|
500
501
|
return {
|
|
501
502
|
fullSet: l.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(l) : n(l.filter((e) => e.value != null)) : x.cutNullValues ? e(l) : ee(l.filter((e) => e.value != null)) : "",
|
|
502
503
|
points: l,
|
|
503
|
-
selectionSet:
|
|
504
|
-
sliced:
|
|
504
|
+
selectionSet: d.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(d) : n(d.filter((e) => e.value != null)) : x.cutNullValues ? e(d) : ee(d.filter((e) => e.value != null)) : "",
|
|
505
|
+
sliced: d,
|
|
505
506
|
firstPlot: l[c] || null,
|
|
506
507
|
lastPlot: l[Math.max(0, te - 1)] || null,
|
|
507
508
|
hasFull: l.length >= 2,
|
|
508
|
-
hasSelection:
|
|
509
|
-
fullMarkers:
|
|
510
|
-
selectionMarkers:
|
|
509
|
+
hasSelection: d.length >= 2,
|
|
510
|
+
fullMarkers: re,
|
|
511
|
+
selectionMarkers: u
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
|
-
let
|
|
514
|
+
let R = d(() => x.minimap.length ? zt(x.minimap) : {
|
|
514
515
|
fullSet: "",
|
|
515
516
|
selectionSet: "",
|
|
516
517
|
sliced: [],
|
|
@@ -518,8 +519,8 @@ var ge = ["data-minimap"], _e = {
|
|
|
518
519
|
lastPlot: null,
|
|
519
520
|
hasFull: !1,
|
|
520
521
|
hasSelection: !1
|
|
521
|
-
}),
|
|
522
|
-
let n =
|
|
522
|
+
}), z = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
|
|
523
|
+
let n = zt(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
|
|
523
524
|
return {
|
|
524
525
|
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
525
526
|
color: e?.color,
|
|
@@ -527,146 +528,146 @@ var ge = ["data-minimap"], _e = {
|
|
|
527
528
|
isVisible: e.isVisible,
|
|
528
529
|
type: e.type || "line"
|
|
529
530
|
};
|
|
530
|
-
}) : []),
|
|
531
|
+
}) : []), B = d(() => {
|
|
531
532
|
let e = Q.value, t = Math.max(e + 1, $.value);
|
|
532
533
|
return {
|
|
533
|
-
x:
|
|
534
|
-
width:
|
|
534
|
+
x: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
|
|
535
|
+
width: F.value * (t - e) - F.value
|
|
535
536
|
};
|
|
536
|
-
}),
|
|
537
|
-
function
|
|
538
|
-
|
|
537
|
+
}), V = v(x.minimapSelectedIndex);
|
|
538
|
+
function Bt(e) {
|
|
539
|
+
V.value = Sn(x.valueStart) + e;
|
|
539
540
|
}
|
|
540
|
-
let
|
|
541
|
+
let Vt = te(Bt, 60);
|
|
541
542
|
b(() => x.minimapSelectedIndex, (e, t) => {
|
|
542
543
|
if ([null, void 0].includes(e)) {
|
|
543
|
-
|
|
544
|
+
V.value = null;
|
|
544
545
|
return;
|
|
545
546
|
}
|
|
546
|
-
e !== t &&
|
|
547
|
+
e !== t && Vt(e);
|
|
547
548
|
}, { immediate: !0 });
|
|
548
|
-
function
|
|
549
|
-
|
|
549
|
+
function Ht(e) {
|
|
550
|
+
V.value = e;
|
|
550
551
|
let t = Q.value, n = $.value;
|
|
551
|
-
e >= t && e < n && !
|
|
552
|
+
e >= t && e < n && !Y.value && D("trapMouse", e - t);
|
|
552
553
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
C.value = e,
|
|
554
|
+
let Ut = v(null), Wt = v(null);
|
|
555
|
+
function H(e) {
|
|
556
|
+
C.value = e, Ut.value && (Ut.value.value = e), D("update:start", Number(C.value));
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
w.value = e,
|
|
558
|
+
function U(e) {
|
|
559
|
+
w.value = e, Wt.value && (Wt.value.value = e), D("update:end", Number(w.value));
|
|
559
560
|
}
|
|
560
|
-
let
|
|
561
|
-
function
|
|
561
|
+
let Gt = d(() => x.valueEnd - x.valueStart), Kt = d(() => Gt.value < x.max - x.min), W = v(!1), qt = v(null), Jt = d(() => (lt.value - 48) / (x.max - x.min) * Gt.value), Yt = d(() => Math.max(1, lt.value - at - Jt.value)), Xt = d(() => Math.max(1, x.max - x.min - Gt.value)), Zt = d(() => Xt.value / Yt.value), Qt = v(0), $t = v(0), en = v(0), tn = v(0), G = null, K = null, q = null, J = null, nn = v(x.min);
|
|
562
|
+
function rn(e) {
|
|
562
563
|
if (!S.value) return x.min;
|
|
563
|
-
let t = S.value.getBoundingClientRect(), n = t.left +
|
|
564
|
+
let t = S.value.getBoundingClientRect(), n = t.left + at / 2, r = t.right - at / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
|
|
564
565
|
return Math.round(x.min + a * o);
|
|
565
566
|
}
|
|
566
|
-
let
|
|
567
|
-
if (
|
|
567
|
+
let an = async (e) => {
|
|
568
|
+
if (Z.value = !0, !x.enableSelectionDrag) return;
|
|
568
569
|
let t = e.type === "touchstart";
|
|
569
570
|
t || e.stopPropagation();
|
|
570
571
|
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
|
|
571
572
|
if (!r || !(r instanceof Element) || r.classList && r.classList.contains("range-handle")) return;
|
|
572
|
-
|
|
573
|
+
W.value = !0;
|
|
573
574
|
let a = t ? n ? n.clientX : 0 : e.clientX;
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
let e = Math.min(.95, Math.max(.05, x.focusRangeRatio)), t = x.max - x.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o =
|
|
575
|
+
if (qt.value = a, Qt.value = a, x.focusOnDrag && !Kt.value && S.value) {
|
|
576
|
+
nn.value = rn(a);
|
|
577
|
+
let e = Math.min(.95, Math.max(.05, x.focusRangeRatio)), t = x.max - x.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = nn.value - r;
|
|
577
578
|
o = Math.max(x.min, Math.min(o, x.max - n));
|
|
578
579
|
let ee = Math.min(x.max, o + n);
|
|
579
|
-
|
|
580
|
+
H(o), U(ee), i(S.value, "mouseup"), await oe(), i(S.value, "mousedown", { clientX: a });
|
|
580
581
|
}
|
|
581
|
-
|
|
582
|
+
$t.value = Number(C.value), en.value = Number(w.value), tn.value = Zt.value, G = t ? "touchmove" : "mousemove", K = t ? "touchend" : "mouseup", q = t ? sn : on, J = t ? un : ln, window.addEventListener(G, q, { passive: !1 }), window.addEventListener(K, J);
|
|
582
583
|
};
|
|
583
|
-
function
|
|
584
|
-
|
|
584
|
+
function on(e) {
|
|
585
|
+
W.value && cn(e.clientX);
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
-
if (!
|
|
587
|
+
function sn(e) {
|
|
588
|
+
if (!W.value || !S.value) return;
|
|
588
589
|
let t = e.target;
|
|
589
590
|
if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
590
591
|
e.preventDefault();
|
|
591
592
|
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
592
|
-
n &&
|
|
593
|
+
n && cn(n.clientX);
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
-
if (!
|
|
596
|
-
let t =
|
|
595
|
+
function cn(e) {
|
|
596
|
+
if (!W.value) return;
|
|
597
|
+
let t = rn(Qt.value), n = rn(e) - t, r = Math.max(1, en.value - $t.value), i = Math.round($t.value + n), a = x.min, o = x.max - r;
|
|
597
598
|
i < a && (i = a), i > o && (i = o);
|
|
598
599
|
let ee = i + r;
|
|
599
|
-
|
|
600
|
+
H(i), U(ee);
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
602
|
+
function ln() {
|
|
603
|
+
dn();
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
-
|
|
605
|
+
function un() {
|
|
606
|
+
dn();
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
-
|
|
608
|
+
function dn() {
|
|
609
|
+
W.value = !1, G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
|
|
609
610
|
}
|
|
610
|
-
let
|
|
611
|
-
function
|
|
612
|
-
|
|
611
|
+
let Y = v(!1), X = v(null), fn = v(null), pn = v(1), mn = v(1), Z = v(!1);
|
|
612
|
+
function hn() {
|
|
613
|
+
X.value && (pn.value = X.value.getBoundingClientRect().width);
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
-
|
|
615
|
+
function gn() {
|
|
616
|
+
fn.value && (mn.value = fn.value.getBoundingClientRect().width);
|
|
616
617
|
}
|
|
617
|
-
let
|
|
618
|
-
function
|
|
619
|
-
|
|
618
|
+
let _n = v(0);
|
|
619
|
+
function vn(e) {
|
|
620
|
+
_n.value = +(e === "start");
|
|
620
621
|
}
|
|
621
|
-
let
|
|
622
|
+
let yn = v(!1), bn = v({
|
|
622
623
|
width: 0,
|
|
623
624
|
left: 0
|
|
624
625
|
});
|
|
625
626
|
b([C, w], async () => {
|
|
626
|
-
if (await
|
|
627
|
-
|
|
627
|
+
if (await oe(), !X.value || !fn.value) {
|
|
628
|
+
yn.value = !1, bn.value = {
|
|
628
629
|
width: 0,
|
|
629
630
|
left: 0
|
|
630
631
|
};
|
|
631
632
|
return;
|
|
632
633
|
}
|
|
633
|
-
let e =
|
|
634
|
-
|
|
634
|
+
let e = X.value.getBoundingClientRect(), t = fn.value.getBoundingClientRect();
|
|
635
|
+
yn.value = e.x + e.width > t.x;
|
|
635
636
|
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
636
|
-
|
|
637
|
+
bn.value = {
|
|
637
638
|
width: i,
|
|
638
639
|
left: (n + r) / 2 - i / 2
|
|
639
640
|
};
|
|
640
|
-
}),
|
|
641
|
-
|
|
641
|
+
}), ue(() => {
|
|
642
|
+
hn(), gn();
|
|
642
643
|
}), b(() => x.labelLeft, () => {
|
|
643
|
-
|
|
644
|
+
oe(hn);
|
|
644
645
|
}, { deep: !0 }), b(() => x.labelRight, () => {
|
|
645
|
-
|
|
646
|
-
}, { deep: !0 }),
|
|
647
|
-
setStartValue:
|
|
648
|
-
setEndValue:
|
|
649
|
-
}),
|
|
650
|
-
|
|
646
|
+
oe(gn);
|
|
647
|
+
}, { deep: !0 }), ot({
|
|
648
|
+
setStartValue: H,
|
|
649
|
+
setEndValue: U
|
|
650
|
+
}), ce(() => {
|
|
651
|
+
N.value && N.value.disconnect(), G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
|
|
651
652
|
});
|
|
652
|
-
let
|
|
653
|
-
function
|
|
653
|
+
let xn = d(() => Math.max(1, x.max - x.min));
|
|
654
|
+
function Sn(e) {
|
|
654
655
|
let t = Math.floor(e - x.min);
|
|
655
|
-
return Math.min(Math.max(0, t),
|
|
656
|
+
return Math.min(Math.max(0, t), xn.value);
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
+
function Cn(e) {
|
|
658
659
|
let t = Math.ceil(e - x.min);
|
|
659
|
-
return Math.min(Math.max(0, t),
|
|
660
|
+
return Math.min(Math.max(0, t), xn.value);
|
|
660
661
|
}
|
|
661
|
-
let Q = d(() =>
|
|
662
|
-
if (!
|
|
663
|
-
if (
|
|
664
|
-
let e =
|
|
662
|
+
let Q = d(() => Sn(C.value)), $ = d(() => Cn(w.value)), wn = d(() => {
|
|
663
|
+
if (!Tt.value.length) return null;
|
|
664
|
+
if (V.value >= Q.value && V.value < $.value) {
|
|
665
|
+
let e = V.value;
|
|
665
666
|
return {
|
|
666
|
-
x1:
|
|
667
|
-
x2:
|
|
667
|
+
x1: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
|
|
668
|
+
x2: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
|
|
668
669
|
y1: 0,
|
|
669
|
-
y2: Math.max(
|
|
670
|
+
y2: Math.max(M.value.height, 0),
|
|
670
671
|
stroke: x.minimapIndicatorColor,
|
|
671
672
|
"stroke-linecap": "round",
|
|
672
673
|
"stroke-dasharray": 2,
|
|
@@ -685,10 +686,10 @@ var ge = ["data-minimap"], _e = {
|
|
|
685
686
|
class: "vue-data-ui-zoom",
|
|
686
687
|
ref_key: "zoomWrapper",
|
|
687
688
|
ref: S,
|
|
688
|
-
onMousedown:
|
|
689
|
-
onTouchstart:
|
|
690
|
-
onTouchend: t[11] ||= (e) =>
|
|
691
|
-
}, [m("div",
|
|
689
|
+
onMousedown: an,
|
|
690
|
+
onTouchstart: an,
|
|
691
|
+
onTouchend: t[11] ||= (e) => Z.value = !1
|
|
692
|
+
}, [m("div", ve, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== ut.value ? (_(), p("div", ye, [de(e.$slots, "reset-action", { reset: Et }, () => [m("button", {
|
|
692
693
|
tabindex: "0",
|
|
693
694
|
role: "button",
|
|
694
695
|
class: "vue-data-ui-refresh-button",
|
|
@@ -696,143 +697,147 @@ var ge = ["data-minimap"], _e = {
|
|
|
696
697
|
top: T.value ? "36px" : "-16px",
|
|
697
698
|
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
698
699
|
}),
|
|
699
|
-
onClick:
|
|
700
|
-
}, [
|
|
700
|
+
onClick: Et
|
|
701
|
+
}, [ie(ne, {
|
|
701
702
|
name: "refresh",
|
|
702
703
|
stroke: s.textColor
|
|
703
704
|
}, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
|
|
704
705
|
class: "double-range-slider",
|
|
705
706
|
ref_key: "minimapWrapper",
|
|
706
|
-
ref:
|
|
707
|
+
ref: Dt,
|
|
707
708
|
style: g([{ "z-index": "0" }, T.value ? {
|
|
708
|
-
"--minimap-unit-px":
|
|
709
|
-
"--minimap-offset-px": (s.minimapCompact ? 0 :
|
|
709
|
+
"--minimap-unit-px": F.value + "px",
|
|
710
|
+
"--minimap-offset-px": (s.minimapCompact ? 0 : F.value / 2) + "px"
|
|
710
711
|
} : void 0]),
|
|
711
|
-
onMouseenter: t[9] ||= (e) =>
|
|
712
|
-
onMouseleave: t[10] ||= (e) =>
|
|
712
|
+
onMouseenter: t[9] ||= (e) => Z.value = !0,
|
|
713
|
+
onMouseleave: t[10] ||= (e) => Z.value = !1
|
|
713
714
|
}, [
|
|
714
|
-
T.value ? (_(), p("div",
|
|
715
|
+
T.value ? (_(), p("div", be, [(_(), p("svg", {
|
|
715
716
|
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
716
|
-
xmlns:
|
|
717
|
-
viewBox: `0 0 ${Math.max(0,
|
|
717
|
+
xmlns: pe(o),
|
|
718
|
+
viewBox: `0 0 ${Math.max(0, M.value.width)} ${Math.max(0, M.value.height)}`
|
|
718
719
|
}, [
|
|
719
|
-
m("defs", null, [
|
|
720
|
-
|
|
720
|
+
m("defs", null, [ie(re, {
|
|
721
|
+
t: "linear",
|
|
722
|
+
id: ct.value,
|
|
721
723
|
x1: "0%",
|
|
722
724
|
y1: "0%",
|
|
723
725
|
x2: "0%",
|
|
724
|
-
y2: "100%"
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
726
|
+
y2: "100%",
|
|
727
|
+
stops: [[
|
|
728
|
+
"0%",
|
|
729
|
+
s.minimapLineColor,
|
|
730
|
+
.31
|
|
731
|
+
], [
|
|
732
|
+
"100%",
|
|
733
|
+
"transparent",
|
|
734
|
+
0
|
|
735
|
+
]]
|
|
736
|
+
}, null, 8, ["id", "stops"])]),
|
|
732
737
|
s.minimapCompact ? (_(), p("rect", {
|
|
733
738
|
key: 0,
|
|
734
739
|
class: "vue-ui-zoom-minimap-frame",
|
|
735
740
|
x: 0,
|
|
736
741
|
y: 0,
|
|
737
|
-
width:
|
|
738
|
-
height:
|
|
742
|
+
width: M.value.width,
|
|
743
|
+
height: M.value.height,
|
|
739
744
|
fill: "none",
|
|
740
745
|
stroke: s.minimapFrameColor,
|
|
741
746
|
rx: 3
|
|
742
|
-
}, null, 8,
|
|
747
|
+
}, null, 8, Se)) : f("", !0),
|
|
743
748
|
s.minimapMerged ? (_(), p("path", {
|
|
744
749
|
key: 1,
|
|
745
|
-
d: `M${
|
|
750
|
+
d: `M${R.value.fullSet}`,
|
|
746
751
|
stroke: `${s.minimapLineColor}`,
|
|
747
752
|
fill: "none",
|
|
748
753
|
"stroke-width": "1",
|
|
749
754
|
"stroke-linecap": "round",
|
|
750
755
|
"stroke-linejoin": "round",
|
|
751
756
|
style: { opacity: "0.6" }
|
|
752
|
-
}, null, 8,
|
|
757
|
+
}, null, 8, Ce)) : (_(), p(u, { key: 2 }, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
|
|
753
758
|
key: 0,
|
|
754
|
-
x:
|
|
755
|
-
width:
|
|
759
|
+
x: It(n.x, t, r),
|
|
760
|
+
width: Lt(t, r),
|
|
756
761
|
y: n.v >= 0 ? n.y : n.y0,
|
|
757
762
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
758
763
|
fill: e.color,
|
|
759
764
|
style: { opacity: "0.6" }
|
|
760
|
-
}, null, 8,
|
|
765
|
+
}, null, 8, we)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e.isVisible ? (_(), p("path", {
|
|
761
766
|
key: 0,
|
|
762
767
|
d: `M ${e.fullSet}`,
|
|
763
768
|
fill: "none",
|
|
764
769
|
stroke: e.color,
|
|
765
770
|
style: { opacity: "0.6" }
|
|
766
|
-
}, null, 8,
|
|
771
|
+
}, null, 8, Te)) : f("", !0), e.isVisible ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
|
|
767
772
|
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
768
773
|
cx: t.x,
|
|
769
774
|
cy: t.y,
|
|
770
775
|
r: "2",
|
|
771
776
|
fill: e.color,
|
|
772
|
-
stroke:
|
|
777
|
+
stroke: j.value,
|
|
773
778
|
"stroke-width": "0.5",
|
|
774
779
|
style: { opacity: "0.6" }
|
|
775
|
-
}, null, 8,
|
|
780
|
+
}, null, 8, Ee))), 128)) : f("", !0)]))), 128))], 64)),
|
|
776
781
|
m("rect", {
|
|
777
|
-
x:
|
|
778
|
-
width:
|
|
779
|
-
height: Math.max(
|
|
782
|
+
x: B.value.x,
|
|
783
|
+
width: B.value.width < 0 ? 0 : B.value.width,
|
|
784
|
+
height: Math.max(M.value.height, 0),
|
|
780
785
|
y: 0,
|
|
781
|
-
fill:
|
|
786
|
+
fill: j.value,
|
|
782
787
|
rx: s.minimapSelectionRadius,
|
|
783
788
|
stroke: "none"
|
|
784
|
-
}, null, 8,
|
|
789
|
+
}, null, 8, De),
|
|
785
790
|
m("rect", {
|
|
786
|
-
x:
|
|
787
|
-
width:
|
|
788
|
-
height: Math.max(
|
|
791
|
+
x: B.value.x,
|
|
792
|
+
width: B.value.width < 0 ? 0 : B.value.width,
|
|
793
|
+
height: Math.max(M.value.height, 0),
|
|
789
794
|
y: 0,
|
|
790
795
|
rx: s.minimapSelectionRadius,
|
|
791
|
-
fill:
|
|
792
|
-
}, null, 8,
|
|
796
|
+
fill: j.value
|
|
797
|
+
}, null, 8, Oe),
|
|
793
798
|
m("rect", {
|
|
794
|
-
x:
|
|
795
|
-
width:
|
|
796
|
-
height: Math.max(
|
|
799
|
+
x: B.value.x,
|
|
800
|
+
width: B.value.width < 0 ? 0 : B.value.width,
|
|
801
|
+
height: Math.max(M.value.height, 0),
|
|
797
802
|
y: 0,
|
|
798
803
|
fill: s.minimapSelectedColor,
|
|
799
804
|
rx: s.minimapSelectionRadius,
|
|
800
805
|
style: g({ opacity: s.minimapSelectedColorOpacity })
|
|
801
|
-
}, null, 12,
|
|
802
|
-
|
|
803
|
-
!s.minimapMerged &&
|
|
806
|
+
}, null, 12, ke),
|
|
807
|
+
V.value !== null && !Y.value ? (_(), p("line", se(ae({ key: 3 }, wn.value)), null, 16)) : f("", !0),
|
|
808
|
+
!s.minimapMerged && kt.value < 0 ? (_(), p("line", {
|
|
804
809
|
key: 4,
|
|
805
810
|
class: "slicer-minimap-zero-line",
|
|
806
811
|
x1: 0,
|
|
807
|
-
x2:
|
|
808
|
-
y1:
|
|
809
|
-
y2:
|
|
812
|
+
x2: M.value.width,
|
|
813
|
+
y1: Nt.value,
|
|
814
|
+
y2: Nt.value,
|
|
810
815
|
stroke: s.minimapFrameColor,
|
|
811
816
|
"stroke-width": "0.5"
|
|
812
|
-
}, null, 8,
|
|
813
|
-
s.minimapMerged ? (_(), p(u, { key: 5 }, [
|
|
817
|
+
}, null, 8, Ae)) : f("", !0),
|
|
818
|
+
s.minimapMerged ? (_(), p(u, { key: 5 }, [R.value && R.value.sliced && R.value.sliced.length ? (_(), p(u, { key: 0 }, [R.value.selectionSet ? (_(), p("path", {
|
|
814
819
|
key: 0,
|
|
815
|
-
d: `M${
|
|
816
|
-
fill: `url(#${
|
|
820
|
+
d: `M${R.value.sliced[0].x},${Math.max(M.value.height, 0)} ${R.value.selectionSet} L${R.value.sliced[R.value.sliced.length - 1].x},${Math.max(M.value.height, 0)}Z`,
|
|
821
|
+
fill: `url(#${ct.value})`,
|
|
817
822
|
stroke: "none",
|
|
818
823
|
style: { opacity: "1" }
|
|
819
|
-
}, null, 8,
|
|
824
|
+
}, null, 8, je)) : f("", !0), R.value.selectionSet ? (_(), p("path", {
|
|
820
825
|
key: 1,
|
|
821
|
-
d: `M ${
|
|
826
|
+
d: `M ${R.value.selectionSet}`,
|
|
822
827
|
stroke: `${s.minimapLineColor}`,
|
|
823
828
|
fill: "transparent",
|
|
824
829
|
"stroke-width": "2",
|
|
825
830
|
"stroke-linecap": "round",
|
|
826
831
|
"stroke-linejoin": "round"
|
|
827
|
-
}, null, 8,
|
|
832
|
+
}, null, 8, Me)) : f("", !0)], 64)) : f("", !0)], 64)) : (_(), p("g", Ne, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
|
|
828
833
|
key: 0,
|
|
829
|
-
x:
|
|
830
|
-
width:
|
|
834
|
+
x: It(n.x, t, r),
|
|
835
|
+
width: Lt(t, r),
|
|
831
836
|
y: n.v >= 0 ? n.y : n.y0,
|
|
832
837
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
833
838
|
fill: e.color,
|
|
834
839
|
style: g({ opacity: +(r >= s.valueStart && r <= s.valueEnd - 1) })
|
|
835
|
-
}, null, 12,
|
|
840
|
+
}, null, 12, Pe)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
|
|
836
841
|
key: 0,
|
|
837
842
|
d: `M ${e.selectionSet}`,
|
|
838
843
|
stroke: e.color,
|
|
@@ -840,35 +845,35 @@ var ge = ["data-minimap"], _e = {
|
|
|
840
845
|
"stroke-width": "2",
|
|
841
846
|
"stroke-linecap": "round",
|
|
842
847
|
"stroke-linejoin": "round"
|
|
843
|
-
}, null, 8,
|
|
848
|
+
}, null, 8, Fe)) : f("", !0)]))), 128))])),
|
|
844
849
|
T.value && s.minimapCompact ? (_(), p("rect", {
|
|
845
850
|
key: 7,
|
|
846
851
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
847
|
-
x:
|
|
852
|
+
x: B.value.x - Math.min(40, Math.max(20, s.handleWidth)),
|
|
848
853
|
y: 0,
|
|
849
854
|
width: Math.min(40, Math.max(20, s.handleWidth)),
|
|
850
|
-
height:
|
|
851
|
-
fill: s.handleFill ||
|
|
855
|
+
height: M.value.height,
|
|
856
|
+
fill: s.handleFill || j.value,
|
|
852
857
|
stroke: s.handleBorderColor || s.textColor,
|
|
853
858
|
"stroke-width": s.handleBorderWidth,
|
|
854
859
|
rx: 3
|
|
855
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, Ie)) : f("", !0),
|
|
856
861
|
s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
|
|
857
862
|
key: 8,
|
|
858
|
-
x:
|
|
863
|
+
x: B.value.x - Math.min(40, Math.max(20, s.handleWidth)),
|
|
859
864
|
y: 0,
|
|
860
865
|
width: Math.min(40, Math.max(20, s.handleWidth)),
|
|
861
|
-
height:
|
|
866
|
+
height: M.value.height,
|
|
862
867
|
viewBox: "0 0 20 20"
|
|
863
868
|
}, [s.handleType === "arrow" ? (_(), p("path", {
|
|
864
869
|
key: 0,
|
|
865
870
|
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",
|
|
866
|
-
fill:
|
|
871
|
+
fill: j.value,
|
|
867
872
|
stroke: s.handleIconColor || s.textColor,
|
|
868
873
|
"stroke-width": .618,
|
|
869
874
|
"stroke-linejoin": "round",
|
|
870
875
|
"stroke-linecap": "round"
|
|
871
|
-
}, null, 8,
|
|
876
|
+
}, null, 8, Re)) : s.handleType === "chevron" ? (_(), p("path", {
|
|
872
877
|
key: 1,
|
|
873
878
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
874
879
|
fill: "none",
|
|
@@ -876,41 +881,41 @@ var ge = ["data-minimap"], _e = {
|
|
|
876
881
|
"stroke-width": .618,
|
|
877
882
|
"stroke-linejoin": "round",
|
|
878
883
|
"stroke-linecap": "round"
|
|
879
|
-
}, null, 8,
|
|
884
|
+
}, null, 8, ze)) : s.handleType === "grab" ? (_(), p("path", {
|
|
880
885
|
key: 2,
|
|
881
886
|
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",
|
|
882
887
|
fill: s.handleIconColor || s.textColor,
|
|
883
888
|
stroke: "none",
|
|
884
889
|
opacity: "0.6"
|
|
885
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, Be)) : f("", !0)], 8, Le)) : f("", !0),
|
|
886
891
|
T.value && s.minimapCompact ? (_(), p("rect", {
|
|
887
892
|
key: 9,
|
|
888
893
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
889
|
-
x:
|
|
894
|
+
x: B.value.x + B.value.width,
|
|
890
895
|
y: 0,
|
|
891
896
|
width: Math.min(40, Math.max(20, s.handleWidth)),
|
|
892
|
-
height:
|
|
893
|
-
fill: s.handleFill ||
|
|
897
|
+
height: M.value.height,
|
|
898
|
+
fill: s.handleFill || j.value,
|
|
894
899
|
stroke: s.handleBorderColor || s.textColor,
|
|
895
900
|
"stroke-width": s.handleBorderWidth,
|
|
896
901
|
rx: 3
|
|
897
|
-
}, null, 8,
|
|
902
|
+
}, null, 8, Ve)) : f("", !0),
|
|
898
903
|
s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
|
|
899
904
|
key: 10,
|
|
900
|
-
x:
|
|
905
|
+
x: B.value.x + B.value.width,
|
|
901
906
|
y: 0,
|
|
902
907
|
width: Math.min(40, Math.max(20, s.handleWidth)),
|
|
903
|
-
height:
|
|
908
|
+
height: M.value.height,
|
|
904
909
|
viewBox: "0 0 20 20"
|
|
905
910
|
}, [s.handleType === "arrow" ? (_(), p("path", {
|
|
906
911
|
key: 0,
|
|
907
912
|
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",
|
|
908
|
-
fill:
|
|
913
|
+
fill: j.value,
|
|
909
914
|
stroke: s.handleIconColor || s.textColor,
|
|
910
915
|
"stroke-width": .618,
|
|
911
916
|
"stroke-linejoin": "round",
|
|
912
917
|
"stroke-linecap": "round"
|
|
913
|
-
}, null, 8,
|
|
918
|
+
}, null, 8, Ue)) : s.handleType === "chevron" ? (_(), p("path", {
|
|
914
919
|
key: 1,
|
|
915
920
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
916
921
|
fill: "none",
|
|
@@ -918,105 +923,105 @@ var ge = ["data-minimap"], _e = {
|
|
|
918
923
|
"stroke-width": .618,
|
|
919
924
|
"stroke-linejoin": "round",
|
|
920
925
|
"stroke-linecap": "round"
|
|
921
|
-
}, null, 8,
|
|
926
|
+
}, null, 8, We)) : s.handleType === "grab" ? (_(), p("path", {
|
|
922
927
|
key: 2,
|
|
923
928
|
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",
|
|
924
929
|
fill: s.handleIconColor || s.textColor,
|
|
925
930
|
stroke: "none",
|
|
926
931
|
opacity: "0.6"
|
|
927
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, Ge)) : f("", !0)], 8, He)) : f("", !0),
|
|
928
933
|
s.minimapMerged ? (_(), p(u, { key: 11 }, [
|
|
929
|
-
|
|
934
|
+
R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
|
|
930
935
|
key: 0,
|
|
931
|
-
cx:
|
|
932
|
-
cy:
|
|
936
|
+
cx: R.value.firstPlot.x,
|
|
937
|
+
cy: R.value.firstPlot.y,
|
|
933
938
|
"stroke-width": "0.5",
|
|
934
|
-
stroke:
|
|
939
|
+
stroke: j.value,
|
|
935
940
|
r: "4",
|
|
936
941
|
fill: s.minimapLineColor
|
|
937
|
-
}, null, 8,
|
|
938
|
-
|
|
942
|
+
}, null, 8, Ke)) : f("", !0),
|
|
943
|
+
R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
|
|
939
944
|
key: 1,
|
|
940
|
-
cx:
|
|
941
|
-
cy:
|
|
945
|
+
cx: R.value.firstPlot.x,
|
|
946
|
+
cy: R.value.firstPlot.y,
|
|
942
947
|
r: "2",
|
|
943
|
-
fill:
|
|
944
|
-
}, null, 8,
|
|
945
|
-
|
|
948
|
+
fill: j.value
|
|
949
|
+
}, null, 8, qe)) : f("", !0),
|
|
950
|
+
R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
|
|
946
951
|
key: 2,
|
|
947
|
-
cx:
|
|
948
|
-
cy:
|
|
952
|
+
cx: R.value.lastPlot.x,
|
|
953
|
+
cy: R.value.lastPlot.y,
|
|
949
954
|
"stroke-width": "0.5",
|
|
950
|
-
stroke:
|
|
955
|
+
stroke: j.value,
|
|
951
956
|
r: "4",
|
|
952
957
|
fill: s.minimapLineColor
|
|
953
|
-
}, null, 8,
|
|
954
|
-
|
|
958
|
+
}, null, 8, Je)) : f("", !0),
|
|
959
|
+
R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
|
|
955
960
|
key: 3,
|
|
956
|
-
cx:
|
|
957
|
-
cy:
|
|
961
|
+
cx: R.value.lastPlot.x,
|
|
962
|
+
cy: R.value.lastPlot.y,
|
|
958
963
|
r: "2",
|
|
959
|
-
fill:
|
|
960
|
-
}, null, 8,
|
|
961
|
-
], 64)) : (_(), p("g",
|
|
964
|
+
fill: j.value
|
|
965
|
+
}, null, 8, Ye)) : f("", !0)
|
|
966
|
+
], 64)) : (_(), p("g", Xe, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [
|
|
962
967
|
e.isVisible ? (_(!0), p(u, { key: 0 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
|
|
963
968
|
key: `sel-dot-${e.key}-${t.i}`,
|
|
964
969
|
cx: t.x,
|
|
965
970
|
cy: t.y,
|
|
966
971
|
r: "2.5",
|
|
967
972
|
fill: e.color,
|
|
968
|
-
stroke:
|
|
973
|
+
stroke: j.value,
|
|
969
974
|
"stroke-width": "0.5"
|
|
970
|
-
}, null, 8,
|
|
975
|
+
}, null, 8, Ze))), 128)) : f("", !0),
|
|
971
976
|
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
|
|
972
977
|
key: 1,
|
|
973
978
|
cx: e.firstPlot.x,
|
|
974
979
|
cy: e.firstPlot.y,
|
|
975
980
|
"stroke-width": "0.5",
|
|
976
|
-
stroke:
|
|
981
|
+
stroke: j.value,
|
|
977
982
|
r: "4",
|
|
978
983
|
fill: e.color
|
|
979
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, Qe)) : f("", !0),
|
|
980
985
|
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
|
|
981
986
|
key: 2,
|
|
982
987
|
cx: e.firstPlot.x,
|
|
983
988
|
cy: e.firstPlot.y,
|
|
984
989
|
r: "2",
|
|
985
|
-
fill:
|
|
986
|
-
}, null, 8,
|
|
990
|
+
fill: j.value
|
|
991
|
+
}, null, 8, $e)) : f("", !0),
|
|
987
992
|
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
|
|
988
993
|
key: 3,
|
|
989
994
|
cx: e.lastPlot.x,
|
|
990
995
|
cy: e.lastPlot.y,
|
|
991
996
|
"stroke-width": "0.5",
|
|
992
|
-
stroke:
|
|
997
|
+
stroke: j.value,
|
|
993
998
|
r: "4",
|
|
994
999
|
fill: e.color
|
|
995
|
-
}, null, 8,
|
|
1000
|
+
}, null, 8, et)) : f("", !0),
|
|
996
1001
|
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
|
|
997
1002
|
key: 4,
|
|
998
1003
|
cx: e.lastPlot.x,
|
|
999
1004
|
cy: e.lastPlot.y,
|
|
1000
1005
|
r: "2",
|
|
1001
|
-
fill:
|
|
1002
|
-
}, null, 8,
|
|
1006
|
+
fill: j.value
|
|
1007
|
+
}, null, 8, tt)) : f("", !0)
|
|
1003
1008
|
]))), 128))])),
|
|
1004
|
-
(_(!0), p(u, null, y(
|
|
1009
|
+
(_(!0), p(u, null, y(Tt.value, (e, n) => (_(), p("rect", {
|
|
1005
1010
|
key: `trap-${n}`,
|
|
1006
1011
|
y: 0,
|
|
1007
|
-
height: Math.max(
|
|
1012
|
+
height: Math.max(M.value.height, 0),
|
|
1008
1013
|
fill: "transparent",
|
|
1009
|
-
style: g([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && s.enableSelectionDrag ?
|
|
1010
|
-
x:
|
|
1011
|
-
width:
|
|
1012
|
-
onMousedown: t[0] ||= (e) =>
|
|
1013
|
-
onMouseup: t[1] ||= (e) =>
|
|
1014
|
-
onMouseenter: (t) =>
|
|
1014
|
+
style: g([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && s.enableSelectionDrag ? Y.value ? "grabbing" : "grab" : "default" }]),
|
|
1015
|
+
x: F.value * n - (s.minimapCompact ? F.value / 2 : 0),
|
|
1016
|
+
width: F.value < 0 ? 0 : F.value,
|
|
1017
|
+
onMousedown: t[0] ||= (e) => Y.value = !0,
|
|
1018
|
+
onMouseup: t[1] ||= (e) => Y.value = !1,
|
|
1019
|
+
onMouseenter: (t) => Ht(e),
|
|
1015
1020
|
onMouseleave: t[2] ||= (e) => {
|
|
1016
|
-
|
|
1021
|
+
V.value = null, D("trapMouse", null);
|
|
1017
1022
|
}
|
|
1018
|
-
}, null, 44,
|
|
1019
|
-
], 8,
|
|
1023
|
+
}, null, 44, nt))), 128))
|
|
1024
|
+
], 8, xe))])) : f("", !0),
|
|
1020
1025
|
m("div", {
|
|
1021
1026
|
class: "slider-track",
|
|
1022
1027
|
style: g({ visibility: T.value && s.minimapCompact ? "hidden" : "visible" })
|
|
@@ -1026,18 +1031,18 @@ var ge = ["data-minimap"], _e = {
|
|
|
1026
1031
|
"range-highlight": !0,
|
|
1027
1032
|
move: s.enableSelectionDrag
|
|
1028
1033
|
}),
|
|
1029
|
-
onMousedown: t[3] ||= (e) =>
|
|
1030
|
-
onMouseup: t[4] ||= (e) =>
|
|
1034
|
+
onMousedown: t[3] ||= (e) => Y.value = !0,
|
|
1035
|
+
onMouseup: t[4] ||= (e) => Y.value = !1,
|
|
1031
1036
|
style: g({
|
|
1032
1037
|
...k.value,
|
|
1033
|
-
cursor:
|
|
1038
|
+
cursor: Y.value ? "grabbing" : "grab",
|
|
1034
1039
|
visibility: T.value && s.minimapCompact ? "hidden" : "visible"
|
|
1035
1040
|
})
|
|
1036
1041
|
}, null, 38),
|
|
1037
|
-
s.enableRangeHandles ?
|
|
1042
|
+
s.enableRangeHandles ? ge((_(), p("input", {
|
|
1038
1043
|
key: 1,
|
|
1039
1044
|
ref_key: "rangeStart",
|
|
1040
|
-
ref:
|
|
1045
|
+
ref: Ut,
|
|
1041
1046
|
type: "range",
|
|
1042
1047
|
class: h({
|
|
1043
1048
|
"range-left": !0,
|
|
@@ -1046,20 +1051,20 @@ var ge = ["data-minimap"], _e = {
|
|
|
1046
1051
|
"range-invisible": T.value && s.minimapCompact
|
|
1047
1052
|
}),
|
|
1048
1053
|
min: s.min,
|
|
1049
|
-
max: E.value && s.minimapCompact ?
|
|
1054
|
+
max: E.value && s.minimapCompact ? A.value : s.max,
|
|
1050
1055
|
step: 1,
|
|
1051
|
-
"onUpdate:modelValue": t[5] ||= (e) =>
|
|
1052
|
-
onMouseenter: t[6] ||= (e) =>
|
|
1053
|
-
}, null, 42,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
+
"onUpdate:modelValue": t[5] ||= (e) => bt.value = e,
|
|
1057
|
+
onMouseenter: t[6] ||= (e) => vn("start")
|
|
1058
|
+
}, null, 42, rt)), [[
|
|
1059
|
+
he,
|
|
1060
|
+
bt.value,
|
|
1056
1061
|
void 0,
|
|
1057
1062
|
{ number: !0 }
|
|
1058
1063
|
]]) : f("", !0),
|
|
1059
|
-
s.enableRangeHandles ?
|
|
1064
|
+
s.enableRangeHandles ? ge((_(), p("input", {
|
|
1060
1065
|
key: 2,
|
|
1061
1066
|
ref_key: "rangeEnd",
|
|
1062
|
-
ref:
|
|
1067
|
+
ref: Wt,
|
|
1063
1068
|
type: "range",
|
|
1064
1069
|
class: h({
|
|
1065
1070
|
"range-right": !0,
|
|
@@ -1068,78 +1073,78 @@ var ge = ["data-minimap"], _e = {
|
|
|
1068
1073
|
"range-invisible": T.value && s.minimapCompact
|
|
1069
1074
|
}),
|
|
1070
1075
|
min: s.min,
|
|
1071
|
-
max: E.value && s.minimapCompact ?
|
|
1076
|
+
max: E.value && s.minimapCompact ? A.value : s.max,
|
|
1072
1077
|
step: 1,
|
|
1073
|
-
"onUpdate:modelValue": t[7] ||= (e) =>
|
|
1074
|
-
onMouseenter: t[8] ||= (e) =>
|
|
1075
|
-
}, null, 42,
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
+
"onUpdate:modelValue": t[7] ||= (e) => xt.value = e,
|
|
1079
|
+
onMouseenter: t[8] ||= (e) => vn("end")
|
|
1080
|
+
}, null, 42, it)), [[
|
|
1081
|
+
he,
|
|
1082
|
+
xt.value,
|
|
1078
1083
|
void 0,
|
|
1079
1084
|
{ number: !0 }
|
|
1080
1085
|
]]) : f("", !0),
|
|
1081
1086
|
s.labelLeft ? (_(), p("div", {
|
|
1082
1087
|
key: 3,
|
|
1083
1088
|
ref_key: "tooltipLeft",
|
|
1084
|
-
ref:
|
|
1089
|
+
ref: X,
|
|
1085
1090
|
class: h({
|
|
1086
1091
|
"range-tooltip": !0,
|
|
1087
|
-
"range-tooltip-visible":
|
|
1092
|
+
"range-tooltip-visible": Z.value,
|
|
1088
1093
|
"range-tooltip-arrow": k.value.arrowLeft && !s.verticalHandles,
|
|
1089
1094
|
"range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles
|
|
1090
1095
|
}),
|
|
1091
1096
|
style: g({
|
|
1092
1097
|
left: k.value.tooltipLeft,
|
|
1093
|
-
color:
|
|
1098
|
+
color: pe(a)(s.selectColor),
|
|
1094
1099
|
backgroundColor: s.selectColor,
|
|
1095
|
-
border: `1px solid ${
|
|
1096
|
-
zIndex: `${
|
|
1097
|
-
visibility:
|
|
1100
|
+
border: `1px solid ${j.value}`,
|
|
1101
|
+
zIndex: `${_n.value + 4}`,
|
|
1102
|
+
visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
|
|
1098
1103
|
top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1099
1104
|
})
|
|
1100
|
-
},
|
|
1101
|
-
(
|
|
1105
|
+
}, fe(s.labelLeft), 7)) : f("", !0),
|
|
1106
|
+
(yn.value || s.labelLeft === s.labelRight) && (s.labelLeft || s.labelRight) ? (_(), p("div", {
|
|
1102
1107
|
key: 4,
|
|
1103
1108
|
ref: "tooltipMerge",
|
|
1104
1109
|
class: h({
|
|
1105
1110
|
"range-tooltip": !0,
|
|
1106
|
-
"range-tooltip-visible":
|
|
1111
|
+
"range-tooltip-visible": Z.value,
|
|
1107
1112
|
"range-tooltip-arrow": !0,
|
|
1108
1113
|
"range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles,
|
|
1109
1114
|
"range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
|
|
1110
1115
|
}),
|
|
1111
1116
|
style: g({
|
|
1112
1117
|
left: k.value.tooltipCenter,
|
|
1113
|
-
width:
|
|
1114
|
-
color:
|
|
1118
|
+
width: bn.value.width + "px",
|
|
1119
|
+
color: pe(a)(s.selectColor),
|
|
1115
1120
|
backgroundColor: s.selectColor,
|
|
1116
|
-
border: `1px solid ${
|
|
1121
|
+
border: `1px solid ${j.value}`,
|
|
1117
1122
|
zIndex: "4",
|
|
1118
1123
|
top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1119
1124
|
})
|
|
1120
|
-
},
|
|
1125
|
+
}, fe(s.labelLeft === s.labelRight ? s.labelLeft : `${s.labelLeft} - ${s.labelRight}`), 7)) : f("", !0),
|
|
1121
1126
|
s.labelRight ? (_(), p("div", {
|
|
1122
1127
|
key: 5,
|
|
1123
1128
|
ref_key: "tooltipRight",
|
|
1124
|
-
ref:
|
|
1129
|
+
ref: fn,
|
|
1125
1130
|
class: h({
|
|
1126
1131
|
"range-tooltip": !0,
|
|
1127
|
-
"range-tooltip-visible":
|
|
1132
|
+
"range-tooltip-visible": Z.value,
|
|
1128
1133
|
"range-tooltip-arrow": k.value.arrowRight && !s.verticalHandles,
|
|
1129
1134
|
"range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
|
|
1130
1135
|
}),
|
|
1131
1136
|
style: g({
|
|
1132
1137
|
left: k.value.tooltipRight,
|
|
1133
|
-
color:
|
|
1138
|
+
color: pe(a)(s.selectColor),
|
|
1134
1139
|
backgroundColor: s.selectColor,
|
|
1135
|
-
border: `1px solid ${
|
|
1140
|
+
border: `1px solid ${j.value}`,
|
|
1136
1141
|
zIndex: "4",
|
|
1137
|
-
visibility:
|
|
1142
|
+
visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
|
|
1138
1143
|
top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1139
1144
|
})
|
|
1140
|
-
},
|
|
1141
|
-
], 36)], 44,
|
|
1145
|
+
}, fe(s.labelRight), 7)) : f("", !0)
|
|
1146
|
+
], 36)], 44, _e));
|
|
1142
1147
|
}
|
|
1143
|
-
}, [["__scopeId", "data-v-
|
|
1148
|
+
}, [["__scopeId", "data-v-902e8a0c"]]);
|
|
1144
1149
|
//#endregion
|
|
1145
|
-
export {
|
|
1150
|
+
export { ot as t };
|