vue-data-ui 3.20.10 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/style.css +1 -1
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +6 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
- package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
- package/dist/vue-ui-bullet-rCmOch09.js +0 -710
- package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
- package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
- package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
- package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
- package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
- package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
- package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
- package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
- package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
- package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
- package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
- package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
- package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
- package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
- package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
|
@@ -0,0 +1,1676 @@
|
|
|
1
|
+
import { F as e, H as t, I as n, L as r, Ut as i, _t as a, ht as o, j as ee, k as te, r as ne, t as re } from "./lib-AJRHFE5U.js";
|
|
2
|
+
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { c as ie, r as c } from "./canvas-lib-BOP_HS11.js";
|
|
4
|
+
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
5
|
+
import { t as oe } from "./BaseIcon-CbDazQLH.js";
|
|
6
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as se, mergeProps as ce, nextTick as le, normalizeClass as m, normalizeProps as ue, normalizeStyle as h, onBeforeUnmount as de, onMounted as fe, onUpdated as pe, openBlock as g, ref as _, renderList as v, renderSlot as me, toDisplayString as he, unref as ge, useCssVars as _e, vModelText as ve, watch as y, withDirectives as ye, withKeys as be, withModifiers as xe } from "vue";
|
|
7
|
+
//#region src/atoms/SlicerPreview.vue
|
|
8
|
+
var Se = ["data-minimap"], Ce = {
|
|
9
|
+
class: "vue-data-ui-slicer-labels",
|
|
10
|
+
style: {
|
|
11
|
+
position: "relative",
|
|
12
|
+
"z-index": "1",
|
|
13
|
+
"pointer-events": "none"
|
|
14
|
+
}
|
|
15
|
+
}, we = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
position: "relative",
|
|
20
|
+
"pointer-events": "all"
|
|
21
|
+
}
|
|
22
|
+
}, Te = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "minimap",
|
|
25
|
+
style: { width: "100%" }
|
|
26
|
+
}, Ee = ["xmlns", "viewBox"], De = ["id"], Oe = ["stop-color"], ke = ["id"], Ae = [
|
|
27
|
+
"x",
|
|
28
|
+
"width",
|
|
29
|
+
"height"
|
|
30
|
+
], je = [
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"stroke"
|
|
34
|
+
], Me = ["d", "stroke"], Ne = ["d", "fill"], Pe = [
|
|
35
|
+
"x",
|
|
36
|
+
"y",
|
|
37
|
+
"width",
|
|
38
|
+
"height",
|
|
39
|
+
"fill"
|
|
40
|
+
], Fe = [
|
|
41
|
+
"d",
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-dasharray"
|
|
44
|
+
], Ie = [
|
|
45
|
+
"cx",
|
|
46
|
+
"cy",
|
|
47
|
+
"fill",
|
|
48
|
+
"stroke"
|
|
49
|
+
], Le = [
|
|
50
|
+
"cx",
|
|
51
|
+
"cy",
|
|
52
|
+
"fill",
|
|
53
|
+
"stroke"
|
|
54
|
+
], Re = [
|
|
55
|
+
"x",
|
|
56
|
+
"width",
|
|
57
|
+
"height",
|
|
58
|
+
"fill",
|
|
59
|
+
"rx"
|
|
60
|
+
], ze = [
|
|
61
|
+
"x",
|
|
62
|
+
"width",
|
|
63
|
+
"height",
|
|
64
|
+
"rx",
|
|
65
|
+
"fill"
|
|
66
|
+
], Be = [
|
|
67
|
+
"x",
|
|
68
|
+
"width",
|
|
69
|
+
"height",
|
|
70
|
+
"fill",
|
|
71
|
+
"rx",
|
|
72
|
+
"aria-valuemin",
|
|
73
|
+
"aria-valuemax",
|
|
74
|
+
"aria-valuenow",
|
|
75
|
+
"aria-valuetext"
|
|
76
|
+
], Ve = [
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], He = { key: "merged-tree" }, Ue = ["d", "stroke"], We = [
|
|
82
|
+
"cx",
|
|
83
|
+
"cy",
|
|
84
|
+
"stroke",
|
|
85
|
+
"fill"
|
|
86
|
+
], Ge = [
|
|
87
|
+
"cx",
|
|
88
|
+
"cy",
|
|
89
|
+
"stroke",
|
|
90
|
+
"fill"
|
|
91
|
+
], Ke = { key: "split-tree" }, qe = [
|
|
92
|
+
"x",
|
|
93
|
+
"y",
|
|
94
|
+
"width",
|
|
95
|
+
"height",
|
|
96
|
+
"fill"
|
|
97
|
+
], Je = [
|
|
98
|
+
"d",
|
|
99
|
+
"stroke",
|
|
100
|
+
"stroke-dasharray"
|
|
101
|
+
], Ye = [
|
|
102
|
+
"cx",
|
|
103
|
+
"cy",
|
|
104
|
+
"fill",
|
|
105
|
+
"stroke"
|
|
106
|
+
], Xe = ["width", "height"], Ze = [
|
|
107
|
+
"x",
|
|
108
|
+
"width",
|
|
109
|
+
"height",
|
|
110
|
+
"fill",
|
|
111
|
+
"stroke",
|
|
112
|
+
"stroke-width"
|
|
113
|
+
], Qe = ["transform"], $e = ["width", "height"], et = ["fill", "stroke"], tt = ["stroke"], nt = ["fill"], rt = [
|
|
114
|
+
"x",
|
|
115
|
+
"width",
|
|
116
|
+
"height",
|
|
117
|
+
"fill",
|
|
118
|
+
"stroke",
|
|
119
|
+
"stroke-width"
|
|
120
|
+
], it = ["transform"], at = ["width", "height"], ot = ["fill", "stroke"], st = ["stroke"], ct = ["fill"], lt = {
|
|
121
|
+
key: "merged-tree",
|
|
122
|
+
style: { "pointer-events": "none" }
|
|
123
|
+
}, ut = [
|
|
124
|
+
"cx",
|
|
125
|
+
"cy",
|
|
126
|
+
"stroke",
|
|
127
|
+
"fill"
|
|
128
|
+
], dt = [
|
|
129
|
+
"cx",
|
|
130
|
+
"cy",
|
|
131
|
+
"fill"
|
|
132
|
+
], ft = [
|
|
133
|
+
"cx",
|
|
134
|
+
"cy",
|
|
135
|
+
"stroke",
|
|
136
|
+
"fill"
|
|
137
|
+
], pt = [
|
|
138
|
+
"cx",
|
|
139
|
+
"cy",
|
|
140
|
+
"fill"
|
|
141
|
+
], mt = {
|
|
142
|
+
key: 1,
|
|
143
|
+
style: { "pointer-events": "none" }
|
|
144
|
+
}, ht = [
|
|
145
|
+
"d",
|
|
146
|
+
"stroke",
|
|
147
|
+
"stroke-dasharray"
|
|
148
|
+
], gt = [
|
|
149
|
+
"cx",
|
|
150
|
+
"cy",
|
|
151
|
+
"fill",
|
|
152
|
+
"stroke"
|
|
153
|
+
], _t = [
|
|
154
|
+
"cx",
|
|
155
|
+
"cy",
|
|
156
|
+
"stroke",
|
|
157
|
+
"fill"
|
|
158
|
+
], vt = [
|
|
159
|
+
"cx",
|
|
160
|
+
"cy",
|
|
161
|
+
"fill"
|
|
162
|
+
], yt = [
|
|
163
|
+
"cx",
|
|
164
|
+
"cy",
|
|
165
|
+
"stroke",
|
|
166
|
+
"fill"
|
|
167
|
+
], bt = [
|
|
168
|
+
"cx",
|
|
169
|
+
"cy",
|
|
170
|
+
"fill"
|
|
171
|
+
], xt = [
|
|
172
|
+
"cx",
|
|
173
|
+
"cy",
|
|
174
|
+
"fill",
|
|
175
|
+
"stroke"
|
|
176
|
+
], St = [
|
|
177
|
+
"step",
|
|
178
|
+
"min",
|
|
179
|
+
"max",
|
|
180
|
+
"tabindex"
|
|
181
|
+
], Ct = [
|
|
182
|
+
"step",
|
|
183
|
+
"min",
|
|
184
|
+
"max",
|
|
185
|
+
"tabindex"
|
|
186
|
+
], wt = {
|
|
187
|
+
key: 3,
|
|
188
|
+
class: "minimap-handle-overlay"
|
|
189
|
+
}, Tt = ["xmlns", "viewBox"], Et = [
|
|
190
|
+
"x",
|
|
191
|
+
"width",
|
|
192
|
+
"height"
|
|
193
|
+
], Dt = [
|
|
194
|
+
"x",
|
|
195
|
+
"width",
|
|
196
|
+
"height"
|
|
197
|
+
], Ot = 48, kt = /* @__PURE__ */ s({
|
|
198
|
+
__name: "SlicerPreview",
|
|
199
|
+
props: {
|
|
200
|
+
uuid: {
|
|
201
|
+
type: String,
|
|
202
|
+
default: ""
|
|
203
|
+
},
|
|
204
|
+
immediate: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: !0
|
|
207
|
+
},
|
|
208
|
+
background: {
|
|
209
|
+
type: String,
|
|
210
|
+
default: "#FFFFFF"
|
|
211
|
+
},
|
|
212
|
+
borderColor: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: "#FFFFFF"
|
|
215
|
+
},
|
|
216
|
+
fontSize: {
|
|
217
|
+
type: Number,
|
|
218
|
+
default: 14
|
|
219
|
+
},
|
|
220
|
+
labelLeft: {
|
|
221
|
+
type: [String, Number],
|
|
222
|
+
default: ""
|
|
223
|
+
},
|
|
224
|
+
labelRight: {
|
|
225
|
+
type: [String, Number],
|
|
226
|
+
default: ""
|
|
227
|
+
},
|
|
228
|
+
textColor: {
|
|
229
|
+
type: String,
|
|
230
|
+
default: "#1A1A1A"
|
|
231
|
+
},
|
|
232
|
+
inputColor: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: "#1A1A1A"
|
|
235
|
+
},
|
|
236
|
+
max: {
|
|
237
|
+
type: Number,
|
|
238
|
+
default: 0
|
|
239
|
+
},
|
|
240
|
+
min: {
|
|
241
|
+
type: Number,
|
|
242
|
+
default: 0
|
|
243
|
+
},
|
|
244
|
+
selectColor: {
|
|
245
|
+
type: String,
|
|
246
|
+
default: "#4A4A4A"
|
|
247
|
+
},
|
|
248
|
+
useResetSlot: {
|
|
249
|
+
type: Boolean,
|
|
250
|
+
default: !1
|
|
251
|
+
},
|
|
252
|
+
valueStart: {
|
|
253
|
+
type: [Number, String],
|
|
254
|
+
default: 0
|
|
255
|
+
},
|
|
256
|
+
valueEnd: {
|
|
257
|
+
type: [Number, String],
|
|
258
|
+
default: 0
|
|
259
|
+
},
|
|
260
|
+
minimap: {
|
|
261
|
+
type: Array,
|
|
262
|
+
default: []
|
|
263
|
+
},
|
|
264
|
+
smoothMinimap: {
|
|
265
|
+
type: Boolean,
|
|
266
|
+
default: !1
|
|
267
|
+
},
|
|
268
|
+
minimapSelectedColor: {
|
|
269
|
+
type: String,
|
|
270
|
+
default: "#1f77b4"
|
|
271
|
+
},
|
|
272
|
+
minimapSelectionRadius: {
|
|
273
|
+
type: Number,
|
|
274
|
+
default: 12
|
|
275
|
+
},
|
|
276
|
+
minimapLineColor: {
|
|
277
|
+
type: String,
|
|
278
|
+
default: "#2D353C"
|
|
279
|
+
},
|
|
280
|
+
minimapSelectedColorOpacity: {
|
|
281
|
+
type: Number,
|
|
282
|
+
default: .2
|
|
283
|
+
},
|
|
284
|
+
minimapSelectedIndex: {
|
|
285
|
+
type: Number,
|
|
286
|
+
default: null
|
|
287
|
+
},
|
|
288
|
+
minimapIndicatorColor: {
|
|
289
|
+
type: String,
|
|
290
|
+
default: "#2D353C"
|
|
291
|
+
},
|
|
292
|
+
refreshStartPoint: {
|
|
293
|
+
type: Number,
|
|
294
|
+
default: 0
|
|
295
|
+
},
|
|
296
|
+
refreshEndPoint: {
|
|
297
|
+
type: Number,
|
|
298
|
+
default: null
|
|
299
|
+
},
|
|
300
|
+
enableRangeHandles: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
default: !1
|
|
303
|
+
},
|
|
304
|
+
enableSelectionDrag: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
default: !0
|
|
307
|
+
},
|
|
308
|
+
verticalHandles: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
default: !1
|
|
311
|
+
},
|
|
312
|
+
timeLabels: { type: Array },
|
|
313
|
+
isPreview: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
default: !1
|
|
316
|
+
},
|
|
317
|
+
preciseLabels: {
|
|
318
|
+
type: Array,
|
|
319
|
+
default() {
|
|
320
|
+
return [];
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
usePreciseLabels: {
|
|
324
|
+
type: Boolean,
|
|
325
|
+
default: !1
|
|
326
|
+
},
|
|
327
|
+
selectedSeries: { type: Object },
|
|
328
|
+
customFormat: { type: [Function, null] },
|
|
329
|
+
minimapCompact: {
|
|
330
|
+
type: Boolean,
|
|
331
|
+
default: !1
|
|
332
|
+
},
|
|
333
|
+
allMinimaps: {
|
|
334
|
+
type: Array,
|
|
335
|
+
default() {
|
|
336
|
+
return [];
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
minimapMerged: {
|
|
340
|
+
type: Boolean,
|
|
341
|
+
default: !1
|
|
342
|
+
},
|
|
343
|
+
minimapFrameColor: {
|
|
344
|
+
type: String,
|
|
345
|
+
default: "#e1e5e8"
|
|
346
|
+
},
|
|
347
|
+
cutNullValues: {
|
|
348
|
+
type: Boolean,
|
|
349
|
+
default: !1
|
|
350
|
+
},
|
|
351
|
+
focusOnDrag: {
|
|
352
|
+
type: Boolean,
|
|
353
|
+
default: !1
|
|
354
|
+
},
|
|
355
|
+
focusRangeRatio: {
|
|
356
|
+
type: Number,
|
|
357
|
+
default: .1
|
|
358
|
+
},
|
|
359
|
+
minScale: {
|
|
360
|
+
type: Number,
|
|
361
|
+
default: null
|
|
362
|
+
},
|
|
363
|
+
maxScale: {
|
|
364
|
+
type: Number,
|
|
365
|
+
default: null
|
|
366
|
+
},
|
|
367
|
+
forceZeroCenter: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: !1
|
|
370
|
+
},
|
|
371
|
+
maxWidth: {
|
|
372
|
+
type: Number,
|
|
373
|
+
default: null
|
|
374
|
+
},
|
|
375
|
+
isCursorPointer: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: !1
|
|
378
|
+
},
|
|
379
|
+
additionalMinimapHeight: {
|
|
380
|
+
type: Number,
|
|
381
|
+
default: 0
|
|
382
|
+
},
|
|
383
|
+
handleType: {
|
|
384
|
+
type: String,
|
|
385
|
+
default: ""
|
|
386
|
+
},
|
|
387
|
+
handleWidth: {
|
|
388
|
+
type: Number,
|
|
389
|
+
default: 20
|
|
390
|
+
},
|
|
391
|
+
handleBorderWidth: {
|
|
392
|
+
type: Number,
|
|
393
|
+
default: 1
|
|
394
|
+
},
|
|
395
|
+
handleIconColor: {
|
|
396
|
+
type: String,
|
|
397
|
+
default: null
|
|
398
|
+
},
|
|
399
|
+
handleBorderColor: {
|
|
400
|
+
type: String,
|
|
401
|
+
default: null
|
|
402
|
+
},
|
|
403
|
+
handleFill: {
|
|
404
|
+
type: String,
|
|
405
|
+
default: null
|
|
406
|
+
},
|
|
407
|
+
precision: {
|
|
408
|
+
type: Number,
|
|
409
|
+
default: 0
|
|
410
|
+
},
|
|
411
|
+
useValueRange: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
default: !1
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
emits: [
|
|
417
|
+
"futureStart",
|
|
418
|
+
"futureEnd",
|
|
419
|
+
"update:start",
|
|
420
|
+
"update:end",
|
|
421
|
+
"reset",
|
|
422
|
+
"trapMouse",
|
|
423
|
+
"trapMouseValue"
|
|
424
|
+
],
|
|
425
|
+
setup(s, { expose: kt, emit: At }) {
|
|
426
|
+
_e((e) => ({
|
|
427
|
+
v227eb602: nn.value,
|
|
428
|
+
f293a51a: P.value,
|
|
429
|
+
v73df98a4: an.value,
|
|
430
|
+
v66eb6ea3: s.selectColor,
|
|
431
|
+
v07b1cfb1: rn.value,
|
|
432
|
+
v685fb7a3: b.additionalMinimapHeight
|
|
433
|
+
}));
|
|
434
|
+
let b = s;
|
|
435
|
+
function jt(e) {
|
|
436
|
+
let t = Number(e) || 0;
|
|
437
|
+
return b.precision <= 0 ? Math.round(t) : Number(t.toFixed(b.precision));
|
|
438
|
+
}
|
|
439
|
+
let x = _(null), S = _(b.min), C = _(b.max), w = u(() => !!b.allMinimaps.length), Mt = _(t()), T = _(!1), E = u(() => w.value && b.minimapCompact), D = _(null), Nt = _(!1), Pt = _(0), Ft = _(0), It = _(null), Lt = u(() => D.value !== null), Rt = u(() => b.useValueRange ? C.value : C.value - 1), zt = u(() => Math.max(1, Number(b.max) - Number(b.min)));
|
|
440
|
+
function Bt(e) {
|
|
441
|
+
return (Number(e) - Number(b.min)) / zt.value * 100;
|
|
442
|
+
}
|
|
443
|
+
function Vt(e) {
|
|
444
|
+
return I.value.width * (Bt(e) / 100);
|
|
445
|
+
}
|
|
446
|
+
function Ht(e) {
|
|
447
|
+
let t = Math.min(1, Math.max(0, e / Math.max(1, I.value.width)));
|
|
448
|
+
return jt(Number(b.min) + zt.value * t);
|
|
449
|
+
}
|
|
450
|
+
function Ut(e) {
|
|
451
|
+
let t = b.useValueRange ? e?.y : e;
|
|
452
|
+
return a(t) ? Number(t) : null;
|
|
453
|
+
}
|
|
454
|
+
function Wt(e, t) {
|
|
455
|
+
return b.useValueRange ? Number(e?.x) : t + Number(b.min);
|
|
456
|
+
}
|
|
457
|
+
function Gt(e, t) {
|
|
458
|
+
return b.useValueRange ? Vt(Wt(e, t)) : V.value * t + (b.minimapCompact ? 0 : V.value / 2);
|
|
459
|
+
}
|
|
460
|
+
let Kt = u(() => Math.min(40, Math.max(20, b.handleWidth))), qt = _(0), Jt = ie((e) => M("futureStart", e), 0), Yt = ie((e) => M("futureEnd", e), 0), O = u(() => b.precision > 0 ? 1 / 10 ** b.precision : 1), k = u({
|
|
461
|
+
get: () => S.value,
|
|
462
|
+
set(e) {
|
|
463
|
+
let t = Math.min(Number(e), Number(C.value) - O.value);
|
|
464
|
+
t !== S.value && (S.value = t, zn.value && (zn.value.value = String(t)), b.immediate ? M("update:start", Number(t)) : T.value && Jt(t));
|
|
465
|
+
}
|
|
466
|
+
}), A = u({
|
|
467
|
+
get: () => C.value,
|
|
468
|
+
set(e) {
|
|
469
|
+
let t = Math.max(Number(e), Number(S.value) + O.value);
|
|
470
|
+
t !== C.value && (C.value = t, Bn.value && (Bn.value.value = String(t)), b.immediate ? M("update:end", Number(t)) : T.value && Yt(t));
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
function j() {
|
|
474
|
+
clearTimeout(null), b.immediate || (M("update:start", Number(S.value)), M("update:end", Number(C.value))), T.value = !1;
|
|
475
|
+
}
|
|
476
|
+
let Xt = u(() => b.refreshEndPoint === null ? b.max : b.refreshEndPoint), M = At, Zt = u(() => {
|
|
477
|
+
if (b.useValueRange) return Bt(S.value);
|
|
478
|
+
if (E.value) {
|
|
479
|
+
let e = Math.max(1, R.value - 1);
|
|
480
|
+
return An.value / e * 100;
|
|
481
|
+
}
|
|
482
|
+
let e = Math.max(1, b.max - b.min);
|
|
483
|
+
return (S.value - b.min) / e * 100;
|
|
484
|
+
}), Qt = u(() => {
|
|
485
|
+
if (b.useValueRange) return Bt(C.value);
|
|
486
|
+
if (E.value) {
|
|
487
|
+
let e = Math.max(1, R.value - 1);
|
|
488
|
+
return jn.value / e * 100;
|
|
489
|
+
}
|
|
490
|
+
let e = Math.max(1, b.max - b.min);
|
|
491
|
+
return (C.value - b.min) / e * 100;
|
|
492
|
+
}), $t = u(() => (Zt.value + Qt.value) / 2), en = u(() => {
|
|
493
|
+
if (!x.value) return !1;
|
|
494
|
+
let e = Math.max(1, b.max - b.min);
|
|
495
|
+
return x.value.getBoundingClientRect().width * ((S.value - b.min) / e) - hr.value / 2 < 0;
|
|
496
|
+
}), tn = u(() => {
|
|
497
|
+
if (!x.value) return !1;
|
|
498
|
+
let e = Math.max(1, b.max - b.min), t = x.value.getBoundingClientRect().width;
|
|
499
|
+
return t * ((C.value - b.min) / e) + gr.value / 2 > t;
|
|
500
|
+
}), N = u(() => {
|
|
501
|
+
let e = tn.value ? `calc(${$t.value}% - ${Sr.value.width}px)` : en.value ? `calc(${$t.value}% - 8px)` : `calc(${$t.value}% - ${Sr.value.width / 2}px)`;
|
|
502
|
+
return {
|
|
503
|
+
left: `${Zt.value}%`,
|
|
504
|
+
width: `${Math.max(0, Qt.value - Zt.value)}%`,
|
|
505
|
+
background: b.selectColor,
|
|
506
|
+
tooltipLeft: `calc(${Zt.value}% - ${en.value ? 9 : hr.value / 2}px)`,
|
|
507
|
+
tooltipRight: `calc(${Qt.value}% - ${tn.value ? gr.value - 9 : gr.value / 2}px)`,
|
|
508
|
+
tooltipCenter: e,
|
|
509
|
+
arrowLeft: !en.value,
|
|
510
|
+
arrowRight: !tn.value
|
|
511
|
+
};
|
|
512
|
+
}), nn = u(() => b.inputColor), rn = u(() => b.background), an = u(() => `${b.selectColor}33`), P = u(() => b.borderColor), on = u(() => Number(b.max) > Number(b.min));
|
|
513
|
+
function sn() {
|
|
514
|
+
M("reset");
|
|
515
|
+
}
|
|
516
|
+
y(() => b.min, (e) => {
|
|
517
|
+
Number(S.value) < Number(e) && (S.value = Number(e)), Number(C.value) < Number(e) && (C.value = Number(e));
|
|
518
|
+
}), y(() => b.max, (e) => {
|
|
519
|
+
Number(S.value) > Number(e) && (S.value = Number(e)), Number(C.value) > Number(e) && (C.value = Number(e));
|
|
520
|
+
});
|
|
521
|
+
let F = _(null), I = _({
|
|
522
|
+
width: 1,
|
|
523
|
+
height: 1
|
|
524
|
+
}), L = _(null);
|
|
525
|
+
fe(() => {
|
|
526
|
+
if (w.value) {
|
|
527
|
+
let e = ie(() => {
|
|
528
|
+
if (!F.value) return;
|
|
529
|
+
let { width: e, height: t } = ae({ chart: F.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
|
|
530
|
+
(n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r + b.additionalMinimapHeight);
|
|
531
|
+
}, 0);
|
|
532
|
+
L.value = new ResizeObserver(e), L.value.observe(F.value);
|
|
533
|
+
}
|
|
534
|
+
}), de(() => {
|
|
535
|
+
L.value && L.value.disconnect();
|
|
536
|
+
});
|
|
537
|
+
let R = u(() => Math.max(1, b.max - b.min));
|
|
538
|
+
function cn(e) {
|
|
539
|
+
let t = Math.floor(e - b.min);
|
|
540
|
+
return Math.min(Math.max(0, t), R.value);
|
|
541
|
+
}
|
|
542
|
+
function ln(e) {
|
|
543
|
+
let t = Math.ceil(e - b.min);
|
|
544
|
+
return Math.min(Math.max(0, t), R.value);
|
|
545
|
+
}
|
|
546
|
+
let z = u(() => cn(S.value)), B = u(() => ln(C.value)), un = u(() => Math.max(...b.allMinimaps.map((e) => e.series.length))), dn = u(() => w.value && b.minimapCompact ? 40 : 0), fn = u(() => dn.value / 2);
|
|
547
|
+
u(() => Math.max(1, I.value.width - fn.value * 2));
|
|
548
|
+
let V = u(() => {
|
|
549
|
+
if (b.minimapCompact && !b.useValueRange) return I.value.width / Math.max(1, R.value - 1);
|
|
550
|
+
let e = Math.max(1, un.value - +!!b.minimapCompact);
|
|
551
|
+
return I.value.width / e;
|
|
552
|
+
}), pn = u(() => b.allMinimaps.length ? b.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), mn = u(() => V.value / (pn.value || 1) * .8);
|
|
553
|
+
function hn(e, t, n) {
|
|
554
|
+
let r = mn.value, i = Math.max(1, pn.value), a = un.value - 1;
|
|
555
|
+
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
556
|
+
}
|
|
557
|
+
function gn(e, t) {
|
|
558
|
+
return [0, un.value - 1].includes(t) ? mn.value / 2 : mn.value;
|
|
559
|
+
}
|
|
560
|
+
let _n = u(() => {
|
|
561
|
+
let e = [];
|
|
562
|
+
if (Array.isArray(b.minimap) && b.minimap.length && b.minimapMerged && e.push(...b.minimap.map(Ut).filter(Number.isFinite)), Array.isArray(b.allMinimaps) && b.allMinimaps.length) for (let t of b.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Ut).filter(Number.isFinite));
|
|
563
|
+
return e.length ? {
|
|
564
|
+
min: Math.min(...e),
|
|
565
|
+
max: Math.max(...e)
|
|
566
|
+
} : {
|
|
567
|
+
min: 0,
|
|
568
|
+
max: 1
|
|
569
|
+
};
|
|
570
|
+
}), vn = u(() => {
|
|
571
|
+
if (b.minScale == null && b.forceZeroCenter) return null;
|
|
572
|
+
let e = Number(b.minScale);
|
|
573
|
+
return Number.isFinite(e) ? e : null;
|
|
574
|
+
}), yn = u(() => {
|
|
575
|
+
if (b.maxScale == null && b.forceZeroCenter) return null;
|
|
576
|
+
let e = Number(b.maxScale);
|
|
577
|
+
return Number.isFinite(e) ? e : null;
|
|
578
|
+
}), bn = u(() => vn.value !== null && yn.value !== null), xn = u(() => {
|
|
579
|
+
let { min: e, max: t } = _n.value, n = vn.value, r = yn.value, i, a;
|
|
580
|
+
return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
|
|
581
|
+
min: i,
|
|
582
|
+
max: a
|
|
583
|
+
};
|
|
584
|
+
}), Sn = u(() => xn.value.min), Cn = u(() => xn.value.max), wn = u(() => Sn.value < 0 && Cn.value > 0 || Cn.value <= 0 ? Sn.value : 0), Tn = (e) => {
|
|
585
|
+
let t = Math.max(1, I.value.height);
|
|
586
|
+
return Dn(Sn.value, Cn.value, t, bn.value)(e);
|
|
587
|
+
}, En = u(() => Tn(0));
|
|
588
|
+
function Dn(e, t, n, r = !1) {
|
|
589
|
+
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
590
|
+
if (r) return (t) => n - (t - e) / o * n;
|
|
591
|
+
if (t <= 0) {
|
|
592
|
+
let t = Math.max(a, 0 - e);
|
|
593
|
+
return (r) => n - (r - e) / t * n;
|
|
594
|
+
} else if (e >= 0) {
|
|
595
|
+
let e = Math.max(a, t - 0);
|
|
596
|
+
return (t) => n - (t - 0) / e * n;
|
|
597
|
+
} else {
|
|
598
|
+
let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
|
|
599
|
+
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function On(t, i = !1, a = !1) {
|
|
603
|
+
if (!t || !t.length) return {
|
|
604
|
+
fullSet: "",
|
|
605
|
+
points: [],
|
|
606
|
+
selectionSet: "",
|
|
607
|
+
sliced: [],
|
|
608
|
+
firstPlot: null,
|
|
609
|
+
lastPlot: null,
|
|
610
|
+
hasFull: !1,
|
|
611
|
+
hasSelection: !1,
|
|
612
|
+
fullMarkers: [],
|
|
613
|
+
selectionMarkers: [],
|
|
614
|
+
dashed: !1
|
|
615
|
+
};
|
|
616
|
+
let o = Math.max(1, I.value.height), ne = Dn(Sn.value, Cn.value, o, bn.value), re = t.length, s = Math.min(Math.max(0, z.value), Math.max(0, re - 1)), ie = Math.min(re, Math.max(s + 1, B.value)), c = t.map((e, t) => {
|
|
617
|
+
let n = Ut(e), r = Number.isFinite(n), i = Gt(e, t), a = ne(bn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, Sn.value, Cn.value) : 0);
|
|
618
|
+
return {
|
|
619
|
+
x: i,
|
|
620
|
+
y: r ? ne(n) : NaN,
|
|
621
|
+
v: n,
|
|
622
|
+
value: r ? n : null,
|
|
623
|
+
y0: a,
|
|
624
|
+
i: t,
|
|
625
|
+
xValue: Wt(e, t)
|
|
626
|
+
};
|
|
627
|
+
}), ae = (e) => e >= 0 && e < c.length && Number.isFinite(c[e]?.value), oe = c.filter((e) => Number.isFinite(e.value) && !ae(e.i - 1) && !ae(e.i + 1)), l = b.useValueRange ? oe.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : oe.filter((e) => e.i >= s && e.i < ie), u = b.useValueRange ? c.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : c.slice(s, ie);
|
|
628
|
+
return {
|
|
629
|
+
fullSet: c.length >= 2 ? a ? e(b.cutNullValues ? c : c.filter((e) => e.value != null)) : b.smoothMinimap || i ? b.cutNullValues ? ee(c) : te(c.filter((e) => e.value != null)) : b.cutNullValues ? r(c) : n(c.filter((e) => e.value != null)) : "",
|
|
630
|
+
points: c,
|
|
631
|
+
selectionSet: u.length >= 2 ? a ? e(b.cutNullValues ? u : u.filter((e) => e.value != null)) : b.smoothMinimap || i ? b.cutNullValues ? ee(u) : te(u.filter((e) => e.value != null)) : b.cutNullValues ? r(u) : n(u.filter((e) => e.value != null)) : "",
|
|
632
|
+
sliced: u,
|
|
633
|
+
firstPlot: b.useValueRange ? u[0] || null : c[s] || null,
|
|
634
|
+
lastPlot: b.useValueRange ? u[u.length - 1] || null : c[Math.max(0, ie - 1)] || null,
|
|
635
|
+
hasFull: c.length >= 2,
|
|
636
|
+
hasSelection: u.length >= 2,
|
|
637
|
+
fullMarkers: oe,
|
|
638
|
+
selectionMarkers: l
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
let H = u(() => b.minimap.length ? On(b.minimap) : []), U = u(() => b.allMinimaps.length ? b.allMinimaps.map((e, t) => {
|
|
642
|
+
let n = On(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
643
|
+
return {
|
|
644
|
+
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
645
|
+
color: e?.color,
|
|
646
|
+
...n,
|
|
647
|
+
temperatureColors: e?.temperatureColors ?? null,
|
|
648
|
+
isVisible: e.isVisible,
|
|
649
|
+
type: e.type || void 0,
|
|
650
|
+
dashed: e.dashed ?? !1,
|
|
651
|
+
useStepper: !!e.useStepper
|
|
652
|
+
};
|
|
653
|
+
}) : []), W = u(() => {
|
|
654
|
+
if (b.useValueRange) {
|
|
655
|
+
let e = Vt(S.value), t = Vt(C.value);
|
|
656
|
+
return {
|
|
657
|
+
x: e,
|
|
658
|
+
width: Math.max(0, t - e)
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
let e = z.value, t = Math.max(e + 1, B.value);
|
|
662
|
+
return {
|
|
663
|
+
x: V.value * e + (b.minimapCompact ? 0 : V.value / 2),
|
|
664
|
+
width: V.value * (t - e) - V.value
|
|
665
|
+
};
|
|
666
|
+
}), G = _(b.minimapSelectedIndex), kn = (e) => Math.round(b.min + e), An = u({
|
|
667
|
+
get() {
|
|
668
|
+
return E.value ? z.value : Number(k.value);
|
|
669
|
+
},
|
|
670
|
+
set(e) {
|
|
671
|
+
if (E.value) {
|
|
672
|
+
if (b.useValueRange) {
|
|
673
|
+
let t = jt(e);
|
|
674
|
+
Un(Math.min(Math.max(Number(b.min), t), Number(C.value) - O.value));
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
Un(kn(Math.round(+e || 0)));
|
|
678
|
+
} else {
|
|
679
|
+
let t = jt(e), n = Number(C.value) - O.value, r = Math.min(Math.max(b.min, t), n);
|
|
680
|
+
zn.value && (zn.value.valueAsNumber = r), Un(r);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}), jn = u({
|
|
684
|
+
get() {
|
|
685
|
+
return E.value ? Math.max(z.value, B.value - 1) : Number(A.value);
|
|
686
|
+
},
|
|
687
|
+
set(e) {
|
|
688
|
+
if (E.value) {
|
|
689
|
+
if (b.useValueRange) {
|
|
690
|
+
let t = jt(e);
|
|
691
|
+
Gn(Math.max(Number(S.value) + O.value, Math.min(t, Number(b.max))));
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
Gn(kn(Math.round(+e || 0) + 1));
|
|
695
|
+
} else {
|
|
696
|
+
let t = jt(e), n = Number(S.value) + O.value, r = Math.max(n, Math.min(t, b.max));
|
|
697
|
+
Bn.value && (Bn.value.valueAsNumber = r), Gn(r);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}), Mn = 0;
|
|
701
|
+
function Nn(e, t) {
|
|
702
|
+
if (t === Mn) {
|
|
703
|
+
if (b.useValueRange) {
|
|
704
|
+
G.value = Number.isFinite(Number(e)) ? Vt(Number(e)) : null;
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
G.value = cn(b.valueStart) + e;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
let Pn = c(Nn, 60);
|
|
711
|
+
y(() => b.minimapSelectedIndex, (e, t) => {
|
|
712
|
+
if (Mn += 1, [null, void 0].includes(e)) {
|
|
713
|
+
G.value = null;
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
e !== t && Pn(e, Mn);
|
|
717
|
+
}, { immediate: !0 });
|
|
718
|
+
function Fn(e) {
|
|
719
|
+
if (Lt.value) return;
|
|
720
|
+
G.value = e;
|
|
721
|
+
let t = z.value, n = B.value;
|
|
722
|
+
e >= t && e < n && !X.value && M("trapMouse", e - t);
|
|
723
|
+
}
|
|
724
|
+
function In(e) {
|
|
725
|
+
let t = Ht(e), n = b.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
|
|
726
|
+
point: e,
|
|
727
|
+
index: n,
|
|
728
|
+
x: Number(e?.x),
|
|
729
|
+
distance: Math.abs(Number(e?.x) - t)
|
|
730
|
+
}))).filter((e) => Number.isFinite(e.x));
|
|
731
|
+
return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
|
|
732
|
+
}
|
|
733
|
+
function Ln(e) {
|
|
734
|
+
if (!on.value || Lt.value) return;
|
|
735
|
+
let t = Rr(e.clientX);
|
|
736
|
+
if (b.useValueRange) {
|
|
737
|
+
let e = In(t);
|
|
738
|
+
if (!e) {
|
|
739
|
+
Rn();
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
G.value = Vt(e.x), M("trapMouse", e.index), M("trapMouseValue", e.x);
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
Fn(zr(t));
|
|
746
|
+
}
|
|
747
|
+
function Rn() {
|
|
748
|
+
G.value = null, !Lt.value && (M("trapMouse", null), M("trapMouseValue", null));
|
|
749
|
+
}
|
|
750
|
+
let zn = _(null), Bn = _(null);
|
|
751
|
+
function Vn(e) {
|
|
752
|
+
if (typeof e == "object" && e && "target" in e) {
|
|
753
|
+
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
754
|
+
return Number.isFinite(n) ? n : NaN;
|
|
755
|
+
}
|
|
756
|
+
let t = +e;
|
|
757
|
+
return Number.isFinite(t) ? t : NaN;
|
|
758
|
+
}
|
|
759
|
+
let Hn = 0;
|
|
760
|
+
function Un(e) {
|
|
761
|
+
T.value = !0;
|
|
762
|
+
let t = Vn(e);
|
|
763
|
+
Number.isFinite(t) && (cancelAnimationFrame(Hn), Hn = requestAnimationFrame(() => {
|
|
764
|
+
k.value = t;
|
|
765
|
+
}));
|
|
766
|
+
}
|
|
767
|
+
let Wn = 0;
|
|
768
|
+
function Gn(e) {
|
|
769
|
+
T.value = !0;
|
|
770
|
+
let t = Vn(e);
|
|
771
|
+
Number.isFinite(t) && (cancelAnimationFrame(Wn), Wn = requestAnimationFrame(() => {
|
|
772
|
+
A.value = t;
|
|
773
|
+
}));
|
|
774
|
+
}
|
|
775
|
+
de(() => {
|
|
776
|
+
cancelAnimationFrame(Hn), cancelAnimationFrame(Wn);
|
|
777
|
+
});
|
|
778
|
+
let Kn = u(() => b.valueEnd - b.valueStart), qn = u(() => Kn.value < b.max - b.min), Jn = _(!1), Yn = _(null), Xn = u(() => (qt.value - 48) / (b.max - b.min) * Kn.value), Zn = u(() => Math.max(1, qt.value - Ot - Xn.value)), Qn = u(() => Math.max(1, b.max - b.min - Kn.value)), $n = u(() => Qn.value / Zn.value), er = _(0), tr = _(0), nr = _(0), rr = _(0), K = null, q = null, J = null, Y = null, ir = _(b.min);
|
|
779
|
+
function ar(e) {
|
|
780
|
+
if (!x.value) return b.min;
|
|
781
|
+
let t = x.value.getBoundingClientRect(), n = t.left + Ot / 2, r = t.right - Ot / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, b.max - b.min);
|
|
782
|
+
return Math.round(b.min + a * o);
|
|
783
|
+
}
|
|
784
|
+
let or = async (e) => {
|
|
785
|
+
if (T.value = !0, Z.value = !0, !b.enableSelectionDrag) return;
|
|
786
|
+
let t = e.type === "touchstart";
|
|
787
|
+
t || e.stopPropagation();
|
|
788
|
+
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
|
|
789
|
+
if (!r || !(r instanceof Element) || r.classList?.contains("range-handle") || r.classList?.contains("vue-ui-zoom-compact-minimap-handle") || r.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
790
|
+
Jn.value = !0;
|
|
791
|
+
let a = t ? n ? n.clientX : 0 : e.clientX;
|
|
792
|
+
if (Yn.value = a, er.value = a, b.focusOnDrag && !qn.value && x.value) {
|
|
793
|
+
ir.value = ar(a);
|
|
794
|
+
let e = Math.min(.95, Math.max(.05, b.focusRangeRatio)), t = b.max - b.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = ir.value - r;
|
|
795
|
+
o = Math.max(b.min, Math.min(o, b.max - n));
|
|
796
|
+
let ee = Math.min(b.max, o + n);
|
|
797
|
+
k.value = o, A.value = ee, Jt(o), Yt(ee), i(x.value, "mouseup"), await le(), i(x.value, "mousedown", { clientX: a });
|
|
798
|
+
}
|
|
799
|
+
tr.value = S.value, nr.value = C.value, rr.value = $n.value, K = t ? "touchmove" : "mousemove", q = t ? "touchend" : "mouseup", J = t ? cr : sr, Y = t ? dr : ur, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
|
|
800
|
+
};
|
|
801
|
+
function sr(e) {
|
|
802
|
+
Jn.value && lr(e.clientX);
|
|
803
|
+
}
|
|
804
|
+
function cr(e) {
|
|
805
|
+
if (!Jn.value || !x.value) return;
|
|
806
|
+
let t = e.target;
|
|
807
|
+
if (!(t instanceof Element) || !x.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
808
|
+
e.preventDefault();
|
|
809
|
+
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
810
|
+
n && lr(n.clientX);
|
|
811
|
+
}
|
|
812
|
+
function lr(e) {
|
|
813
|
+
if (!Jn.value) return;
|
|
814
|
+
let t = ar(er.value), n = ar(e) - t, r = Math.round(tr.value + n);
|
|
815
|
+
r = Math.max(b.min, Math.min(r, b.max - Kn.value));
|
|
816
|
+
let i = r + Kn.value;
|
|
817
|
+
k.value = r, A.value = i, Jt(r), Yt(i);
|
|
818
|
+
}
|
|
819
|
+
function ur() {
|
|
820
|
+
fr();
|
|
821
|
+
}
|
|
822
|
+
function dr() {
|
|
823
|
+
fr();
|
|
824
|
+
}
|
|
825
|
+
function fr() {
|
|
826
|
+
Jn.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, j();
|
|
827
|
+
}
|
|
828
|
+
let X = _(!1), pr = _(null), mr = _(null), hr = _(1), gr = _(1), Z = _(!1);
|
|
829
|
+
function _r() {
|
|
830
|
+
if (pr.value) {
|
|
831
|
+
let e = Math.round(pr.value.getBoundingClientRect().width);
|
|
832
|
+
e !== hr.value && (hr.value = e);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
function vr() {
|
|
836
|
+
if (mr.value) {
|
|
837
|
+
let e = Math.round(mr.value.getBoundingClientRect().width);
|
|
838
|
+
e !== gr.value && (gr.value = e);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
pe(() => {
|
|
842
|
+
_r(), vr();
|
|
843
|
+
});
|
|
844
|
+
let yr = _(0);
|
|
845
|
+
function br(e) {
|
|
846
|
+
yr.value = +(e === "start");
|
|
847
|
+
}
|
|
848
|
+
let xr = _(!1), Sr = _({
|
|
849
|
+
width: 0,
|
|
850
|
+
left: 0
|
|
851
|
+
});
|
|
852
|
+
y([S, C], async () => {
|
|
853
|
+
if (await le(), !pr.value || !mr.value) {
|
|
854
|
+
xr.value = !1, Sr.value = {
|
|
855
|
+
width: 0,
|
|
856
|
+
left: 0
|
|
857
|
+
};
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
let e = pr.value.getBoundingClientRect(), t = mr.value.getBoundingClientRect();
|
|
861
|
+
xr.value = e.x + e.width > t.x;
|
|
862
|
+
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
863
|
+
Sr.value = {
|
|
864
|
+
width: i,
|
|
865
|
+
left: (n + r) / 2 - i / 2
|
|
866
|
+
};
|
|
867
|
+
}), pe(() => {
|
|
868
|
+
_r(), vr();
|
|
869
|
+
}), y(() => b.labelLeft, () => {
|
|
870
|
+
le(_r);
|
|
871
|
+
}, { deep: !0 }), y(() => b.labelRight, () => {
|
|
872
|
+
le(vr);
|
|
873
|
+
}, { deep: !0 });
|
|
874
|
+
let Q = u(() => {
|
|
875
|
+
let e = "", t = "", n = !1;
|
|
876
|
+
if (o(b.customFormat)) try {
|
|
877
|
+
let r = b.customFormat({
|
|
878
|
+
absoluteIndex: S.value,
|
|
879
|
+
seriesIndex: S.value,
|
|
880
|
+
datapoint: b.selectedSeries,
|
|
881
|
+
timeLabel: b.preciseLabels[S.value],
|
|
882
|
+
side: "left"
|
|
883
|
+
}), i = b.customFormat({
|
|
884
|
+
absoluteIndex: Rt.value,
|
|
885
|
+
seriesIndex: -1,
|
|
886
|
+
datapoint: b.selectedSeries,
|
|
887
|
+
timeLabel: b.useValueRange ? null : b.preciseLabels[Rt.value],
|
|
888
|
+
side: "right"
|
|
889
|
+
});
|
|
890
|
+
typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
|
|
891
|
+
} catch {
|
|
892
|
+
n = !1;
|
|
893
|
+
}
|
|
894
|
+
if (!n) {
|
|
895
|
+
let n = b.useValueRange ? { text: String(Math.round(S.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === S.value) : b.timeLabels.find((e) => e.absoluteIndex === S.value), r = b.useValueRange ? { text: String(Math.round(C.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === Rt.value) : b.timeLabels.find((e) => e.absoluteIndex === Rt.value);
|
|
896
|
+
e = n ? n.text : "", t = r ? r.text : "";
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
left: e,
|
|
900
|
+
right: t
|
|
901
|
+
};
|
|
902
|
+
});
|
|
903
|
+
de(() => {
|
|
904
|
+
L.value && L.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
|
|
905
|
+
});
|
|
906
|
+
let Cr = u(() => {
|
|
907
|
+
if (!on.value || G.value === null) return null;
|
|
908
|
+
if (b.useValueRange) {
|
|
909
|
+
let e = G.value;
|
|
910
|
+
return e < W.value.x || e > W.value.x + W.value.width ? null : {
|
|
911
|
+
x1: e,
|
|
912
|
+
x2: e,
|
|
913
|
+
y1: 0,
|
|
914
|
+
y2: Math.max(I.value.height, 0),
|
|
915
|
+
stroke: b.minimapIndicatorColor,
|
|
916
|
+
"stroke-linecap": "round",
|
|
917
|
+
"stroke-dasharray": 2,
|
|
918
|
+
"stroke-width": 1
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
if (G.value >= z.value && G.value < B.value) {
|
|
922
|
+
let e = G.value, t = V.value * e + (b.minimapCompact ? 0 : V.value / 2);
|
|
923
|
+
return {
|
|
924
|
+
x1: t,
|
|
925
|
+
x2: t,
|
|
926
|
+
y1: 0,
|
|
927
|
+
y2: Math.max(I.value.height, 0),
|
|
928
|
+
stroke: b.minimapIndicatorColor,
|
|
929
|
+
"stroke-linecap": "round",
|
|
930
|
+
"stroke-dasharray": 2,
|
|
931
|
+
"stroke-width": 1
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
return null;
|
|
935
|
+
}), wr = u(() => Number(S.value) < Number(C.value) - 1), Tr = u(() => Number(S.value) > Number(b.min)), Er = u(() => Number(C.value) < Number(b.max)), Dr = u(() => Number(C.value) > Number(S.value) + 1);
|
|
936
|
+
function Or(e) {
|
|
937
|
+
let t = Number(S.value) + e;
|
|
938
|
+
e > 0 && !wr.value || e < 0 && !Tr.value || (T.value = !0, k.value = t, j());
|
|
939
|
+
}
|
|
940
|
+
function kr(e) {
|
|
941
|
+
let t = Number(C.value) + e;
|
|
942
|
+
e > 0 && !Er.value || e < 0 && !Dr.value || (T.value = !0, A.value = t, j());
|
|
943
|
+
}
|
|
944
|
+
let Ar = {
|
|
945
|
+
plus: () => Or(1),
|
|
946
|
+
minus: () => Or(-1),
|
|
947
|
+
canPlus: wr,
|
|
948
|
+
canMinus: Tr
|
|
949
|
+
}, jr = {
|
|
950
|
+
plus: () => kr(1),
|
|
951
|
+
minus: () => kr(-1),
|
|
952
|
+
canPlus: Er,
|
|
953
|
+
canMinus: Dr
|
|
954
|
+
};
|
|
955
|
+
function Mr(e) {
|
|
956
|
+
if (!e || Nr(e.target)) return;
|
|
957
|
+
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
958
|
+
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (Ar.plus(), jr.plus()) : (Ar.minus(), jr.minus()));
|
|
959
|
+
}
|
|
960
|
+
function Nr(e) {
|
|
961
|
+
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
962
|
+
}
|
|
963
|
+
function Pr(e) {
|
|
964
|
+
if (!w.value || !b.minimapCompact) return;
|
|
965
|
+
let t = x.value;
|
|
966
|
+
if (!t) return;
|
|
967
|
+
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
968
|
+
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
969
|
+
}
|
|
970
|
+
function Fr(e, t) {
|
|
971
|
+
if (!t || Nr(t.target)) return;
|
|
972
|
+
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
973
|
+
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? Ar.plus() : Ar.minus() : i ? jr.plus() : jr.minus(), le(() => Pr(e)));
|
|
974
|
+
}
|
|
975
|
+
let Ir = u(() => ({
|
|
976
|
+
tabindex: 0,
|
|
977
|
+
role: "slider",
|
|
978
|
+
"aria-label": "Range start",
|
|
979
|
+
"aria-valuemin": Number(b.min),
|
|
980
|
+
"aria-valuemax": Math.max(Number(b.min), Number(C.value) - 1),
|
|
981
|
+
"aria-valuenow": Number(S.value)
|
|
982
|
+
})), Lr = u(() => ({
|
|
983
|
+
tabindex: 0,
|
|
984
|
+
role: "slider",
|
|
985
|
+
"aria-label": "Range end",
|
|
986
|
+
"aria-valuemin": Math.min(Number(b.max), Number(S.value) + 1),
|
|
987
|
+
"aria-valuemax": Number(b.max),
|
|
988
|
+
"aria-valuenow": Number(C.value)
|
|
989
|
+
}));
|
|
990
|
+
function Rr(e) {
|
|
991
|
+
if (!It.value) return 0;
|
|
992
|
+
let t = It.value.getBoundingClientRect();
|
|
993
|
+
if (!t.width) return 0;
|
|
994
|
+
let n = (e - t.left) / t.width;
|
|
995
|
+
return Math.min(1, Math.max(0, n)) * I.value.width;
|
|
996
|
+
}
|
|
997
|
+
function zr(e) {
|
|
998
|
+
let t = Math.max(0, R.value - 1), n = Math.max(1, I.value.width), r = Math.min(1, Math.max(0, e / n));
|
|
999
|
+
return Math.min(t, Math.max(0, Math.round(r * t)));
|
|
1000
|
+
}
|
|
1001
|
+
function Br(e) {
|
|
1002
|
+
let t = Math.min(Math.max(0, e), Math.max(1, I.value.width));
|
|
1003
|
+
if (b.useValueRange) {
|
|
1004
|
+
let e = Ht(t);
|
|
1005
|
+
if (D.value === "start") {
|
|
1006
|
+
let t = Math.min(e, Number(C.value) - O.value);
|
|
1007
|
+
k.value = t, Jt(t);
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
if (D.value === "end") {
|
|
1011
|
+
let t = Math.max(Number(S.value) + O.value, e), n = Math.min(Number(b.max), t);
|
|
1012
|
+
A.value = n, Yt(n);
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
let n = zr(t);
|
|
1017
|
+
if (D.value === "start") {
|
|
1018
|
+
let e = Math.min(b.min + n, Number(C.value) - 1);
|
|
1019
|
+
k.value = e, Jt(e);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
if (D.value === "end") {
|
|
1023
|
+
let e = Math.max(Number(S.value) + 1, b.min + n + 1), t = Math.min(b.max, e);
|
|
1024
|
+
A.value = t, Yt(t);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function Vr(e) {
|
|
1028
|
+
if (!D.value || !F.value) return;
|
|
1029
|
+
let t = e.clientX - Pt.value;
|
|
1030
|
+
if (!Nt.value) {
|
|
1031
|
+
if (Math.abs(t) < 4) return;
|
|
1032
|
+
Nt.value = !0, T.value = !0, Z.value = !0;
|
|
1033
|
+
}
|
|
1034
|
+
let n = Rr(e.clientX) - Ft.value;
|
|
1035
|
+
Br(D.value === "start" ? n + Kt.value : n);
|
|
1036
|
+
}
|
|
1037
|
+
function Hr() {
|
|
1038
|
+
if (!D.value) return;
|
|
1039
|
+
window.removeEventListener("mousemove", Vr, !0), window.removeEventListener("mouseup", Hr, !0);
|
|
1040
|
+
let e = Nt.value;
|
|
1041
|
+
D.value = null, Nt.value = !1, Pt.value = 0, Ft.value = 0, e && j();
|
|
1042
|
+
}
|
|
1043
|
+
function Ur(e, t) {
|
|
1044
|
+
if (!w.value || !b.minimapCompact || !F.value) return;
|
|
1045
|
+
t.preventDefault(), t.stopPropagation(), G.value = null;
|
|
1046
|
+
let n = Rr(t.clientX), r = e === "start" ? W.value.x - Kt.value : W.value.x + W.value.width;
|
|
1047
|
+
D.value = e, Nt.value = !1, Pt.value = t.clientX, Ft.value = n - r, window.addEventListener("mousemove", Vr, !0), window.addEventListener("mouseup", Hr, !0);
|
|
1048
|
+
}
|
|
1049
|
+
let Wr = u(() => z.value), Gr = u(() => Math.max(z.value, B.value - 1));
|
|
1050
|
+
u(() => {
|
|
1051
|
+
if (!w.value || !b.minimapCompact || !b.allMinimaps.length) return [];
|
|
1052
|
+
let e = Wr.value, t = Gr.value;
|
|
1053
|
+
return U.value.flatMap((n) => {
|
|
1054
|
+
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
1055
|
+
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
1056
|
+
return i && r.push({
|
|
1057
|
+
key: `${n.key}-left-${i.i}`,
|
|
1058
|
+
x: i.x,
|
|
1059
|
+
y: i.y,
|
|
1060
|
+
color: n.color
|
|
1061
|
+
}), a && t !== e && r.push({
|
|
1062
|
+
key: `${n.key}-right-${a.i}`,
|
|
1063
|
+
x: a.x,
|
|
1064
|
+
y: a.y,
|
|
1065
|
+
color: n.color
|
|
1066
|
+
}), r;
|
|
1067
|
+
});
|
|
1068
|
+
});
|
|
1069
|
+
let $ = u(() => Math.min(40, Math.max(20, b.handleWidth))), Kr = u(() => W.value.x - $.value), qr = u(() => W.value.x + W.value.width);
|
|
1070
|
+
return kt({
|
|
1071
|
+
setStartValue: Un,
|
|
1072
|
+
setEndValue: Gn
|
|
1073
|
+
}), (e, t) => (g(), f("div", {
|
|
1074
|
+
"data-minimap": w.value,
|
|
1075
|
+
"data-dom-to-png-ignore": "",
|
|
1076
|
+
style: h([{ padding: "0 48px" }, {
|
|
1077
|
+
maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
|
|
1078
|
+
margin: s.maxWidth ? "0 auto" : void 0
|
|
1079
|
+
}]),
|
|
1080
|
+
class: "vue-data-ui-zoom",
|
|
1081
|
+
ref_key: "zoomWrapper",
|
|
1082
|
+
ref: x,
|
|
1083
|
+
onMousedown: or,
|
|
1084
|
+
onTouchstart: or
|
|
1085
|
+
}, [p("div", Ce, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Xt.value ? (g(), f("div", we, [me(e.$slots, "reset-action", { reset: sn }, () => [p("button", {
|
|
1086
|
+
tabindex: "0",
|
|
1087
|
+
role: "button",
|
|
1088
|
+
class: "vue-data-ui-refresh-button",
|
|
1089
|
+
style: h({
|
|
1090
|
+
top: w.value ? "36px" : "-16px",
|
|
1091
|
+
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
1092
|
+
}),
|
|
1093
|
+
onClick: sn
|
|
1094
|
+
}, [se(oe, {
|
|
1095
|
+
name: "refresh",
|
|
1096
|
+
stroke: s.textColor
|
|
1097
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : d("", !0)]), p("div", {
|
|
1098
|
+
class: "double-range-slider",
|
|
1099
|
+
ref_key: "minimapWrapper",
|
|
1100
|
+
ref: F,
|
|
1101
|
+
style: h([{ "z-index": "0" }, w.value ? {
|
|
1102
|
+
"--minimap-unit-px": V.value + "px",
|
|
1103
|
+
"--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
|
|
1104
|
+
} : void 0]),
|
|
1105
|
+
onMouseenter: t[18] ||= (e) => Z.value = !0,
|
|
1106
|
+
onMouseleave: t[19] ||= (e) => Z.value = !1
|
|
1107
|
+
}, [
|
|
1108
|
+
w.value ? (g(), f("div", Te, [(g(), f("svg", {
|
|
1109
|
+
ref_key: "minimapSvg",
|
|
1110
|
+
ref: It,
|
|
1111
|
+
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
1112
|
+
xmlns: ge(re),
|
|
1113
|
+
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
|
|
1114
|
+
preserveAspectRatio: "none"
|
|
1115
|
+
}, [
|
|
1116
|
+
p("defs", null, [p("linearGradient", {
|
|
1117
|
+
id: Mt.value,
|
|
1118
|
+
x1: "0%",
|
|
1119
|
+
y1: "0%",
|
|
1120
|
+
x2: "0%",
|
|
1121
|
+
y2: "100%"
|
|
1122
|
+
}, [p("stop", {
|
|
1123
|
+
offset: "0%",
|
|
1124
|
+
"stop-color": `${s.minimapLineColor}50`
|
|
1125
|
+
}, null, 8, Oe), t[20] ||= p("stop", {
|
|
1126
|
+
offset: "100%",
|
|
1127
|
+
"stop-color": "transparent"
|
|
1128
|
+
}, null, -1)], 8, De), p("clipPath", { id: `selection_clip_${Mt.value}` }, [p("rect", {
|
|
1129
|
+
x: W.value.x,
|
|
1130
|
+
y: "0",
|
|
1131
|
+
width: Math.max(0, W.value.width),
|
|
1132
|
+
height: Math.max(I.value.height, 0)
|
|
1133
|
+
}, null, 8, Ae)], 8, ke)]),
|
|
1134
|
+
s.minimapCompact ? (g(), f("rect", {
|
|
1135
|
+
key: 0,
|
|
1136
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
1137
|
+
x: 0,
|
|
1138
|
+
y: 0,
|
|
1139
|
+
width: I.value.width,
|
|
1140
|
+
height: I.value.height,
|
|
1141
|
+
fill: "none",
|
|
1142
|
+
stroke: s.minimapFrameColor,
|
|
1143
|
+
rx: 3
|
|
1144
|
+
}, null, 8, je)) : d("", !0),
|
|
1145
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 1 }, [s.minimapMerged ? (g(), f("path", {
|
|
1146
|
+
key: 0,
|
|
1147
|
+
d: `M${H.value.fullSet}`,
|
|
1148
|
+
stroke: `${s.minimapLineColor}`,
|
|
1149
|
+
fill: "none",
|
|
1150
|
+
"stroke-width": "1",
|
|
1151
|
+
"stroke-linecap": "round",
|
|
1152
|
+
"stroke-linejoin": "round",
|
|
1153
|
+
style: { opacity: "0.6" }
|
|
1154
|
+
}, null, 8, Me)) : d("", !0), s.minimapMerged && !s.minimapCompact ? (g(), f("path", {
|
|
1155
|
+
key: 1,
|
|
1156
|
+
d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
|
|
1157
|
+
fill: `url(#${Mt.value})`,
|
|
1158
|
+
stroke: "none",
|
|
1159
|
+
style: { opacity: "0.6" }
|
|
1160
|
+
}, null, 8, Ne)) : s.minimapMerged ? d("", !0) : (g(), f(l, { key: 2 }, [
|
|
1161
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e && !isNaN(n.y) ? (g(), f("rect", {
|
|
1162
|
+
key: 0,
|
|
1163
|
+
x: hn(n.x, t, r),
|
|
1164
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1165
|
+
width: gn(t, r),
|
|
1166
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1167
|
+
fill: e.color,
|
|
1168
|
+
style: { opacity: .6 }
|
|
1169
|
+
}, null, 8, Pe)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1170
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e) => (g(), f("g", null, [e.isVisible ? (g(), f("path", {
|
|
1171
|
+
key: 0,
|
|
1172
|
+
d: `M ${e.fullSet}`,
|
|
1173
|
+
fill: "none",
|
|
1174
|
+
stroke: e.color,
|
|
1175
|
+
style: { opacity: "0.6" },
|
|
1176
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1177
|
+
}, null, 8, Fe)) : d("", !0), e.isVisible && s.cutNullValues ? (g(!0), f(l, { key: 1 }, v(e.fullMarkers, (t) => (g(), f("circle", {
|
|
1178
|
+
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
1179
|
+
cx: t.x,
|
|
1180
|
+
cy: t.y,
|
|
1181
|
+
r: "2",
|
|
1182
|
+
fill: e.color,
|
|
1183
|
+
stroke: P.value,
|
|
1184
|
+
"stroke-width": "0.5",
|
|
1185
|
+
style: { opacity: "0.6" }
|
|
1186
|
+
}, null, 8, Ie))), 128)) : d("", !0)]))), 256)),
|
|
1187
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (t) => (g(), f("g", null, [e.isVisible && t.value !== null ? (g(), f("circle", {
|
|
1188
|
+
key: `sel-plot-under-${e.key}-${t.i}`,
|
|
1189
|
+
cx: t.x,
|
|
1190
|
+
cy: t.y,
|
|
1191
|
+
r: "2",
|
|
1192
|
+
fill: e.color,
|
|
1193
|
+
stroke: P.value,
|
|
1194
|
+
"stroke-width": "0.5",
|
|
1195
|
+
style: { opacity: "0.6" }
|
|
1196
|
+
}, null, 8, Le)) : d("", !0)]))), 256))]))), 256))
|
|
1197
|
+
], 64))], 64)),
|
|
1198
|
+
p("rect", {
|
|
1199
|
+
x: W.value.x,
|
|
1200
|
+
y: 0,
|
|
1201
|
+
width: Math.max(0, W.value.width),
|
|
1202
|
+
height: Math.max(I.value.height, 0),
|
|
1203
|
+
fill: P.value,
|
|
1204
|
+
rx: s.minimapSelectionRadius,
|
|
1205
|
+
stroke: "none"
|
|
1206
|
+
}, null, 8, Re),
|
|
1207
|
+
p("rect", {
|
|
1208
|
+
x: W.value.x,
|
|
1209
|
+
y: 0,
|
|
1210
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1211
|
+
height: Math.max(I.value.height, 0),
|
|
1212
|
+
rx: s.minimapSelectionRadius,
|
|
1213
|
+
fill: P.value,
|
|
1214
|
+
style: h({ opacity: Jn.value || T.value ? 0 : 1 })
|
|
1215
|
+
}, null, 12, ze),
|
|
1216
|
+
p("rect", {
|
|
1217
|
+
x: W.value.x,
|
|
1218
|
+
y: 0,
|
|
1219
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1220
|
+
height: Math.max(I.value.height, 0),
|
|
1221
|
+
fill: s.minimapSelectedColor,
|
|
1222
|
+
rx: s.minimapSelectionRadius,
|
|
1223
|
+
style: h({ opacity: s.minimapSelectedColorOpacity }),
|
|
1224
|
+
tabindex: "0",
|
|
1225
|
+
role: "slider",
|
|
1226
|
+
"aria-label": "Selected range",
|
|
1227
|
+
"aria-valuemin": Number(b.min),
|
|
1228
|
+
"aria-valuemax": Number(b.max),
|
|
1229
|
+
"aria-valuenow": Number(S.value),
|
|
1230
|
+
"aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
|
|
1231
|
+
onKeydown: Mr
|
|
1232
|
+
}, null, 44, Be),
|
|
1233
|
+
!s.minimapMerged && wn.value < 0 ? (g(), f("line", {
|
|
1234
|
+
key: 2,
|
|
1235
|
+
class: "slicer-minimap-zero-line",
|
|
1236
|
+
x1: 0,
|
|
1237
|
+
x2: I.value.width,
|
|
1238
|
+
y1: En.value,
|
|
1239
|
+
y2: En.value,
|
|
1240
|
+
stroke: s.minimapFrameColor,
|
|
1241
|
+
"stroke-width": "0.5"
|
|
1242
|
+
}, null, 8, Ve)) : d("", !0),
|
|
1243
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 3 }, [s.minimapMerged ? (g(), f("g", He, [
|
|
1244
|
+
H.value && H.value.sliced && H.value.sliced.length ? (g(), f(l, { key: 0 }, [H.value.selectionSet ? (g(), f("path", {
|
|
1245
|
+
key: 0,
|
|
1246
|
+
d: `M ${H.value.selectionSet}`,
|
|
1247
|
+
stroke: `${s.minimapLineColor}`,
|
|
1248
|
+
fill: "transparent",
|
|
1249
|
+
"stroke-width": "2",
|
|
1250
|
+
"stroke-linecap": "round",
|
|
1251
|
+
"stroke-linejoin": "round"
|
|
1252
|
+
}, null, 8, Ue)) : d("", !0)], 64)) : d("", !0),
|
|
1253
|
+
H.value && H.value.firstPlot ? (g(), f("circle", {
|
|
1254
|
+
key: 1,
|
|
1255
|
+
cx: H.value.firstPlot.x,
|
|
1256
|
+
cy: H.value.firstPlot.y,
|
|
1257
|
+
"stroke-width": "0.5",
|
|
1258
|
+
stroke: P.value,
|
|
1259
|
+
r: "3",
|
|
1260
|
+
fill: s.minimapLineColor
|
|
1261
|
+
}, null, 8, We)) : d("", !0),
|
|
1262
|
+
H.value && H.value.lastPlot ? (g(), f("circle", {
|
|
1263
|
+
key: 2,
|
|
1264
|
+
cx: H.value.lastPlot.x,
|
|
1265
|
+
cy: H.value.lastPlot.y,
|
|
1266
|
+
"stroke-width": "0.5",
|
|
1267
|
+
stroke: P.value,
|
|
1268
|
+
r: "3",
|
|
1269
|
+
fill: s.minimapLineColor
|
|
1270
|
+
}, null, 8, Ge)) : d("", !0)
|
|
1271
|
+
])) : (g(), f("g", Ke, [
|
|
1272
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e && !isNaN(n.y) ? (g(), f("rect", {
|
|
1273
|
+
key: 0,
|
|
1274
|
+
x: hn(n.x, t, r),
|
|
1275
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1276
|
+
width: gn(t, r),
|
|
1277
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1278
|
+
fill: e.color,
|
|
1279
|
+
style: h({ opacity: +(r >= k.value && r < A.value) })
|
|
1280
|
+
}, null, 12, qe)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1281
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e, t) => (g(), f("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (g(), f("path", {
|
|
1282
|
+
key: 0,
|
|
1283
|
+
d: `M ${e.selectionSet}`,
|
|
1284
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1285
|
+
fill: "transparent",
|
|
1286
|
+
"stroke-width": "2",
|
|
1287
|
+
"stroke-linecap": "round",
|
|
1288
|
+
"stroke-linejoin": "round",
|
|
1289
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1290
|
+
}, null, 8, Je)) : d("", !0)]))), 128)),
|
|
1291
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", { key: String(e.key) }, [(g(!0), f(l, null, v(e.sliced, (t) => (g(), f("g", null, [e.isVisible && t.value !== null ? (g(), f("circle", {
|
|
1292
|
+
key: 0,
|
|
1293
|
+
cx: t.x,
|
|
1294
|
+
cy: t.y,
|
|
1295
|
+
r: "2",
|
|
1296
|
+
fill: e.color,
|
|
1297
|
+
stroke: P.value,
|
|
1298
|
+
"stroke-width": "0.5",
|
|
1299
|
+
style: { opacity: "0.6" }
|
|
1300
|
+
}, null, 8, Ye)) : d("", !0)]))), 256))]))), 128))
|
|
1301
|
+
]))], 64)),
|
|
1302
|
+
e.$slots.slotMap ? me(e.$slots, "slotMap", ue(ce({ key: 4 }, {
|
|
1303
|
+
width: Math.max(0, I.value.width),
|
|
1304
|
+
height: Math.max(0, I.value.height),
|
|
1305
|
+
zeroY: En.value,
|
|
1306
|
+
unitW: Math.max(0, V.value)
|
|
1307
|
+
})), void 0, !0) : d("", !0),
|
|
1308
|
+
G.value !== null && !X.value ? (g(), f("line", ue(ce({ key: 5 }, Cr.value)), null, 16)) : d("", !0),
|
|
1309
|
+
p("rect", {
|
|
1310
|
+
x: 0,
|
|
1311
|
+
y: 0,
|
|
1312
|
+
width: Math.max(0, I.value.width),
|
|
1313
|
+
height: Math.max(0, I.value.height),
|
|
1314
|
+
fill: "transparent",
|
|
1315
|
+
style: h([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
|
|
1316
|
+
onMousedown: t[0] ||= (e) => X.value = !0,
|
|
1317
|
+
onMouseup: t[1] ||= (e) => X.value = !1,
|
|
1318
|
+
onMousemove: Ln,
|
|
1319
|
+
onMouseleave: Rn
|
|
1320
|
+
}, null, 44, Xe),
|
|
1321
|
+
w.value && s.minimapCompact ? (g(), f(l, { key: 6 }, [
|
|
1322
|
+
p("rect", {
|
|
1323
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1324
|
+
x: Kr.value,
|
|
1325
|
+
y: 0,
|
|
1326
|
+
width: $.value,
|
|
1327
|
+
height: I.value.height,
|
|
1328
|
+
fill: s.handleFill || P.value,
|
|
1329
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1330
|
+
"stroke-width": s.handleBorderWidth,
|
|
1331
|
+
rx: 3
|
|
1332
|
+
}, null, 8, Ze),
|
|
1333
|
+
s.handleType && s.handleType !== "empty" ? (g(), f("g", {
|
|
1334
|
+
key: 0,
|
|
1335
|
+
class: "compact-handle-icon",
|
|
1336
|
+
transform: `translate(${Kr.value}, 0)`,
|
|
1337
|
+
style: { "pointer-events": "none" }
|
|
1338
|
+
}, [(g(), f("svg", {
|
|
1339
|
+
width: $.value,
|
|
1340
|
+
height: I.value.height,
|
|
1341
|
+
viewBox: "0 0 20 20",
|
|
1342
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1343
|
+
}, [s.handleType === "arrow" ? (g(), f("path", {
|
|
1344
|
+
key: 0,
|
|
1345
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1346
|
+
fill: P.value,
|
|
1347
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1348
|
+
"stroke-width": .618,
|
|
1349
|
+
"stroke-linejoin": "round",
|
|
1350
|
+
"stroke-linecap": "round"
|
|
1351
|
+
}, null, 8, et)) : s.handleType === "chevron" ? (g(), f("path", {
|
|
1352
|
+
key: 1,
|
|
1353
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1354
|
+
fill: "none",
|
|
1355
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1356
|
+
"stroke-width": .618,
|
|
1357
|
+
"stroke-linejoin": "round",
|
|
1358
|
+
"stroke-linecap": "round"
|
|
1359
|
+
}, null, 8, tt)) : s.handleType === "grab" ? (g(), f("path", {
|
|
1360
|
+
key: 2,
|
|
1361
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1362
|
+
fill: s.handleIconColor || s.textColor,
|
|
1363
|
+
stroke: "none",
|
|
1364
|
+
opacity: "0.6"
|
|
1365
|
+
}, null, 8, nt)) : d("", !0)], 8, $e))], 8, Qe)) : d("", !0),
|
|
1366
|
+
p("rect", {
|
|
1367
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1368
|
+
x: qr.value,
|
|
1369
|
+
y: 0,
|
|
1370
|
+
width: $.value,
|
|
1371
|
+
height: I.value.height,
|
|
1372
|
+
fill: s.handleFill || P.value,
|
|
1373
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1374
|
+
"stroke-width": s.handleBorderWidth,
|
|
1375
|
+
rx: 3
|
|
1376
|
+
}, null, 8, rt),
|
|
1377
|
+
s.handleType && s.handleType !== "empty" ? (g(), f("g", {
|
|
1378
|
+
key: 1,
|
|
1379
|
+
class: "compact-handle-icon",
|
|
1380
|
+
transform: `translate(${qr.value}, 0)`,
|
|
1381
|
+
style: { "pointer-events": "none" }
|
|
1382
|
+
}, [(g(), f("svg", {
|
|
1383
|
+
width: $.value,
|
|
1384
|
+
height: I.value.height,
|
|
1385
|
+
viewBox: "0 0 20 20",
|
|
1386
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1387
|
+
}, [s.handleType === "arrow" ? (g(), f("path", {
|
|
1388
|
+
key: 0,
|
|
1389
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1390
|
+
fill: P.value,
|
|
1391
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1392
|
+
"stroke-width": .618,
|
|
1393
|
+
"stroke-linejoin": "round",
|
|
1394
|
+
"stroke-linecap": "round"
|
|
1395
|
+
}, null, 8, ot)) : s.handleType === "chevron" ? (g(), f("path", {
|
|
1396
|
+
key: 1,
|
|
1397
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1398
|
+
fill: "none",
|
|
1399
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1400
|
+
"stroke-width": .618,
|
|
1401
|
+
"stroke-linejoin": "round",
|
|
1402
|
+
"stroke-linecap": "round"
|
|
1403
|
+
}, null, 8, st)) : s.handleType === "grab" ? (g(), f("path", {
|
|
1404
|
+
key: 2,
|
|
1405
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1406
|
+
fill: s.handleIconColor || s.textColor,
|
|
1407
|
+
stroke: "none",
|
|
1408
|
+
opacity: "0.6"
|
|
1409
|
+
}, null, 8, ct)) : d("", !0)], 8, at))], 8, it)) : d("", !0)
|
|
1410
|
+
], 64)) : d("", !0),
|
|
1411
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 7 }, [s.minimapMerged ? (g(), f("g", lt, [
|
|
1412
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (g(), f("circle", {
|
|
1413
|
+
key: 0,
|
|
1414
|
+
cx: H.value.firstPlot.x,
|
|
1415
|
+
cy: H.value.firstPlot.y,
|
|
1416
|
+
"stroke-width": "0.5",
|
|
1417
|
+
stroke: P.value,
|
|
1418
|
+
r: "4",
|
|
1419
|
+
fill: s.minimapLineColor
|
|
1420
|
+
}, null, 8, ut)) : d("", !0),
|
|
1421
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (g(), f("circle", {
|
|
1422
|
+
key: 1,
|
|
1423
|
+
cx: H.value.firstPlot.x,
|
|
1424
|
+
cy: H.value.firstPlot.y,
|
|
1425
|
+
r: 2,
|
|
1426
|
+
fill: P.value
|
|
1427
|
+
}, null, 8, dt)) : d("", !0),
|
|
1428
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (g(), f("circle", {
|
|
1429
|
+
key: 2,
|
|
1430
|
+
cx: H.value.lastPlot.x,
|
|
1431
|
+
cy: H.value.lastPlot.y,
|
|
1432
|
+
"stroke-width": "0.5",
|
|
1433
|
+
stroke: P.value,
|
|
1434
|
+
r: "4",
|
|
1435
|
+
fill: s.minimapLineColor
|
|
1436
|
+
}, null, 8, ft)) : d("", !0),
|
|
1437
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (g(), f("circle", {
|
|
1438
|
+
key: 3,
|
|
1439
|
+
cx: H.value.lastPlot.x,
|
|
1440
|
+
cy: H.value.lastPlot.y,
|
|
1441
|
+
r: "2",
|
|
1442
|
+
fill: P.value
|
|
1443
|
+
}, null, 8, pt)) : d("", !0)
|
|
1444
|
+
])) : (g(), f("g", mt, [(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e, t) => (g(), f("g", { key: String(e.key) }, [
|
|
1445
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (g(), f("path", {
|
|
1446
|
+
key: 0,
|
|
1447
|
+
d: `M ${e.selectionSet}`,
|
|
1448
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1449
|
+
fill: "transparent",
|
|
1450
|
+
"stroke-width": "2",
|
|
1451
|
+
"stroke-linecap": "round",
|
|
1452
|
+
"stroke-linejoin": "round",
|
|
1453
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1454
|
+
}, null, 8, ht)) : d("", !0),
|
|
1455
|
+
e.isVisible && s.cutNullValues ? (g(!0), f(l, { key: 1 }, v(e.selectionMarkers, (t) => (g(), f("circle", {
|
|
1456
|
+
key: `sel-dot-${e.key}-${t.i}`,
|
|
1457
|
+
cx: t.x,
|
|
1458
|
+
cy: t.y,
|
|
1459
|
+
r: "2.5",
|
|
1460
|
+
fill: e.color,
|
|
1461
|
+
stroke: P.value,
|
|
1462
|
+
"stroke-width": "0.5"
|
|
1463
|
+
}, null, 8, gt))), 128)) : d("", !0),
|
|
1464
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
|
|
1465
|
+
key: 2,
|
|
1466
|
+
cx: e.firstPlot.x,
|
|
1467
|
+
cy: e.firstPlot.y,
|
|
1468
|
+
"stroke-width": "0.5",
|
|
1469
|
+
stroke: P.value,
|
|
1470
|
+
r: "4",
|
|
1471
|
+
fill: e.color
|
|
1472
|
+
}, null, 8, _t)) : d("", !0),
|
|
1473
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
|
|
1474
|
+
key: 3,
|
|
1475
|
+
cx: e.firstPlot.x,
|
|
1476
|
+
cy: e.firstPlot.y,
|
|
1477
|
+
r: "2",
|
|
1478
|
+
fill: P.value
|
|
1479
|
+
}, null, 8, vt)) : d("", !0),
|
|
1480
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
|
|
1481
|
+
key: 4,
|
|
1482
|
+
cx: e.lastPlot.x,
|
|
1483
|
+
cy: e.lastPlot.y,
|
|
1484
|
+
"stroke-width": "0.5",
|
|
1485
|
+
stroke: P.value,
|
|
1486
|
+
r: "4",
|
|
1487
|
+
fill: e.color
|
|
1488
|
+
}, null, 8, yt)) : d("", !0),
|
|
1489
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
|
|
1490
|
+
key: 5,
|
|
1491
|
+
cx: e.lastPlot.x,
|
|
1492
|
+
cy: e.lastPlot.y,
|
|
1493
|
+
r: "2",
|
|
1494
|
+
fill: P.value
|
|
1495
|
+
}, null, 8, bt)) : d("", !0)
|
|
1496
|
+
]))), 128)), (g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", { key: String(e.key) }, [(g(!0), f(l, null, v(e.points, (t) => (g(), f("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (g(), f("circle", {
|
|
1497
|
+
key: `sel-plot-${e.key}-${t.i}`,
|
|
1498
|
+
cx: t.x,
|
|
1499
|
+
cy: t.y,
|
|
1500
|
+
r: "2.5",
|
|
1501
|
+
fill: e.color,
|
|
1502
|
+
stroke: P.value,
|
|
1503
|
+
"stroke-width": "0.5"
|
|
1504
|
+
}, null, 8, xt)) : d("", !0)]))), 256))]))), 128))]))], 64))
|
|
1505
|
+
], 8, Ee))])) : d("", !0),
|
|
1506
|
+
p("div", {
|
|
1507
|
+
class: "slider-track",
|
|
1508
|
+
style: h({ visibility: w.value && s.minimapCompact ? "hidden" : "visible" })
|
|
1509
|
+
}, null, 4),
|
|
1510
|
+
p("div", {
|
|
1511
|
+
class: m({
|
|
1512
|
+
"range-highlight": !0,
|
|
1513
|
+
move: s.enableSelectionDrag
|
|
1514
|
+
}),
|
|
1515
|
+
onMousedown: t[2] ||= (e) => X.value = !0,
|
|
1516
|
+
onMouseup: t[3] ||= (e) => X.value = !1,
|
|
1517
|
+
style: h({
|
|
1518
|
+
...N.value,
|
|
1519
|
+
cursor: X.value ? "grabbing" : "grab",
|
|
1520
|
+
visibility: w.value && s.minimapCompact ? "hidden" : "visible"
|
|
1521
|
+
})
|
|
1522
|
+
}, null, 38),
|
|
1523
|
+
s.enableRangeHandles ? ye((g(), f("input", {
|
|
1524
|
+
key: 1,
|
|
1525
|
+
"aria-label": "range-handle-left",
|
|
1526
|
+
ref_key: "rangeStart",
|
|
1527
|
+
ref: zn,
|
|
1528
|
+
type: "range",
|
|
1529
|
+
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1530
|
+
class: m({
|
|
1531
|
+
"range-left": !0,
|
|
1532
|
+
"range-handle": !0,
|
|
1533
|
+
"range-minimap": w.value && s.verticalHandles,
|
|
1534
|
+
"range-invisible": w.value && s.minimapCompact
|
|
1535
|
+
}),
|
|
1536
|
+
min: s.min,
|
|
1537
|
+
max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
|
|
1538
|
+
tabindex: w.value ? -1 : 0,
|
|
1539
|
+
"onUpdate:modelValue": t[4] ||= (e) => An.value = e,
|
|
1540
|
+
onFocus: t[5] ||= (e) => w.value && e.target.blur(),
|
|
1541
|
+
onInput: t[6] ||= (e) => An.value = e.target.valueAsNumber,
|
|
1542
|
+
onChange: j,
|
|
1543
|
+
onKeyup: be(j, ["enter"]),
|
|
1544
|
+
onBlur: j,
|
|
1545
|
+
onMouseenter: t[7] ||= (e) => br("start"),
|
|
1546
|
+
onPointerup: j
|
|
1547
|
+
}, null, 42, St)), [[
|
|
1548
|
+
ve,
|
|
1549
|
+
An.value,
|
|
1550
|
+
void 0,
|
|
1551
|
+
{ number: !0 }
|
|
1552
|
+
]]) : d("", !0),
|
|
1553
|
+
s.enableRangeHandles ? ye((g(), f("input", {
|
|
1554
|
+
key: 2,
|
|
1555
|
+
"aria-label": "range-handle-right",
|
|
1556
|
+
ref_key: "rangeEnd",
|
|
1557
|
+
ref: Bn,
|
|
1558
|
+
type: "range",
|
|
1559
|
+
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1560
|
+
class: m({
|
|
1561
|
+
"range-right": !0,
|
|
1562
|
+
"range-handle": !0,
|
|
1563
|
+
"range-minimap": w.value && s.verticalHandles,
|
|
1564
|
+
"range-invisible": w.value && s.minimapCompact
|
|
1565
|
+
}),
|
|
1566
|
+
min: s.min,
|
|
1567
|
+
max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
|
|
1568
|
+
tabindex: w.value ? -1 : 0,
|
|
1569
|
+
onFocus: t[8] ||= (e) => w.value && e.target.blur(),
|
|
1570
|
+
"onUpdate:modelValue": t[9] ||= (e) => jn.value = e,
|
|
1571
|
+
onInput: t[10] ||= (e) => jn.value = e.target.valueAsNumber,
|
|
1572
|
+
onChange: j,
|
|
1573
|
+
onKeyup: be(j, ["enter"]),
|
|
1574
|
+
onBlur: j,
|
|
1575
|
+
onMouseenter: t[11] ||= (e) => br("end"),
|
|
1576
|
+
onPointerup: j
|
|
1577
|
+
}, null, 42, Ct)), [[
|
|
1578
|
+
ve,
|
|
1579
|
+
jn.value,
|
|
1580
|
+
void 0,
|
|
1581
|
+
{ number: !0 }
|
|
1582
|
+
]]) : d("", !0),
|
|
1583
|
+
w.value && s.minimapCompact ? (g(), f("div", wt, [(g(), f("svg", {
|
|
1584
|
+
xmlns: ge(re),
|
|
1585
|
+
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height + 1)}`
|
|
1586
|
+
}, [p("rect", ce({
|
|
1587
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1588
|
+
x: Kr.value,
|
|
1589
|
+
y: 0,
|
|
1590
|
+
width: $.value,
|
|
1591
|
+
height: I.value.height,
|
|
1592
|
+
fill: "transparent",
|
|
1593
|
+
stroke: "none"
|
|
1594
|
+
}, Ir.value, {
|
|
1595
|
+
onKeydown: t[12] ||= (e) => Fr("start", e),
|
|
1596
|
+
onMousedown: t[13] ||= xe((e) => Ur("start", e), ["stop", "prevent"]),
|
|
1597
|
+
onClick: t[14] ||= xe(() => {}, ["stop", "prevent"])
|
|
1598
|
+
}), null, 16, Et), p("rect", ce({
|
|
1599
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1600
|
+
x: qr.value,
|
|
1601
|
+
y: 0,
|
|
1602
|
+
width: $.value,
|
|
1603
|
+
height: I.value.height,
|
|
1604
|
+
fill: "transparent",
|
|
1605
|
+
stroke: "none",
|
|
1606
|
+
rx: 3
|
|
1607
|
+
}, Lr.value, {
|
|
1608
|
+
onKeydown: t[15] ||= (e) => Fr("end", e),
|
|
1609
|
+
onMousedown: t[16] ||= xe((e) => Ur("end", e), ["stop", "prevent"]),
|
|
1610
|
+
onClick: t[17] ||= xe(() => {}, ["stop", "prevent"])
|
|
1611
|
+
}), null, 16, Dt)], 8, Tt))])) : d("", !0),
|
|
1612
|
+
Q.value.left ? (g(), f("div", {
|
|
1613
|
+
key: 4,
|
|
1614
|
+
ref_key: "tooltipLeft",
|
|
1615
|
+
ref: pr,
|
|
1616
|
+
class: m({
|
|
1617
|
+
"range-tooltip": !0,
|
|
1618
|
+
"range-tooltip-visible": Z.value,
|
|
1619
|
+
"range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
|
|
1620
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
|
|
1621
|
+
}),
|
|
1622
|
+
style: h({
|
|
1623
|
+
left: N.value.tooltipLeft,
|
|
1624
|
+
color: ge(ne)(s.selectColor),
|
|
1625
|
+
backgroundColor: s.selectColor,
|
|
1626
|
+
border: `1px solid ${P.value}`,
|
|
1627
|
+
zIndex: `${yr.value + 4}`,
|
|
1628
|
+
visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1629
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1630
|
+
})
|
|
1631
|
+
}, he(Q.value.left), 7)) : d("", !0),
|
|
1632
|
+
(xr.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (g(), f("div", {
|
|
1633
|
+
key: 5,
|
|
1634
|
+
ref: "tooltipMerge",
|
|
1635
|
+
class: m({
|
|
1636
|
+
"range-tooltip": !0,
|
|
1637
|
+
"range-tooltip-visible": Z.value,
|
|
1638
|
+
"range-tooltip-arrow": !0,
|
|
1639
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
|
|
1640
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1641
|
+
}),
|
|
1642
|
+
style: h({
|
|
1643
|
+
left: N.value.tooltipCenter,
|
|
1644
|
+
width: Sr.value.width + "px",
|
|
1645
|
+
color: ge(ne)(s.selectColor),
|
|
1646
|
+
backgroundColor: s.selectColor,
|
|
1647
|
+
border: `1px solid ${P.value}`,
|
|
1648
|
+
zIndex: "4",
|
|
1649
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1650
|
+
})
|
|
1651
|
+
}, he(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : d("", !0),
|
|
1652
|
+
Q.value.right ? (g(), f("div", {
|
|
1653
|
+
key: 6,
|
|
1654
|
+
ref_key: "tooltipRight",
|
|
1655
|
+
ref: mr,
|
|
1656
|
+
class: m({
|
|
1657
|
+
"range-tooltip": !0,
|
|
1658
|
+
"range-tooltip-visible": Z.value,
|
|
1659
|
+
"range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
|
|
1660
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1661
|
+
}),
|
|
1662
|
+
style: h({
|
|
1663
|
+
left: N.value.tooltipRight,
|
|
1664
|
+
color: ge(ne)(s.selectColor),
|
|
1665
|
+
backgroundColor: s.selectColor,
|
|
1666
|
+
border: `1px solid ${P.value}`,
|
|
1667
|
+
zIndex: "4",
|
|
1668
|
+
visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1669
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1670
|
+
})
|
|
1671
|
+
}, he(Q.value.right), 7)) : d("", !0)
|
|
1672
|
+
], 36)], 44, Se));
|
|
1673
|
+
}
|
|
1674
|
+
}, [["__scopeId", "data-v-9797fb0f"]]);
|
|
1675
|
+
//#endregion
|
|
1676
|
+
export { kt as t };
|