vue-data-ui 3.1.8 → 3.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BgpCSKiw.js → Arrow-D7ZF4yAC.js} +1 -1
- package/dist/{BaseDraggableDialog-4cNvzMfi.js → BaseDraggableDialog-D9yisoCl.js} +2 -2
- package/dist/{BaseIcon-BxgIVnCu.js → BaseIcon-DW7Viin8.js} +8 -7
- package/dist/{ColorPicker-VOFdB4GY.js → ColorPicker-VAhVa4rn.js} +2 -2
- package/dist/{DataTable-Mt5_INYw.js → DataTable-DFJ-uXFk.js} +2 -2
- package/dist/{Legend-3CKwL5Wo.js → Legend-A-Th-THr.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BG5Mp8-S.js → NonSvgPenAndPaper-DHNAD3xm.js} +3 -3
- package/dist/{PackageVersion-9HA7ZN6u.js → PackageVersion-BzOBYV_n.js} +1 -1
- package/dist/{PenAndPaper-CK3pXon8.js → PenAndPaper-DwI_W13k.js} +3 -3
- package/dist/{Shape-DC3qeycD.js → Shape-ZsEI7pYU.js} +1 -1
- package/dist/Slicer-DI7ooV9J.js +972 -0
- package/dist/{SparkTooltip-BIrLMERo.js → SparkTooltip-BWytmziW.js} +1 -1
- package/dist/{Title-Bjd-1xjp.js → Title-q7KLw8M1.js} +1 -1
- package/dist/{Tooltip-DBkwWUMF.js → Tooltip-Bv-2Sizc.js} +1 -1
- package/dist/{UserOptions-DOc0dPiT.js → UserOptions-BpcEmsVG.js} +2 -2
- package/dist/{dom-to-png-ib1QEVbF.js → dom-to-png-Bjv_BLOD.js} +1 -1
- package/dist/{img-Dot7cGKX.js → img-BE2EQi1c.js} +1 -1
- package/dist/{index-D0aGpITF.js → index-BX36v2yo.js} +19 -19
- package/dist/{pdf-plTy35oc.js → pdf-18i9-ATg.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-ZbX5_z1t.js → useAutoSizeLabelsInsideViewbox-DPRYkfRK.js} +1 -1
- package/dist/{useNestedProp-24j5ySor.js → useNestedProp-DPKscaRF.js} +1 -1
- package/dist/{usePrinter-83vS002b.js → usePrinter-CkHAOpuo.js} +2 -2
- package/dist/{vue-data-ui--_tNs3PB.js → vue-data-ui-BOg8sJjs.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BCXe_TlX.js → vue-ui-3d-bar-D0wRvC7X.js} +6 -6
- package/dist/{vue-ui-accordion-eylX-9G4.js → vue-ui-accordion-B3bW7xEF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C4qft5Bj.js → vue-ui-age-pyramid-BgNlDsdI.js} +6 -6
- package/dist/{vue-ui-annotator-1lcGoxDB.js → vue-ui-annotator-FnZfg_IR.js} +2 -2
- package/dist/{vue-ui-bullet-BHxaOyMm.js → vue-ui-bullet-DG65DMoC.js} +7 -7
- package/dist/{vue-ui-candlestick-VEUw3NHh.js → vue-ui-candlestick-CWhq0sic.js} +7 -7
- package/dist/{vue-ui-carousel-table-DNv0j-uW.js → vue-ui-carousel-table-D_4N_zyW.js} +4 -4
- package/dist/{vue-ui-chestnut-CVyfTZa1.js → vue-ui-chestnut-mU0wekHQ.js} +5 -5
- package/dist/{vue-ui-chord-Bf-WZRrB.js → vue-ui-chord-Bauthp8h.js} +8 -8
- package/dist/{vue-ui-circle-pack-BTcgUb9a.js → vue-ui-circle-pack-BJo7Ah6C.js} +6 -6
- package/dist/{vue-ui-cursor-CnNB_YkF.js → vue-ui-cursor-DoS_k3gd.js} +2 -2
- package/dist/{vue-ui-dashboard-BZr26TJ1.js → vue-ui-dashboard-CMEY9fct.js} +67 -67
- package/dist/{vue-ui-digits-Dru4BNMH.js → vue-ui-digits-HWlddr2q.js} +2 -2
- package/dist/{vue-ui-donut-BCn7ozHp.js → vue-ui-donut-D0BmmhDm.js} +8 -8
- package/dist/{vue-ui-donut-evolution-B-SUaQKu.js → vue-ui-donut-evolution-CF-bwSCu.js} +8 -8
- package/dist/{vue-ui-dumbbell-BgQX8R_K.js → vue-ui-dumbbell-CL3bnAxl.js} +7 -7
- package/dist/{vue-ui-flow-Dm9fGyZA.js → vue-ui-flow-D09BoXGa.js} +7 -7
- package/dist/{vue-ui-funnel-TxggX88y.js → vue-ui-funnel-5i1Ml16Q.js} +6 -6
- package/dist/{vue-ui-galaxy-CsipGa1z.js → vue-ui-galaxy-c34YNvy0.js} +7 -7
- package/dist/{vue-ui-gauge-BosHacW2.js → vue-ui-gauge-7bYPGmPX.js} +7 -7
- package/dist/{vue-ui-gizmo-DFa49sEK.js → vue-ui-gizmo-DBPnLM19.js} +3 -3
- package/dist/{vue-ui-heatmap-C9SS6Gba.js → vue-ui-heatmap-CZB8kVCa.js} +7 -7
- package/dist/{vue-ui-history-plot-BP98x8s2.js → vue-ui-history-plot-CJrF-gJD.js} +7 -7
- package/dist/{vue-ui-kpi-D5OUgxps.js → vue-ui-kpi-Bf_iS73w.js} +3 -3
- package/dist/{vue-ui-mini-loader-BP3gflCh.js → vue-ui-mini-loader-1yQmJhh4.js} +2 -2
- package/dist/{vue-ui-molecule-DRHBBs-F.js → vue-ui-molecule-CgrbhjyE.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ch7z83Uf.js → vue-ui-mood-radar-DVKE3IqF.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CfUFWEjl.js → vue-ui-nested-donuts-DfaFDyJU.js} +7 -7
- package/dist/{vue-ui-onion-Bl8WwzrC.js → vue-ui-onion-CP5dDv9d.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BurwAXfR.js → vue-ui-parallel-coordinate-plot-nfI8pAYr.js} +8 -8
- package/dist/{vue-ui-quadrant-CIyW030A.js → vue-ui-quadrant-CGQWSISU.js} +8 -8
- package/dist/{vue-ui-quick-chart-BARjlbvR.js → vue-ui-quick-chart--x39nbnx.js} +6 -6
- package/dist/{vue-ui-radar-Bmr9hUIc.js → vue-ui-radar-D3oVbCHs.js} +8 -8
- package/dist/{vue-ui-rating-Bw1x-cFB.js → vue-ui-rating-CCyAo_wm.js} +2 -2
- package/dist/{vue-ui-relation-circle-CapvonjX.js → vue-ui-relation-circle-hvO7jb5w.js} +7 -7
- package/dist/{vue-ui-ridgeline-Bp48HFv-.js → vue-ui-ridgeline-qd61pVwF.js} +8 -8
- package/dist/{vue-ui-rings-i5VyqvGC.js → vue-ui-rings-CTqm8Wze.js} +8 -8
- package/dist/{vue-ui-scatter-uRK6iD0_.js → vue-ui-scatter-DG2hHPgl.js} +8 -8
- package/dist/{vue-ui-skeleton-C3SJsXcS.js → vue-ui-skeleton-CXEVl_P_.js} +3 -3
- package/dist/{vue-ui-smiley-kXO2t82E.js → vue-ui-smiley-CIcyYyaY.js} +2 -2
- package/dist/{vue-ui-spark-trend-JFgrbzdV.js → vue-ui-spark-trend-DXna0InO.js} +3 -3
- package/dist/{vue-ui-sparkbar-CcDvHOC5.js → vue-ui-sparkbar-BmXSYSt2.js} +3 -3
- package/dist/{vue-ui-sparkgauge--udog0U1.js → vue-ui-sparkgauge-ep4qAjJm.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-e0iWjcGB.js → vue-ui-sparkhistogram-C_j3n3sQ.js} +4 -4
- package/dist/{vue-ui-sparkline-DRqsYKXj.js → vue-ui-sparkline-5-MWpgzg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BtnxBp0b.js → vue-ui-sparkstackbar-CBazbGz6.js} +3 -3
- package/dist/{vue-ui-stackbar-Da8gi0va.js → vue-ui-stackbar-COJoXl24.js} +9 -9
- package/dist/{vue-ui-strip-plot-C6pCJzC2.js → vue-ui-strip-plot-B_C57qzM.js} +7 -7
- package/dist/{vue-ui-table-Cvka-9t8.js → vue-ui-table-C7pJJO_J.js} +4 -4
- package/dist/{vue-ui-table-heatmap-B76q7OUm.js → vue-ui-table-heatmap-B7am7f4J.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BkIHosOJ.js → vue-ui-table-sparkline-B7dymruQ.js} +4 -4
- package/dist/{vue-ui-thermometer-CGiCADFh.js → vue-ui-thermometer-QU8j9WyT.js} +7 -7
- package/dist/{vue-ui-timer-BMXfoR5s.js → vue-ui-timer-CDrQkfIG.js} +5 -5
- package/dist/{vue-ui-tiremarks-Brmi2HYv.js → vue-ui-tiremarks-D_LL7f2n.js} +6 -6
- package/dist/{vue-ui-treemap-COkHHmNa.js → vue-ui-treemap-DvPYeEwO.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Dw5MLw1I.js → vue-ui-vertical-bar-BJ4AGGrz.js} +9 -9
- package/dist/{vue-ui-waffle-DlHJ-vf3.js → vue-ui-waffle-CJAclMm9.js} +8 -8
- package/dist/{vue-ui-wheel-Cs-mcVTV.js → vue-ui-wheel-91DucIre.js} +6 -6
- package/dist/{vue-ui-word-cloud-BotvFbwv.js → vue-ui-word-cloud-DcqD79Yc.js} +6 -6
- package/dist/{vue-ui-world-CABqnS6s.js → vue-ui-world-CqYbOhHA.js} +6 -6
- package/dist/{vue-ui-xy-BBYf_jl_.js → vue-ui-xy-DGaw_TPE.js} +1716 -1665
- package/dist/{vue-ui-xy-canvas-Cg3smgrp.js → vue-ui-xy-canvas-B5zK58aG.js} +10 -10
- package/package.json +1 -1
- package/dist/Slicer-CRtDozJ_.js +0 -931
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
import { useCssVars as Xt, computed as s, ref as m, onMounted as tt, onBeforeUnmount as Pe, watch as U, nextTick as Ne, onUpdated as Gt, createElementBlock as i, openBlock as u, createElementVNode as C, createCommentVNode as v, renderSlot as Ot, normalizeStyle as R, createVNode as Ut, withDirectives as lt, unref as me, Fragment as g, renderList as N, normalizeProps as Zt, mergeProps as Yt, normalizeClass as Z, vModelText as at, toDisplayString as $e } from "vue";
|
|
2
|
+
import { c as Jt, X as qt, F as Le, $ as nt, V as it, a0 as ut, U as ot } from "./index-BX36v2yo.js";
|
|
3
|
+
import { t as rt, d as Kt, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import jt from "./BaseIcon-DW7Viin8.js";
|
|
5
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const el = {
|
|
7
|
+
class: "vue-data-ui-slicer-labels",
|
|
8
|
+
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
+
}, tl = {
|
|
10
|
+
key: 0,
|
|
11
|
+
style: { width: "100%", position: "relative" }
|
|
12
|
+
}, ll = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "minimap",
|
|
15
|
+
style: { width: "100%" }
|
|
16
|
+
}, al = ["xmlns", "viewBox"], nl = ["id"], il = ["stop-color"], ul = ["width", "height", "stroke"], ol = ["d", "stroke"], rl = ["x", "width", "y", "height", "fill"], sl = ["d", "stroke"], cl = ["cx", "cy", "fill", "stroke"], vl = ["x", "width", "height", "fill", "rx"], ml = ["x", "width", "height", "rx", "fill"], hl = ["x", "width", "height", "fill", "rx"], dl = ["x2", "y1", "y2", "stroke"], fl = ["d", "fill"], gl = ["d", "stroke"], yl = { key: 6 }, xl = ["x", "width", "y", "height", "fill"], bl = ["d", "stroke"], Ml = ["x", "height", "fill", "stroke"], kl = ["x", "height", "fill", "stroke"], pl = ["cx", "cy", "stroke", "fill"], wl = ["cx", "cy", "fill"], Sl = ["cx", "cy", "stroke", "fill"], Cl = ["cx", "cy", "fill"], Pl = { key: 10 }, Nl = ["cx", "cy", "fill", "stroke"], $l = ["cx", "cy", "stroke", "fill"], Ll = ["cx", "cy", "fill"], Rl = ["cx", "cy", "stroke", "fill"], El = ["cx", "cy", "fill"], Tl = ["height", "x", "width", "onMouseenter"], Vl = ["min", "max"], Fl = ["min", "max"], Al = 48, Bl = {
|
|
17
|
+
__name: "Slicer",
|
|
18
|
+
props: {
|
|
19
|
+
background: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "#FFFFFF"
|
|
22
|
+
},
|
|
23
|
+
borderColor: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "#FFFFFF"
|
|
26
|
+
},
|
|
27
|
+
fontSize: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 14
|
|
30
|
+
},
|
|
31
|
+
labelLeft: {
|
|
32
|
+
type: [String, Number],
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
labelRight: {
|
|
36
|
+
type: [String, Number],
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
textColor: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "#1A1A1A"
|
|
42
|
+
},
|
|
43
|
+
inputColor: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "#1A1A1A"
|
|
46
|
+
},
|
|
47
|
+
max: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 0
|
|
50
|
+
},
|
|
51
|
+
min: {
|
|
52
|
+
type: Number,
|
|
53
|
+
default: 0
|
|
54
|
+
},
|
|
55
|
+
selectColor: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "#4A4A4A"
|
|
58
|
+
},
|
|
59
|
+
useResetSlot: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
valueStart: {
|
|
64
|
+
type: [Number, String],
|
|
65
|
+
default: 0
|
|
66
|
+
},
|
|
67
|
+
valueEnd: {
|
|
68
|
+
type: [Number, String],
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
minimap: {
|
|
72
|
+
type: Array,
|
|
73
|
+
default: []
|
|
74
|
+
},
|
|
75
|
+
smoothMinimap: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: !1
|
|
78
|
+
},
|
|
79
|
+
minimapSelectedColor: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: "#1f77b4"
|
|
82
|
+
},
|
|
83
|
+
minimapSelectionRadius: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: 12
|
|
86
|
+
},
|
|
87
|
+
minimapLineColor: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "#2D353C"
|
|
90
|
+
},
|
|
91
|
+
minimapSelectedColorOpacity: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 0.2
|
|
94
|
+
},
|
|
95
|
+
minimapSelectedIndex: {
|
|
96
|
+
type: Number,
|
|
97
|
+
default: null
|
|
98
|
+
},
|
|
99
|
+
minimapIndicatorColor: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "#2D353C"
|
|
102
|
+
},
|
|
103
|
+
refreshStartPoint: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 0
|
|
106
|
+
},
|
|
107
|
+
refreshEndPoint: {
|
|
108
|
+
type: Number,
|
|
109
|
+
default: null
|
|
110
|
+
},
|
|
111
|
+
enableRangeHandles: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
enableSelectionDrag: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !0
|
|
118
|
+
},
|
|
119
|
+
verticalHandles: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: !1
|
|
122
|
+
},
|
|
123
|
+
minimapCompact: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: !1
|
|
126
|
+
},
|
|
127
|
+
allMinimaps: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default() {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
minimapMerged: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: !1
|
|
136
|
+
},
|
|
137
|
+
minimapFrameColor: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "#e1e5e8"
|
|
140
|
+
},
|
|
141
|
+
cutNullValues: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
147
|
+
setup(a, { expose: st, emit: ct }) {
|
|
148
|
+
Xt((e) => ({
|
|
149
|
+
"070bc632": dt.value,
|
|
150
|
+
c1fd62b4: d.value,
|
|
151
|
+
"1f6bc797": gt.value,
|
|
152
|
+
"7f368fd6": a.selectColor,
|
|
153
|
+
"5359c138": ft.value
|
|
154
|
+
}));
|
|
155
|
+
const n = a, $ = m(null), k = m(n.min), p = m(n.max), y = s(() => !!n.minimap.length), Re = m(Jt()), E = s(() => y.value && n.minimapCompact), he = m(0);
|
|
156
|
+
tt(() => {
|
|
157
|
+
const e = () => {
|
|
158
|
+
$.value && (he.value = $.value.getBoundingClientRect().width);
|
|
159
|
+
};
|
|
160
|
+
e();
|
|
161
|
+
const l = rt(e, 50);
|
|
162
|
+
window.addEventListener("resize", l), Pe(() => {
|
|
163
|
+
window.removeEventListener("resize", l);
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
const vt = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), Y = ct, J = s(() => {
|
|
167
|
+
if (E.value) {
|
|
168
|
+
const l = Math.max(1, ne.value - 1);
|
|
169
|
+
return xe.value / l * 100;
|
|
170
|
+
}
|
|
171
|
+
const e = Math.max(1, n.max - n.min);
|
|
172
|
+
return (k.value - n.min) / e * 100;
|
|
173
|
+
}), ie = s(() => {
|
|
174
|
+
if (E.value) {
|
|
175
|
+
const l = Math.max(1, ne.value - 1);
|
|
176
|
+
return be.value / l * 100;
|
|
177
|
+
}
|
|
178
|
+
const e = Math.max(1, n.max - n.min);
|
|
179
|
+
return (p.value - n.min) / e * 100;
|
|
180
|
+
}), de = s(() => (J.value + ie.value) / 2), fe = s(() => {
|
|
181
|
+
if (!$.value) return !1;
|
|
182
|
+
const e = $.value.getBoundingClientRect().width;
|
|
183
|
+
return J.value / 100 * e - Se.value / 2 < 0;
|
|
184
|
+
}), ge = s(() => {
|
|
185
|
+
if (!$.value) return !1;
|
|
186
|
+
const e = $.value.getBoundingClientRect().width;
|
|
187
|
+
return ie.value / 100 * e + ce.value / 2 > e;
|
|
188
|
+
}), P = s(() => {
|
|
189
|
+
const e = ge.value ? `calc(${de.value}% - ${ae.value.width}px - 2px)` : fe.value ? `calc(${de.value}% - 8px)` : `calc(${de.value}% - ${ae.value.width / 2}px - 4px)`;
|
|
190
|
+
return {
|
|
191
|
+
left: `${J.value}%`,
|
|
192
|
+
width: `${Math.max(0, ie.value - J.value)}%`,
|
|
193
|
+
background: n.selectColor,
|
|
194
|
+
tooltipLeft: `calc(${J.value}% - ${fe.value ? 9 : Se.value / 2 + 3.5}px)`,
|
|
195
|
+
tooltipRight: `calc(${ie.value}% - ${ge.value ? ce.value - 9 : ce.value / 2 - 3.5}px)`,
|
|
196
|
+
tooltipCenter: e,
|
|
197
|
+
arrowLeft: !fe.value,
|
|
198
|
+
arrowRight: !ge.value
|
|
199
|
+
};
|
|
200
|
+
}), q = s(() => Math.max(0, (K.value || 1) - 1)), ye = s(() => Math.max(0, (ne.value || 1) - 1));
|
|
201
|
+
function ue(e) {
|
|
202
|
+
return ye.value === 0 ? 0 : Math.round(e / ye.value * q.value);
|
|
203
|
+
}
|
|
204
|
+
function Ee(e) {
|
|
205
|
+
return q.value === 0 ? 0 : Math.round(e / q.value * ye.value);
|
|
206
|
+
}
|
|
207
|
+
const mt = (e) => Math.floor(n.min + e), ht = (e) => Math.ceil(n.min + e), xe = s({
|
|
208
|
+
get() {
|
|
209
|
+
return E.value ? ue(D.value) : Number(k.value);
|
|
210
|
+
},
|
|
211
|
+
set(e) {
|
|
212
|
+
if (E.value) {
|
|
213
|
+
const l = Math.round(+e || 0), t = Math.max(0, ue(Math.max(0, W.value - 1))), o = Math.min(Math.max(0, l), t), r = Ee(o);
|
|
214
|
+
oe(mt(r));
|
|
215
|
+
} else {
|
|
216
|
+
let l = Math.round(+e || 0);
|
|
217
|
+
const t = Number(p.value) - 1, o = Math.min(Math.max(n.min, l), t);
|
|
218
|
+
oe(o);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}), be = s({
|
|
222
|
+
get() {
|
|
223
|
+
return E.value ? ue(Math.max(D.value, W.value - 1)) : Number(p.value);
|
|
224
|
+
},
|
|
225
|
+
set(e) {
|
|
226
|
+
if (E.value) {
|
|
227
|
+
const l = Math.round(+e || 0), t = ue(D.value), o = Math.max(l, t), r = Ee(o);
|
|
228
|
+
re(ht(r + 1));
|
|
229
|
+
} else {
|
|
230
|
+
let l = Math.round(+e || 0);
|
|
231
|
+
const t = Number(k.value) + 1, o = Math.max(t, Math.min(l, n.max));
|
|
232
|
+
re(o);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}), dt = s(() => n.inputColor), ft = s(() => n.background), gt = s(() => `${n.selectColor}33`), d = s(() => n.borderColor), Te = s(() => {
|
|
236
|
+
const e = [];
|
|
237
|
+
for (let l = 0; l < n.max; l += 1)
|
|
238
|
+
e.push(l);
|
|
239
|
+
return e;
|
|
240
|
+
});
|
|
241
|
+
function Ve() {
|
|
242
|
+
Y("reset");
|
|
243
|
+
}
|
|
244
|
+
U(
|
|
245
|
+
() => n.min,
|
|
246
|
+
(e) => {
|
|
247
|
+
Number(k.value) < Number(e) && (k.value = Number(e)), Number(p.value) < Number(e) && (p.value = Number(e));
|
|
248
|
+
}
|
|
249
|
+
), U(
|
|
250
|
+
() => n.max,
|
|
251
|
+
(e) => {
|
|
252
|
+
Number(k.value) > Number(e) && (k.value = Number(e)), Number(p.value) > Number(e) && (p.value = Number(e));
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
const Me = m(null), h = m({
|
|
256
|
+
width: 1,
|
|
257
|
+
height: 1
|
|
258
|
+
}), X = m(null);
|
|
259
|
+
tt(() => {
|
|
260
|
+
if (y.value) {
|
|
261
|
+
const e = rt(() => {
|
|
262
|
+
const { width: l, height: t } = Qt({
|
|
263
|
+
chart: Me.value
|
|
264
|
+
});
|
|
265
|
+
h.value.width = l, h.value.height = t - 47;
|
|
266
|
+
});
|
|
267
|
+
X.value = new ResizeObserver(e), X.value.observe(Me.value);
|
|
268
|
+
}
|
|
269
|
+
}), Pe(() => {
|
|
270
|
+
X.value && X.value.disconnect();
|
|
271
|
+
});
|
|
272
|
+
const K = s(() => Math.max(...n.allMinimaps.map((e) => e.series.length), n.minimap.length || 0)), x = s(() => {
|
|
273
|
+
if (!K.value) return 0;
|
|
274
|
+
const e = Math.max(1, K.value - (n.minimapCompact ? 1 : 0));
|
|
275
|
+
return h.value.width / e;
|
|
276
|
+
}), Fe = s(() => {
|
|
277
|
+
const e = [];
|
|
278
|
+
if (Array.isArray(n.minimap) && n.minimap.length && e.push(...n.minimap.filter(Number.isFinite)), Array.isArray(n.allMinimaps) && n.allMinimaps.length)
|
|
279
|
+
for (const l of n.allMinimaps)
|
|
280
|
+
l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
|
|
281
|
+
return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
|
|
282
|
+
}), G = s(() => Fe.value.min), Q = s(() => Fe.value.max), yt = s(() => G.value < 0 && Q.value > 0 || Q.value <= 0 ? G.value : 0), xt = s(() => Math.max(1e-9, Math.max(Math.abs(G.value), Math.abs(Q.value)))), bt = s(() => G.value < 0 && Q.value > 0), Mt = (e) => {
|
|
283
|
+
const l = Math.max(1, h.value.height);
|
|
284
|
+
if (bt.value) {
|
|
285
|
+
const t = xt.value;
|
|
286
|
+
return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
|
|
287
|
+
} else {
|
|
288
|
+
const t = Math.min(0, G.value), o = Math.max(0, Q.value);
|
|
289
|
+
return l - (e - t) / Math.max(1e-9, o - t) * l;
|
|
290
|
+
}
|
|
291
|
+
}, Ae = s(() => Mt(0)), Be = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), ke = s(() => x.value / (Be.value || 1) * 0.8);
|
|
292
|
+
function ze(e, l, t) {
|
|
293
|
+
const o = ke.value, r = Math.max(1, Be.value), f = K.value - 1;
|
|
294
|
+
return t === 0 ? e + o / 2 * l : t === f ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
|
|
295
|
+
}
|
|
296
|
+
function De(e, l) {
|
|
297
|
+
return [0, K.value - 1].includes(l) ? ke.value / 2 : ke.value;
|
|
298
|
+
}
|
|
299
|
+
function kt(e, l, t) {
|
|
300
|
+
const o = (S, L, O) => Math.max(L, Math.min(O, S));
|
|
301
|
+
if (l <= 0) {
|
|
302
|
+
const S = Math.max(1e-9, 0 - e);
|
|
303
|
+
return (L) => t - (L - e) / S * t;
|
|
304
|
+
}
|
|
305
|
+
if (e >= 0) {
|
|
306
|
+
const S = Math.max(1e-9, l - 0);
|
|
307
|
+
return (L) => t - (L - 0) / S * t;
|
|
308
|
+
}
|
|
309
|
+
const f = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
|
|
310
|
+
return (S) => (1 - (o(S / f, -1, 1) + 1) / 2) * t;
|
|
311
|
+
}
|
|
312
|
+
function Ie(e, l = !1) {
|
|
313
|
+
if (!e || !e.length)
|
|
314
|
+
return {
|
|
315
|
+
fullSet: "",
|
|
316
|
+
points: [],
|
|
317
|
+
selectionSet: "",
|
|
318
|
+
sliced: [],
|
|
319
|
+
firstPlot: null,
|
|
320
|
+
lastPlot: null,
|
|
321
|
+
hasFull: !1,
|
|
322
|
+
hasSelection: !1,
|
|
323
|
+
fullMarkers: [],
|
|
324
|
+
selectionMarkers: []
|
|
325
|
+
};
|
|
326
|
+
const t = Math.max(1, h.value.height), o = e.filter(Number.isFinite), r = o.length ? Math.min(...o) : 0, f = o.length ? Math.max(...o) : 0, S = kt(r, f, t), L = e.length, O = Math.min(Math.max(0, D.value), Math.max(0, L - 1)), Ce = Math.min(L, Math.max(O + 1, W.value)), M = e.map((b, _e) => {
|
|
327
|
+
const ve = n.cutNullValues ? b : b === null ? 0 : b, et = Number.isFinite(ve), Wt = x.value * _e + (n.minimapCompact ? 0 : x.value / 2), Ht = (r < 0 && f > 0, S(0));
|
|
328
|
+
return {
|
|
329
|
+
x: Wt,
|
|
330
|
+
y: et ? S(ve) : NaN,
|
|
331
|
+
v: ve,
|
|
332
|
+
value: et ? ve : null,
|
|
333
|
+
y0: Ht,
|
|
334
|
+
i: _e
|
|
335
|
+
};
|
|
336
|
+
}), Qe = (b) => b >= 0 && b < M.length && Number.isFinite(M[b]?.value), je = M.filter((b) => Number.isFinite(b.value) && !Qe(b.i - 1) && !Qe(b.i + 1)), zt = je.filter((b) => b.i >= O && b.i < Ce), H = M.slice(O, Ce), Dt = M.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? nt(M) : it(M) : n.cutNullValues ? ut(M) : ot(M) : "", It = H.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? nt(H) : it(H) : n.cutNullValues ? ut(H) : ot(H) : "";
|
|
337
|
+
return {
|
|
338
|
+
fullSet: Dt,
|
|
339
|
+
points: M,
|
|
340
|
+
selectionSet: It,
|
|
341
|
+
sliced: H,
|
|
342
|
+
firstPlot: M[O] || null,
|
|
343
|
+
lastPlot: M[Math.max(0, Ce - 1)] || null,
|
|
344
|
+
hasFull: M.length >= 2,
|
|
345
|
+
hasSelection: H.length >= 2,
|
|
346
|
+
fullMarkers: je,
|
|
347
|
+
selectionMarkers: zt
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
const c = s(() => n.minimap.length ? Ie(n.minimap) : {
|
|
351
|
+
fullSet: "",
|
|
352
|
+
selectionSet: "",
|
|
353
|
+
sliced: [],
|
|
354
|
+
firstPlot: null,
|
|
355
|
+
lastPlot: null,
|
|
356
|
+
hasFull: !1,
|
|
357
|
+
hasSelection: !1
|
|
358
|
+
}), j = s(() => n.allMinimaps.length ? n.allMinimaps.map((e, l) => {
|
|
359
|
+
const t = Ie(e?.series || [], !!e.smooth), o = e?.id ?? e?.name ?? l;
|
|
360
|
+
return {
|
|
361
|
+
key: typeof o == "object" ? JSON.stringify(o) : String(o),
|
|
362
|
+
color: e?.color,
|
|
363
|
+
...t,
|
|
364
|
+
isVisible: e.isVisible,
|
|
365
|
+
type: e.type || "line"
|
|
366
|
+
};
|
|
367
|
+
}) : []), w = s(() => {
|
|
368
|
+
const e = D.value, l = Math.max(e + 1, W.value);
|
|
369
|
+
return {
|
|
370
|
+
x: x.value * e + (n.minimapCompact ? 0 : x.value / 2),
|
|
371
|
+
width: x.value * (l - e) - x.value
|
|
372
|
+
};
|
|
373
|
+
}), T = m(n.minimapSelectedIndex);
|
|
374
|
+
function pt(e) {
|
|
375
|
+
T.value = Ke(n.valueStart) + e;
|
|
376
|
+
}
|
|
377
|
+
const wt = Kt(pt, 60);
|
|
378
|
+
U(() => n.minimapSelectedIndex, (e, l) => {
|
|
379
|
+
if ([null, void 0].includes(e)) {
|
|
380
|
+
T.value = null;
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
e !== l && wt(e);
|
|
384
|
+
}, { immediate: !0 });
|
|
385
|
+
function St(e) {
|
|
386
|
+
T.value = e;
|
|
387
|
+
const l = D.value, t = W.value;
|
|
388
|
+
e >= l && e < t && !z.value && Y("trapMouse", e - l);
|
|
389
|
+
}
|
|
390
|
+
const pe = m(null), we = m(null);
|
|
391
|
+
function oe(e) {
|
|
392
|
+
k.value = e, pe.value && (pe.value.value = e), Y("update:start", Number(k.value));
|
|
393
|
+
}
|
|
394
|
+
function re(e) {
|
|
395
|
+
p.value = e, we.value && (we.value.value = e), Y("update:end", Number(p.value));
|
|
396
|
+
}
|
|
397
|
+
const se = s(() => n.valueEnd - n.valueStart), _ = m(!1);
|
|
398
|
+
let Ct = m(null);
|
|
399
|
+
const Pt = s(() => (he.value - 48) / (n.max - n.min) * se.value), Nt = s(() => Math.max(1, he.value - Al - Pt.value)), $t = s(() => Math.max(1, n.max - n.min - se.value)), Lt = s(() => $t.value / Nt.value), We = m(0), He = m(0), Rt = m(0), Xe = m(0);
|
|
400
|
+
let V = null, F = null, A = null, B = null;
|
|
401
|
+
const Ge = (e) => {
|
|
402
|
+
if (I.value = !0, !n.enableSelectionDrag) return;
|
|
403
|
+
const l = e.type === "touchstart";
|
|
404
|
+
l || e.stopPropagation();
|
|
405
|
+
const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, o = l ? t ? t.target : null : e.target;
|
|
406
|
+
if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
|
|
407
|
+
_.value = !0;
|
|
408
|
+
const r = l ? t ? t.clientX : 0 : e.clientX;
|
|
409
|
+
Ct.value = r, We.value = r, He.value = Number(k.value), Rt.value = Number(p.value), Xe.value = Lt.value, V = l ? "touchmove" : "mousemove", F = l ? "touchend" : "mouseup", A = l ? Tt : Et, B = l ? Ft : Vt, window.addEventListener(V, A, { passive: !1 }), window.addEventListener(F, B);
|
|
410
|
+
};
|
|
411
|
+
function Et(e) {
|
|
412
|
+
_.value && Oe(e.clientX);
|
|
413
|
+
}
|
|
414
|
+
function Tt(e) {
|
|
415
|
+
if (!_.value || !$.value) return;
|
|
416
|
+
const l = e.target;
|
|
417
|
+
if (!(l instanceof Element) || !$.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
418
|
+
e.preventDefault();
|
|
419
|
+
const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
420
|
+
t && Oe(t.clientX);
|
|
421
|
+
}
|
|
422
|
+
function Oe(e) {
|
|
423
|
+
if (!_.value) return;
|
|
424
|
+
const t = (e - We.value) * Xe.value;
|
|
425
|
+
let o = Math.round(He.value + t);
|
|
426
|
+
o = Math.max(n.min, Math.min(o, n.max - se.value));
|
|
427
|
+
const r = o + se.value;
|
|
428
|
+
oe(o), re(r);
|
|
429
|
+
}
|
|
430
|
+
function Vt() {
|
|
431
|
+
Ue();
|
|
432
|
+
}
|
|
433
|
+
function Ft() {
|
|
434
|
+
Ue();
|
|
435
|
+
}
|
|
436
|
+
function Ue() {
|
|
437
|
+
_.value = !1, V && A && window.removeEventListener(V, A), F && B && window.removeEventListener(F, B), V = F = null, A = B = null;
|
|
438
|
+
}
|
|
439
|
+
const z = m(!1), ee = m(null), te = m(null), Se = m(1), ce = m(1), I = m(!1);
|
|
440
|
+
function Ze() {
|
|
441
|
+
ee.value && (Se.value = ee.value.getBoundingClientRect().width);
|
|
442
|
+
}
|
|
443
|
+
function Ye() {
|
|
444
|
+
te.value && (ce.value = te.value.getBoundingClientRect().width);
|
|
445
|
+
}
|
|
446
|
+
const Je = m(0);
|
|
447
|
+
function qe(e) {
|
|
448
|
+
Je.value = e === "start" ? 1 : 0;
|
|
449
|
+
}
|
|
450
|
+
const le = m(!1), ae = m({
|
|
451
|
+
width: 0,
|
|
452
|
+
left: 0
|
|
453
|
+
});
|
|
454
|
+
U([k, p], async () => {
|
|
455
|
+
if (await Ne(), !ee.value || !te.value) {
|
|
456
|
+
le.value = !1, ae.value = { width: 0, left: 0 };
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
const e = ee.value.getBoundingClientRect(), l = te.value.getBoundingClientRect();
|
|
460
|
+
le.value = e.x + e.width > l.x;
|
|
461
|
+
const t = e.x + e.width / 2, o = l.x + l.width / 2, r = e.width + l.width, f = (t + o) / 2;
|
|
462
|
+
ae.value = {
|
|
463
|
+
width: r,
|
|
464
|
+
left: f - r / 2
|
|
465
|
+
};
|
|
466
|
+
}), Gt(() => {
|
|
467
|
+
Ze(), Ye();
|
|
468
|
+
}), U(
|
|
469
|
+
() => n.labelLeft,
|
|
470
|
+
() => {
|
|
471
|
+
Ne(Ze);
|
|
472
|
+
},
|
|
473
|
+
{ deep: !0 }
|
|
474
|
+
), U(
|
|
475
|
+
() => n.labelRight,
|
|
476
|
+
() => {
|
|
477
|
+
Ne(Ye);
|
|
478
|
+
},
|
|
479
|
+
{ deep: !0 }
|
|
480
|
+
), st({
|
|
481
|
+
setStartValue: oe,
|
|
482
|
+
setEndValue: re
|
|
483
|
+
}), Pe(() => {
|
|
484
|
+
X.value && X.value.disconnect(), V && A && window.removeEventListener(V, A), F && B && window.removeEventListener(F, B), V = F = null, A = B = null;
|
|
485
|
+
});
|
|
486
|
+
const ne = s(() => Math.max(1, n.max - n.min));
|
|
487
|
+
function Ke(e) {
|
|
488
|
+
const l = Math.floor(e - n.min);
|
|
489
|
+
return Math.min(Math.max(0, l), ne.value);
|
|
490
|
+
}
|
|
491
|
+
function At(e) {
|
|
492
|
+
const l = Math.ceil(e - n.min);
|
|
493
|
+
return Math.min(Math.max(0, l), ne.value);
|
|
494
|
+
}
|
|
495
|
+
const D = s(() => Ke(k.value)), W = s(() => At(p.value)), Bt = s(() => {
|
|
496
|
+
if (!Te.value.length) return null;
|
|
497
|
+
if (T.value >= D.value && T.value < W.value) {
|
|
498
|
+
const e = T.value;
|
|
499
|
+
return {
|
|
500
|
+
x1: x.value * e + (n.minimapCompact ? 0 : x.value / 2),
|
|
501
|
+
x2: x.value * e + (n.minimapCompact ? 0 : x.value / 2),
|
|
502
|
+
y1: 0,
|
|
503
|
+
y2: Math.max(h.value.height, 0),
|
|
504
|
+
stroke: n.minimapIndicatorColor,
|
|
505
|
+
"stroke-linecap": "round",
|
|
506
|
+
"stroke-dasharray": 2,
|
|
507
|
+
"stroke-width": 1
|
|
508
|
+
};
|
|
509
|
+
} else
|
|
510
|
+
return null;
|
|
511
|
+
});
|
|
512
|
+
return (e, l) => (u(), i("div", {
|
|
513
|
+
"data-dom-to-png-ignore": "",
|
|
514
|
+
style: { padding: "0 24px" },
|
|
515
|
+
class: "vue-data-ui-zoom",
|
|
516
|
+
ref_key: "zoomWrapper",
|
|
517
|
+
ref: $,
|
|
518
|
+
onMousedown: Ge,
|
|
519
|
+
onTouchstart: Ge,
|
|
520
|
+
onTouchend: l[11] || (l[11] = (t) => I.value = !1)
|
|
521
|
+
}, [
|
|
522
|
+
C("div", el, [
|
|
523
|
+
a.valueStart !== a.refreshStartPoint || a.valueEnd !== vt.value ? (u(), i("div", tl, [
|
|
524
|
+
a.useResetSlot ? Ot(e.$slots, "reset-action", {
|
|
525
|
+
key: 1,
|
|
526
|
+
reset: Ve
|
|
527
|
+
}, void 0, !0) : (u(), i("button", {
|
|
528
|
+
key: 0,
|
|
529
|
+
tabindex: "0",
|
|
530
|
+
role: "button",
|
|
531
|
+
class: "vue-data-ui-refresh-button",
|
|
532
|
+
style: R({
|
|
533
|
+
top: y.value ? "36px" : "-16px",
|
|
534
|
+
pointerEvents: "all !important"
|
|
535
|
+
}),
|
|
536
|
+
onClick: Ve
|
|
537
|
+
}, [
|
|
538
|
+
Ut(jt, {
|
|
539
|
+
name: "refresh",
|
|
540
|
+
stroke: a.textColor
|
|
541
|
+
}, null, 8, ["stroke"])
|
|
542
|
+
], 4))
|
|
543
|
+
])) : v("", !0)
|
|
544
|
+
]),
|
|
545
|
+
C("div", {
|
|
546
|
+
class: "double-range-slider",
|
|
547
|
+
ref_key: "minimapWrapper",
|
|
548
|
+
ref: Me,
|
|
549
|
+
style: { "z-index": "0" },
|
|
550
|
+
onMouseenter: l[9] || (l[9] = (t) => I.value = !0),
|
|
551
|
+
onMouseleave: l[10] || (l[10] = (t) => I.value = !1)
|
|
552
|
+
}, [
|
|
553
|
+
y.value ? (u(), i("div", ll, [
|
|
554
|
+
(u(), i("svg", {
|
|
555
|
+
key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
|
|
556
|
+
xmlns: me(qt),
|
|
557
|
+
viewBox: `0 0 ${Math.max(0, h.value.width)} ${Math.max(0, h.value.height)}`
|
|
558
|
+
}, [
|
|
559
|
+
C("defs", null, [
|
|
560
|
+
C("linearGradient", {
|
|
561
|
+
id: Re.value,
|
|
562
|
+
x1: "0%",
|
|
563
|
+
y1: "0%",
|
|
564
|
+
x2: "0%",
|
|
565
|
+
y2: "100%"
|
|
566
|
+
}, [
|
|
567
|
+
C("stop", {
|
|
568
|
+
offset: "0%",
|
|
569
|
+
"stop-color": `${a.minimapLineColor}50`
|
|
570
|
+
}, null, 8, il),
|
|
571
|
+
l[12] || (l[12] = C("stop", {
|
|
572
|
+
offset: "100%",
|
|
573
|
+
"stop-color": "transparent"
|
|
574
|
+
}, null, -1))
|
|
575
|
+
], 8, nl)
|
|
576
|
+
]),
|
|
577
|
+
a.minimapCompact ? (u(), i("rect", {
|
|
578
|
+
key: 0,
|
|
579
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
580
|
+
x: 0,
|
|
581
|
+
y: 0,
|
|
582
|
+
width: h.value.width,
|
|
583
|
+
height: h.value.height,
|
|
584
|
+
fill: "none",
|
|
585
|
+
stroke: a.minimapFrameColor,
|
|
586
|
+
rx: 3
|
|
587
|
+
}, null, 8, ul)) : v("", !0),
|
|
588
|
+
a.minimapMerged ? (u(), i("path", {
|
|
589
|
+
key: 1,
|
|
590
|
+
d: `M${c.value.fullSet}`,
|
|
591
|
+
stroke: `${a.minimapLineColor}`,
|
|
592
|
+
fill: "none",
|
|
593
|
+
"stroke-width": "1",
|
|
594
|
+
"stroke-linecap": "round",
|
|
595
|
+
"stroke-linejoin": "round",
|
|
596
|
+
style: { opacity: "0.6" }
|
|
597
|
+
}, null, 8, ol)) : (u(), i(g, { key: 2 }, [
|
|
598
|
+
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
599
|
+
(u(!0), i(g, null, N(t.points, (r, f) => (u(), i(g, null, [
|
|
600
|
+
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
601
|
+
key: 0,
|
|
602
|
+
x: ze(r.x, o, f),
|
|
603
|
+
width: De(o, f),
|
|
604
|
+
y: r.v >= 0 ? r.y : r.y0,
|
|
605
|
+
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
606
|
+
fill: t.color,
|
|
607
|
+
style: { opacity: "0.6" }
|
|
608
|
+
}, null, 8, rl)) : v("", !0)
|
|
609
|
+
], 64))), 256))
|
|
610
|
+
]))), 256)),
|
|
611
|
+
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
612
|
+
key: String(t.key)
|
|
613
|
+
}, [
|
|
614
|
+
t.isVisible ? (u(), i("path", {
|
|
615
|
+
key: 0,
|
|
616
|
+
d: `M ${t.fullSet}`,
|
|
617
|
+
fill: "none",
|
|
618
|
+
stroke: t.color,
|
|
619
|
+
style: { opacity: "0.6" }
|
|
620
|
+
}, null, 8, sl)) : v("", !0),
|
|
621
|
+
t.isVisible ? (u(!0), i(g, { key: 1 }, N(t.fullMarkers, (o) => (u(), i("circle", {
|
|
622
|
+
key: `sel-dot-under-${t.key}-${o.i}`,
|
|
623
|
+
cx: o.x,
|
|
624
|
+
cy: o.y,
|
|
625
|
+
r: "2",
|
|
626
|
+
fill: t.color,
|
|
627
|
+
stroke: d.value,
|
|
628
|
+
"stroke-width": "0.5",
|
|
629
|
+
style: { opacity: "0.6" }
|
|
630
|
+
}, null, 8, cl))), 128)) : v("", !0)
|
|
631
|
+
]))), 128))
|
|
632
|
+
], 64)),
|
|
633
|
+
C("rect", {
|
|
634
|
+
x: w.value.x,
|
|
635
|
+
width: w.value.width < 0 ? 0 : w.value.width,
|
|
636
|
+
height: Math.max(h.value.height, 0),
|
|
637
|
+
y: 0,
|
|
638
|
+
fill: d.value,
|
|
639
|
+
rx: a.minimapSelectionRadius,
|
|
640
|
+
stroke: "none"
|
|
641
|
+
}, null, 8, vl),
|
|
642
|
+
C("rect", {
|
|
643
|
+
x: w.value.x,
|
|
644
|
+
width: w.value.width < 0 ? 0 : w.value.width,
|
|
645
|
+
height: Math.max(h.value.height, 0),
|
|
646
|
+
y: 0,
|
|
647
|
+
rx: a.minimapSelectionRadius,
|
|
648
|
+
fill: d.value
|
|
649
|
+
}, null, 8, ml),
|
|
650
|
+
C("rect", {
|
|
651
|
+
x: w.value.x,
|
|
652
|
+
width: w.value.width < 0 ? 0 : w.value.width,
|
|
653
|
+
height: Math.max(h.value.height, 0),
|
|
654
|
+
y: 0,
|
|
655
|
+
fill: a.minimapSelectedColor,
|
|
656
|
+
rx: a.minimapSelectionRadius,
|
|
657
|
+
style: R({
|
|
658
|
+
opacity: a.minimapSelectedColorOpacity
|
|
659
|
+
})
|
|
660
|
+
}, null, 12, hl),
|
|
661
|
+
T.value !== null && !z.value ? (u(), i("line", Zt(Yt({ key: 3 }, Bt.value)), null, 16)) : v("", !0),
|
|
662
|
+
!a.minimapMerged && yt.value < 0 ? (u(), i("line", {
|
|
663
|
+
key: 4,
|
|
664
|
+
class: "slicer-minimap-zero-line",
|
|
665
|
+
x1: 0,
|
|
666
|
+
x2: h.value.width,
|
|
667
|
+
y1: Ae.value,
|
|
668
|
+
y2: Ae.value,
|
|
669
|
+
stroke: a.minimapFrameColor,
|
|
670
|
+
"stroke-width": "0.5"
|
|
671
|
+
}, null, 8, dl)) : v("", !0),
|
|
672
|
+
a.minimapMerged ? (u(), i(g, { key: 5 }, [
|
|
673
|
+
c.value && c.value.sliced && c.value.sliced.length ? (u(), i(g, { key: 0 }, [
|
|
674
|
+
c.value.selectionSet ? (u(), i("path", {
|
|
675
|
+
key: 0,
|
|
676
|
+
d: `M${c.value.sliced[0].x},${Math.max(h.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(h.value.height, 0)}Z`,
|
|
677
|
+
fill: `url(#${Re.value})`,
|
|
678
|
+
stroke: "none",
|
|
679
|
+
style: { opacity: "1" }
|
|
680
|
+
}, null, 8, fl)) : v("", !0),
|
|
681
|
+
c.value.selectionSet ? (u(), i("path", {
|
|
682
|
+
key: 1,
|
|
683
|
+
d: `M ${c.value.selectionSet}`,
|
|
684
|
+
stroke: `${a.minimapLineColor}`,
|
|
685
|
+
fill: "transparent",
|
|
686
|
+
"stroke-width": "2",
|
|
687
|
+
"stroke-linecap": "round",
|
|
688
|
+
"stroke-linejoin": "round"
|
|
689
|
+
}, null, 8, gl)) : v("", !0)
|
|
690
|
+
], 64)) : v("", !0)
|
|
691
|
+
], 64)) : (u(), i("g", yl, [
|
|
692
|
+
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
693
|
+
(u(!0), i(g, null, N(t.points, (r, f) => (u(), i(g, null, [
|
|
694
|
+
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
695
|
+
key: 0,
|
|
696
|
+
x: ze(r.x, o, f),
|
|
697
|
+
width: De(o, f),
|
|
698
|
+
y: r.v >= 0 ? r.y : r.y0,
|
|
699
|
+
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
700
|
+
fill: t.color,
|
|
701
|
+
style: R({
|
|
702
|
+
opacity: f >= a.valueStart && f <= a.valueEnd - 1 ? 1 : 0
|
|
703
|
+
})
|
|
704
|
+
}, null, 12, xl)) : v("", !0)
|
|
705
|
+
], 64))), 256))
|
|
706
|
+
]))), 256)),
|
|
707
|
+
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
708
|
+
key: String(t.key)
|
|
709
|
+
}, [
|
|
710
|
+
t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
|
|
711
|
+
key: 0,
|
|
712
|
+
d: `M ${t.selectionSet}`,
|
|
713
|
+
stroke: t.color,
|
|
714
|
+
fill: "transparent",
|
|
715
|
+
"stroke-width": "2",
|
|
716
|
+
"stroke-linecap": "round",
|
|
717
|
+
"stroke-linejoin": "round"
|
|
718
|
+
}, null, 8, bl)) : v("", !0)
|
|
719
|
+
]))), 128))
|
|
720
|
+
])),
|
|
721
|
+
y.value && a.minimapCompact ? (u(), i("rect", {
|
|
722
|
+
key: 7,
|
|
723
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
724
|
+
x: w.value.x - 8,
|
|
725
|
+
y: 0,
|
|
726
|
+
width: 8,
|
|
727
|
+
height: h.value.height,
|
|
728
|
+
fill: d.value,
|
|
729
|
+
stroke: a.textColor,
|
|
730
|
+
rx: 3
|
|
731
|
+
}, null, 8, Ml)) : v("", !0),
|
|
732
|
+
y.value && a.minimapCompact ? (u(), i("rect", {
|
|
733
|
+
key: 8,
|
|
734
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
735
|
+
x: w.value.x + w.value.width,
|
|
736
|
+
y: 0,
|
|
737
|
+
width: 8,
|
|
738
|
+
height: h.value.height,
|
|
739
|
+
fill: d.value,
|
|
740
|
+
stroke: a.textColor,
|
|
741
|
+
rx: 3
|
|
742
|
+
}, null, 8, kl)) : v("", !0),
|
|
743
|
+
a.minimapMerged ? (u(), i(g, { key: 9 }, [
|
|
744
|
+
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
745
|
+
key: 0,
|
|
746
|
+
cx: c.value.firstPlot.x,
|
|
747
|
+
cy: c.value.firstPlot.y,
|
|
748
|
+
"stroke-width": "0.5",
|
|
749
|
+
stroke: d.value,
|
|
750
|
+
r: "4",
|
|
751
|
+
fill: a.minimapLineColor
|
|
752
|
+
}, null, 8, pl)) : v("", !0),
|
|
753
|
+
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
754
|
+
key: 1,
|
|
755
|
+
cx: c.value.firstPlot.x,
|
|
756
|
+
cy: c.value.firstPlot.y,
|
|
757
|
+
r: "2",
|
|
758
|
+
fill: d.value
|
|
759
|
+
}, null, 8, wl)) : v("", !0),
|
|
760
|
+
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
761
|
+
key: 2,
|
|
762
|
+
cx: c.value.lastPlot.x,
|
|
763
|
+
cy: c.value.lastPlot.y,
|
|
764
|
+
"stroke-width": "0.5",
|
|
765
|
+
stroke: d.value,
|
|
766
|
+
r: "4",
|
|
767
|
+
fill: a.minimapLineColor
|
|
768
|
+
}, null, 8, Sl)) : v("", !0),
|
|
769
|
+
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
770
|
+
key: 3,
|
|
771
|
+
cx: c.value.lastPlot.x,
|
|
772
|
+
cy: c.value.lastPlot.y,
|
|
773
|
+
r: "2",
|
|
774
|
+
fill: d.value
|
|
775
|
+
}, null, 8, Cl)) : v("", !0)
|
|
776
|
+
], 64)) : (u(), i("g", Pl, [
|
|
777
|
+
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
778
|
+
key: String(t.key)
|
|
779
|
+
}, [
|
|
780
|
+
t.isVisible ? (u(!0), i(g, { key: 0 }, N(t.selectionMarkers, (o) => (u(), i("circle", {
|
|
781
|
+
key: `sel-dot-${t.key}-${o.i}`,
|
|
782
|
+
cx: o.x,
|
|
783
|
+
cy: o.y,
|
|
784
|
+
r: "2.5",
|
|
785
|
+
fill: t.color,
|
|
786
|
+
stroke: d.value,
|
|
787
|
+
"stroke-width": "0.5"
|
|
788
|
+
}, null, 8, Nl))), 128)) : v("", !0),
|
|
789
|
+
t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
|
|
790
|
+
key: 1,
|
|
791
|
+
cx: t.firstPlot.x,
|
|
792
|
+
cy: t.firstPlot.y,
|
|
793
|
+
"stroke-width": "0.5",
|
|
794
|
+
stroke: d.value,
|
|
795
|
+
r: "4",
|
|
796
|
+
fill: t.color
|
|
797
|
+
}, null, 8, $l)) : v("", !0),
|
|
798
|
+
t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
|
|
799
|
+
key: 2,
|
|
800
|
+
cx: t.firstPlot.x,
|
|
801
|
+
cy: t.firstPlot.y,
|
|
802
|
+
r: "2",
|
|
803
|
+
fill: d.value
|
|
804
|
+
}, null, 8, Ll)) : v("", !0),
|
|
805
|
+
t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
|
|
806
|
+
key: 3,
|
|
807
|
+
cx: t.lastPlot.x,
|
|
808
|
+
cy: t.lastPlot.y,
|
|
809
|
+
"stroke-width": "0.5",
|
|
810
|
+
stroke: d.value,
|
|
811
|
+
r: "4",
|
|
812
|
+
fill: t.color
|
|
813
|
+
}, null, 8, Rl)) : v("", !0),
|
|
814
|
+
t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
|
|
815
|
+
key: 4,
|
|
816
|
+
cx: t.lastPlot.x,
|
|
817
|
+
cy: t.lastPlot.y,
|
|
818
|
+
r: "2",
|
|
819
|
+
fill: d.value
|
|
820
|
+
}, null, 8, El)) : v("", !0)
|
|
821
|
+
]))), 128))
|
|
822
|
+
])),
|
|
823
|
+
(u(!0), i(g, null, N(Te.value, (t, o) => (u(), i("rect", {
|
|
824
|
+
y: 0,
|
|
825
|
+
height: Math.max(h.value.height, 0),
|
|
826
|
+
fill: "transparent",
|
|
827
|
+
style: R([{ "pointer-events": "all !important" }, {
|
|
828
|
+
cursor: t >= D.value && t < W.value && a.enableSelectionDrag ? z.value ? "grabbing" : "grab" : "default"
|
|
829
|
+
}]),
|
|
830
|
+
x: x.value * o - (a.minimapCompact ? x.value / 2 : 0),
|
|
831
|
+
width: x.value < 0 ? 0 : x.value,
|
|
832
|
+
onMousedown: l[0] || (l[0] = (r) => z.value = !0),
|
|
833
|
+
onMouseup: l[1] || (l[1] = (r) => z.value = !1),
|
|
834
|
+
onMouseenter: (r) => St(t),
|
|
835
|
+
onMouseleave: l[2] || (l[2] = (r) => {
|
|
836
|
+
T.value = null, Y("trapMouse", null);
|
|
837
|
+
})
|
|
838
|
+
}, null, 44, Tl))), 256))
|
|
839
|
+
], 8, al))
|
|
840
|
+
])) : v("", !0),
|
|
841
|
+
C("div", {
|
|
842
|
+
class: "slider-track",
|
|
843
|
+
style: R({ visibility: y.value && a.minimapCompact ? "hidden" : "visible" })
|
|
844
|
+
}, null, 4),
|
|
845
|
+
C("div", {
|
|
846
|
+
class: Z({
|
|
847
|
+
"range-highlight": !0,
|
|
848
|
+
move: a.enableSelectionDrag
|
|
849
|
+
}),
|
|
850
|
+
onMousedown: l[3] || (l[3] = (t) => z.value = !0),
|
|
851
|
+
onMouseup: l[4] || (l[4] = (t) => z.value = !1),
|
|
852
|
+
style: R({
|
|
853
|
+
...P.value,
|
|
854
|
+
cursor: z.value ? "grabbing" : "grab",
|
|
855
|
+
visibility: y.value && a.minimapCompact ? "hidden" : "visible"
|
|
856
|
+
})
|
|
857
|
+
}, null, 38),
|
|
858
|
+
a.enableRangeHandles ? lt((u(), i("input", {
|
|
859
|
+
key: 1,
|
|
860
|
+
ref_key: "rangeStart",
|
|
861
|
+
ref: pe,
|
|
862
|
+
type: "range",
|
|
863
|
+
class: Z({
|
|
864
|
+
"range-left": !0,
|
|
865
|
+
"range-handle": !0,
|
|
866
|
+
"range-minimap": y.value && a.verticalHandles,
|
|
867
|
+
"range-invisible": y.value && a.minimapCompact
|
|
868
|
+
}),
|
|
869
|
+
min: a.min,
|
|
870
|
+
max: E.value && a.minimapCompact ? q.value : a.max,
|
|
871
|
+
step: 1,
|
|
872
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => xe.value = t),
|
|
873
|
+
onMouseenter: l[6] || (l[6] = (t) => qe("start"))
|
|
874
|
+
}, null, 42, Vl)), [
|
|
875
|
+
[
|
|
876
|
+
at,
|
|
877
|
+
xe.value,
|
|
878
|
+
void 0,
|
|
879
|
+
{ number: !0 }
|
|
880
|
+
]
|
|
881
|
+
]) : v("", !0),
|
|
882
|
+
a.enableRangeHandles ? lt((u(), i("input", {
|
|
883
|
+
key: 2,
|
|
884
|
+
ref_key: "rangeEnd",
|
|
885
|
+
ref: we,
|
|
886
|
+
type: "range",
|
|
887
|
+
class: Z({
|
|
888
|
+
"range-right": !0,
|
|
889
|
+
"range-handle": !0,
|
|
890
|
+
"range-minimap": y.value && a.verticalHandles,
|
|
891
|
+
"range-invisible": y.value && a.minimapCompact
|
|
892
|
+
}),
|
|
893
|
+
min: a.min,
|
|
894
|
+
max: E.value && a.minimapCompact ? q.value : a.max,
|
|
895
|
+
step: 1,
|
|
896
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => be.value = t),
|
|
897
|
+
onMouseenter: l[8] || (l[8] = (t) => qe("end"))
|
|
898
|
+
}, null, 42, Fl)), [
|
|
899
|
+
[
|
|
900
|
+
at,
|
|
901
|
+
be.value,
|
|
902
|
+
void 0,
|
|
903
|
+
{ number: !0 }
|
|
904
|
+
]
|
|
905
|
+
]) : v("", !0),
|
|
906
|
+
a.labelLeft ? (u(), i("div", {
|
|
907
|
+
key: 3,
|
|
908
|
+
ref_key: "tooltipLeft",
|
|
909
|
+
ref: ee,
|
|
910
|
+
class: Z({
|
|
911
|
+
"range-tooltip": !0,
|
|
912
|
+
"range-tooltip-visible": I.value,
|
|
913
|
+
"range-tooltip-arrow": P.value.arrowLeft && !a.verticalHandles,
|
|
914
|
+
"range-tooltip-arrow-left": !P.value.arrowLeft && !a.verticalHandles
|
|
915
|
+
}),
|
|
916
|
+
style: R({
|
|
917
|
+
left: P.value.tooltipLeft,
|
|
918
|
+
color: me(Le)(a.selectColor),
|
|
919
|
+
backgroundColor: a.selectColor,
|
|
920
|
+
border: `1px solid ${d.value}`,
|
|
921
|
+
zIndex: `${Je.value + 4}`,
|
|
922
|
+
visibility: le.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
923
|
+
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
924
|
+
})
|
|
925
|
+
}, $e(a.labelLeft), 7)) : v("", !0),
|
|
926
|
+
(le.value || a.labelLeft === a.labelRight) && (a.labelLeft || a.labelRight) ? (u(), i("div", {
|
|
927
|
+
key: 4,
|
|
928
|
+
ref: "tooltipMerge",
|
|
929
|
+
class: Z({
|
|
930
|
+
"range-tooltip": !0,
|
|
931
|
+
"range-tooltip-visible": I.value,
|
|
932
|
+
"range-tooltip-arrow": !0,
|
|
933
|
+
"range-tooltip-arrow-left": !P.value.arrowLeft && !a.verticalHandles,
|
|
934
|
+
"range-tooltip-arrow-right": !P.value.arrowRight && !a.verticalHandles
|
|
935
|
+
}),
|
|
936
|
+
style: R({
|
|
937
|
+
left: P.value.tooltipCenter,
|
|
938
|
+
width: ae.value.width + "px",
|
|
939
|
+
color: me(Le)(a.selectColor),
|
|
940
|
+
backgroundColor: a.selectColor,
|
|
941
|
+
border: `1px solid ${d.value}`,
|
|
942
|
+
zIndex: "4",
|
|
943
|
+
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
944
|
+
})
|
|
945
|
+
}, $e(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : v("", !0),
|
|
946
|
+
a.labelRight ? (u(), i("div", {
|
|
947
|
+
key: 5,
|
|
948
|
+
ref_key: "tooltipRight",
|
|
949
|
+
ref: te,
|
|
950
|
+
class: Z({
|
|
951
|
+
"range-tooltip": !0,
|
|
952
|
+
"range-tooltip-visible": I.value,
|
|
953
|
+
"range-tooltip-arrow": P.value.arrowRight && !a.verticalHandles,
|
|
954
|
+
"range-tooltip-arrow-right": !P.value.arrowRight && !a.verticalHandles
|
|
955
|
+
}),
|
|
956
|
+
style: R({
|
|
957
|
+
left: P.value.tooltipRight,
|
|
958
|
+
color: me(Le)(a.selectColor),
|
|
959
|
+
backgroundColor: a.selectColor,
|
|
960
|
+
border: `1px solid ${d.value}`,
|
|
961
|
+
zIndex: "4",
|
|
962
|
+
visibility: le.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
963
|
+
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
964
|
+
})
|
|
965
|
+
}, $e(a.labelRight), 7)) : v("", !0)
|
|
966
|
+
], 544)
|
|
967
|
+
], 544));
|
|
968
|
+
}
|
|
969
|
+
}, Xl = /* @__PURE__ */ _t(Bl, [["__scopeId", "data-v-ec92baaf"]]);
|
|
970
|
+
export {
|
|
971
|
+
Xl as S
|
|
972
|
+
};
|