vue-data-ui 3.1.7 → 3.1.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/{Arrow-BZ8rnWYn.js → Arrow-Bd2Nv1JR.js} +1 -1
- package/dist/{BaseDraggableDialog-Bdva4JFr.js → BaseDraggableDialog-DnDgu3fu.js} +2 -2
- package/dist/{BaseIcon-BCS8aIf4.js → BaseIcon-ClWpJKO3.js} +1 -1
- package/dist/{ColorPicker-DF6PDOhr.js → ColorPicker-CGqCY0f7.js} +2 -2
- package/dist/{DataTable-Ddu14t59.js → DataTable-BeFHXTQb.js} +2 -2
- package/dist/{Legend-C3I0iaLM.js → Legend-D_ryPoDQ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-LSG0MLRC.js → NonSvgPenAndPaper-C0fUFsd1.js} +3 -3
- package/dist/{PackageVersion-CtYY8jBZ.js → PackageVersion-nvqupdcz.js} +1 -1
- package/dist/{PenAndPaper-DtlEAsLw.js → PenAndPaper-CdK_W5h2.js} +3 -3
- package/dist/{Shape-B8Cdu8s1.js → Shape-g1_KwK3i.js} +1 -1
- package/dist/Slicer-BbsnAAIT.js +972 -0
- package/dist/{SparkTooltip-qMi3IzXb.js → SparkTooltip-BJY8zi7K.js} +1 -1
- package/dist/{Title-BUVvr0U8.js → Title-DCLc6TCZ.js} +1 -1
- package/dist/{Tooltip-VlJQQsYu.js → Tooltip-DI84H3Yz.js} +1 -1
- package/dist/{UserOptions-sSygisu3.js → UserOptions-2XI1AOh5.js} +2 -2
- package/dist/{dom-to-png-BqX4MBZN.js → dom-to-png-BbsbFKuu.js} +1 -1
- package/dist/{img-DN0--Lx6.js → img-DQnzQcOw.js} +1 -1
- package/dist/{index-BlRUhv0O.js → index-5vhIMiMJ.js} +123 -118
- package/dist/{pdf-Cm5HZB7J.js → pdf-BbD1z_VM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-wLT3gJAJ.js → useAutoSizeLabelsInsideViewbox-lO6KBU08.js} +1 -1
- package/dist/{useNestedProp-OxTlfHdh.js → useNestedProp-BBcJUXV-.js} +1 -1
- package/dist/{usePrinter-DR__HfSR.js → usePrinter-BxQRVOJV.js} +2 -2
- package/dist/{vue-data-ui-Ci8pH3va.js → vue-data-ui-CBSwx9_2.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-h-8AQQKD.js → vue-ui-3d-bar-DrVQXElH.js} +6 -6
- package/dist/{vue-ui-accordion-DejV6zJ2.js → vue-ui-accordion-CWkuC41h.js} +3 -3
- package/dist/{vue-ui-age-pyramid-yTcDoeqi.js → vue-ui-age-pyramid-hfNlu-eT.js} +6 -6
- package/dist/{vue-ui-annotator-HqsIz-FI.js → vue-ui-annotator-BdW7stIX.js} +2 -2
- package/dist/{vue-ui-bullet-Co4ZttnE.js → vue-ui-bullet-DH55M9hd.js} +7 -7
- package/dist/{vue-ui-candlestick-BQQR9K33.js → vue-ui-candlestick-BdCIu_3Z.js} +7 -7
- package/dist/{vue-ui-carousel-table-BzDik-6R.js → vue-ui-carousel-table-CYFqd5Do.js} +4 -4
- package/dist/{vue-ui-chestnut-5VG75w-T.js → vue-ui-chestnut-BAXJvE_P.js} +5 -5
- package/dist/{vue-ui-chord-5HE-ZTDA.js → vue-ui-chord-CZvpyXPS.js} +8 -8
- package/dist/{vue-ui-circle-pack-BVcr-3fG.js → vue-ui-circle-pack-DIrNW31y.js} +6 -6
- package/dist/{vue-ui-cursor-BDH4YPCA.js → vue-ui-cursor-DB5jBNc-.js} +2 -2
- package/dist/{vue-ui-dashboard-VtafJ36J.js → vue-ui-dashboard-NIsI1tyR.js} +67 -67
- package/dist/{vue-ui-digits-Bh5fmCge.js → vue-ui-digits-D1E8vS1U.js} +2 -2
- package/dist/{vue-ui-donut-PiILi3WQ.js → vue-ui-donut-Dcc640KU.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DVp2UID9.js → vue-ui-donut-evolution-FvABIk1B.js} +8 -8
- package/dist/{vue-ui-dumbbell-DIX_gcC_.js → vue-ui-dumbbell-DwR1pCUC.js} +7 -7
- package/dist/{vue-ui-flow-DY64szfV.js → vue-ui-flow-DAm9A_0v.js} +7 -7
- package/dist/{vue-ui-funnel-DnQFZe9P.js → vue-ui-funnel-CBzrS5BO.js} +6 -6
- package/dist/{vue-ui-galaxy-C0TCFGXT.js → vue-ui-galaxy-IJ_oreeF.js} +7 -7
- package/dist/{vue-ui-gauge-BNIAJlUC.js → vue-ui-gauge-o72yvW6N.js} +7 -7
- package/dist/{vue-ui-gizmo-BnHruhLB.js → vue-ui-gizmo-DfyGDDpf.js} +3 -3
- package/dist/{vue-ui-heatmap-CH_twICb.js → vue-ui-heatmap-BGCYDLeT.js} +7 -7
- package/dist/{vue-ui-history-plot-CtJrkyG8.js → vue-ui-history-plot-WM4e1JlT.js} +7 -7
- package/dist/{vue-ui-kpi-Co0app61.js → vue-ui-kpi-BcDpOVCW.js} +3 -3
- package/dist/{vue-ui-mini-loader-DXrdP_7p.js → vue-ui-mini-loader-pv8BRyQQ.js} +2 -2
- package/dist/{vue-ui-molecule-C2cNArDQ.js → vue-ui-molecule-D7oF0j_4.js} +5 -5
- package/dist/{vue-ui-mood-radar-BrLLsYz5.js → vue-ui-mood-radar-iPbyJzps.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DRysa4v_.js → vue-ui-nested-donuts-BLceuaiq.js} +9 -10
- package/dist/{vue-ui-onion-znQ-OGaR.js → vue-ui-onion-Dnf_fWQJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DIX2Hytk.js → vue-ui-parallel-coordinate-plot-DgqvrE6i.js} +8 -8
- package/dist/{vue-ui-quadrant-B4X5ePQQ.js → vue-ui-quadrant-B7_t3c1D.js} +8 -8
- package/dist/{vue-ui-quick-chart-Cm7iAsdB.js → vue-ui-quick-chart-QBNsaoSx.js} +606 -582
- package/dist/{vue-ui-radar-CMXnDLdC.js → vue-ui-radar-B5LY3bFz.js} +8 -8
- package/dist/{vue-ui-rating-wAMAKVA8.js → vue-ui-rating-M2LsJhF9.js} +2 -2
- package/dist/{vue-ui-relation-circle-snHKlhA3.js → vue-ui-relation-circle-BDgDf-UH.js} +7 -7
- package/dist/{vue-ui-ridgeline-Bx7_nnJ7.js → vue-ui-ridgeline-CF8EGKmN.js} +8 -8
- package/dist/{vue-ui-rings-BGTPLeaD.js → vue-ui-rings-CEf32Qd9.js} +8 -8
- package/dist/{vue-ui-scatter-D-rI3hK1.js → vue-ui-scatter-B1Aafuh6.js} +8 -8
- package/dist/{vue-ui-skeleton-B-6lN9xS.js → vue-ui-skeleton-DCf8RHTA.js} +3 -3
- package/dist/{vue-ui-smiley-DeLEE9m9.js → vue-ui-smiley-D9TyN2I4.js} +2 -2
- package/dist/{vue-ui-spark-trend-BvrboxYt.js → vue-ui-spark-trend-DcZNamSY.js} +3 -3
- package/dist/{vue-ui-sparkbar-nW5DeWC5.js → vue-ui-sparkbar-CNmySZRR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Isge2K7-.js → vue-ui-sparkgauge-Du3pqhHb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-ChSw4gHY.js → vue-ui-sparkhistogram-DY33-6pA.js} +4 -4
- package/dist/{vue-ui-sparkline-DH-VRt5o.js → vue-ui-sparkline-DQO2IGma.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-l45aaRR1.js → vue-ui-sparkstackbar-BHgX0FAK.js} +3 -3
- package/dist/{vue-ui-stackbar-ByVq83Og.js → vue-ui-stackbar-DTvmplPR.js} +9 -9
- package/dist/{vue-ui-strip-plot-CwooqV7G.js → vue-ui-strip-plot-CH3BNHOX.js} +7 -7
- package/dist/{vue-ui-table-BRPcCRq-.js → vue-ui-table-DmOi42QJ.js} +554 -520
- package/dist/{vue-ui-table-heatmap-CaAadUo0.js → vue-ui-table-heatmap-D0XRMZEF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bt7VtPKK.js → vue-ui-table-sparkline-SjzOqua1.js} +4 -4
- package/dist/{vue-ui-thermometer-B-CWjknr.js → vue-ui-thermometer-Dkb9wTy_.js} +7 -7
- package/dist/{vue-ui-timer-CxLcOKNv.js → vue-ui-timer-CeCAWDqf.js} +5 -5
- package/dist/{vue-ui-tiremarks-DYEZvwDv.js → vue-ui-tiremarks-B9XkzHFy.js} +6 -6
- package/dist/{vue-ui-treemap-CeuebtPa.js → vue-ui-treemap-BCcXO9kM.js} +8 -8
- package/dist/{vue-ui-vertical-bar-D8_txlgd.js → vue-ui-vertical-bar-CRtBBzYM.js} +9 -9
- package/dist/{vue-ui-waffle-B5Qe5PKA.js → vue-ui-waffle-DSNBPqTC.js} +8 -8
- package/dist/{vue-ui-wheel-CxpLOCGw.js → vue-ui-wheel-BXQK9I22.js} +6 -6
- package/dist/{vue-ui-word-cloud-DCoL3uD5.js → vue-ui-word-cloud-YLIzbhcv.js} +6 -6
- package/dist/{vue-ui-world-DmnwTNAv.js → vue-ui-world-eCTtZria.js} +6 -6
- package/dist/vue-ui-xy-C7u7xEoN.js +4507 -0
- package/dist/{vue-ui-xy-canvas-CJp0mlzr.js → vue-ui-xy-canvas-D_rqJLcT.js} +10 -10
- package/package.json +1 -1
- package/dist/Slicer-Bk01kWGC.js +0 -596
- package/dist/vue-ui-xy-CzdchisK.js +0 -4141
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
import { useCssVars as Ht, computed as s, ref as m, onMounted as et, onBeforeUnmount as Ce, watch as U, nextTick as Pe, onUpdated as Xt, createElementBlock as i, openBlock as u, createElementVNode as C, createCommentVNode as v, renderSlot as Gt, normalizeStyle as R, createVNode as Ot, withDirectives as tt, unref as ve, Fragment as g, renderList as N, normalizeProps as Ut, mergeProps as Zt, normalizeClass as Z, vModelText as lt, toDisplayString as Ne } from "vue";
|
|
2
|
+
import { c as Yt, X as Jt, F as $e, $ as at, V as nt, a0 as it, U as ut } from "./index-5vhIMiMJ.js";
|
|
3
|
+
import { t as ot, d as qt, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import Qt from "./BaseIcon-ClWpJKO3.js";
|
|
5
|
+
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const _t = {
|
|
7
|
+
class: "vue-data-ui-slicer-labels",
|
|
8
|
+
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
+
}, el = {
|
|
10
|
+
key: 0,
|
|
11
|
+
style: { width: "100%", position: "relative" }
|
|
12
|
+
}, tl = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "minimap",
|
|
15
|
+
style: { width: "100%" }
|
|
16
|
+
}, ll = ["xmlns", "viewBox"], al = ["id"], nl = ["stop-color"], il = ["width", "height", "stroke"], ul = ["d", "stroke"], ol = ["x", "width", "y", "height", "fill"], rl = ["d", "stroke"], sl = ["cx", "cy", "fill", "stroke"], cl = ["x", "width", "height", "fill", "rx"], vl = ["x", "width", "height", "rx", "fill"], ml = ["x", "width", "height", "fill", "rx"], hl = ["x2", "y1", "y2", "stroke"], dl = ["d", "fill"], fl = ["d", "stroke"], gl = { key: 6 }, yl = ["x", "width", "y", "height", "fill"], xl = ["d", "stroke"], bl = ["x", "height", "fill", "stroke"], Ml = ["x", "height", "fill", "stroke"], kl = ["cx", "cy", "stroke", "fill"], pl = ["cx", "cy", "fill"], wl = ["cx", "cy", "stroke", "fill"], Sl = ["cx", "cy", "fill"], Cl = { key: 10 }, Pl = ["cx", "cy", "fill", "stroke"], Nl = ["cx", "cy", "stroke", "fill"], $l = ["cx", "cy", "fill"], Ll = ["cx", "cy", "stroke", "fill"], Rl = ["cx", "cy", "fill"], El = ["height", "x", "width", "onMouseenter"], Tl = ["min", "max"], Fl = ["min", "max"], Vl = 48, Al = {
|
|
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: rt, emit: st }) {
|
|
148
|
+
Ht((e) => ({
|
|
149
|
+
"27f2cb49": ht.value,
|
|
150
|
+
"802f5886": d.value,
|
|
151
|
+
"122b4124": ft.value,
|
|
152
|
+
bfc4d626: a.selectColor,
|
|
153
|
+
"7373c0fb": dt.value
|
|
154
|
+
}));
|
|
155
|
+
const n = a, $ = m(null), k = m(n.min), p = m(n.max), y = s(() => !!n.minimap.length), Le = m(Yt()), E = s(() => y.value && n.minimapCompact), me = m(0);
|
|
156
|
+
et(() => {
|
|
157
|
+
const e = () => {
|
|
158
|
+
$.value && (me.value = $.value.getBoundingClientRect().width);
|
|
159
|
+
};
|
|
160
|
+
e();
|
|
161
|
+
const l = ot(e, 50);
|
|
162
|
+
window.addEventListener("resize", l), Ce(() => {
|
|
163
|
+
window.removeEventListener("resize", l);
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
const ct = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), Y = st, J = s(() => {
|
|
167
|
+
if (E.value) {
|
|
168
|
+
const l = Math.max(1, ne.value - 1);
|
|
169
|
+
return ye.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 xe.value / l * 100;
|
|
177
|
+
}
|
|
178
|
+
const e = Math.max(1, n.max - n.min);
|
|
179
|
+
return (p.value - n.min) / e * 100;
|
|
180
|
+
}), he = s(() => (J.value + ie.value) / 2), de = s(() => {
|
|
181
|
+
if (!$.value) return !1;
|
|
182
|
+
const e = $.value.getBoundingClientRect().width;
|
|
183
|
+
return J.value / 100 * e - we.value / 2 < 0;
|
|
184
|
+
}), fe = 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 = fe.value ? `calc(${he.value}% - ${ae.value.width}px - 2px)` : de.value ? `calc(${he.value}% - 8px)` : `calc(${he.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}% - ${de.value ? 9 : we.value / 2 + 3.5}px)`,
|
|
195
|
+
tooltipRight: `calc(${ie.value}% - ${fe.value ? ce.value - 9 : ce.value / 2 - 3.5}px)`,
|
|
196
|
+
tooltipCenter: e,
|
|
197
|
+
arrowLeft: !de.value,
|
|
198
|
+
arrowRight: !fe.value
|
|
199
|
+
};
|
|
200
|
+
}), q = s(() => Math.max(0, (K.value || 1) - 1)), ge = s(() => Math.max(0, (ne.value || 1) - 1));
|
|
201
|
+
function ue(e) {
|
|
202
|
+
return ge.value === 0 ? 0 : Math.round(e / ge.value * q.value);
|
|
203
|
+
}
|
|
204
|
+
function Re(e) {
|
|
205
|
+
return q.value === 0 ? 0 : Math.round(e / q.value * ge.value);
|
|
206
|
+
}
|
|
207
|
+
const vt = (e) => Math.floor(n.min + e), mt = (e) => Math.ceil(n.min + e), ye = 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 = Re(o);
|
|
214
|
+
oe(vt(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
|
+
}), xe = 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 = Re(o);
|
|
228
|
+
re(mt(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
|
+
}), ht = s(() => n.inputColor), dt = s(() => n.background), ft = s(() => `${n.selectColor}33`), d = s(() => n.borderColor), Ee = s(() => {
|
|
236
|
+
const e = [];
|
|
237
|
+
for (let l = 0; l < n.max; l += 1)
|
|
238
|
+
e.push(l);
|
|
239
|
+
return e;
|
|
240
|
+
});
|
|
241
|
+
function Te() {
|
|
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 be = m(null), h = m({
|
|
256
|
+
width: 1,
|
|
257
|
+
height: 1
|
|
258
|
+
}), X = m(null);
|
|
259
|
+
et(() => {
|
|
260
|
+
if (y.value) {
|
|
261
|
+
const e = ot(() => {
|
|
262
|
+
const { width: l, height: t } = Kt({
|
|
263
|
+
chart: be.value
|
|
264
|
+
});
|
|
265
|
+
h.value.width = l, h.value.height = t - 47;
|
|
266
|
+
});
|
|
267
|
+
X.value = new ResizeObserver(e), X.value.observe(be.value);
|
|
268
|
+
}
|
|
269
|
+
}), Ce(() => {
|
|
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), gt = s(() => G.value < 0 && Q.value > 0 || Q.value <= 0 ? G.value : 0), yt = s(() => Math.max(1e-9, Math.max(Math.abs(G.value), Math.abs(Q.value)))), xt = s(() => G.value < 0 && Q.value > 0), bt = (e) => {
|
|
283
|
+
const l = Math.max(1, h.value.height);
|
|
284
|
+
if (xt.value) {
|
|
285
|
+
const t = yt.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
|
+
}, Ve = s(() => bt(0)), Ae = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), Me = s(() => x.value / (Ae.value || 1) * 0.8);
|
|
292
|
+
function Be(e, l, t) {
|
|
293
|
+
const o = Me.value, r = Math.max(1, Ae.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 ze(e, l) {
|
|
297
|
+
return [0, K.value - 1].includes(l) ? Me.value / 2 : Me.value;
|
|
298
|
+
}
|
|
299
|
+
function Mt(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 De(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 = Mt(r, f, t), L = e.length, O = Math.min(Math.max(0, D.value), Math.max(0, L - 1)), Se = Math.min(L, Math.max(O + 1, W.value)), M = e.map((b, je) => {
|
|
327
|
+
const _e = Number.isFinite(b), It = x.value * je + (n.minimapCompact ? 0 : x.value / 2), Wt = (r < 0 && f > 0, S(0));
|
|
328
|
+
return {
|
|
329
|
+
x: It,
|
|
330
|
+
y: _e ? S(b) : NaN,
|
|
331
|
+
v: b,
|
|
332
|
+
value: _e ? b : null,
|
|
333
|
+
y0: Wt,
|
|
334
|
+
i: je
|
|
335
|
+
};
|
|
336
|
+
}), Ke = (b) => b >= 0 && b < M.length && Number.isFinite(M[b]?.value), Qe = M.filter((b) => Number.isFinite(b.value) && !Ke(b.i - 1) && !Ke(b.i + 1)), Bt = Qe.filter((b) => b.i >= O && b.i < Se), H = M.slice(O, Se), zt = M.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? at(M) : nt(M) : n.cutNullValues ? it(M) : ut(M) : "", Dt = H.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? at(H) : nt(H) : n.cutNullValues ? it(H) : ut(H) : "";
|
|
337
|
+
return {
|
|
338
|
+
fullSet: zt,
|
|
339
|
+
points: M,
|
|
340
|
+
selectionSet: Dt,
|
|
341
|
+
sliced: H,
|
|
342
|
+
firstPlot: M[O] || null,
|
|
343
|
+
lastPlot: M[Math.max(0, Se - 1)] || null,
|
|
344
|
+
hasFull: M.length >= 2,
|
|
345
|
+
hasSelection: H.length >= 2,
|
|
346
|
+
fullMarkers: Qe,
|
|
347
|
+
selectionMarkers: Bt
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
const c = s(() => n.minimap.length ? De(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 = De(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 kt(e) {
|
|
375
|
+
T.value = qe(n.valueStart) + e;
|
|
376
|
+
}
|
|
377
|
+
const pt = qt(kt, 60);
|
|
378
|
+
U(() => n.minimapSelectedIndex, (e, l) => {
|
|
379
|
+
if ([null, void 0].includes(e)) {
|
|
380
|
+
T.value = null;
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
e !== l && pt(e);
|
|
384
|
+
}, { immediate: !0 });
|
|
385
|
+
function wt(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 ke = m(null), pe = m(null);
|
|
391
|
+
function oe(e) {
|
|
392
|
+
k.value = e, ke.value && (ke.value.value = e), Y("update:start", Number(k.value));
|
|
393
|
+
}
|
|
394
|
+
function re(e) {
|
|
395
|
+
p.value = e, pe.value && (pe.value.value = e), Y("update:end", Number(p.value));
|
|
396
|
+
}
|
|
397
|
+
const se = s(() => n.valueEnd - n.valueStart), _ = m(!1);
|
|
398
|
+
let St = m(null);
|
|
399
|
+
const Ct = s(() => (me.value - 48) / (n.max - n.min) * se.value), Pt = s(() => Math.max(1, me.value - Vl - Ct.value)), Nt = s(() => Math.max(1, n.max - n.min - se.value)), $t = s(() => Nt.value / Pt.value), Ie = m(0), We = m(0), Lt = m(0), He = m(0);
|
|
400
|
+
let F = null, V = null, A = null, B = null;
|
|
401
|
+
const Xe = (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
|
+
St.value = r, Ie.value = r, We.value = Number(k.value), Lt.value = Number(p.value), He.value = $t.value, F = l ? "touchmove" : "mousemove", V = l ? "touchend" : "mouseup", A = l ? Et : Rt, B = l ? Ft : Tt, window.addEventListener(F, A, { passive: !1 }), window.addEventListener(V, B);
|
|
410
|
+
};
|
|
411
|
+
function Rt(e) {
|
|
412
|
+
_.value && Ge(e.clientX);
|
|
413
|
+
}
|
|
414
|
+
function Et(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 && Ge(t.clientX);
|
|
421
|
+
}
|
|
422
|
+
function Ge(e) {
|
|
423
|
+
if (!_.value) return;
|
|
424
|
+
const t = (e - Ie.value) * He.value;
|
|
425
|
+
let o = Math.round(We.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 Tt() {
|
|
431
|
+
Oe();
|
|
432
|
+
}
|
|
433
|
+
function Ft() {
|
|
434
|
+
Oe();
|
|
435
|
+
}
|
|
436
|
+
function Oe() {
|
|
437
|
+
_.value = !1, F && A && window.removeEventListener(F, A), V && B && window.removeEventListener(V, B), F = V = null, A = B = null;
|
|
438
|
+
}
|
|
439
|
+
const z = m(!1), ee = m(null), te = m(null), we = m(1), ce = m(1), I = m(!1);
|
|
440
|
+
function Ue() {
|
|
441
|
+
ee.value && (we.value = ee.value.getBoundingClientRect().width);
|
|
442
|
+
}
|
|
443
|
+
function Ze() {
|
|
444
|
+
te.value && (ce.value = te.value.getBoundingClientRect().width);
|
|
445
|
+
}
|
|
446
|
+
const Ye = m(0);
|
|
447
|
+
function Je(e) {
|
|
448
|
+
Ye.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 Pe(), !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
|
+
}), Xt(() => {
|
|
467
|
+
Ue(), Ze();
|
|
468
|
+
}), U(
|
|
469
|
+
() => n.labelLeft,
|
|
470
|
+
() => {
|
|
471
|
+
Pe(Ue);
|
|
472
|
+
},
|
|
473
|
+
{ deep: !0 }
|
|
474
|
+
), U(
|
|
475
|
+
() => n.labelRight,
|
|
476
|
+
() => {
|
|
477
|
+
Pe(Ze);
|
|
478
|
+
},
|
|
479
|
+
{ deep: !0 }
|
|
480
|
+
), rt({
|
|
481
|
+
setStartValue: oe,
|
|
482
|
+
setEndValue: re
|
|
483
|
+
}), Ce(() => {
|
|
484
|
+
X.value && X.value.disconnect(), F && A && window.removeEventListener(F, A), V && B && window.removeEventListener(V, B), F = V = null, A = B = null;
|
|
485
|
+
});
|
|
486
|
+
const ne = s(() => Math.max(1, n.max - n.min));
|
|
487
|
+
function qe(e) {
|
|
488
|
+
const l = Math.floor(e - n.min);
|
|
489
|
+
return Math.min(Math.max(0, l), ne.value);
|
|
490
|
+
}
|
|
491
|
+
function Vt(e) {
|
|
492
|
+
const l = Math.ceil(e - n.min);
|
|
493
|
+
return Math.min(Math.max(0, l), ne.value);
|
|
494
|
+
}
|
|
495
|
+
const D = s(() => qe(k.value)), W = s(() => Vt(p.value)), At = s(() => {
|
|
496
|
+
if (!Ee.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: Xe,
|
|
519
|
+
onTouchstart: Xe,
|
|
520
|
+
onTouchend: l[11] || (l[11] = (t) => I.value = !1)
|
|
521
|
+
}, [
|
|
522
|
+
C("div", _t, [
|
|
523
|
+
a.valueStart !== a.refreshStartPoint || a.valueEnd !== ct.value ? (u(), i("div", el, [
|
|
524
|
+
a.useResetSlot ? Gt(e.$slots, "reset-action", {
|
|
525
|
+
key: 1,
|
|
526
|
+
reset: Te
|
|
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: Te
|
|
537
|
+
}, [
|
|
538
|
+
Ot(Qt, {
|
|
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: be,
|
|
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", tl, [
|
|
554
|
+
(u(), i("svg", {
|
|
555
|
+
key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
|
|
556
|
+
xmlns: ve(Jt),
|
|
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: Le.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, nl),
|
|
571
|
+
l[12] || (l[12] = C("stop", {
|
|
572
|
+
offset: "100%",
|
|
573
|
+
"stop-color": "transparent"
|
|
574
|
+
}, null, -1))
|
|
575
|
+
], 8, al)
|
|
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, il)) : 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, ul)) : (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: Be(r.x, o, f),
|
|
603
|
+
width: ze(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, ol)) : 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, rl)) : 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, sl))), 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, cl),
|
|
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, vl),
|
|
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, ml),
|
|
661
|
+
T.value !== null && !z.value ? (u(), i("line", Ut(Zt({ key: 3 }, At.value)), null, 16)) : v("", !0),
|
|
662
|
+
!a.minimapMerged && gt.value < 0 ? (u(), i("line", {
|
|
663
|
+
key: 4,
|
|
664
|
+
class: "slicer-minimap-zero-line",
|
|
665
|
+
x1: 0,
|
|
666
|
+
x2: h.value.width,
|
|
667
|
+
y1: Ve.value,
|
|
668
|
+
y2: Ve.value,
|
|
669
|
+
stroke: a.minimapFrameColor,
|
|
670
|
+
"stroke-width": "0.5"
|
|
671
|
+
}, null, 8, hl)) : 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(#${Le.value})`,
|
|
678
|
+
stroke: "none",
|
|
679
|
+
style: { opacity: "1" }
|
|
680
|
+
}, null, 8, dl)) : 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, fl)) : v("", !0)
|
|
690
|
+
], 64)) : v("", !0)
|
|
691
|
+
], 64)) : (u(), i("g", gl, [
|
|
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: Be(r.x, o, f),
|
|
697
|
+
width: ze(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, yl)) : 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, xl)) : 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, bl)) : 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, Ml)) : 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, kl)) : 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, pl)) : 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, wl)) : 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, Sl)) : v("", !0)
|
|
776
|
+
], 64)) : (u(), i("g", Cl, [
|
|
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, Pl))), 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, Nl)) : 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, $l)) : 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, Ll)) : 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, Rl)) : v("", !0)
|
|
821
|
+
]))), 128))
|
|
822
|
+
])),
|
|
823
|
+
(u(!0), i(g, null, N(Ee.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) => wt(t),
|
|
835
|
+
onMouseleave: l[2] || (l[2] = (r) => {
|
|
836
|
+
T.value = null, Y("trapMouse", null);
|
|
837
|
+
})
|
|
838
|
+
}, null, 44, El))), 256))
|
|
839
|
+
], 8, ll))
|
|
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 ? tt((u(), i("input", {
|
|
859
|
+
key: 1,
|
|
860
|
+
ref_key: "rangeStart",
|
|
861
|
+
ref: ke,
|
|
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) => ye.value = t),
|
|
873
|
+
onMouseenter: l[6] || (l[6] = (t) => Je("start"))
|
|
874
|
+
}, null, 42, Tl)), [
|
|
875
|
+
[
|
|
876
|
+
lt,
|
|
877
|
+
ye.value,
|
|
878
|
+
void 0,
|
|
879
|
+
{ number: !0 }
|
|
880
|
+
]
|
|
881
|
+
]) : v("", !0),
|
|
882
|
+
a.enableRangeHandles ? tt((u(), i("input", {
|
|
883
|
+
key: 2,
|
|
884
|
+
ref_key: "rangeEnd",
|
|
885
|
+
ref: pe,
|
|
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) => xe.value = t),
|
|
897
|
+
onMouseenter: l[8] || (l[8] = (t) => Je("end"))
|
|
898
|
+
}, null, 42, Fl)), [
|
|
899
|
+
[
|
|
900
|
+
lt,
|
|
901
|
+
xe.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: ve($e)(a.selectColor),
|
|
919
|
+
backgroundColor: a.selectColor,
|
|
920
|
+
border: `1px solid ${d.value}`,
|
|
921
|
+
zIndex: `${Ye.value + 4}`,
|
|
922
|
+
visibility: le.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
923
|
+
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
924
|
+
})
|
|
925
|
+
}, Ne(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: ve($e)(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
|
+
}, Ne(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: ve($e)(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
|
+
}, Ne(a.labelRight), 7)) : v("", !0)
|
|
966
|
+
], 544)
|
|
967
|
+
], 544));
|
|
968
|
+
}
|
|
969
|
+
}, Hl = /* @__PURE__ */ jt(Al, [["__scopeId", "data-v-7d50092e"]]);
|
|
970
|
+
export {
|
|
971
|
+
Hl as S
|
|
972
|
+
};
|