vue-data-ui 3.25.13 → 3.26.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/README.md +53 -53
- package/dist/{Arrow-BhZDUeMp.js → Arrow-Bt3aGRMb.js} +1 -1
- package/dist/{BaseDraggableDialog-Ck6R5Q0K.js → BaseDraggableDialog-C1Slb3Yh.js} +2 -2
- package/dist/{BaseIcon-Dlz7gfx0.js → BaseIcon-BV75ei8X.js} +1 -1
- package/dist/{BaseLegendToggle-DGG65LAR.js → BaseLegendToggle-DtS_Oj3B.js} +1 -1
- package/dist/{BaseZoomControls-BK0PxEa8.js → BaseZoomControls-DIhoeyZu.js} +2 -2
- package/dist/{ColorPicker-DMTwxvi_.js → ColorPicker--Y89hTnE.js} +2 -2
- package/dist/{DataTable-BD1eZ0zB.js → DataTable-DX5fToAo.js} +2 -2
- package/dist/{HillActions-CiP2m7Nz.js → HillActions-D6weVdns.js} +1 -1
- package/dist/{Legend-C0Ln0VNe.js → Legend-Dv90gh-6.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BjrMLISf.js → NonSvgPenAndPaper-D2BM5C1-.js} +3 -3
- package/dist/{PackageVersion-D5QkTJQU.js → PackageVersion-DhXk363L.js} +1 -1
- package/dist/{PenAndPaper-XdUD8uB3.js → PenAndPaper-DkQ4sEhs.js} +3 -3
- package/dist/{Shape-VCdxvFV9.js → Shape-B_kDj1gF.js} +1 -1
- package/dist/SlicerPreview-BgyIezm0.js +1730 -0
- package/dist/{SparkTooltip-B1gRxPfb.js → SparkTooltip-BNpyQ021.js} +1 -1
- package/dist/{Title-DeqmC-vN.js → Title-C2JKI5td.js} +1 -1
- package/dist/{Tooltip-DZ4a3XJQ.js → Tooltip-2NAb_Rrx.js} +1 -1
- package/dist/{UserOptions-wFD9vo9g.js → UserOptions-Dgn3StKw.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 +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-DdqmzDdY.js → dom-to-png-DKdtTkNC.js} +1 -1
- package/dist/{exposedLib-BBtjpydc.js → exposedLib-DN6QRAx2.js} +1 -1
- package/dist/{img-W50sC9SC.js → img-CaIaBHA0.js} +1 -1
- package/dist/{labelUtils-Dvm-7rse.js → labelUtils-CD5XzcAo.js} +1 -1
- package/dist/{lib-DOpaUOQx.js → lib-CklJ7rIN.js} +29 -18
- package/dist/{package-Cmcke8zR.js → package-BVRea5S_.js} +1 -1
- package/dist/{pdf-zGbDDpCi.js → pdf-6hacmnKW.js} +1 -1
- package/dist/{render-common-CG1wuHZY.js → render-common-ChwuwzU3.js} +2 -2
- 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 +110 -5
- package/dist/types/vue-ui-candlestick.d.ts +4 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +4 -0
- package/dist/types/vue-ui-quick-chart.d.ts +4 -0
- package/dist/types/vue-ui-sparkline.d.ts +5 -1
- package/dist/types/vue-ui-stackbar.d.ts +4 -0
- package/dist/types/vue-ui-stackline.d.ts +4 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +2 -0
- package/dist/types/vue-ui-xy.d.ts +2 -0
- package/dist/{useConfig-C2uy4ltq.js → useConfig-DObkR9Aa.js} +49 -4
- package/dist/{useNestedProp-Bux0f4iY.js → useNestedProp-Tc9i6ZcN.js} +1 -1
- package/dist/{useObjectBindings-CEuNiBIT.js → useObjectBindings-CPmyIJxB.js} +9 -9
- package/dist/{usePrinter-BBBooAGP.js → usePrinter-Dp3X1vqr.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/vue-data-ui-Dr0uoRD_.js +191 -0
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-Ckauu3d4.js → vue-ui-3d-bar-BvJwq13N.js} +7 -7
- package/dist/{vue-ui-accordion-yHZMJLaY.js → vue-ui-accordion-15kKhkup.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BczIt1-U.js → vue-ui-age-pyramid-CVzina7X.js} +7 -7
- package/dist/{vue-ui-annotator-BGB6K6u0.js → vue-ui-annotator-J4Wo2_DR.js} +7 -7
- package/dist/{vue-ui-bullet-BoTsLccZ.js → vue-ui-bullet-CuI5_uF1.js} +8 -8
- package/dist/{vue-ui-bump-B5ztSSQO.js → vue-ui-bump-GGNG4vwu.js} +7 -7
- package/dist/vue-ui-candlestick-Ca9dvzvk.js +2144 -0
- package/dist/{vue-ui-carousel-table-D-3KSWok.js → vue-ui-carousel-table-DOxh9sEm.js} +5 -5
- package/dist/{vue-ui-chestnut-W2l-W0_e.js → vue-ui-chestnut-DQhC_gB8.js} +6 -6
- package/dist/{vue-ui-chord-BFPQsMj8.js → vue-ui-chord-Blnvne2p.js} +9 -9
- package/dist/{vue-ui-circle-pack-BtPc1BR3.js → vue-ui-circle-pack-mNHA1U8B.js} +7 -7
- package/dist/{vue-ui-cursor-CpNOiwkt.js → vue-ui-cursor-D2hgivhn.js} +4 -4
- package/dist/{vue-ui-dag-i-zPwLcN.js → vue-ui-dag-DDSyO2ts.js} +8 -8
- package/dist/{vue-ui-dashboard-DtaW9a2P.js → vue-ui-dashboard-C9MnWAnE.js} +70 -70
- package/dist/{vue-ui-digits-BIlec9af.js → vue-ui-digits-h7H-yHd0.js} +4 -4
- package/dist/{vue-ui-donut-CJlBEyxu.js → vue-ui-donut-D-8OekQ5.js} +3 -3
- package/dist/vue-ui-donut-evolution-CJ6tIbgl.js +1869 -0
- package/dist/{vue-ui-donut-Bgf-n95J.js → vue-ui-donut-oY4iu5pY.js} +11 -11
- package/dist/{vue-ui-dumbbell-C112YLkC.js → vue-ui-dumbbell-52gWeLGK.js} +8 -8
- package/dist/{vue-ui-flow-j4bDg9Zd.js → vue-ui-flow-edMUCkcr.js} +8 -8
- package/dist/{vue-ui-funnel-CVHpfBCW.js → vue-ui-funnel-B08mSlHH.js} +7 -7
- package/dist/{vue-ui-galaxy-ChGpUWh8.js → vue-ui-galaxy-CV59UO9t.js} +10 -10
- package/dist/{vue-ui-gauge-Cp00vXfG.js → vue-ui-gauge-BnBzapom.js} +7 -7
- package/dist/{vue-ui-geo-B4hDk5NO.js → vue-ui-geo-BCmDw5me.js} +8 -8
- package/dist/{vue-ui-gizmo-D6nCCsS4.js → vue-ui-gizmo-BZBV8haQ.js} +4 -4
- package/dist/{vue-ui-heatmap-scVJc1cw.js → vue-ui-heatmap-CjiffI23.js} +8 -8
- package/dist/{vue-ui-hill-DnYUHGAK.js → vue-ui-hill-D5WV6zro.js} +7 -7
- package/dist/{vue-ui-history-plot-C5qAMaaW.js → vue-ui-history-plot-Bd06L1Od.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-nEG4uvpv.js → vue-ui-horizontal-bar-B5Yp6Uql.js} +11 -11
- package/dist/{vue-ui-kpi-DOxId6xg.js → vue-ui-kpi-CNreX8BM.js} +4 -4
- package/dist/{vue-ui-label-BDKY7BI7.js → vue-ui-label-BDP67zvQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BknVs9VJ.js → vue-ui-mini-loader-pzS7SsP4.js} +3 -3
- package/dist/{vue-ui-molecule-_x232mMu.js → vue-ui-molecule-DqeRhja8.js} +6 -6
- package/dist/{vue-ui-mood-radar-D-F4855V.js → vue-ui-mood-radar-Cgl_QD-j.js} +8 -8
- package/dist/{vue-ui-nested-donuts-0E5IllFW.js → vue-ui-nested-donuts-MDPBZLnW.js} +10 -10
- package/dist/{vue-ui-onion-Eip0S1H7.js → vue-ui-onion-kgZ3uV3c.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DO0sQdJw.js → vue-ui-parallel-coordinate-plot-CJbZCsPd.js} +10 -10
- package/dist/{vue-ui-quadrant-CA0ClWfL.js → vue-ui-quadrant-B9efnVWT.js} +10 -10
- package/dist/{vue-ui-quick-chart-D-VuAoll.js → vue-ui-quick-chart-hNOMlqTI.js} +1053 -681
- package/dist/{vue-ui-radar-BTD7Y0Ps.js → vue-ui-radar-DJO16PTU.js} +9 -9
- package/dist/{vue-ui-rating-C_Qj6gnP.js → vue-ui-rating-BYLWm5aG.js} +3 -3
- package/dist/{vue-ui-relation-circle-CcxLBVFV.js → vue-ui-relation-circle-DVF3RlHU.js} +7 -7
- package/dist/{vue-ui-ridgeline-BZrzbbhb.js → vue-ui-ridgeline-DvgIu54T.js} +10 -10
- package/dist/{vue-ui-rings-CO48GOP2.js → vue-ui-rings-DVU7F6bL.js} +11 -11
- package/dist/{vue-ui-scatter-DrxUgZbQ.js → vue-ui-scatter-BtlRfhTt.js} +10 -10
- package/dist/{vue-ui-skeleton-CeKjW4MX.js → vue-ui-skeleton-DcMhyC4L.js} +4 -4
- package/dist/{vue-ui-smiley-BvRwx69s.js → vue-ui-smiley-qHvZQJcB.js} +3 -3
- package/dist/{vue-ui-spark-trend-DnujGRyt.js → vue-ui-spark-trend-BuHZP190.js} +4 -4
- package/dist/{vue-ui-sparkbar-Cd_uhYGD.js → vue-ui-sparkbar-MH9VeqdO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-hT31YEtt.js → vue-ui-sparkgauge-Bg_IFD0m.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PKlTYhKA.js → vue-ui-sparkhistogram-DZu07vIL.js} +5 -5
- package/dist/vue-ui-sparkline-LwEiJPe6.js +2067 -0
- package/dist/{vue-ui-sparkstackbar-R0ij2vi1.js → vue-ui-sparkstackbar-hbIoybeq.js} +5 -5
- package/dist/vue-ui-stackbar-CaxNkWPz.js +2660 -0
- package/dist/vue-ui-stackline-BJqnZXeR.js +2829 -0
- package/dist/{vue-ui-strip-plot-DR3N56rS.js → vue-ui-strip-plot-BWK3JQr6.js} +8 -8
- package/dist/{vue-ui-table-Bg6BeLrf.js → vue-ui-table-CRWoH6dc.js} +6 -6
- package/dist/{vue-ui-table-heatmap-C1b1Pcp8.js → vue-ui-table-heatmap-Bu9RiTU0.js} +6 -6
- package/dist/{vue-ui-table-sparkline-CkVXyequ.js → vue-ui-table-sparkline-CTA_6-gu.js} +5 -5
- package/dist/{vue-ui-thermometer-CqkaMF7Z.js → vue-ui-thermometer-Y5CnROrM.js} +7 -7
- package/dist/{vue-ui-timer-CgJvNwBv.js → vue-ui-timer-BYEpxxDX.js} +6 -6
- package/dist/{vue-ui-tiremarks-B078YJ9M.js → vue-ui-tiremarks-DBndWNiA.js} +7 -7
- package/dist/{vue-ui-treemap-Cfjf8mDl.js → vue-ui-treemap-Cw8a0oFl.js} +10 -10
- package/dist/{vue-ui-waffle-BZIcPa0l.js → vue-ui-waffle-BvfD05mS.js} +11 -11
- package/dist/{vue-ui-wheel-CPTm8AHn.js → vue-ui-wheel-D6NsnLRc.js} +7 -7
- package/dist/{vue-ui-word-cloud-DnGblUwj.js → vue-ui-word-cloud-YrgMp1Fo.js} +8 -8
- package/dist/{vue-ui-world-KkcpeKqp.js → vue-ui-world-BMcqvuJH.js} +8 -8
- package/dist/{vue-ui-xy-ClCV7xA5.js → vue-ui-xy-B6wckF4S.js} +4 -4
- package/dist/vue-ui-xy-Bv7fhRbS.js +5769 -0
- package/dist/{vue-ui-xy-canvas-BlpCbXKR.js → vue-ui-xy-canvas-NzaEYHDR.js} +875 -560
- package/dist/{vue_ui_candlestick-J8jmJvxP.js → vue_ui_candlestick-BXSQY82k.js} +96 -9
- package/dist/{vue_ui_donut_evolution-D1yAAIHr.js → vue_ui_donut_evolution-C6951a2f.js} +35 -7
- package/dist/{vue_ui_quick_chart-mZBdml3Z.js → vue_ui_quick_chart-DByCqSYE.js} +45 -4
- package/dist/{vue_ui_sparkline-auZhap6Y.js → vue_ui_sparkline-b9pEUyGF.js} +33 -1
- package/dist/{vue_ui_stackbar-COOrQQdK.js → vue_ui_stackbar-DdjDL6aq.js} +88 -9
- package/dist/{vue_ui_stackline-DQqKPA9z.js → vue_ui_stackline-Bh0RuInt.js} +88 -9
- package/dist/{vue_ui_xy-BA3-_LCx.js → vue_ui_xy-CcJADijP.js} +78 -9
- package/dist/{vue_ui_xy_canvas-Cb6dg3eK.js → vue_ui_xy_canvas-DrNSzYWq.js} +88 -9
- package/package.json +1 -1
- package/dist/SlicerPreview-BJ4usfYd.js +0 -1708
- package/dist/vue-data-ui-BVzA0tEV.js +0 -280
- package/dist/vue-ui-candlestick-BJtdA4Yu.js +0 -1871
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +0 -1552
- package/dist/vue-ui-sparkline-BSu1uRvP.js +0 -1610
- package/dist/vue-ui-stackbar-BrzzkGFk.js +0 -2369
- package/dist/vue-ui-stackline-zEX3gR3y.js +0 -2483
- package/dist/vue-ui-xy-C6lVqZnx.js +0 -5367
|
@@ -1,32 +1,43 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, Ct as r, D as i, Et as a, Gt as o, Pt as s, Rt as ee, S as c, Vt as l, X as te, _ as ne, at as re, et as ie, ft as ae, gt as oe, i as se, jt as ce, nt as le, o as ue, qt as de, tn as fe, w as pe } from "./lib-
|
|
2
|
+
import { $ as t, $t as n, Ct as r, D as i, Et as a, Gt as o, Pt as s, Rt as ee, S as c, Vt as l, X as te, _ as ne, at as re, et as ie, ft as ae, gt as oe, i as se, jt as ce, nt as le, o as ue, qt as de, tn as fe, w as pe } from "./lib-CklJ7rIN.js";
|
|
3
3
|
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as ge, r as _e, t as ve } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as ye } from "./useConfig-
|
|
6
|
-
import { t as be } from "./usePrinter-
|
|
5
|
+
import { t as ye } from "./useConfig-DObkR9Aa.js";
|
|
6
|
+
import { t as be } from "./usePrinter-Dp3X1vqr.js";
|
|
7
7
|
import { n as xe, t as Se } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as Ce } from "./useNestedProp-
|
|
8
|
+
import { t as Ce } from "./useNestedProp-Tc9i6ZcN.js";
|
|
9
9
|
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Te } from "./img-
|
|
11
|
-
import { n as Ee } from "./Title-
|
|
10
|
+
import { t as Te } from "./img-CaIaBHA0.js";
|
|
11
|
+
import { n as Ee } from "./Title-C2JKI5td.js";
|
|
12
12
|
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { a as u, c as Oe, i as ke, l as Ae, n as je, o as Me, r as Ne, s as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as Ie } from "./BaseIcon-
|
|
15
|
-
import { t as Le } from "./SlicerPreview-
|
|
16
|
-
import { t as Re } from "./vue-ui-accordion-
|
|
17
|
-
import { t as ze } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Ie } from "./BaseIcon-BV75ei8X.js";
|
|
15
|
+
import { t as Le } from "./SlicerPreview-BgyIezm0.js";
|
|
16
|
+
import { t as Re } from "./vue-ui-accordion-15kKhkup.js";
|
|
17
|
+
import { t as ze } from "./BaseLegendToggle-DtS_Oj3B.js";
|
|
18
18
|
import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { t as He } from "./Legend-
|
|
21
|
-
import { t as Ue } from "./vue_ui_xy_canvas-
|
|
22
|
-
import { Teleport as We, computed as d, createBlock as
|
|
20
|
+
import { t as He } from "./Legend-Dv90gh-6.js";
|
|
21
|
+
import { t as Ue } from "./vue_ui_xy_canvas-DrNSzYWq.js";
|
|
22
|
+
import { Teleport as We, computed as d, createBlock as Ge, createCommentVNode as f, createElementBlock as Ke, createElementVNode as p, createSlots as qe, createTextVNode as Je, createVNode as Ye, defineAsyncComponent as Xe, guardReactiveProps as m, mergeProps as Ze, nextTick as Qe, normalizeClass as $e, normalizeProps as h, normalizeStyle as et, onBeforeUnmount as tt, onMounted as nt, openBlock as g, ref as _, renderSlot as v, resolveDynamicComponent as rt, shallowRef as it, toDisplayString as at, toRefs as ot, unref as y, useSlots as st, watch as b, watchEffect as ct, withCtx as x } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-xy-canvas.vue
|
|
24
|
-
var
|
|
24
|
+
var lt = /* @__PURE__ */ e({ default: () => Ct }), ut = ["id"], dt = ["id"], ft = {
|
|
25
25
|
class: "sr-only",
|
|
26
26
|
"aria-live": "polite",
|
|
27
27
|
"aria-atomic": "true"
|
|
28
|
-
},
|
|
29
|
-
|
|
28
|
+
}, pt = ["id"], mt = ["aria-label", "aria-describedby"], ht = ["viewBox"], gt = [
|
|
29
|
+
"x",
|
|
30
|
+
"y",
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"fill",
|
|
34
|
+
"fill-opacity",
|
|
35
|
+
"stroke",
|
|
36
|
+
"stroke-opacity",
|
|
37
|
+
"stroke-width",
|
|
38
|
+
"stroke-dasharray"
|
|
39
|
+
], _t = {
|
|
40
|
+
key: 1,
|
|
30
41
|
style: {
|
|
31
42
|
position: "absolute",
|
|
32
43
|
top: "100%",
|
|
@@ -35,10 +46,10 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
35
46
|
},
|
|
36
47
|
"data-dom-to-png-ignore": "",
|
|
37
48
|
"aria-hidden": "true"
|
|
38
|
-
},
|
|
49
|
+
}, vt = ["id"], yt = ["onClick"], bt = {
|
|
39
50
|
key: 4,
|
|
40
51
|
class: "vue-data-ui-watermark"
|
|
41
|
-
},
|
|
52
|
+
}, xt = { key: 0 }, St = { key: 1 }, Ct = /*#__PURE__*/ De({
|
|
42
53
|
__name: "vue-ui-xy-canvas",
|
|
43
54
|
props: {
|
|
44
55
|
dataset: {
|
|
@@ -56,21 +67,29 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
56
67
|
selectedXIndex: {
|
|
57
68
|
type: Number,
|
|
58
69
|
default: void 0
|
|
70
|
+
},
|
|
71
|
+
zoomState: {
|
|
72
|
+
type: Object,
|
|
73
|
+
default: null
|
|
59
74
|
}
|
|
60
75
|
},
|
|
61
76
|
emits: [
|
|
62
77
|
"selectLegend",
|
|
63
78
|
"selectX",
|
|
79
|
+
"zoomStart",
|
|
80
|
+
"zoomEnd",
|
|
81
|
+
"zoomReset",
|
|
82
|
+
"update:zoomState",
|
|
64
83
|
"copyAlt"
|
|
65
84
|
],
|
|
66
|
-
setup(e, { expose: De, emit:
|
|
67
|
-
let
|
|
85
|
+
setup(e, { expose: De, emit: lt }) {
|
|
86
|
+
let Ct = Xe(() => import("./Tooltip-2NAb_Rrx.js")), wt = Xe(() => import("./DataTable-DX5fToAo.js")), Tt = Xe(() => import("./UserOptions-Dgn3StKw.js").then((e) => e.n)), Et = Xe(() => import("./NonSvgPenAndPaper-D2BM5C1-.js")), Dt = Xe(() => import("./BaseDraggableDialog-C1Slb3Yh.js").then((e) => e.n)), { vue_ui_xy_canvas: Ot } = ye(), { isThemeValid: kt, warnInvalidTheme: At } = we(), S = e, jt = _(te()), Mt = _(null), Nt = _(null), C = _(null), w = _(1), Pt = _(1), Ft = _(!1), T = _(null), It = _(""), Lt = _(null), E = _([]), Rt = _(1), D = _(!0), O = _(!0), zt = _(null), Bt = _(0), Vt = _(!1), Ht = _(null), Ut = _(null), Wt = _(null), Gt = _(null), Kt = _(0), qt = _(0), Jt = _(0), k = _(null), Yt = _(!1), Xt = _(null), Zt = _(null), Qt = _(!1), $t = _(!1), en = _(!1), A = _(null), tn = _(!1), nn = _(!1), rn = _(!1), j = _(null), an = _({
|
|
68
87
|
x: 0,
|
|
69
88
|
y: 0
|
|
70
|
-
}),
|
|
89
|
+
}), M = d(() => Array.isArray(mn.value) && mn.value.length > 0), N = lt, on = st(), P = _(bn()), F = d(() => P.value.userOptions), I = d(() => P.value.style.chart.tooltip), L = d(() => P.value.style.chart.grid.y.verticalLines), sn = d(() => P.value.style.chart.grid.x.horizontalLines), R = d(() => P.value.style.chart.grid.y.axisLabels), z = d(() => P.value.style.chart.grid.x.timeLabels), B = d(() => P.value.style.chart.grid), V = d(() => P.value.style.chart.dataLabels), H = d(() => P.value.style.chart);
|
|
71
90
|
me({
|
|
72
91
|
config: () => P.value,
|
|
73
|
-
dataset: () =>
|
|
92
|
+
dataset: () => S.dataset,
|
|
74
93
|
component: "VueUiXyCanvas",
|
|
75
94
|
rules: [
|
|
76
95
|
he.emptyArray,
|
|
@@ -92,21 +111,21 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
92
111
|
}
|
|
93
112
|
]
|
|
94
113
|
});
|
|
95
|
-
let
|
|
114
|
+
let cn = d(() => {
|
|
96
115
|
let e = H.value.title.text || "XY chart", t = X.value.end - X.value.start;
|
|
97
|
-
return `${e}. ${Y.value.filter((e) => !
|
|
98
|
-
}),
|
|
99
|
-
if (
|
|
100
|
-
let e =
|
|
101
|
-
return `${z.value.values.slice(X.value.start, X.value.end)[
|
|
102
|
-
let t = e.series[
|
|
116
|
+
return `${e}. ${Y.value.filter((e) => !E.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
117
|
+
}), ln = d(() => {
|
|
118
|
+
if (j.value === null) return "";
|
|
119
|
+
let e = j.value + X.value.start;
|
|
120
|
+
return `${z.value.values.slice(X.value.start, X.value.end)[j.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[j.value]?.text : kr.value[j.value]?.text : $.value[e]?.text ?? `Point ${e + 1}`}. ${Y.value.filter((e) => !E.value.includes(e.absoluteIndex)).map((e) => {
|
|
121
|
+
let t = e.series[j.value], n = t?.value ?? t ?? null;
|
|
103
122
|
return `${e.name}: ${n}`;
|
|
104
123
|
}).join(". ")}.`;
|
|
105
|
-
}),
|
|
106
|
-
|
|
107
|
-
|
|
124
|
+
}), un = d(() => F.value.useCursorPointer), dn = d(() => P.value.debug);
|
|
125
|
+
nt(() => {
|
|
126
|
+
on["chart-background"] && dn.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
108
127
|
});
|
|
109
|
-
let
|
|
128
|
+
let fn = d(() => fe({
|
|
110
129
|
defaultConfig: {
|
|
111
130
|
userOptions: { show: !1 },
|
|
112
131
|
table: { show: !1 },
|
|
@@ -140,11 +159,11 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
140
159
|
} }
|
|
141
160
|
},
|
|
142
161
|
userConfig: P.value.skeletonConfig ?? {}
|
|
143
|
-
})), { loading:
|
|
144
|
-
...
|
|
162
|
+
})), { loading: pn, FINAL_DATASET: mn } = xe({
|
|
163
|
+
...ot(S),
|
|
145
164
|
FINAL_CONFIG: P,
|
|
146
|
-
prepareConfig:
|
|
147
|
-
skeletonDataset:
|
|
165
|
+
prepareConfig: bn,
|
|
166
|
+
skeletonDataset: S.config?.skeletonDataset ?? [{
|
|
148
167
|
name: "",
|
|
149
168
|
series: [
|
|
150
169
|
0,
|
|
@@ -184,129 +203,129 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
184
203
|
}],
|
|
185
204
|
skeletonConfig: fe({
|
|
186
205
|
defaultConfig: P.value,
|
|
187
|
-
userConfig:
|
|
206
|
+
userConfig: fn.value
|
|
188
207
|
})
|
|
189
|
-
}), { userOptionsVisible:
|
|
190
|
-
function
|
|
191
|
-
|
|
208
|
+
}), { userOptionsVisible: hn, setUserOptionsVisibility: gn, keepUserOptionState: _n } = Be({ config: P.value }), { svgRef: U } = Ve({ config: H.value.title });
|
|
209
|
+
function vn() {
|
|
210
|
+
gn(!0);
|
|
192
211
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
212
|
+
function yn() {
|
|
213
|
+
gn(!1), N("selectX", {
|
|
195
214
|
dataset: null,
|
|
196
215
|
index: null,
|
|
197
216
|
indexLabel: null
|
|
198
|
-
}),
|
|
217
|
+
}), T.value = null;
|
|
199
218
|
}
|
|
200
|
-
function
|
|
219
|
+
function bn() {
|
|
201
220
|
let e = Ce({
|
|
202
|
-
userConfig:
|
|
203
|
-
defaultConfig:
|
|
221
|
+
userConfig: S.config,
|
|
222
|
+
defaultConfig: Ot
|
|
204
223
|
}), t = {}, i = e.theme;
|
|
205
224
|
if (i) {
|
|
206
|
-
if (!
|
|
225
|
+
if (!kt.value(e)) At(e), t = e;
|
|
207
226
|
else {
|
|
208
227
|
let r = Ce({
|
|
209
|
-
userConfig: Ue[i] ||
|
|
228
|
+
userConfig: Ue[i] || S.config,
|
|
210
229
|
defaultConfig: e
|
|
211
230
|
});
|
|
212
231
|
t = {
|
|
213
232
|
...Ce({
|
|
214
|
-
userConfig:
|
|
233
|
+
userConfig: S.config,
|
|
215
234
|
defaultConfig: r
|
|
216
235
|
}),
|
|
217
236
|
customPalette: e.customPalette.length ? e.customPalette : n[i] || l
|
|
218
237
|
};
|
|
219
238
|
}
|
|
220
239
|
} else t = e;
|
|
221
|
-
return
|
|
240
|
+
return S.config && r(S.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 = Ce({
|
|
222
241
|
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
223
|
-
userConfig:
|
|
242
|
+
userConfig: S.config.style.chart.grid.y.timeLabels
|
|
224
243
|
})), t;
|
|
225
244
|
}
|
|
226
|
-
function
|
|
245
|
+
function xn(e) {
|
|
227
246
|
let t = ie(e);
|
|
228
247
|
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
229
248
|
}
|
|
230
|
-
let
|
|
231
|
-
|
|
232
|
-
let n =
|
|
233
|
-
|
|
234
|
-
let i =
|
|
249
|
+
let Sn = xn(S.config);
|
|
250
|
+
b(() => S.config, (e, t) => {
|
|
251
|
+
let n = xn(e), r = n !== Sn;
|
|
252
|
+
Sn = n;
|
|
253
|
+
let i = bn();
|
|
235
254
|
if (!r) {
|
|
236
255
|
P.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
237
256
|
return;
|
|
238
257
|
}
|
|
239
|
-
|
|
240
|
-
}, { deep: !0 }),
|
|
241
|
-
Array.isArray(e) && e.length !== 0 && (await
|
|
258
|
+
pn.value || (P.value = i), hn.value = !F.value.showOnChartHover, Ci(), Kt.value += 1, qt.value += 1, Jt.value += 1, W.value.showTable = P.value.table.show, W.value.showDataLabels = V.value.show, W.value.stacked = H.value.stacked, W.value.showTooltip = I.value.show;
|
|
259
|
+
}, { deep: !0 }), b(() => S.dataset, async (e) => {
|
|
260
|
+
Array.isArray(e) && e.length !== 0 && (await Qe(), U.value && !C.value && (C.value = U.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, O.value = !0, await cr(), vr(), Kt.value += 1, qt.value += 1, Jt.value += 1);
|
|
242
261
|
}, { deep: !0 });
|
|
243
|
-
let
|
|
244
|
-
elementId: `xy_canvas_${
|
|
262
|
+
let Cn = _(H.value.aspectRatio), { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = be({
|
|
263
|
+
elementId: `xy_canvas_${jt.value}`,
|
|
245
264
|
fileName: H.value.title.text || "vue-ui-xy-canvas",
|
|
246
265
|
options: F.value.print
|
|
247
|
-
}), W =
|
|
266
|
+
}), W = _({
|
|
248
267
|
showTable: P.value.table.show,
|
|
249
268
|
showDataLabels: V.value.show,
|
|
250
269
|
stacked: H.value.stacked,
|
|
251
270
|
showTooltip: I.value.show
|
|
252
271
|
});
|
|
253
|
-
function
|
|
254
|
-
|
|
272
|
+
function On(e) {
|
|
273
|
+
Vt.value = e, Bt.value += 1;
|
|
255
274
|
}
|
|
256
|
-
let
|
|
257
|
-
function
|
|
258
|
-
|
|
275
|
+
let kn = d(() => pe(P.value.customPalette)), An = d(() => E.value.length === J.value.length), G = d(() => J.value ? Math.max(...J.value.filter((e, t) => An.value ? !0 : !E.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
276
|
+
function jn(e) {
|
|
277
|
+
A.value = e, Br();
|
|
259
278
|
}
|
|
260
|
-
let
|
|
261
|
-
function
|
|
262
|
-
if (!
|
|
279
|
+
let Mn = _(0), Nn = _(0);
|
|
280
|
+
function Pn() {
|
|
281
|
+
if (!C.value || !z.value.show) return 0;
|
|
263
282
|
let e = $.value || [], t = X.value.start ?? 0, n = X.value.end ?? 0;
|
|
264
283
|
if (!Math.max(0, n - t)) return 0;
|
|
265
|
-
let r = Math.round(
|
|
266
|
-
|
|
284
|
+
let r = Math.round(w.value / 40 * z.value.fontSizeRatio), i = `${z.value.bold ? "bold " : ""}${r}px ${P.value.style.fontFamily}`;
|
|
285
|
+
C.value.save(), C.value.font = i;
|
|
267
286
|
let a = 0;
|
|
268
287
|
for (let r = t; r < n; r += 1) {
|
|
269
|
-
let t = e[r]?.text ?? `${r + 1}`, n =
|
|
288
|
+
let t = e[r]?.text ?? `${r + 1}`, n = C.value.measureText(String(t));
|
|
270
289
|
n.width > a && (a = n.width);
|
|
271
290
|
}
|
|
272
|
-
|
|
273
|
-
let o = (z.value.rotation || 0) * Math.PI / 180, s = r, ee = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, c = z.value.offsetY || 1, l =
|
|
291
|
+
C.value.restore();
|
|
292
|
+
let o = (z.value.rotation || 0) * Math.PI / 180, s = r, ee = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, c = z.value.offsetY || 1, l = w.value / c;
|
|
274
293
|
return Math.max(0, l + ee + 4);
|
|
275
294
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
295
|
+
function Fn() {
|
|
296
|
+
Mn.value = Pn();
|
|
278
297
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
298
|
+
function In() {
|
|
299
|
+
Nn.value && cancelAnimationFrame(Nn.value), Nn.value = requestAnimationFrame(() => {
|
|
281
300
|
requestAnimationFrame(() => {
|
|
282
|
-
|
|
301
|
+
Fn();
|
|
283
302
|
});
|
|
284
303
|
});
|
|
285
304
|
}
|
|
286
|
-
|
|
287
|
-
|
|
305
|
+
tt(() => {
|
|
306
|
+
Nn.value && cancelAnimationFrame(Nn.value);
|
|
288
307
|
});
|
|
289
308
|
let K = d(() => {
|
|
290
|
-
let e =
|
|
309
|
+
let e = w.value - w.value * (H.value.paddingProportions.left + H.value.paddingProportions.right), t = Pt.value * H.value.paddingProportions.top, n = Pt.value * H.value.paddingProportions.bottom, r = Mn.value, i = Pt.value - n - r, a = Pt.value - (t + n) - r;
|
|
291
310
|
return {
|
|
292
|
-
canvasWidth:
|
|
293
|
-
canvasHeight:
|
|
294
|
-
left:
|
|
311
|
+
canvasWidth: w.value,
|
|
312
|
+
canvasHeight: Pt.value,
|
|
313
|
+
left: w.value * H.value.paddingProportions.left,
|
|
295
314
|
top: t,
|
|
296
|
-
right:
|
|
315
|
+
right: w.value - w.value * H.value.paddingProportions.right,
|
|
297
316
|
bottom: i,
|
|
298
317
|
width: e,
|
|
299
318
|
height: a,
|
|
300
319
|
slot: e / (X.value.end - X.value.start)
|
|
301
320
|
};
|
|
302
321
|
});
|
|
303
|
-
function
|
|
322
|
+
function Ln(e, t) {
|
|
304
323
|
return e / t;
|
|
305
324
|
}
|
|
306
|
-
function
|
|
325
|
+
function Rn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
307
326
|
return t.map((t, n) => {
|
|
308
|
-
let r = i.min < 0 ? Math.abs(i.min) : 0, ee =
|
|
309
|
-
e && (c = i.min, l =
|
|
327
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, ee = Ln(t + r, r + i.max), c, l;
|
|
328
|
+
e && (c = i.min, l = Ln(t - c, i.max - c));
|
|
310
329
|
let te = 0;
|
|
311
330
|
return te = s === null ? K.value.bottom - K.value.height * (e ? l : ee) : K.value.bottom - a - o * (e ? l : ee), {
|
|
312
331
|
x: K.value.left + K.value.slot * n + K.value.slot / 2,
|
|
@@ -316,7 +335,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
316
335
|
});
|
|
317
336
|
}
|
|
318
337
|
let q = d(() => {
|
|
319
|
-
let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !
|
|
338
|
+
let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !E.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.min, t = H.value.scale.max === null ? Math.max(...J.value.filter((e, t) => !E.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.max, n = ne(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, H.value.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = K.value.bottom - K.value.height * (r / (n.max + r));
|
|
320
339
|
return {
|
|
321
340
|
absoluteMin: r,
|
|
322
341
|
max: t,
|
|
@@ -329,44 +348,44 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
329
348
|
})),
|
|
330
349
|
zero: i
|
|
331
350
|
};
|
|
332
|
-
}),
|
|
351
|
+
}), zn = d(() => Y.value.map((e) => `
|
|
333
352
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
334
353
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
335
354
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
336
355
|
</svg>
|
|
337
356
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
338
|
-
<span>${se(V.value.formatter, e.series[
|
|
357
|
+
<span>${se(V.value.formatter, e.series[T.value] ?? "-", t({
|
|
339
358
|
p: e.prefix || "",
|
|
340
|
-
v: e.series[
|
|
359
|
+
v: e.series[T.value] ?? "-",
|
|
341
360
|
s: e.suffix || "",
|
|
342
361
|
r: e.rounding || 0
|
|
343
362
|
}), {
|
|
344
363
|
datapoint: e,
|
|
345
|
-
seriesIndex:
|
|
364
|
+
seriesIndex: T.value
|
|
346
365
|
})}</span>
|
|
347
366
|
</div>
|
|
348
|
-
`)),
|
|
367
|
+
`)), Bn = d(() => H.value.line.cutNullValues), J = d(() => mn.value.map((e, t) => ({
|
|
349
368
|
...e,
|
|
350
369
|
series: ce({
|
|
351
|
-
data: o(e.series, [],
|
|
370
|
+
data: o(e.series, [], Bn.value),
|
|
352
371
|
threshold: P.value.downsample.threshold
|
|
353
372
|
}),
|
|
354
373
|
absoluteIndex: t,
|
|
355
|
-
color: c(e.color ||
|
|
356
|
-
}))),
|
|
374
|
+
color: c(e.color || kn.value[t] || l[t] || l[t % l.length])
|
|
375
|
+
}))), Vn = d(() => {
|
|
357
376
|
if (!H.value.zoom.minimap.show) return [];
|
|
358
|
-
let e = J.value.filter((e) => !
|
|
377
|
+
let e = J.value.filter((e) => !E.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
359
378
|
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));
|
|
360
379
|
let r = Math.min(...n);
|
|
361
380
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
362
|
-
}),
|
|
381
|
+
}), Hn = d(() => H.value.zoom.minimap.show ? J.value.map((e) => ({
|
|
363
382
|
...e,
|
|
364
|
-
isVisible: !
|
|
383
|
+
isVisible: !E.value.includes(e.absoluteIndex)
|
|
365
384
|
})) : []);
|
|
366
|
-
|
|
367
|
-
e &&
|
|
385
|
+
b(G, (e) => {
|
|
386
|
+
e && cr();
|
|
368
387
|
});
|
|
369
|
-
let Y = d(() => ue(J.value.filter((e, t) => !
|
|
388
|
+
let Y = d(() => ue(J.value.filter((e, t) => !E.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
370
389
|
...e,
|
|
371
390
|
series: e.series.slice(X.value.start, X.value.end)
|
|
372
391
|
})).map((e, t) => {
|
|
@@ -384,7 +403,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
384
403
|
y: K.value.bottom - s - c * (t / (o.ticks.length - 1)),
|
|
385
404
|
x: K.value.left - 8,
|
|
386
405
|
value: e
|
|
387
|
-
})), ie =
|
|
406
|
+
})), ie = Rn({
|
|
388
407
|
hasAutoScale: W.value.stacked && e.autoScaling,
|
|
389
408
|
series: e.series,
|
|
390
409
|
min: W.value.stacked ? n : q.value.min,
|
|
@@ -406,81 +425,164 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
406
425
|
yOffset: s,
|
|
407
426
|
individualHeight: c
|
|
408
427
|
};
|
|
409
|
-
})), X =
|
|
428
|
+
})), X = _({
|
|
410
429
|
start: 0,
|
|
411
430
|
end: G.value
|
|
412
|
-
}), Z =
|
|
431
|
+
}), Z = _({
|
|
413
432
|
start: 0,
|
|
414
433
|
end: G.value
|
|
415
|
-
}),
|
|
416
|
-
|
|
434
|
+
}), Un = _(!1), Wn = _(!1), Gn = _(null), Kn = _(!1), qn = _(null), Jn = _(null), Yn = _(null), Xn = _({
|
|
435
|
+
time: 0,
|
|
436
|
+
x: 0,
|
|
437
|
+
y: 0,
|
|
438
|
+
pointerType: null
|
|
439
|
+
}), Zn = d(() => H.value.zoom?.dragToZoom), Qn = d(() => Zn.value.show && M.value && $t.value && G.value > 1 && !pn.value), $n = _(null), er = null, tr = {};
|
|
440
|
+
function nr() {
|
|
417
441
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
418
442
|
}
|
|
419
|
-
|
|
420
|
-
|
|
443
|
+
function rr(e, t = X.value) {
|
|
444
|
+
if (!e || typeof e != "object") return null;
|
|
445
|
+
let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
|
|
446
|
+
if (!n && !r) return null;
|
|
447
|
+
let i = Number(n ? e.start : t.start), a = Number(r ? e.end : t.end);
|
|
448
|
+
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
449
|
+
start: i,
|
|
450
|
+
end: a
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function ir(e) {
|
|
454
|
+
let t = rr(e);
|
|
455
|
+
t && N("update:zoomState", t);
|
|
456
|
+
}
|
|
457
|
+
function ar() {
|
|
458
|
+
er &&= (cancelAnimationFrame(er), null), tr = {};
|
|
459
|
+
}
|
|
460
|
+
function or(e) {
|
|
461
|
+
let t = rr(e);
|
|
462
|
+
if (!t) return null;
|
|
463
|
+
let { start: n, end: r } = t;
|
|
464
|
+
return (n !== Number(X.value.start) || r !== Number(X.value.end)) && (ar(), X.value = {
|
|
465
|
+
start: n,
|
|
466
|
+
end: r
|
|
467
|
+
}, Z.value = {
|
|
468
|
+
start: n,
|
|
469
|
+
end: r
|
|
470
|
+
}, gr()), {
|
|
471
|
+
start: Number(X.value.start),
|
|
472
|
+
end: Number(X.value.end)
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function sr(e) {
|
|
476
|
+
let t = or(e);
|
|
477
|
+
return t ? (N("update:zoomState", t), t) : null;
|
|
478
|
+
}
|
|
479
|
+
tt(() => {
|
|
480
|
+
$n.value && cancelAnimationFrame($n.value), ar(), ti();
|
|
421
481
|
});
|
|
422
|
-
async function
|
|
423
|
-
|
|
424
|
-
|
|
482
|
+
async function cr({ force: e = !1, publish: t = !1 } = {}) {
|
|
483
|
+
let n = !e;
|
|
484
|
+
await dr(n), await Qe(), $n.value && cancelAnimationFrame($n.value), $n.value = requestAnimationFrame(async () => {
|
|
485
|
+
await nr(), await dr(n), $n.value = null, t && (ir({
|
|
486
|
+
start: Number(X.value.start),
|
|
487
|
+
end: Number(X.value.end)
|
|
488
|
+
}), N("zoomReset"));
|
|
425
489
|
});
|
|
426
490
|
}
|
|
427
|
-
let
|
|
428
|
-
function
|
|
491
|
+
let lr = d(() => H.value.zoom.preview.enable && (Z.value.start !== X.value.start || Z.value.end !== X.value.end));
|
|
492
|
+
function ur(e, t) {
|
|
429
493
|
Z.value[e] = t;
|
|
430
494
|
}
|
|
431
|
-
async function
|
|
432
|
-
if (!
|
|
433
|
-
|
|
495
|
+
async function dr(e = !0) {
|
|
496
|
+
if (!Qt.value) {
|
|
497
|
+
Qt.value = !0;
|
|
434
498
|
try {
|
|
435
|
-
let { startIndex:
|
|
436
|
-
|
|
499
|
+
let { startIndex: t, endIndex: n } = H.value.zoom, r = Math.max(...J.value.map((e) => e.series.length)), i = t ?? 0, a = n == null ? r : Math.min(hr(n + 1, i), r);
|
|
500
|
+
en.value = !0, X.value = {
|
|
501
|
+
start: i,
|
|
502
|
+
end: a
|
|
503
|
+
}, Z.value = {
|
|
504
|
+
start: i,
|
|
505
|
+
end: a
|
|
506
|
+
}, gr(), $t.value = !0, await Qe(), Wt.value && Wt.value.setRangeValues(X.value.start, X.value.end), e && S.zoomState && or(S.zoomState);
|
|
437
507
|
} finally {
|
|
438
508
|
queueMicrotask(() => {
|
|
439
|
-
|
|
440
|
-
}),
|
|
509
|
+
en.value = !1;
|
|
510
|
+
}), Qt.value = !1;
|
|
441
511
|
}
|
|
442
512
|
}
|
|
443
513
|
}
|
|
444
|
-
function
|
|
445
|
-
|
|
514
|
+
function fr(e) {
|
|
515
|
+
tr = {
|
|
516
|
+
...tr,
|
|
517
|
+
...e
|
|
518
|
+
}, er && cancelAnimationFrame(er), er = requestAnimationFrame(() => {
|
|
519
|
+
let e = {
|
|
520
|
+
...X.value,
|
|
521
|
+
...tr
|
|
522
|
+
};
|
|
523
|
+
tr = {}, er = null, X.value = e, Z.value = { ...e }, gr(), ir({
|
|
524
|
+
start: Number(X.value.start),
|
|
525
|
+
end: Number(X.value.end)
|
|
526
|
+
});
|
|
527
|
+
});
|
|
446
528
|
}
|
|
447
|
-
function
|
|
448
|
-
if (
|
|
449
|
-
let t =
|
|
450
|
-
t
|
|
529
|
+
function pr(e) {
|
|
530
|
+
if (Qt.value || en.value) return;
|
|
531
|
+
let t = Number(e);
|
|
532
|
+
Number.isFinite(t) && (N("zoomStart", {
|
|
533
|
+
index: t,
|
|
534
|
+
isZoom: t !== 0
|
|
535
|
+
}), t !== X.value.start && fr({ start: t }));
|
|
536
|
+
}
|
|
537
|
+
function mr(e) {
|
|
538
|
+
if (Qt.value || en.value) return;
|
|
539
|
+
let t = tr.start === void 0 ? X.value.start : tr.start, n = hr(Number(e), t);
|
|
540
|
+
Number.isFinite(n) && (N("zoomEnd", {
|
|
541
|
+
index: n,
|
|
542
|
+
isZoom: n !== G.value
|
|
543
|
+
}), (n !== X.value.end || tr.start !== void 0) && fr({ end: n }));
|
|
451
544
|
}
|
|
452
|
-
function
|
|
453
|
-
let
|
|
454
|
-
return e >
|
|
545
|
+
function hr(e, t = X.value.start) {
|
|
546
|
+
let n = G.value, r = Number(t);
|
|
547
|
+
return e > n ? n : e < 0 || e <= r ? Math.min(r + 1, n) : e;
|
|
455
548
|
}
|
|
456
|
-
function
|
|
549
|
+
function gr() {
|
|
457
550
|
let e = Math.max(1, Math.max(...J.value.map((e) => e.series.length))), t = Math.max(0, Math.min(X.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(X.value.end ?? e, e));
|
|
458
551
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), X.value = {
|
|
459
552
|
start: t,
|
|
460
553
|
end: n
|
|
461
|
-
}, Z.value
|
|
554
|
+
}, Z.value = {
|
|
555
|
+
start: t,
|
|
556
|
+
end: n
|
|
557
|
+
}, Wt.value && Wt.value.setRangeValues(t, n);
|
|
462
558
|
}
|
|
463
|
-
|
|
559
|
+
b([() => S.zoomState, $t], ([e, t]) => {
|
|
560
|
+
t && e && or(e);
|
|
561
|
+
}, {
|
|
562
|
+
deep: !0,
|
|
563
|
+
immediate: !0
|
|
564
|
+
});
|
|
565
|
+
let _r = d(() => Y.value.filter((e) => [
|
|
464
566
|
"line",
|
|
465
567
|
"plot",
|
|
466
568
|
void 0
|
|
467
569
|
].includes(e.type))), Q = d(() => Y.value.filter((e) => e.type === "bar"));
|
|
468
|
-
function
|
|
469
|
-
if (!U.value || !
|
|
470
|
-
let e =
|
|
471
|
-
U.value.width = e *
|
|
570
|
+
function vr() {
|
|
571
|
+
if (!U.value || !Nt.value) return;
|
|
572
|
+
let e = Nt.value.offsetWidth, t = Nt.value.offsetHeight;
|
|
573
|
+
U.value.width = e * Rt.value * 2, U.value.height = t * Rt.value * 2, w.value = e * Rt.value * 2, Pt.value = t * Rt.value * 2, C.value?.scale(Rt.value, Rt.value), Br();
|
|
472
574
|
}
|
|
473
|
-
|
|
575
|
+
b(M, async (e) => {
|
|
474
576
|
if (!e) {
|
|
475
|
-
|
|
577
|
+
zt.value = null, Ft.value = !1, T.value = null, k.value = null;
|
|
476
578
|
return;
|
|
477
579
|
}
|
|
478
|
-
await
|
|
580
|
+
await Qe(), U.value && !C.value && (C.value = U.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, O.value = !0, await cr(), vr(), Br();
|
|
479
581
|
});
|
|
480
|
-
function
|
|
481
|
-
if (
|
|
582
|
+
function yr() {
|
|
583
|
+
if (C.value && (C.value.clearRect(0, 0, 1e4, 1e4), C.value.fillStyle = H.value.backgroundColor, C.value.fillRect(0, 0, K.value.canvasWidth, K.value.canvasHeight), M.value)) {
|
|
482
584
|
if (W.value.stacked) L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength ? Y.value.forEach((e) => {
|
|
483
|
-
for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) u(
|
|
585
|
+
for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) u(C.value, [{
|
|
484
586
|
x: K.value.left + K.value.slot * t,
|
|
485
587
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
486
588
|
}, {
|
|
@@ -488,16 +590,16 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
488
590
|
y: K.value.bottom - e.yOffset
|
|
489
591
|
}], { color: L.value.color });
|
|
490
592
|
}) : L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength && Y.value.forEach((e) => {
|
|
491
|
-
for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) /
|
|
593
|
+
for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) / sn.value.modulo) === 0 && u(C.value, [{
|
|
492
594
|
x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
|
|
493
595
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
494
596
|
}, {
|
|
495
597
|
x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
|
|
496
598
|
y: K.value.bottom - e.yOffset
|
|
497
599
|
}], { color: L.value.color });
|
|
498
|
-
}),
|
|
600
|
+
}), sn.value.show && (sn.value.alternate ? Y.value.forEach((e) => {
|
|
499
601
|
e.localYLabels.forEach((t, n) => {
|
|
500
|
-
n < e.localYLabels.length - 1 && Pe(
|
|
602
|
+
n < e.localYLabels.length - 1 && Pe(C.value, [
|
|
501
603
|
{
|
|
502
604
|
x: K.value.left,
|
|
503
605
|
y: t.y
|
|
@@ -521,16 +623,16 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
521
623
|
});
|
|
522
624
|
}) : Y.value.forEach((e) => {
|
|
523
625
|
e.localYLabels.slice(X.value.start, X.value.end).forEach((e) => {
|
|
524
|
-
u(
|
|
626
|
+
u(C.value, [{
|
|
525
627
|
x: K.value.left,
|
|
526
628
|
y: e.y
|
|
527
629
|
}, {
|
|
528
630
|
x: K.value.right,
|
|
529
631
|
y: e.y
|
|
530
|
-
}], { color:
|
|
632
|
+
}], { color: sn.value.color });
|
|
531
633
|
});
|
|
532
634
|
})), B.value.zeroLine.show && Y.value.forEach((e) => {
|
|
533
|
-
u(
|
|
635
|
+
u(C.value, [{
|
|
534
636
|
x: K.value.left,
|
|
535
637
|
y: e.localZero
|
|
536
638
|
}, {
|
|
@@ -541,13 +643,13 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
541
643
|
lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
542
644
|
});
|
|
543
645
|
}), R.value.show && Y.value.forEach((e) => {
|
|
544
|
-
u(
|
|
646
|
+
u(C.value, [{
|
|
545
647
|
x: K.value.left,
|
|
546
648
|
y: K.value.bottom - e.yOffset
|
|
547
649
|
}, {
|
|
548
650
|
x: K.value.left,
|
|
549
651
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
550
|
-
}], { color: e.color }), u(
|
|
652
|
+
}], { color: e.color }), u(C.value, [{
|
|
551
653
|
x: K.value.right,
|
|
552
654
|
y: K.value.bottom - e.yOffset
|
|
553
655
|
}, {
|
|
@@ -555,30 +657,30 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
555
657
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
556
658
|
}], { color: e.color });
|
|
557
659
|
}), Y.value.forEach((e) => {
|
|
558
|
-
Oe(
|
|
660
|
+
Oe(C.value, e.name, w.value / 35, K.value.bottom - e.yOffset - e.individualHeight / 2, {
|
|
559
661
|
align: "center",
|
|
560
662
|
rotation: -90,
|
|
561
663
|
color: e.color,
|
|
562
|
-
font: `${Math.round(
|
|
664
|
+
font: `${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`
|
|
563
665
|
});
|
|
564
666
|
});
|
|
565
667
|
else {
|
|
566
|
-
if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) u(
|
|
668
|
+
if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) u(C.value, [{
|
|
567
669
|
x: K.value.left + K.value.slot * e,
|
|
568
670
|
y: K.value.top
|
|
569
671
|
}, {
|
|
570
672
|
x: K.value.left + K.value.slot * e,
|
|
571
673
|
y: K.value.bottom
|
|
572
674
|
}], { color: L.value.color });
|
|
573
|
-
else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && u(
|
|
675
|
+
else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && u(C.value, [{
|
|
574
676
|
x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
|
|
575
677
|
y: K.value.top
|
|
576
678
|
}, {
|
|
577
679
|
x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
|
|
578
680
|
y: K.value.bottom
|
|
579
681
|
}], { color: L.value.color });
|
|
580
|
-
|
|
581
|
-
t < q.value.yLabels.length - 1 && Pe(
|
|
682
|
+
sn.value.show && (sn.value.alternate ? q.value.yLabels.forEach((e, t) => {
|
|
683
|
+
t < q.value.yLabels.length - 1 && Pe(C.value, [
|
|
582
684
|
{
|
|
583
685
|
x: K.value.left,
|
|
584
686
|
y: e.y
|
|
@@ -600,14 +702,14 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
600
702
|
strokeColor: "transparent"
|
|
601
703
|
});
|
|
602
704
|
}) : q.value.yLabels.forEach((e) => {
|
|
603
|
-
u(
|
|
705
|
+
u(C.value, [{
|
|
604
706
|
x: K.value.left,
|
|
605
707
|
y: e.y
|
|
606
708
|
}, {
|
|
607
709
|
x: K.value.right,
|
|
608
710
|
y: e.y
|
|
609
|
-
}], { color:
|
|
610
|
-
})), B.value.y.showAxis && u(
|
|
711
|
+
}], { color: sn.value.color });
|
|
712
|
+
})), B.value.y.showAxis && u(C.value, [{
|
|
611
713
|
x: K.value.left,
|
|
612
714
|
y: K.value.top
|
|
613
715
|
}, {
|
|
@@ -616,7 +718,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
616
718
|
}], {
|
|
617
719
|
color: B.value.y.axisColor,
|
|
618
720
|
lineWidth: B.value.y.axisThickness
|
|
619
|
-
}), B.value.x.showAxis && u(
|
|
721
|
+
}), B.value.x.showAxis && u(C.value, [{
|
|
620
722
|
x: K.value.left,
|
|
621
723
|
y: K.value.bottom
|
|
622
724
|
}, {
|
|
@@ -625,7 +727,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
625
727
|
}], {
|
|
626
728
|
color: B.value.x.axisColor,
|
|
627
729
|
lineWidth: B.value.x.axisThickness
|
|
628
|
-
}), B.value.zeroLine.show && u(
|
|
730
|
+
}), B.value.zeroLine.show && u(C.value, [{
|
|
629
731
|
x: K.value.left,
|
|
630
732
|
y: q.value.zero
|
|
631
733
|
}, {
|
|
@@ -636,22 +738,22 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
636
738
|
lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
637
739
|
});
|
|
638
740
|
}
|
|
639
|
-
B.value.y.axisName && Oe(
|
|
640
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
741
|
+
B.value.y.axisName && Oe(C.value, B.value.y.axisName, w.value - w.value / 40 * R.value.fontSizeRatio * 1.2, K.value.bottom - K.value.height / 2, {
|
|
742
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
641
743
|
color: H.value.color,
|
|
642
744
|
align: "center",
|
|
643
745
|
rotation: 90
|
|
644
|
-
}), B.value.x.axisName && Oe(
|
|
645
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
746
|
+
}), B.value.x.axisName && Oe(C.value, B.value.x.axisName, w.value / 2, Pt.value, {
|
|
747
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
646
748
|
color: H.value.color,
|
|
647
749
|
align: "center"
|
|
648
750
|
});
|
|
649
751
|
}
|
|
650
752
|
}
|
|
651
|
-
function
|
|
753
|
+
function br(e) {
|
|
652
754
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
653
|
-
let n = (
|
|
654
|
-
je(
|
|
755
|
+
let n = (T.value === t || A.value === t ? w.value / 150 : H.value.line.plots.show || e.type === "plot" ? w.value / 200 : 0) * H.value.line.plots.radiusRatio;
|
|
756
|
+
je(C.value, {
|
|
655
757
|
x: e.coordinatesLine[t].x,
|
|
656
758
|
y: e.coordinatesLine[t].y
|
|
657
759
|
}, n, {
|
|
@@ -661,27 +763,27 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
661
763
|
});
|
|
662
764
|
}
|
|
663
765
|
}
|
|
664
|
-
function
|
|
766
|
+
function xr() {
|
|
665
767
|
Y.value.forEach((e) => {
|
|
666
|
-
e.showYMarker &&
|
|
768
|
+
e.showYMarker && Hr(e) && Oe(C.value, se(V.value.formatter, Hr(e).value, t({
|
|
667
769
|
p: e.prefix || R.value.prefix || "",
|
|
668
|
-
v:
|
|
770
|
+
v: Hr(e).value,
|
|
669
771
|
s: e.suffix || R.value.suffix || "",
|
|
670
772
|
r: e.rounding || R.value.rounding || 0
|
|
671
773
|
}), {
|
|
672
|
-
datapoint:
|
|
774
|
+
datapoint: Hr(e),
|
|
673
775
|
seriesIndex: null
|
|
674
|
-
}), K.value.left - 8 + R.value.offsetX,
|
|
776
|
+
}), K.value.left - 8 + R.value.offsetX, Hr(e).y, {
|
|
675
777
|
align: "right",
|
|
676
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
778
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
677
779
|
color: e.color
|
|
678
780
|
});
|
|
679
781
|
});
|
|
680
782
|
}
|
|
681
|
-
function
|
|
783
|
+
function Sr() {
|
|
682
784
|
R.value.show && (W.value.stacked ? Y.value.forEach((e) => {
|
|
683
785
|
e.localYLabels.forEach((n, r) => {
|
|
684
|
-
Oe(
|
|
786
|
+
Oe(C.value, se(V.value.formatter, n.value, t({
|
|
685
787
|
p: e.prefix || B.value.y.axisLabels.prefix || "",
|
|
686
788
|
v: n.value,
|
|
687
789
|
s: e.suffix || B.value.y.axisLabels.suffix || "",
|
|
@@ -691,13 +793,13 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
691
793
|
seriesIndex: r
|
|
692
794
|
}), n.x + R.value.offsetX, n.y, {
|
|
693
795
|
align: "right",
|
|
694
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
796
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
695
797
|
color: e.color,
|
|
696
|
-
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
798
|
+
globalAlpha: e.showYMarker && ![null, void 0].includes(T.value ?? A.value) ? .2 : 1
|
|
697
799
|
});
|
|
698
800
|
});
|
|
699
801
|
}) : q.value.yLabels.forEach((e, n) => {
|
|
700
|
-
Oe(
|
|
802
|
+
Oe(C.value, se(V.value.formatter, e.value, t({
|
|
701
803
|
p: R.value.prefix || "",
|
|
702
804
|
v: e.value,
|
|
703
805
|
s: R.value.suffix || "",
|
|
@@ -707,14 +809,14 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
707
809
|
seriesIndex: n
|
|
708
810
|
}), e.x + R.value.offsetX, e.y, {
|
|
709
811
|
align: "right",
|
|
710
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
812
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(w.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
711
813
|
color: R.value.color,
|
|
712
|
-
globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(
|
|
814
|
+
globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(T.value ?? A.value) ? .2 : 1
|
|
713
815
|
});
|
|
714
816
|
}));
|
|
715
817
|
}
|
|
716
|
-
function
|
|
717
|
-
for (let n = 0; n < e.coordinatesLine.length; n += 1) Oe(
|
|
818
|
+
function Cr(e) {
|
|
819
|
+
for (let n = 0; n < e.coordinatesLine.length; n += 1) Oe(C.value, se(V.value.formatter, e.coordinatesLine[n].value, t({
|
|
718
820
|
p: e.prefix || "",
|
|
719
821
|
v: e.coordinatesLine[n].value,
|
|
720
822
|
s: e.suffix || "",
|
|
@@ -724,15 +826,15 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
724
826
|
seriesIndex: n
|
|
725
827
|
}), e.coordinatesLine[n].x, e.coordinatesLine[n].y + V.value.offsetY, {
|
|
726
828
|
align: "center",
|
|
727
|
-
font: `${V.value.bold ? "bold " : ""}${Math.round(
|
|
829
|
+
font: `${V.value.bold ? "bold " : ""}${Math.round(w.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
728
830
|
color: V.value.useSerieColor ? e.color : V.value.color,
|
|
729
831
|
strokeColor: H.value.backgroundColor,
|
|
730
832
|
lineWidth: .5
|
|
731
833
|
});
|
|
732
834
|
}
|
|
733
|
-
let $ =
|
|
734
|
-
|
|
735
|
-
let e = ++
|
|
835
|
+
let $ = _([]), wr = 0;
|
|
836
|
+
ct(() => {
|
|
837
|
+
let e = ++wr;
|
|
736
838
|
(async () => {
|
|
737
839
|
let t = await ve({
|
|
738
840
|
values: z.value.values,
|
|
@@ -741,55 +843,55 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
741
843
|
start: 0,
|
|
742
844
|
end: G.value
|
|
743
845
|
});
|
|
744
|
-
e ===
|
|
846
|
+
e === wr && ($.value = t);
|
|
745
847
|
})();
|
|
746
|
-
}),
|
|
747
|
-
z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end,
|
|
848
|
+
}), ct(() => {
|
|
849
|
+
z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end, w.value, Pt.value, ($.value || []).map((e) => e?.text ?? "").join("|"), In();
|
|
748
850
|
}, { flush: "post" });
|
|
749
|
-
let
|
|
851
|
+
let Tr = _({
|
|
750
852
|
months: [],
|
|
751
853
|
shortMonths: [],
|
|
752
854
|
days: [],
|
|
753
855
|
shortDays: []
|
|
754
|
-
}),
|
|
755
|
-
|
|
756
|
-
let e = ++
|
|
856
|
+
}), Er = 0;
|
|
857
|
+
ct(() => {
|
|
858
|
+
let e = ++Er, t = z.value.datetimeFormatter;
|
|
757
859
|
(async () => {
|
|
758
860
|
let n = await _e(t.locale).catch(() => _e("en"));
|
|
759
|
-
e ===
|
|
861
|
+
e === Er && (Tr.value = n.data);
|
|
760
862
|
})();
|
|
761
863
|
});
|
|
762
|
-
let
|
|
864
|
+
let Dr = d(() => {
|
|
763
865
|
let e = z.value.datetimeFormatter, t = ge({
|
|
764
866
|
useUTC: e.useUTC,
|
|
765
|
-
locale:
|
|
867
|
+
locale: Tr.value,
|
|
766
868
|
januaryAsYear: e.januaryAsYear
|
|
767
869
|
});
|
|
768
870
|
return (e, n) => {
|
|
769
871
|
let r = z.value.values?.[e];
|
|
770
872
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
771
873
|
};
|
|
772
|
-
}),
|
|
773
|
-
text:
|
|
874
|
+
}), Or = d(() => (z.value.values || []).map((e, t) => ({
|
|
875
|
+
text: Dr.value(t, H.value.zoom.timeFormat),
|
|
774
876
|
absoluteIndex: t
|
|
775
|
-
}))),
|
|
776
|
-
text:
|
|
877
|
+
}))), kr = d(() => (z.value.values || []).map((e, t) => ({
|
|
878
|
+
text: Dr.value(t, I.value.timeFormat),
|
|
777
879
|
absoluteIndex: t
|
|
778
880
|
})));
|
|
779
|
-
function
|
|
780
|
-
for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e ===
|
|
881
|
+
function Ar() {
|
|
882
|
+
for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e === T.value + X.value.start || e === A.value) && z.value.showMarker)) && Oe(C.value, $.value[e] ? $.value[e].text : e + 1, K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2, K.value.bottom + w.value / z.value.offsetY, {
|
|
781
883
|
align: z.value.rotation === 0 ? "center" : z.value.rotation > 0 ? "left" : "right",
|
|
782
|
-
font: `${z.value.bold ? "bold " : ""}${Math.round(
|
|
783
|
-
color: z.value.showMarker ? de(z.value.color,
|
|
884
|
+
font: `${z.value.bold ? "bold " : ""}${Math.round(w.value / 40 * z.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
885
|
+
color: z.value.showMarker ? de(z.value.color, T.value !== null || A.value !== null ? T.value + X.value.start === e || A.value === e ? 100 : 20 : 100) : z.value.color,
|
|
784
886
|
rotation: z.value.rotation
|
|
785
887
|
});
|
|
786
888
|
}
|
|
787
|
-
function
|
|
788
|
-
u(
|
|
789
|
-
x: K.value.left + K.value.slot * (
|
|
889
|
+
function jr() {
|
|
890
|
+
u(C.value, [{
|
|
891
|
+
x: K.value.left + K.value.slot * (T.value ?? A.value) + K.value.slot / 2,
|
|
790
892
|
y: K.value.top
|
|
791
893
|
}, {
|
|
792
|
-
x: K.value.left + K.value.slot * (
|
|
894
|
+
x: K.value.left + K.value.slot * (T.value ?? A.value) + K.value.slot / 2,
|
|
793
895
|
y: K.value.bottom
|
|
794
896
|
}], {
|
|
795
897
|
color: H.value.selector.color,
|
|
@@ -798,13 +900,13 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
798
900
|
linceCap: "round"
|
|
799
901
|
});
|
|
800
902
|
}
|
|
801
|
-
function
|
|
802
|
-
|
|
903
|
+
function Mr() {
|
|
904
|
+
k.value && u(C.value, [{
|
|
803
905
|
x: K.value.left,
|
|
804
|
-
y:
|
|
906
|
+
y: k.value
|
|
805
907
|
}, {
|
|
806
908
|
x: K.value.right,
|
|
807
|
-
y:
|
|
909
|
+
y: k.value
|
|
808
910
|
}], {
|
|
809
911
|
color: H.value.selector.color,
|
|
810
912
|
lineDash: H.value.selector.dashed ? [8, 8] : [0, 0],
|
|
@@ -812,9 +914,9 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
812
914
|
linceCap: "round"
|
|
813
915
|
});
|
|
814
916
|
}
|
|
815
|
-
function
|
|
917
|
+
function Nr() {
|
|
816
918
|
Q.value.forEach((e, n) => {
|
|
817
|
-
for (let r = 0; r < e.coordinatesLine.length; r += 1) Pe(
|
|
919
|
+
for (let r = 0; r < e.coordinatesLine.length; r += 1) Pe(C.value, [
|
|
818
920
|
{
|
|
819
921
|
x: K.value.left + K.value.slot * r + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * n - (n === 0 ? 0 : K.value.slot / (5 * Q.value.length) * n)),
|
|
820
922
|
y: W.value.stacked ? e.localZero : q.value.zero
|
|
@@ -851,7 +953,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
851
953
|
color: H.value.bar.gradient.show ? s(e.color, .5) : e.color
|
|
852
954
|
}]
|
|
853
955
|
}
|
|
854
|
-
}), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Oe(
|
|
956
|
+
}), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Oe(C.value, se(V.value.formatter, e.coordinatesLine[r].value, t({
|
|
855
957
|
p: e.prefix || "",
|
|
856
958
|
v: e.coordinatesLine[r].value,
|
|
857
959
|
s: e.suffix || "",
|
|
@@ -861,14 +963,14 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
861
963
|
seriesIndex: r
|
|
862
964
|
}), K.value.left + K.value.slot * r + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * n - (n === 0 ? 0 : K.value.slot / (5 * Q.value.length) * n)) + K.value.slot * .4 / (W.value.stacked ? 1 : Q.value.length), (e.coordinatesLine[r].value < 0 ? W.value.stacked ? e.localZero : q.value.zero : e.coordinatesLine[r].y) + V.value.offsetY, {
|
|
863
965
|
align: "center",
|
|
864
|
-
font: `${Math.round(
|
|
966
|
+
font: `${Math.round(w.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
865
967
|
color: V.value.useSerieColor ? e.color : V.value.color,
|
|
866
968
|
strokeColor: H.value.backgroundColor,
|
|
867
969
|
lineWidth: .8
|
|
868
970
|
});
|
|
869
971
|
});
|
|
870
972
|
}
|
|
871
|
-
function
|
|
973
|
+
function Pr(e, t) {
|
|
872
974
|
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
873
975
|
for (let e = 0; e < n.length; e += 1) {
|
|
874
976
|
let o = n[e];
|
|
@@ -910,7 +1012,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
910
1012
|
singles: i
|
|
911
1013
|
};
|
|
912
1014
|
}
|
|
913
|
-
function
|
|
1015
|
+
function Fr(e) {
|
|
914
1016
|
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
915
1017
|
for (let e = 0; e < t.length; e += 1) {
|
|
916
1018
|
let i = t[e];
|
|
@@ -918,30 +1020,30 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
918
1020
|
}
|
|
919
1021
|
return r.length >= 2 && n.push(r), n;
|
|
920
1022
|
}
|
|
921
|
-
function
|
|
922
|
-
if (
|
|
923
|
-
let t =
|
|
924
|
-
for (let n of t) u(
|
|
1023
|
+
function Ir(e) {
|
|
1024
|
+
if (Bn.value) {
|
|
1025
|
+
let t = Fr(e);
|
|
1026
|
+
for (let n of t) u(C.value, n, {
|
|
925
1027
|
color: e.color,
|
|
926
1028
|
lineWidth: 3
|
|
927
1029
|
});
|
|
928
|
-
} else u(
|
|
1030
|
+
} else u(C.value, e.coordinatesLine, {
|
|
929
1031
|
color: e.color,
|
|
930
1032
|
lineWidth: 3
|
|
931
1033
|
});
|
|
932
1034
|
}
|
|
933
|
-
function
|
|
934
|
-
let t = !!
|
|
1035
|
+
function Lr(e) {
|
|
1036
|
+
let t = !!Bn.value;
|
|
935
1037
|
if (e.useArea) {
|
|
936
1038
|
let n = W.value.stacked ? e.localZero : q.value.zero;
|
|
937
1039
|
if (t) {
|
|
938
|
-
let { polygons: t, singles: r } =
|
|
939
|
-
for (let n of t) Me(
|
|
1040
|
+
let { polygons: t, singles: r } = Pr(e, n);
|
|
1041
|
+
for (let n of t) Me(C.value, n, {
|
|
940
1042
|
fillColor: de(e.color, H.value.area.opacity),
|
|
941
1043
|
strokeColor: "transparent"
|
|
942
1044
|
});
|
|
943
|
-
let i =
|
|
944
|
-
for (let t of r) je(
|
|
1045
|
+
let i = w.value / 200 * H.value.line.plots.radiusRatio;
|
|
1046
|
+
for (let t of r) je(C.value, {
|
|
945
1047
|
x: t.x,
|
|
946
1048
|
y: t.y
|
|
947
1049
|
}, i, {
|
|
@@ -957,7 +1059,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
957
1059
|
x: e.coordinatesLine.at(-1).x,
|
|
958
1060
|
y: n
|
|
959
1061
|
};
|
|
960
|
-
Me(
|
|
1062
|
+
Me(C.value, [
|
|
961
1063
|
t,
|
|
962
1064
|
...e.coordinatesLine,
|
|
963
1065
|
r
|
|
@@ -966,28 +1068,28 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
966
1068
|
strokeColor: "transparent"
|
|
967
1069
|
});
|
|
968
1070
|
}
|
|
969
|
-
|
|
1071
|
+
Ir(e);
|
|
970
1072
|
return;
|
|
971
1073
|
}
|
|
972
|
-
|
|
1074
|
+
Ir(e);
|
|
973
1075
|
}
|
|
974
|
-
function
|
|
1076
|
+
function Rr() {
|
|
975
1077
|
Y.value.forEach((e, t) => {
|
|
976
|
-
u(
|
|
1078
|
+
u(C.value, [{
|
|
977
1079
|
x: K.value.left,
|
|
978
1080
|
y: K.value.bottom - e.yOffset
|
|
979
1081
|
}, {
|
|
980
1082
|
x: K.value.right,
|
|
981
1083
|
y: K.value.bottom - e.yOffset
|
|
982
1084
|
}], {
|
|
983
|
-
color:
|
|
1085
|
+
color: sn.value.color,
|
|
984
1086
|
lineWidth: 1
|
|
985
1087
|
});
|
|
986
1088
|
});
|
|
987
1089
|
}
|
|
988
|
-
function
|
|
1090
|
+
function zr() {
|
|
989
1091
|
let { left: e, top: t, width: n, height: r } = K.value, i = X.value.start, a = X.value.end - i, o = n / a, s = Z.value.start - i, ee = Z.value.end - i, c = Math.max(0, Math.min(a, s)), l = Math.max(0, Math.min(a, ee));
|
|
990
|
-
Pe(
|
|
1092
|
+
Pe(C.value, [
|
|
991
1093
|
{
|
|
992
1094
|
x: e + c * o,
|
|
993
1095
|
y: t
|
|
@@ -1016,70 +1118,225 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1016
1118
|
lineWidth: H.value.zoom.preview.strokeWidth
|
|
1017
1119
|
});
|
|
1018
1120
|
}
|
|
1019
|
-
function
|
|
1020
|
-
|
|
1021
|
-
(e.type === "line" || !e.type) &&
|
|
1022
|
-
}), U.value && (
|
|
1023
|
-
let t =
|
|
1024
|
-
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && je(
|
|
1121
|
+
function Br() {
|
|
1122
|
+
M.value && U.value && C.value && (yr(), D.value ? ((T.value !== null || A.value !== null) && H.value.selector.show && jr(), Nr(), W.value.stacked && B.value.x.showAxis && Rr(), _r.value.forEach((e) => {
|
|
1123
|
+
(e.type === "line" || !e.type) && Lr(e), O.value && (br(e), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Cr(e));
|
|
1124
|
+
}), U.value && (zt.value = Ne(U.value))) : (zt.value && (C.value.clearRect(0, 0, 1e4, 1e4), C.value.drawImage(zt.value, 0, 0)), (T.value !== null || A.value !== null) && H.value.selector.show && jr(), (T.value !== null || A.value !== null) && Y.value.forEach((e) => {
|
|
1125
|
+
let t = T.value ?? A.value, n = e.coordinatesLine[t];
|
|
1126
|
+
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && je(C.value, {
|
|
1025
1127
|
x: n.x,
|
|
1026
1128
|
y: n.y
|
|
1027
|
-
},
|
|
1129
|
+
}, w.value / 150 * H.value.line.plots.radiusRatio, {
|
|
1028
1130
|
color: H.value.backgroundColor,
|
|
1029
1131
|
fillStyle: e.color,
|
|
1030
1132
|
strokeColor: "transparent"
|
|
1031
1133
|
});
|
|
1032
|
-
})), z.value.show &&
|
|
1033
|
-
}
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1036
|
-
}, G.value > 200 ? 10 : 1, !
|
|
1037
|
-
function
|
|
1038
|
-
if ([null, void 0].includes(
|
|
1039
|
-
let { y: t, value: n } = e.coordinatesLine[
|
|
1134
|
+
})), z.value.show && Ar(), H.value.selector.show && H.value.selector.showHorizontalSelector && Mr(), Sr(), xr(), H.value.zoom.preview.enable && (X.value.start !== Z.value.start || X.value.end !== Z.value.end) && zr(), D.value = !1);
|
|
1135
|
+
}
|
|
1136
|
+
let Vr = ke(() => {
|
|
1137
|
+
O.value = !0, vr();
|
|
1138
|
+
}, G.value > 200 ? 10 : 1, !O.value);
|
|
1139
|
+
function Hr(e) {
|
|
1140
|
+
if ([null, void 0].includes(T.value ?? A.value) || !e.coordinatesLine[T.value ?? A.value]) return !1;
|
|
1141
|
+
let { y: t, value: n } = e.coordinatesLine[T.value ?? A.value];
|
|
1040
1142
|
return {
|
|
1041
1143
|
y: t,
|
|
1042
1144
|
value: n
|
|
1043
1145
|
};
|
|
1044
1146
|
}
|
|
1045
|
-
|
|
1046
|
-
|
|
1147
|
+
let Ur = d(() => !Un.value || qn.value == null || Jn.value == null ? null : {
|
|
1148
|
+
x: Math.min(qn.value, Jn.value),
|
|
1149
|
+
y: K.value.top,
|
|
1150
|
+
width: Math.abs(Jn.value - qn.value),
|
|
1151
|
+
height: K.value.height
|
|
1152
|
+
}), Wr = d(() => $t.value ? Number(X.value.start) !== 0 || Number(X.value.end) !== Number(G.value) : !1);
|
|
1153
|
+
function Gr(e) {
|
|
1154
|
+
if (!U.value) return null;
|
|
1155
|
+
let t = U.value.getBoundingClientRect();
|
|
1156
|
+
return !t.width || !t.height ? null : {
|
|
1157
|
+
x: (e.clientX - t.left) * (K.value.canvasWidth / t.width),
|
|
1158
|
+
y: (e.clientY - t.top) * (K.value.canvasHeight / t.height)
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
function Kr(e) {
|
|
1162
|
+
return Math.min(Math.max(e, K.value.left), K.value.right);
|
|
1163
|
+
}
|
|
1164
|
+
function qr(e) {
|
|
1165
|
+
return Y.value.map((t) => {
|
|
1166
|
+
let n = t.series[e];
|
|
1167
|
+
return {
|
|
1168
|
+
...t,
|
|
1169
|
+
name: t.name,
|
|
1170
|
+
value: [
|
|
1171
|
+
null,
|
|
1172
|
+
void 0,
|
|
1173
|
+
NaN
|
|
1174
|
+
].includes(n) ? null : n,
|
|
1175
|
+
color: t.color,
|
|
1176
|
+
type: t.type
|
|
1177
|
+
};
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
function Jr(e, t) {
|
|
1181
|
+
if (t == null || t < 0 || t >= X.value.end - X.value.start) return;
|
|
1182
|
+
let n = P.value.events?.[e];
|
|
1183
|
+
a(n) && n({
|
|
1184
|
+
datapoint: qr(t),
|
|
1185
|
+
seriesIndex: t + X.value.start
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
function Yr(e) {
|
|
1189
|
+
Gn.value !== e && (Gn.value = e, Jr("datapointEnter", e));
|
|
1190
|
+
}
|
|
1191
|
+
function Xr() {
|
|
1192
|
+
let e = Gn.value;
|
|
1193
|
+
e != null && Jr("datapointLeave", e), Gn.value = null;
|
|
1194
|
+
}
|
|
1195
|
+
function Zr() {
|
|
1196
|
+
Kn.value = !0, setTimeout(() => {
|
|
1197
|
+
Kn.value = !1;
|
|
1198
|
+
}, 0);
|
|
1199
|
+
}
|
|
1200
|
+
function Qr(e) {
|
|
1201
|
+
if (!e || !K.value?.slot) return null;
|
|
1202
|
+
let { left: t, right: n, top: r, bottom: i, slot: a } = K.value;
|
|
1203
|
+
if (e.x < t || e.x > n || e.y < r || e.y > i) return null;
|
|
1204
|
+
let o = Math.floor((e.x - t) / a), s = X.value.end - X.value.start;
|
|
1205
|
+
return o < 0 || o >= s ? null : o;
|
|
1206
|
+
}
|
|
1207
|
+
function $r(e) {
|
|
1208
|
+
if (Kn.value) {
|
|
1209
|
+
Kn.value = !1;
|
|
1210
|
+
return;
|
|
1211
|
+
}
|
|
1212
|
+
let t = Qr(Gr(e));
|
|
1213
|
+
t !== null && Jr("datapointClick", t);
|
|
1214
|
+
}
|
|
1215
|
+
function ei() {
|
|
1216
|
+
Xr(), mi(), A.value = null;
|
|
1217
|
+
}
|
|
1218
|
+
function ti(e) {
|
|
1219
|
+
let t = e?.pointerId == null ? Yn.value : e.pointerId;
|
|
1220
|
+
t != null && U.value?.hasPointerCapture?.(t) && U.value.releasePointerCapture(t), Un.value = !1, qn.value = null, Jn.value = null, Yn.value = null;
|
|
1221
|
+
}
|
|
1222
|
+
function ni(e) {
|
|
1223
|
+
if (!Qn.value || !Wr.value || !e) return !1;
|
|
1224
|
+
let t = Date.now(), n = e.pointerType || "mouse", r = Xn.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
|
|
1225
|
+
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (Xn.value = {
|
|
1226
|
+
time: 0,
|
|
1227
|
+
x: 0,
|
|
1228
|
+
y: 0,
|
|
1229
|
+
pointerType: null
|
|
1230
|
+
}, Zr(), ti(e), cr({
|
|
1231
|
+
force: !0,
|
|
1232
|
+
publish: !0
|
|
1233
|
+
}), !0) : (Xn.value = {
|
|
1234
|
+
time: t,
|
|
1235
|
+
x: e.clientX,
|
|
1236
|
+
y: e.clientY,
|
|
1237
|
+
pointerType: n
|
|
1238
|
+
}, !1);
|
|
1239
|
+
}
|
|
1240
|
+
function ri(e) {
|
|
1241
|
+
let t = Number(X.value.end) - Number(X.value.start);
|
|
1242
|
+
if (t <= 0 || !Number.isFinite(K.value.slot) || K.value.slot <= 0) return null;
|
|
1243
|
+
let n = Math.floor((Kr(e) - K.value.left) / K.value.slot);
|
|
1244
|
+
return Math.max(0, Math.min(t - 1, n));
|
|
1245
|
+
}
|
|
1246
|
+
function ii(e, t) {
|
|
1247
|
+
let n = ri(e), r = ri(t);
|
|
1248
|
+
if (n == null || r == null) return null;
|
|
1249
|
+
let i = Math.min(n, r), a = Math.max(n, r);
|
|
1250
|
+
return a <= i ? null : {
|
|
1251
|
+
start: Number(X.value.start) + i,
|
|
1252
|
+
end: Number(X.value.start) + a + 1
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
function ai(e) {
|
|
1256
|
+
let t = sr(e);
|
|
1257
|
+
return t ? (N("zoomStart", {
|
|
1258
|
+
index: t.start,
|
|
1259
|
+
isZoom: t.start !== 0
|
|
1260
|
+
}), N("zoomEnd", {
|
|
1261
|
+
index: t.end,
|
|
1262
|
+
isZoom: t.end !== G.value
|
|
1263
|
+
}), t) : null;
|
|
1264
|
+
}
|
|
1265
|
+
function oi(e) {
|
|
1266
|
+
if (!Qn.value || zi.value || e.button !== void 0 && e.button !== 0 || Yn.value != null && e.pointerId !== Yn.value) return;
|
|
1267
|
+
let t = Gr(e);
|
|
1268
|
+
if (!t) return;
|
|
1269
|
+
let { left: n, right: r, top: i, bottom: a } = K.value;
|
|
1270
|
+
if (t.x < n || t.x > r || t.y < i || t.y > a || Number(X.value.end) - Number(X.value.start) <= 1) return;
|
|
1271
|
+
Wn.value = !0, U.value?.focus?.({ preventScroll: !0 }), ei();
|
|
1272
|
+
let o = Kr(t.x);
|
|
1273
|
+
Yn.value = e.pointerId, Un.value = !0, qn.value = o, Jn.value = o;
|
|
1274
|
+
}
|
|
1275
|
+
function si(e) {
|
|
1276
|
+
if (!Qn.value || !Un.value || Yn.value != null && e.pointerId !== Yn.value) return;
|
|
1277
|
+
let t = Gr(e);
|
|
1278
|
+
t && (Jn.value = Kr(t.x), qn.value != null && Math.abs(Jn.value - qn.value) >= 2 && !U.value?.hasPointerCapture?.(e.pointerId) && U.value?.setPointerCapture?.(e.pointerId));
|
|
1279
|
+
}
|
|
1280
|
+
function ci(e) {
|
|
1281
|
+
if (!Qn.value || !Un.value || Yn.value != null && e.pointerId !== Yn.value) return;
|
|
1282
|
+
let t = Gr(e);
|
|
1283
|
+
t && (Jn.value = Kr(t.x));
|
|
1284
|
+
let n = qn.value, r = Jn.value;
|
|
1285
|
+
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, K.value.width * .01)) {
|
|
1286
|
+
if (ni(e)) return;
|
|
1287
|
+
ti(e);
|
|
1288
|
+
return;
|
|
1289
|
+
}
|
|
1290
|
+
let i = ii(Math.min(n, r), Math.max(n, r));
|
|
1291
|
+
if (!i) {
|
|
1292
|
+
ti(e);
|
|
1293
|
+
return;
|
|
1294
|
+
}
|
|
1295
|
+
ti(e), ai(i) && (Xn.value = {
|
|
1296
|
+
time: 0,
|
|
1297
|
+
x: 0,
|
|
1298
|
+
y: 0,
|
|
1299
|
+
pointerType: null
|
|
1300
|
+
}, ei(), Zr());
|
|
1301
|
+
}
|
|
1302
|
+
function li(e) {
|
|
1303
|
+
if (!M.value || !U.value || An.value || Un.value) return;
|
|
1047
1304
|
let { left: t, top: n } = U.value.getBoundingClientRect(), r = e.clientX - t;
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1305
|
+
if (k.value = (e.clientY - n) * 2, (k.value < K.value.top || k.value > K.value.bottom) && (k.value = null), r * 2 < K.value.left || r * 2 > K.value.right) {
|
|
1306
|
+
Xr(), mi();
|
|
1050
1307
|
return;
|
|
1051
1308
|
}
|
|
1052
1309
|
let i = r * 2 - K.value.left, o = Math.floor(i / K.value.slot);
|
|
1053
|
-
if (
|
|
1310
|
+
if (Yr(o), T.value = o, j.value = o, Ft.value = !0, nn.value = !1, !O.value) return;
|
|
1054
1311
|
let s = "", ee = I.value.customFormat, c = Y.value.map((e) => ({
|
|
1055
1312
|
shape: e.shape || null,
|
|
1056
1313
|
name: e.name,
|
|
1057
1314
|
color: e.color,
|
|
1058
1315
|
type: e.type || "line",
|
|
1059
|
-
value: e.series.find((e, t) => t ===
|
|
1316
|
+
value: e.series.find((e, t) => t === T.value)
|
|
1060
1317
|
}));
|
|
1061
|
-
|
|
1062
|
-
timeLabel: z.value.values.slice(X.value.start, X.value.end)[
|
|
1318
|
+
Lt.value = {
|
|
1319
|
+
timeLabel: z.value.values.slice(X.value.start, X.value.end)[T.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[T.value]?.text : kr.value[T.value]?.text : "",
|
|
1063
1320
|
datapoint: c,
|
|
1064
|
-
seriesIndex:
|
|
1321
|
+
seriesIndex: T.value,
|
|
1065
1322
|
series: Y.value,
|
|
1066
1323
|
config: P.value
|
|
1067
|
-
},
|
|
1068
|
-
seriesIndex:
|
|
1324
|
+
}, vi({
|
|
1325
|
+
seriesIndex: T.value,
|
|
1069
1326
|
datapoint: c
|
|
1070
1327
|
}), a(ee) && ae(() => ee({
|
|
1071
|
-
seriesIndex:
|
|
1328
|
+
seriesIndex: T.value,
|
|
1072
1329
|
datapoint: c,
|
|
1073
1330
|
series: Y.value,
|
|
1074
1331
|
config: P.value
|
|
1075
|
-
})) ?
|
|
1076
|
-
seriesIndex:
|
|
1332
|
+
})) ? It.value = ee({
|
|
1333
|
+
seriesIndex: T.value,
|
|
1077
1334
|
datapoint: c,
|
|
1078
1335
|
series: Y.value,
|
|
1079
1336
|
config: P.value
|
|
1080
|
-
}) : (z.value.values.slice(X.value.start, X.value.end)[
|
|
1337
|
+
}) : (z.value.values.slice(X.value.start, X.value.end)[T.value] ? s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[T.value]?.text : kr.value[T.value]?.text}</div>` : s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[T.value + X.value.start]?.text ?? ""}</div>`, s += zn.value.join(""), It.value = s), O.value = !1;
|
|
1081
1338
|
}
|
|
1082
|
-
function
|
|
1339
|
+
function ui(e) {
|
|
1083
1340
|
return Y.value.map((t) => ({
|
|
1084
1341
|
shape: t.shape || null,
|
|
1085
1342
|
name: t.name,
|
|
@@ -1088,9 +1345,9 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1088
1345
|
value: t.series.find((t, n) => n === e)
|
|
1089
1346
|
}));
|
|
1090
1347
|
}
|
|
1091
|
-
function
|
|
1092
|
-
let t = "", n = I.value.customFormat, r =
|
|
1093
|
-
return
|
|
1348
|
+
function di(e) {
|
|
1349
|
+
let t = "", n = I.value.customFormat, r = ui(e);
|
|
1350
|
+
return vi({
|
|
1094
1351
|
seriesIndex: e,
|
|
1095
1352
|
datapoint: r
|
|
1096
1353
|
}), a(n) && ae(() => n({
|
|
@@ -1103,142 +1360,156 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1103
1360
|
datapoint: r,
|
|
1104
1361
|
series: Y.value,
|
|
1105
1362
|
config: P.value
|
|
1106
|
-
}) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text :
|
|
1363
|
+
}) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text : kr.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[e + X.value.start]?.text ?? ""}</div>`, t += zn.value.join(""), t);
|
|
1107
1364
|
}
|
|
1108
|
-
function
|
|
1365
|
+
function fi(e) {
|
|
1109
1366
|
if (!U.value || !K.value?.slot) return;
|
|
1110
1367
|
let t = U.value.getBoundingClientRect(), n = t.width / K.value.canvasWidth, r = t.height / K.value.canvasHeight, i = K.value.left + K.value.slot * e + K.value.slot / 2, a = K.value.top + K.value.height / 2;
|
|
1111
|
-
|
|
1368
|
+
an.value = {
|
|
1112
1369
|
x: t.left + i * n,
|
|
1113
1370
|
y: t.top + a * r
|
|
1114
1371
|
};
|
|
1115
1372
|
}
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1373
|
+
function pi(e, { fromKeyboard: t = !1, triggerEvent: n = !0 } = {}) {
|
|
1374
|
+
M.value && !An.value && e != null && (e < 0 || e >= X.value.end - X.value.start || (n && Yr(e), T.value = e, j.value = e, Ft.value = !0, nn.value = t, It.value = di(e), t && fi(e), O.value = !1, Br()));
|
|
1118
1375
|
}
|
|
1119
|
-
function
|
|
1120
|
-
|
|
1376
|
+
function mi() {
|
|
1377
|
+
Ft.value = !1, T.value = null, j.value = null, It.value = "", k.value = null, nn.value = !1, Br();
|
|
1121
1378
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1379
|
+
function hi() {
|
|
1380
|
+
rn.value = !0;
|
|
1124
1381
|
}
|
|
1125
|
-
function
|
|
1126
|
-
|
|
1382
|
+
function gi() {
|
|
1383
|
+
Wn.value = !1, rn.value = !1, mi();
|
|
1127
1384
|
}
|
|
1128
|
-
function
|
|
1129
|
-
if (!U.value ||
|
|
1385
|
+
function _i(e) {
|
|
1386
|
+
if (!U.value || zi.value || document.activeElement !== U.value) return;
|
|
1387
|
+
if (Wn.value = !1, e.key === "Escape") {
|
|
1388
|
+
if (Qn.value && (Wr.value || Un.value)) {
|
|
1389
|
+
e.preventDefault(), e.stopPropagation(), ti(), cr({
|
|
1390
|
+
force: !0,
|
|
1391
|
+
publish: !0
|
|
1392
|
+
});
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
mi();
|
|
1396
|
+
return;
|
|
1397
|
+
}
|
|
1130
1398
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1131
1399
|
if (!t && !n) return;
|
|
1132
1400
|
let r = X.value.end - X.value.start;
|
|
1133
1401
|
if (r <= 0) return;
|
|
1134
1402
|
e.preventDefault(), e.stopPropagation();
|
|
1135
|
-
let i =
|
|
1136
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
1403
|
+
let i = j.value;
|
|
1404
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, pi(i, { fromKeyboard: !0 });
|
|
1137
1405
|
}
|
|
1138
|
-
function
|
|
1406
|
+
function vi({ seriesIndex: e, datapoint: t }) {
|
|
1139
1407
|
let n = X.value.start + e;
|
|
1140
|
-
|
|
1408
|
+
N("selectX", {
|
|
1141
1409
|
dataset: t,
|
|
1142
1410
|
index: n,
|
|
1143
1411
|
indexLabel: ""
|
|
1144
1412
|
});
|
|
1145
1413
|
}
|
|
1146
|
-
|
|
1147
|
-
if ([null, void 0].includes(
|
|
1148
|
-
|
|
1414
|
+
b(() => S.selectedXIndex, (e) => {
|
|
1415
|
+
if ([null, void 0].includes(S.selectedXIndex)) {
|
|
1416
|
+
mi();
|
|
1149
1417
|
return;
|
|
1150
1418
|
}
|
|
1151
1419
|
let t = e - X.value.start;
|
|
1152
|
-
t < 0 || e >= X.value.end ?
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1420
|
+
t < 0 || e >= X.value.end ? mi() : pi(t, {
|
|
1421
|
+
fromKeyboard: !1,
|
|
1422
|
+
triggerEvent: !1
|
|
1423
|
+
});
|
|
1424
|
+
}, { immediate: !0 }), b(() => T.value, (e) => {
|
|
1425
|
+
Vr();
|
|
1426
|
+
}), b(() => X.value, (e) => {
|
|
1427
|
+
D.value = !0, Br();
|
|
1428
|
+
}, { deep: !0 }), b(() => Z.value, (e) => {
|
|
1429
|
+
Br();
|
|
1430
|
+
}, { deep: !0 }), b(() => W.value.showDataLabels, (e) => {
|
|
1431
|
+
D.value = !0, Br();
|
|
1432
|
+
}), b(() => k.value, (e) => {
|
|
1433
|
+
e && Br();
|
|
1434
|
+
}), b(() => W.value.stacked, (e) => {
|
|
1435
|
+
D.value = !0, O.value = !0, Vr();
|
|
1165
1436
|
});
|
|
1166
|
-
function
|
|
1167
|
-
|
|
1437
|
+
function yi() {
|
|
1438
|
+
Xr(), mi();
|
|
1168
1439
|
}
|
|
1169
|
-
let
|
|
1170
|
-
|
|
1171
|
-
|
|
1440
|
+
let bi = it(null), xi = it(null), Si = it(null);
|
|
1441
|
+
nt(() => {
|
|
1442
|
+
Yt.value = !0, Ci();
|
|
1172
1443
|
});
|
|
1173
|
-
function
|
|
1174
|
-
if (ee(
|
|
1444
|
+
function Ci() {
|
|
1445
|
+
if (ee(S.dataset) && re({
|
|
1175
1446
|
componentName: "VueUiXyCanvas",
|
|
1176
1447
|
type: "dataset",
|
|
1177
|
-
debug:
|
|
1178
|
-
}),
|
|
1179
|
-
U.value && !
|
|
1448
|
+
debug: dn.value
|
|
1449
|
+
}), Qe(() => {
|
|
1450
|
+
U.value && !C.value && (C.value = U.value.getContext("2d", { willReadFrequently: !0 })), C.value && M.value && (D.value = !0, O.value = !0, vr());
|
|
1180
1451
|
}), P.value.responsive) {
|
|
1181
1452
|
let e = Ae(() => {
|
|
1182
1453
|
let { width: e, height: t } = Fe({
|
|
1183
|
-
chart:
|
|
1184
|
-
title: H.value.title.text ?
|
|
1185
|
-
legend: H.value.legend.show ?
|
|
1186
|
-
slicer: H.value.zoom.show && G.value > 6 ?
|
|
1187
|
-
source:
|
|
1454
|
+
chart: Mt.value,
|
|
1455
|
+
title: H.value.title.text ? Ht.value : null,
|
|
1456
|
+
legend: H.value.legend.show ? Ut.value : null,
|
|
1457
|
+
slicer: H.value.zoom.show && G.value > 6 ? Wt.value?.$el : null,
|
|
1458
|
+
source: Gt.value
|
|
1188
1459
|
});
|
|
1189
1460
|
requestAnimationFrame(() => {
|
|
1190
|
-
|
|
1461
|
+
Cn.value = `${e} / ${t}`;
|
|
1191
1462
|
});
|
|
1192
1463
|
});
|
|
1193
|
-
|
|
1464
|
+
bi.value && (xi.value && bi.value.unobserve(xi.value), bi.value.disconnect()), bi.value = new ResizeObserver(e), xi.value = Mt.value.parentNode, bi.value.observe(xi.value);
|
|
1194
1465
|
}
|
|
1195
|
-
|
|
1196
|
-
for (let t of e) t.contentBoxSize &&
|
|
1197
|
-
}),
|
|
1466
|
+
Si.value && Si.value.disconnect(), Si.value = new ResizeObserver(async (e) => {
|
|
1467
|
+
for (let t of e) t.contentBoxSize && Nt.value && (D.value = !0, Vr());
|
|
1468
|
+
}), Si.value.observe(Nt.value), cr();
|
|
1198
1469
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1470
|
+
tt(() => {
|
|
1471
|
+
Si.value && Si.value.disconnect(), bi.value && (xi.value && bi.value.unobserve(xi.value), bi.value.disconnect());
|
|
1201
1472
|
});
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
}),
|
|
1473
|
+
function wi() {
|
|
1474
|
+
E.value.length ? E.value = [] : ki.value.forEach((e, t) => {
|
|
1475
|
+
E.value.push(t);
|
|
1476
|
+
}), D.value = !0, Vr(), N("selectLegend", Y.value);
|
|
1206
1477
|
}
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1478
|
+
function Ti(e) {
|
|
1479
|
+
E.value.includes(e) ? E.value = E.value.filter((t) => t !== e) : E.value.push(e), D.value = !0, Vr(), N("selectLegend", Y.value);
|
|
1209
1480
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (
|
|
1481
|
+
function Ei(e) {
|
|
1482
|
+
return J.value.length ? J.value.find((t) => t.name === e) || (dn.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (dn.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1212
1483
|
}
|
|
1213
|
-
function
|
|
1214
|
-
let t =
|
|
1215
|
-
t !== null &&
|
|
1484
|
+
function Di(e) {
|
|
1485
|
+
let t = Ei(e);
|
|
1486
|
+
t !== null && E.value.includes(t.absoluteIndex) && Ti(t.absoluteIndex);
|
|
1216
1487
|
}
|
|
1217
|
-
function
|
|
1218
|
-
let t =
|
|
1219
|
-
t !== null && (
|
|
1488
|
+
function Oi(e) {
|
|
1489
|
+
let t = Ei(e);
|
|
1490
|
+
t !== null && (E.value.includes(t.absoluteIndex) || Ti(t.absoluteIndex));
|
|
1220
1491
|
}
|
|
1221
|
-
let
|
|
1492
|
+
let ki = d(() => J.value.map((e, t) => ({
|
|
1222
1493
|
...e,
|
|
1223
1494
|
name: e.name,
|
|
1224
|
-
color: c(e.color) ||
|
|
1495
|
+
color: c(e.color) || kn.value[t] || l[t] || l[t % l.length],
|
|
1225
1496
|
shape: e.shape || "circle",
|
|
1226
1497
|
prefix: e.prefix || "",
|
|
1227
1498
|
suffix: e.suffix || "",
|
|
1228
1499
|
rounding: e.rounding || 0
|
|
1229
1500
|
})).map((e) => ({
|
|
1230
1501
|
...e,
|
|
1231
|
-
opacity:
|
|
1232
|
-
segregate: () =>
|
|
1233
|
-
isSegregated:
|
|
1234
|
-
}))),
|
|
1502
|
+
opacity: E.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1503
|
+
segregate: () => Ti(e.absoluteIndex),
|
|
1504
|
+
isSegregated: E.value.includes(e.absoluteIndex)
|
|
1505
|
+
}))), Ai = d(() => ({
|
|
1235
1506
|
cy: "donut-div-legend",
|
|
1236
1507
|
backgroundColor: H.value.legend.backgroundColor,
|
|
1237
1508
|
color: H.value.legend.color,
|
|
1238
1509
|
fontSize: H.value.legend.fontSize,
|
|
1239
1510
|
paddingBottom: 12,
|
|
1240
1511
|
fontWeight: H.value.legend.bold ? "bold" : ""
|
|
1241
|
-
})),
|
|
1512
|
+
})), ji = d(() => {
|
|
1242
1513
|
let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [];
|
|
1243
1514
|
for (let e = 0; e < G.value; e += 1) {
|
|
1244
1515
|
let n = Y.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1263,7 +1534,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1263
1534
|
config: n,
|
|
1264
1535
|
colNames: r
|
|
1265
1536
|
};
|
|
1266
|
-
}),
|
|
1537
|
+
}), Mi = d(() => {
|
|
1267
1538
|
if (Y.value.length === 0) return {
|
|
1268
1539
|
head: [],
|
|
1269
1540
|
body: [],
|
|
@@ -1286,44 +1557,44 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1286
1557
|
body: t
|
|
1287
1558
|
};
|
|
1288
1559
|
});
|
|
1289
|
-
function
|
|
1560
|
+
function Ni(e = null) {
|
|
1290
1561
|
let t = [
|
|
1291
1562
|
[H.value.title.text],
|
|
1292
1563
|
[H.value.title.subtitle.text],
|
|
1293
1564
|
[""]
|
|
1294
|
-
], n = ["", ...
|
|
1565
|
+
], n = ["", ...Mi.value.head.map((e) => e.label)], r = Mi.value.body, a = t.concat([n]).concat(r), o = i(a);
|
|
1295
1566
|
e ? e(o) : le({
|
|
1296
1567
|
csvContent: o,
|
|
1297
1568
|
title: H.value.title.text || "vue-ui-xy-canvas"
|
|
1298
1569
|
});
|
|
1299
1570
|
}
|
|
1300
|
-
function
|
|
1571
|
+
function Pi() {
|
|
1301
1572
|
return Y.value;
|
|
1302
1573
|
}
|
|
1303
|
-
function
|
|
1574
|
+
function Fi() {
|
|
1304
1575
|
W.value.showTable = !W.value.showTable;
|
|
1305
1576
|
}
|
|
1306
|
-
function
|
|
1577
|
+
function Ii() {
|
|
1307
1578
|
W.value.showDataLabels = !W.value.showDataLabels;
|
|
1308
1579
|
}
|
|
1309
|
-
function
|
|
1580
|
+
function Li() {
|
|
1310
1581
|
W.value.stacked = !W.value.stacked;
|
|
1311
1582
|
}
|
|
1312
|
-
function
|
|
1583
|
+
function Ri() {
|
|
1313
1584
|
W.value.showTooltip = !W.value.showTooltip;
|
|
1314
1585
|
}
|
|
1315
|
-
let
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1586
|
+
let zi = _(!1);
|
|
1587
|
+
function Bi() {
|
|
1588
|
+
zi.value = !zi.value;
|
|
1318
1589
|
}
|
|
1319
|
-
async function
|
|
1320
|
-
if (!
|
|
1590
|
+
async function Vi({ scale: e = 2 } = {}) {
|
|
1591
|
+
if (!Mt.value) return;
|
|
1321
1592
|
let { imageUri: t, base64: n } = await Te({
|
|
1322
|
-
domElement:
|
|
1593
|
+
domElement: Mt.value,
|
|
1323
1594
|
base64: !0,
|
|
1324
1595
|
img: !0,
|
|
1325
1596
|
scale: e
|
|
1326
|
-
}), r =
|
|
1597
|
+
}), r = Mt.value.getBoundingClientRect(), i = {
|
|
1327
1598
|
width: r.width,
|
|
1328
1599
|
height: r.height,
|
|
1329
1600
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
@@ -1335,20 +1606,20 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1335
1606
|
...a
|
|
1336
1607
|
};
|
|
1337
1608
|
}
|
|
1338
|
-
let
|
|
1609
|
+
let Hi = d(() => {
|
|
1339
1610
|
let e = P.value.table.useDialog && !P.value.table.show, t = W.value.showTable;
|
|
1340
1611
|
return {
|
|
1341
|
-
component: e ?
|
|
1612
|
+
component: e ? Dt : Re,
|
|
1342
1613
|
title: `${H.value.title.text}${H.value.title.subtitle.text ? `: ${H.value.title.subtitle.text}` : ""}`,
|
|
1343
1614
|
props: e ? {
|
|
1344
1615
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
1345
1616
|
color: P.value.table.th.color,
|
|
1346
1617
|
headerColor: P.value.table.th.color,
|
|
1347
1618
|
headerBg: P.value.table.th.backgroundColor,
|
|
1348
|
-
isFullscreen:
|
|
1349
|
-
fullscreenParent:
|
|
1619
|
+
isFullscreen: Vt.value,
|
|
1620
|
+
fullscreenParent: Mt.value,
|
|
1350
1621
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1351
|
-
isCursorPointer:
|
|
1622
|
+
isCursorPointer: un.value
|
|
1352
1623
|
} : {
|
|
1353
1624
|
hideDetails: !0,
|
|
1354
1625
|
config: {
|
|
@@ -1366,25 +1637,25 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1366
1637
|
}
|
|
1367
1638
|
};
|
|
1368
1639
|
});
|
|
1369
|
-
|
|
1370
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
1640
|
+
b(() => W.value.showTable, (e) => {
|
|
1641
|
+
P.value.table.show || (e && P.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
|
|
1371
1642
|
});
|
|
1372
|
-
function
|
|
1373
|
-
W.value.showTable = !1,
|
|
1643
|
+
function Ui() {
|
|
1644
|
+
W.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
|
|
1374
1645
|
}
|
|
1375
|
-
function
|
|
1646
|
+
function Wi(e) {
|
|
1376
1647
|
if (e?.stage === "start") {
|
|
1377
|
-
|
|
1648
|
+
tn.value = !0;
|
|
1378
1649
|
return;
|
|
1379
1650
|
}
|
|
1380
1651
|
if (e?.stage === "end") {
|
|
1381
|
-
|
|
1652
|
+
tn.value = !1;
|
|
1382
1653
|
return;
|
|
1383
1654
|
}
|
|
1384
|
-
|
|
1655
|
+
Dn();
|
|
1385
1656
|
}
|
|
1386
|
-
async function
|
|
1387
|
-
if (
|
|
1657
|
+
async function Gi() {
|
|
1658
|
+
if (N("copyAlt", {
|
|
1388
1659
|
config: P.value,
|
|
1389
1660
|
dataset: Y.value
|
|
1390
1661
|
}), !F.value.callbacks.altCopy) {
|
|
@@ -1397,41 +1668,46 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1397
1668
|
}));
|
|
1398
1669
|
}
|
|
1399
1670
|
return De({
|
|
1400
|
-
getData:
|
|
1401
|
-
getImage:
|
|
1402
|
-
generateCsv:
|
|
1403
|
-
generatePdf:
|
|
1404
|
-
generateImage:
|
|
1405
|
-
hideSeries:
|
|
1406
|
-
showSeries:
|
|
1407
|
-
toggleTable:
|
|
1408
|
-
toggleLabels:
|
|
1409
|
-
toggleStack:
|
|
1410
|
-
toggleTooltip:
|
|
1411
|
-
toggleAnnotator:
|
|
1412
|
-
toggleFullscreen:
|
|
1413
|
-
copyAlt:
|
|
1414
|
-
|
|
1415
|
-
|
|
1671
|
+
getData: Pi,
|
|
1672
|
+
getImage: Vi,
|
|
1673
|
+
generateCsv: Ni,
|
|
1674
|
+
generatePdf: En,
|
|
1675
|
+
generateImage: Dn,
|
|
1676
|
+
hideSeries: Oi,
|
|
1677
|
+
showSeries: Di,
|
|
1678
|
+
toggleTable: Fi,
|
|
1679
|
+
toggleLabels: Ii,
|
|
1680
|
+
toggleStack: Li,
|
|
1681
|
+
toggleTooltip: Ri,
|
|
1682
|
+
toggleAnnotator: Bi,
|
|
1683
|
+
toggleFullscreen: On,
|
|
1684
|
+
copyAlt: Gi,
|
|
1685
|
+
resetZoom: () => cr({
|
|
1686
|
+
force: !0,
|
|
1687
|
+
publish: !0
|
|
1688
|
+
}),
|
|
1689
|
+
setZoomState: sr
|
|
1690
|
+
}), (t, n) => (g(), Ke("div", {
|
|
1691
|
+
style: et(`width:100%; position:relative; ${P.value.responsive ? "height: 100%" : ""}; background:${P.value.style.chart.backgroundColor};`),
|
|
1416
1692
|
ref_key: "xy",
|
|
1417
|
-
ref:
|
|
1418
|
-
id: `xy_canvas_${
|
|
1419
|
-
class:
|
|
1420
|
-
onMouseenter:
|
|
1421
|
-
onMouseleave:
|
|
1693
|
+
ref: Mt,
|
|
1694
|
+
id: `xy_canvas_${jt.value}`,
|
|
1695
|
+
class: $e(`vue-data-ui-component vue-ui-xy-canvas ${Vt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1696
|
+
onMouseenter: vn,
|
|
1697
|
+
onMouseleave: yn
|
|
1422
1698
|
}, [
|
|
1423
|
-
|
|
1424
|
-
id: `chart-instructions-${
|
|
1699
|
+
p("div", {
|
|
1700
|
+
id: `chart-instructions-${jt.value}`,
|
|
1425
1701
|
class: "sr-only"
|
|
1426
|
-
}, [
|
|
1427
|
-
|
|
1428
|
-
P.value.style.chart.title.text ? (
|
|
1702
|
+
}, [p("p", null, at(P.value.a11y.translations.keyboardNavigation), 1)], 8, dt),
|
|
1703
|
+
p("div", ft, at(ln.value), 1),
|
|
1704
|
+
P.value.style.chart.title.text ? (g(), Ke("div", {
|
|
1429
1705
|
key: 0,
|
|
1430
1706
|
ref_key: "chartTitle",
|
|
1431
|
-
ref:
|
|
1432
|
-
style:
|
|
1433
|
-
}, [(
|
|
1434
|
-
key: `title_${
|
|
1707
|
+
ref: Ht,
|
|
1708
|
+
style: et(`width:100%;background:${P.value.style.chart.backgroundColor};`)
|
|
1709
|
+
}, [(g(), Ge(Ee, {
|
|
1710
|
+
key: `title_${Kt.value}`,
|
|
1435
1711
|
config: {
|
|
1436
1712
|
title: {
|
|
1437
1713
|
cy: "xy-canvas-title",
|
|
@@ -1442,17 +1718,17 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1442
1718
|
...P.value.style.chart.title.subtitle
|
|
1443
1719
|
}
|
|
1444
1720
|
}
|
|
1445
|
-
}, null, 8, ["config"]))], 4)) :
|
|
1446
|
-
|
|
1447
|
-
F.value.show &&
|
|
1721
|
+
}, null, 8, ["config"]))], 4)) : f("", !0),
|
|
1722
|
+
p("div", { id: `legend-top-${jt.value}` }, null, 8, pt),
|
|
1723
|
+
F.value.show && M.value && (y(_n) || y(hn)) ? (g(), Ge(y(Tt), {
|
|
1448
1724
|
ref_key: "userOptionsRef",
|
|
1449
|
-
ref:
|
|
1450
|
-
key: `user_option_${
|
|
1725
|
+
ref: Zt,
|
|
1726
|
+
key: `user_option_${Bt.value}`,
|
|
1451
1727
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1452
1728
|
color: P.value.style.chart.color,
|
|
1453
|
-
isPrinting:
|
|
1454
|
-
isImaging:
|
|
1455
|
-
uid:
|
|
1729
|
+
isPrinting: y(wn),
|
|
1730
|
+
isImaging: y(Tn),
|
|
1731
|
+
uid: jt.value,
|
|
1456
1732
|
hasTooltip: F.value.buttons.tooltip && I.value.show,
|
|
1457
1733
|
hasPdf: F.value.buttons.pdf,
|
|
1458
1734
|
hasImg: F.value.buttons.img,
|
|
@@ -1462,33 +1738,33 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1462
1738
|
hasFullscreen: F.value.buttons.fullscreen,
|
|
1463
1739
|
hasAltCopy: F.value.buttons.altCopy,
|
|
1464
1740
|
hasTable: X.value.end - X.value.start <= 730 && F.value.buttons.table,
|
|
1465
|
-
isFullscreen:
|
|
1741
|
+
isFullscreen: Vt.value,
|
|
1466
1742
|
isTooltip: W.value.showTooltip,
|
|
1467
1743
|
isStacked: W.value.stacked,
|
|
1468
1744
|
titles: { ...F.value.buttonTitles },
|
|
1469
|
-
chartElement:
|
|
1745
|
+
chartElement: Mt.value,
|
|
1470
1746
|
position: F.value.position,
|
|
1471
1747
|
hasAnnotator: F.value.buttons.annotator,
|
|
1472
|
-
isAnnotation:
|
|
1748
|
+
isAnnotation: zi.value,
|
|
1473
1749
|
callbacks: F.value.callbacks,
|
|
1474
1750
|
printScale: F.value.print.scale,
|
|
1475
1751
|
tableDialog: P.value.table.useDialog,
|
|
1476
|
-
isCursorPointer:
|
|
1477
|
-
onToggleFullscreen:
|
|
1478
|
-
onGeneratePdf:
|
|
1479
|
-
onGenerateCsv:
|
|
1480
|
-
onGenerateImage:
|
|
1481
|
-
onToggleTable:
|
|
1482
|
-
onToggleLabels:
|
|
1483
|
-
onToggleStack:
|
|
1484
|
-
onToggleTooltip:
|
|
1485
|
-
onToggleAnnotator:
|
|
1486
|
-
onCopyAlt:
|
|
1487
|
-
style:
|
|
1488
|
-
},
|
|
1752
|
+
isCursorPointer: un.value,
|
|
1753
|
+
onToggleFullscreen: On,
|
|
1754
|
+
onGeneratePdf: y(En),
|
|
1755
|
+
onGenerateCsv: Ni,
|
|
1756
|
+
onGenerateImage: Wi,
|
|
1757
|
+
onToggleTable: Fi,
|
|
1758
|
+
onToggleLabels: Ii,
|
|
1759
|
+
onToggleStack: Li,
|
|
1760
|
+
onToggleTooltip: Ri,
|
|
1761
|
+
onToggleAnnotator: Bi,
|
|
1762
|
+
onCopyAlt: Gi,
|
|
1763
|
+
style: et({ visibility: y(_n) ? y(hn) ? "visible" : "hidden" : "visible" })
|
|
1764
|
+
}, qe({ _: 2 }, [
|
|
1489
1765
|
t.$slots.menuIcon ? {
|
|
1490
1766
|
name: "menuIcon",
|
|
1491
|
-
fn:
|
|
1767
|
+
fn: x(({ isOpen: e, color: n }) => [v(t.$slots, "menuIcon", h(m({
|
|
1492
1768
|
isOpen: e,
|
|
1493
1769
|
color: n
|
|
1494
1770
|
})), void 0, !0)]),
|
|
@@ -1496,42 +1772,42 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1496
1772
|
} : void 0,
|
|
1497
1773
|
t.$slots.optionTooltip ? {
|
|
1498
1774
|
name: "optionTooltip",
|
|
1499
|
-
fn:
|
|
1775
|
+
fn: x(() => [v(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1500
1776
|
key: "1"
|
|
1501
1777
|
} : void 0,
|
|
1502
1778
|
t.$slots.optionPdf ? {
|
|
1503
1779
|
name: "optionPdf",
|
|
1504
|
-
fn:
|
|
1780
|
+
fn: x(() => [v(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1505
1781
|
key: "2"
|
|
1506
1782
|
} : void 0,
|
|
1507
1783
|
t.$slots.optionCsv ? {
|
|
1508
1784
|
name: "optionCsv",
|
|
1509
|
-
fn:
|
|
1785
|
+
fn: x(() => [v(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1510
1786
|
key: "3"
|
|
1511
1787
|
} : void 0,
|
|
1512
1788
|
t.$slots.optionImg ? {
|
|
1513
1789
|
name: "optionImg",
|
|
1514
|
-
fn:
|
|
1790
|
+
fn: x(() => [v(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1515
1791
|
key: "4"
|
|
1516
1792
|
} : void 0,
|
|
1517
1793
|
t.$slots.optionTable ? {
|
|
1518
1794
|
name: "optionTable",
|
|
1519
|
-
fn:
|
|
1795
|
+
fn: x(() => [v(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1520
1796
|
key: "5"
|
|
1521
1797
|
} : void 0,
|
|
1522
1798
|
t.$slots.optionLabels ? {
|
|
1523
1799
|
name: "optionLabels",
|
|
1524
|
-
fn:
|
|
1800
|
+
fn: x(() => [v(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1525
1801
|
key: "6"
|
|
1526
1802
|
} : void 0,
|
|
1527
1803
|
t.$slots.optionStack ? {
|
|
1528
1804
|
name: "optionStack",
|
|
1529
|
-
fn:
|
|
1805
|
+
fn: x(() => [v(t.$slots, "optionStack", {}, void 0, !0)]),
|
|
1530
1806
|
key: "7"
|
|
1531
1807
|
} : void 0,
|
|
1532
1808
|
t.$slots.optionFullscreen ? {
|
|
1533
1809
|
name: "optionFullscreen",
|
|
1534
|
-
fn:
|
|
1810
|
+
fn: x(({ toggleFullscreen: e, isFullscreen: n }) => [v(t.$slots, "optionFullscreen", h(m({
|
|
1535
1811
|
toggleFullscreen: e,
|
|
1536
1812
|
isFullscreen: n
|
|
1537
1813
|
})), void 0, !0)]),
|
|
@@ -1539,7 +1815,7 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1539
1815
|
} : void 0,
|
|
1540
1816
|
t.$slots.optionAnnotator ? {
|
|
1541
1817
|
name: "optionAnnotator",
|
|
1542
|
-
fn:
|
|
1818
|
+
fn: x(({ toggleAnnotator: e, isAnnotator: n }) => [v(t.$slots, "optionAnnotator", h(m({
|
|
1543
1819
|
toggleAnnotator: e,
|
|
1544
1820
|
isAnnotator: n
|
|
1545
1821
|
})), void 0, !0)]),
|
|
@@ -1547,52 +1823,88 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1547
1823
|
} : void 0,
|
|
1548
1824
|
t.$slots.optionAltCopy ? {
|
|
1549
1825
|
name: "optionAltCopy",
|
|
1550
|
-
fn:
|
|
1826
|
+
fn: x(({ altCopy: e }) => [v(t.$slots, "optionAltCopy", h(m({ altCopy: e })), void 0, !0)]),
|
|
1551
1827
|
key: "10"
|
|
1552
1828
|
} : void 0,
|
|
1553
1829
|
t.$slots["custom-menu-before"] ? {
|
|
1554
1830
|
name: "custom-menu-before",
|
|
1555
|
-
fn:
|
|
1831
|
+
fn: x(() => [v(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1556
1832
|
key: "11"
|
|
1557
1833
|
} : void 0,
|
|
1558
1834
|
t.$slots["custom-menu-after"] ? {
|
|
1559
1835
|
name: "custom-menu-after",
|
|
1560
|
-
fn:
|
|
1836
|
+
fn: x(() => [v(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1561
1837
|
key: "12"
|
|
1562
1838
|
} : void 0
|
|
1563
|
-
]), 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("."))) :
|
|
1564
|
-
|
|
1839
|
+
]), 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("."))) : f("", !0),
|
|
1840
|
+
p("div", {
|
|
1565
1841
|
class: "vue-ui-xy-canvas",
|
|
1566
|
-
style:
|
|
1842
|
+
style: et(`position: relative; aspect-ratio: ${Cn.value}`),
|
|
1567
1843
|
ref_key: "container",
|
|
1568
|
-
ref:
|
|
1844
|
+
ref: Nt
|
|
1569
1845
|
}, [
|
|
1570
|
-
|
|
1846
|
+
p("canvas", {
|
|
1571
1847
|
ref_key: "canvas",
|
|
1572
1848
|
ref: U,
|
|
1573
|
-
"
|
|
1574
|
-
"aria-
|
|
1849
|
+
class: $e({ "vue-ui-xy-canvas-chart-zoom-pointer-focus": Qn.value && Wn.value }),
|
|
1850
|
+
"aria-label": cn.value,
|
|
1851
|
+
"aria-describedby": `chart-instructions-${jt.value}`,
|
|
1575
1852
|
role: "img",
|
|
1576
1853
|
"aria-live": "polite",
|
|
1577
1854
|
tabindex: "0",
|
|
1855
|
+
style: et({
|
|
1856
|
+
width: "100%",
|
|
1857
|
+
height: "100%",
|
|
1858
|
+
cursor: Qn.value ? Un.value ? "col-resize" : "crosshair" : void 0,
|
|
1859
|
+
touchAction: Qn.value ? "pan-y" : void 0,
|
|
1860
|
+
userSelect: Qn.value ? "none" : void 0
|
|
1861
|
+
}),
|
|
1862
|
+
onMousemove: n[0] ||= (e) => li(e),
|
|
1863
|
+
onMouseleave: yi,
|
|
1864
|
+
onClick: $r,
|
|
1865
|
+
onPointerdown: oi,
|
|
1866
|
+
onPointermove: si,
|
|
1867
|
+
onPointerup: ci,
|
|
1868
|
+
onPointercancel: ti,
|
|
1869
|
+
onFocus: hi,
|
|
1870
|
+
onBlur: gi,
|
|
1871
|
+
onKeydown: _i
|
|
1872
|
+
}, null, 46, mt),
|
|
1873
|
+
Ur.value ? (g(), Ke("svg", {
|
|
1874
|
+
key: 0,
|
|
1875
|
+
viewBox: `0 0 ${K.value.canvasWidth} ${K.value.canvasHeight}`,
|
|
1876
|
+
preserveAspectRatio: "none",
|
|
1877
|
+
"aria-hidden": "true",
|
|
1578
1878
|
style: {
|
|
1879
|
+
position: "absolute",
|
|
1880
|
+
inset: "0",
|
|
1579
1881
|
width: "100%",
|
|
1580
|
-
height: "100%"
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1882
|
+
height: "100%",
|
|
1883
|
+
"pointer-events": "none",
|
|
1884
|
+
overflow: "visible"
|
|
1885
|
+
}
|
|
1886
|
+
}, [p("rect", {
|
|
1887
|
+
x: Ur.value.x,
|
|
1888
|
+
y: Ur.value.y,
|
|
1889
|
+
width: Ur.value.width,
|
|
1890
|
+
height: Ur.value.height,
|
|
1891
|
+
fill: Zn.value.selection.fill,
|
|
1892
|
+
"fill-opacity": Zn.value.selection.fillOpacity,
|
|
1893
|
+
stroke: Zn.value.selection.stroke,
|
|
1894
|
+
"stroke-opacity": Zn.value.selection.strokeOpacity,
|
|
1895
|
+
"stroke-width": Zn.value.selection.strokeWidth,
|
|
1896
|
+
"stroke-dasharray": Zn.value.selection.strokeDasharray,
|
|
1897
|
+
"stroke-linecap": "round",
|
|
1898
|
+
"stroke-linejoin": "round"
|
|
1899
|
+
}, null, 8, gt)], 8, ht)) : f("", !0),
|
|
1900
|
+
t.$slots.hint ? (g(), Ke("div", _t, [v(t.$slots, "hint", h(m({
|
|
1589
1901
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1590
|
-
isVisible:
|
|
1591
|
-
})), void 0, !0)])) :
|
|
1592
|
-
|
|
1593
|
-
|
|
1902
|
+
isVisible: rn.value
|
|
1903
|
+
})), void 0, !0)])) : f("", !0),
|
|
1904
|
+
v(t.$slots, "skeleton", {}, () => [y(pn) ? (g(), Ge(Se, { key: 0 })) : f("", !0)], !0),
|
|
1905
|
+
Ye(y(Ct), {
|
|
1594
1906
|
teleportTo: I.value.teleportTo,
|
|
1595
|
-
show: W.value.showTooltip &&
|
|
1907
|
+
show: W.value.showTooltip && Ft.value,
|
|
1596
1908
|
backgroundColor: I.value.backgroundColor,
|
|
1597
1909
|
color: I.value.color,
|
|
1598
1910
|
fontSize: I.value.fontSize,
|
|
@@ -1603,20 +1915,20 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1603
1915
|
offsetX: I.value.offsetX,
|
|
1604
1916
|
offsetY: I.value.offsetY,
|
|
1605
1917
|
parent: t.$refs.xy,
|
|
1606
|
-
content:
|
|
1607
|
-
isFullscreen:
|
|
1918
|
+
content: It.value,
|
|
1919
|
+
isFullscreen: Vt.value,
|
|
1608
1920
|
backgroundOpacity: I.value.backgroundOpacity,
|
|
1609
|
-
isCustom:
|
|
1921
|
+
isCustom: y(a)(I.value.customFormat),
|
|
1610
1922
|
smooth: I.value.smooth,
|
|
1611
1923
|
backdropFilter: I.value.backdropFilter,
|
|
1612
1924
|
smoothForce: I.value.smoothForce,
|
|
1613
1925
|
smoothSnapThreshold: I.value.smoothSnapThreshold,
|
|
1614
|
-
isA11yMode:
|
|
1615
|
-
a11yPosition:
|
|
1926
|
+
isA11yMode: nn.value,
|
|
1927
|
+
a11yPosition: an.value
|
|
1616
1928
|
}, {
|
|
1617
|
-
"tooltip-before":
|
|
1618
|
-
tooltip:
|
|
1619
|
-
"tooltip-after":
|
|
1929
|
+
"tooltip-before": x(() => [v(t.$slots, "tooltip-before", h(m({ ...Lt.value })), void 0, !0)]),
|
|
1930
|
+
tooltip: x(() => [v(t.$slots, "tooltip", h(m({ ...Lt.value })), void 0, !0)]),
|
|
1931
|
+
"tooltip-after": x(() => [v(t.$slots, "tooltip-after", h(m({ ...Lt.value })), void 0, !0)]),
|
|
1620
1932
|
_: 3
|
|
1621
1933
|
}, 8, [
|
|
1622
1934
|
"teleportTo",
|
|
@@ -1643,16 +1955,16 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1643
1955
|
"a11yPosition"
|
|
1644
1956
|
])
|
|
1645
1957
|
], 4),
|
|
1646
|
-
P.value.style.chart.zoom.show && G.value > 6 &&
|
|
1958
|
+
P.value.style.chart.zoom.show && G.value > 6 && M.value && $t.value && !y(pn) ? (g(), Ge(Le, {
|
|
1647
1959
|
key: 2,
|
|
1648
1960
|
ref_key: "chartSlicer",
|
|
1649
|
-
ref:
|
|
1961
|
+
ref: Wt,
|
|
1650
1962
|
"data-dom-to-png-ignore-layout": "",
|
|
1651
|
-
allMinimaps:
|
|
1963
|
+
allMinimaps: Hn.value,
|
|
1652
1964
|
background: P.value.style.chart.zoom.color,
|
|
1653
1965
|
borderColor: P.value.style.chart.backgroundColor,
|
|
1654
1966
|
customFormat: P.value.style.chart.zoom.customFormat,
|
|
1655
|
-
cutNullValues:
|
|
1967
|
+
cutNullValues: Bn.value,
|
|
1656
1968
|
enableRangeHandles: P.value.style.chart.zoom.enableRangeHandles,
|
|
1657
1969
|
enableSelectionDrag: P.value.style.chart.zoom.enableSelectionDrag,
|
|
1658
1970
|
end: X.value.end,
|
|
@@ -1661,12 +1973,12 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1661
1973
|
fontSize: P.value.style.chart.zoom.fontSize,
|
|
1662
1974
|
immediate: !P.value.style.chart.zoom.preview.enable,
|
|
1663
1975
|
inputColor: P.value.style.chart.zoom.color,
|
|
1664
|
-
isPreview:
|
|
1976
|
+
isPreview: lr.value,
|
|
1665
1977
|
labelLeft: P.value.style.chart.grid.x.timeLabels.values[X.value.start] ? $.value[X.value.start]?.text : "",
|
|
1666
1978
|
labelRight: P.value.style.chart.grid.x.timeLabels.values[X.value.end - 1] ? $.value[X.value.end - 1]?.text : "",
|
|
1667
1979
|
max: G.value,
|
|
1668
1980
|
min: 0,
|
|
1669
|
-
minimap:
|
|
1981
|
+
minimap: Vn.value,
|
|
1670
1982
|
minimapCompact: P.value.style.chart.zoom.minimap.compact,
|
|
1671
1983
|
minimapFrameColor: P.value.style.chart.zoom.minimap.frameColor,
|
|
1672
1984
|
minimapIndicatorColor: P.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1674,9 +1986,9 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1674
1986
|
minimapMerged: P.value.style.chart.zoom.minimap.merged,
|
|
1675
1987
|
minimapSelectedColor: P.value.style.chart.zoom.minimap.selectedColor,
|
|
1676
1988
|
minimapSelectedColorOpacity: P.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1677
|
-
minimapSelectedIndex:
|
|
1989
|
+
minimapSelectedIndex: T.value,
|
|
1678
1990
|
minimapSelectionRadius: P.value.style.chart.zoom.minimap.selectionRadius,
|
|
1679
|
-
preciseLabels:
|
|
1991
|
+
preciseLabels: Or.value?.length ? Or.value : $.value,
|
|
1680
1992
|
refreshEndPoint: P.value.style.chart.zoom.endIndex === null ? G.value : P.value.style.chart.zoom.endIndex + 1,
|
|
1681
1993
|
refreshStartPoint: P.value.style.chart.zoom.startIndex === null ? 0 : P.value.style.chart.zoom.startIndex,
|
|
1682
1994
|
selectColor: P.value.style.chart.zoom.highlightColor,
|
|
@@ -1700,84 +2012,87 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1700
2012
|
handleBorderColor: P.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1701
2013
|
handleFill: P.value.style.chart.zoom.minimap.handleFill,
|
|
1702
2014
|
handleWidth: P.value.style.chart.zoom.minimap.handleWidth,
|
|
1703
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
1704
|
-
onFutureStart: n[2] ||= (e) =>
|
|
1705
|
-
onReset:
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
2015
|
+
onFutureEnd: n[1] ||= (e) => ur("end", e),
|
|
2016
|
+
onFutureStart: n[2] ||= (e) => ur("start", e),
|
|
2017
|
+
onReset: n[3] ||= () => cr({
|
|
2018
|
+
force: !0,
|
|
2019
|
+
publish: !0
|
|
2020
|
+
}),
|
|
2021
|
+
onTrapMouse: jn,
|
|
2022
|
+
"onUpdate:end": mr,
|
|
2023
|
+
"onUpdate:start": pr
|
|
1709
2024
|
}, {
|
|
1710
|
-
"reset-action":
|
|
2025
|
+
"reset-action": x(({ reset: e }) => [v(t.$slots, "reset-action", h(m({ reset: e })), void 0, !0)]),
|
|
1711
2026
|
_: 3
|
|
1712
|
-
}, 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.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
1713
|
-
|
|
1714
|
-
|
|
2027
|
+
}, 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.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : f("", !0),
|
|
2028
|
+
p("div", { id: `legend-bottom-${jt.value}` }, null, 8, vt),
|
|
2029
|
+
Yt.value && (P.value.style.chart.legend.show || t.$slots.legend) ? (g(), Ge(We, {
|
|
1715
2030
|
key: 3,
|
|
1716
|
-
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1717
|
-
}, [
|
|
2031
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${jt.value}` : `#legend-bottom-${jt.value}`
|
|
2032
|
+
}, [p("div", {
|
|
1718
2033
|
ref_key: "chartLegend",
|
|
1719
|
-
ref:
|
|
1720
|
-
}, [
|
|
1721
|
-
legendSet:
|
|
1722
|
-
config:
|
|
1723
|
-
key: `legend_${
|
|
1724
|
-
isCursorPointer:
|
|
1725
|
-
onClickMarker: n[
|
|
2034
|
+
ref: Ut
|
|
2035
|
+
}, [v(t.$slots, "legend", { legend: ki.value }, () => [P.value.style.chart.legend.show && M.value ? (g(), Ge(He, {
|
|
2036
|
+
legendSet: ki.value,
|
|
2037
|
+
config: Ai.value,
|
|
2038
|
+
key: `legend_${Jt.value}`,
|
|
2039
|
+
isCursorPointer: un.value,
|
|
2040
|
+
onClickMarker: n[4] ||= ({ i: e }) => Ti(e)
|
|
1726
2041
|
}, {
|
|
1727
|
-
item:
|
|
2042
|
+
item: x(({ legend: e, index: t }) => [p("div", {
|
|
1728
2043
|
onClick: (t) => e.segregate(),
|
|
1729
|
-
style:
|
|
1730
|
-
},
|
|
1731
|
-
legendToggle:
|
|
2044
|
+
style: et(`opacity:${E.value.includes(t) ? .5 : 1}`)
|
|
2045
|
+
}, at(e.name), 13, yt)]),
|
|
2046
|
+
legendToggle: x(() => [ki.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !y(pn) ? (g(), Ge(ze, {
|
|
1732
2047
|
key: 0,
|
|
1733
2048
|
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1734
2049
|
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1735
2050
|
fontSize: P.value.style.chart.legend.fontSize,
|
|
1736
|
-
checked:
|
|
1737
|
-
isCursorPointer:
|
|
1738
|
-
onToggle:
|
|
2051
|
+
checked: E.value.length > 0,
|
|
2052
|
+
isCursorPointer: un.value,
|
|
2053
|
+
onToggle: wi
|
|
1739
2054
|
}, null, 8, [
|
|
1740
2055
|
"backgroundColor",
|
|
1741
2056
|
"color",
|
|
1742
2057
|
"fontSize",
|
|
1743
2058
|
"checked",
|
|
1744
2059
|
"isCursorPointer"
|
|
1745
|
-
])) :
|
|
2060
|
+
])) : f("", !0)]),
|
|
1746
2061
|
_: 1
|
|
1747
2062
|
}, 8, [
|
|
1748
2063
|
"legendSet",
|
|
1749
2064
|
"config",
|
|
1750
2065
|
"isCursorPointer"
|
|
1751
|
-
])) :
|
|
1752
|
-
t.$slots.watermark ? (
|
|
1753
|
-
t.$slots.source ? (
|
|
2066
|
+
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
2067
|
+
t.$slots.watermark ? (g(), Ke("div", bt, [v(t.$slots, "watermark", h(m({ isPrinting: y(wn) || y(Tn) || tn.value })), void 0, !0)])) : f("", !0),
|
|
2068
|
+
t.$slots.source ? (g(), Ke("div", {
|
|
1754
2069
|
key: 5,
|
|
1755
2070
|
ref_key: "source",
|
|
1756
|
-
ref:
|
|
2071
|
+
ref: Gt,
|
|
1757
2072
|
dir: "auto"
|
|
1758
|
-
}, [
|
|
1759
|
-
|
|
2073
|
+
}, [v(t.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
2074
|
+
M.value && F.value.buttons.table ? (g(), Ge(rt(Hi.value.component), Ze({ key: 6 }, Hi.value.props, {
|
|
1760
2075
|
ref_key: "tableUnit",
|
|
1761
|
-
ref:
|
|
1762
|
-
onClose:
|
|
1763
|
-
}),
|
|
1764
|
-
content:
|
|
1765
|
-
key: `table_${
|
|
1766
|
-
colNames:
|
|
1767
|
-
head:
|
|
1768
|
-
body:
|
|
1769
|
-
config:
|
|
1770
|
-
title: P.value.table.useDialog ? "" :
|
|
2076
|
+
ref: Xt,
|
|
2077
|
+
onClose: Ui
|
|
2078
|
+
}), qe({
|
|
2079
|
+
content: x(() => [(g(), Ge(y(wt), {
|
|
2080
|
+
key: `table_${qt.value}`,
|
|
2081
|
+
colNames: ji.value.colNames,
|
|
2082
|
+
head: ji.value.head,
|
|
2083
|
+
body: ji.value.body,
|
|
2084
|
+
config: ji.value.config,
|
|
2085
|
+
title: P.value.table.useDialog ? "" : Hi.value.title,
|
|
1771
2086
|
withCloseButton: !P.value.table.useDialog,
|
|
1772
|
-
isCursorPointer:
|
|
1773
|
-
onClose:
|
|
2087
|
+
isCursorPointer: un.value,
|
|
2088
|
+
onClose: Ui
|
|
1774
2089
|
}, {
|
|
1775
|
-
th:
|
|
2090
|
+
th: x(({ th: e }) => [e === "__SUM__" ? (g(), Ke("div", xt, [Ye(Ie, {
|
|
1776
2091
|
name: "sigma",
|
|
1777
|
-
stroke:
|
|
2092
|
+
stroke: ji.value.config.th.color,
|
|
1778
2093
|
size: 16
|
|
1779
|
-
}, null, 8, ["stroke"])])) : (
|
|
1780
|
-
td:
|
|
2094
|
+
}, null, 8, ["stroke"])])) : (g(), Ke("div", St, at(e), 1))]),
|
|
2095
|
+
td: x(({ td: e }) => [Je(at(e), 1)]),
|
|
1781
2096
|
_: 1
|
|
1782
2097
|
}, 8, [
|
|
1783
2098
|
"colNames",
|
|
@@ -1791,36 +2106,36 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1791
2106
|
_: 2
|
|
1792
2107
|
}, [P.value.table.useDialog ? {
|
|
1793
2108
|
name: "title",
|
|
1794
|
-
fn:
|
|
2109
|
+
fn: x(() => [Je(at(Hi.value.title), 1)]),
|
|
1795
2110
|
key: "0"
|
|
1796
2111
|
} : void 0, P.value.table.useDialog ? {
|
|
1797
2112
|
name: "actions",
|
|
1798
|
-
fn:
|
|
2113
|
+
fn: x(() => [p("button", {
|
|
1799
2114
|
tabindex: "0",
|
|
1800
2115
|
class: "vue-ui-user-options-button",
|
|
1801
|
-
onClick: n[
|
|
1802
|
-
style:
|
|
1803
|
-
}, [
|
|
2116
|
+
onClick: n[5] ||= (e) => Ni(F.value.callbacks.csv),
|
|
2117
|
+
style: et({ cursor: un.value ? "pointer" : "default" })
|
|
2118
|
+
}, [Ye(Ie, {
|
|
1804
2119
|
name: "fileCsv",
|
|
1805
|
-
stroke:
|
|
2120
|
+
stroke: Hi.value.props.color
|
|
1806
2121
|
}, null, 8, ["stroke"])], 4)]),
|
|
1807
2122
|
key: "1"
|
|
1808
|
-
} : void 0]), 1040)) :
|
|
1809
|
-
F.value.buttons.annotator && Y.value.length ? (
|
|
2123
|
+
} : void 0]), 1040)) : f("", !0),
|
|
2124
|
+
F.value.buttons.annotator && Y.value.length ? (g(), Ge(y(Et), {
|
|
1810
2125
|
key: 7,
|
|
1811
|
-
parent:
|
|
2126
|
+
parent: Mt.value,
|
|
1812
2127
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1813
2128
|
color: P.value.style.chart.color,
|
|
1814
|
-
active:
|
|
1815
|
-
isCursorPointer:
|
|
1816
|
-
onClose:
|
|
2129
|
+
active: zi.value,
|
|
2130
|
+
isCursorPointer: un.value,
|
|
2131
|
+
onClose: Bi
|
|
1817
2132
|
}, {
|
|
1818
|
-
"annotator-action-close":
|
|
1819
|
-
"annotator-action-color":
|
|
1820
|
-
"annotator-action-draw":
|
|
1821
|
-
"annotator-action-undo":
|
|
1822
|
-
"annotator-action-redo":
|
|
1823
|
-
"annotator-action-delete":
|
|
2133
|
+
"annotator-action-close": x(() => [v(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2134
|
+
"annotator-action-color": x(({ color: e }) => [v(t.$slots, "annotator-action-color", h(m({ color: e })), void 0, !0)]),
|
|
2135
|
+
"annotator-action-draw": x(({ mode: e }) => [v(t.$slots, "annotator-action-draw", h(m({ mode: e })), void 0, !0)]),
|
|
2136
|
+
"annotator-action-undo": x(({ disabled: e }) => [v(t.$slots, "annotator-action-undo", h(m({ disabled: e })), void 0, !0)]),
|
|
2137
|
+
"annotator-action-redo": x(({ disabled: e }) => [v(t.$slots, "annotator-action-redo", h(m({ disabled: e })), void 0, !0)]),
|
|
2138
|
+
"annotator-action-delete": x(({ disabled: e }) => [v(t.$slots, "annotator-action-delete", h(m({ disabled: e })), void 0, !0)]),
|
|
1824
2139
|
_: 3
|
|
1825
2140
|
}, 8, [
|
|
1826
2141
|
"parent",
|
|
@@ -1828,9 +2143,9 @@ var ct = /* @__PURE__ */ e({ default: () => bt }), lt = ["id"], ut = ["id"], dt
|
|
|
1828
2143
|
"color",
|
|
1829
2144
|
"active",
|
|
1830
2145
|
"isCursorPointer"
|
|
1831
|
-
])) :
|
|
1832
|
-
], 46,
|
|
2146
|
+
])) : f("", !0)
|
|
2147
|
+
], 46, ut));
|
|
1833
2148
|
}
|
|
1834
|
-
}, [["__scopeId", "data-v-
|
|
2149
|
+
}, [["__scopeId", "data-v-f2325178"]]);
|
|
1835
2150
|
//#endregion
|
|
1836
|
-
export {
|
|
2151
|
+
export { lt as n, Ct as t };
|