vue-data-ui 3.22.6 → 3.22.8
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-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.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-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Teleport as
|
|
2
|
+
import { $ as t, Et as n, G as r, It as i, J as a, Kt as o, Mt as s, Rt as c, S as l, T as u, Wt as ee, Z as te, a as ne, b as re, gt as ie, h as ae, i as oe, kt as se, lt as ce, ot as le, wt as ue, yt as de } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { n as fe, r as pe, t as me } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as he } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-CqqHmnBI.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as Se } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { a as we, c as Te, i as d, n as Ee, o as De, r as Oe, s as f, t as ke } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as je } from "./BaseIcon-C2qlyHc7.js";
|
|
15
|
+
import { t as Me } from "./SlicerPreview-BQFeCw0m.js";
|
|
16
|
+
import { t as Ne } from "./vue-ui-accordion-YyosvEPo.js";
|
|
17
|
+
import { t as Pe } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
18
|
+
import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Le } from "./Legend-ROt6ugzW.js";
|
|
21
|
+
import { t as Re } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
|
|
22
|
+
import { Teleport as ze, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as Be, createElementVNode as g, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineAsyncComponent as We, guardReactiveProps as _, mergeProps as Ge, nextTick as Ke, normalizeClass as qe, normalizeProps as v, normalizeStyle as Je, onBeforeUnmount as Ye, onMounted as Xe, openBlock as y, ref as b, renderSlot as x, resolveDynamicComponent as Ze, shallowRef as Qe, toDisplayString as $e, toRefs as et, unref as S, useSlots as tt, watch as C, watchEffect as nt, withCtx as w } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-xy-canvas.vue
|
|
24
|
-
var
|
|
24
|
+
var rt = /* @__PURE__ */ e({ default: () => mt }), it = ["id"], at = ["id"], ot = {
|
|
25
25
|
class: "sr-only",
|
|
26
26
|
"aria-live": "polite",
|
|
27
27
|
"aria-atomic": "true"
|
|
28
|
-
},
|
|
28
|
+
}, st = ["id"], ct = ["aria-label", "aria-describedby"], lt = {
|
|
29
29
|
key: 0,
|
|
30
30
|
style: {
|
|
31
31
|
position: "absolute",
|
|
@@ -35,10 +35,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
35
35
|
},
|
|
36
36
|
"data-dom-to-png-ignore": "",
|
|
37
37
|
"aria-hidden": "true"
|
|
38
|
-
},
|
|
38
|
+
}, ut = ["id"], dt = ["onClick"], ft = {
|
|
39
39
|
key: 4,
|
|
40
40
|
class: "vue-data-ui-watermark"
|
|
41
|
-
},
|
|
41
|
+
}, pt = ["innerHTML"], mt = /*#__PURE__*/ Ce({
|
|
42
42
|
__name: "vue-ui-xy-canvas",
|
|
43
43
|
props: {
|
|
44
44
|
dataset: {
|
|
@@ -63,25 +63,25 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
63
63
|
"selectX",
|
|
64
64
|
"copyAlt"
|
|
65
65
|
],
|
|
66
|
-
setup(e, { expose:
|
|
67
|
-
let
|
|
66
|
+
setup(e, { expose: Ce, emit: rt }) {
|
|
67
|
+
let mt = We(() => import("./Tooltip-CxOrWlFy.js")), ht = We(() => import("./DataTable-D9NvewTT.js")), gt = We(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), _t = We(() => import("./NonSvgPenAndPaper-BHHNsVVP.js")), vt = We(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_xy_canvas: yt } = he(), { isThemeValid: bt, warnInvalidTheme: xt } = be(), T = e, E = b(r()), D = b(null), St = b(null), O = b(null), k = b(1), A = b(1), Ct = b(!1), j = b(null), wt = b(""), Tt = b(null), M = b([]), Et = b(1), N = b(!0), P = b(!0), Dt = b(null), Ot = b(0), kt = b(!1), At = b(null), jt = b(null), F = b(null), Mt = b(null), Nt = b(0), Pt = b(0), Ft = b(0), I = b(null), It = b(!1), Lt = b(null), Rt = b(null), zt = b(!1), Bt = b(!1), Vt = b(!1), L = b(null), Ht = b(!1), Ut = b(!1), Wt = b(!1), R = b(null), Gt = b({
|
|
68
68
|
x: 0,
|
|
69
69
|
y: 0
|
|
70
|
-
}), z = p(() => Array.isArray(
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}), z = p(() => Array.isArray(en.value) && en.value.length > 0), Kt = rt, qt = tt();
|
|
71
|
+
Xe(() => {
|
|
72
|
+
qt["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
73
73
|
});
|
|
74
|
-
let B = b(
|
|
74
|
+
let B = b(sn()), Jt = p(() => {
|
|
75
75
|
let e = B.value.style.chart.title.text || "XY chart", t = J.value.end - J.value.start;
|
|
76
76
|
return `${e}. ${q.value.filter((e) => !M.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
77
|
-
}),
|
|
77
|
+
}), Yt = p(() => {
|
|
78
78
|
if (R.value === null) return "";
|
|
79
79
|
let e = R.value + J.value.start;
|
|
80
|
-
return `${B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[R.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[R.value]?.text :
|
|
80
|
+
return `${B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[R.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[R.value]?.text : Xn.value[R.value]?.text : Z.value[e]?.text ?? `Point ${e + 1}`}. ${q.value.filter((e) => !M.value.includes(e.absoluteIndex)).map((e) => {
|
|
81
81
|
let t = e.series[R.value], n = t?.value ?? t ?? null;
|
|
82
82
|
return `${e.name}: ${n}`;
|
|
83
83
|
}).join(". ")}.`;
|
|
84
|
-
}),
|
|
84
|
+
}), Xt = p(() => B.value.userOptions.useCursorPointer), Zt = p(() => !!B.value.debug), Qt = p(() => o({
|
|
85
85
|
defaultConfig: {
|
|
86
86
|
userOptions: { show: !1 },
|
|
87
87
|
table: { show: !1 },
|
|
@@ -115,10 +115,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
115
115
|
} }
|
|
116
116
|
},
|
|
117
117
|
userConfig: B.value.skeletonConfig ?? {}
|
|
118
|
-
})), { loading:
|
|
119
|
-
|
|
118
|
+
})), { loading: $t, FINAL_DATASET: en } = _e({
|
|
119
|
+
...et(T),
|
|
120
120
|
FINAL_CONFIG: B,
|
|
121
|
-
prepareConfig:
|
|
121
|
+
prepareConfig: sn,
|
|
122
122
|
skeletonDataset: T.config?.skeletonDataset ?? [{
|
|
123
123
|
name: "",
|
|
124
124
|
series: [
|
|
@@ -157,52 +157,52 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
157
157
|
type: "bar",
|
|
158
158
|
color: "#AAAAAA"
|
|
159
159
|
}],
|
|
160
|
-
skeletonConfig:
|
|
160
|
+
skeletonConfig: o({
|
|
161
161
|
defaultConfig: B.value,
|
|
162
|
-
userConfig:
|
|
162
|
+
userConfig: Qt.value
|
|
163
163
|
})
|
|
164
|
-
}), { userOptionsVisible:
|
|
165
|
-
function rn() {
|
|
166
|
-
tn(!0);
|
|
167
|
-
}
|
|
164
|
+
}), { userOptionsVisible: tn, setUserOptionsVisibility: nn, keepUserOptionState: rn } = Fe({ config: B.value }), { svgRef: V } = Ie({ config: B.value.style.chart.title });
|
|
168
165
|
function an() {
|
|
169
|
-
|
|
166
|
+
nn(!0);
|
|
167
|
+
}
|
|
168
|
+
function on() {
|
|
169
|
+
nn(!1), Kt("selectX", {
|
|
170
170
|
dataset: null,
|
|
171
171
|
index: null,
|
|
172
172
|
indexLabel: null
|
|
173
173
|
}), j.value = null;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
let e =
|
|
175
|
+
function sn() {
|
|
176
|
+
let e = ye({
|
|
177
177
|
userConfig: T.config,
|
|
178
|
-
defaultConfig:
|
|
179
|
-
}),
|
|
180
|
-
if (
|
|
178
|
+
defaultConfig: yt
|
|
179
|
+
}), t = {}, n = e.theme;
|
|
180
|
+
if (n) if (!bt.value(e)) xt(e), t = e;
|
|
181
181
|
else {
|
|
182
|
-
let
|
|
183
|
-
userConfig:
|
|
182
|
+
let r = ye({
|
|
183
|
+
userConfig: Re[n] || T.config,
|
|
184
184
|
defaultConfig: e
|
|
185
185
|
});
|
|
186
|
-
|
|
187
|
-
...
|
|
186
|
+
t = {
|
|
187
|
+
...ye({
|
|
188
188
|
userConfig: T.config,
|
|
189
|
-
defaultConfig:
|
|
189
|
+
defaultConfig: r
|
|
190
190
|
}),
|
|
191
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
191
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[n] || s
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
else
|
|
195
|
-
return T.config &&
|
|
196
|
-
defaultConfig:
|
|
194
|
+
else t = e;
|
|
195
|
+
return T.config && ie(T.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), t.style.chart.grid.x.timeLabels = ye({
|
|
196
|
+
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
197
197
|
userConfig: T.config.style.chart.grid.y.timeLabels
|
|
198
|
-
})),
|
|
198
|
+
})), t;
|
|
199
199
|
}
|
|
200
200
|
C(() => T.config, (e) => {
|
|
201
|
-
|
|
201
|
+
$t.value || (B.value = sn()), tn.value = !B.value.userOptions.showOnChartHover, Sr(), Nt.value += 1, Pt.value += 1, Ft.value += 1, H.value.showTable = B.value.table.show, H.value.showDataLabels = B.value.style.chart.dataLabels.show, H.value.stacked = B.value.style.chart.stacked, H.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
202
202
|
}, { deep: !0 }), C(() => T.dataset, async (e) => {
|
|
203
|
-
!Array.isArray(e) || e.length === 0 || (await
|
|
203
|
+
!Array.isArray(e) || e.length === 0 || (await Ke(), V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, P.value = !0, await An(), zn(), Nt.value += 1, Pt.value += 1, Ft.value += 1);
|
|
204
204
|
}, { deep: !0 });
|
|
205
|
-
let
|
|
205
|
+
let cn = b(B.value.style.chart.aspectRatio), { isPrinting: ln, isImaging: un, generatePdf: dn, generateImage: fn } = ge({
|
|
206
206
|
elementId: `xy_canvas_${E.value}`,
|
|
207
207
|
fileName: B.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
208
208
|
options: B.value.userOptions.print
|
|
@@ -212,15 +212,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
212
212
|
stacked: B.value.style.chart.stacked,
|
|
213
213
|
showTooltip: B.value.style.chart.tooltip.show
|
|
214
214
|
});
|
|
215
|
-
function
|
|
216
|
-
|
|
215
|
+
function pn(e) {
|
|
216
|
+
kt.value = e, Ot.value += 1;
|
|
217
217
|
}
|
|
218
|
-
let
|
|
219
|
-
function
|
|
218
|
+
let mn = p(() => l(B.value.customPalette)), hn = p(() => M.value.length === K.value.length), U = p(() => K.value ? Math.max(...K.value.filter((e, t) => hn.value ? !0 : !M.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
219
|
+
function gn(e) {
|
|
220
220
|
L.value = e, Q();
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
function
|
|
222
|
+
let _n = b(0), vn = b(0);
|
|
223
|
+
function yn() {
|
|
224
224
|
if (!O.value || !B.value.style.chart.grid.x.timeLabels.show) return 0;
|
|
225
225
|
let e = Z.value || [], t = J.value.start ?? 0, n = J.value.end ?? 0;
|
|
226
226
|
if (!Math.max(0, n - t)) return 0;
|
|
@@ -235,21 +235,21 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
235
235
|
let o = (B.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = B.value.style.chart.grid.x.timeLabels.offsetY || 1, u = k.value / l;
|
|
236
236
|
return Math.max(0, u + c + 4);
|
|
237
237
|
}
|
|
238
|
-
function yn() {
|
|
239
|
-
gn.value = vn();
|
|
240
|
-
}
|
|
241
238
|
function bn() {
|
|
242
|
-
_n.value
|
|
239
|
+
_n.value = yn();
|
|
240
|
+
}
|
|
241
|
+
function xn() {
|
|
242
|
+
vn.value && cancelAnimationFrame(vn.value), vn.value = requestAnimationFrame(() => {
|
|
243
243
|
requestAnimationFrame(() => {
|
|
244
|
-
|
|
244
|
+
bn();
|
|
245
245
|
});
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
Ye(() => {
|
|
249
|
+
vn.value && cancelAnimationFrame(vn.value);
|
|
250
250
|
});
|
|
251
251
|
let W = p(() => {
|
|
252
|
-
let e = k.value - k.value * (B.value.style.chart.paddingProportions.left + B.value.style.chart.paddingProportions.right), t = A.value * B.value.style.chart.paddingProportions.top, n = A.value * B.value.style.chart.paddingProportions.bottom, r =
|
|
252
|
+
let e = k.value - k.value * (B.value.style.chart.paddingProportions.left + B.value.style.chart.paddingProportions.right), t = A.value * B.value.style.chart.paddingProportions.top, n = A.value * B.value.style.chart.paddingProportions.bottom, r = _n.value, i = A.value - n - r, a = A.value - (t + n) - r;
|
|
253
253
|
return {
|
|
254
254
|
canvasWidth: k.value,
|
|
255
255
|
canvasHeight: A.value,
|
|
@@ -262,13 +262,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
262
262
|
slot: e / (J.value.end - J.value.start)
|
|
263
263
|
};
|
|
264
264
|
});
|
|
265
|
-
function
|
|
265
|
+
function Sn(e, t) {
|
|
266
266
|
return e / t;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Cn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
269
269
|
return t.map((t, n) => {
|
|
270
|
-
let r = i.min < 0 ? Math.abs(i.min) : 0, c =
|
|
271
|
-
e && (l = i.min, u =
|
|
270
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, c = Sn(t + r, r + i.max), l, u;
|
|
271
|
+
e && (l = i.min, u = Sn(t - l, i.max - l));
|
|
272
272
|
let ee = 0;
|
|
273
273
|
return ee = s === null ? W.value.bottom - W.value.height * (e ? u : c) : W.value.bottom - a - o * (e ? u : c), {
|
|
274
274
|
x: W.value.left + W.value.slot * n + W.value.slot / 2,
|
|
@@ -291,13 +291,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
291
291
|
})),
|
|
292
292
|
zero: i
|
|
293
293
|
};
|
|
294
|
-
}),
|
|
294
|
+
}), wn = p(() => q.value.map((e) => `
|
|
295
295
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
296
296
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
297
297
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
298
298
|
</svg>
|
|
299
299
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
300
|
-
<span>${oe(B.value.style.chart.dataLabels.formatter, e.series[j.value] ?? "-",
|
|
300
|
+
<span>${oe(B.value.style.chart.dataLabels.formatter, e.series[j.value] ?? "-", a({
|
|
301
301
|
p: e.prefix || "",
|
|
302
302
|
v: e.series[j.value] ?? "-",
|
|
303
303
|
s: e.suffix || "",
|
|
@@ -307,26 +307,26 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
307
307
|
seriesIndex: j.value
|
|
308
308
|
})}</span>
|
|
309
309
|
</div>
|
|
310
|
-
`)),
|
|
310
|
+
`)), Tn = p(() => B.value.style.chart.line.cutNullValues), K = p(() => en.value.map((e, t) => ({
|
|
311
311
|
...e,
|
|
312
|
-
series:
|
|
313
|
-
data:
|
|
312
|
+
series: ue({
|
|
313
|
+
data: i(e.series, [], Tn.value),
|
|
314
314
|
threshold: B.value.downsample.threshold
|
|
315
315
|
}),
|
|
316
|
-
absoluteIndex:
|
|
317
|
-
color:
|
|
318
|
-
}))),
|
|
316
|
+
absoluteIndex: t,
|
|
317
|
+
color: re(e.color || mn.value[t] || s[t] || s[t % s.length])
|
|
318
|
+
}))), En = p(() => {
|
|
319
319
|
if (!B.value.style.chart.zoom.minimap.show) return [];
|
|
320
320
|
let e = K.value.filter((e) => !M.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
321
321
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
322
322
|
let r = Math.min(...n);
|
|
323
323
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
324
|
-
}),
|
|
324
|
+
}), Dn = p(() => B.value.style.chart.zoom.minimap.show ? K.value.map((e) => ({
|
|
325
325
|
...e,
|
|
326
326
|
isVisible: !M.value.includes(e.absoluteIndex)
|
|
327
327
|
})) : []);
|
|
328
328
|
C(U, (e) => {
|
|
329
|
-
e &&
|
|
329
|
+
e && An();
|
|
330
330
|
});
|
|
331
331
|
let q = p(() => ne(K.value.filter((e, t) => !M.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
332
332
|
...e,
|
|
@@ -346,7 +346,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
346
346
|
y: W.value.bottom - s - l * (t / (o.ticks.length - 1)),
|
|
347
347
|
x: W.value.left - 8,
|
|
348
348
|
value: e
|
|
349
|
-
})), ne =
|
|
349
|
+
})), ne = Cn({
|
|
350
350
|
hasAutoScale: H.value.stacked && e.autoScaling,
|
|
351
351
|
series: e.series,
|
|
352
352
|
min: H.value.stacked ? n : G.value.min,
|
|
@@ -374,72 +374,72 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
374
374
|
}), Y = b({
|
|
375
375
|
start: 0,
|
|
376
376
|
end: U.value
|
|
377
|
-
}),
|
|
378
|
-
function
|
|
377
|
+
}), On = b(null);
|
|
378
|
+
function kn() {
|
|
379
379
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
380
380
|
}
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
Ye(() => {
|
|
382
|
+
On.value && cancelAnimationFrame(On.value);
|
|
383
383
|
});
|
|
384
|
-
async function
|
|
385
|
-
|
|
386
|
-
await
|
|
384
|
+
async function An() {
|
|
385
|
+
Nn(), await Ke(), On.value && cancelAnimationFrame(On.value), On.value = requestAnimationFrame(async () => {
|
|
386
|
+
await kn(), Nn();
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
let
|
|
390
|
-
function
|
|
389
|
+
let jn = p(() => B.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
390
|
+
function Mn(e, t) {
|
|
391
391
|
Y.value[e] = t;
|
|
392
392
|
}
|
|
393
|
-
async function
|
|
394
|
-
if (!
|
|
395
|
-
|
|
393
|
+
async function Nn() {
|
|
394
|
+
if (!zt.value) {
|
|
395
|
+
zt.value = !0;
|
|
396
396
|
try {
|
|
397
|
-
let { startIndex: e, endIndex: t } = B.value.style.chart.zoom, n = Math.max(...K.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(
|
|
398
|
-
|
|
397
|
+
let { startIndex: e, endIndex: t } = B.value.style.chart.zoom, n = Math.max(...K.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(In(t + 1), n);
|
|
398
|
+
Vt.value = !0, J.value.start = r, J.value.end = i, Y.value.start = r, Y.value.end = i, Ln(), Bt.value = !0, await Ke(), F.value && (F.value.setStartValue(J.value.start), F.value.setEndValue(J.value.end));
|
|
399
399
|
} finally {
|
|
400
400
|
queueMicrotask(() => {
|
|
401
|
-
|
|
402
|
-
}),
|
|
401
|
+
Vt.value = !1;
|
|
402
|
+
}), zt.value = !1;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function Nn(e) {
|
|
407
|
-
Rt.value || Bt.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, In());
|
|
408
|
-
}
|
|
409
406
|
function Pn(e) {
|
|
410
|
-
|
|
411
|
-
let t = Fn(e);
|
|
412
|
-
t !== J.value.end && (J.value.end = t, Y.value.end = t, In());
|
|
407
|
+
zt.value || Vt.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Ln());
|
|
413
408
|
}
|
|
414
409
|
function Fn(e) {
|
|
410
|
+
if (zt.value || Vt.value) return;
|
|
411
|
+
let t = In(e);
|
|
412
|
+
t !== J.value.end && (J.value.end = t, Y.value.end = t, Ln());
|
|
413
|
+
}
|
|
414
|
+
function In(e) {
|
|
415
415
|
let t = U.value;
|
|
416
416
|
return e > t ? t : e < 0 || e < J.value.start ? B.value.style.chart.zoom.startIndex === null ? 1 : B.value.style.chart.zoom.startIndex + 1 : e;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Ln() {
|
|
419
419
|
let e = Math.max(1, Math.max(...K.value.map((e) => e.series.length))), t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
420
420
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value = {
|
|
421
421
|
start: t,
|
|
422
422
|
end: n
|
|
423
423
|
}, Y.value.start = t, Y.value.end = n, F.value && (F.value.setStartValue(t), F.value.setEndValue(n));
|
|
424
424
|
}
|
|
425
|
-
let
|
|
425
|
+
let Rn = p(() => q.value.filter((e) => [
|
|
426
426
|
"line",
|
|
427
427
|
"plot",
|
|
428
428
|
void 0
|
|
429
429
|
].includes(e.type))), X = p(() => q.value.filter((e) => e.type === "bar"));
|
|
430
|
-
function
|
|
431
|
-
if (!V.value || !
|
|
432
|
-
let e =
|
|
433
|
-
V.value.width = e *
|
|
430
|
+
function zn() {
|
|
431
|
+
if (!V.value || !St.value) return;
|
|
432
|
+
let e = St.value.offsetWidth, t = St.value.offsetHeight;
|
|
433
|
+
V.value.width = e * Et.value * 2, V.value.height = t * Et.value * 2, k.value = e * Et.value * 2, A.value = t * Et.value * 2, O.value?.scale(Et.value, Et.value), Q();
|
|
434
434
|
}
|
|
435
435
|
C(z, async (e) => {
|
|
436
436
|
if (!e) {
|
|
437
|
-
|
|
437
|
+
Dt.value = null, Ct.value = !1, j.value = null, I.value = null;
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
|
-
await
|
|
440
|
+
await Ke(), V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, P.value = !0, await An(), zn(), Q();
|
|
441
441
|
});
|
|
442
|
-
function
|
|
442
|
+
function Bn() {
|
|
443
443
|
if (O.value && (O.value.clearRect(0, 0, 1e4, 1e4), O.value.fillStyle = B.value.style.chart.backgroundColor, O.value.fillRect(0, 0, W.value.canvasWidth, W.value.canvasHeight), z.value)) {
|
|
444
444
|
if (H.value.stacked) B.value.style.chart.grid.y.verticalLines.show && J.value.end - J.value.start < B.value.style.chart.grid.y.verticalLines.hideUnderXLength ? q.value.forEach((e) => {
|
|
445
445
|
for (let t = 0; t < J.value.end - J.value.start + 1; t += 1) d(O.value, [{
|
|
@@ -459,7 +459,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
459
459
|
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
460
460
|
}), B.value.style.chart.grid.x.horizontalLines.show && (B.value.style.chart.grid.x.horizontalLines.alternate ? q.value.forEach((e) => {
|
|
461
461
|
e.localYLabels.forEach((t, n) => {
|
|
462
|
-
n < e.localYLabels.length - 1 &&
|
|
462
|
+
n < e.localYLabels.length - 1 && De(O.value, [
|
|
463
463
|
{
|
|
464
464
|
x: W.value.left,
|
|
465
465
|
y: t.y
|
|
@@ -477,7 +477,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
477
477
|
y: e.localYLabels[n + 1].y
|
|
478
478
|
}
|
|
479
479
|
], {
|
|
480
|
-
fillColor: n % 2 == 0 ? "transparent" :
|
|
480
|
+
fillColor: n % 2 == 0 ? "transparent" : c(B.value.style.chart.grid.x.horizontalLines.color, B.value.style.chart.grid.x.horizontalLines.opacity),
|
|
481
481
|
strokeColor: "transparent"
|
|
482
482
|
});
|
|
483
483
|
});
|
|
@@ -540,7 +540,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
540
540
|
y: W.value.bottom
|
|
541
541
|
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
542
542
|
B.value.style.chart.grid.x.horizontalLines.show && (B.value.style.chart.grid.x.horizontalLines.alternate ? G.value.yLabels.forEach((e, t) => {
|
|
543
|
-
t < G.value.yLabels.length - 1 &&
|
|
543
|
+
t < G.value.yLabels.length - 1 && De(O.value, [
|
|
544
544
|
{
|
|
545
545
|
x: W.value.left,
|
|
546
546
|
y: e.y
|
|
@@ -558,7 +558,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
558
558
|
y: G.value.yLabels[t + 1].y
|
|
559
559
|
}
|
|
560
560
|
], {
|
|
561
|
-
fillColor: t % 2 == 0 ? "transparent" :
|
|
561
|
+
fillColor: t % 2 == 0 ? "transparent" : c(B.value.style.chart.grid.x.horizontalLines.color, B.value.style.chart.grid.x.horizontalLines.opacity),
|
|
562
562
|
strokeColor: "transparent"
|
|
563
563
|
});
|
|
564
564
|
}) : G.value.yLabels.forEach((e) => {
|
|
@@ -610,10 +610,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Vn(e) {
|
|
614
614
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
615
615
|
let n = (j.value === t || L.value === t ? k.value / 150 : B.value.style.chart.line.plots.show || e.type === "plot" ? k.value / 200 : 0) * B.value.style.chart.line.plots.radiusRatio;
|
|
616
|
-
|
|
616
|
+
ke(O.value, {
|
|
617
617
|
x: e.coordinatesLine[t].x,
|
|
618
618
|
y: e.coordinatesLine[t].y
|
|
619
619
|
}, n, {
|
|
@@ -623,27 +623,27 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Hn() {
|
|
627
627
|
q.value.forEach((e) => {
|
|
628
|
-
e.showYMarker &&
|
|
628
|
+
e.showYMarker && cr(e) && f(O.value, oe(B.value.style.chart.dataLabels.formatter, cr(e).value, a({
|
|
629
629
|
p: e.prefix || B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
630
|
-
v:
|
|
630
|
+
v: cr(e).value,
|
|
631
631
|
s: e.suffix || B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
632
632
|
r: e.rounding || B.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
633
633
|
}), {
|
|
634
|
-
datapoint:
|
|
634
|
+
datapoint: cr(e),
|
|
635
635
|
seriesIndex: null
|
|
636
|
-
}), W.value.left - 8 + B.value.style.chart.grid.y.axisLabels.offsetX,
|
|
636
|
+
}), W.value.left - 8 + B.value.style.chart.grid.y.axisLabels.offsetX, cr(e).y, {
|
|
637
637
|
align: "right",
|
|
638
638
|
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
639
639
|
color: e.color
|
|
640
640
|
});
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Un() {
|
|
644
644
|
B.value.style.chart.grid.y.axisLabels.show && (H.value.stacked ? q.value.forEach((e) => {
|
|
645
645
|
e.localYLabels.forEach((t, n) => {
|
|
646
|
-
f(O.value, oe(B.value.style.chart.dataLabels.formatter, t.value,
|
|
646
|
+
f(O.value, oe(B.value.style.chart.dataLabels.formatter, t.value, a({
|
|
647
647
|
p: e.prefix || B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
648
648
|
v: t.value,
|
|
649
649
|
s: e.suffix || B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -659,7 +659,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
659
659
|
});
|
|
660
660
|
});
|
|
661
661
|
}) : G.value.yLabels.forEach((e, t) => {
|
|
662
|
-
f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.value,
|
|
662
|
+
f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.value, a({
|
|
663
663
|
p: B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
664
664
|
v: e.value,
|
|
665
665
|
s: B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -675,8 +675,8 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
675
675
|
});
|
|
676
676
|
}));
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
for (let t = 0; t < e.coordinatesLine.length; t += 1) f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[t].value,
|
|
678
|
+
function Wn(e) {
|
|
679
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[t].value, a({
|
|
680
680
|
p: e.prefix || "",
|
|
681
681
|
v: e.coordinatesLine[t].value,
|
|
682
682
|
s: e.suffix || "",
|
|
@@ -692,61 +692,61 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
692
692
|
lineWidth: .5
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
|
-
let Z = b([]),
|
|
696
|
-
|
|
697
|
-
let e = ++
|
|
695
|
+
let Z = b([]), Gn = 0;
|
|
696
|
+
nt(() => {
|
|
697
|
+
let e = ++Gn;
|
|
698
698
|
(async () => {
|
|
699
|
-
let t = await
|
|
699
|
+
let t = await me({
|
|
700
700
|
values: B.value.style.chart.grid.x.timeLabels.values,
|
|
701
701
|
maxDatapoints: U.value,
|
|
702
702
|
formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
703
703
|
start: 0,
|
|
704
704
|
end: U.value
|
|
705
705
|
});
|
|
706
|
-
e ===
|
|
706
|
+
e === Gn && (Z.value = t);
|
|
707
707
|
})();
|
|
708
|
-
}),
|
|
709
|
-
B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, B.value.style.chart.grid.x.timeLabels.fontSizeRatio, B.value.style.chart.grid.x.timeLabels.bold, J.value.start, J.value.end, k.value, A.value, (Z.value || []).map((e) => e?.text ?? "").join("|"),
|
|
708
|
+
}), nt(() => {
|
|
709
|
+
B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, B.value.style.chart.grid.x.timeLabels.fontSizeRatio, B.value.style.chart.grid.x.timeLabels.bold, J.value.start, J.value.end, k.value, A.value, (Z.value || []).map((e) => e?.text ?? "").join("|"), xn();
|
|
710
710
|
}, { flush: "post" });
|
|
711
|
-
let
|
|
711
|
+
let Kn = b({
|
|
712
712
|
months: [],
|
|
713
713
|
shortMonths: [],
|
|
714
714
|
days: [],
|
|
715
715
|
shortDays: []
|
|
716
|
-
}),
|
|
717
|
-
|
|
718
|
-
let e = ++
|
|
716
|
+
}), qn = 0;
|
|
717
|
+
nt(() => {
|
|
718
|
+
let e = ++qn, t = B.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
719
719
|
(async () => {
|
|
720
|
-
let n = await
|
|
721
|
-
e ===
|
|
720
|
+
let n = await pe(t.locale).catch(() => pe("en"));
|
|
721
|
+
e === qn && (Kn.value = n.data);
|
|
722
722
|
})();
|
|
723
723
|
});
|
|
724
|
-
let
|
|
725
|
-
let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
724
|
+
let Jn = p(() => {
|
|
725
|
+
let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = fe({
|
|
726
726
|
useUTC: e.useUTC,
|
|
727
|
-
locale:
|
|
727
|
+
locale: Kn.value,
|
|
728
728
|
januaryAsYear: e.januaryAsYear
|
|
729
729
|
});
|
|
730
730
|
return (e, n) => {
|
|
731
731
|
let r = B.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
732
732
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
733
733
|
};
|
|
734
|
-
}),
|
|
735
|
-
text:
|
|
734
|
+
}), Yn = p(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
735
|
+
text: Jn.value(t, B.value.style.chart.zoom.timeFormat),
|
|
736
736
|
absoluteIndex: t
|
|
737
|
-
}))),
|
|
738
|
-
text:
|
|
737
|
+
}))), Xn = p(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
738
|
+
text: Jn.value(t, B.value.style.chart.tooltip.timeFormat),
|
|
739
739
|
absoluteIndex: t
|
|
740
740
|
})));
|
|
741
|
-
function
|
|
741
|
+
function Zn() {
|
|
742
742
|
for (let e = J.value.start; e < J.value.end; e += 1) (J.value.end - J.value.start < B.value.style.chart.grid.x.timeLabels.modulo || J.value.end - J.value.start >= B.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((J.value.end - J.value.start) / B.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === j.value + J.value.start || e === L.value) && B.value.style.chart.grid.x.timeLabels.showMarker)) && f(O.value, Z.value[e] ? Z.value[e].text : e + 1, W.value.left + W.value.slot * (e - J.value.start) + W.value.slot / 2, W.value.bottom + k.value / B.value.style.chart.grid.x.timeLabels.offsetY, {
|
|
743
743
|
align: B.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
744
744
|
font: `${B.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
745
|
-
color: B.value.style.chart.grid.x.timeLabels.showMarker ?
|
|
745
|
+
color: B.value.style.chart.grid.x.timeLabels.showMarker ? c(B.value.style.chart.grid.x.timeLabels.color, j.value !== null || L.value !== null ? j.value + J.value.start === e || L.value === e ? 100 : 20 : 100) : B.value.style.chart.grid.x.timeLabels.color,
|
|
746
746
|
rotation: B.value.style.chart.grid.x.timeLabels.rotation
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Qn() {
|
|
750
750
|
d(O.value, [{
|
|
751
751
|
x: W.value.left + W.value.slot * (j.value ?? L.value) + W.value.slot / 2,
|
|
752
752
|
y: W.value.top
|
|
@@ -760,7 +760,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
760
760
|
linceCap: "round"
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function $n() {
|
|
764
764
|
I.value && d(O.value, [{
|
|
765
765
|
x: W.value.left,
|
|
766
766
|
y: I.value
|
|
@@ -774,35 +774,35 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
774
774
|
linceCap: "round"
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function er() {
|
|
778
778
|
X.value.forEach((e, t) => {
|
|
779
|
-
for (let
|
|
779
|
+
for (let r = 0; r < e.coordinatesLine.length; r += 1) De(O.value, [
|
|
780
780
|
{
|
|
781
|
-
x: W.value.left + W.value.slot *
|
|
781
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * t - (t === 0 ? 0 : W.value.slot / (5 * X.value.length) * t)),
|
|
782
782
|
y: H.value.stacked ? e.localZero : G.value.zero
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
|
-
x: W.value.left + W.value.slot *
|
|
785
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * t - (t === 0 ? 0 : W.value.slot / (5 * X.value.length) * t)) + W.value.slot * .8 / (H.value.stacked ? 1 : X.value.length),
|
|
786
786
|
y: H.value.stacked ? e.localZero : G.value.zero
|
|
787
787
|
},
|
|
788
788
|
{
|
|
789
|
-
x: W.value.left + W.value.slot *
|
|
790
|
-
y: e.coordinatesLine[
|
|
789
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * t - (t === 0 ? 0 : W.value.slot / (5 * X.value.length) * t)) + W.value.slot * .8 / (H.value.stacked ? 1 : X.value.length),
|
|
790
|
+
y: e.coordinatesLine[r].y
|
|
791
791
|
},
|
|
792
792
|
{
|
|
793
|
-
x: W.value.left + W.value.slot *
|
|
794
|
-
y: e.coordinatesLine[
|
|
793
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * t - (t === 0 ? 0 : W.value.slot / (5 * X.value.length) * t)),
|
|
794
|
+
y: e.coordinatesLine[r].y
|
|
795
795
|
}
|
|
796
796
|
], {
|
|
797
797
|
strokeColor: B.value.style.chart.backgroundColor,
|
|
798
798
|
gradient: {
|
|
799
799
|
type: "linear",
|
|
800
800
|
start: {
|
|
801
|
-
x: e.coordinatesLine[
|
|
802
|
-
y: e.coordinatesLine[
|
|
801
|
+
x: e.coordinatesLine[r].x,
|
|
802
|
+
y: e.coordinatesLine[r].y
|
|
803
803
|
},
|
|
804
804
|
end: {
|
|
805
|
-
x: e.coordinatesLine[
|
|
805
|
+
x: e.coordinatesLine[r].x,
|
|
806
806
|
y: H.value.stacked ? e.localZero : G.value.zero
|
|
807
807
|
},
|
|
808
808
|
stops: [{
|
|
@@ -810,18 +810,18 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
810
810
|
color: e.color
|
|
811
811
|
}, {
|
|
812
812
|
offset: 1,
|
|
813
|
-
color: B.value.style.chart.bar.gradient.show ?
|
|
813
|
+
color: B.value.style.chart.bar.gradient.show ? n(e.color, .5) : e.color
|
|
814
814
|
}]
|
|
815
815
|
}
|
|
816
|
-
}), H.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[
|
|
816
|
+
}), H.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && f(O.value, oe(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[r].value, a({
|
|
817
817
|
p: e.prefix || "",
|
|
818
|
-
v: e.coordinatesLine[
|
|
818
|
+
v: e.coordinatesLine[r].value,
|
|
819
819
|
s: e.suffix || "",
|
|
820
820
|
r: e.rounding || 0
|
|
821
821
|
}), {
|
|
822
|
-
datapoint: e.coordinatesLine[
|
|
823
|
-
seriesIndex:
|
|
824
|
-
}), W.value.left + W.value.slot *
|
|
822
|
+
datapoint: e.coordinatesLine[r],
|
|
823
|
+
seriesIndex: r
|
|
824
|
+
}), W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * t - (t === 0 ? 0 : W.value.slot / (5 * X.value.length) * t)) + W.value.slot * .4 / (H.value.stacked ? 1 : X.value.length), (e.coordinatesLine[r].value < 0 ? H.value.stacked ? e.localZero : G.value.zero : e.coordinatesLine[r].y) + B.value.style.chart.dataLabels.offsetY, {
|
|
825
825
|
align: "center",
|
|
826
826
|
font: `${Math.round(k.value / 40 * B.value.style.chart.dataLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
827
827
|
color: B.value.style.chart.dataLabels.useSerieColor ? e.color : B.value.style.chart.dataLabels.color,
|
|
@@ -830,7 +830,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
830
830
|
});
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function tr(e, t) {
|
|
834
834
|
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
835
835
|
for (let e = 0; e < n.length; e += 1) {
|
|
836
836
|
let o = n[e];
|
|
@@ -872,7 +872,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
872
872
|
singles: i
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function nr(e) {
|
|
876
876
|
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
877
877
|
for (let e = 0; e < t.length; e += 1) {
|
|
878
878
|
let i = t[e];
|
|
@@ -880,9 +880,9 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
880
880
|
}
|
|
881
881
|
return r.length >= 2 && n.push(r), n;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
if (
|
|
885
|
-
let t =
|
|
883
|
+
function rr(e) {
|
|
884
|
+
if (Tn.value) {
|
|
885
|
+
let t = nr(e);
|
|
886
886
|
for (let n of t) d(O.value, n, {
|
|
887
887
|
color: e.color,
|
|
888
888
|
lineWidth: 3
|
|
@@ -892,21 +892,21 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
892
892
|
lineWidth: 3
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
let t = !!
|
|
895
|
+
function ir(e) {
|
|
896
|
+
let t = !!Tn.value;
|
|
897
897
|
if (e.useArea) {
|
|
898
898
|
let n = H.value.stacked ? e.localZero : G.value.zero;
|
|
899
899
|
if (t) {
|
|
900
|
-
let { polygons: t, singles: r } =
|
|
901
|
-
for (let n of t)
|
|
902
|
-
fillColor:
|
|
900
|
+
let { polygons: t, singles: r } = tr(e, n);
|
|
901
|
+
for (let n of t) we(O.value, n, {
|
|
902
|
+
fillColor: c(e.color, B.value.style.chart.area.opacity),
|
|
903
903
|
strokeColor: "transparent"
|
|
904
904
|
});
|
|
905
|
-
let
|
|
906
|
-
for (let t of r)
|
|
905
|
+
let i = k.value / 200 * B.value.style.chart.line.plots.radiusRatio;
|
|
906
|
+
for (let t of r) ke(O.value, {
|
|
907
907
|
x: t.x,
|
|
908
908
|
y: t.y
|
|
909
|
-
},
|
|
909
|
+
}, i, {
|
|
910
910
|
color: B.value.style.chart.backgroundColor,
|
|
911
911
|
fillStyle: e.color,
|
|
912
912
|
strokeColor: "transparent"
|
|
@@ -919,21 +919,21 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
919
919
|
x: e.coordinatesLine.at(-1).x,
|
|
920
920
|
y: n
|
|
921
921
|
};
|
|
922
|
-
|
|
922
|
+
we(O.value, [
|
|
923
923
|
t,
|
|
924
924
|
...e.coordinatesLine,
|
|
925
925
|
r
|
|
926
926
|
], {
|
|
927
|
-
fillColor:
|
|
927
|
+
fillColor: c(e.color, B.value.style.chart.area.opacity),
|
|
928
928
|
strokeColor: "transparent"
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
|
-
|
|
931
|
+
rr(e);
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
rr(e);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function ar() {
|
|
937
937
|
q.value.forEach((e, t) => {
|
|
938
938
|
d(O.value, [{
|
|
939
939
|
x: W.value.left,
|
|
@@ -947,9 +947,9 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
947
947
|
});
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function or() {
|
|
951
951
|
let { left: e, top: t, width: n, height: r } = W.value, i = J.value.start, a = J.value.end - i, o = n / a, s = Y.value.start - i, c = Y.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
952
|
-
|
|
952
|
+
De(O.value, [
|
|
953
953
|
{
|
|
954
954
|
x: e + l * o,
|
|
955
955
|
y: t
|
|
@@ -979,11 +979,11 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
function Q() {
|
|
982
|
-
!z.value || !V.value || !O.value || (
|
|
983
|
-
(e.type === "line" || !e.type) &&
|
|
984
|
-
}), V.value && (
|
|
982
|
+
!z.value || !V.value || !O.value || (Bn(), N.value ? ((j.value !== null || L.value !== null) && B.value.style.chart.selector.show && Qn(), er(), H.value.stacked && B.value.style.chart.grid.x.showAxis && ar(), Rn.value.forEach((e) => {
|
|
983
|
+
(e.type === "line" || !e.type) && ir(e), P.value && (Vn(e), H.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Wn(e));
|
|
984
|
+
}), V.value && (Dt.value = Ee(V.value))) : (Dt.value && (O.value.clearRect(0, 0, 1e4, 1e4), O.value.drawImage(Dt.value, 0, 0)), (j.value !== null || L.value !== null) && B.value.style.chart.selector.show && Qn(), (j.value !== null || L.value !== null) && q.value.forEach((e) => {
|
|
985
985
|
let t = j.value ?? L.value, n = e.coordinatesLine[t];
|
|
986
|
-
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) &&
|
|
986
|
+
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && ke(O.value, {
|
|
987
987
|
x: n.x,
|
|
988
988
|
y: n.y
|
|
989
989
|
}, k.value / 150 * B.value.style.chart.line.plots.radiusRatio, {
|
|
@@ -991,12 +991,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
991
991
|
fillStyle: e.color,
|
|
992
992
|
strokeColor: "transparent"
|
|
993
993
|
});
|
|
994
|
-
})), B.value.style.chart.grid.x.timeLabels.show &&
|
|
994
|
+
})), B.value.style.chart.grid.x.timeLabels.show && Zn(), B.value.style.chart.selector.show && B.value.style.chart.selector.showHorizontalSelector && $n(), Un(), Hn(), B.value.style.chart.zoom.preview.enable && (J.value.start !== Y.value.start || J.value.end !== Y.value.end) && or(), N.value = !1);
|
|
995
995
|
}
|
|
996
|
-
let
|
|
997
|
-
P.value = !0,
|
|
996
|
+
let sr = Oe(() => {
|
|
997
|
+
P.value = !0, zn();
|
|
998
998
|
}, U.value > 200 ? 10 : 1, !P.value);
|
|
999
|
-
function
|
|
999
|
+
function cr(e) {
|
|
1000
1000
|
if ([null, void 0].includes(j.value ?? L.value) || !e.coordinatesLine[j.value ?? L.value]) return !1;
|
|
1001
1001
|
let { y: t, value: n } = e.coordinatesLine[j.value ?? L.value];
|
|
1002
1002
|
return {
|
|
@@ -1004,15 +1004,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1004
1004
|
value: n
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
if (!z.value || !V.value ||
|
|
1007
|
+
function lr(e) {
|
|
1008
|
+
if (!z.value || !V.value || hn.value) return;
|
|
1009
1009
|
let { left: t, top: n } = V.value.getBoundingClientRect(), r = e.clientX - t;
|
|
1010
1010
|
if (I.value = (e.clientY - n) * 2, (I.value < W.value.top || I.value > W.value.bottom) && (I.value = null), r * 2 < W.value.left || r * 2 > W.value.right) {
|
|
1011
|
-
|
|
1011
|
+
mr();
|
|
1012
1012
|
return;
|
|
1013
1013
|
}
|
|
1014
1014
|
let i = r * 2 - W.value.left, a = Math.floor(i / W.value.slot);
|
|
1015
|
-
if (j.value = a, R.value = a,
|
|
1015
|
+
if (j.value = a, R.value = a, Ct.value = !0, Ut.value = !1, !P.value) return;
|
|
1016
1016
|
let o = "", s = B.value.style.chart.tooltip.customFormat, c = q.value.map((e) => ({
|
|
1017
1017
|
shape: e.shape || null,
|
|
1018
1018
|
name: e.name,
|
|
@@ -1020,28 +1020,28 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1020
1020
|
type: e.type || "line",
|
|
1021
1021
|
value: e.series.find((e, t) => t === j.value)
|
|
1022
1022
|
}));
|
|
1023
|
-
|
|
1024
|
-
timeLabel: B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text :
|
|
1023
|
+
Tt.value = {
|
|
1024
|
+
timeLabel: B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text : Xn.value[j.value]?.text : "",
|
|
1025
1025
|
datapoint: c,
|
|
1026
1026
|
seriesIndex: j.value,
|
|
1027
1027
|
series: q.value,
|
|
1028
1028
|
config: B.value
|
|
1029
|
-
},
|
|
1029
|
+
}, vr({
|
|
1030
1030
|
seriesIndex: j.value,
|
|
1031
1031
|
datapoint: c
|
|
1032
|
-
}),
|
|
1032
|
+
}), de(s) && le(() => s({
|
|
1033
1033
|
seriesIndex: j.value,
|
|
1034
1034
|
datapoint: c,
|
|
1035
1035
|
series: q.value,
|
|
1036
1036
|
config: B.value
|
|
1037
|
-
})) ?
|
|
1037
|
+
})) ? wt.value = s({
|
|
1038
1038
|
seriesIndex: j.value,
|
|
1039
1039
|
datapoint: c,
|
|
1040
1040
|
series: q.value,
|
|
1041
1041
|
config: B.value
|
|
1042
|
-
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text :
|
|
1042
|
+
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text : Xn.value[j.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${Z.value[j.value + J.value.start]?.text ?? ""}</div>`, o += wn.value.join(""), wt.value = o), P.value = !1;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function ur(e) {
|
|
1045
1045
|
return q.value.map((t) => ({
|
|
1046
1046
|
shape: t.shape || null,
|
|
1047
1047
|
name: t.name,
|
|
@@ -1050,12 +1050,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1050
1050
|
value: t.series.find((t, n) => n === e)
|
|
1051
1051
|
}));
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
let t = "", n = B.value.style.chart.tooltip.customFormat, r =
|
|
1055
|
-
return
|
|
1053
|
+
function dr(e) {
|
|
1054
|
+
let t = "", n = B.value.style.chart.tooltip.customFormat, r = ur(e);
|
|
1055
|
+
return vr({
|
|
1056
1056
|
seriesIndex: e,
|
|
1057
1057
|
datapoint: r
|
|
1058
|
-
}),
|
|
1058
|
+
}), de(n) && le(() => n({
|
|
1059
1059
|
seriesIndex: e,
|
|
1060
1060
|
datapoint: r,
|
|
1061
1061
|
series: q.value,
|
|
@@ -1065,40 +1065,40 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1065
1065
|
datapoint: r,
|
|
1066
1066
|
series: q.value,
|
|
1067
1067
|
config: B.value
|
|
1068
|
-
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[e]?.text :
|
|
1068
|
+
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[e]?.text : Xn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${Z.value[e + J.value.start]?.text ?? ""}</div>`, t += wn.value.join(""), t);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function fr(e) {
|
|
1071
1071
|
if (!V.value || !W.value?.slot) return;
|
|
1072
1072
|
let t = V.value.getBoundingClientRect(), n = t.width / W.value.canvasWidth, r = t.height / W.value.canvasHeight, i = W.value.left + W.value.slot * e + W.value.slot / 2, a = W.value.top + W.value.height / 2;
|
|
1073
|
-
|
|
1073
|
+
Gt.value = {
|
|
1074
1074
|
x: t.left + i * n,
|
|
1075
1075
|
y: t.top + a * r
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
!z.value ||
|
|
1080
|
-
}
|
|
1081
|
-
function pr() {
|
|
1082
|
-
St.value = !1, j.value = null, R.value = null, Ct.value = "", I.value = null, Ht.value = !1, Q();
|
|
1078
|
+
function pr(e, { fromKeyboard: t = !1 } = {}) {
|
|
1079
|
+
!z.value || hn.value || e != null && (e < 0 || e >= J.value.end - J.value.start || (j.value = e, R.value = e, Ct.value = !0, Ut.value = t, wt.value = dr(e), t && fr(e), P.value = !1, Q()));
|
|
1083
1080
|
}
|
|
1084
1081
|
function mr() {
|
|
1085
|
-
Ut.value = !
|
|
1082
|
+
Ct.value = !1, j.value = null, R.value = null, wt.value = "", I.value = null, Ut.value = !1, Q();
|
|
1086
1083
|
}
|
|
1087
1084
|
function hr() {
|
|
1088
|
-
|
|
1085
|
+
Wt.value = !0;
|
|
1086
|
+
}
|
|
1087
|
+
function gr() {
|
|
1088
|
+
Wt.value = !1, mr();
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
if (!V.value ||
|
|
1090
|
+
function _r(e) {
|
|
1091
|
+
if (!V.value || Rr.value || document.activeElement !== V.value) return;
|
|
1092
1092
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1093
1093
|
if (!t && !n) return;
|
|
1094
1094
|
let r = J.value.end - J.value.start;
|
|
1095
1095
|
if (r <= 0) return;
|
|
1096
1096
|
e.preventDefault(), e.stopPropagation();
|
|
1097
1097
|
let i = R.value;
|
|
1098
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
1098
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, pr(i, { fromKeyboard: !0 });
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
|
|
1100
|
+
function vr({ seriesIndex: e, datapoint: t }) {
|
|
1101
|
+
Kt("selectX", {
|
|
1102
1102
|
dataset: t,
|
|
1103
1103
|
index: J.value.start + e,
|
|
1104
1104
|
indexLabel: ""
|
|
@@ -1106,13 +1106,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1106
1106
|
}
|
|
1107
1107
|
C(() => T.selectedXIndex, (e) => {
|
|
1108
1108
|
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
1109
|
-
|
|
1109
|
+
mr();
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
1112
|
let t = e - J.value.start;
|
|
1113
|
-
t < 0 || e >= J.value.end ?
|
|
1113
|
+
t < 0 || e >= J.value.end ? mr() : pr(t, { fromKeyboard: !1 });
|
|
1114
1114
|
}, { immediate: !0 }), C(() => j.value, (e) => {
|
|
1115
|
-
|
|
1115
|
+
sr();
|
|
1116
1116
|
}), C(() => J.value, (e) => {
|
|
1117
1117
|
N.value = !0, Q();
|
|
1118
1118
|
}, { deep: !0 }), C(() => Y.value, (e) => {
|
|
@@ -1122,66 +1122,66 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1122
1122
|
}), C(() => I.value, (e) => {
|
|
1123
1123
|
e && Q();
|
|
1124
1124
|
}), C(() => H.value.stacked, (e) => {
|
|
1125
|
-
N.value = !0, P.value = !0,
|
|
1125
|
+
N.value = !0, P.value = !0, sr();
|
|
1126
1126
|
});
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1127
|
+
function yr() {
|
|
1128
|
+
mr();
|
|
1129
1129
|
}
|
|
1130
|
-
let $ =
|
|
1131
|
-
|
|
1132
|
-
|
|
1130
|
+
let $ = Qe(null), br = Qe(null), xr = Qe(null);
|
|
1131
|
+
Xe(() => {
|
|
1132
|
+
It.value = !0, Sr();
|
|
1133
1133
|
});
|
|
1134
|
-
function
|
|
1135
|
-
if (
|
|
1134
|
+
function Sr() {
|
|
1135
|
+
if (se(T.dataset) && Zt.value && t({
|
|
1136
1136
|
componentName: "VueUiXyCanvas",
|
|
1137
1137
|
type: "dataset"
|
|
1138
|
-
}),
|
|
1139
|
-
V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), O.value && z.value && (N.value = !0, P.value = !0,
|
|
1138
|
+
}), Ke(() => {
|
|
1139
|
+
V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), O.value && z.value && (N.value = !0, P.value = !0, zn());
|
|
1140
1140
|
}), B.value.responsive) {
|
|
1141
|
-
let e =
|
|
1142
|
-
let { width: e, height: t } =
|
|
1141
|
+
let e = Te(() => {
|
|
1142
|
+
let { width: e, height: t } = Ae({
|
|
1143
1143
|
chart: D.value,
|
|
1144
|
-
title: B.value.style.chart.title.text ?
|
|
1145
|
-
legend: B.value.style.chart.legend.show ?
|
|
1144
|
+
title: B.value.style.chart.title.text ? At.value : null,
|
|
1145
|
+
legend: B.value.style.chart.legend.show ? jt.value : null,
|
|
1146
1146
|
slicer: B.value.style.chart.zoom.show && U.value > 6 ? F.value?.$el : null,
|
|
1147
|
-
source:
|
|
1147
|
+
source: Mt.value
|
|
1148
1148
|
});
|
|
1149
1149
|
requestAnimationFrame(() => {
|
|
1150
|
-
|
|
1150
|
+
cn.value = `${e} / ${t}`;
|
|
1151
1151
|
});
|
|
1152
1152
|
});
|
|
1153
|
-
$.value && (
|
|
1153
|
+
$.value && (br.value && $.value.unobserve(br.value), $.value.disconnect()), $.value = new ResizeObserver(e), br.value = D.value.parentNode, $.value.observe(br.value);
|
|
1154
1154
|
}
|
|
1155
|
-
|
|
1156
|
-
for (let t of e) t.contentBoxSize &&
|
|
1157
|
-
}),
|
|
1155
|
+
xr.value && xr.value.disconnect(), xr.value = new ResizeObserver(async (e) => {
|
|
1156
|
+
for (let t of e) t.contentBoxSize && St.value && (N.value = !0, sr());
|
|
1157
|
+
}), xr.value.observe(St.value), An();
|
|
1158
1158
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1159
|
+
Ye(() => {
|
|
1160
|
+
xr.value && xr.value.disconnect(), $.value && (br.value && $.value.unobserve(br.value), $.value.disconnect());
|
|
1161
1161
|
});
|
|
1162
|
-
function
|
|
1163
|
-
M.value.length ? M.value = [] :
|
|
1162
|
+
function Cr() {
|
|
1163
|
+
M.value.length ? M.value = [] : Or.value.forEach((e, t) => {
|
|
1164
1164
|
M.value.push(t);
|
|
1165
|
-
}), N.value = !0,
|
|
1166
|
-
}
|
|
1167
|
-
function Cr(e) {
|
|
1168
|
-
M.value.includes(e) ? M.value = M.value.filter((t) => t !== e) : M.value.push(e), N.value = !0, or(), Gt("selectLegend", q.value);
|
|
1165
|
+
}), N.value = !0, sr(), Kt("selectLegend", q.value);
|
|
1169
1166
|
}
|
|
1170
1167
|
function wr(e) {
|
|
1171
|
-
|
|
1168
|
+
M.value.includes(e) ? M.value = M.value.filter((t) => t !== e) : M.value.push(e), N.value = !0, sr(), Kt("selectLegend", q.value);
|
|
1172
1169
|
}
|
|
1173
1170
|
function Tr(e) {
|
|
1174
|
-
|
|
1175
|
-
t !== null && M.value.includes(t.absoluteIndex) && Cr(t.absoluteIndex);
|
|
1171
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1176
1172
|
}
|
|
1177
1173
|
function Er(e) {
|
|
1178
|
-
let t =
|
|
1179
|
-
t !== null &&
|
|
1174
|
+
let t = Tr(e);
|
|
1175
|
+
t !== null && M.value.includes(t.absoluteIndex) && wr(t.absoluteIndex);
|
|
1180
1176
|
}
|
|
1181
|
-
|
|
1177
|
+
function Dr(e) {
|
|
1178
|
+
let t = Tr(e);
|
|
1179
|
+
t !== null && (M.value.includes(t.absoluteIndex) || wr(t.absoluteIndex));
|
|
1180
|
+
}
|
|
1181
|
+
let Or = p(() => K.value.map((e, t) => ({
|
|
1182
1182
|
...e,
|
|
1183
1183
|
name: e.name,
|
|
1184
|
-
color:
|
|
1184
|
+
color: re(e.color) || mn.value[t] || s[t] || s[t % s.length],
|
|
1185
1185
|
shape: e.shape || "circle",
|
|
1186
1186
|
prefix: e.prefix || "",
|
|
1187
1187
|
suffix: e.suffix || "",
|
|
@@ -1189,16 +1189,16 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1189
1189
|
})).map((e) => ({
|
|
1190
1190
|
...e,
|
|
1191
1191
|
opacity: M.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1192
|
-
segregate: () =>
|
|
1192
|
+
segregate: () => wr(e.absoluteIndex),
|
|
1193
1193
|
isSegregated: M.value.includes(e.absoluteIndex)
|
|
1194
|
-
}))),
|
|
1194
|
+
}))), kr = p(() => ({
|
|
1195
1195
|
cy: "donut-div-legend",
|
|
1196
1196
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
1197
1197
|
color: B.value.style.chart.legend.color,
|
|
1198
1198
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
1199
1199
|
paddingBottom: 12,
|
|
1200
1200
|
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
1201
|
-
})),
|
|
1201
|
+
})), Ar = p(() => {
|
|
1202
1202
|
let e = [""].concat(q.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [];
|
|
1203
1203
|
for (let e = 0; e < U.value; e += 1) {
|
|
1204
1204
|
let n = q.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1223,7 +1223,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1223
1223
|
config: n,
|
|
1224
1224
|
colNames: r
|
|
1225
1225
|
};
|
|
1226
|
-
}),
|
|
1226
|
+
}), jr = p(() => {
|
|
1227
1227
|
if (q.value.length === 0) return {
|
|
1228
1228
|
head: [],
|
|
1229
1229
|
body: [],
|
|
@@ -1246,67 +1246,69 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1246
1246
|
body: t
|
|
1247
1247
|
};
|
|
1248
1248
|
});
|
|
1249
|
-
function
|
|
1249
|
+
function Mr(e = null) {
|
|
1250
1250
|
let t = [
|
|
1251
1251
|
[B.value.style.chart.title.text],
|
|
1252
1252
|
[B.value.style.chart.title.subtitle.text],
|
|
1253
1253
|
[""]
|
|
1254
|
-
], n = ["", ...
|
|
1255
|
-
e ? e(i) :
|
|
1254
|
+
], n = ["", ...jr.value.head.map((e) => e.label)], r = jr.value.body, i = u(t.concat([n]).concat(r));
|
|
1255
|
+
e ? e(i) : te({
|
|
1256
1256
|
csvContent: i,
|
|
1257
1257
|
title: B.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Nr() {
|
|
1261
1261
|
return q.value;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Pr() {
|
|
1264
1264
|
H.value.showTable = !H.value.showTable;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Fr() {
|
|
1267
1267
|
H.value.showDataLabels = !H.value.showDataLabels;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Ir() {
|
|
1270
1270
|
H.value.stacked = !H.value.stacked;
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Lr() {
|
|
1273
1273
|
H.value.showTooltip = !H.value.showTooltip;
|
|
1274
1274
|
}
|
|
1275
|
-
let
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1275
|
+
let Rr = b(!1);
|
|
1276
|
+
function zr() {
|
|
1277
|
+
Rr.value = !Rr.value;
|
|
1278
1278
|
}
|
|
1279
|
-
async function
|
|
1279
|
+
async function Br({ scale: e = 2 } = {}) {
|
|
1280
1280
|
if (!D.value) return;
|
|
1281
|
-
let {
|
|
1281
|
+
let { imageUri: t, base64: n } = await xe({
|
|
1282
1282
|
domElement: D.value,
|
|
1283
1283
|
base64: !0,
|
|
1284
1284
|
img: !0,
|
|
1285
1285
|
scale: e
|
|
1286
|
-
})
|
|
1286
|
+
}), r = D.value.getBoundingClientRect(), i = {
|
|
1287
|
+
width: r.width,
|
|
1288
|
+
height: r.height,
|
|
1289
|
+
aspectRatio: r.height ? r.width / r.height : 0
|
|
1290
|
+
}, a = await ce(t, e) ?? i;
|
|
1287
1291
|
return {
|
|
1288
|
-
imageUri:
|
|
1289
|
-
base64:
|
|
1292
|
+
imageUri: t,
|
|
1293
|
+
base64: n,
|
|
1290
1294
|
title: B.value.style.chart.title.text,
|
|
1291
|
-
|
|
1292
|
-
height: n,
|
|
1293
|
-
aspectRatio: r
|
|
1295
|
+
...a
|
|
1294
1296
|
};
|
|
1295
1297
|
}
|
|
1296
|
-
let
|
|
1298
|
+
let Vr = p(() => {
|
|
1297
1299
|
let e = B.value.table.useDialog && !B.value.table.show, t = H.value.showTable;
|
|
1298
1300
|
return {
|
|
1299
|
-
component: e ?
|
|
1301
|
+
component: e ? vt : Ne,
|
|
1300
1302
|
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1301
1303
|
props: e ? {
|
|
1302
1304
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
1303
1305
|
color: B.value.table.th.color,
|
|
1304
1306
|
headerColor: B.value.table.th.color,
|
|
1305
1307
|
headerBg: B.value.table.th.backgroundColor,
|
|
1306
|
-
isFullscreen:
|
|
1308
|
+
isFullscreen: kt.value,
|
|
1307
1309
|
fullscreenParent: D.value,
|
|
1308
1310
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1309
|
-
isCursorPointer:
|
|
1311
|
+
isCursorPointer: Xt.value
|
|
1310
1312
|
} : {
|
|
1311
1313
|
hideDetails: !0,
|
|
1312
1314
|
config: {
|
|
@@ -1325,24 +1327,24 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1325
1327
|
};
|
|
1326
1328
|
});
|
|
1327
1329
|
C(() => H.value.showTable, (e) => {
|
|
1328
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
1330
|
+
B.value.table.show || (e && B.value.table.useDialog && Lt.value ? Lt.value.open() : "close" in Lt.value && Lt.value.close());
|
|
1329
1331
|
});
|
|
1330
|
-
function
|
|
1331
|
-
H.value.showTable = !1,
|
|
1332
|
+
function Hr() {
|
|
1333
|
+
H.value.showTable = !1, Rt.value && Rt.value.setTableIconState(!1);
|
|
1332
1334
|
}
|
|
1333
|
-
function
|
|
1335
|
+
function Ur(e) {
|
|
1334
1336
|
if (e?.stage === "start") {
|
|
1335
|
-
|
|
1337
|
+
Ht.value = !0;
|
|
1336
1338
|
return;
|
|
1337
1339
|
}
|
|
1338
1340
|
if (e?.stage === "end") {
|
|
1339
|
-
|
|
1341
|
+
Ht.value = !1;
|
|
1340
1342
|
return;
|
|
1341
1343
|
}
|
|
1342
|
-
|
|
1344
|
+
fn();
|
|
1343
1345
|
}
|
|
1344
|
-
async function
|
|
1345
|
-
if (
|
|
1346
|
+
async function Wr() {
|
|
1347
|
+
if (Kt("copyAlt", {
|
|
1346
1348
|
config: B.value,
|
|
1347
1349
|
dataset: q.value
|
|
1348
1350
|
}), !B.value.userOptions.callbacks.altCopy) {
|
|
@@ -1354,42 +1356,42 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1354
1356
|
dataset: q.value
|
|
1355
1357
|
}));
|
|
1356
1358
|
}
|
|
1357
|
-
return
|
|
1358
|
-
getData:
|
|
1359
|
-
getImage:
|
|
1360
|
-
generateCsv:
|
|
1361
|
-
generatePdf:
|
|
1362
|
-
generateImage:
|
|
1363
|
-
hideSeries:
|
|
1364
|
-
showSeries:
|
|
1365
|
-
toggleTable:
|
|
1366
|
-
toggleLabels:
|
|
1367
|
-
toggleStack:
|
|
1368
|
-
toggleTooltip:
|
|
1369
|
-
toggleAnnotator:
|
|
1370
|
-
toggleFullscreen:
|
|
1371
|
-
copyAlt:
|
|
1372
|
-
}), (t, n) => (y(),
|
|
1373
|
-
style:
|
|
1359
|
+
return Ce({
|
|
1360
|
+
getData: Nr,
|
|
1361
|
+
getImage: Br,
|
|
1362
|
+
generateCsv: Mr,
|
|
1363
|
+
generatePdf: dn,
|
|
1364
|
+
generateImage: fn,
|
|
1365
|
+
hideSeries: Dr,
|
|
1366
|
+
showSeries: Er,
|
|
1367
|
+
toggleTable: Pr,
|
|
1368
|
+
toggleLabels: Fr,
|
|
1369
|
+
toggleStack: Ir,
|
|
1370
|
+
toggleTooltip: Lr,
|
|
1371
|
+
toggleAnnotator: zr,
|
|
1372
|
+
toggleFullscreen: pn,
|
|
1373
|
+
copyAlt: Wr
|
|
1374
|
+
}), (t, n) => (y(), Be("div", {
|
|
1375
|
+
style: Je(`width:100%; position:relative; ${B.value.responsive ? "height: 100%" : ""}; background:${B.value.style.chart.backgroundColor};`),
|
|
1374
1376
|
ref_key: "xy",
|
|
1375
1377
|
ref: D,
|
|
1376
1378
|
id: `xy_canvas_${E.value}`,
|
|
1377
|
-
class:
|
|
1378
|
-
onMouseenter:
|
|
1379
|
-
onMouseleave:
|
|
1379
|
+
class: qe(`vue-data-ui-component vue-ui-xy-canvas ${kt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1380
|
+
onMouseenter: an,
|
|
1381
|
+
onMouseleave: on
|
|
1380
1382
|
}, [
|
|
1381
1383
|
g("div", {
|
|
1382
1384
|
id: `chart-instructions-${E.value}`,
|
|
1383
1385
|
class: "sr-only"
|
|
1384
|
-
}, [g("p", null,
|
|
1385
|
-
g("div",
|
|
1386
|
-
B.value.style.chart.title.text ? (y(),
|
|
1386
|
+
}, [g("p", null, $e(B.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1387
|
+
g("div", ot, $e(Yt.value), 1),
|
|
1388
|
+
B.value.style.chart.title.text ? (y(), Be("div", {
|
|
1387
1389
|
key: 0,
|
|
1388
1390
|
ref_key: "chartTitle",
|
|
1389
|
-
ref:
|
|
1390
|
-
style:
|
|
1391
|
-
}, [(y(), m(
|
|
1392
|
-
key: `title_${
|
|
1391
|
+
ref: At,
|
|
1392
|
+
style: Je(`width:100%;background:${B.value.style.chart.backgroundColor};`)
|
|
1393
|
+
}, [(y(), m(Se, {
|
|
1394
|
+
key: `title_${Nt.value}`,
|
|
1393
1395
|
config: {
|
|
1394
1396
|
title: {
|
|
1395
1397
|
cy: "xy-canvas-title",
|
|
@@ -1401,15 +1403,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1401
1403
|
}
|
|
1402
1404
|
}
|
|
1403
1405
|
}, null, 8, ["config"]))], 4)) : h("", !0),
|
|
1404
|
-
g("div", { id: `legend-top-${E.value}` }, null, 8,
|
|
1405
|
-
B.value.userOptions.show && z.value && (S(
|
|
1406
|
+
g("div", { id: `legend-top-${E.value}` }, null, 8, st),
|
|
1407
|
+
B.value.userOptions.show && z.value && (S(rn) || S(tn)) ? (y(), m(S(gt), {
|
|
1406
1408
|
ref_key: "userOptionsRef",
|
|
1407
|
-
ref:
|
|
1408
|
-
key: `user_option_${
|
|
1409
|
+
ref: Rt,
|
|
1410
|
+
key: `user_option_${Ot.value}`,
|
|
1409
1411
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1410
1412
|
color: B.value.style.chart.color,
|
|
1411
|
-
isPrinting: S(
|
|
1412
|
-
isImaging: S(
|
|
1413
|
+
isPrinting: S(ln),
|
|
1414
|
+
isImaging: S(un),
|
|
1413
1415
|
uid: E.value,
|
|
1414
1416
|
hasTooltip: B.value.userOptions.buttons.tooltip && B.value.style.chart.tooltip.show,
|
|
1415
1417
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
@@ -1420,30 +1422,30 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1420
1422
|
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1421
1423
|
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1422
1424
|
hasTable: J.value.end - J.value.start <= 730 && B.value.userOptions.buttons.table,
|
|
1423
|
-
isFullscreen:
|
|
1425
|
+
isFullscreen: kt.value,
|
|
1424
1426
|
isTooltip: H.value.showTooltip,
|
|
1425
1427
|
isStacked: H.value.stacked,
|
|
1426
1428
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
1427
1429
|
chartElement: D.value,
|
|
1428
1430
|
position: B.value.userOptions.position,
|
|
1429
1431
|
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1430
|
-
isAnnotation:
|
|
1432
|
+
isAnnotation: Rr.value,
|
|
1431
1433
|
callbacks: B.value.userOptions.callbacks,
|
|
1432
1434
|
printScale: B.value.userOptions.print.scale,
|
|
1433
1435
|
tableDialog: B.value.table.useDialog,
|
|
1434
|
-
isCursorPointer:
|
|
1435
|
-
onToggleFullscreen:
|
|
1436
|
-
onGeneratePdf: S(
|
|
1437
|
-
onGenerateCsv:
|
|
1438
|
-
onGenerateImage:
|
|
1439
|
-
onToggleTable:
|
|
1440
|
-
onToggleLabels:
|
|
1441
|
-
onToggleStack:
|
|
1442
|
-
onToggleTooltip:
|
|
1443
|
-
onToggleAnnotator:
|
|
1444
|
-
onCopyAlt:
|
|
1445
|
-
style:
|
|
1446
|
-
},
|
|
1436
|
+
isCursorPointer: Xt.value,
|
|
1437
|
+
onToggleFullscreen: pn,
|
|
1438
|
+
onGeneratePdf: S(dn),
|
|
1439
|
+
onGenerateCsv: Mr,
|
|
1440
|
+
onGenerateImage: Ur,
|
|
1441
|
+
onToggleTable: Pr,
|
|
1442
|
+
onToggleLabels: Fr,
|
|
1443
|
+
onToggleStack: Ir,
|
|
1444
|
+
onToggleTooltip: Lr,
|
|
1445
|
+
onToggleAnnotator: zr,
|
|
1446
|
+
onCopyAlt: Wr,
|
|
1447
|
+
style: Je({ visibility: S(rn) ? S(tn) ? "visible" : "hidden" : "visible" })
|
|
1448
|
+
}, Ve({ _: 2 }, [
|
|
1447
1449
|
t.$slots.menuIcon ? {
|
|
1448
1450
|
name: "menuIcon",
|
|
1449
1451
|
fn: w(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", v(_({
|
|
@@ -1521,14 +1523,14 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1521
1523
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
|
|
1522
1524
|
g("div", {
|
|
1523
1525
|
class: "vue-ui-xy-canvas",
|
|
1524
|
-
style:
|
|
1526
|
+
style: Je(`position: relative; aspect-ratio: ${cn.value}`),
|
|
1525
1527
|
ref_key: "container",
|
|
1526
|
-
ref:
|
|
1528
|
+
ref: St
|
|
1527
1529
|
}, [
|
|
1528
1530
|
g("canvas", {
|
|
1529
1531
|
ref_key: "canvas",
|
|
1530
1532
|
ref: V,
|
|
1531
|
-
"aria-label":
|
|
1533
|
+
"aria-label": Jt.value,
|
|
1532
1534
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
1533
1535
|
role: "img",
|
|
1534
1536
|
"aria-live": "polite",
|
|
@@ -1537,20 +1539,20 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1537
1539
|
width: "100%",
|
|
1538
1540
|
height: "100%"
|
|
1539
1541
|
},
|
|
1540
|
-
onMousemove: n[0] ||= (e) =>
|
|
1541
|
-
onMouseleave:
|
|
1542
|
-
onFocus:
|
|
1543
|
-
onBlur:
|
|
1544
|
-
onKeydown:
|
|
1545
|
-
}, null, 40,
|
|
1546
|
-
t.$slots.hint ? (y(),
|
|
1542
|
+
onMousemove: n[0] ||= (e) => lr(e),
|
|
1543
|
+
onMouseleave: yr,
|
|
1544
|
+
onFocus: hr,
|
|
1545
|
+
onBlur: gr,
|
|
1546
|
+
onKeydown: _r
|
|
1547
|
+
}, null, 40, ct),
|
|
1548
|
+
t.$slots.hint ? (y(), Be("div", lt, [x(t.$slots, "hint", v(_({
|
|
1547
1549
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1548
|
-
isVisible:
|
|
1550
|
+
isVisible: Wt.value
|
|
1549
1551
|
})), void 0, !0)])) : h("", !0),
|
|
1550
|
-
x(t.$slots, "skeleton", {}, () => [S(
|
|
1551
|
-
|
|
1552
|
+
x(t.$slots, "skeleton", {}, () => [S($t) ? (y(), m(ve, { key: 0 })) : h("", !0)], !0),
|
|
1553
|
+
Ue(S(mt), {
|
|
1552
1554
|
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1553
|
-
show: H.value.showTooltip &&
|
|
1555
|
+
show: H.value.showTooltip && Ct.value,
|
|
1554
1556
|
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1555
1557
|
color: B.value.style.chart.tooltip.color,
|
|
1556
1558
|
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
@@ -1561,20 +1563,20 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1561
1563
|
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1562
1564
|
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1563
1565
|
parent: t.$refs.xy,
|
|
1564
|
-
content:
|
|
1565
|
-
isFullscreen:
|
|
1566
|
+
content: wt.value,
|
|
1567
|
+
isFullscreen: kt.value,
|
|
1566
1568
|
backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
|
|
1567
|
-
isCustom: S(
|
|
1569
|
+
isCustom: S(de)(B.value.style.chart.tooltip.customFormat),
|
|
1568
1570
|
smooth: B.value.style.chart.tooltip.smooth,
|
|
1569
1571
|
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1570
1572
|
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1571
1573
|
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1572
|
-
isA11yMode:
|
|
1573
|
-
a11yPosition:
|
|
1574
|
+
isA11yMode: Ut.value,
|
|
1575
|
+
a11yPosition: Gt.value
|
|
1574
1576
|
}, {
|
|
1575
|
-
"tooltip-before": w(() => [x(t.$slots, "tooltip-before", v(_({ ...
|
|
1576
|
-
tooltip: w(() => [x(t.$slots, "tooltip", v(_({ ...
|
|
1577
|
-
"tooltip-after": w(() => [x(t.$slots, "tooltip-after", v(_({ ...
|
|
1577
|
+
"tooltip-before": w(() => [x(t.$slots, "tooltip-before", v(_({ ...Tt.value })), void 0, !0)]),
|
|
1578
|
+
tooltip: w(() => [x(t.$slots, "tooltip", v(_({ ...Tt.value })), void 0, !0)]),
|
|
1579
|
+
"tooltip-after": w(() => [x(t.$slots, "tooltip-after", v(_({ ...Tt.value })), void 0, !0)]),
|
|
1578
1580
|
_: 3
|
|
1579
1581
|
}, 8, [
|
|
1580
1582
|
"teleportTo",
|
|
@@ -1601,15 +1603,16 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1601
1603
|
"a11yPosition"
|
|
1602
1604
|
])
|
|
1603
1605
|
], 4),
|
|
1604
|
-
B.value.style.chart.zoom.show && U.value > 6 && z.value &&
|
|
1606
|
+
B.value.style.chart.zoom.show && U.value > 6 && z.value && Bt.value && !S($t) ? (y(), m(Me, {
|
|
1605
1607
|
key: 2,
|
|
1606
1608
|
ref_key: "chartSlicer",
|
|
1607
1609
|
ref: F,
|
|
1608
|
-
|
|
1610
|
+
"data-dom-to-png-ignore-layout": "",
|
|
1611
|
+
allMinimaps: Dn.value,
|
|
1609
1612
|
background: B.value.style.chart.zoom.color,
|
|
1610
1613
|
borderColor: B.value.style.chart.backgroundColor,
|
|
1611
1614
|
customFormat: B.value.style.chart.zoom.customFormat,
|
|
1612
|
-
cutNullValues:
|
|
1615
|
+
cutNullValues: Tn.value,
|
|
1613
1616
|
enableRangeHandles: B.value.style.chart.zoom.enableRangeHandles,
|
|
1614
1617
|
enableSelectionDrag: B.value.style.chart.zoom.enableSelectionDrag,
|
|
1615
1618
|
end: J.value.end,
|
|
@@ -1618,12 +1621,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1618
1621
|
fontSize: B.value.style.chart.zoom.fontSize,
|
|
1619
1622
|
immediate: !B.value.style.chart.zoom.preview.enable,
|
|
1620
1623
|
inputColor: B.value.style.chart.zoom.color,
|
|
1621
|
-
isPreview:
|
|
1624
|
+
isPreview: jn.value,
|
|
1622
1625
|
labelLeft: B.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Z.value[J.value.start]?.text : "",
|
|
1623
1626
|
labelRight: B.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Z.value[J.value.end - 1]?.text : "",
|
|
1624
1627
|
max: U.value,
|
|
1625
1628
|
min: 0,
|
|
1626
|
-
minimap:
|
|
1629
|
+
minimap: En.value,
|
|
1627
1630
|
minimapCompact: B.value.style.chart.zoom.minimap.compact,
|
|
1628
1631
|
minimapFrameColor: B.value.style.chart.zoom.minimap.frameColor,
|
|
1629
1632
|
minimapIndicatorColor: B.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1633,7 +1636,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1633
1636
|
minimapSelectedColorOpacity: B.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1634
1637
|
minimapSelectedIndex: j.value,
|
|
1635
1638
|
minimapSelectionRadius: B.value.style.chart.zoom.minimap.selectionRadius,
|
|
1636
|
-
preciseLabels:
|
|
1639
|
+
preciseLabels: Yn.value?.length ? Yn.value : Z.value,
|
|
1637
1640
|
refreshEndPoint: B.value.style.chart.zoom.endIndex === null ? U.value : B.value.style.chart.zoom.endIndex + 1,
|
|
1638
1641
|
refreshStartPoint: B.value.style.chart.zoom.startIndex === null ? 0 : B.value.style.chart.zoom.startIndex,
|
|
1639
1642
|
selectColor: B.value.style.chart.zoom.highlightColor,
|
|
@@ -1655,42 +1658,42 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1655
1658
|
handleBorderColor: B.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1656
1659
|
handleFill: B.value.style.chart.zoom.minimap.handleFill,
|
|
1657
1660
|
handleWidth: B.value.style.chart.zoom.minimap.handleWidth,
|
|
1658
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
1659
|
-
onFutureStart: n[2] ||= (e) =>
|
|
1660
|
-
onReset:
|
|
1661
|
-
onTrapMouse:
|
|
1662
|
-
"onUpdate:end":
|
|
1663
|
-
"onUpdate:start":
|
|
1661
|
+
onFutureEnd: n[1] ||= (e) => Mn("end", e),
|
|
1662
|
+
onFutureStart: n[2] ||= (e) => Mn("start", e),
|
|
1663
|
+
onReset: An,
|
|
1664
|
+
onTrapMouse: gn,
|
|
1665
|
+
"onUpdate:end": Fn,
|
|
1666
|
+
"onUpdate:start": Pn
|
|
1664
1667
|
}, {
|
|
1665
1668
|
"reset-action": w(({ reset: e }) => [x(t.$slots, "reset-action", v(_({ reset: e })), void 0, !0)]),
|
|
1666
1669
|
_: 3
|
|
1667
1670
|
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : h("", !0),
|
|
1668
|
-
g("div", { id: `legend-bottom-${E.value}` }, null, 8,
|
|
1669
|
-
|
|
1671
|
+
g("div", { id: `legend-bottom-${E.value}` }, null, 8, ut),
|
|
1672
|
+
It.value && (B.value.style.chart.legend.show || t.$slots.legend) ? (y(), m(ze, {
|
|
1670
1673
|
key: 3,
|
|
1671
1674
|
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
1672
1675
|
}, [g("div", {
|
|
1673
1676
|
ref_key: "chartLegend",
|
|
1674
|
-
ref:
|
|
1675
|
-
}, [x(t.$slots, "legend", { legend:
|
|
1676
|
-
legendSet:
|
|
1677
|
-
config:
|
|
1678
|
-
key: `legend_${
|
|
1679
|
-
isCursorPointer:
|
|
1680
|
-
onClickMarker: n[3] ||= ({ i: e }) =>
|
|
1677
|
+
ref: jt
|
|
1678
|
+
}, [x(t.$slots, "legend", { legend: Or.value }, () => [B.value.style.chart.legend.show && z.value ? (y(), m(Le, {
|
|
1679
|
+
legendSet: Or.value,
|
|
1680
|
+
config: kr.value,
|
|
1681
|
+
key: `legend_${Ft.value}`,
|
|
1682
|
+
isCursorPointer: Xt.value,
|
|
1683
|
+
onClickMarker: n[3] ||= ({ i: e }) => wr(e)
|
|
1681
1684
|
}, {
|
|
1682
1685
|
item: w(({ legend: e, index: t }) => [g("div", {
|
|
1683
1686
|
onClick: (t) => e.segregate(),
|
|
1684
|
-
style:
|
|
1685
|
-
},
|
|
1686
|
-
legendToggle: w(() => [
|
|
1687
|
+
style: Je(`opacity:${M.value.includes(t) ? .5 : 1}`)
|
|
1688
|
+
}, $e(e.name), 13, dt)]),
|
|
1689
|
+
legendToggle: w(() => [Or.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !S($t) ? (y(), m(Pe, {
|
|
1687
1690
|
key: 0,
|
|
1688
1691
|
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1689
1692
|
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1690
1693
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
1691
1694
|
checked: M.value.length > 0,
|
|
1692
|
-
isCursorPointer:
|
|
1693
|
-
onToggle:
|
|
1695
|
+
isCursorPointer: Xt.value,
|
|
1696
|
+
onToggle: Cr
|
|
1694
1697
|
}, null, 8, [
|
|
1695
1698
|
"backgroundColor",
|
|
1696
1699
|
"color",
|
|
@@ -1704,31 +1707,31 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1704
1707
|
"config",
|
|
1705
1708
|
"isCursorPointer"
|
|
1706
1709
|
])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
|
|
1707
|
-
t.$slots.watermark ? (y(),
|
|
1708
|
-
t.$slots.source ? (y(),
|
|
1710
|
+
t.$slots.watermark ? (y(), Be("div", ft, [x(t.$slots, "watermark", v(_({ isPrinting: S(ln) || S(un) || Ht.value })), void 0, !0)])) : h("", !0),
|
|
1711
|
+
t.$slots.source ? (y(), Be("div", {
|
|
1709
1712
|
key: 5,
|
|
1710
1713
|
ref_key: "source",
|
|
1711
|
-
ref:
|
|
1714
|
+
ref: Mt,
|
|
1712
1715
|
dir: "auto"
|
|
1713
1716
|
}, [x(t.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1714
|
-
z.value && B.value.userOptions.buttons.table ? (y(), m(
|
|
1717
|
+
z.value && B.value.userOptions.buttons.table ? (y(), m(Ze(Vr.value.component), Ge({ key: 6 }, Vr.value.props, {
|
|
1715
1718
|
ref_key: "tableUnit",
|
|
1716
|
-
ref:
|
|
1717
|
-
onClose:
|
|
1718
|
-
}),
|
|
1719
|
-
content: w(() => [(y(), m(S(
|
|
1720
|
-
key: `table_${
|
|
1721
|
-
colNames:
|
|
1722
|
-
head:
|
|
1723
|
-
body:
|
|
1724
|
-
config:
|
|
1725
|
-
title: B.value.table.useDialog ? "" :
|
|
1719
|
+
ref: Lt,
|
|
1720
|
+
onClose: Hr
|
|
1721
|
+
}), Ve({
|
|
1722
|
+
content: w(() => [(y(), m(S(ht), {
|
|
1723
|
+
key: `table_${Pt.value}`,
|
|
1724
|
+
colNames: Ar.value.colNames,
|
|
1725
|
+
head: Ar.value.head,
|
|
1726
|
+
body: Ar.value.body,
|
|
1727
|
+
config: Ar.value.config,
|
|
1728
|
+
title: B.value.table.useDialog ? "" : Vr.value.title,
|
|
1726
1729
|
withCloseButton: !B.value.table.useDialog,
|
|
1727
|
-
isCursorPointer:
|
|
1728
|
-
onClose:
|
|
1730
|
+
isCursorPointer: Xt.value,
|
|
1731
|
+
onClose: Hr
|
|
1729
1732
|
}, {
|
|
1730
|
-
th: w(({ th: e }) => [g("div", { innerHTML: e }, null, 8,
|
|
1731
|
-
td: w(({ td: e }) => [
|
|
1733
|
+
th: w(({ th: e }) => [g("div", { innerHTML: e }, null, 8, pt)]),
|
|
1734
|
+
td: w(({ td: e }) => [He($e(e), 1)]),
|
|
1732
1735
|
_: 1
|
|
1733
1736
|
}, 8, [
|
|
1734
1737
|
"colNames",
|
|
@@ -1742,29 +1745,29 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1742
1745
|
_: 2
|
|
1743
1746
|
}, [B.value.table.useDialog ? {
|
|
1744
1747
|
name: "title",
|
|
1745
|
-
fn: w(() => [
|
|
1748
|
+
fn: w(() => [He($e(Vr.value.title), 1)]),
|
|
1746
1749
|
key: "0"
|
|
1747
1750
|
} : void 0, B.value.table.useDialog ? {
|
|
1748
1751
|
name: "actions",
|
|
1749
1752
|
fn: w(() => [g("button", {
|
|
1750
1753
|
tabindex: "0",
|
|
1751
1754
|
class: "vue-ui-user-options-button",
|
|
1752
|
-
onClick: n[4] ||= (e) =>
|
|
1753
|
-
style:
|
|
1754
|
-
}, [
|
|
1755
|
+
onClick: n[4] ||= (e) => Mr(B.value.userOptions.callbacks.csv),
|
|
1756
|
+
style: Je({ cursor: Xt.value ? "pointer" : "default" })
|
|
1757
|
+
}, [Ue(je, {
|
|
1755
1758
|
name: "fileCsv",
|
|
1756
|
-
stroke:
|
|
1759
|
+
stroke: Vr.value.props.color
|
|
1757
1760
|
}, null, 8, ["stroke"])], 4)]),
|
|
1758
1761
|
key: "1"
|
|
1759
1762
|
} : void 0]), 1040)) : h("", !0),
|
|
1760
|
-
B.value.userOptions.buttons.annotator && q.value.length ? (y(), m(S(
|
|
1763
|
+
B.value.userOptions.buttons.annotator && q.value.length ? (y(), m(S(_t), {
|
|
1761
1764
|
key: 7,
|
|
1762
1765
|
parent: D.value,
|
|
1763
1766
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1764
1767
|
color: B.value.style.chart.color,
|
|
1765
|
-
active:
|
|
1766
|
-
isCursorPointer:
|
|
1767
|
-
onClose:
|
|
1768
|
+
active: Rr.value,
|
|
1769
|
+
isCursorPointer: Xt.value,
|
|
1770
|
+
onClose: zr
|
|
1768
1771
|
}, {
|
|
1769
1772
|
"annotator-action-close": w(() => [x(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1770
1773
|
"annotator-action-color": w(({ color: e }) => [x(t.$slots, "annotator-action-color", v(_({ color: e })), void 0, !0)]),
|
|
@@ -1780,8 +1783,8 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1780
1783
|
"active",
|
|
1781
1784
|
"isCursorPointer"
|
|
1782
1785
|
])) : h("", !0)
|
|
1783
|
-
], 46,
|
|
1786
|
+
], 46, it));
|
|
1784
1787
|
}
|
|
1785
|
-
}, [["__scopeId", "data-v-
|
|
1788
|
+
}, [["__scopeId", "data-v-926aa518"]]);
|
|
1786
1789
|
//#endregion
|
|
1787
|
-
export {
|
|
1790
|
+
export { rt as n, mt as t };
|