vue-data-ui 3.13.2 → 3.13.4
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/{PackageVersion-CdPbb2sr.js → PackageVersion-C1Ia4Osa.js} +1 -1
- package/dist/{Slicer-D6ACafGp.js → Slicer-BELCOFx-.js} +167 -160
- package/dist/{SlicerPreview-BEkr4ELo.js → SlicerPreview-BciDdnXB.js} +223 -216
- package/dist/{Title-CeMocAxM.js → Title-DPeHXmsJ.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useNestedProp-Bamwa7TH.js → useNestedProp-DjoyBYIz.js} +5 -2
- package/dist/{vue-data-ui-C_fGFzEp.js → vue-data-ui-CXMubDkQ.js} +67 -67
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-DP7IdUbR.js → vue-ui-3d-bar-DuIllDhC.js} +3 -3
- package/dist/{vue-ui-accordion-d_mYq_ty.js → vue-ui-accordion-DIafkLLh.js} +1 -1
- package/dist/{vue-ui-age-pyramid-NXkGU5ye.js → vue-ui-age-pyramid-F277LP_p.js} +3 -3
- package/dist/{vue-ui-annotator-K9tPH67i.js → vue-ui-annotator-CWklKU90.js} +2 -2
- package/dist/{vue-ui-bullet-BGuwKETO.js → vue-ui-bullet-DGiNmsY5.js} +3 -3
- package/dist/{vue-ui-bump-DEOPNx5y.js → vue-ui-bump-BVx3pyWE.js} +3 -3
- package/dist/{vue-ui-candlestick-BWq1wKcM.js → vue-ui-candlestick-q20Az_vC.js} +7 -6
- package/dist/{vue-ui-carousel-table-CZxffzDF.js → vue-ui-carousel-table-paln_xSL.js} +2 -2
- package/dist/{vue-ui-chestnut-50SNPqfM.js → vue-ui-chestnut-BUQVCplK.js} +2 -2
- package/dist/{vue-ui-chord-DlrZM-bY.js → vue-ui-chord-Ce3Ac3OA.js} +3 -3
- package/dist/{vue-ui-circle-pack-tbs6FbUJ.js → vue-ui-circle-pack-DjjvjEaN.js} +3 -3
- package/dist/{vue-ui-cursor-CeX4EQK5.js → vue-ui-cursor-xJGQfL6H.js} +2 -2
- package/dist/{vue-ui-dag-kSTQu200.js → vue-ui-dag-BcTqF3b0.js} +3 -3
- package/dist/{vue-ui-dashboard-CVIihTvt.js → vue-ui-dashboard-Dq3WouX5.js} +64 -64
- package/dist/{vue-ui-digits-C8-MaCF9.js → vue-ui-digits-oaX2Rgl6.js} +1 -1
- package/dist/{vue-ui-donut-CvgJGvr8.js → vue-ui-donut-BZ84Pw3F.js} +3 -3
- package/dist/{vue-ui-donut-evolution-8t3VpFBM.js → vue-ui-donut-evolution-BtuKKVDh.js} +28 -27
- package/dist/{vue-ui-dumbbell-DhsqhBMZ.js → vue-ui-dumbbell-C7sKuu8m.js} +3 -3
- package/dist/{vue-ui-flow-40_lIp68.js → vue-ui-flow-Bkx_4KR7.js} +3 -3
- package/dist/{vue-ui-funnel-B2ORn05E.js → vue-ui-funnel-C0Sqt3pg.js} +3 -3
- package/dist/{vue-ui-galaxy--TlNs2Sg.js → vue-ui-galaxy-C6ByAwPf.js} +3 -3
- package/dist/{vue-ui-gauge-DeY4BNFp.js → vue-ui-gauge-DjtuUa1j.js} +3 -3
- package/dist/{vue-ui-geo-aGn1sexm.js → vue-ui-geo-ClwaBRr4.js} +3 -3
- package/dist/{vue-ui-gizmo-CRFCxxhM.js → vue-ui-gizmo-DYwoPoKw.js} +2 -2
- package/dist/{vue-ui-heatmap-CL4ljUus.js → vue-ui-heatmap-B2cjprkn.js} +4 -4
- package/dist/{vue-ui-history-plot-DLxBpK70.js → vue-ui-history-plot-DovDgs7d.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-BZk6t1_d.js → vue-ui-horizontal-bar-DRMphY-v.js} +4 -4
- package/dist/{vue-ui-kpi-C_1ELuRv.js → vue-ui-kpi-2p_HJTZq.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZTxux3w.js → vue-ui-mini-loader-DirRi7mP.js} +1 -1
- package/dist/{vue-ui-molecule-BpcyfHpM.js → vue-ui-molecule-C7mCNWSS.js} +2 -2
- package/dist/{vue-ui-mood-radar-B6LV7jqY.js → vue-ui-mood-radar-DHKPV6u3.js} +3 -3
- package/dist/{vue-ui-nested-donuts-e_22lyMT.js → vue-ui-nested-donuts-Bqn7bXhu.js} +3 -3
- package/dist/{vue-ui-onion-BzOC2siQ.js → vue-ui-onion-HjD5re6K.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BVHkiOKh.js → vue-ui-parallel-coordinate-plot-C6c1w_tp.js} +3 -3
- package/dist/{vue-ui-quadrant-DGVkfAF_.js → vue-ui-quadrant-CS6dfVYx.js} +3 -3
- package/dist/{vue-ui-quick-chart-BsCVVyys.js → vue-ui-quick-chart-Bb0NyRBA.js} +66 -65
- package/dist/{vue-ui-radar-C6lj2GXI.js → vue-ui-radar-B6bvhvKt.js} +3 -3
- package/dist/{vue-ui-rating-CFH0jY6v.js → vue-ui-rating-CiFrD-_T.js} +1 -1
- package/dist/{vue-ui-relation-circle-D1sMLtFh.js → vue-ui-relation-circle-Cr_mR_Es.js} +3 -3
- package/dist/{vue-ui-ridgeline-Migykkg5.js → vue-ui-ridgeline-BUJV2OdA.js} +3 -3
- package/dist/{vue-ui-rings-C_BzwPOl.js → vue-ui-rings-T3n2Cf5q.js} +3 -3
- package/dist/{vue-ui-scatter-0N2N7p2u.js → vue-ui-scatter-4FqvwLM6.js} +3 -3
- package/dist/{vue-ui-skeleton-B2I-tk1Z.js → vue-ui-skeleton-CUTTNN7A.js} +2 -2
- package/dist/{vue-ui-smiley-CXzhTaY2.js → vue-ui-smiley-mnhG8ue5.js} +1 -1
- package/dist/{vue-ui-spark-trend-b7A0JJM8.js → vue-ui-spark-trend-C0HTcNoj.js} +2 -2
- package/dist/{vue-ui-sparkbar-Dvrm3-uj.js → vue-ui-sparkbar-uLJAjJXH.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DxgBvphO.js → vue-ui-sparkgauge-DDDXxyYQ.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ukOI-h6-.js → vue-ui-sparkhistogram-Cv8MPWe7.js} +2 -2
- package/dist/{vue-ui-sparkline-Drbps9xL.js → vue-ui-sparkline-D5ghw08L.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-JIdKUFx1.js → vue-ui-sparkstackbar-CPA_xyx9.js} +2 -2
- package/dist/{vue-ui-stackbar-CXvQ4Bm_.js → vue-ui-stackbar-C3FQP-xJ.js} +94 -93
- package/dist/{vue-ui-stackline-CWRoLOhP.js → vue-ui-stackline-BxyretmG.js} +7 -6
- package/dist/{vue-ui-strip-plot-BANUvymx.js → vue-ui-strip-plot-BZ9iOWqO.js} +3 -3
- package/dist/{vue-ui-table-kCir7kax.js → vue-ui-table-NIg7DLgl.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BMAWjTp_.js → vue-ui-table-heatmap-CGE28byI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-brPOHGmn.js → vue-ui-table-sparkline-dGPa0o9F.js} +2 -2
- package/dist/{vue-ui-thermometer-C6v-w70_.js → vue-ui-thermometer-CaaunlPx.js} +3 -3
- package/dist/{vue-ui-timer-DQ5yKVhX.js → vue-ui-timer-D2APjrbL.js} +3 -3
- package/dist/{vue-ui-tiremarks-DdE7O4Ur.js → vue-ui-tiremarks-BiFzeEgA.js} +3 -3
- package/dist/{vue-ui-treemap-VzO40faB.js → vue-ui-treemap-B_2upayj.js} +3 -3
- package/dist/{vue-ui-waffle-CnzdJgOz.js → vue-ui-waffle-BX6WCDgf.js} +3 -3
- package/dist/{vue-ui-wheel-Cq_Iy__D.js → vue-ui-wheel-DCPU0Kts.js} +3 -3
- package/dist/{vue-ui-word-cloud-BH3iu9jm.js → vue-ui-word-cloud-BNVXwbj3.js} +3 -3
- package/dist/{vue-ui-world-92UxudT5.js → vue-ui-world-BGdgyGOZ.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BH6gw0g-.js → vue-ui-xy-canvas-CQtgYpEg.js} +91 -90
- package/dist/{vue-ui-xy-CYKmyeYg.js → vue-ui-xy-un6b4oO0.js} +240 -239
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as Ot, computed as s, ref as h, onMounted as lt, onBeforeUnmount as $e, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, createElementVNode as P, createCommentVNode as m, renderSlot as Zt,
|
|
1
|
+
import { useCssVars as Ot, computed as s, ref as h, onMounted as lt, onBeforeUnmount as $e, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, normalizeStyle as R, createElementVNode as P, createCommentVNode as m, renderSlot as Zt, createVNode as Yt, withDirectives as at, unref as me, Fragment as M, renderList as $, normalizeProps as Jt, mergeProps as qt, normalizeClass as Y, vModelText as nt, toDisplayString as Le } from "vue";
|
|
2
2
|
import { c as Kt, X as Qt, x as Ee, z as it, A as ut, B as ot, C as rt, D as st } from "./lib-BrVUf7jz.js";
|
|
3
3
|
import { t as ct, d as jt, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import el from "./BaseIcon-CJ7mD4nD.js";
|
|
@@ -13,7 +13,7 @@ const ll = {
|
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "minimap",
|
|
15
15
|
style: { width: "100%" }
|
|
16
|
-
}, il = ["xmlns", "viewBox"], ul = ["id"], ol = ["stop-color"], rl = ["width", "height", "stroke"], sl = ["d", "stroke"], cl = ["x", "width", "y", "height", "fill"], vl = ["d", "stroke"], ml = ["cx", "cy", "fill", "stroke"], dl = ["x", "width", "height", "fill", "rx"], hl = ["x", "width", "height", "rx", "fill"], fl = ["x", "width", "height", "fill", "rx"], gl = ["x2", "y1", "y2", "stroke"], xl = ["d", "fill"], yl = ["d", "stroke"], Ml = { key: 6 }, bl = ["x", "width", "y", "height", "fill"],
|
|
16
|
+
}, il = ["xmlns", "viewBox"], ul = ["id"], ol = ["stop-color"], rl = ["width", "height", "stroke"], sl = ["d", "stroke"], cl = ["x", "width", "y", "height", "fill"], vl = ["d", "stroke"], ml = ["cx", "cy", "fill", "stroke"], dl = ["x", "width", "height", "fill", "rx"], hl = ["x", "width", "height", "rx", "fill"], fl = ["x", "width", "height", "fill", "rx"], gl = ["x2", "y1", "y2", "stroke"], xl = ["d", "fill"], yl = ["d", "stroke"], Ml = { key: 6 }, bl = ["x", "width", "y", "height", "fill"], kl = ["d", "stroke"], pl = ["x", "height", "fill", "stroke"], wl = ["x", "height", "fill", "stroke"], Sl = ["cx", "cy", "stroke", "fill"], Cl = ["cx", "cy", "fill"], Pl = ["cx", "cy", "stroke", "fill"], Nl = ["cx", "cy", "fill"], Rl = { key: 10 }, $l = ["cx", "cy", "fill", "stroke"], Ll = ["cx", "cy", "stroke", "fill"], El = ["cx", "cy", "fill"], Tl = ["cx", "cy", "stroke", "fill"], Al = ["cx", "cy", "fill"], Bl = ["height", "x", "width", "onMouseenter"], Vl = ["min", "max"], Fl = ["min", "max"], Te = 48, Dl = {
|
|
17
17
|
__name: "Slicer",
|
|
18
18
|
props: {
|
|
19
19
|
background: {
|
|
@@ -149,21 +149,25 @@ const ll = {
|
|
|
149
149
|
focusRangeRatio: {
|
|
150
150
|
type: Number,
|
|
151
151
|
default: 0.1
|
|
152
|
+
},
|
|
153
|
+
maxWidth: {
|
|
154
|
+
type: Number,
|
|
155
|
+
default: null
|
|
152
156
|
}
|
|
153
157
|
},
|
|
154
158
|
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
155
|
-
setup(
|
|
159
|
+
setup(a, { expose: vt, emit: mt }) {
|
|
156
160
|
Ot((e) => ({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
c294faa8: gt.value,
|
|
162
|
+
v36ab0b20: x.value,
|
|
163
|
+
v44de7ede: yt.value,
|
|
164
|
+
v16e04c50: a.selectColor,
|
|
165
|
+
v5d13e244: xt.value
|
|
162
166
|
}));
|
|
163
|
-
const
|
|
167
|
+
const n = a, p = h(null), w = h(n.min), S = h(n.max), b = s(() => !!n.allMinimaps.length), Ae = h(Kt()), L = s(() => b.value && n.minimapCompact), de = h(0);
|
|
164
168
|
lt(() => {
|
|
165
169
|
const e = () => {
|
|
166
|
-
|
|
170
|
+
p.value && (de.value = p.value.getBoundingClientRect().width);
|
|
167
171
|
};
|
|
168
172
|
e();
|
|
169
173
|
const l = ct(e, 50);
|
|
@@ -171,34 +175,34 @@ const ll = {
|
|
|
171
175
|
window.removeEventListener("resize", l);
|
|
172
176
|
});
|
|
173
177
|
});
|
|
174
|
-
const dt = s(() =>
|
|
178
|
+
const dt = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), J = mt, q = s(() => {
|
|
175
179
|
if (L.value) {
|
|
176
180
|
const l = Math.max(1, ue.value - 1);
|
|
177
181
|
return ye.value / l * 100;
|
|
178
182
|
}
|
|
179
|
-
const e = Math.max(1,
|
|
180
|
-
return (w.value -
|
|
183
|
+
const e = Math.max(1, n.max - n.min);
|
|
184
|
+
return (w.value - n.min) / e * 100;
|
|
181
185
|
}), re = s(() => {
|
|
182
186
|
if (L.value) {
|
|
183
187
|
const l = Math.max(1, ue.value - 1);
|
|
184
188
|
return Me.value / l * 100;
|
|
185
189
|
}
|
|
186
|
-
const e = Math.max(1,
|
|
187
|
-
return (S.value -
|
|
190
|
+
const e = Math.max(1, n.max - n.min);
|
|
191
|
+
return (S.value - n.min) / e * 100;
|
|
188
192
|
}), he = s(() => (q.value + re.value) / 2), fe = s(() => {
|
|
189
|
-
if (!
|
|
190
|
-
const e =
|
|
193
|
+
if (!p.value) return !1;
|
|
194
|
+
const e = p.value.getBoundingClientRect().width;
|
|
191
195
|
return q.value / 100 * e - Ne.value / 2 < 0;
|
|
192
196
|
}), ge = s(() => {
|
|
193
|
-
if (!
|
|
194
|
-
const e =
|
|
197
|
+
if (!p.value) return !1;
|
|
198
|
+
const e = p.value.getBoundingClientRect().width;
|
|
195
199
|
return re.value / 100 * e + ce.value / 2 > e;
|
|
196
200
|
}), N = s(() => {
|
|
197
201
|
const e = ge.value ? `calc(${he.value}% - ${ie.value.width}px - 2px)` : fe.value ? `calc(${he.value}% - 8px)` : `calc(${he.value}% - ${ie.value.width / 2}px - 4px)`;
|
|
198
202
|
return {
|
|
199
203
|
left: `${q.value}%`,
|
|
200
204
|
width: `${Math.max(0, re.value - q.value)}%`,
|
|
201
|
-
background:
|
|
205
|
+
background: n.selectColor,
|
|
202
206
|
tooltipLeft: `calc(${q.value}% - ${fe.value ? 9 : Ne.value / 2 + 3.5}px)`,
|
|
203
207
|
tooltipRight: `calc(${re.value}% - ${ge.value ? ce.value - 9 : ce.value / 2 - 3.5}px)`,
|
|
204
208
|
tooltipCenter: e,
|
|
@@ -212,7 +216,7 @@ const ll = {
|
|
|
212
216
|
function Be(e) {
|
|
213
217
|
return K.value === 0 ? 0 : Math.round(e / K.value * xe.value);
|
|
214
218
|
}
|
|
215
|
-
const ht = (e) => Math.floor(
|
|
219
|
+
const ht = (e) => Math.floor(n.min + e), ft = (e) => Math.ceil(n.min + e), ye = s({
|
|
216
220
|
get() {
|
|
217
221
|
return L.value ? se(D.value) : Number(w.value);
|
|
218
222
|
},
|
|
@@ -222,7 +226,7 @@ const ll = {
|
|
|
222
226
|
_(ht(r));
|
|
223
227
|
} else {
|
|
224
228
|
let l = Math.round(+e || 0);
|
|
225
|
-
const t = Number(S.value) - 1, o = Math.min(Math.max(
|
|
229
|
+
const t = Number(S.value) - 1, o = Math.min(Math.max(n.min, l), t);
|
|
226
230
|
_(o);
|
|
227
231
|
}
|
|
228
232
|
}
|
|
@@ -236,13 +240,13 @@ const ll = {
|
|
|
236
240
|
ee(ft(r + 1));
|
|
237
241
|
} else {
|
|
238
242
|
let l = Math.round(+e || 0);
|
|
239
|
-
const t = Number(w.value) + 1, o = Math.max(t, Math.min(l,
|
|
243
|
+
const t = Number(w.value) + 1, o = Math.max(t, Math.min(l, n.max));
|
|
240
244
|
ee(o);
|
|
241
245
|
}
|
|
242
246
|
}
|
|
243
|
-
}), gt = s(() =>
|
|
247
|
+
}), gt = s(() => n.inputColor), xt = s(() => n.background), yt = s(() => `${n.selectColor}33`), x = s(() => n.borderColor), Ve = s(() => {
|
|
244
248
|
const e = [];
|
|
245
|
-
for (let l = 0; l <
|
|
249
|
+
for (let l = 0; l < n.max; l += 1)
|
|
246
250
|
e.push(l);
|
|
247
251
|
return e;
|
|
248
252
|
});
|
|
@@ -250,12 +254,12 @@ const ll = {
|
|
|
250
254
|
J("reset");
|
|
251
255
|
}
|
|
252
256
|
Z(
|
|
253
|
-
() =>
|
|
257
|
+
() => n.min,
|
|
254
258
|
(e) => {
|
|
255
259
|
Number(w.value) < Number(e) && (w.value = Number(e)), Number(S.value) < Number(e) && (S.value = Number(e));
|
|
256
260
|
}
|
|
257
261
|
), Z(
|
|
258
|
-
() =>
|
|
262
|
+
() => n.max,
|
|
259
263
|
(e) => {
|
|
260
264
|
Number(w.value) > Number(e) && (w.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
|
|
261
265
|
}
|
|
@@ -277,32 +281,32 @@ const ll = {
|
|
|
277
281
|
}), $e(() => {
|
|
278
282
|
O.value && O.value.disconnect();
|
|
279
283
|
});
|
|
280
|
-
const Q = s(() => Math.max(...
|
|
284
|
+
const Q = s(() => Math.max(...n.allMinimaps.map((e) => e.series.length), n.minimap.length || 0)), k = s(() => {
|
|
281
285
|
if (!Q.value) return 0;
|
|
282
|
-
const e = Math.max(1, Q.value - (
|
|
286
|
+
const e = Math.max(1, Q.value - (n.minimapCompact ? 1 : 0));
|
|
283
287
|
return g.value.width / e;
|
|
284
288
|
}), De = s(() => {
|
|
285
289
|
const e = [];
|
|
286
|
-
if (Array.isArray(
|
|
287
|
-
for (const l of
|
|
290
|
+
if (Array.isArray(n.minimap) && n.minimap.length && n.minimapMerged && e.push(...n.minimap.filter(Number.isFinite)), Array.isArray(n.allMinimaps) && n.allMinimaps.length)
|
|
291
|
+
for (const l of n.allMinimaps)
|
|
288
292
|
l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
|
|
289
293
|
return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
|
|
290
|
-
}), z = s(() => De.value.min), U = s(() => De.value.max), Mt = s(() => z.value < 0 && U.value > 0 || U.value <= 0 ? z.value : 0), bt = s(() => Math.max(1e-9, Math.max(Math.abs(z.value), Math.abs(U.value)))),
|
|
294
|
+
}), z = s(() => De.value.min), U = s(() => De.value.max), Mt = s(() => z.value < 0 && U.value > 0 || U.value <= 0 ? z.value : 0), bt = s(() => Math.max(1e-9, Math.max(Math.abs(z.value), Math.abs(U.value)))), kt = s(() => z.value < 0 && U.value > 0), pt = (e) => {
|
|
291
295
|
const l = Math.max(1, g.value.height);
|
|
292
|
-
if (
|
|
296
|
+
if (kt.value) {
|
|
293
297
|
const t = bt.value;
|
|
294
298
|
return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
|
|
295
299
|
} else {
|
|
296
300
|
const t = Math.min(0, z.value), o = Math.max(0, U.value);
|
|
297
301
|
return l - (e - t) / Math.max(1e-9, o - t) * l;
|
|
298
302
|
}
|
|
299
|
-
}, Ie = s(() =>
|
|
303
|
+
}, Ie = s(() => pt(0)), ze = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), ke = s(() => k.value / (ze.value || 1) * 0.8);
|
|
300
304
|
function We(e, l, t) {
|
|
301
|
-
const o =
|
|
305
|
+
const o = ke.value, r = Math.max(1, ze.value), d = Q.value - 1;
|
|
302
306
|
return t === 0 ? e + o / 2 * l : t === d ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
|
|
303
307
|
}
|
|
304
308
|
function Xe(e, l) {
|
|
305
|
-
return [0, Q.value - 1].includes(l) ?
|
|
309
|
+
return [0, Q.value - 1].includes(l) ? ke.value / 2 : ke.value;
|
|
306
310
|
}
|
|
307
311
|
function wt(e, l, t) {
|
|
308
312
|
const o = (y, v, I) => Math.max(v, Math.min(I, y));
|
|
@@ -332,7 +336,7 @@ const ll = {
|
|
|
332
336
|
selectionMarkers: []
|
|
333
337
|
};
|
|
334
338
|
const t = Math.max(1, g.value.height), o = wt(z.value, U.value, t), r = e.length, d = Math.min(Math.max(0, D.value), Math.max(0, r - 1)), y = Math.min(r, Math.max(d + 1, X.value)), v = e.map((f, et) => {
|
|
335
|
-
const oe = f, tt = Number.isFinite(oe), Ht =
|
|
339
|
+
const oe = f, tt = Number.isFinite(oe), Ht = k.value * et + (n.minimapCompact ? 0 : k.value / 2), Gt = o(0);
|
|
336
340
|
return {
|
|
337
341
|
x: Ht,
|
|
338
342
|
y: tt ? o(oe) : NaN,
|
|
@@ -341,7 +345,7 @@ const ll = {
|
|
|
341
345
|
y0: Gt,
|
|
342
346
|
i: et
|
|
343
347
|
};
|
|
344
|
-
}), I = (f) => f >= 0 && f < v.length && Number.isFinite(v[f]?.value), H = v.filter((f) => Number.isFinite(f.value) && !I(f.i - 1) && !I(f.i + 1)), Re = H.filter((f) => f.i >= d && f.i < y), G = v.slice(d, y), Wt = v.length >= 2 ?
|
|
348
|
+
}), I = (f) => f >= 0 && f < v.length && Number.isFinite(v[f]?.value), H = v.filter((f) => Number.isFinite(f.value) && !I(f.i - 1) && !I(f.i + 1)), Re = H.filter((f) => f.i >= d && f.i < y), G = v.slice(d, y), Wt = v.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? it(v) : ut(v.filter((f) => f.value != null)) : n.cutNullValues ? ot(v) : rt(v.filter((f) => f.value != null)) : "", Xt = G.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? it(G) : ut(G.filter((f) => f.value != null)) : n.cutNullValues ? ot(G) : rt(G.filter((f) => f.value != null)) : "";
|
|
345
349
|
return {
|
|
346
350
|
fullSet: Wt,
|
|
347
351
|
points: v,
|
|
@@ -355,7 +359,7 @@ const ll = {
|
|
|
355
359
|
selectionMarkers: Re
|
|
356
360
|
};
|
|
357
361
|
}
|
|
358
|
-
const c = s(() =>
|
|
362
|
+
const c = s(() => n.minimap.length ? He(n.minimap) : {
|
|
359
363
|
fullSet: "",
|
|
360
364
|
selectionSet: "",
|
|
361
365
|
sliced: [],
|
|
@@ -363,7 +367,7 @@ const ll = {
|
|
|
363
367
|
lastPlot: null,
|
|
364
368
|
hasFull: !1,
|
|
365
369
|
hasSelection: !1
|
|
366
|
-
}), j = s(() =>
|
|
370
|
+
}), j = s(() => n.allMinimaps.length ? n.allMinimaps.map((e, l) => {
|
|
367
371
|
const t = He(e?.series || [], !!e.smooth), o = e?.id ?? e?.name ?? l;
|
|
368
372
|
return {
|
|
369
373
|
key: typeof o == "object" ? JSON.stringify(o) : String(o),
|
|
@@ -375,15 +379,15 @@ const ll = {
|
|
|
375
379
|
}) : []), C = s(() => {
|
|
376
380
|
const e = D.value, l = Math.max(e + 1, X.value);
|
|
377
381
|
return {
|
|
378
|
-
x:
|
|
379
|
-
width:
|
|
382
|
+
x: k.value * e + (n.minimapCompact ? 0 : k.value / 2),
|
|
383
|
+
width: k.value * (l - e) - k.value
|
|
380
384
|
};
|
|
381
|
-
}), E = h(
|
|
385
|
+
}), E = h(n.minimapSelectedIndex);
|
|
382
386
|
function St(e) {
|
|
383
|
-
E.value = _e(
|
|
387
|
+
E.value = _e(n.valueStart) + e;
|
|
384
388
|
}
|
|
385
389
|
const Ct = jt(St, 60);
|
|
386
|
-
Z(() =>
|
|
390
|
+
Z(() => n.minimapSelectedIndex, (e, l) => {
|
|
387
391
|
if ([null, void 0].includes(e)) {
|
|
388
392
|
E.value = null;
|
|
389
393
|
return;
|
|
@@ -395,38 +399,38 @@ const ll = {
|
|
|
395
399
|
const l = D.value, t = X.value;
|
|
396
400
|
e >= l && e < t && !F.value && J("trapMouse", e - l);
|
|
397
401
|
}
|
|
398
|
-
const
|
|
402
|
+
const pe = h(null), we = h(null);
|
|
399
403
|
function _(e) {
|
|
400
|
-
w.value = e,
|
|
404
|
+
w.value = e, pe.value && (pe.value.value = e), J("update:start", Number(w.value));
|
|
401
405
|
}
|
|
402
406
|
function ee(e) {
|
|
403
407
|
S.value = e, we.value && (we.value.value = e), J("update:end", Number(S.value));
|
|
404
408
|
}
|
|
405
|
-
const Se = s(() =>
|
|
409
|
+
const Se = s(() => n.valueEnd - n.valueStart), Nt = s(() => Se.value < n.max - n.min), te = h(!1);
|
|
406
410
|
let Rt = h(null);
|
|
407
|
-
const $t = s(() => (de.value - 48) / (
|
|
411
|
+
const $t = s(() => (de.value - 48) / (n.max - n.min) * Se.value), Lt = s(() => Math.max(1, de.value - Te - $t.value)), Et = s(() => Math.max(1, n.max - n.min - Se.value)), Tt = s(() => Et.value / Lt.value), Ge = h(0), Ce = h(0), Oe = h(0), At = h(0);
|
|
408
412
|
let T = null, A = null, B = null, V = null;
|
|
409
|
-
const Ue = h(
|
|
413
|
+
const Ue = h(n.min);
|
|
410
414
|
function Pe(e) {
|
|
411
|
-
if (!
|
|
412
|
-
const l =
|
|
413
|
-
return Math.round(
|
|
415
|
+
if (!p.value) return n.min;
|
|
416
|
+
const l = p.value.getBoundingClientRect(), t = l.left + Te / 2, o = l.right - Te / 2, r = Math.max(1, o - t), y = (Math.max(t, Math.min(e, o)) - t) / r, v = Math.max(1, n.max - n.min);
|
|
417
|
+
return Math.round(n.min + y * v);
|
|
414
418
|
}
|
|
415
419
|
const Ze = async (e) => {
|
|
416
|
-
if (W.value = !0, !
|
|
420
|
+
if (W.value = !0, !n.enableSelectionDrag) return;
|
|
417
421
|
const l = e.type === "touchstart";
|
|
418
422
|
l || e.stopPropagation();
|
|
419
423
|
const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, o = l ? t ? t.target : null : e.target;
|
|
420
424
|
if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
|
|
421
425
|
te.value = !0;
|
|
422
426
|
const r = l ? t ? t.clientX : 0 : e.clientX;
|
|
423
|
-
if (Rt.value = r, Ge.value = r,
|
|
427
|
+
if (Rt.value = r, Ge.value = r, n.focusOnDrag && !Nt.value && p.value) {
|
|
424
428
|
Ue.value = Pe(r);
|
|
425
|
-
const d = Math.min(0.95, Math.max(0.05,
|
|
429
|
+
const d = Math.min(0.95, Math.max(0.05, n.focusRangeRatio)), y = n.max - n.min, v = Math.max(1, Math.round(y * d)), I = Math.floor(v / 2);
|
|
426
430
|
let H = Ue.value - I;
|
|
427
|
-
H = Math.max(
|
|
428
|
-
const Re = Math.min(
|
|
429
|
-
_(H), ee(Re), st(
|
|
431
|
+
H = Math.max(n.min, Math.min(H, n.max - v));
|
|
432
|
+
const Re = Math.min(n.max, H + v);
|
|
433
|
+
_(H), ee(Re), st(p.value, "mouseup"), await ve(), st(p.value, "mousedown", { clientX: r });
|
|
430
434
|
}
|
|
431
435
|
Ce.value = Number(w.value), Oe.value = Number(S.value), At.value = Tt.value, T = l ? "touchmove" : "mousemove", A = l ? "touchend" : "mouseup", B = l ? Vt : Bt, V = l ? Dt : Ft, window.addEventListener(T, B, { passive: !1 }), window.addEventListener(A, V);
|
|
432
436
|
};
|
|
@@ -434,9 +438,9 @@ const ll = {
|
|
|
434
438
|
te.value && Ye(e.clientX);
|
|
435
439
|
}
|
|
436
440
|
function Vt(e) {
|
|
437
|
-
if (!te.value || !
|
|
441
|
+
if (!te.value || !p.value) return;
|
|
438
442
|
const l = e.target;
|
|
439
|
-
if (!(l instanceof Element) || !
|
|
443
|
+
if (!(l instanceof Element) || !p.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
440
444
|
e.preventDefault();
|
|
441
445
|
const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
442
446
|
t && Ye(t.clientX);
|
|
@@ -445,7 +449,7 @@ const ll = {
|
|
|
445
449
|
if (!te.value) return;
|
|
446
450
|
const l = Pe(Ge.value), o = Pe(e) - l, r = Math.max(1, Oe.value - Ce.value);
|
|
447
451
|
let d = Math.round(Ce.value + o);
|
|
448
|
-
const y =
|
|
452
|
+
const y = n.min, v = n.max - r;
|
|
449
453
|
d < y && (d = y), d > v && (d = v);
|
|
450
454
|
const I = d + r;
|
|
451
455
|
_(d), ee(I);
|
|
@@ -489,13 +493,13 @@ const ll = {
|
|
|
489
493
|
}), Ut(() => {
|
|
490
494
|
qe(), Ke();
|
|
491
495
|
}), Z(
|
|
492
|
-
() =>
|
|
496
|
+
() => n.labelLeft,
|
|
493
497
|
() => {
|
|
494
498
|
ve(qe);
|
|
495
499
|
},
|
|
496
500
|
{ deep: !0 }
|
|
497
501
|
), Z(
|
|
498
|
-
() =>
|
|
502
|
+
() => n.labelRight,
|
|
499
503
|
() => {
|
|
500
504
|
ve(Ke);
|
|
501
505
|
},
|
|
@@ -506,13 +510,13 @@ const ll = {
|
|
|
506
510
|
}), $e(() => {
|
|
507
511
|
O.value && O.value.disconnect(), T && B && window.removeEventListener(T, B), A && V && window.removeEventListener(A, V), T = A = null, B = V = null;
|
|
508
512
|
});
|
|
509
|
-
const ue = s(() => Math.max(1,
|
|
513
|
+
const ue = s(() => Math.max(1, n.max - n.min));
|
|
510
514
|
function _e(e) {
|
|
511
|
-
const l = Math.floor(e -
|
|
515
|
+
const l = Math.floor(e - n.min);
|
|
512
516
|
return Math.min(Math.max(0, l), ue.value);
|
|
513
517
|
}
|
|
514
518
|
function It(e) {
|
|
515
|
-
const l = Math.ceil(e -
|
|
519
|
+
const l = Math.ceil(e - n.min);
|
|
516
520
|
return Math.min(Math.max(0, l), ue.value);
|
|
517
521
|
}
|
|
518
522
|
const D = s(() => _e(w.value)), X = s(() => It(S.value)), zt = s(() => {
|
|
@@ -520,11 +524,11 @@ const ll = {
|
|
|
520
524
|
if (E.value >= D.value && E.value < X.value) {
|
|
521
525
|
const e = E.value;
|
|
522
526
|
return {
|
|
523
|
-
x1:
|
|
524
|
-
x2:
|
|
527
|
+
x1: k.value * e + (n.minimapCompact ? 0 : k.value / 2),
|
|
528
|
+
x2: k.value * e + (n.minimapCompact ? 0 : k.value / 2),
|
|
525
529
|
y1: 0,
|
|
526
530
|
y2: Math.max(g.value.height, 0),
|
|
527
|
-
stroke:
|
|
531
|
+
stroke: n.minimapIndicatorColor,
|
|
528
532
|
"stroke-linecap": "round",
|
|
529
533
|
"stroke-dasharray": 2,
|
|
530
534
|
"stroke-width": 1
|
|
@@ -534,17 +538,20 @@ const ll = {
|
|
|
534
538
|
});
|
|
535
539
|
return (e, l) => (u(), i("div", {
|
|
536
540
|
"data-dom-to-png-ignore": "",
|
|
537
|
-
style: { padding: "0 24px" },
|
|
541
|
+
style: R([{ padding: "0 24px" }, {
|
|
542
|
+
maxWidth: a.maxWidth ? a.maxWidth + "px" : void 0,
|
|
543
|
+
margin: a.maxWidth ? "0 auto" : void 0
|
|
544
|
+
}]),
|
|
538
545
|
class: "vue-data-ui-zoom",
|
|
539
546
|
ref_key: "zoomWrapper",
|
|
540
|
-
ref:
|
|
547
|
+
ref: p,
|
|
541
548
|
onMousedown: Ze,
|
|
542
549
|
onTouchstart: Ze,
|
|
543
550
|
onTouchend: l[11] || (l[11] = (t) => W.value = !1)
|
|
544
551
|
}, [
|
|
545
552
|
P("div", ll, [
|
|
546
|
-
|
|
547
|
-
|
|
553
|
+
a.valueStart !== a.refreshStartPoint || a.valueEnd !== dt.value ? (u(), i("div", al, [
|
|
554
|
+
a.useResetSlot ? Zt(e.$slots, "reset-action", {
|
|
548
555
|
key: 1,
|
|
549
556
|
reset: Fe
|
|
550
557
|
}, void 0, !0) : (u(), i("button", {
|
|
@@ -552,7 +559,7 @@ const ll = {
|
|
|
552
559
|
tabindex: "0",
|
|
553
560
|
role: "button",
|
|
554
561
|
class: "vue-data-ui-refresh-button",
|
|
555
|
-
style:
|
|
562
|
+
style: R({
|
|
556
563
|
top: b.value ? "36px" : "-16px",
|
|
557
564
|
pointerEvents: "all !important"
|
|
558
565
|
}),
|
|
@@ -560,7 +567,7 @@ const ll = {
|
|
|
560
567
|
}, [
|
|
561
568
|
Yt(el, {
|
|
562
569
|
name: "refresh",
|
|
563
|
-
stroke:
|
|
570
|
+
stroke: a.textColor
|
|
564
571
|
}, null, 8, ["stroke"])
|
|
565
572
|
], 4))
|
|
566
573
|
])) : m("", !0)
|
|
@@ -575,7 +582,7 @@ const ll = {
|
|
|
575
582
|
}, [
|
|
576
583
|
b.value ? (u(), i("div", nl, [
|
|
577
584
|
(u(), i("svg", {
|
|
578
|
-
key: `mm-${
|
|
585
|
+
key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
|
|
579
586
|
xmlns: me(Qt),
|
|
580
587
|
viewBox: `0 0 ${Math.max(0, g.value.width)} ${Math.max(0, g.value.height)}`
|
|
581
588
|
}, [
|
|
@@ -589,7 +596,7 @@ const ll = {
|
|
|
589
596
|
}, [
|
|
590
597
|
P("stop", {
|
|
591
598
|
offset: "0%",
|
|
592
|
-
"stop-color": `${
|
|
599
|
+
"stop-color": `${a.minimapLineColor}50`
|
|
593
600
|
}, null, 8, ol),
|
|
594
601
|
l[12] || (l[12] = P("stop", {
|
|
595
602
|
offset: "100%",
|
|
@@ -597,7 +604,7 @@ const ll = {
|
|
|
597
604
|
}, null, -1))
|
|
598
605
|
], 8, ul)
|
|
599
606
|
]),
|
|
600
|
-
|
|
607
|
+
a.minimapCompact ? (u(), i("rect", {
|
|
601
608
|
key: 0,
|
|
602
609
|
class: "vue-ui-zoom-minimap-frame",
|
|
603
610
|
x: 0,
|
|
@@ -605,21 +612,21 @@ const ll = {
|
|
|
605
612
|
width: g.value.width,
|
|
606
613
|
height: g.value.height,
|
|
607
614
|
fill: "none",
|
|
608
|
-
stroke:
|
|
615
|
+
stroke: a.minimapFrameColor,
|
|
609
616
|
rx: 3
|
|
610
617
|
}, null, 8, rl)) : m("", !0),
|
|
611
|
-
|
|
618
|
+
a.minimapMerged ? (u(), i("path", {
|
|
612
619
|
key: 1,
|
|
613
620
|
d: `M${c.value.fullSet}`,
|
|
614
|
-
stroke: `${
|
|
621
|
+
stroke: `${a.minimapLineColor}`,
|
|
615
622
|
fill: "none",
|
|
616
623
|
"stroke-width": "1",
|
|
617
624
|
"stroke-linecap": "round",
|
|
618
625
|
"stroke-linejoin": "round",
|
|
619
626
|
style: { opacity: "0.6" }
|
|
620
627
|
}, null, 8, sl)) : (u(), i(M, { key: 2 }, [
|
|
621
|
-
(u(!0), i(M, null,
|
|
622
|
-
(u(!0), i(M, null,
|
|
628
|
+
(u(!0), i(M, null, $(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
629
|
+
(u(!0), i(M, null, $(t.points, (r, d) => (u(), i(M, null, [
|
|
623
630
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
624
631
|
key: 0,
|
|
625
632
|
x: We(r.x, o, d),
|
|
@@ -631,7 +638,7 @@ const ll = {
|
|
|
631
638
|
}, null, 8, cl)) : m("", !0)
|
|
632
639
|
], 64))), 256))
|
|
633
640
|
]))), 256)),
|
|
634
|
-
(u(!0), i(M, null,
|
|
641
|
+
(u(!0), i(M, null, $(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
635
642
|
key: String(t.key)
|
|
636
643
|
}, [
|
|
637
644
|
t.isVisible ? (u(), i("path", {
|
|
@@ -641,7 +648,7 @@ const ll = {
|
|
|
641
648
|
stroke: t.color,
|
|
642
649
|
style: { opacity: "0.6" }
|
|
643
650
|
}, null, 8, vl)) : m("", !0),
|
|
644
|
-
t.isVisible ? (u(!0), i(M, { key: 1 },
|
|
651
|
+
t.isVisible ? (u(!0), i(M, { key: 1 }, $(t.fullMarkers, (o) => (u(), i("circle", {
|
|
645
652
|
key: `sel-dot-under-${t.key}-${o.i}`,
|
|
646
653
|
cx: o.x,
|
|
647
654
|
cy: o.y,
|
|
@@ -659,7 +666,7 @@ const ll = {
|
|
|
659
666
|
height: Math.max(g.value.height, 0),
|
|
660
667
|
y: 0,
|
|
661
668
|
fill: x.value,
|
|
662
|
-
rx:
|
|
669
|
+
rx: a.minimapSelectionRadius,
|
|
663
670
|
stroke: "none"
|
|
664
671
|
}, null, 8, dl),
|
|
665
672
|
P("rect", {
|
|
@@ -667,7 +674,7 @@ const ll = {
|
|
|
667
674
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
668
675
|
height: Math.max(g.value.height, 0),
|
|
669
676
|
y: 0,
|
|
670
|
-
rx:
|
|
677
|
+
rx: a.minimapSelectionRadius,
|
|
671
678
|
fill: x.value
|
|
672
679
|
}, null, 8, hl),
|
|
673
680
|
P("rect", {
|
|
@@ -675,24 +682,24 @@ const ll = {
|
|
|
675
682
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
676
683
|
height: Math.max(g.value.height, 0),
|
|
677
684
|
y: 0,
|
|
678
|
-
fill:
|
|
679
|
-
rx:
|
|
680
|
-
style:
|
|
681
|
-
opacity:
|
|
685
|
+
fill: a.minimapSelectedColor,
|
|
686
|
+
rx: a.minimapSelectionRadius,
|
|
687
|
+
style: R({
|
|
688
|
+
opacity: a.minimapSelectedColorOpacity
|
|
682
689
|
})
|
|
683
690
|
}, null, 12, fl),
|
|
684
691
|
E.value !== null && !F.value ? (u(), i("line", Jt(qt({ key: 3 }, zt.value)), null, 16)) : m("", !0),
|
|
685
|
-
!
|
|
692
|
+
!a.minimapMerged && Mt.value < 0 ? (u(), i("line", {
|
|
686
693
|
key: 4,
|
|
687
694
|
class: "slicer-minimap-zero-line",
|
|
688
695
|
x1: 0,
|
|
689
696
|
x2: g.value.width,
|
|
690
697
|
y1: Ie.value,
|
|
691
698
|
y2: Ie.value,
|
|
692
|
-
stroke:
|
|
699
|
+
stroke: a.minimapFrameColor,
|
|
693
700
|
"stroke-width": "0.5"
|
|
694
701
|
}, null, 8, gl)) : m("", !0),
|
|
695
|
-
|
|
702
|
+
a.minimapMerged ? (u(), i(M, { key: 5 }, [
|
|
696
703
|
c.value && c.value.sliced && c.value.sliced.length ? (u(), i(M, { key: 0 }, [
|
|
697
704
|
c.value.selectionSet ? (u(), i("path", {
|
|
698
705
|
key: 0,
|
|
@@ -704,7 +711,7 @@ const ll = {
|
|
|
704
711
|
c.value.selectionSet ? (u(), i("path", {
|
|
705
712
|
key: 1,
|
|
706
713
|
d: `M ${c.value.selectionSet}`,
|
|
707
|
-
stroke: `${
|
|
714
|
+
stroke: `${a.minimapLineColor}`,
|
|
708
715
|
fill: "transparent",
|
|
709
716
|
"stroke-width": "2",
|
|
710
717
|
"stroke-linecap": "round",
|
|
@@ -712,8 +719,8 @@ const ll = {
|
|
|
712
719
|
}, null, 8, yl)) : m("", !0)
|
|
713
720
|
], 64)) : m("", !0)
|
|
714
721
|
], 64)) : (u(), i("g", Ml, [
|
|
715
|
-
(u(!0), i(M, null,
|
|
716
|
-
(u(!0), i(M, null,
|
|
722
|
+
(u(!0), i(M, null, $(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
723
|
+
(u(!0), i(M, null, $(t.points, (r, d) => (u(), i(M, null, [
|
|
717
724
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
718
725
|
key: 0,
|
|
719
726
|
x: We(r.x, o, d),
|
|
@@ -721,13 +728,13 @@ const ll = {
|
|
|
721
728
|
y: r.v >= 0 ? r.y : r.y0,
|
|
722
729
|
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
723
730
|
fill: t.color,
|
|
724
|
-
style:
|
|
725
|
-
opacity: d >=
|
|
731
|
+
style: R({
|
|
732
|
+
opacity: d >= a.valueStart && d <= a.valueEnd - 1 ? 1 : 0
|
|
726
733
|
})
|
|
727
734
|
}, null, 12, bl)) : m("", !0)
|
|
728
735
|
], 64))), 256))
|
|
729
736
|
]))), 256)),
|
|
730
|
-
(u(!0), i(M, null,
|
|
737
|
+
(u(!0), i(M, null, $(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
731
738
|
key: String(t.key)
|
|
732
739
|
}, [
|
|
733
740
|
t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
|
|
@@ -738,10 +745,10 @@ const ll = {
|
|
|
738
745
|
"stroke-width": "2",
|
|
739
746
|
"stroke-linecap": "round",
|
|
740
747
|
"stroke-linejoin": "round"
|
|
741
|
-
}, null, 8,
|
|
748
|
+
}, null, 8, kl)) : m("", !0)
|
|
742
749
|
]))), 128))
|
|
743
750
|
])),
|
|
744
|
-
b.value &&
|
|
751
|
+
b.value && a.minimapCompact ? (u(), i("rect", {
|
|
745
752
|
key: 7,
|
|
746
753
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
747
754
|
x: C.value.x - 8,
|
|
@@ -749,10 +756,10 @@ const ll = {
|
|
|
749
756
|
width: 8,
|
|
750
757
|
height: g.value.height,
|
|
751
758
|
fill: x.value,
|
|
752
|
-
stroke:
|
|
759
|
+
stroke: a.textColor,
|
|
753
760
|
rx: 3
|
|
754
|
-
}, null, 8,
|
|
755
|
-
b.value &&
|
|
761
|
+
}, null, 8, pl)) : m("", !0),
|
|
762
|
+
b.value && a.minimapCompact ? (u(), i("rect", {
|
|
756
763
|
key: 8,
|
|
757
764
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
758
765
|
x: C.value.x + C.value.width,
|
|
@@ -760,10 +767,10 @@ const ll = {
|
|
|
760
767
|
width: 8,
|
|
761
768
|
height: g.value.height,
|
|
762
769
|
fill: x.value,
|
|
763
|
-
stroke:
|
|
770
|
+
stroke: a.textColor,
|
|
764
771
|
rx: 3
|
|
765
772
|
}, null, 8, wl)) : m("", !0),
|
|
766
|
-
|
|
773
|
+
a.minimapMerged ? (u(), i(M, { key: 9 }, [
|
|
767
774
|
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
768
775
|
key: 0,
|
|
769
776
|
cx: c.value.firstPlot.x,
|
|
@@ -771,7 +778,7 @@ const ll = {
|
|
|
771
778
|
"stroke-width": "0.5",
|
|
772
779
|
stroke: x.value,
|
|
773
780
|
r: "4",
|
|
774
|
-
fill:
|
|
781
|
+
fill: a.minimapLineColor
|
|
775
782
|
}, null, 8, Sl)) : m("", !0),
|
|
776
783
|
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
777
784
|
key: 1,
|
|
@@ -787,7 +794,7 @@ const ll = {
|
|
|
787
794
|
"stroke-width": "0.5",
|
|
788
795
|
stroke: x.value,
|
|
789
796
|
r: "4",
|
|
790
|
-
fill:
|
|
797
|
+
fill: a.minimapLineColor
|
|
791
798
|
}, null, 8, Pl)) : m("", !0),
|
|
792
799
|
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
793
800
|
key: 3,
|
|
@@ -797,10 +804,10 @@ const ll = {
|
|
|
797
804
|
fill: x.value
|
|
798
805
|
}, null, 8, Nl)) : m("", !0)
|
|
799
806
|
], 64)) : (u(), i("g", Rl, [
|
|
800
|
-
(u(!0), i(M, null,
|
|
807
|
+
(u(!0), i(M, null, $(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
801
808
|
key: String(t.key)
|
|
802
809
|
}, [
|
|
803
|
-
t.isVisible ? (u(!0), i(M, { key: 0 },
|
|
810
|
+
t.isVisible ? (u(!0), i(M, { key: 0 }, $(t.selectionMarkers, (o) => (u(), i("circle", {
|
|
804
811
|
key: `sel-dot-${t.key}-${o.i}`,
|
|
805
812
|
cx: o.x,
|
|
806
813
|
cy: o.y,
|
|
@@ -843,16 +850,16 @@ const ll = {
|
|
|
843
850
|
}, null, 8, Al)) : m("", !0)
|
|
844
851
|
]))), 128))
|
|
845
852
|
])),
|
|
846
|
-
(u(!0), i(M, null,
|
|
853
|
+
(u(!0), i(M, null, $(Ve.value, (t, o) => (u(), i("rect", {
|
|
847
854
|
key: `trap-${o}`,
|
|
848
855
|
y: 0,
|
|
849
856
|
height: Math.max(g.value.height, 0),
|
|
850
857
|
fill: "transparent",
|
|
851
|
-
style:
|
|
852
|
-
cursor: t >= D.value && t < X.value &&
|
|
858
|
+
style: R([{ "pointer-events": "all !important" }, {
|
|
859
|
+
cursor: t >= D.value && t < X.value && a.enableSelectionDrag ? F.value ? "grabbing" : "grab" : "default"
|
|
853
860
|
}]),
|
|
854
|
-
x:
|
|
855
|
-
width:
|
|
861
|
+
x: k.value * o - (a.minimapCompact ? k.value / 2 : 0),
|
|
862
|
+
width: k.value < 0 ? 0 : k.value,
|
|
856
863
|
onMousedown: l[0] || (l[0] = (r) => F.value = !0),
|
|
857
864
|
onMouseup: l[1] || (l[1] = (r) => F.value = !1),
|
|
858
865
|
onMouseenter: (r) => Pt(t),
|
|
@@ -864,34 +871,34 @@ const ll = {
|
|
|
864
871
|
])) : m("", !0),
|
|
865
872
|
P("div", {
|
|
866
873
|
class: "slider-track",
|
|
867
|
-
style:
|
|
874
|
+
style: R({ visibility: b.value && a.minimapCompact ? "hidden" : "visible" })
|
|
868
875
|
}, null, 4),
|
|
869
876
|
P("div", {
|
|
870
877
|
class: Y({
|
|
871
878
|
"range-highlight": !0,
|
|
872
|
-
move:
|
|
879
|
+
move: a.enableSelectionDrag
|
|
873
880
|
}),
|
|
874
881
|
onMousedown: l[3] || (l[3] = (t) => F.value = !0),
|
|
875
882
|
onMouseup: l[4] || (l[4] = (t) => F.value = !1),
|
|
876
|
-
style:
|
|
883
|
+
style: R({
|
|
877
884
|
...N.value,
|
|
878
885
|
cursor: F.value ? "grabbing" : "grab",
|
|
879
|
-
visibility: b.value &&
|
|
886
|
+
visibility: b.value && a.minimapCompact ? "hidden" : "visible"
|
|
880
887
|
})
|
|
881
888
|
}, null, 38),
|
|
882
|
-
|
|
889
|
+
a.enableRangeHandles ? at((u(), i("input", {
|
|
883
890
|
key: 1,
|
|
884
891
|
ref_key: "rangeStart",
|
|
885
|
-
ref:
|
|
892
|
+
ref: pe,
|
|
886
893
|
type: "range",
|
|
887
894
|
class: Y({
|
|
888
895
|
"range-left": !0,
|
|
889
896
|
"range-handle": !0,
|
|
890
|
-
"range-minimap": b.value &&
|
|
891
|
-
"range-invisible": b.value &&
|
|
897
|
+
"range-minimap": b.value && a.verticalHandles,
|
|
898
|
+
"range-invisible": b.value && a.minimapCompact
|
|
892
899
|
}),
|
|
893
|
-
min:
|
|
894
|
-
max: L.value &&
|
|
900
|
+
min: a.min,
|
|
901
|
+
max: L.value && a.minimapCompact ? K.value : a.max,
|
|
895
902
|
step: 1,
|
|
896
903
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => ye.value = t),
|
|
897
904
|
onMouseenter: l[6] || (l[6] = (t) => je("start"))
|
|
@@ -903,7 +910,7 @@ const ll = {
|
|
|
903
910
|
{ number: !0 }
|
|
904
911
|
]
|
|
905
912
|
]) : m("", !0),
|
|
906
|
-
|
|
913
|
+
a.enableRangeHandles ? at((u(), i("input", {
|
|
907
914
|
key: 2,
|
|
908
915
|
ref_key: "rangeEnd",
|
|
909
916
|
ref: we,
|
|
@@ -911,11 +918,11 @@ const ll = {
|
|
|
911
918
|
class: Y({
|
|
912
919
|
"range-right": !0,
|
|
913
920
|
"range-handle": !0,
|
|
914
|
-
"range-minimap": b.value &&
|
|
915
|
-
"range-invisible": b.value &&
|
|
921
|
+
"range-minimap": b.value && a.verticalHandles,
|
|
922
|
+
"range-invisible": b.value && a.minimapCompact
|
|
916
923
|
}),
|
|
917
|
-
min:
|
|
918
|
-
max: L.value &&
|
|
924
|
+
min: a.min,
|
|
925
|
+
max: L.value && a.minimapCompact ? K.value : a.max,
|
|
919
926
|
step: 1,
|
|
920
927
|
"onUpdate:modelValue": l[7] || (l[7] = (t) => Me.value = t),
|
|
921
928
|
onMouseenter: l[8] || (l[8] = (t) => je("end"))
|
|
@@ -927,70 +934,70 @@ const ll = {
|
|
|
927
934
|
{ number: !0 }
|
|
928
935
|
]
|
|
929
936
|
]) : m("", !0),
|
|
930
|
-
|
|
937
|
+
a.labelLeft ? (u(), i("div", {
|
|
931
938
|
key: 3,
|
|
932
939
|
ref_key: "tooltipLeft",
|
|
933
940
|
ref: le,
|
|
934
941
|
class: Y({
|
|
935
942
|
"range-tooltip": !0,
|
|
936
943
|
"range-tooltip-visible": W.value,
|
|
937
|
-
"range-tooltip-arrow": N.value.arrowLeft && !
|
|
938
|
-
"range-tooltip-arrow-left": !N.value.arrowLeft && !
|
|
944
|
+
"range-tooltip-arrow": N.value.arrowLeft && !a.verticalHandles,
|
|
945
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !a.verticalHandles
|
|
939
946
|
}),
|
|
940
|
-
style:
|
|
947
|
+
style: R({
|
|
941
948
|
left: N.value.tooltipLeft,
|
|
942
|
-
color: me(Ee)(
|
|
943
|
-
backgroundColor:
|
|
949
|
+
color: me(Ee)(a.selectColor),
|
|
950
|
+
backgroundColor: a.selectColor,
|
|
944
951
|
border: `1px solid ${x.value}`,
|
|
945
952
|
zIndex: `${Qe.value + 4}`,
|
|
946
|
-
visibility: ne.value ||
|
|
947
|
-
top: b.value &&
|
|
953
|
+
visibility: ne.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
954
|
+
top: b.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
948
955
|
})
|
|
949
|
-
}, Le(
|
|
950
|
-
(ne.value ||
|
|
956
|
+
}, Le(a.labelLeft), 7)) : m("", !0),
|
|
957
|
+
(ne.value || a.labelLeft === a.labelRight) && (a.labelLeft || a.labelRight) ? (u(), i("div", {
|
|
951
958
|
key: 4,
|
|
952
959
|
ref: "tooltipMerge",
|
|
953
960
|
class: Y({
|
|
954
961
|
"range-tooltip": !0,
|
|
955
962
|
"range-tooltip-visible": W.value,
|
|
956
963
|
"range-tooltip-arrow": !0,
|
|
957
|
-
"range-tooltip-arrow-left": !N.value.arrowLeft && !
|
|
958
|
-
"range-tooltip-arrow-right": !N.value.arrowRight && !
|
|
964
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !a.verticalHandles,
|
|
965
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !a.verticalHandles
|
|
959
966
|
}),
|
|
960
|
-
style:
|
|
967
|
+
style: R({
|
|
961
968
|
left: N.value.tooltipCenter,
|
|
962
969
|
width: ie.value.width + "px",
|
|
963
|
-
color: me(Ee)(
|
|
964
|
-
backgroundColor:
|
|
970
|
+
color: me(Ee)(a.selectColor),
|
|
971
|
+
backgroundColor: a.selectColor,
|
|
965
972
|
border: `1px solid ${x.value}`,
|
|
966
973
|
zIndex: "4",
|
|
967
|
-
top: b.value &&
|
|
974
|
+
top: b.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
968
975
|
})
|
|
969
|
-
}, Le(
|
|
970
|
-
|
|
976
|
+
}, Le(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : m("", !0),
|
|
977
|
+
a.labelRight ? (u(), i("div", {
|
|
971
978
|
key: 5,
|
|
972
979
|
ref_key: "tooltipRight",
|
|
973
980
|
ref: ae,
|
|
974
981
|
class: Y({
|
|
975
982
|
"range-tooltip": !0,
|
|
976
983
|
"range-tooltip-visible": W.value,
|
|
977
|
-
"range-tooltip-arrow": N.value.arrowRight && !
|
|
978
|
-
"range-tooltip-arrow-right": !N.value.arrowRight && !
|
|
984
|
+
"range-tooltip-arrow": N.value.arrowRight && !a.verticalHandles,
|
|
985
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !a.verticalHandles
|
|
979
986
|
}),
|
|
980
|
-
style:
|
|
987
|
+
style: R({
|
|
981
988
|
left: N.value.tooltipRight,
|
|
982
|
-
color: me(Ee)(
|
|
983
|
-
backgroundColor:
|
|
989
|
+
color: me(Ee)(a.selectColor),
|
|
990
|
+
backgroundColor: a.selectColor,
|
|
984
991
|
border: `1px solid ${x.value}`,
|
|
985
992
|
zIndex: "4",
|
|
986
|
-
visibility: ne.value ||
|
|
987
|
-
top: b.value &&
|
|
993
|
+
visibility: ne.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
994
|
+
top: b.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
988
995
|
})
|
|
989
|
-
}, Le(
|
|
996
|
+
}, Le(a.labelRight), 7)) : m("", !0)
|
|
990
997
|
], 544)
|
|
991
|
-
],
|
|
998
|
+
], 36));
|
|
992
999
|
}
|
|
993
|
-
}, Gl = /* @__PURE__ */ tl(Dl, [["__scopeId", "data-v-
|
|
1000
|
+
}, Gl = /* @__PURE__ */ tl(Dl, [["__scopeId", "data-v-d2c56aa7"]]);
|
|
994
1001
|
export {
|
|
995
1002
|
Gl as S
|
|
996
1003
|
};
|