vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as de,
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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 {
|
|
2
|
+
import { $ as t, Bt as n, D as r, Et as i, Jt as a, Kt as o, Ot as s, Pt as c, Rt as l, S as u, X as d, _ as ee, ct as te, dt as ne, i as re, jt as ie, o as ae, q as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as pe, r as me, t as he } from "./useTimeLabels-B9CEuiLZ.js";
|
|
5
|
+
import { t as ge } from "./useConfig-BilxnBNr.js";
|
|
6
|
+
import { t as _e } from "./usePrinter-BFvi4jVy.js";
|
|
7
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as be } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Se } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as Ce } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { a as f, c as p, i as Te, l as Ee, n as De, o as Oe, r as ke, s as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Me } from "./BaseIcon-91MZoczJ.js";
|
|
15
|
+
import { t as Ne } from "./SlicerPreview-DvjLV2TW.js";
|
|
16
|
+
import { t as Pe } from "./vue-ui-accordion-61MlW-Ge.js";
|
|
17
|
+
import { t as Fe } from "./BaseLegendToggle-CtAPwzr2.js";
|
|
18
|
+
import { t as Ie } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Le } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Re } from "./Legend-CQTRlzK-.js";
|
|
21
|
+
import { t as ze } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
|
|
22
|
+
import { Teleport as Be, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as Ve, createElementVNode as _, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as Ge, guardReactiveProps as v, mergeProps as Ke, nextTick as qe, normalizeClass as Je, normalizeProps as y, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as et, toRefs as tt, unref as C, useSlots as nt, watch as w, watchEffect as rt, withCtx as T } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-xy-canvas.vue
|
|
23
|
-
var
|
|
24
|
+
var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st = {
|
|
24
25
|
class: "sr-only",
|
|
25
26
|
"aria-live": "polite",
|
|
26
27
|
"aria-atomic": "true"
|
|
27
|
-
},
|
|
28
|
+
}, ct = ["id"], lt = ["aria-label", "aria-describedby"], ut = {
|
|
28
29
|
key: 0,
|
|
29
30
|
style: {
|
|
30
31
|
position: "absolute",
|
|
@@ -34,10 +35,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
34
35
|
},
|
|
35
36
|
"data-dom-to-png-ignore": "",
|
|
36
37
|
"aria-hidden": "true"
|
|
37
|
-
},
|
|
38
|
+
}, dt = ["id"], ft = ["onClick"], pt = {
|
|
38
39
|
key: 4,
|
|
39
40
|
class: "vue-data-ui-watermark"
|
|
40
|
-
},
|
|
41
|
+
}, mt = ["innerHTML"], ht = /*#__PURE__*/ we({
|
|
41
42
|
__name: "vue-ui-xy-canvas",
|
|
42
43
|
props: {
|
|
43
44
|
dataset: {
|
|
@@ -62,25 +63,50 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
62
63
|
"selectX",
|
|
63
64
|
"copyAlt"
|
|
64
65
|
],
|
|
65
|
-
setup(e, { expose:
|
|
66
|
-
let
|
|
66
|
+
setup(e, { expose: we, emit: it }) {
|
|
67
|
+
let ht = Ge(() => import("./Tooltip-CMTGxeYO.js")), gt = Ge(() => import("./DataTable-D4tM9s5Y.js")), _t = Ge(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), vt = Ge(() => import("./NonSvgPenAndPaper-Cawacw1W.js")), yt = Ge(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_xy_canvas: bt } = ge(), { isThemeValid: xt, warnInvalidTheme: St } = xe(), E = e, D = x(oe()), O = x(null), Ct = x(null), k = x(null), A = x(1), j = x(1), wt = x(!1), M = x(null), Tt = x(""), Et = x(null), N = x([]), Dt = x(1), P = x(!0), F = x(!0), Ot = x(null), kt = x(0), At = x(!1), jt = x(null), Mt = x(null), I = x(null), Nt = x(null), Pt = x(0), Ft = x(0), It = x(0), L = x(null), Lt = x(!1), Rt = x(null), zt = x(null), Bt = x(!1), Vt = x(!1), Ht = x(!1), R = x(null), Ut = x(!1), Wt = x(!1), Gt = x(!1), z = x(null), Kt = x({
|
|
67
68
|
x: 0,
|
|
68
69
|
y: 0
|
|
69
|
-
}), B = m(() => Array.isArray(
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
}), B = m(() => Array.isArray(tn.value) && tn.value.length > 0), qt = it, Jt = nt();
|
|
71
|
+
Ze(() => {
|
|
72
|
+
Jt["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
72
73
|
});
|
|
73
|
-
let V = x(
|
|
74
|
+
let V = x(cn());
|
|
75
|
+
de({
|
|
76
|
+
config: () => V.value,
|
|
77
|
+
dataset: () => E.dataset,
|
|
78
|
+
component: "VueUiXyCanvas",
|
|
79
|
+
rules: [
|
|
80
|
+
fe.emptyArray,
|
|
81
|
+
{
|
|
82
|
+
test: (e) => e.every((e) => e.series.length < 300),
|
|
83
|
+
message: [
|
|
84
|
+
"👀 Series have < 300 datapoints. Consider:",
|
|
85
|
+
"",
|
|
86
|
+
"▶️ Using VueUiXy instead, if you need more options, or more customization possibilities."
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
test: (e) => e.some((e) => e.series.length > 1e4),
|
|
91
|
+
message: [
|
|
92
|
+
"👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.",
|
|
93
|
+
"",
|
|
94
|
+
"▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints."
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
let Yt = m(() => {
|
|
74
100
|
let e = V.value.style.chart.title.text || "XY chart", t = Y.value.end - Y.value.start;
|
|
75
101
|
return `${e}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
76
|
-
}),
|
|
102
|
+
}), Xt = m(() => {
|
|
77
103
|
if (z.value === null) return "";
|
|
78
104
|
let e = z.value + Y.value.start;
|
|
79
|
-
return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text :
|
|
105
|
+
return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text : Zn.value[z.value]?.text : Q.value[e]?.text ?? `Point ${e + 1}`}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).map((e) => {
|
|
80
106
|
let t = e.series[z.value], n = t?.value ?? t ?? null;
|
|
81
107
|
return `${e.name}: ${n}`;
|
|
82
108
|
}).join(". ")}.`;
|
|
83
|
-
}),
|
|
109
|
+
}), Zt = m(() => V.value.userOptions.useCursorPointer), Qt = m(() => !!V.value.debug), $t = m(() => a({
|
|
84
110
|
defaultConfig: {
|
|
85
111
|
userOptions: { show: !1 },
|
|
86
112
|
table: { show: !1 },
|
|
@@ -114,10 +140,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
114
140
|
} }
|
|
115
141
|
},
|
|
116
142
|
userConfig: V.value.skeletonConfig ?? {}
|
|
117
|
-
})), { loading:
|
|
118
|
-
|
|
143
|
+
})), { loading: en, FINAL_DATASET: tn } = ve({
|
|
144
|
+
...tt(E),
|
|
119
145
|
FINAL_CONFIG: V,
|
|
120
|
-
prepareConfig:
|
|
146
|
+
prepareConfig: cn,
|
|
121
147
|
skeletonDataset: E.config?.skeletonDataset ?? [{
|
|
122
148
|
name: "",
|
|
123
149
|
series: [
|
|
@@ -156,52 +182,52 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
156
182
|
type: "bar",
|
|
157
183
|
color: "#AAAAAA"
|
|
158
184
|
}],
|
|
159
|
-
skeletonConfig:
|
|
185
|
+
skeletonConfig: a({
|
|
160
186
|
defaultConfig: V.value,
|
|
161
|
-
userConfig:
|
|
187
|
+
userConfig: $t.value
|
|
162
188
|
})
|
|
163
|
-
}), { userOptionsVisible:
|
|
164
|
-
function
|
|
165
|
-
|
|
189
|
+
}), { userOptionsVisible: nn, setUserOptionsVisibility: rn, keepUserOptionState: an } = Ie({ config: V.value }), { svgRef: H } = Le({ config: V.value.style.chart.title });
|
|
190
|
+
function on() {
|
|
191
|
+
rn(!0);
|
|
166
192
|
}
|
|
167
|
-
function
|
|
168
|
-
|
|
193
|
+
function sn() {
|
|
194
|
+
rn(!1), qt("selectX", {
|
|
169
195
|
dataset: null,
|
|
170
196
|
index: null,
|
|
171
197
|
indexLabel: null
|
|
172
198
|
}), M.value = null;
|
|
173
199
|
}
|
|
174
|
-
function
|
|
175
|
-
let e =
|
|
200
|
+
function cn() {
|
|
201
|
+
let e = be({
|
|
176
202
|
userConfig: E.config,
|
|
177
|
-
defaultConfig:
|
|
203
|
+
defaultConfig: bt
|
|
178
204
|
}), t = {}, n = e.theme;
|
|
179
|
-
if (n) if (!
|
|
205
|
+
if (n) if (!xt.value(e)) St(e), t = e;
|
|
180
206
|
else {
|
|
181
|
-
let r =
|
|
182
|
-
userConfig:
|
|
207
|
+
let r = be({
|
|
208
|
+
userConfig: ze[n] || E.config,
|
|
183
209
|
defaultConfig: e
|
|
184
210
|
});
|
|
185
211
|
t = {
|
|
186
|
-
...
|
|
212
|
+
...be({
|
|
187
213
|
userConfig: E.config,
|
|
188
214
|
defaultConfig: r
|
|
189
215
|
}),
|
|
190
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
216
|
+
customPalette: e.customPalette.length ? e.customPalette : o[n] || c
|
|
191
217
|
};
|
|
192
218
|
}
|
|
193
219
|
else t = e;
|
|
194
|
-
return E.config &&
|
|
220
|
+
return E.config && ce(E.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 = be({
|
|
195
221
|
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
196
222
|
userConfig: E.config.style.chart.grid.y.timeLabels
|
|
197
223
|
})), t;
|
|
198
224
|
}
|
|
199
225
|
w(() => E.config, (e) => {
|
|
200
|
-
|
|
226
|
+
en.value || (V.value = cn()), nn.value = !V.value.userOptions.showOnChartHover, wr(), Pt.value += 1, Ft.value += 1, It.value += 1, U.value.showTable = V.value.table.show, U.value.showDataLabels = V.value.style.chart.dataLabels.show, U.value.stacked = V.value.style.chart.stacked, U.value.showTooltip = V.value.style.chart.tooltip.show;
|
|
201
227
|
}, { deep: !0 }), w(() => E.dataset, async (e) => {
|
|
202
|
-
!Array.isArray(e) || e.length === 0 || (await
|
|
228
|
+
!Array.isArray(e) || e.length === 0 || (await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await jn(), Bn(), Pt.value += 1, Ft.value += 1, It.value += 1);
|
|
203
229
|
}, { deep: !0 });
|
|
204
|
-
let
|
|
230
|
+
let ln = x(V.value.style.chart.aspectRatio), { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = _e({
|
|
205
231
|
elementId: `xy_canvas_${D.value}`,
|
|
206
232
|
fileName: V.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
207
233
|
options: V.value.userOptions.print
|
|
@@ -211,15 +237,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
211
237
|
stacked: V.value.style.chart.stacked,
|
|
212
238
|
showTooltip: V.value.style.chart.tooltip.show
|
|
213
239
|
});
|
|
214
|
-
function
|
|
215
|
-
|
|
240
|
+
function mn(e) {
|
|
241
|
+
At.value = e, kt.value += 1;
|
|
216
242
|
}
|
|
217
|
-
let
|
|
218
|
-
function
|
|
243
|
+
let hn = m(() => le(V.value.customPalette)), gn = m(() => N.value.length === q.value.length), W = m(() => q.value ? Math.max(...q.value.filter((e, t) => gn.value ? !0 : !N.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
244
|
+
function _n(e) {
|
|
219
245
|
R.value = e, $();
|
|
220
246
|
}
|
|
221
|
-
let
|
|
222
|
-
function
|
|
247
|
+
let vn = x(0), yn = x(0);
|
|
248
|
+
function bn() {
|
|
223
249
|
if (!k.value || !V.value.style.chart.grid.x.timeLabels.show) return 0;
|
|
224
250
|
let e = Q.value || [], t = Y.value.start ?? 0, n = Y.value.end ?? 0;
|
|
225
251
|
if (!Math.max(0, n - t)) return 0;
|
|
@@ -234,21 +260,21 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
234
260
|
let o = (V.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 = V.value.style.chart.grid.x.timeLabels.offsetY || 1, u = A.value / l;
|
|
235
261
|
return Math.max(0, u + c + 4);
|
|
236
262
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
263
|
+
function xn() {
|
|
264
|
+
vn.value = bn();
|
|
239
265
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
266
|
+
function Sn() {
|
|
267
|
+
yn.value && cancelAnimationFrame(yn.value), yn.value = requestAnimationFrame(() => {
|
|
242
268
|
requestAnimationFrame(() => {
|
|
243
|
-
|
|
269
|
+
xn();
|
|
244
270
|
});
|
|
245
271
|
});
|
|
246
272
|
}
|
|
247
|
-
|
|
248
|
-
|
|
273
|
+
Xe(() => {
|
|
274
|
+
yn.value && cancelAnimationFrame(yn.value);
|
|
249
275
|
});
|
|
250
276
|
let G = m(() => {
|
|
251
|
-
let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r =
|
|
277
|
+
let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r = vn.value, i = j.value - n - r, a = j.value - (t + n) - r;
|
|
252
278
|
return {
|
|
253
279
|
canvasWidth: A.value,
|
|
254
280
|
canvasHeight: j.value,
|
|
@@ -261,13 +287,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
261
287
|
slot: e / (Y.value.end - Y.value.start)
|
|
262
288
|
};
|
|
263
289
|
});
|
|
264
|
-
function
|
|
290
|
+
function Cn(e, t) {
|
|
265
291
|
return e / t;
|
|
266
292
|
}
|
|
267
|
-
function
|
|
293
|
+
function wn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
268
294
|
return t.map((t, n) => {
|
|
269
|
-
let r = i.min < 0 ? Math.abs(i.min) : 0, c =
|
|
270
|
-
e && (l = i.min, u =
|
|
295
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, c = Cn(t + r, r + i.max), l, u;
|
|
296
|
+
e && (l = i.min, u = Cn(t - l, i.max - l));
|
|
271
297
|
let d = 0;
|
|
272
298
|
return d = s === null ? G.value.bottom - G.value.height * (e ? u : c) : G.value.bottom - a - o * (e ? u : c), {
|
|
273
299
|
x: G.value.left + G.value.slot * n + G.value.slot / 2,
|
|
@@ -277,7 +303,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
277
303
|
});
|
|
278
304
|
}
|
|
279
305
|
let K = m(() => {
|
|
280
|
-
let e = V.value.style.chart.scale.min === null ? Math.min(...q.value.filter((e, t) => !N.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(Y.value.start, Y.value.end))) : V.value.style.chart.scale.min, t = V.value.style.chart.scale.max === null ? Math.max(...q.value.filter((e, t) => !N.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(Y.value.start, Y.value.end))) : V.value.style.chart.scale.max, n =
|
|
306
|
+
let e = V.value.style.chart.scale.min === null ? Math.min(...q.value.filter((e, t) => !N.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(Y.value.start, Y.value.end))) : V.value.style.chart.scale.min, t = V.value.style.chart.scale.max === null ? Math.max(...q.value.filter((e, t) => !N.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(Y.value.start, Y.value.end))) : V.value.style.chart.scale.max, n = ee(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, V.value.style.chart.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = G.value.bottom - G.value.height * (r / (n.max + r));
|
|
281
307
|
return {
|
|
282
308
|
absoluteMin: r,
|
|
283
309
|
max: t,
|
|
@@ -290,13 +316,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
290
316
|
})),
|
|
291
317
|
zero: i
|
|
292
318
|
};
|
|
293
|
-
}),
|
|
319
|
+
}), Tn = m(() => J.value.map((e) => `
|
|
294
320
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
295
321
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
296
322
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
297
323
|
</svg>
|
|
298
324
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
299
|
-
<span>${
|
|
325
|
+
<span>${re(V.value.style.chart.dataLabels.formatter, e.series[M.value] ?? "-", d({
|
|
300
326
|
p: e.prefix || "",
|
|
301
327
|
v: e.series[M.value] ?? "-",
|
|
302
328
|
s: e.suffix || "",
|
|
@@ -306,28 +332,28 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
306
332
|
seriesIndex: M.value
|
|
307
333
|
})}</span>
|
|
308
334
|
</div>
|
|
309
|
-
`)),
|
|
335
|
+
`)), En = m(() => V.value.style.chart.line.cutNullValues), q = m(() => tn.value.map((e, t) => ({
|
|
310
336
|
...e,
|
|
311
|
-
series:
|
|
312
|
-
data:
|
|
337
|
+
series: i({
|
|
338
|
+
data: l(e.series, [], En.value),
|
|
313
339
|
threshold: V.value.downsample.threshold
|
|
314
340
|
}),
|
|
315
341
|
absoluteIndex: t,
|
|
316
|
-
color:
|
|
317
|
-
}))),
|
|
342
|
+
color: u(e.color || hn.value[t] || c[t] || c[t % c.length])
|
|
343
|
+
}))), Dn = m(() => {
|
|
318
344
|
if (!V.value.style.chart.zoom.minimap.show) return [];
|
|
319
345
|
let e = q.value.filter((e) => !N.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
320
346
|
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));
|
|
321
347
|
let r = Math.min(...n);
|
|
322
348
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
323
|
-
}),
|
|
349
|
+
}), On = m(() => V.value.style.chart.zoom.minimap.show ? q.value.map((e) => ({
|
|
324
350
|
...e,
|
|
325
351
|
isVisible: !N.value.includes(e.absoluteIndex)
|
|
326
352
|
})) : []);
|
|
327
353
|
w(W, (e) => {
|
|
328
|
-
e &&
|
|
354
|
+
e && jn();
|
|
329
355
|
});
|
|
330
|
-
let J = m(() =>
|
|
356
|
+
let J = m(() => ae(q.value.filter((e, t) => !N.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
331
357
|
...e,
|
|
332
358
|
series: e.series.slice(Y.value.start, Y.value.end)
|
|
333
359
|
})).map((e, t) => {
|
|
@@ -338,14 +364,14 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
338
364
|
valueMin: n,
|
|
339
365
|
valueMax: r
|
|
340
366
|
}, a = e.scaleSteps || V.value.style.chart.scale.ticks, o;
|
|
341
|
-
o = e.autoScaling ?
|
|
367
|
+
o = e.autoScaling ? ee(i.valueMin, i.valueMax, a) : ee(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, a);
|
|
342
368
|
let s = U.value.stacked ? G.value.height * (1 - e.cumulatedStackRatio) : 0, c = U.value.stacked ? G.value.height / V.value.style.chart.stackGap : 0, l = U.value.stacked ? G.value.height * e.stackRatio - c : G.value.height, u = o.min < 0 ? Math.abs(o.min) : 0, d;
|
|
343
369
|
d = e.autoScaling && U.value.stacked && r <= 0 ? G.value.bottom - s - l : G.value.bottom - s - l * (u / (o.max + u));
|
|
344
|
-
let
|
|
370
|
+
let te = o.ticks.map((e, t) => ({
|
|
345
371
|
y: G.value.bottom - s - l * (t / (o.ticks.length - 1)),
|
|
346
372
|
x: G.value.left - 8,
|
|
347
373
|
value: e
|
|
348
|
-
})),
|
|
374
|
+
})), ne = wn({
|
|
349
375
|
hasAutoScale: U.value.stacked && e.autoScaling,
|
|
350
376
|
series: e.series,
|
|
351
377
|
min: U.value.stacked ? n : K.value.min,
|
|
@@ -357,13 +383,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
357
383
|
});
|
|
358
384
|
return {
|
|
359
385
|
...e,
|
|
360
|
-
coordinatesLine:
|
|
386
|
+
coordinatesLine: ne,
|
|
361
387
|
min: n,
|
|
362
388
|
max: r,
|
|
363
389
|
localScale: o,
|
|
364
390
|
localZero: d,
|
|
365
391
|
localMin: u,
|
|
366
|
-
localYLabels:
|
|
392
|
+
localYLabels: te,
|
|
367
393
|
yOffset: s,
|
|
368
394
|
individualHeight: l
|
|
369
395
|
};
|
|
@@ -373,72 +399,72 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
373
399
|
}), X = x({
|
|
374
400
|
start: 0,
|
|
375
401
|
end: W.value
|
|
376
|
-
}),
|
|
377
|
-
function
|
|
402
|
+
}), kn = x(null);
|
|
403
|
+
function An() {
|
|
378
404
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
379
405
|
}
|
|
380
|
-
|
|
381
|
-
|
|
406
|
+
Xe(() => {
|
|
407
|
+
kn.value && cancelAnimationFrame(kn.value);
|
|
382
408
|
});
|
|
383
|
-
async function
|
|
384
|
-
|
|
385
|
-
await
|
|
409
|
+
async function jn() {
|
|
410
|
+
Pn(), await qe(), kn.value && cancelAnimationFrame(kn.value), kn.value = requestAnimationFrame(async () => {
|
|
411
|
+
await An(), Pn();
|
|
386
412
|
});
|
|
387
413
|
}
|
|
388
|
-
let
|
|
389
|
-
function
|
|
414
|
+
let Mn = m(() => V.value.style.chart.zoom.preview.enable && (X.value.start !== Y.value.start || X.value.end !== Y.value.end));
|
|
415
|
+
function Nn(e, t) {
|
|
390
416
|
X.value[e] = t;
|
|
391
417
|
}
|
|
392
|
-
async function
|
|
393
|
-
if (!
|
|
394
|
-
|
|
418
|
+
async function Pn() {
|
|
419
|
+
if (!Bt.value) {
|
|
420
|
+
Bt.value = !0;
|
|
395
421
|
try {
|
|
396
|
-
let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(
|
|
397
|
-
|
|
422
|
+
let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Ln(t + 1), n);
|
|
423
|
+
Ht.value = !0, Y.value.start = r, Y.value.end = i, X.value.start = r, X.value.end = i, Rn(), Vt.value = !0, await qe(), I.value && (I.value.setStartValue(Y.value.start), I.value.setEndValue(Y.value.end));
|
|
398
424
|
} finally {
|
|
399
425
|
queueMicrotask(() => {
|
|
400
|
-
|
|
401
|
-
}),
|
|
426
|
+
Ht.value = !1;
|
|
427
|
+
}), Bt.value = !1;
|
|
402
428
|
}
|
|
403
429
|
}
|
|
404
430
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
431
|
+
function Fn(e) {
|
|
432
|
+
Bt.value || Ht.value || e !== Y.value.start && (Y.value.start = e, X.value.start = e, Rn());
|
|
407
433
|
}
|
|
408
|
-
function
|
|
409
|
-
if (
|
|
410
|
-
let t =
|
|
411
|
-
t !== Y.value.end && (Y.value.end = t, X.value.end = t,
|
|
434
|
+
function In(e) {
|
|
435
|
+
if (Bt.value || Ht.value) return;
|
|
436
|
+
let t = Ln(e);
|
|
437
|
+
t !== Y.value.end && (Y.value.end = t, X.value.end = t, Rn());
|
|
412
438
|
}
|
|
413
|
-
function
|
|
439
|
+
function Ln(e) {
|
|
414
440
|
let t = W.value;
|
|
415
441
|
return e > t ? t : e < 0 || e < Y.value.start ? V.value.style.chart.zoom.startIndex === null ? 1 : V.value.style.chart.zoom.startIndex + 1 : e;
|
|
416
442
|
}
|
|
417
|
-
function
|
|
443
|
+
function Rn() {
|
|
418
444
|
let e = Math.max(1, Math.max(...q.value.map((e) => e.series.length))), t = Math.max(0, Math.min(Y.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(Y.value.end ?? e, e));
|
|
419
445
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), Y.value = {
|
|
420
446
|
start: t,
|
|
421
447
|
end: n
|
|
422
448
|
}, X.value.start = t, X.value.end = n, I.value && (I.value.setStartValue(t), I.value.setEndValue(n));
|
|
423
449
|
}
|
|
424
|
-
let
|
|
450
|
+
let zn = m(() => J.value.filter((e) => [
|
|
425
451
|
"line",
|
|
426
452
|
"plot",
|
|
427
453
|
void 0
|
|
428
454
|
].includes(e.type))), Z = m(() => J.value.filter((e) => e.type === "bar"));
|
|
429
|
-
function
|
|
430
|
-
if (!H.value || !
|
|
431
|
-
let e =
|
|
432
|
-
H.value.width = e *
|
|
455
|
+
function Bn() {
|
|
456
|
+
if (!H.value || !Ct.value) return;
|
|
457
|
+
let e = Ct.value.offsetWidth, t = Ct.value.offsetHeight;
|
|
458
|
+
H.value.width = e * Dt.value * 2, H.value.height = t * Dt.value * 2, A.value = e * Dt.value * 2, j.value = t * Dt.value * 2, k.value?.scale(Dt.value, Dt.value), $();
|
|
433
459
|
}
|
|
434
460
|
w(B, async (e) => {
|
|
435
461
|
if (!e) {
|
|
436
|
-
|
|
462
|
+
Ot.value = null, wt.value = !1, M.value = null, L.value = null;
|
|
437
463
|
return;
|
|
438
464
|
}
|
|
439
|
-
await
|
|
465
|
+
await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await jn(), Bn(), $();
|
|
440
466
|
});
|
|
441
|
-
function
|
|
467
|
+
function Vn() {
|
|
442
468
|
if (k.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.fillStyle = V.value.style.chart.backgroundColor, k.value.fillRect(0, 0, G.value.canvasWidth, G.value.canvasHeight), B.value)) {
|
|
443
469
|
if (U.value.stacked) V.value.style.chart.grid.y.verticalLines.show && Y.value.end - Y.value.start < V.value.style.chart.grid.y.verticalLines.hideUnderXLength ? J.value.forEach((e) => {
|
|
444
470
|
for (let t = 0; t < Y.value.end - Y.value.start + 1; t += 1) f(k.value, [{
|
|
@@ -457,8 +483,8 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
457
483
|
y: G.value.bottom - e.yOffset
|
|
458
484
|
}], { color: V.value.style.chart.grid.y.verticalLines.color });
|
|
459
485
|
}), V.value.style.chart.grid.x.horizontalLines.show && (V.value.style.chart.grid.x.horizontalLines.alternate ? J.value.forEach((e) => {
|
|
460
|
-
e.localYLabels.forEach((t,
|
|
461
|
-
|
|
486
|
+
e.localYLabels.forEach((t, r) => {
|
|
487
|
+
r < e.localYLabels.length - 1 && Ae(k.value, [
|
|
462
488
|
{
|
|
463
489
|
x: G.value.left,
|
|
464
490
|
y: t.y
|
|
@@ -469,14 +495,14 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
469
495
|
},
|
|
470
496
|
{
|
|
471
497
|
x: G.value.right,
|
|
472
|
-
y: e.localYLabels[
|
|
498
|
+
y: e.localYLabels[r + 1].y
|
|
473
499
|
},
|
|
474
500
|
{
|
|
475
501
|
x: G.value.left,
|
|
476
|
-
y: e.localYLabels[
|
|
502
|
+
y: e.localYLabels[r + 1].y
|
|
477
503
|
}
|
|
478
504
|
], {
|
|
479
|
-
fillColor:
|
|
505
|
+
fillColor: r % 2 == 0 ? "transparent" : n(V.value.style.chart.grid.x.horizontalLines.color, V.value.style.chart.grid.x.horizontalLines.opacity),
|
|
480
506
|
strokeColor: "transparent"
|
|
481
507
|
});
|
|
482
508
|
});
|
|
@@ -539,7 +565,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
539
565
|
y: G.value.bottom
|
|
540
566
|
}], { color: V.value.style.chart.grid.y.verticalLines.color });
|
|
541
567
|
V.value.style.chart.grid.x.horizontalLines.show && (V.value.style.chart.grid.x.horizontalLines.alternate ? K.value.yLabels.forEach((e, t) => {
|
|
542
|
-
t < K.value.yLabels.length - 1 &&
|
|
568
|
+
t < K.value.yLabels.length - 1 && Ae(k.value, [
|
|
543
569
|
{
|
|
544
570
|
x: G.value.left,
|
|
545
571
|
y: e.y
|
|
@@ -557,7 +583,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
557
583
|
y: K.value.yLabels[t + 1].y
|
|
558
584
|
}
|
|
559
585
|
], {
|
|
560
|
-
fillColor: t % 2 == 0 ? "transparent" :
|
|
586
|
+
fillColor: t % 2 == 0 ? "transparent" : n(V.value.style.chart.grid.x.horizontalLines.color, V.value.style.chart.grid.x.horizontalLines.opacity),
|
|
561
587
|
strokeColor: "transparent"
|
|
562
588
|
});
|
|
563
589
|
}) : K.value.yLabels.forEach((e) => {
|
|
@@ -609,10 +635,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
609
635
|
});
|
|
610
636
|
}
|
|
611
637
|
}
|
|
612
|
-
function
|
|
638
|
+
function Hn(e) {
|
|
613
639
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
614
640
|
let n = (M.value === t || R.value === t ? A.value / 150 : V.value.style.chart.line.plots.show || e.type === "plot" ? A.value / 200 : 0) * V.value.style.chart.line.plots.radiusRatio;
|
|
615
|
-
|
|
641
|
+
De(k.value, {
|
|
616
642
|
x: e.coordinatesLine[t].x,
|
|
617
643
|
y: e.coordinatesLine[t].y
|
|
618
644
|
}, n, {
|
|
@@ -622,27 +648,27 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
622
648
|
});
|
|
623
649
|
}
|
|
624
650
|
}
|
|
625
|
-
function
|
|
651
|
+
function Un() {
|
|
626
652
|
J.value.forEach((e) => {
|
|
627
|
-
e.showYMarker &&
|
|
653
|
+
e.showYMarker && lr(e) && p(k.value, re(V.value.style.chart.dataLabels.formatter, lr(e).value, d({
|
|
628
654
|
p: e.prefix || V.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
629
|
-
v:
|
|
655
|
+
v: lr(e).value,
|
|
630
656
|
s: e.suffix || V.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
631
657
|
r: e.rounding || V.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
632
658
|
}), {
|
|
633
|
-
datapoint:
|
|
659
|
+
datapoint: lr(e),
|
|
634
660
|
seriesIndex: null
|
|
635
|
-
}), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX,
|
|
661
|
+
}), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX, lr(e).y, {
|
|
636
662
|
align: "right",
|
|
637
663
|
font: `${V.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
|
|
638
664
|
color: e.color
|
|
639
665
|
});
|
|
640
666
|
});
|
|
641
667
|
}
|
|
642
|
-
function
|
|
668
|
+
function Wn() {
|
|
643
669
|
V.value.style.chart.grid.y.axisLabels.show && (U.value.stacked ? J.value.forEach((e) => {
|
|
644
670
|
e.localYLabels.forEach((t, n) => {
|
|
645
|
-
p(k.value,
|
|
671
|
+
p(k.value, re(V.value.style.chart.dataLabels.formatter, t.value, d({
|
|
646
672
|
p: e.prefix || V.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
647
673
|
v: t.value,
|
|
648
674
|
s: e.suffix || V.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -658,7 +684,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
658
684
|
});
|
|
659
685
|
});
|
|
660
686
|
}) : K.value.yLabels.forEach((e, t) => {
|
|
661
|
-
p(k.value,
|
|
687
|
+
p(k.value, re(V.value.style.chart.dataLabels.formatter, e.value, d({
|
|
662
688
|
p: V.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
663
689
|
v: e.value,
|
|
664
690
|
s: V.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -674,8 +700,8 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
674
700
|
});
|
|
675
701
|
}));
|
|
676
702
|
}
|
|
677
|
-
function
|
|
678
|
-
for (let t = 0; t < e.coordinatesLine.length; t += 1) p(k.value,
|
|
703
|
+
function Gn(e) {
|
|
704
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) p(k.value, re(V.value.style.chart.dataLabels.formatter, e.coordinatesLine[t].value, d({
|
|
679
705
|
p: e.prefix || "",
|
|
680
706
|
v: e.coordinatesLine[t].value,
|
|
681
707
|
s: e.suffix || "",
|
|
@@ -691,61 +717,61 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
691
717
|
lineWidth: .5
|
|
692
718
|
});
|
|
693
719
|
}
|
|
694
|
-
let Q = x([]),
|
|
695
|
-
|
|
696
|
-
let e = ++
|
|
720
|
+
let Q = x([]), Kn = 0;
|
|
721
|
+
rt(() => {
|
|
722
|
+
let e = ++Kn;
|
|
697
723
|
(async () => {
|
|
698
|
-
let t = await
|
|
724
|
+
let t = await he({
|
|
699
725
|
values: V.value.style.chart.grid.x.timeLabels.values,
|
|
700
726
|
maxDatapoints: W.value,
|
|
701
727
|
formatter: V.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
702
728
|
start: 0,
|
|
703
729
|
end: W.value
|
|
704
730
|
});
|
|
705
|
-
e ===
|
|
731
|
+
e === Kn && (Q.value = t);
|
|
706
732
|
})();
|
|
707
|
-
}),
|
|
708
|
-
V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"),
|
|
733
|
+
}), rt(() => {
|
|
734
|
+
V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"), Sn();
|
|
709
735
|
}, { flush: "post" });
|
|
710
|
-
let
|
|
736
|
+
let qn = x({
|
|
711
737
|
months: [],
|
|
712
738
|
shortMonths: [],
|
|
713
739
|
days: [],
|
|
714
740
|
shortDays: []
|
|
715
|
-
}),
|
|
716
|
-
|
|
717
|
-
let e = ++
|
|
741
|
+
}), Jn = 0;
|
|
742
|
+
rt(() => {
|
|
743
|
+
let e = ++Jn, t = V.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
718
744
|
(async () => {
|
|
719
|
-
let n = await
|
|
720
|
-
e ===
|
|
745
|
+
let n = await me(t.locale).catch(() => me("en"));
|
|
746
|
+
e === Jn && (qn.value = n.data);
|
|
721
747
|
})();
|
|
722
748
|
});
|
|
723
|
-
let
|
|
724
|
-
let e = V.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
749
|
+
let Yn = m(() => {
|
|
750
|
+
let e = V.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
725
751
|
useUTC: e.useUTC,
|
|
726
|
-
locale:
|
|
752
|
+
locale: qn.value,
|
|
727
753
|
januaryAsYear: e.januaryAsYear
|
|
728
754
|
});
|
|
729
755
|
return (e, n) => {
|
|
730
756
|
let r = V.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
731
757
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
732
758
|
};
|
|
733
|
-
}),
|
|
734
|
-
text:
|
|
759
|
+
}), Xn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
760
|
+
text: Yn.value(t, V.value.style.chart.zoom.timeFormat),
|
|
735
761
|
absoluteIndex: t
|
|
736
|
-
}))),
|
|
737
|
-
text:
|
|
762
|
+
}))), Zn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
763
|
+
text: Yn.value(t, V.value.style.chart.tooltip.timeFormat),
|
|
738
764
|
absoluteIndex: t
|
|
739
765
|
})));
|
|
740
|
-
function
|
|
766
|
+
function Qn() {
|
|
741
767
|
for (let e = Y.value.start; e < Y.value.end; e += 1) (Y.value.end - Y.value.start < V.value.style.chart.grid.x.timeLabels.modulo || Y.value.end - Y.value.start >= V.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((Y.value.end - Y.value.start) / V.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === M.value + Y.value.start || e === R.value) && V.value.style.chart.grid.x.timeLabels.showMarker)) && p(k.value, Q.value[e] ? Q.value[e].text : e + 1, G.value.left + G.value.slot * (e - Y.value.start) + G.value.slot / 2, G.value.bottom + A.value / V.value.style.chart.grid.x.timeLabels.offsetY, {
|
|
742
768
|
align: V.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : V.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
743
769
|
font: `${V.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
|
|
744
|
-
color: V.value.style.chart.grid.x.timeLabels.showMarker ?
|
|
770
|
+
color: V.value.style.chart.grid.x.timeLabels.showMarker ? n(V.value.style.chart.grid.x.timeLabels.color, M.value !== null || R.value !== null ? M.value + Y.value.start === e || R.value === e ? 100 : 20 : 100) : V.value.style.chart.grid.x.timeLabels.color,
|
|
745
771
|
rotation: V.value.style.chart.grid.x.timeLabels.rotation
|
|
746
772
|
});
|
|
747
773
|
}
|
|
748
|
-
function
|
|
774
|
+
function $n() {
|
|
749
775
|
f(k.value, [{
|
|
750
776
|
x: G.value.left + G.value.slot * (M.value ?? R.value) + G.value.slot / 2,
|
|
751
777
|
y: G.value.top
|
|
@@ -759,7 +785,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
759
785
|
linceCap: "round"
|
|
760
786
|
});
|
|
761
787
|
}
|
|
762
|
-
function
|
|
788
|
+
function er() {
|
|
763
789
|
L.value && f(k.value, [{
|
|
764
790
|
x: G.value.left,
|
|
765
791
|
y: L.value
|
|
@@ -773,9 +799,9 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
773
799
|
linceCap: "round"
|
|
774
800
|
});
|
|
775
801
|
}
|
|
776
|
-
function
|
|
802
|
+
function tr() {
|
|
777
803
|
Z.value.forEach((e, t) => {
|
|
778
|
-
for (let n = 0; n < e.coordinatesLine.length; n += 1)
|
|
804
|
+
for (let n = 0; n < e.coordinatesLine.length; n += 1) Ae(k.value, [
|
|
779
805
|
{
|
|
780
806
|
x: G.value.left + G.value.slot * n + G.value.slot / 10 + (U.value.stacked ? 0 : G.value.slot / Z.value.length * t - (t === 0 ? 0 : G.value.slot / (5 * Z.value.length) * t)),
|
|
781
807
|
y: U.value.stacked ? e.localZero : K.value.zero
|
|
@@ -809,10 +835,10 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
809
835
|
color: e.color
|
|
810
836
|
}, {
|
|
811
837
|
offset: 1,
|
|
812
|
-
color: V.value.style.chart.bar.gradient.show ?
|
|
838
|
+
color: V.value.style.chart.bar.gradient.show ? s(e.color, .5) : e.color
|
|
813
839
|
}]
|
|
814
840
|
}
|
|
815
|
-
}), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && p(k.value,
|
|
841
|
+
}), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && p(k.value, re(V.value.style.chart.dataLabels.formatter, e.coordinatesLine[n].value, d({
|
|
816
842
|
p: e.prefix || "",
|
|
817
843
|
v: e.coordinatesLine[n].value,
|
|
818
844
|
s: e.suffix || "",
|
|
@@ -829,7 +855,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
829
855
|
});
|
|
830
856
|
});
|
|
831
857
|
}
|
|
832
|
-
function
|
|
858
|
+
function nr(e, t) {
|
|
833
859
|
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
834
860
|
for (let e = 0; e < n.length; e += 1) {
|
|
835
861
|
let o = n[e];
|
|
@@ -871,7 +897,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
871
897
|
singles: i
|
|
872
898
|
};
|
|
873
899
|
}
|
|
874
|
-
function
|
|
900
|
+
function rr(e) {
|
|
875
901
|
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
876
902
|
for (let e = 0; e < t.length; e += 1) {
|
|
877
903
|
let i = t[e];
|
|
@@ -879,9 +905,9 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
879
905
|
}
|
|
880
906
|
return r.length >= 2 && n.push(r), n;
|
|
881
907
|
}
|
|
882
|
-
function
|
|
883
|
-
if (
|
|
884
|
-
let t =
|
|
908
|
+
function ir(e) {
|
|
909
|
+
if (En.value) {
|
|
910
|
+
let t = rr(e);
|
|
885
911
|
for (let n of t) f(k.value, n, {
|
|
886
912
|
color: e.color,
|
|
887
913
|
lineWidth: 3
|
|
@@ -891,21 +917,21 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
891
917
|
lineWidth: 3
|
|
892
918
|
});
|
|
893
919
|
}
|
|
894
|
-
function
|
|
895
|
-
let t = !!
|
|
920
|
+
function ar(e) {
|
|
921
|
+
let t = !!En.value;
|
|
896
922
|
if (e.useArea) {
|
|
897
|
-
let
|
|
923
|
+
let r = U.value.stacked ? e.localZero : K.value.zero;
|
|
898
924
|
if (t) {
|
|
899
|
-
let { polygons: t, singles:
|
|
900
|
-
for (let
|
|
901
|
-
fillColor:
|
|
925
|
+
let { polygons: t, singles: i } = nr(e, r);
|
|
926
|
+
for (let r of t) Oe(k.value, r, {
|
|
927
|
+
fillColor: n(e.color, V.value.style.chart.area.opacity),
|
|
902
928
|
strokeColor: "transparent"
|
|
903
929
|
});
|
|
904
|
-
let
|
|
905
|
-
for (let t of
|
|
930
|
+
let a = A.value / 200 * V.value.style.chart.line.plots.radiusRatio;
|
|
931
|
+
for (let t of i) De(k.value, {
|
|
906
932
|
x: t.x,
|
|
907
933
|
y: t.y
|
|
908
|
-
},
|
|
934
|
+
}, a, {
|
|
909
935
|
color: V.value.style.chart.backgroundColor,
|
|
910
936
|
fillStyle: e.color,
|
|
911
937
|
strokeColor: "transparent"
|
|
@@ -913,26 +939,26 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
913
939
|
} else {
|
|
914
940
|
let t = {
|
|
915
941
|
x: e.coordinatesLine[0].x,
|
|
916
|
-
y:
|
|
917
|
-
},
|
|
942
|
+
y: r
|
|
943
|
+
}, i = {
|
|
918
944
|
x: e.coordinatesLine.at(-1).x,
|
|
919
|
-
y:
|
|
945
|
+
y: r
|
|
920
946
|
};
|
|
921
|
-
|
|
947
|
+
Oe(k.value, [
|
|
922
948
|
t,
|
|
923
949
|
...e.coordinatesLine,
|
|
924
|
-
|
|
950
|
+
i
|
|
925
951
|
], {
|
|
926
|
-
fillColor:
|
|
952
|
+
fillColor: n(e.color, V.value.style.chart.area.opacity),
|
|
927
953
|
strokeColor: "transparent"
|
|
928
954
|
});
|
|
929
955
|
}
|
|
930
|
-
|
|
956
|
+
ir(e);
|
|
931
957
|
return;
|
|
932
958
|
}
|
|
933
|
-
|
|
959
|
+
ir(e);
|
|
934
960
|
}
|
|
935
|
-
function
|
|
961
|
+
function or() {
|
|
936
962
|
J.value.forEach((e, t) => {
|
|
937
963
|
f(k.value, [{
|
|
938
964
|
x: G.value.left,
|
|
@@ -946,9 +972,9 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
946
972
|
});
|
|
947
973
|
});
|
|
948
974
|
}
|
|
949
|
-
function
|
|
975
|
+
function sr() {
|
|
950
976
|
let { left: e, top: t, width: n, height: r } = G.value, i = Y.value.start, a = Y.value.end - i, o = n / a, s = X.value.start - i, c = X.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
951
|
-
|
|
977
|
+
Ae(k.value, [
|
|
952
978
|
{
|
|
953
979
|
x: e + l * o,
|
|
954
980
|
y: t
|
|
@@ -978,11 +1004,11 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
978
1004
|
});
|
|
979
1005
|
}
|
|
980
1006
|
function $() {
|
|
981
|
-
!B.value || !H.value || !k.value || (
|
|
982
|
-
(e.type === "line" || !e.type) &&
|
|
983
|
-
}), H.value && (
|
|
1007
|
+
!B.value || !H.value || !k.value || (Vn(), P.value ? ((M.value !== null || R.value !== null) && V.value.style.chart.selector.show && $n(), tr(), U.value.stacked && V.value.style.chart.grid.x.showAxis && or(), zn.value.forEach((e) => {
|
|
1008
|
+
(e.type === "line" || !e.type) && ar(e), F.value && (Hn(e), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Gn(e));
|
|
1009
|
+
}), H.value && (Ot.value = ke(H.value))) : (Ot.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.drawImage(Ot.value, 0, 0)), (M.value !== null || R.value !== null) && V.value.style.chart.selector.show && $n(), (M.value !== null || R.value !== null) && J.value.forEach((e) => {
|
|
984
1010
|
let t = M.value ?? R.value, n = e.coordinatesLine[t];
|
|
985
|
-
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) &&
|
|
1011
|
+
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && De(k.value, {
|
|
986
1012
|
x: n.x,
|
|
987
1013
|
y: n.y
|
|
988
1014
|
}, A.value / 150 * V.value.style.chart.line.plots.radiusRatio, {
|
|
@@ -990,12 +1016,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
990
1016
|
fillStyle: e.color,
|
|
991
1017
|
strokeColor: "transparent"
|
|
992
1018
|
});
|
|
993
|
-
})), V.value.style.chart.grid.x.timeLabels.show &&
|
|
1019
|
+
})), V.value.style.chart.grid.x.timeLabels.show && Qn(), V.value.style.chart.selector.show && V.value.style.chart.selector.showHorizontalSelector && er(), Wn(), Un(), V.value.style.chart.zoom.preview.enable && (Y.value.start !== X.value.start || Y.value.end !== X.value.end) && sr(), P.value = !1);
|
|
994
1020
|
}
|
|
995
|
-
let
|
|
996
|
-
F.value = !0,
|
|
1021
|
+
let cr = Te(() => {
|
|
1022
|
+
F.value = !0, Bn();
|
|
997
1023
|
}, W.value > 200 ? 10 : 1, !F.value);
|
|
998
|
-
function
|
|
1024
|
+
function lr(e) {
|
|
999
1025
|
if ([null, void 0].includes(M.value ?? R.value) || !e.coordinatesLine[M.value ?? R.value]) return !1;
|
|
1000
1026
|
let { y: t, value: n } = e.coordinatesLine[M.value ?? R.value];
|
|
1001
1027
|
return {
|
|
@@ -1003,15 +1029,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1003
1029
|
value: n
|
|
1004
1030
|
};
|
|
1005
1031
|
}
|
|
1006
|
-
function
|
|
1007
|
-
if (!B.value || !H.value ||
|
|
1032
|
+
function ur(e) {
|
|
1033
|
+
if (!B.value || !H.value || gn.value) return;
|
|
1008
1034
|
let { left: t, top: n } = H.value.getBoundingClientRect(), r = e.clientX - t;
|
|
1009
1035
|
if (L.value = (e.clientY - n) * 2, (L.value < G.value.top || L.value > G.value.bottom) && (L.value = null), r * 2 < G.value.left || r * 2 > G.value.right) {
|
|
1010
|
-
|
|
1036
|
+
hr();
|
|
1011
1037
|
return;
|
|
1012
1038
|
}
|
|
1013
1039
|
let i = r * 2 - G.value.left, a = Math.floor(i / G.value.slot);
|
|
1014
|
-
if (M.value = a, z.value = a,
|
|
1040
|
+
if (M.value = a, z.value = a, wt.value = !0, Wt.value = !1, !F.value) return;
|
|
1015
1041
|
let o = "", s = V.value.style.chart.tooltip.customFormat, c = J.value.map((e) => ({
|
|
1016
1042
|
shape: e.shape || null,
|
|
1017
1043
|
name: e.name,
|
|
@@ -1019,28 +1045,28 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1019
1045
|
type: e.type || "line",
|
|
1020
1046
|
value: e.series.find((e, t) => t === M.value)
|
|
1021
1047
|
}));
|
|
1022
|
-
|
|
1023
|
-
timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text :
|
|
1048
|
+
Et.value = {
|
|
1049
|
+
timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Zn.value[M.value]?.text : "",
|
|
1024
1050
|
datapoint: c,
|
|
1025
1051
|
seriesIndex: M.value,
|
|
1026
1052
|
series: J.value,
|
|
1027
1053
|
config: V.value
|
|
1028
|
-
},
|
|
1054
|
+
}, yr({
|
|
1029
1055
|
seriesIndex: M.value,
|
|
1030
1056
|
datapoint: c
|
|
1031
|
-
}),
|
|
1057
|
+
}), ue(s) && te(() => s({
|
|
1032
1058
|
seriesIndex: M.value,
|
|
1033
1059
|
datapoint: c,
|
|
1034
1060
|
series: J.value,
|
|
1035
1061
|
config: V.value
|
|
1036
|
-
})) ?
|
|
1062
|
+
})) ? Tt.value = s({
|
|
1037
1063
|
seriesIndex: M.value,
|
|
1038
1064
|
datapoint: c,
|
|
1039
1065
|
series: J.value,
|
|
1040
1066
|
config: V.value
|
|
1041
|
-
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text :
|
|
1067
|
+
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Zn.value[M.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[M.value + Y.value.start]?.text ?? ""}</div>`, o += Tn.value.join(""), Tt.value = o), F.value = !1;
|
|
1042
1068
|
}
|
|
1043
|
-
function
|
|
1069
|
+
function dr(e) {
|
|
1044
1070
|
return J.value.map((t) => ({
|
|
1045
1071
|
shape: t.shape || null,
|
|
1046
1072
|
name: t.name,
|
|
@@ -1049,12 +1075,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1049
1075
|
value: t.series.find((t, n) => n === e)
|
|
1050
1076
|
}));
|
|
1051
1077
|
}
|
|
1052
|
-
function
|
|
1053
|
-
let t = "", n = V.value.style.chart.tooltip.customFormat, r =
|
|
1054
|
-
return
|
|
1078
|
+
function fr(e) {
|
|
1079
|
+
let t = "", n = V.value.style.chart.tooltip.customFormat, r = dr(e);
|
|
1080
|
+
return yr({
|
|
1055
1081
|
seriesIndex: e,
|
|
1056
1082
|
datapoint: r
|
|
1057
|
-
}),
|
|
1083
|
+
}), ue(n) && te(() => n({
|
|
1058
1084
|
seriesIndex: e,
|
|
1059
1085
|
datapoint: r,
|
|
1060
1086
|
series: J.value,
|
|
@@ -1064,41 +1090,41 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1064
1090
|
datapoint: r,
|
|
1065
1091
|
series: J.value,
|
|
1066
1092
|
config: V.value
|
|
1067
|
-
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text :
|
|
1093
|
+
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text : Zn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[e + Y.value.start]?.text ?? ""}</div>`, t += Tn.value.join(""), t);
|
|
1068
1094
|
}
|
|
1069
|
-
function
|
|
1095
|
+
function pr(e) {
|
|
1070
1096
|
if (!H.value || !G.value?.slot) return;
|
|
1071
1097
|
let t = H.value.getBoundingClientRect(), n = t.width / G.value.canvasWidth, r = t.height / G.value.canvasHeight, i = G.value.left + G.value.slot * e + G.value.slot / 2, a = G.value.top + G.value.height / 2;
|
|
1072
|
-
|
|
1098
|
+
Kt.value = {
|
|
1073
1099
|
x: t.left + i * n,
|
|
1074
1100
|
y: t.top + a * r
|
|
1075
1101
|
};
|
|
1076
1102
|
}
|
|
1077
|
-
function
|
|
1078
|
-
!B.value ||
|
|
1103
|
+
function mr(e, { fromKeyboard: t = !1 } = {}) {
|
|
1104
|
+
!B.value || gn.value || e != null && (e < 0 || e >= Y.value.end - Y.value.start || (M.value = e, z.value = e, wt.value = !0, Wt.value = t, Tt.value = fr(e), t && pr(e), F.value = !1, $()));
|
|
1079
1105
|
}
|
|
1080
|
-
function
|
|
1081
|
-
|
|
1106
|
+
function hr() {
|
|
1107
|
+
wt.value = !1, M.value = null, z.value = null, Tt.value = "", L.value = null, Wt.value = !1, $();
|
|
1082
1108
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1109
|
+
function gr() {
|
|
1110
|
+
Gt.value = !0;
|
|
1085
1111
|
}
|
|
1086
|
-
function
|
|
1087
|
-
|
|
1112
|
+
function _r() {
|
|
1113
|
+
Gt.value = !1, hr();
|
|
1088
1114
|
}
|
|
1089
|
-
function
|
|
1090
|
-
if (!H.value ||
|
|
1115
|
+
function vr(e) {
|
|
1116
|
+
if (!H.value || Br.value || document.activeElement !== H.value) return;
|
|
1091
1117
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1092
1118
|
if (!t && !n) return;
|
|
1093
1119
|
let r = Y.value.end - Y.value.start;
|
|
1094
1120
|
if (r <= 0) return;
|
|
1095
1121
|
e.preventDefault(), e.stopPropagation();
|
|
1096
1122
|
let i = z.value;
|
|
1097
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
1123
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, mr(i, { fromKeyboard: !0 });
|
|
1098
1124
|
}
|
|
1099
|
-
function
|
|
1125
|
+
function yr({ seriesIndex: e, datapoint: t }) {
|
|
1100
1126
|
let n = Y.value.start + e;
|
|
1101
|
-
|
|
1127
|
+
qt("selectX", {
|
|
1102
1128
|
dataset: t,
|
|
1103
1129
|
index: n,
|
|
1104
1130
|
indexLabel: ""
|
|
@@ -1106,13 +1132,13 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1106
1132
|
}
|
|
1107
1133
|
w(() => E.selectedXIndex, (e) => {
|
|
1108
1134
|
if ([null, void 0].includes(E.selectedXIndex)) {
|
|
1109
|
-
|
|
1135
|
+
hr();
|
|
1110
1136
|
return;
|
|
1111
1137
|
}
|
|
1112
1138
|
let t = e - Y.value.start;
|
|
1113
|
-
t < 0 || e >= Y.value.end ?
|
|
1139
|
+
t < 0 || e >= Y.value.end ? hr() : mr(t, { fromKeyboard: !1 });
|
|
1114
1140
|
}, { immediate: !0 }), w(() => M.value, (e) => {
|
|
1115
|
-
|
|
1141
|
+
cr();
|
|
1116
1142
|
}), w(() => Y.value, (e) => {
|
|
1117
1143
|
P.value = !0, $();
|
|
1118
1144
|
}, { deep: !0 }), w(() => X.value, (e) => {
|
|
@@ -1122,66 +1148,66 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1122
1148
|
}), w(() => L.value, (e) => {
|
|
1123
1149
|
e && $();
|
|
1124
1150
|
}), w(() => U.value.stacked, (e) => {
|
|
1125
|
-
P.value = !0, F.value = !0,
|
|
1151
|
+
P.value = !0, F.value = !0, cr();
|
|
1126
1152
|
});
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1153
|
+
function br() {
|
|
1154
|
+
hr();
|
|
1129
1155
|
}
|
|
1130
|
-
let
|
|
1131
|
-
|
|
1132
|
-
|
|
1156
|
+
let xr = $e(null), Sr = $e(null), Cr = $e(null);
|
|
1157
|
+
Ze(() => {
|
|
1158
|
+
Lt.value = !0, wr();
|
|
1133
1159
|
});
|
|
1134
|
-
function
|
|
1135
|
-
if (
|
|
1160
|
+
function wr() {
|
|
1161
|
+
if (ie(E.dataset) && Qt.value && se({
|
|
1136
1162
|
componentName: "VueUiXyCanvas",
|
|
1137
1163
|
type: "dataset"
|
|
1138
|
-
}),
|
|
1139
|
-
H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0,
|
|
1164
|
+
}), qe(() => {
|
|
1165
|
+
H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0, Bn());
|
|
1140
1166
|
}), V.value.responsive) {
|
|
1141
|
-
let e =
|
|
1142
|
-
let { width: e, height: t } =
|
|
1167
|
+
let e = Ee(() => {
|
|
1168
|
+
let { width: e, height: t } = je({
|
|
1143
1169
|
chart: O.value,
|
|
1144
|
-
title: V.value.style.chart.title.text ?
|
|
1145
|
-
legend: V.value.style.chart.legend.show ?
|
|
1170
|
+
title: V.value.style.chart.title.text ? jt.value : null,
|
|
1171
|
+
legend: V.value.style.chart.legend.show ? Mt.value : null,
|
|
1146
1172
|
slicer: V.value.style.chart.zoom.show && W.value > 6 ? I.value?.$el : null,
|
|
1147
|
-
source:
|
|
1173
|
+
source: Nt.value
|
|
1148
1174
|
});
|
|
1149
1175
|
requestAnimationFrame(() => {
|
|
1150
|
-
|
|
1176
|
+
ln.value = `${e} / ${t}`;
|
|
1151
1177
|
});
|
|
1152
1178
|
});
|
|
1153
|
-
|
|
1179
|
+
xr.value && (Sr.value && xr.value.unobserve(Sr.value), xr.value.disconnect()), xr.value = new ResizeObserver(e), Sr.value = O.value.parentNode, xr.value.observe(Sr.value);
|
|
1154
1180
|
}
|
|
1155
|
-
|
|
1156
|
-
for (let t of e) t.contentBoxSize &&
|
|
1157
|
-
}),
|
|
1181
|
+
Cr.value && Cr.value.disconnect(), Cr.value = new ResizeObserver(async (e) => {
|
|
1182
|
+
for (let t of e) t.contentBoxSize && Ct.value && (P.value = !0, cr());
|
|
1183
|
+
}), Cr.value.observe(Ct.value), jn();
|
|
1158
1184
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1185
|
+
Xe(() => {
|
|
1186
|
+
Cr.value && Cr.value.disconnect(), xr.value && (Sr.value && xr.value.unobserve(Sr.value), xr.value.disconnect());
|
|
1161
1187
|
});
|
|
1162
|
-
function
|
|
1163
|
-
N.value.length ? N.value = [] :
|
|
1188
|
+
function Tr() {
|
|
1189
|
+
N.value.length ? N.value = [] : Ar.value.forEach((e, t) => {
|
|
1164
1190
|
N.value.push(t);
|
|
1165
|
-
}), P.value = !0,
|
|
1191
|
+
}), P.value = !0, cr(), qt("selectLegend", J.value);
|
|
1166
1192
|
}
|
|
1167
|
-
function
|
|
1168
|
-
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0,
|
|
1193
|
+
function Er(e) {
|
|
1194
|
+
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0, cr(), qt("selectLegend", J.value);
|
|
1169
1195
|
}
|
|
1170
|
-
function
|
|
1196
|
+
function Dr(e) {
|
|
1171
1197
|
return q.value.length ? q.value.find((t) => t.name === e) || (V.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (V.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1172
1198
|
}
|
|
1173
|
-
function
|
|
1174
|
-
let t =
|
|
1175
|
-
t !== null && N.value.includes(t.absoluteIndex) &&
|
|
1199
|
+
function Or(e) {
|
|
1200
|
+
let t = Dr(e);
|
|
1201
|
+
t !== null && N.value.includes(t.absoluteIndex) && Er(t.absoluteIndex);
|
|
1176
1202
|
}
|
|
1177
|
-
function
|
|
1178
|
-
let t =
|
|
1179
|
-
t !== null && (N.value.includes(t.absoluteIndex) ||
|
|
1203
|
+
function kr(e) {
|
|
1204
|
+
let t = Dr(e);
|
|
1205
|
+
t !== null && (N.value.includes(t.absoluteIndex) || Er(t.absoluteIndex));
|
|
1180
1206
|
}
|
|
1181
|
-
let
|
|
1207
|
+
let Ar = m(() => q.value.map((e, t) => ({
|
|
1182
1208
|
...e,
|
|
1183
1209
|
name: e.name,
|
|
1184
|
-
color:
|
|
1210
|
+
color: u(e.color) || hn.value[t] || c[t] || c[t % c.length],
|
|
1185
1211
|
shape: e.shape || "circle",
|
|
1186
1212
|
prefix: e.prefix || "",
|
|
1187
1213
|
suffix: e.suffix || "",
|
|
@@ -1189,16 +1215,16 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1189
1215
|
})).map((e) => ({
|
|
1190
1216
|
...e,
|
|
1191
1217
|
opacity: N.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1192
|
-
segregate: () =>
|
|
1218
|
+
segregate: () => Er(e.absoluteIndex),
|
|
1193
1219
|
isSegregated: N.value.includes(e.absoluteIndex)
|
|
1194
|
-
}))),
|
|
1220
|
+
}))), jr = m(() => ({
|
|
1195
1221
|
cy: "donut-div-legend",
|
|
1196
1222
|
backgroundColor: V.value.style.chart.legend.backgroundColor,
|
|
1197
1223
|
color: V.value.style.chart.legend.color,
|
|
1198
1224
|
fontSize: V.value.style.chart.legend.fontSize,
|
|
1199
1225
|
paddingBottom: 12,
|
|
1200
1226
|
fontWeight: V.value.style.chart.legend.bold ? "bold" : ""
|
|
1201
|
-
})),
|
|
1227
|
+
})), Mr = m(() => {
|
|
1202
1228
|
let e = [""].concat(J.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
1229
|
for (let e = 0; e < W.value; e += 1) {
|
|
1204
1230
|
let n = J.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1223,7 +1249,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1223
1249
|
config: n,
|
|
1224
1250
|
colNames: r
|
|
1225
1251
|
};
|
|
1226
|
-
}),
|
|
1252
|
+
}), Nr = m(() => {
|
|
1227
1253
|
if (J.value.length === 0) return {
|
|
1228
1254
|
head: [],
|
|
1229
1255
|
body: [],
|
|
@@ -1246,39 +1272,39 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1246
1272
|
body: t
|
|
1247
1273
|
};
|
|
1248
1274
|
});
|
|
1249
|
-
function
|
|
1250
|
-
let
|
|
1275
|
+
function Pr(e = null) {
|
|
1276
|
+
let n = [
|
|
1251
1277
|
[V.value.style.chart.title.text],
|
|
1252
1278
|
[V.value.style.chart.title.subtitle.text],
|
|
1253
1279
|
[""]
|
|
1254
|
-
],
|
|
1255
|
-
e ? e(
|
|
1256
|
-
csvContent:
|
|
1280
|
+
], i = ["", ...Nr.value.head.map((e) => e.label)], a = Nr.value.body, o = r(n.concat([i]).concat(a));
|
|
1281
|
+
e ? e(o) : t({
|
|
1282
|
+
csvContent: o,
|
|
1257
1283
|
title: V.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1258
1284
|
});
|
|
1259
1285
|
}
|
|
1260
|
-
function
|
|
1286
|
+
function Fr() {
|
|
1261
1287
|
return J.value;
|
|
1262
1288
|
}
|
|
1263
|
-
function
|
|
1289
|
+
function Ir() {
|
|
1264
1290
|
U.value.showTable = !U.value.showTable;
|
|
1265
1291
|
}
|
|
1266
|
-
function
|
|
1292
|
+
function Lr() {
|
|
1267
1293
|
U.value.showDataLabels = !U.value.showDataLabels;
|
|
1268
1294
|
}
|
|
1269
|
-
function
|
|
1295
|
+
function Rr() {
|
|
1270
1296
|
U.value.stacked = !U.value.stacked;
|
|
1271
1297
|
}
|
|
1272
|
-
function
|
|
1298
|
+
function zr() {
|
|
1273
1299
|
U.value.showTooltip = !U.value.showTooltip;
|
|
1274
1300
|
}
|
|
1275
|
-
let
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1301
|
+
let Br = x(!1);
|
|
1302
|
+
function Vr() {
|
|
1303
|
+
Br.value = !Br.value;
|
|
1278
1304
|
}
|
|
1279
|
-
async function
|
|
1305
|
+
async function Hr({ scale: e = 2 } = {}) {
|
|
1280
1306
|
if (!O.value) return;
|
|
1281
|
-
let { imageUri: t, base64: n } = await
|
|
1307
|
+
let { imageUri: t, base64: n } = await Se({
|
|
1282
1308
|
domElement: O.value,
|
|
1283
1309
|
base64: !0,
|
|
1284
1310
|
img: !0,
|
|
@@ -1287,7 +1313,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1287
1313
|
width: r.width,
|
|
1288
1314
|
height: r.height,
|
|
1289
1315
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1290
|
-
}, a = await
|
|
1316
|
+
}, a = await ne(t, e) ?? i;
|
|
1291
1317
|
return {
|
|
1292
1318
|
imageUri: t,
|
|
1293
1319
|
base64: n,
|
|
@@ -1295,20 +1321,20 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1295
1321
|
...a
|
|
1296
1322
|
};
|
|
1297
1323
|
}
|
|
1298
|
-
let
|
|
1324
|
+
let Ur = m(() => {
|
|
1299
1325
|
let e = V.value.table.useDialog && !V.value.table.show, t = U.value.showTable;
|
|
1300
1326
|
return {
|
|
1301
|
-
component: e ?
|
|
1327
|
+
component: e ? yt : Pe,
|
|
1302
1328
|
title: `${V.value.style.chart.title.text}${V.value.style.chart.title.subtitle.text ? `: ${V.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1303
1329
|
props: e ? {
|
|
1304
1330
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
1305
1331
|
color: V.value.table.th.color,
|
|
1306
1332
|
headerColor: V.value.table.th.color,
|
|
1307
1333
|
headerBg: V.value.table.th.backgroundColor,
|
|
1308
|
-
isFullscreen:
|
|
1334
|
+
isFullscreen: At.value,
|
|
1309
1335
|
fullscreenParent: O.value,
|
|
1310
1336
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1311
|
-
isCursorPointer:
|
|
1337
|
+
isCursorPointer: Zt.value
|
|
1312
1338
|
} : {
|
|
1313
1339
|
hideDetails: !0,
|
|
1314
1340
|
config: {
|
|
@@ -1327,24 +1353,24 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1327
1353
|
};
|
|
1328
1354
|
});
|
|
1329
1355
|
w(() => U.value.showTable, (e) => {
|
|
1330
|
-
V.value.table.show || (e && V.value.table.useDialog &&
|
|
1356
|
+
V.value.table.show || (e && V.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
|
|
1331
1357
|
});
|
|
1332
|
-
function
|
|
1333
|
-
U.value.showTable = !1,
|
|
1358
|
+
function Wr() {
|
|
1359
|
+
U.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
|
|
1334
1360
|
}
|
|
1335
|
-
function
|
|
1361
|
+
function Gr(e) {
|
|
1336
1362
|
if (e?.stage === "start") {
|
|
1337
|
-
|
|
1363
|
+
Ut.value = !0;
|
|
1338
1364
|
return;
|
|
1339
1365
|
}
|
|
1340
1366
|
if (e?.stage === "end") {
|
|
1341
|
-
|
|
1367
|
+
Ut.value = !1;
|
|
1342
1368
|
return;
|
|
1343
1369
|
}
|
|
1344
|
-
|
|
1370
|
+
pn();
|
|
1345
1371
|
}
|
|
1346
|
-
async function
|
|
1347
|
-
if (
|
|
1372
|
+
async function Kr() {
|
|
1373
|
+
if (qt("copyAlt", {
|
|
1348
1374
|
config: V.value,
|
|
1349
1375
|
dataset: J.value
|
|
1350
1376
|
}), !V.value.userOptions.callbacks.altCopy) {
|
|
@@ -1356,42 +1382,42 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1356
1382
|
dataset: J.value
|
|
1357
1383
|
}));
|
|
1358
1384
|
}
|
|
1359
|
-
return
|
|
1360
|
-
getData:
|
|
1361
|
-
getImage:
|
|
1362
|
-
generateCsv:
|
|
1363
|
-
generatePdf:
|
|
1364
|
-
generateImage:
|
|
1365
|
-
hideSeries:
|
|
1366
|
-
showSeries:
|
|
1367
|
-
toggleTable:
|
|
1368
|
-
toggleLabels:
|
|
1369
|
-
toggleStack:
|
|
1370
|
-
toggleTooltip:
|
|
1371
|
-
toggleAnnotator:
|
|
1372
|
-
toggleFullscreen:
|
|
1373
|
-
copyAlt:
|
|
1374
|
-
}), (t, n) => (b(),
|
|
1375
|
-
style:
|
|
1385
|
+
return we({
|
|
1386
|
+
getData: Fr,
|
|
1387
|
+
getImage: Hr,
|
|
1388
|
+
generateCsv: Pr,
|
|
1389
|
+
generatePdf: fn,
|
|
1390
|
+
generateImage: pn,
|
|
1391
|
+
hideSeries: kr,
|
|
1392
|
+
showSeries: Or,
|
|
1393
|
+
toggleTable: Ir,
|
|
1394
|
+
toggleLabels: Lr,
|
|
1395
|
+
toggleStack: Rr,
|
|
1396
|
+
toggleTooltip: zr,
|
|
1397
|
+
toggleAnnotator: Vr,
|
|
1398
|
+
toggleFullscreen: mn,
|
|
1399
|
+
copyAlt: Kr
|
|
1400
|
+
}), (t, n) => (b(), Ve("div", {
|
|
1401
|
+
style: Ye(`width:100%; position:relative; ${V.value.responsive ? "height: 100%" : ""}; background:${V.value.style.chart.backgroundColor};`),
|
|
1376
1402
|
ref_key: "xy",
|
|
1377
1403
|
ref: O,
|
|
1378
1404
|
id: `xy_canvas_${D.value}`,
|
|
1379
|
-
class:
|
|
1380
|
-
onMouseenter:
|
|
1381
|
-
onMouseleave:
|
|
1405
|
+
class: Je(`vue-data-ui-component vue-ui-xy-canvas ${At.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1406
|
+
onMouseenter: on,
|
|
1407
|
+
onMouseleave: sn
|
|
1382
1408
|
}, [
|
|
1383
1409
|
_("div", {
|
|
1384
1410
|
id: `chart-instructions-${D.value}`,
|
|
1385
1411
|
class: "sr-only"
|
|
1386
|
-
}, [_("p", null,
|
|
1387
|
-
_("div",
|
|
1388
|
-
V.value.style.chart.title.text ? (b(),
|
|
1412
|
+
}, [_("p", null, et(V.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1413
|
+
_("div", st, et(Xt.value), 1),
|
|
1414
|
+
V.value.style.chart.title.text ? (b(), Ve("div", {
|
|
1389
1415
|
key: 0,
|
|
1390
1416
|
ref_key: "chartTitle",
|
|
1391
|
-
ref:
|
|
1392
|
-
style:
|
|
1393
|
-
}, [(b(), h(
|
|
1394
|
-
key: `title_${
|
|
1417
|
+
ref: jt,
|
|
1418
|
+
style: Ye(`width:100%;background:${V.value.style.chart.backgroundColor};`)
|
|
1419
|
+
}, [(b(), h(Ce, {
|
|
1420
|
+
key: `title_${Pt.value}`,
|
|
1395
1421
|
config: {
|
|
1396
1422
|
title: {
|
|
1397
1423
|
cy: "xy-canvas-title",
|
|
@@ -1403,15 +1429,15 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1403
1429
|
}
|
|
1404
1430
|
}
|
|
1405
1431
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1406
|
-
_("div", { id: `legend-top-${D.value}` }, null, 8,
|
|
1407
|
-
V.value.userOptions.show && B.value && (C(
|
|
1432
|
+
_("div", { id: `legend-top-${D.value}` }, null, 8, ct),
|
|
1433
|
+
V.value.userOptions.show && B.value && (C(an) || C(nn)) ? (b(), h(C(_t), {
|
|
1408
1434
|
ref_key: "userOptionsRef",
|
|
1409
|
-
ref:
|
|
1410
|
-
key: `user_option_${
|
|
1435
|
+
ref: zt,
|
|
1436
|
+
key: `user_option_${kt.value}`,
|
|
1411
1437
|
backgroundColor: V.value.style.chart.backgroundColor,
|
|
1412
1438
|
color: V.value.style.chart.color,
|
|
1413
|
-
isPrinting: C(
|
|
1414
|
-
isImaging: C(
|
|
1439
|
+
isPrinting: C(un),
|
|
1440
|
+
isImaging: C(dn),
|
|
1415
1441
|
uid: D.value,
|
|
1416
1442
|
hasTooltip: V.value.userOptions.buttons.tooltip && V.value.style.chart.tooltip.show,
|
|
1417
1443
|
hasPdf: V.value.userOptions.buttons.pdf,
|
|
@@ -1422,30 +1448,30 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1422
1448
|
hasFullscreen: V.value.userOptions.buttons.fullscreen,
|
|
1423
1449
|
hasAltCopy: V.value.userOptions.buttons.altCopy,
|
|
1424
1450
|
hasTable: Y.value.end - Y.value.start <= 730 && V.value.userOptions.buttons.table,
|
|
1425
|
-
isFullscreen:
|
|
1451
|
+
isFullscreen: At.value,
|
|
1426
1452
|
isTooltip: U.value.showTooltip,
|
|
1427
1453
|
isStacked: U.value.stacked,
|
|
1428
1454
|
titles: { ...V.value.userOptions.buttonTitles },
|
|
1429
1455
|
chartElement: O.value,
|
|
1430
1456
|
position: V.value.userOptions.position,
|
|
1431
1457
|
hasAnnotator: V.value.userOptions.buttons.annotator,
|
|
1432
|
-
isAnnotation:
|
|
1458
|
+
isAnnotation: Br.value,
|
|
1433
1459
|
callbacks: V.value.userOptions.callbacks,
|
|
1434
1460
|
printScale: V.value.userOptions.print.scale,
|
|
1435
1461
|
tableDialog: V.value.table.useDialog,
|
|
1436
|
-
isCursorPointer:
|
|
1437
|
-
onToggleFullscreen:
|
|
1438
|
-
onGeneratePdf: C(
|
|
1439
|
-
onGenerateCsv:
|
|
1440
|
-
onGenerateImage:
|
|
1441
|
-
onToggleTable:
|
|
1442
|
-
onToggleLabels:
|
|
1443
|
-
onToggleStack:
|
|
1444
|
-
onToggleTooltip:
|
|
1445
|
-
onToggleAnnotator:
|
|
1446
|
-
onCopyAlt:
|
|
1447
|
-
style:
|
|
1448
|
-
},
|
|
1462
|
+
isCursorPointer: Zt.value,
|
|
1463
|
+
onToggleFullscreen: mn,
|
|
1464
|
+
onGeneratePdf: C(fn),
|
|
1465
|
+
onGenerateCsv: Pr,
|
|
1466
|
+
onGenerateImage: Gr,
|
|
1467
|
+
onToggleTable: Ir,
|
|
1468
|
+
onToggleLabels: Lr,
|
|
1469
|
+
onToggleStack: Rr,
|
|
1470
|
+
onToggleTooltip: zr,
|
|
1471
|
+
onToggleAnnotator: Vr,
|
|
1472
|
+
onCopyAlt: Kr,
|
|
1473
|
+
style: Ye({ visibility: C(an) ? C(nn) ? "visible" : "hidden" : "visible" })
|
|
1474
|
+
}, He({ _: 2 }, [
|
|
1449
1475
|
t.$slots.menuIcon ? {
|
|
1450
1476
|
name: "menuIcon",
|
|
1451
1477
|
fn: T(({ isOpen: e, color: n }) => [S(t.$slots, "menuIcon", y(v({
|
|
@@ -1523,14 +1549,14 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1523
1549
|
]), 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("."))) : g("", !0),
|
|
1524
1550
|
_("div", {
|
|
1525
1551
|
class: "vue-ui-xy-canvas",
|
|
1526
|
-
style:
|
|
1552
|
+
style: Ye(`position: relative; aspect-ratio: ${ln.value}`),
|
|
1527
1553
|
ref_key: "container",
|
|
1528
|
-
ref:
|
|
1554
|
+
ref: Ct
|
|
1529
1555
|
}, [
|
|
1530
1556
|
_("canvas", {
|
|
1531
1557
|
ref_key: "canvas",
|
|
1532
1558
|
ref: H,
|
|
1533
|
-
"aria-label":
|
|
1559
|
+
"aria-label": Yt.value,
|
|
1534
1560
|
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1535
1561
|
role: "img",
|
|
1536
1562
|
"aria-live": "polite",
|
|
@@ -1539,20 +1565,20 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1539
1565
|
width: "100%",
|
|
1540
1566
|
height: "100%"
|
|
1541
1567
|
},
|
|
1542
|
-
onMousemove: n[0] ||= (e) =>
|
|
1543
|
-
onMouseleave:
|
|
1544
|
-
onFocus:
|
|
1545
|
-
onBlur:
|
|
1546
|
-
onKeydown:
|
|
1547
|
-
}, null, 40,
|
|
1548
|
-
t.$slots.hint ? (b(),
|
|
1568
|
+
onMousemove: n[0] ||= (e) => ur(e),
|
|
1569
|
+
onMouseleave: br,
|
|
1570
|
+
onFocus: gr,
|
|
1571
|
+
onBlur: _r,
|
|
1572
|
+
onKeydown: vr
|
|
1573
|
+
}, null, 40, lt),
|
|
1574
|
+
t.$slots.hint ? (b(), Ve("div", ut, [S(t.$slots, "hint", y(v({
|
|
1549
1575
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
1550
|
-
isVisible:
|
|
1576
|
+
isVisible: Gt.value
|
|
1551
1577
|
})), void 0, !0)])) : g("", !0),
|
|
1552
|
-
S(t.$slots, "skeleton", {}, () => [C(
|
|
1553
|
-
|
|
1578
|
+
S(t.$slots, "skeleton", {}, () => [C(en) ? (b(), h(ye, { key: 0 })) : g("", !0)], !0),
|
|
1579
|
+
We(C(ht), {
|
|
1554
1580
|
teleportTo: V.value.style.chart.tooltip.teleportTo,
|
|
1555
|
-
show: U.value.showTooltip &&
|
|
1581
|
+
show: U.value.showTooltip && wt.value,
|
|
1556
1582
|
backgroundColor: V.value.style.chart.tooltip.backgroundColor,
|
|
1557
1583
|
color: V.value.style.chart.tooltip.color,
|
|
1558
1584
|
fontSize: V.value.style.chart.tooltip.fontSize,
|
|
@@ -1563,20 +1589,20 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1563
1589
|
offsetX: V.value.style.chart.tooltip.offsetX,
|
|
1564
1590
|
offsetY: V.value.style.chart.tooltip.offsetY,
|
|
1565
1591
|
parent: t.$refs.xy,
|
|
1566
|
-
content:
|
|
1567
|
-
isFullscreen:
|
|
1592
|
+
content: Tt.value,
|
|
1593
|
+
isFullscreen: At.value,
|
|
1568
1594
|
backgroundOpacity: V.value.style.chart.tooltip.backgroundOpacity,
|
|
1569
|
-
isCustom: C(
|
|
1595
|
+
isCustom: C(ue)(V.value.style.chart.tooltip.customFormat),
|
|
1570
1596
|
smooth: V.value.style.chart.tooltip.smooth,
|
|
1571
1597
|
backdropFilter: V.value.style.chart.tooltip.backdropFilter,
|
|
1572
1598
|
smoothForce: V.value.style.chart.tooltip.smoothForce,
|
|
1573
1599
|
smoothSnapThreshold: V.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1574
|
-
isA11yMode:
|
|
1575
|
-
a11yPosition:
|
|
1600
|
+
isA11yMode: Wt.value,
|
|
1601
|
+
a11yPosition: Kt.value
|
|
1576
1602
|
}, {
|
|
1577
|
-
"tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...
|
|
1578
|
-
tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...
|
|
1579
|
-
"tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...
|
|
1603
|
+
"tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...Et.value })), void 0, !0)]),
|
|
1604
|
+
tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...Et.value })), void 0, !0)]),
|
|
1605
|
+
"tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...Et.value })), void 0, !0)]),
|
|
1580
1606
|
_: 3
|
|
1581
1607
|
}, 8, [
|
|
1582
1608
|
"teleportTo",
|
|
@@ -1603,16 +1629,16 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1603
1629
|
"a11yPosition"
|
|
1604
1630
|
])
|
|
1605
1631
|
], 4),
|
|
1606
|
-
V.value.style.chart.zoom.show && W.value > 6 && B.value &&
|
|
1632
|
+
V.value.style.chart.zoom.show && W.value > 6 && B.value && Vt.value && !C(en) ? (b(), h(Ne, {
|
|
1607
1633
|
key: 2,
|
|
1608
1634
|
ref_key: "chartSlicer",
|
|
1609
1635
|
ref: I,
|
|
1610
1636
|
"data-dom-to-png-ignore-layout": "",
|
|
1611
|
-
allMinimaps:
|
|
1637
|
+
allMinimaps: On.value,
|
|
1612
1638
|
background: V.value.style.chart.zoom.color,
|
|
1613
1639
|
borderColor: V.value.style.chart.backgroundColor,
|
|
1614
1640
|
customFormat: V.value.style.chart.zoom.customFormat,
|
|
1615
|
-
cutNullValues:
|
|
1641
|
+
cutNullValues: En.value,
|
|
1616
1642
|
enableRangeHandles: V.value.style.chart.zoom.enableRangeHandles,
|
|
1617
1643
|
enableSelectionDrag: V.value.style.chart.zoom.enableSelectionDrag,
|
|
1618
1644
|
end: Y.value.end,
|
|
@@ -1621,12 +1647,12 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1621
1647
|
fontSize: V.value.style.chart.zoom.fontSize,
|
|
1622
1648
|
immediate: !V.value.style.chart.zoom.preview.enable,
|
|
1623
1649
|
inputColor: V.value.style.chart.zoom.color,
|
|
1624
|
-
isPreview:
|
|
1650
|
+
isPreview: Mn.value,
|
|
1625
1651
|
labelLeft: V.value.style.chart.grid.x.timeLabels.values[Y.value.start] ? Q.value[Y.value.start]?.text : "",
|
|
1626
1652
|
labelRight: V.value.style.chart.grid.x.timeLabels.values[Y.value.end - 1] ? Q.value[Y.value.end - 1]?.text : "",
|
|
1627
1653
|
max: W.value,
|
|
1628
1654
|
min: 0,
|
|
1629
|
-
minimap:
|
|
1655
|
+
minimap: Dn.value,
|
|
1630
1656
|
minimapCompact: V.value.style.chart.zoom.minimap.compact,
|
|
1631
1657
|
minimapFrameColor: V.value.style.chart.zoom.minimap.frameColor,
|
|
1632
1658
|
minimapIndicatorColor: V.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1636,7 +1662,7 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1636
1662
|
minimapSelectedColorOpacity: V.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1637
1663
|
minimapSelectedIndex: M.value,
|
|
1638
1664
|
minimapSelectionRadius: V.value.style.chart.zoom.minimap.selectionRadius,
|
|
1639
|
-
preciseLabels:
|
|
1665
|
+
preciseLabels: Xn.value?.length ? Xn.value : Q.value,
|
|
1640
1666
|
refreshEndPoint: V.value.style.chart.zoom.endIndex === null ? W.value : V.value.style.chart.zoom.endIndex + 1,
|
|
1641
1667
|
refreshStartPoint: V.value.style.chart.zoom.startIndex === null ? 0 : V.value.style.chart.zoom.startIndex,
|
|
1642
1668
|
selectColor: V.value.style.chart.zoom.highlightColor,
|
|
@@ -1658,42 +1684,42 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1658
1684
|
handleBorderColor: V.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1659
1685
|
handleFill: V.value.style.chart.zoom.minimap.handleFill,
|
|
1660
1686
|
handleWidth: V.value.style.chart.zoom.minimap.handleWidth,
|
|
1661
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
1662
|
-
onFutureStart: n[2] ||= (e) =>
|
|
1663
|
-
onReset:
|
|
1664
|
-
onTrapMouse:
|
|
1665
|
-
"onUpdate:end":
|
|
1666
|
-
"onUpdate:start":
|
|
1687
|
+
onFutureEnd: n[1] ||= (e) => Nn("end", e),
|
|
1688
|
+
onFutureStart: n[2] ||= (e) => Nn("start", e),
|
|
1689
|
+
onReset: jn,
|
|
1690
|
+
onTrapMouse: _n,
|
|
1691
|
+
"onUpdate:end": In,
|
|
1692
|
+
"onUpdate:start": Fn
|
|
1667
1693
|
}, {
|
|
1668
1694
|
"reset-action": T(({ reset: e }) => [S(t.$slots, "reset-action", y(v({ reset: e })), void 0, !0)]),
|
|
1669
1695
|
_: 3
|
|
1670
1696
|
}, 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("."))) : g("", !0),
|
|
1671
|
-
_("div", { id: `legend-bottom-${D.value}` }, null, 8,
|
|
1672
|
-
|
|
1697
|
+
_("div", { id: `legend-bottom-${D.value}` }, null, 8, dt),
|
|
1698
|
+
Lt.value && (V.value.style.chart.legend.show || t.$slots.legend) ? (b(), h(Be, {
|
|
1673
1699
|
key: 3,
|
|
1674
1700
|
to: V.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1675
1701
|
}, [_("div", {
|
|
1676
1702
|
ref_key: "chartLegend",
|
|
1677
|
-
ref:
|
|
1678
|
-
}, [S(t.$slots, "legend", { legend:
|
|
1679
|
-
legendSet:
|
|
1680
|
-
config:
|
|
1681
|
-
key: `legend_${
|
|
1682
|
-
isCursorPointer:
|
|
1683
|
-
onClickMarker: n[3] ||= ({ i: e }) =>
|
|
1703
|
+
ref: Mt
|
|
1704
|
+
}, [S(t.$slots, "legend", { legend: Ar.value }, () => [V.value.style.chart.legend.show && B.value ? (b(), h(Re, {
|
|
1705
|
+
legendSet: Ar.value,
|
|
1706
|
+
config: jr.value,
|
|
1707
|
+
key: `legend_${It.value}`,
|
|
1708
|
+
isCursorPointer: Zt.value,
|
|
1709
|
+
onClickMarker: n[3] ||= ({ i: e }) => Er(e)
|
|
1684
1710
|
}, {
|
|
1685
1711
|
item: T(({ legend: e, index: t }) => [_("div", {
|
|
1686
1712
|
onClick: (t) => e.segregate(),
|
|
1687
|
-
style:
|
|
1688
|
-
},
|
|
1689
|
-
legendToggle: T(() => [
|
|
1713
|
+
style: Ye(`opacity:${N.value.includes(t) ? .5 : 1}`)
|
|
1714
|
+
}, et(e.name), 13, ft)]),
|
|
1715
|
+
legendToggle: T(() => [Ar.value.length > 2 && V.value.style.chart.legend.selectAllToggle.show && !C(en) ? (b(), h(Fe, {
|
|
1690
1716
|
key: 0,
|
|
1691
1717
|
backgroundColor: V.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1692
1718
|
color: V.value.style.chart.legend.selectAllToggle.color,
|
|
1693
1719
|
fontSize: V.value.style.chart.legend.fontSize,
|
|
1694
1720
|
checked: N.value.length > 0,
|
|
1695
|
-
isCursorPointer:
|
|
1696
|
-
onToggle:
|
|
1721
|
+
isCursorPointer: Zt.value,
|
|
1722
|
+
onToggle: Tr
|
|
1697
1723
|
}, null, 8, [
|
|
1698
1724
|
"backgroundColor",
|
|
1699
1725
|
"color",
|
|
@@ -1707,31 +1733,31 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1707
1733
|
"config",
|
|
1708
1734
|
"isCursorPointer"
|
|
1709
1735
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1710
|
-
t.$slots.watermark ? (b(),
|
|
1711
|
-
t.$slots.source ? (b(),
|
|
1736
|
+
t.$slots.watermark ? (b(), Ve("div", pt, [S(t.$slots, "watermark", y(v({ isPrinting: C(un) || C(dn) || Ut.value })), void 0, !0)])) : g("", !0),
|
|
1737
|
+
t.$slots.source ? (b(), Ve("div", {
|
|
1712
1738
|
key: 5,
|
|
1713
1739
|
ref_key: "source",
|
|
1714
|
-
ref:
|
|
1740
|
+
ref: Nt,
|
|
1715
1741
|
dir: "auto"
|
|
1716
1742
|
}, [S(t.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1717
|
-
B.value && V.value.userOptions.buttons.table ? (b(), h(
|
|
1743
|
+
B.value && V.value.userOptions.buttons.table ? (b(), h(Qe(Ur.value.component), Ke({ key: 6 }, Ur.value.props, {
|
|
1718
1744
|
ref_key: "tableUnit",
|
|
1719
|
-
ref:
|
|
1720
|
-
onClose:
|
|
1721
|
-
}),
|
|
1722
|
-
content: T(() => [(b(), h(C(
|
|
1723
|
-
key: `table_${
|
|
1724
|
-
colNames:
|
|
1725
|
-
head:
|
|
1726
|
-
body:
|
|
1727
|
-
config:
|
|
1728
|
-
title: V.value.table.useDialog ? "" :
|
|
1745
|
+
ref: Rt,
|
|
1746
|
+
onClose: Wr
|
|
1747
|
+
}), He({
|
|
1748
|
+
content: T(() => [(b(), h(C(gt), {
|
|
1749
|
+
key: `table_${Ft.value}`,
|
|
1750
|
+
colNames: Mr.value.colNames,
|
|
1751
|
+
head: Mr.value.head,
|
|
1752
|
+
body: Mr.value.body,
|
|
1753
|
+
config: Mr.value.config,
|
|
1754
|
+
title: V.value.table.useDialog ? "" : Ur.value.title,
|
|
1729
1755
|
withCloseButton: !V.value.table.useDialog,
|
|
1730
|
-
isCursorPointer:
|
|
1731
|
-
onClose:
|
|
1756
|
+
isCursorPointer: Zt.value,
|
|
1757
|
+
onClose: Wr
|
|
1732
1758
|
}, {
|
|
1733
|
-
th: T(({ th: e }) => [_("div", { innerHTML: e }, null, 8,
|
|
1734
|
-
td: T(({ td: e }) => [
|
|
1759
|
+
th: T(({ th: e }) => [_("div", { innerHTML: e }, null, 8, mt)]),
|
|
1760
|
+
td: T(({ td: e }) => [Ue(et(e), 1)]),
|
|
1735
1761
|
_: 1
|
|
1736
1762
|
}, 8, [
|
|
1737
1763
|
"colNames",
|
|
@@ -1745,29 +1771,29 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1745
1771
|
_: 2
|
|
1746
1772
|
}, [V.value.table.useDialog ? {
|
|
1747
1773
|
name: "title",
|
|
1748
|
-
fn: T(() => [
|
|
1774
|
+
fn: T(() => [Ue(et(Ur.value.title), 1)]),
|
|
1749
1775
|
key: "0"
|
|
1750
1776
|
} : void 0, V.value.table.useDialog ? {
|
|
1751
1777
|
name: "actions",
|
|
1752
1778
|
fn: T(() => [_("button", {
|
|
1753
1779
|
tabindex: "0",
|
|
1754
1780
|
class: "vue-ui-user-options-button",
|
|
1755
|
-
onClick: n[4] ||= (e) =>
|
|
1756
|
-
style:
|
|
1757
|
-
}, [
|
|
1781
|
+
onClick: n[4] ||= (e) => Pr(V.value.userOptions.callbacks.csv),
|
|
1782
|
+
style: Ye({ cursor: Zt.value ? "pointer" : "default" })
|
|
1783
|
+
}, [We(Me, {
|
|
1758
1784
|
name: "fileCsv",
|
|
1759
|
-
stroke:
|
|
1785
|
+
stroke: Ur.value.props.color
|
|
1760
1786
|
}, null, 8, ["stroke"])], 4)]),
|
|
1761
1787
|
key: "1"
|
|
1762
1788
|
} : void 0]), 1040)) : g("", !0),
|
|
1763
|
-
V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(
|
|
1789
|
+
V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(vt), {
|
|
1764
1790
|
key: 7,
|
|
1765
1791
|
parent: O.value,
|
|
1766
1792
|
backgroundColor: V.value.style.chart.backgroundColor,
|
|
1767
1793
|
color: V.value.style.chart.color,
|
|
1768
|
-
active:
|
|
1769
|
-
isCursorPointer:
|
|
1770
|
-
onClose:
|
|
1794
|
+
active: Br.value,
|
|
1795
|
+
isCursorPointer: Zt.value,
|
|
1796
|
+
onClose: Vr
|
|
1771
1797
|
}, {
|
|
1772
1798
|
"annotator-action-close": T(() => [S(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1773
1799
|
"annotator-action-color": T(({ color: e }) => [S(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
|
|
@@ -1783,8 +1809,8 @@ var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at
|
|
|
1783
1809
|
"active",
|
|
1784
1810
|
"isCursorPointer"
|
|
1785
1811
|
])) : g("", !0)
|
|
1786
|
-
], 46,
|
|
1812
|
+
], 46, at));
|
|
1787
1813
|
}
|
|
1788
|
-
}, [["__scopeId", "data-v-
|
|
1814
|
+
}, [["__scopeId", "data-v-d5591264"]]);
|
|
1789
1815
|
//#endregion
|
|
1790
|
-
export {
|
|
1816
|
+
export { it as n, ht as t };
|