vue-data-ui 3.25.12 → 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-KI_qWJHZ.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-CUB9qFqi.js → package-BVRea5S_.js} +1 -1
- package/dist/{pdf-zGbDDpCi.js → pdf-6hacmnKW.js} +1 -1
- package/dist/{render-common-DeM1ZJiv.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 +113 -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-Be2DFBsb.js → useConfig-DObkR9Aa.js} +50 -4
- package/dist/{useNestedProp-Bux0f4iY.js → useNestedProp-Tc9i6ZcN.js} +1 -1
- package/dist/{useObjectBindings-DUdzTGvh.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-DFw5XDWb.js → vue-ui-3d-bar-BvJwq13N.js} +7 -7
- package/dist/{vue-ui-accordion-BZCjuA3V.js → vue-ui-accordion-15kKhkup.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DRUCkRz8.js → vue-ui-age-pyramid-CVzina7X.js} +7 -7
- package/dist/{vue-ui-annotator-BfKA4YVr.js → vue-ui-annotator-J4Wo2_DR.js} +7 -7
- package/dist/{vue-ui-bullet-B0IfmAiX.js → vue-ui-bullet-CuI5_uF1.js} +8 -8
- package/dist/{vue-ui-bump-C1kUAd9U.js → vue-ui-bump-GGNG4vwu.js} +7 -7
- package/dist/vue-ui-candlestick-Ca9dvzvk.js +2144 -0
- package/dist/{vue-ui-carousel-table-BxUd6pz5.js → vue-ui-carousel-table-DOxh9sEm.js} +5 -5
- package/dist/{vue-ui-chestnut-DHSV3tgH.js → vue-ui-chestnut-DQhC_gB8.js} +6 -6
- package/dist/{vue-ui-chord-DwosQDGy.js → vue-ui-chord-Blnvne2p.js} +9 -9
- package/dist/{vue-ui-circle-pack-OoLvvkpK.js → vue-ui-circle-pack-mNHA1U8B.js} +7 -7
- package/dist/{vue-ui-cursor-DIDq-I8_.js → vue-ui-cursor-D2hgivhn.js} +4 -4
- package/dist/{vue-ui-dag-CEe-6BAo.js → vue-ui-dag-DDSyO2ts.js} +8 -8
- package/dist/{vue-ui-dashboard-Dyx0Ri4u.js → vue-ui-dashboard-C9MnWAnE.js} +70 -70
- package/dist/{vue-ui-digits-aocn4lMx.js → vue-ui-digits-h7H-yHd0.js} +4 -4
- package/dist/{vue-ui-donut-7uSOM7lM.js → vue-ui-donut-D-8OekQ5.js} +3 -3
- package/dist/vue-ui-donut-evolution-CJ6tIbgl.js +1869 -0
- package/dist/{vue-ui-donut-DBwkC_24.js → vue-ui-donut-oY4iu5pY.js} +11 -11
- package/dist/{vue-ui-dumbbell-MGfC3D58.js → vue-ui-dumbbell-52gWeLGK.js} +8 -8
- package/dist/{vue-ui-flow-593TeQ2W.js → vue-ui-flow-edMUCkcr.js} +8 -8
- package/dist/{vue-ui-funnel-DkJUBGun.js → vue-ui-funnel-B08mSlHH.js} +7 -7
- package/dist/{vue-ui-galaxy-BrVH1I3l.js → vue-ui-galaxy-CV59UO9t.js} +10 -10
- package/dist/{vue-ui-gauge-DC4S5TsV.js → vue-ui-gauge-BnBzapom.js} +7 -7
- package/dist/{vue-ui-geo-Yq0FgILc.js → vue-ui-geo-BCmDw5me.js} +8 -8
- package/dist/{vue-ui-gizmo-D9gwOdZE.js → vue-ui-gizmo-BZBV8haQ.js} +4 -4
- package/dist/{vue-ui-heatmap-CIJRLiRS.js → vue-ui-heatmap-CjiffI23.js} +8 -8
- package/dist/{vue-ui-hill-B8mE9MIi.js → vue-ui-hill-D5WV6zro.js} +7 -7
- package/dist/{vue-ui-history-plot-Dj4qkhNI.js → vue-ui-history-plot-Bd06L1Od.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-njm9Qfcd.js → vue-ui-horizontal-bar-B5Yp6Uql.js} +11 -11
- package/dist/{vue-ui-kpi-CFk0QESG.js → vue-ui-kpi-CNreX8BM.js} +4 -4
- package/dist/{vue-ui-label-7gnBMFu5.js → vue-ui-label-BDP67zvQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CUVEBqJw.js → vue-ui-mini-loader-pzS7SsP4.js} +3 -3
- package/dist/{vue-ui-molecule-GqArgNXc.js → vue-ui-molecule-DqeRhja8.js} +6 -6
- package/dist/{vue-ui-mood-radar-Du71PAqx.js → vue-ui-mood-radar-Cgl_QD-j.js} +8 -8
- package/dist/{vue-ui-nested-donuts-BRGYUoVS.js → vue-ui-nested-donuts-MDPBZLnW.js} +10 -10
- package/dist/{vue-ui-onion-C4LsJp_7.js → vue-ui-onion-kgZ3uV3c.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DumwZpjI.js → vue-ui-parallel-coordinate-plot-CJbZCsPd.js} +10 -10
- package/dist/{vue-ui-quadrant-BFEihaNk.js → vue-ui-quadrant-B9efnVWT.js} +10 -10
- package/dist/{vue-ui-quick-chart-COWxCDXU.js → vue-ui-quick-chart-hNOMlqTI.js} +1053 -681
- package/dist/{vue-ui-radar-BZMDCj34.js → vue-ui-radar-DJO16PTU.js} +9 -9
- package/dist/{vue-ui-rating-D0tMtjhc.js → vue-ui-rating-BYLWm5aG.js} +3 -3
- package/dist/{vue-ui-relation-circle-DSNuFlbr.js → vue-ui-relation-circle-DVF3RlHU.js} +7 -7
- package/dist/{vue-ui-ridgeline-DHHjDn73.js → vue-ui-ridgeline-DvgIu54T.js} +10 -10
- package/dist/{vue-ui-rings-BMKxADUw.js → vue-ui-rings-DVU7F6bL.js} +11 -11
- package/dist/{vue-ui-scatter-BKJUWiYg.js → vue-ui-scatter-BtlRfhTt.js} +10 -10
- package/dist/{vue-ui-skeleton-_EBFqU7v.js → vue-ui-skeleton-DcMhyC4L.js} +4 -4
- package/dist/{vue-ui-smiley-DsfTcCOQ.js → vue-ui-smiley-qHvZQJcB.js} +3 -3
- package/dist/{vue-ui-spark-trend-Dj1tZM1l.js → vue-ui-spark-trend-BuHZP190.js} +4 -4
- package/dist/{vue-ui-sparkbar-B7ogNgvT.js → vue-ui-sparkbar-MH9VeqdO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BFGXwszU.js → vue-ui-sparkgauge-Bg_IFD0m.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-c-DSMEiv.js → vue-ui-sparkhistogram-DZu07vIL.js} +5 -5
- package/dist/vue-ui-sparkline-LwEiJPe6.js +2067 -0
- package/dist/{vue-ui-sparkstackbar-DIMZ8Wxa.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-CNnl1U1H.js → vue-ui-strip-plot-BWK3JQr6.js} +8 -8
- package/dist/{vue-ui-table-Bbw0YVee.js → vue-ui-table-CRWoH6dc.js} +6 -6
- package/dist/{vue-ui-table-heatmap-B1uYpEhA.js → vue-ui-table-heatmap-Bu9RiTU0.js} +6 -6
- package/dist/{vue-ui-table-sparkline-D98mkhX0.js → vue-ui-table-sparkline-CTA_6-gu.js} +5 -5
- package/dist/{vue-ui-thermometer-CDYrYD7E.js → vue-ui-thermometer-Y5CnROrM.js} +7 -7
- package/dist/{vue-ui-timer-CW3wa1tF.js → vue-ui-timer-BYEpxxDX.js} +6 -6
- package/dist/{vue-ui-tiremarks-CayzbbTu.js → vue-ui-tiremarks-DBndWNiA.js} +7 -7
- package/dist/{vue-ui-treemap-BuOGDfHZ.js → vue-ui-treemap-Cw8a0oFl.js} +10 -10
- package/dist/{vue-ui-waffle-D47Z_prI.js → vue-ui-waffle-BvfD05mS.js} +11 -11
- package/dist/{vue-ui-wheel-CNF5e3TM.js → vue-ui-wheel-D6NsnLRc.js} +7 -7
- package/dist/{vue-ui-word-cloud-y46KDG7e.js → vue-ui-word-cloud-YrgMp1Fo.js} +8 -8
- package/dist/{vue-ui-world-DKW2yCXn.js → vue-ui-world-BMcqvuJH.js} +8 -8
- package/dist/{vue-ui-xy-G3lMLlIL.js → vue-ui-xy-B6wckF4S.js} +4 -4
- package/dist/vue-ui-xy-Bv7fhRbS.js +5769 -0
- package/dist/{vue-ui-xy-canvas-CMAT-hT1.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-COEVZKW5.js +0 -280
- package/dist/vue-ui-candlestick-KA4AueJw.js +0 -1871
- package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +0 -1552
- package/dist/vue-ui-sparkline-Bm59iQiE.js +0 -1587
- package/dist/vue-ui-stackbar-C53nXwth.js +0 -2369
- package/dist/vue-ui-stackline-D4ehty6i.js +0 -2483
- package/dist/vue-ui-xy-BgmEGWgv.js +0 -5367
|
@@ -1,2483 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, B as r, Ct as i, D as a, Dt as o, Et as s, M as c, P as l, Pt as u, Qt as d, Rt as f, S as p, U as m, Vt as h, X as g, Zt as _, _ as ee, at as v, b as te, c as ne, et as re, ft as ie, gt as ae, ht as oe, i as se, nt as ce, qt as le, t as ue, tn as de, ut as fe, v as pe, vt as me, w as he } from "./lib-DOpaUOQx.js";
|
|
3
|
-
import { n as ge, t as _e } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { n as ve, r as ye, t as be } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as xe } from "./useConfig-Be2DFBsb.js";
|
|
6
|
-
import { t as Se } from "./usePrinter-BBBooAGP.js";
|
|
7
|
-
import { n as Ce, t as we } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as Te } from "./useNestedProp-Bux0f4iY.js";
|
|
9
|
-
import { t as Ee } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as De } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
-
import { t as Oe } from "./useTransitions-g_zBREk2.js";
|
|
12
|
-
import { t as ke } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
-
import { t as Ae } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as je } from "./img-W50sC9SC.js";
|
|
15
|
-
import { n as Me } from "./Title-DeqmC-vN.js";
|
|
16
|
-
import { t as Ne } from "./Shape-VCdxvFV9.js";
|
|
17
|
-
import { t as Pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
|
-
import { l as Fe, t as Ie } from "./useResponsive-ZtArZtUf.js";
|
|
19
|
-
import { t as Le } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
-
import { t as Re } from "./SlicerPreview-BJ4usfYd.js";
|
|
21
|
-
import { t as ze } from "./BaseLegendToggle-DGG65LAR.js";
|
|
22
|
-
import { t as Be } from "./A11yDataTable-DdRsVULz.js";
|
|
23
|
-
import { t as Ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
|
-
import { t as He } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
-
import { t as Ue } from "./Legend-C0Ln0VNe.js";
|
|
26
|
-
import { t as We } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
27
|
-
import { Fragment as y, Teleport as Ge, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as Ke, createSlots as qe, createTextVNode as Je, createVNode as Ye, defineAsyncComponent as Xe, guardReactiveProps as w, mergeProps as Ze, nextTick as Qe, normalizeClass as $e, normalizeProps as T, normalizeStyle as et, onBeforeUnmount as tt, onMounted as nt, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as rt, shallowRef as it, toDisplayString as A, toRefs as at, unref as j, useSlots as ot, watch as st, watchEffect as ct, withCtx as M } from "vue";
|
|
28
|
-
//#region src/components/vue-ui-stackline.vue
|
|
29
|
-
var lt = /* @__PURE__ */ e({ default: () => qt }), ut = ["id"], dt = ["id"], ft = ["id"], pt = { style: { position: "relative" } }, mt = [
|
|
30
|
-
"aria-describedby",
|
|
31
|
-
"xmlns",
|
|
32
|
-
"viewBox"
|
|
33
|
-
], ht = { key: 0 }, gt = [
|
|
34
|
-
"x",
|
|
35
|
-
"y",
|
|
36
|
-
"width",
|
|
37
|
-
"height"
|
|
38
|
-
], _t = { key: 1 }, vt = [
|
|
39
|
-
"x1",
|
|
40
|
-
"x2",
|
|
41
|
-
"y1",
|
|
42
|
-
"y2",
|
|
43
|
-
"stroke",
|
|
44
|
-
"stroke-width",
|
|
45
|
-
"stroke-dasharray"
|
|
46
|
-
], yt = [
|
|
47
|
-
"x1",
|
|
48
|
-
"x2",
|
|
49
|
-
"y1",
|
|
50
|
-
"y2",
|
|
51
|
-
"stroke",
|
|
52
|
-
"stroke-width",
|
|
53
|
-
"stroke-dasharray"
|
|
54
|
-
], bt = [
|
|
55
|
-
"x1",
|
|
56
|
-
"x2",
|
|
57
|
-
"y1",
|
|
58
|
-
"y2",
|
|
59
|
-
"stroke",
|
|
60
|
-
"stroke-width"
|
|
61
|
-
], xt = [
|
|
62
|
-
"x1",
|
|
63
|
-
"x2",
|
|
64
|
-
"y1",
|
|
65
|
-
"y2",
|
|
66
|
-
"stroke",
|
|
67
|
-
"stroke-width"
|
|
68
|
-
], St = [
|
|
69
|
-
"x",
|
|
70
|
-
"y",
|
|
71
|
-
"font-size",
|
|
72
|
-
"fill",
|
|
73
|
-
"font-weight"
|
|
74
|
-
], Ct = [
|
|
75
|
-
"transform",
|
|
76
|
-
"font-size",
|
|
77
|
-
"fill",
|
|
78
|
-
"font-weight"
|
|
79
|
-
], wt = [
|
|
80
|
-
"x",
|
|
81
|
-
"y",
|
|
82
|
-
"width",
|
|
83
|
-
"height",
|
|
84
|
-
"stroke",
|
|
85
|
-
"stroke-width",
|
|
86
|
-
"stroke-linecap",
|
|
87
|
-
"stroke-linejoin",
|
|
88
|
-
"stroke-dasharray"
|
|
89
|
-
], Tt = [
|
|
90
|
-
"d",
|
|
91
|
-
"fill",
|
|
92
|
-
"opacity"
|
|
93
|
-
], Et = [
|
|
94
|
-
"d",
|
|
95
|
-
"stroke",
|
|
96
|
-
"stroke-width"
|
|
97
|
-
], Dt = [
|
|
98
|
-
"x1",
|
|
99
|
-
"x2",
|
|
100
|
-
"y1",
|
|
101
|
-
"y2",
|
|
102
|
-
"stroke"
|
|
103
|
-
], Ot = [
|
|
104
|
-
"transform",
|
|
105
|
-
"font-size",
|
|
106
|
-
"font-weight",
|
|
107
|
-
"fill",
|
|
108
|
-
"text-anchor"
|
|
109
|
-
], kt = { key: 0 }, At = { key: 1 }, jt = [
|
|
110
|
-
"text-anchor",
|
|
111
|
-
"font-size",
|
|
112
|
-
"font-weight",
|
|
113
|
-
"fill",
|
|
114
|
-
"stroke",
|
|
115
|
-
"transform",
|
|
116
|
-
"onClick"
|
|
117
|
-
], Mt = [
|
|
118
|
-
"text-anchor",
|
|
119
|
-
"font-size",
|
|
120
|
-
"fill",
|
|
121
|
-
"transform",
|
|
122
|
-
"innerHTML",
|
|
123
|
-
"onClick"
|
|
124
|
-
], Nt = [
|
|
125
|
-
"x",
|
|
126
|
-
"y",
|
|
127
|
-
"height",
|
|
128
|
-
"width",
|
|
129
|
-
"fill"
|
|
130
|
-
], Pt = { key: 0 }, Ft = [
|
|
131
|
-
"x1",
|
|
132
|
-
"x2",
|
|
133
|
-
"y1",
|
|
134
|
-
"y2",
|
|
135
|
-
"stroke",
|
|
136
|
-
"stroke-width",
|
|
137
|
-
"stroke-dasharray"
|
|
138
|
-
], It = { key: 0 }, Lt = [
|
|
139
|
-
"transform",
|
|
140
|
-
"font-size",
|
|
141
|
-
"fill",
|
|
142
|
-
"font-weight"
|
|
143
|
-
], Rt = [
|
|
144
|
-
"transform",
|
|
145
|
-
"font-size",
|
|
146
|
-
"font-weight",
|
|
147
|
-
"fill"
|
|
148
|
-
], zt = ["data-start", "data-end"], Bt = {
|
|
149
|
-
key: 0,
|
|
150
|
-
style: {
|
|
151
|
-
position: "absolute",
|
|
152
|
-
top: "100%",
|
|
153
|
-
left: "0",
|
|
154
|
-
width: "100%"
|
|
155
|
-
},
|
|
156
|
-
"data-dom-to-png-ignore": "",
|
|
157
|
-
"aria-hidden": "true"
|
|
158
|
-
}, Vt = {
|
|
159
|
-
key: 5,
|
|
160
|
-
class: "vue-data-ui-watermark"
|
|
161
|
-
}, Ht = ["onClick"], Ut = { key: 0 }, Wt = { key: 1 }, Gt = ["innerHTML"], Kt = ["id"], qt = /*#__PURE__*/ Pe({
|
|
162
|
-
__name: "vue-ui-stackline",
|
|
163
|
-
props: {
|
|
164
|
-
config: {
|
|
165
|
-
type: Object,
|
|
166
|
-
default() {
|
|
167
|
-
return {};
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
dataset: {
|
|
171
|
-
type: Array,
|
|
172
|
-
default() {
|
|
173
|
-
return [];
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
selectedXIndex: {
|
|
177
|
-
type: Number,
|
|
178
|
-
default: void 0
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
emits: [
|
|
182
|
-
"selectDatapoint",
|
|
183
|
-
"selectLegend",
|
|
184
|
-
"selectTimeLabel",
|
|
185
|
-
"selectX",
|
|
186
|
-
"copyAlt"
|
|
187
|
-
],
|
|
188
|
-
setup(e, { expose: Pe, emit: lt }) {
|
|
189
|
-
let qt = Xe(() => import("./Tooltip-DZ4a3XJQ.js")), Jt = Xe(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), Yt = Xe(() => import("./vue-ui-accordion-BZCjuA3V.js").then((e) => e.n)), Xt = Xe(() => import("./DataTable-BD1eZ0zB.js")), Zt = Xe(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), Qt = Xe(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), $t = Xe(() => import("./PackageVersion-KI_qWJHZ.js").then((e) => e.t)), en = Xe(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_stackline: tn } = xe(), { isThemeValid: nn, warnInvalidTheme: rn } = Ee(), an = ot(), N = e, on = lt, sn = b({
|
|
190
|
-
get() {
|
|
191
|
-
return !!N.dataset && N.dataset.length;
|
|
192
|
-
},
|
|
193
|
-
set(e) {
|
|
194
|
-
return e;
|
|
195
|
-
}
|
|
196
|
-
}), cn = D(null), P = D(g()), ln = D(!1), F = D([]), un = D(0), dn = D(null), fn = D(null), pn = D(null), mn = D(null), hn = D(null), gn = D(!1), _n = D(!1), vn = D(0), yn = D(0), bn = D(0), xn = D(!1), Sn = D(null), Cn = D(null), wn = D(!1), Tn = D(null), En = D(null), Dn = D(null), On = D(null), kn = D(null), An = it(null), jn = D(!1), Mn = D(0), Nn = D(0), Pn = D(null), Fn = D({
|
|
197
|
-
x: 0,
|
|
198
|
-
y: 0
|
|
199
|
-
}), In = D("pointer"), Ln = ke({
|
|
200
|
-
elementRef: An,
|
|
201
|
-
minimumWidth: 2,
|
|
202
|
-
minimumHeight: 2,
|
|
203
|
-
stableFramesRequired: 2,
|
|
204
|
-
once: !1,
|
|
205
|
-
onSizeAccepted: () => {
|
|
206
|
-
Bn();
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
function Rn() {
|
|
210
|
-
An.value = cn.value?.parentNode ?? null;
|
|
211
|
-
}
|
|
212
|
-
function zn() {
|
|
213
|
-
return new Promise((e) => {
|
|
214
|
-
requestAnimationFrame(() => {
|
|
215
|
-
requestAnimationFrame(e);
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
async function Bn() {
|
|
220
|
-
let e = ++Nn.value;
|
|
221
|
-
jn.value = !1, await Qe(), await zn(), await zn(), e === Nn.value && (Mn.value += 1, jn.value = !0);
|
|
222
|
-
}
|
|
223
|
-
let Vn = D(null), Hn = D(!1);
|
|
224
|
-
function Un() {
|
|
225
|
-
Hn.value = !Hn.value;
|
|
226
|
-
}
|
|
227
|
-
nt(() => {
|
|
228
|
-
Rn(), Ln.start(), xn.value = !0, _r(), Bn();
|
|
229
|
-
});
|
|
230
|
-
let I = D(nr()), L = b(() => I.value.userOptions), R = b(() => I.value.style.chart.grid.x.timeLabels), z = b(() => I.value.style.chart.grid), B = b(() => I.value.style.chart.lines), V = b(() => I.value.style.chart.tooltip), H = b(() => I.value.style.chart);
|
|
231
|
-
ge({
|
|
232
|
-
config: () => I.value,
|
|
233
|
-
dataset: () => N.dataset,
|
|
234
|
-
component: "VueUiStackline",
|
|
235
|
-
rules: [
|
|
236
|
-
_e.emptyArray,
|
|
237
|
-
{
|
|
238
|
-
test: (e) => e.some((e) => e.series.length > 200),
|
|
239
|
-
message: [
|
|
240
|
-
"👀 Some series have > 200 datapoints, which can impact performance. Consider:",
|
|
241
|
-
"",
|
|
242
|
-
"▶️ Aggregating data to larger time units, to reduce the number of datapoints.",
|
|
243
|
-
"",
|
|
244
|
-
"▶️ Using filters to constraint the data to a specific time range."
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
test: (e) => e.length > 6,
|
|
249
|
-
message: [
|
|
250
|
-
"👀 The number of series > 6, which can make the chart hard to read. Consider:",
|
|
251
|
-
"",
|
|
252
|
-
"▶️ Grouping small values into an \"Other\" category.",
|
|
253
|
-
"",
|
|
254
|
-
"▶️ Using filters to let users choose a maximum number of series to display."
|
|
255
|
-
]
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
});
|
|
259
|
-
let { transitionEnabled: Wn } = Oe({
|
|
260
|
-
config: () => I.value.transitions,
|
|
261
|
-
dataset: () => N.dataset
|
|
262
|
-
}), Gn = b(() => I.value.userOptions.useCursorPointer), Kn = b(() => de({
|
|
263
|
-
defaultConfig: {
|
|
264
|
-
userOptions: { show: !1 },
|
|
265
|
-
useCssAnimation: !1,
|
|
266
|
-
table: { show: !1 },
|
|
267
|
-
tooltip: { show: !1 },
|
|
268
|
-
style: { chart: {
|
|
269
|
-
backgroundColor: "#99999930",
|
|
270
|
-
lines: {
|
|
271
|
-
totalValues: { show: !1 },
|
|
272
|
-
dataLabels: { show: !1 }
|
|
273
|
-
},
|
|
274
|
-
grid: {
|
|
275
|
-
frame: { stroke: "#6A6A6A" },
|
|
276
|
-
scale: {
|
|
277
|
-
scaleMin: 0,
|
|
278
|
-
scaleMax: 144
|
|
279
|
-
},
|
|
280
|
-
x: {
|
|
281
|
-
axisColor: "#6A6A6A",
|
|
282
|
-
linesColor: "#6A6A6A",
|
|
283
|
-
axisName: { show: !1 },
|
|
284
|
-
timeLabels: { show: !1 }
|
|
285
|
-
},
|
|
286
|
-
y: {
|
|
287
|
-
axisColor: "#6A6A6A",
|
|
288
|
-
linesColor: "#6A6A6A",
|
|
289
|
-
axisName: { show: !1 },
|
|
290
|
-
axisLabels: { show: !1 }
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
legend: { backgroundColor: "transparent" },
|
|
294
|
-
padding: {
|
|
295
|
-
left: 24,
|
|
296
|
-
right: 24,
|
|
297
|
-
bottom: 12
|
|
298
|
-
},
|
|
299
|
-
zoom: {
|
|
300
|
-
show: !1,
|
|
301
|
-
startIndex: null,
|
|
302
|
-
endIndex: null,
|
|
303
|
-
keepState: !1
|
|
304
|
-
}
|
|
305
|
-
} }
|
|
306
|
-
},
|
|
307
|
-
userConfig: I.value.skeletonConfig ?? {}
|
|
308
|
-
})), { loading: qn, FINAL_DATASET: Jn, manualLoading: Yn } = Ce({
|
|
309
|
-
...at(N),
|
|
310
|
-
FINAL_CONFIG: I,
|
|
311
|
-
prepareConfig: nr,
|
|
312
|
-
callback: () => {
|
|
313
|
-
Promise.resolve().then(async () => {
|
|
314
|
-
(!H.value.zoom.keepState || !di.value || J.value.start === 0 && J.value.end === 0) && await pi();
|
|
315
|
-
});
|
|
316
|
-
},
|
|
317
|
-
skeletonDataset: N.config?.skeletonDataset ?? [{
|
|
318
|
-
name: "",
|
|
319
|
-
series: [
|
|
320
|
-
3,
|
|
321
|
-
2,
|
|
322
|
-
1,
|
|
323
|
-
5,
|
|
324
|
-
13,
|
|
325
|
-
21,
|
|
326
|
-
8,
|
|
327
|
-
89,
|
|
328
|
-
34,
|
|
329
|
-
55
|
|
330
|
-
],
|
|
331
|
-
color: "#8A8A8A"
|
|
332
|
-
}, {
|
|
333
|
-
name: "",
|
|
334
|
-
series: [
|
|
335
|
-
1,
|
|
336
|
-
2,
|
|
337
|
-
3,
|
|
338
|
-
5,
|
|
339
|
-
8,
|
|
340
|
-
13,
|
|
341
|
-
21,
|
|
342
|
-
34,
|
|
343
|
-
55,
|
|
344
|
-
89
|
|
345
|
-
],
|
|
346
|
-
color: "#CACACA"
|
|
347
|
-
}],
|
|
348
|
-
skeletonConfig: de({
|
|
349
|
-
defaultConfig: I.value,
|
|
350
|
-
userConfig: Kn.value
|
|
351
|
-
})
|
|
352
|
-
}), { userOptionsVisible: Xn, setUserOptionsVisibility: Zn, keepUserOptionState: Qn } = Ve({ config: I.value }), { svgRef: $n } = He({ config: H.value.title });
|
|
353
|
-
function er() {
|
|
354
|
-
wn.value = !0, Zn(!0);
|
|
355
|
-
}
|
|
356
|
-
function tr() {
|
|
357
|
-
Zn(!1), wn.value = !1, Pn.value = null, In.value = "pointer", ln.value = !1, $.value = null, on("selectX", {
|
|
358
|
-
index: null,
|
|
359
|
-
indexLabel: null,
|
|
360
|
-
dataset: null
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
function nr() {
|
|
364
|
-
let e = Te({
|
|
365
|
-
userConfig: N.config,
|
|
366
|
-
defaultConfig: tn
|
|
367
|
-
}), t = {};
|
|
368
|
-
N.config && i(N.config, "style.chart.grid.x.timeLabels.showFirstAndLast") && (e.style.chart.grid.x.timeLabels.showFirstAndLast = !!N.config.style.chart.grid.x.timeLabels.showFirstAndLast);
|
|
369
|
-
let r = e.theme;
|
|
370
|
-
if (r) {
|
|
371
|
-
if (!nn.value(e)) rn(e), t = e;
|
|
372
|
-
else {
|
|
373
|
-
let i = Te({
|
|
374
|
-
userConfig: We[r] || N.config,
|
|
375
|
-
defaultConfig: e
|
|
376
|
-
});
|
|
377
|
-
t = {
|
|
378
|
-
...Te({
|
|
379
|
-
userConfig: N.config,
|
|
380
|
-
defaultConfig: i
|
|
381
|
-
}),
|
|
382
|
-
customPalette: e.customPalette.length ? e.customPalette : n[r] || h
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
} else t = e;
|
|
386
|
-
return t;
|
|
387
|
-
}
|
|
388
|
-
let rr = b(() => B.value.dataLabels.hideUnderValue !== null), ir = b(() => B.value.dataLabels.hideUnderPercentage !== null);
|
|
389
|
-
function ar(e) {
|
|
390
|
-
let t = re(e);
|
|
391
|
-
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
392
|
-
}
|
|
393
|
-
let or = ar(N.config);
|
|
394
|
-
st(() => N.config, (e, t) => {
|
|
395
|
-
let n = ar(e), r = n !== or;
|
|
396
|
-
or = n;
|
|
397
|
-
let i = nr();
|
|
398
|
-
if (!r) {
|
|
399
|
-
I.value.style.chart.tooltip = i.style.chart.tooltip, U.value.showTooltip = I.value.style.chart.tooltip.show;
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
qn.value || (I.value = i), Xn.value = !I.value.userOptions.showOnChartHover, U.value.dataLabels.show = B.value.dataLabels.show, U.value.showTable = I.value.table.show, U.value.showTooltip = V.value.show, _r({ resetSlicer: !H.value.zoom.keepState }), vn.value += 1, yn.value += 1, bn.value += 1, W.value.width = H.value.width, W.value.height = H.value.height, W.value.paddingRatio = {
|
|
403
|
-
top: H.value.padding.top / H.value.height,
|
|
404
|
-
right: H.value.padding.right / H.value.width,
|
|
405
|
-
bottom: H.value.padding.bottom / H.value.height,
|
|
406
|
-
left: H.value.padding.left / H.value.width
|
|
407
|
-
}, Rn(), Bn(), !H.value.zoom.keepState || !di.value || J.value.start === 0 && J.value.end === 0 ? pi() : Nr();
|
|
408
|
-
}, { deep: !0 }), st(() => N.dataset, (e) => {
|
|
409
|
-
Array.isArray(e) && e.length > 0 && (Yn.value = !1), H.value.zoom.keepState ? Nr() : Ir(), Rn(), Bn();
|
|
410
|
-
}, { deep: !0 });
|
|
411
|
-
let U = D({
|
|
412
|
-
dataLabels: { show: B.value.dataLabels.show },
|
|
413
|
-
showTable: I.value.table.show,
|
|
414
|
-
showTooltip: V.value.show
|
|
415
|
-
});
|
|
416
|
-
st(I, () => {
|
|
417
|
-
U.value = {
|
|
418
|
-
dataLabels: { show: B.value.dataLabels.show },
|
|
419
|
-
showTable: I.value.table.show,
|
|
420
|
-
showTooltip: V.value.show
|
|
421
|
-
};
|
|
422
|
-
}, { immediate: !0 });
|
|
423
|
-
let { isPrinting: sr, isImaging: cr, generatePdf: lr, generateImage: ur } = Se({
|
|
424
|
-
elementId: `stackline_${P.value}`,
|
|
425
|
-
fileName: H.value.title.text || "vue-ui-stackline",
|
|
426
|
-
options: I.value.userOptions.print
|
|
427
|
-
}), dr = b(() => I.value.userOptions.show && !H.value.title.text), W = D({
|
|
428
|
-
width: H.value.width,
|
|
429
|
-
height: H.value.height,
|
|
430
|
-
paddingRatio: {
|
|
431
|
-
top: H.value.padding.top / H.value.height,
|
|
432
|
-
right: H.value.padding.right / H.value.width,
|
|
433
|
-
bottom: H.value.padding.bottom / H.value.height,
|
|
434
|
-
left: H.value.padding.left / H.value.width
|
|
435
|
-
}
|
|
436
|
-
}), fr = b(() => he(I.value.customPalette)), pr = it(null), mr = it(null), hr = D(null), gr = b(() => I.value.debug);
|
|
437
|
-
function _r({ resetSlicer: e = !0 } = {}) {
|
|
438
|
-
if (f(N.dataset) ? (v({
|
|
439
|
-
componentName: "VueUiStackline",
|
|
440
|
-
type: "dataset",
|
|
441
|
-
debug: gr.value
|
|
442
|
-
}), Yn.value = !0) : N.dataset.forEach((e, t) => {
|
|
443
|
-
me({
|
|
444
|
-
datasetObject: e,
|
|
445
|
-
requiredAttributes: ["name", "series"]
|
|
446
|
-
}).forEach((e) => {
|
|
447
|
-
sn.value = !1, v({
|
|
448
|
-
componentName: "VueUiStackline",
|
|
449
|
-
type: "datasetSerieAttribute",
|
|
450
|
-
property: e,
|
|
451
|
-
index: t,
|
|
452
|
-
debug: gr.value
|
|
453
|
-
}), Yn.value = !0;
|
|
454
|
-
});
|
|
455
|
-
}), f(N.dataset) || (Yn.value = I.value.loading), setTimeout(() => {
|
|
456
|
-
_n.value = !0;
|
|
457
|
-
}, 10), I.value.responsive) {
|
|
458
|
-
let e = Fe(() => {
|
|
459
|
-
_n.value = !1;
|
|
460
|
-
let { width: e, height: t } = Ie({
|
|
461
|
-
chart: cn.value,
|
|
462
|
-
noTitle: mn.value,
|
|
463
|
-
title: H.value.title.text ? dn.value : null,
|
|
464
|
-
legend: H.value.legend.show ? fn.value : null,
|
|
465
|
-
slicer: H.value.zoom.show && q.value > 6 ? pn.value.$el : null,
|
|
466
|
-
source: hn.value
|
|
467
|
-
});
|
|
468
|
-
requestAnimationFrame(() => {
|
|
469
|
-
W.value.width = e, W.value.height = t - 12, clearTimeout(hr.value), hr.value = setTimeout(() => {
|
|
470
|
-
_n.value = !0;
|
|
471
|
-
}, 10);
|
|
472
|
-
});
|
|
473
|
-
});
|
|
474
|
-
pr.value && (mr.value && pr.value.unobserve(mr.value), pr.value.disconnect()), pr.value = new ResizeObserver(e), mr.value = cn.value.parentNode, pr.value.observe(mr.value);
|
|
475
|
-
}
|
|
476
|
-
e && pi();
|
|
477
|
-
}
|
|
478
|
-
tt(() => {
|
|
479
|
-
Ln.stop(), pr.value && (mr.value && pr.value.unobserve(mr.value), pr.value.disconnect());
|
|
480
|
-
});
|
|
481
|
-
let vr = b(() => z.value.y.position === "right");
|
|
482
|
-
function yr() {
|
|
483
|
-
let e = 0;
|
|
484
|
-
Dn.value && (e = Array.from(Dn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
485
|
-
let n = t.getComputedTextLength();
|
|
486
|
-
return n > e ? n : e;
|
|
487
|
-
}, 0));
|
|
488
|
-
let t = En.value ? En.value.getBoundingClientRect().width + z.value.y.axisName.fontSize + z.value.y.axisName.offsetX : 0;
|
|
489
|
-
return {
|
|
490
|
-
left: vr.value ? 0 : e + t,
|
|
491
|
-
right: vr.value ? e + t : 0,
|
|
492
|
-
scaleLabelsWidth: e,
|
|
493
|
-
yAxisLabelWidth: t
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
let br = D(0), xr = D(0), Sr = D(0);
|
|
497
|
-
function Cr() {
|
|
498
|
-
let e = On.value;
|
|
499
|
-
if (!e) {
|
|
500
|
-
xr.value = 0;
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
try {
|
|
504
|
-
let t = e.getBBox();
|
|
505
|
-
xr.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
506
|
-
} catch {
|
|
507
|
-
xr.value = 0;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function wr() {
|
|
511
|
-
Sr.value && cancelAnimationFrame(Sr.value), Sr.value = requestAnimationFrame(() => {
|
|
512
|
-
requestAnimationFrame(() => {
|
|
513
|
-
Cr();
|
|
514
|
-
});
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
tt(() => {
|
|
518
|
-
Sr.value && cancelAnimationFrame(Sr.value), xr.value = 0, br.value = 0;
|
|
519
|
-
});
|
|
520
|
-
let Tr = b(() => {
|
|
521
|
-
let e = 0;
|
|
522
|
-
if (Tn.value) try {
|
|
523
|
-
e = Tn.value.getBBox().height;
|
|
524
|
-
} catch {
|
|
525
|
-
e = 0;
|
|
526
|
-
}
|
|
527
|
-
let t = R.value.show ? xr.value : 0;
|
|
528
|
-
return e + t;
|
|
529
|
-
}), G = b(() => {
|
|
530
|
-
Mn.value;
|
|
531
|
-
let { height: e, width: t } = W.value, { right: n } = W.value.paddingRatio, r = B.value.totalValues.show && N.dataset && N.dataset.length > 1 ? B.value.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
532
|
-
if (z.value.y.axisLabels.show) {
|
|
533
|
-
let e = yr();
|
|
534
|
-
i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
|
|
535
|
-
}
|
|
536
|
-
let c = H.value.padding.top + r, l = t - t * n - br.value - a, u = e - H.value.padding.bottom - Tr.value - r, d = H.value.padding.left + i, f = t - d - t * n - br.value - a, p = e - c - H.value.padding.bottom - Tr.value - r;
|
|
537
|
-
return {
|
|
538
|
-
chartHeight: Math.max(0, e),
|
|
539
|
-
chartWidth: Math.max(0, t),
|
|
540
|
-
top: c,
|
|
541
|
-
right: Math.max(0, l),
|
|
542
|
-
bottom: Math.max(0, u),
|
|
543
|
-
left: Math.max(0, d),
|
|
544
|
-
width: Math.max(0, f),
|
|
545
|
-
height: Math.max(0, p),
|
|
546
|
-
offsetLeftAxis: i,
|
|
547
|
-
offsetRightAxis: a,
|
|
548
|
-
scaleLabelsWidth: o,
|
|
549
|
-
yAxisLabelWidth: s
|
|
550
|
-
};
|
|
551
|
-
}), Er = b(() => {
|
|
552
|
-
let { left: e, top: t, width: n, height: r } = G.value, i = J.value.start, a = J.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (Y.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (Y.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
553
|
-
fill: H.value.zoom.preview.fill,
|
|
554
|
-
stroke: H.value.zoom.preview.stroke,
|
|
555
|
-
"stroke-width": H.value.zoom.preview.strokeWidth,
|
|
556
|
-
"stroke-dasharray": H.value.zoom.preview.strokeDasharray,
|
|
557
|
-
"stroke-linecap": "round",
|
|
558
|
-
"stroke-linejoin": "round",
|
|
559
|
-
style: {
|
|
560
|
-
pointerEvents: "none",
|
|
561
|
-
transition: "none !important",
|
|
562
|
-
animation: "none !important"
|
|
563
|
-
}
|
|
564
|
-
}, d = n / o;
|
|
565
|
-
return {
|
|
566
|
-
x: e + s * d,
|
|
567
|
-
y: t,
|
|
568
|
-
width: l * d,
|
|
569
|
-
height: r,
|
|
570
|
-
...u
|
|
571
|
-
};
|
|
572
|
-
}), K = b(() => Jn.value.map((e, t) => {
|
|
573
|
-
let n = g(), r = p(e.color) || fr.value[t] || h[t] || h[t % h.length];
|
|
574
|
-
return {
|
|
575
|
-
...e,
|
|
576
|
-
shape: e.shape || "circle",
|
|
577
|
-
standalone: !!e.standalone,
|
|
578
|
-
series: JSON.parse(JSON.stringify(e.series)).map((e) => B.value.distributed ? Math.abs(e) : e),
|
|
579
|
-
seriesSource: e.series,
|
|
580
|
-
signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
|
|
581
|
-
absoluteIndex: t,
|
|
582
|
-
id: n,
|
|
583
|
-
color: r
|
|
584
|
-
};
|
|
585
|
-
})), Dr = b(() => K.value.filter((e) => !F.value.includes(e.id) && !e.standalone)), Or = b(() => K.value.filter((e) => !F.value.includes(e.id) && e.standalone)), q = b(() => {
|
|
586
|
-
let e = Math.max(...K.value.filter((e) => !F.value.includes(e.id)).map((e) => e.series.length));
|
|
587
|
-
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
588
|
-
});
|
|
589
|
-
function kr(e) {
|
|
590
|
-
Vn.value = e;
|
|
591
|
-
}
|
|
592
|
-
let J = D({
|
|
593
|
-
start: 0,
|
|
594
|
-
end: Math.max(...Jn.value.map((e) => e.series.length))
|
|
595
|
-
}), Y = D({
|
|
596
|
-
start: 0,
|
|
597
|
-
end: Math.max(...Jn.value.map((e) => e.series.length))
|
|
598
|
-
});
|
|
599
|
-
function Ar(e) {
|
|
600
|
-
return (J.value.start ?? 0) + (e ?? 0);
|
|
601
|
-
}
|
|
602
|
-
let jr = b(() => H.value.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
603
|
-
function Mr(e, t) {
|
|
604
|
-
Y.value[e] = t;
|
|
605
|
-
}
|
|
606
|
-
function Nr() {
|
|
607
|
-
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
608
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, pn.value && (pn.value.setStartValue(t), pn.value.setEndValue(n));
|
|
609
|
-
}
|
|
610
|
-
let Pr = D(null);
|
|
611
|
-
function Fr() {
|
|
612
|
-
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
613
|
-
}
|
|
614
|
-
tt(() => {
|
|
615
|
-
Pr.value && cancelAnimationFrame(Pr.value);
|
|
616
|
-
});
|
|
617
|
-
async function Ir({ force: e = !1 } = {}) {
|
|
618
|
-
if (H.value.zoom.keepState && !e && di.value && (J.value.start !== 0 || J.value.end !== 0)) {
|
|
619
|
-
Nr();
|
|
620
|
-
return;
|
|
621
|
-
}
|
|
622
|
-
pi(), await Qe(), Pr.value && cancelAnimationFrame(Pr.value), Pr.value = requestAnimationFrame(async () => {
|
|
623
|
-
await Fr(), pi();
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
let Lr = b(() => Math.max(0, G.value.width / (J.value.end - J.value.start))), Rr = b(() => _(Dr.value.map((e) => ({
|
|
627
|
-
...e,
|
|
628
|
-
series: e.series.map((e) => e ?? 0)
|
|
629
|
-
}))).slice(J.value.start, J.value.end)), zr = b(() => F.value.length === K.value.length), Br = b(() => {
|
|
630
|
-
if (!H.value.zoom.minimap.show) return [];
|
|
631
|
-
let e = K.value.filter((e) => zr.value ? !0 : !F.value.includes(e.id) && !e.standalone);
|
|
632
|
-
if (e.length) return _(e.map((e) => ({
|
|
633
|
-
...e,
|
|
634
|
-
series: (e.series || []).map((e) => e ?? 0)
|
|
635
|
-
})));
|
|
636
|
-
let t = Or.value;
|
|
637
|
-
if (!t.length) return [];
|
|
638
|
-
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
639
|
-
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
640
|
-
}), Vr = b(() => {
|
|
641
|
-
if (!H.value.zoom.minimap.show) return [];
|
|
642
|
-
let e = K.value.filter((e) => zr.value ? !0 : !F.value.includes(e.id) && !e.standalone), t = Or.value, n = e.length ? [{
|
|
643
|
-
name: "",
|
|
644
|
-
series: Br.value,
|
|
645
|
-
color: "#000000",
|
|
646
|
-
isVisible: !0
|
|
647
|
-
}] : [], r = t.map((e) => ({
|
|
648
|
-
name: e.name || "",
|
|
649
|
-
series: (e.series || []).map((e) => e ?? 0),
|
|
650
|
-
color: e.color,
|
|
651
|
-
isVisible: !0
|
|
652
|
-
}));
|
|
653
|
-
return n.concat(r);
|
|
654
|
-
}), Hr = b(() => _(Dr.value.filter((e) => !F.value.includes(e.id)).map((e) => ({
|
|
655
|
-
...e,
|
|
656
|
-
series: e.series.map((t, n) => {
|
|
657
|
-
let r = t ?? 0;
|
|
658
|
-
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
659
|
-
})
|
|
660
|
-
}))).slice(J.value.start, J.value.end)), Ur = b(() => {
|
|
661
|
-
let e = Dr.value.filter((e) => !F.value.includes(e.id));
|
|
662
|
-
return {
|
|
663
|
-
positive: _(e.map((e) => ({
|
|
664
|
-
...e,
|
|
665
|
-
series: e.series.slice(J.value.start, J.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
|
|
666
|
-
}))),
|
|
667
|
-
negative: _(e.map((e) => ({
|
|
668
|
-
...e,
|
|
669
|
-
series: e.series.slice(J.value.start, J.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
670
|
-
})))
|
|
671
|
-
};
|
|
672
|
-
}), Wr = b(() => {
|
|
673
|
-
let e = Math.max(0, J.value.end - J.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
674
|
-
return Or.value.forEach((r) => {
|
|
675
|
-
for (let i = 0; i < e; i += 1) {
|
|
676
|
-
let e = r.series[J.value.start + i] ?? 0;
|
|
677
|
-
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
678
|
-
}
|
|
679
|
-
}), {
|
|
680
|
-
positive: t,
|
|
681
|
-
negative: n
|
|
682
|
-
};
|
|
683
|
-
}), Gr = b(() => Hr.value.map((e, t) => ({
|
|
684
|
-
value: e,
|
|
685
|
-
sign: e >= 0 ? 1 : -1
|
|
686
|
-
})));
|
|
687
|
-
function Kr() {
|
|
688
|
-
return { y0: Jr.value?.[0]?.zero ?? G.value.bottom };
|
|
689
|
-
}
|
|
690
|
-
function qr(e) {
|
|
691
|
-
let { y0: t } = Kr(), n = B.value.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, G.value.top - B.value.totalValues.fontSize * 1.3), G.value.bottom + B.value.totalValues.fontSize * 2);
|
|
692
|
-
if ((Gr.value?.[e]?.value ?? 0) >= 0 || B.value.distributed) {
|
|
693
|
-
let n = Infinity;
|
|
694
|
-
for (let t of X.value || []) {
|
|
695
|
-
let r = t?.series?.[e], i = t?.topY?.[e];
|
|
696
|
-
(r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
|
|
697
|
-
}
|
|
698
|
-
return i((Number.isFinite(n) ? n : t) - r - B.value.totalValues.offsetY);
|
|
699
|
-
}
|
|
700
|
-
{
|
|
701
|
-
let a = -Infinity;
|
|
702
|
-
for (let t of X.value || []) {
|
|
703
|
-
let n = t?.series?.[e], r = t?.topY?.[e];
|
|
704
|
-
(n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
|
|
705
|
-
}
|
|
706
|
-
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + B.value.totalValues.offsetY);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
let Jr = b(() => {
|
|
710
|
-
let e = Math.max(...Ur.value.positive, 0), t = Math.min(...Ur.value.negative, 0), n = Math.max(...Wr.value.positive, 0), r = Math.min(...Wr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
711
|
-
-Infinity,
|
|
712
|
-
Infinity,
|
|
713
|
-
NaN,
|
|
714
|
-
void 0,
|
|
715
|
-
null
|
|
716
|
-
].includes(a) ? 0 : a, s = z.value.scale.scaleMin, c = z.value.scale.scaleMax, l = !B.value.distributed && (s !== null || c !== null), u = s !== null && !B.value.distributed ? s : o > 0 ? 0 : o, d = c !== null && !B.value.distributed ? c : i < 0 ? 0 : i, f = l ? pe(u, d, z.value.scale.ticks) : ee(u, d, z.value.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, h = m === 0 || !Number.isFinite(m) ? 1 : m, g = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], _ = G.value.bottom - G.value.height * (p / h);
|
|
717
|
-
return g.map((e) => {
|
|
718
|
-
let t = Number(e) || 0, n = G.value.bottom - G.value.height * ((t + p) / h);
|
|
719
|
-
return {
|
|
720
|
-
zero: _,
|
|
721
|
-
y: n,
|
|
722
|
-
x: vr.value ? Z.value.right + 8 : Z.value.left - 8,
|
|
723
|
-
value: t
|
|
724
|
-
};
|
|
725
|
-
});
|
|
726
|
-
}), Yr = D([]), Xr = D([]), Zr = 0;
|
|
727
|
-
ct(() => {
|
|
728
|
-
let e = ++Zr;
|
|
729
|
-
(async () => {
|
|
730
|
-
let t = await be({
|
|
731
|
-
values: R.value.values,
|
|
732
|
-
maxDatapoints: q.value,
|
|
733
|
-
formatter: R.value.datetimeFormatter,
|
|
734
|
-
start: J.value.start,
|
|
735
|
-
end: J.value.end
|
|
736
|
-
});
|
|
737
|
-
e === Zr && (Yr.value = t);
|
|
738
|
-
})();
|
|
739
|
-
});
|
|
740
|
-
let Qr = 0;
|
|
741
|
-
ct(() => {
|
|
742
|
-
let e = ++Qr;
|
|
743
|
-
(async () => {
|
|
744
|
-
let t = await be({
|
|
745
|
-
values: R.value.values,
|
|
746
|
-
maxDatapoints: q.value,
|
|
747
|
-
formatter: R.value.datetimeFormatter,
|
|
748
|
-
start: 0,
|
|
749
|
-
end: q.value
|
|
750
|
-
});
|
|
751
|
-
e === Qr && (Xr.value = t);
|
|
752
|
-
})();
|
|
753
|
-
});
|
|
754
|
-
let $r = b(() => {
|
|
755
|
-
let e = Math.max(1, Math.floor(Number(R.value.modulo) || 1)), t = (Yr.value || []).map((e) => e?.text ?? ""), n = (Xr.value || []).map((e) => e?.text ?? ""), r = J.value.start ?? 0, i = r > 0 || t.length < n.length;
|
|
756
|
-
return oe({
|
|
757
|
-
configuredModulo: e,
|
|
758
|
-
visibleTexts: t,
|
|
759
|
-
allTexts: n,
|
|
760
|
-
startAbs: r,
|
|
761
|
-
isZoomed: i
|
|
762
|
-
});
|
|
763
|
-
});
|
|
764
|
-
function ei(e) {
|
|
765
|
-
let t = R.value, n = Yr.value || [], r = Xr.value || [], i = J.value.start ?? 0, a = q.value, o = n.map((e) => e?.text ?? ""), s = r.map((e) => e?.text ?? ""), c = ne(!!t.showOnlyFirstAndLast, !!t.showOnlyAtModulo, $r.value, o, s, i, e, a);
|
|
766
|
-
if (!t.showFirstAndLast || t.showOnlyFirstAndLast || !c.length) return c;
|
|
767
|
-
let l = c.length - 1;
|
|
768
|
-
return c.map((e, t) => t !== 0 && t !== l ? e : {
|
|
769
|
-
...e,
|
|
770
|
-
text: o[t] ?? ""
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
let ti = b(() => ei($.value)), ni = b(() => ei(null));
|
|
774
|
-
ct(() => {
|
|
775
|
-
R.value.show, R.value.fontSize, R.value.rotation, R.value.offsetY, (ni.value || []).map((e) => e?.text ?? "").join("|"), W.value.width, W.value.height, On.value, Tn.value, wr();
|
|
776
|
-
}, { flush: "post" });
|
|
777
|
-
let ri = D({
|
|
778
|
-
months: [],
|
|
779
|
-
shortMonths: [],
|
|
780
|
-
days: [],
|
|
781
|
-
shortDays: []
|
|
782
|
-
}), ii = 0;
|
|
783
|
-
ct(() => {
|
|
784
|
-
let e = ++ii, t = R.value.datetimeFormatter;
|
|
785
|
-
(async () => {
|
|
786
|
-
let n = await ye(t.locale).catch(() => ye("en"));
|
|
787
|
-
e === ii && (ri.value = n.data);
|
|
788
|
-
})();
|
|
789
|
-
});
|
|
790
|
-
let ai = b(() => {
|
|
791
|
-
let e = R.value.datetimeFormatter, t = ve({
|
|
792
|
-
useUTC: e.useUTC,
|
|
793
|
-
locale: ri.value,
|
|
794
|
-
januaryAsYear: e.januaryAsYear
|
|
795
|
-
});
|
|
796
|
-
return (e, n) => {
|
|
797
|
-
let r = R.value.values?.[e];
|
|
798
|
-
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
799
|
-
};
|
|
800
|
-
}), oi = b(() => (R.value.values || []).map((e, t) => ({
|
|
801
|
-
text: ai.value(t, H.value.zoom.timeFormat),
|
|
802
|
-
absoluteIndex: t
|
|
803
|
-
}))), si = b(() => (R.value.values || []).map((e, t) => ({
|
|
804
|
-
text: ai.value(t, V.value.timeFormat),
|
|
805
|
-
absoluteIndex: t
|
|
806
|
-
}))), ci = b(() => {
|
|
807
|
-
if (!sn.value && !qn.value) return [];
|
|
808
|
-
let e = G.value.height, t = Jr.value[0] ? Jr.value[0].zero : G.value.bottom, n = J.value.start ?? 0, r = J.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Ur.value.positive, 0), o = Math.min(...Ur.value.negative, 0), s = Math.max(...Wr.value.positive, 0), c = Math.min(...Wr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !B.value.distributed && (z.value.scale.scaleMax !== null || z.value.scale.scaleMin !== null) ? pe(z.value.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.scale.scaleMin, z.value.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.scale.scaleMax, z.value.scale.ticks) : ee(z.value.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.scale.scaleMin, z.value.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.scale.scaleMax, z.value.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), g = (e) => i <= 1 ? G.value.left + G.value.width / 2 : G.value.left + e / (i - 1) * G.value.width;
|
|
809
|
-
return K.value.filter((e) => !F.value.includes(e.id)).map((r) => {
|
|
810
|
-
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
811
|
-
for (let u = 0; u < i; u += 1) {
|
|
812
|
-
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : B.value.distributed ? g / (Rr.value[u] || 1) : g / p;
|
|
813
|
-
if (g >= 0) {
|
|
814
|
-
let n = e * Math.abs(_);
|
|
815
|
-
if (r.standalone) c[u] = t, l[u] = t - n;
|
|
816
|
-
else {
|
|
817
|
-
let e = m[u], r = e + n;
|
|
818
|
-
c[u] = t - e, l[u] = t - r, m[u] = r;
|
|
819
|
-
}
|
|
820
|
-
} else {
|
|
821
|
-
let n = e * Math.abs(_);
|
|
822
|
-
if (r.standalone) c[u] = t, l[u] = t + n;
|
|
823
|
-
else {
|
|
824
|
-
let e = h[u], r = e + n;
|
|
825
|
-
c[u] = t + e, l[u] = t + r, h[u] = r;
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
a.push(u), o.push(g), s.push(f ?? (g >= 0 ? 1 : -1));
|
|
829
|
-
}
|
|
830
|
-
let u = a.map((e) => ({
|
|
831
|
-
x: g(e),
|
|
832
|
-
y: l[e]
|
|
833
|
-
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f, ee = o.map((e, t) => {
|
|
834
|
-
if (B.value.distributed && !r.standalone) {
|
|
835
|
-
let n = a[t], r = Rr.value[n] || 1;
|
|
836
|
-
return (e || 0) / r;
|
|
837
|
-
}
|
|
838
|
-
return (e || 0) / _;
|
|
839
|
-
});
|
|
840
|
-
return {
|
|
841
|
-
...r,
|
|
842
|
-
x: d,
|
|
843
|
-
points: u,
|
|
844
|
-
baseY: a.map((e) => c[e]),
|
|
845
|
-
topY: a.map((e) => l[e]),
|
|
846
|
-
series: o,
|
|
847
|
-
signedSeries: s,
|
|
848
|
-
proportions: ee,
|
|
849
|
-
rel: a,
|
|
850
|
-
fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
|
|
851
|
-
};
|
|
852
|
-
});
|
|
853
|
-
}), X = b(() => {
|
|
854
|
-
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Ur.value.positive, 0), n = Math.min(...Ur.value.negative, 0), r = Math.max(...Wr.value.positive, 0), i = Math.min(...Wr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !B.value.distributed && (z.value.scale.scaleMax !== null || z.value.scale.scaleMin !== null) ? pe(z.value.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.scale.scaleMin, z.value.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.scale.scaleMax, z.value.scale.ticks) : ee(z.value.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.scale.scaleMin, z.value.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.scale.scaleMax, z.value.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, p = (e) => {
|
|
855
|
-
if (B.value.distributed) {
|
|
856
|
-
let t = Math.max(0, Math.min(1, e));
|
|
857
|
-
return minimapH - minimapH * t;
|
|
858
|
-
}
|
|
859
|
-
return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
|
|
860
|
-
};
|
|
861
|
-
return ci.value.map((t) => {
|
|
862
|
-
let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
|
|
863
|
-
let n = r.length;
|
|
864
|
-
return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
|
|
865
|
-
}, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => p(t || 0, e)), o = ({ minimapH: e }) => {
|
|
866
|
-
if (!Number.isFinite(e) || e <= 0) return [];
|
|
867
|
-
let t = p(0, e);
|
|
868
|
-
return r.map(() => t);
|
|
869
|
-
};
|
|
870
|
-
if (n === 0) return {
|
|
871
|
-
...t,
|
|
872
|
-
points: [],
|
|
873
|
-
smoothPath: "",
|
|
874
|
-
straightPath: "",
|
|
875
|
-
smoothArea: "",
|
|
876
|
-
straightArea: "",
|
|
877
|
-
xMinimap: i,
|
|
878
|
-
yMinimap: a,
|
|
879
|
-
yMinimapBase: o
|
|
880
|
-
};
|
|
881
|
-
let s = t.x.map((e, n) => ({
|
|
882
|
-
x: e,
|
|
883
|
-
y: t.topY[n]
|
|
884
|
-
})), c = t.x.map((e, n) => ({
|
|
885
|
-
x: e,
|
|
886
|
-
y: t.baseY[n]
|
|
887
|
-
})), u = n >= 2 ? l(s) : `M${s[0].x},${s[0].y}`, d = n >= 2 ? m(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(u)}` : u, h = n >= 2 ? `M${e(d)}` : d, g = "", _ = "";
|
|
888
|
-
if (B.value.useArea && n >= 2) {
|
|
889
|
-
let t = l([...c].reverse()), n = m([...c].reverse()), r = c[c.length - 1];
|
|
890
|
-
g = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${s[0].x},${s[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
|
|
891
|
-
}
|
|
892
|
-
return {
|
|
893
|
-
...t,
|
|
894
|
-
points: s,
|
|
895
|
-
smoothPath: f,
|
|
896
|
-
straightPath: h,
|
|
897
|
-
smoothArea: g,
|
|
898
|
-
straightArea: _,
|
|
899
|
-
xMinimap: i,
|
|
900
|
-
yMinimap: a,
|
|
901
|
-
yMinimapBase: o
|
|
902
|
-
};
|
|
903
|
-
});
|
|
904
|
-
}), li = b(() => $.value === null || $.value === void 0 ? null : {
|
|
905
|
-
timeLabel: ji($.value),
|
|
906
|
-
absoluteIndex: $.value + J.value.start,
|
|
907
|
-
seriesIndex: $.value,
|
|
908
|
-
datapoint: Ai.value,
|
|
909
|
-
series: X.value,
|
|
910
|
-
config: I.value
|
|
911
|
-
}), ui = D(!1), di = D(!1);
|
|
912
|
-
function fi(e) {
|
|
913
|
-
let t = q.value;
|
|
914
|
-
return e > t ? t : e < 0 || e < J.value.start ? H.value.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
915
|
-
}
|
|
916
|
-
function pi() {
|
|
917
|
-
if (!ui.value) {
|
|
918
|
-
ui.value = !0;
|
|
919
|
-
try {
|
|
920
|
-
let { startIndex: e, endIndex: t, keepState: n } = H.value.zoom, r = n ? Math.max(0, q.value) : q.value;
|
|
921
|
-
if (n && r <= 0) return;
|
|
922
|
-
let i = e ?? 0, a = t == null ? r : Math.min(fi(t + 1), r);
|
|
923
|
-
_i.value = !0, J.value.start = i, J.value.end = a, Y.value.start = i, Y.value.end = a, Nr(), di.value = !0;
|
|
924
|
-
} finally {
|
|
925
|
-
queueMicrotask(() => {
|
|
926
|
-
_i.value = !1;
|
|
927
|
-
}), ui.value = !1;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
function mi(e) {
|
|
932
|
-
ui.value || _i.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Nr());
|
|
933
|
-
}
|
|
934
|
-
function hi(e) {
|
|
935
|
-
if (ui.value || _i.value) return;
|
|
936
|
-
let t = fi(e);
|
|
937
|
-
t !== J.value.end && (J.value.end = t, Y.value.end = t, Nr());
|
|
938
|
-
}
|
|
939
|
-
let Z = b(() => ({
|
|
940
|
-
left: G.value.left,
|
|
941
|
-
right: G.value.right,
|
|
942
|
-
width: G.value.width
|
|
943
|
-
})), gi = b(() => {
|
|
944
|
-
let e = z.value.y.axisLabels, { prefix: n, suffix: r } = B.value.dataLabels;
|
|
945
|
-
return Jr.value.map((i) => String(se(e.formatter, i.value, t({
|
|
946
|
-
p: n,
|
|
947
|
-
v: i.value,
|
|
948
|
-
s: r,
|
|
949
|
-
r: e.rounding
|
|
950
|
-
}), { datapoint: i }) ?? "")).join("|");
|
|
951
|
-
});
|
|
952
|
-
st([
|
|
953
|
-
gi,
|
|
954
|
-
() => z.value.y.axisLabels.show,
|
|
955
|
-
() => z.value.y.axisLabels.fontSize,
|
|
956
|
-
() => z.value.y.axisLabels.bold,
|
|
957
|
-
() => z.value.y.position
|
|
958
|
-
], () => {
|
|
959
|
-
z.value.y.axisLabels.show && Bn();
|
|
960
|
-
}, { flush: "post" });
|
|
961
|
-
let _i = D(!1), vi = b(() => W.value.width), yi = b(() => W.value.height);
|
|
962
|
-
Ae({
|
|
963
|
-
timeLabelsEls: On,
|
|
964
|
-
timeLabels: Yr,
|
|
965
|
-
slicer: J,
|
|
966
|
-
configRef: I,
|
|
967
|
-
rotationPath: [
|
|
968
|
-
"style",
|
|
969
|
-
"chart",
|
|
970
|
-
"grid",
|
|
971
|
-
"x",
|
|
972
|
-
"timeLabels",
|
|
973
|
-
"rotation"
|
|
974
|
-
],
|
|
975
|
-
autoRotatePath: [
|
|
976
|
-
"style",
|
|
977
|
-
"chart",
|
|
978
|
-
"grid",
|
|
979
|
-
"x",
|
|
980
|
-
"timeLabels",
|
|
981
|
-
"autoRotate",
|
|
982
|
-
"enable"
|
|
983
|
-
],
|
|
984
|
-
isAutoSize: !1,
|
|
985
|
-
width: vi,
|
|
986
|
-
height: yi,
|
|
987
|
-
rotation: R.value.autoRotate.angle
|
|
988
|
-
});
|
|
989
|
-
let bi = D(null);
|
|
990
|
-
function xi(e) {
|
|
991
|
-
let t = $n.value;
|
|
992
|
-
if (!t) return null;
|
|
993
|
-
if (t.createSVGPoint && t.getScreenCTM) {
|
|
994
|
-
let n = t.createSVGPoint();
|
|
995
|
-
n.x = e.clientX, n.y = e.clientY;
|
|
996
|
-
let r = t.getScreenCTM();
|
|
997
|
-
if (r) {
|
|
998
|
-
let e = n.matrixTransform(r.inverse());
|
|
999
|
-
return {
|
|
1000
|
-
x: e.x,
|
|
1001
|
-
y: e.y,
|
|
1002
|
-
ok: !0
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
|
|
1007
|
-
x: 0,
|
|
1008
|
-
y: 0,
|
|
1009
|
-
width: n.width,
|
|
1010
|
-
height: n.height
|
|
1011
|
-
}, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
|
|
1012
|
-
return {
|
|
1013
|
-
x: (e.clientX - n.left - s) / i + r.x,
|
|
1014
|
-
y: (e.clientY - n.top - c) / i + r.y,
|
|
1015
|
-
ok: !0
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
let Si = 0, Q = b(() => Math.max(1, J.value.end - J.value.start)), Ci = b(() => Q.value > 1 ? G.value.width / (Q.value - 1) : 0);
|
|
1019
|
-
function wi(e) {
|
|
1020
|
-
return Q.value <= 1 ? G.value.left + G.value.width / 2 : G.value.left + e * Ci.value;
|
|
1021
|
-
}
|
|
1022
|
-
function Ti(e) {
|
|
1023
|
-
if (Q.value <= 1) return {
|
|
1024
|
-
x: G.value.left,
|
|
1025
|
-
width: G.value.width
|
|
1026
|
-
};
|
|
1027
|
-
let t = e === 0 ? G.value.left : (wi(e - 1) + wi(e)) / 2, n = e === Q.value - 1 ? G.value.left + G.value.width : (wi(e) + wi(e + 1)) / 2;
|
|
1028
|
-
return {
|
|
1029
|
-
x: t,
|
|
1030
|
-
width: Math.max(0, n - t)
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
function Ei(e) {
|
|
1034
|
-
Hn.value || (Si && cancelAnimationFrame(Si), Si = requestAnimationFrame(() => {
|
|
1035
|
-
Si = 0;
|
|
1036
|
-
let t = xi(e);
|
|
1037
|
-
if (!t || !$n.value) {
|
|
1038
|
-
ki();
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
let { left: n, right: r, top: i, bottom: a } = G.value;
|
|
1042
|
-
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1043
|
-
ki();
|
|
1044
|
-
return;
|
|
1045
|
-
}
|
|
1046
|
-
let o = 0;
|
|
1047
|
-
if (Q.value > 1) {
|
|
1048
|
-
let e = (t.x - n) / Ci.value;
|
|
1049
|
-
o = Math.round(e);
|
|
1050
|
-
} else o = 0;
|
|
1051
|
-
o < 0 && (o = 0), o > Q.value - 1 && (o = Q.value - 1), bi.value !== o && (bi.value = o, Ni(!0, o));
|
|
1052
|
-
}));
|
|
1053
|
-
}
|
|
1054
|
-
function Di(e) {
|
|
1055
|
-
let t = xi(e);
|
|
1056
|
-
if (!t || !$n.value) return;
|
|
1057
|
-
let { left: n, right: r, top: i, bottom: a } = G.value;
|
|
1058
|
-
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
1059
|
-
let o = 0;
|
|
1060
|
-
if (Q.value > 1) {
|
|
1061
|
-
let e = (t.x - n) / Ci.value;
|
|
1062
|
-
o = Math.round(e);
|
|
1063
|
-
} else o = 0;
|
|
1064
|
-
o < 0 && (o = 0), o > Q.value - 1 && (o = Q.value - 1), ma({
|
|
1065
|
-
seriesIndex: o,
|
|
1066
|
-
datapoint: oa(o)
|
|
1067
|
-
}), Oi(o);
|
|
1068
|
-
}
|
|
1069
|
-
function Oi(e) {
|
|
1070
|
-
let t = JSON.parse(JSON.stringify(X.value)).map((t) => ({
|
|
1071
|
-
name: t.name,
|
|
1072
|
-
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
1073
|
-
proportion: t.proportions[e] || null,
|
|
1074
|
-
color: t.color,
|
|
1075
|
-
id: t.id
|
|
1076
|
-
}));
|
|
1077
|
-
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
1078
|
-
datapoint: t,
|
|
1079
|
-
seriesIndex: e + J.value.start
|
|
1080
|
-
}), on("selectDatapoint", {
|
|
1081
|
-
datapoint: t,
|
|
1082
|
-
period: Yr.value[e]
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
st(() => [
|
|
1086
|
-
J.value.start,
|
|
1087
|
-
J.value.end,
|
|
1088
|
-
X.value.length
|
|
1089
|
-
], () => {
|
|
1090
|
-
let e = Q.value;
|
|
1091
|
-
if ($.value != null) {
|
|
1092
|
-
if (e <= 0) {
|
|
1093
|
-
$.value = null;
|
|
1094
|
-
return;
|
|
1095
|
-
}
|
|
1096
|
-
$.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
function ki() {
|
|
1100
|
-
Si &&= (cancelAnimationFrame(Si), 0), bi.value = null, Ni(!1, null);
|
|
1101
|
-
}
|
|
1102
|
-
let $ = D(null), Ai = b(() => {
|
|
1103
|
-
let e = $.value, t = e == null ? null : Ar(e);
|
|
1104
|
-
return X.value.map((n) => ({
|
|
1105
|
-
slotAbsoluteIndex: n.absoluteIndex,
|
|
1106
|
-
shape: n.shape || "circle",
|
|
1107
|
-
name: n.name,
|
|
1108
|
-
color: n.color,
|
|
1109
|
-
value: e == null ? null : n.series.find((t, n) => n === e),
|
|
1110
|
-
sourceValue: t == null ? null : n.seriesSource?.[t],
|
|
1111
|
-
comments: n.comments || [],
|
|
1112
|
-
id: n.id,
|
|
1113
|
-
standalone: !!n.standalone
|
|
1114
|
-
}));
|
|
1115
|
-
});
|
|
1116
|
-
function ji(e) {
|
|
1117
|
-
if (e == null || !V.value.showTimeLabel) return null;
|
|
1118
|
-
let t = Yr.value?.[e]?.text || null, n = si.value?.[e]?.text || null, r = Xr.value?.[e]?.text || null;
|
|
1119
|
-
return V.value.useDefaultTimeFormat ? t : n || r;
|
|
1120
|
-
}
|
|
1121
|
-
let Mi = b(() => {
|
|
1122
|
-
let e = V.value.customFormat, n = [...Ai.value].reverse(), i = n.filter((e) => !e.standalone), a = n.filter((e) => e.standalone), l = i.map((e) => e.value).filter((e) => o(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1123
|
-
if (s(e) && ie(() => e({
|
|
1124
|
-
absoluteIndex: $.value + J.value.start,
|
|
1125
|
-
seriesIndex: $.value,
|
|
1126
|
-
datapoint: Ai.value,
|
|
1127
|
-
series: K.value,
|
|
1128
|
-
config: I.value
|
|
1129
|
-
}))) return e({
|
|
1130
|
-
absoluteIndex: $.value + J.value.start,
|
|
1131
|
-
seriesIndex: $.value,
|
|
1132
|
-
datapoint: Ai.value,
|
|
1133
|
-
series: K.value,
|
|
1134
|
-
config: I.value
|
|
1135
|
-
});
|
|
1136
|
-
let { showValue: u, showTotal: d, totalTranslation: f, showPercentage: p, borderColor: m, roundingValue: h, roundingPercentage: g } = V.value, _ = (e) => !e.shape || ![
|
|
1137
|
-
"star",
|
|
1138
|
-
"triangle",
|
|
1139
|
-
"square",
|
|
1140
|
-
"diamond",
|
|
1141
|
-
"pentagon",
|
|
1142
|
-
"hexagon"
|
|
1143
|
-
].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${V.value.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${V.value.backgroundColor}" stroke-width="1" fill="${e.color}" points="${r({
|
|
1144
|
-
plot: {
|
|
1145
|
-
x: 6,
|
|
1146
|
-
y: 6
|
|
1147
|
-
},
|
|
1148
|
-
radius: 5
|
|
1149
|
-
})}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${c({
|
|
1150
|
-
plot: {
|
|
1151
|
-
x: 6,
|
|
1152
|
-
y: 6
|
|
1153
|
-
},
|
|
1154
|
-
radius: 6,
|
|
1155
|
-
sides: 3,
|
|
1156
|
-
rotation: .52
|
|
1157
|
-
}).path}" fill="${e.color}" stroke="${V.value.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${c({
|
|
1158
|
-
plot: {
|
|
1159
|
-
x: 6,
|
|
1160
|
-
y: 6
|
|
1161
|
-
},
|
|
1162
|
-
radius: 6,
|
|
1163
|
-
sides: 4,
|
|
1164
|
-
rotation: .8
|
|
1165
|
-
}).path}" fill="${e.color}" stroke="${V.value.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${c({
|
|
1166
|
-
plot: {
|
|
1167
|
-
x: 6,
|
|
1168
|
-
y: 6
|
|
1169
|
-
},
|
|
1170
|
-
radius: 5,
|
|
1171
|
-
sides: 4,
|
|
1172
|
-
rotation: 0
|
|
1173
|
-
}).path}" fill="${e.color}" stroke="${V.value.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${c({
|
|
1174
|
-
plot: {
|
|
1175
|
-
x: 6,
|
|
1176
|
-
y: 6
|
|
1177
|
-
},
|
|
1178
|
-
radius: 5,
|
|
1179
|
-
sides: 5,
|
|
1180
|
-
rotation: .95
|
|
1181
|
-
}).path}" fill="${e.color}" stroke="${V.value.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${c({
|
|
1182
|
-
plot: {
|
|
1183
|
-
x: 6,
|
|
1184
|
-
y: 6
|
|
1185
|
-
},
|
|
1186
|
-
radius: 5,
|
|
1187
|
-
sides: 6,
|
|
1188
|
-
rotation: 0
|
|
1189
|
-
}).path}" fill="${e.color}" stroke="${V.value.backgroundColor}" stroke-width="1" /></svg>`, ee = (e, n) => {
|
|
1190
|
-
let r = n ? t({
|
|
1191
|
-
v: isNaN((e.value ?? 0) / (l || 1)) ? 0 : Math.abs(e.value ?? 0) / (l || 1) * 100,
|
|
1192
|
-
s: "%",
|
|
1193
|
-
r: g
|
|
1194
|
-
}) : "", i = u && n ? "(" : "", a = u && n ? ")" : "";
|
|
1195
|
-
return `
|
|
1196
|
-
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1197
|
-
<div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${_(e)}</div>
|
|
1198
|
-
${e.name}${u || n ? ":" : ""}
|
|
1199
|
-
${u ? se(B.value.dataLabels.formatter, e.sourceValue, t({
|
|
1200
|
-
p: B.value.dataLabels.prefix,
|
|
1201
|
-
v: e.sourceValue,
|
|
1202
|
-
s: B.value.dataLabels.suffix,
|
|
1203
|
-
r: h
|
|
1204
|
-
}, { datapoint: e })) : ""} ${i}${r}${a}
|
|
1205
|
-
</div>
|
|
1206
|
-
`;
|
|
1207
|
-
}, v = "", te = ji($.value);
|
|
1208
|
-
return te && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${m};padding-bottom:6px;margin-bottom:3px;">${te}</div>`), d && i.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1209
|
-
<span>${f}:</span>
|
|
1210
|
-
<span>${se(B.value.dataLabels.formatter, fe(l), t({
|
|
1211
|
-
p: B.value.dataLabels.prefix,
|
|
1212
|
-
v: fe(l),
|
|
1213
|
-
s: B.value.dataLabels.suffix,
|
|
1214
|
-
r: h
|
|
1215
|
-
}), { datapoint: {
|
|
1216
|
-
name: f,
|
|
1217
|
-
value: fe(l)
|
|
1218
|
-
} })}</span>
|
|
1219
|
-
</div>`), i.forEach((e) => {
|
|
1220
|
-
v += ee(e, p);
|
|
1221
|
-
}), a.length && (v += `<div style="border-top:1px solid ${Dr.value.length ? m : "transparent"}; margin:${Dr.value.length ? "6px 0" : "0"};"></div>`, a.forEach((e) => {
|
|
1222
|
-
v += ee(e, !1);
|
|
1223
|
-
})), `<div>${v}</div>`;
|
|
1224
|
-
});
|
|
1225
|
-
function Ni(e, t = null, n = "pointer") {
|
|
1226
|
-
if (zr.value) return;
|
|
1227
|
-
In.value = n, ln.value = e;
|
|
1228
|
-
let r = X.value.map((e) => ({
|
|
1229
|
-
name: e.name,
|
|
1230
|
-
value: [
|
|
1231
|
-
null,
|
|
1232
|
-
void 0,
|
|
1233
|
-
NaN
|
|
1234
|
-
].includes(e.series[t]) ? null : e.series[t],
|
|
1235
|
-
color: e.color
|
|
1236
|
-
}));
|
|
1237
|
-
e ? (Pn.value = t, $.value = t, ma({
|
|
1238
|
-
seriesIndex: t,
|
|
1239
|
-
datapoint: r
|
|
1240
|
-
}), I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
1241
|
-
datapoint: r,
|
|
1242
|
-
seriesIndex: t + J.value.start
|
|
1243
|
-
})) : (Pn.value = null, $.value = null, on("selectX", {
|
|
1244
|
-
index: null,
|
|
1245
|
-
indexLabel: null,
|
|
1246
|
-
dataset: null
|
|
1247
|
-
}), I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
1248
|
-
datapoint: r,
|
|
1249
|
-
seriesIndex: t + J.value.start
|
|
1250
|
-
}));
|
|
1251
|
-
}
|
|
1252
|
-
function Pi(e, t) {
|
|
1253
|
-
let n = JSON.parse(JSON.stringify(X.value)).map((e) => ({
|
|
1254
|
-
name: e.name,
|
|
1255
|
-
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
1256
|
-
proportion: e.proportions[t] || null,
|
|
1257
|
-
color: e.color,
|
|
1258
|
-
id: e.id
|
|
1259
|
-
}));
|
|
1260
|
-
on("selectTimeLabel", {
|
|
1261
|
-
datapoint: n,
|
|
1262
|
-
absoluteIndex: e.absoluteIndex,
|
|
1263
|
-
label: e.text
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
function Fi() {
|
|
1267
|
-
F.value.length ? F.value = [] : Li.value.forEach((e) => {
|
|
1268
|
-
F.value.push(e.id);
|
|
1269
|
-
}), on("selectLegend", X.value);
|
|
1270
|
-
}
|
|
1271
|
-
function Ii(e) {
|
|
1272
|
-
if (F.value.includes(e.id)) F.value = F.value.filter((t) => t !== e.id);
|
|
1273
|
-
else {
|
|
1274
|
-
if (F.value.length === K.value.length - 1) return;
|
|
1275
|
-
F.value.push(e.id);
|
|
1276
|
-
}
|
|
1277
|
-
on("selectLegend", X.value);
|
|
1278
|
-
}
|
|
1279
|
-
let Li = b(() => K.value.map((e) => ({
|
|
1280
|
-
...e,
|
|
1281
|
-
opacity: F.value.includes(e.id) ? .5 : 1,
|
|
1282
|
-
segregate: () => Ii(e),
|
|
1283
|
-
isSegregated: F.value.includes(e.id)
|
|
1284
|
-
}))), Ri = b(() => ({
|
|
1285
|
-
cy: "stackline-legend",
|
|
1286
|
-
backgroundColor: H.value.legend.backgroundColor,
|
|
1287
|
-
color: H.value.legend.color,
|
|
1288
|
-
fontSize: H.value.legend.fontSize,
|
|
1289
|
-
paddingBottom: 12,
|
|
1290
|
-
fontWeight: H.value.legend.bold ? "bold" : ""
|
|
1291
|
-
}));
|
|
1292
|
-
function zi(e) {
|
|
1293
|
-
return K.value.length ? K.value.find((t) => t.name === e) || (gr.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (gr.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1294
|
-
}
|
|
1295
|
-
function Bi(e) {
|
|
1296
|
-
let t = zi(e);
|
|
1297
|
-
t !== null && F.value.includes(t.id) && Ii({ id: t.id });
|
|
1298
|
-
}
|
|
1299
|
-
function Vi(e) {
|
|
1300
|
-
let t = zi(e);
|
|
1301
|
-
t !== null && (F.value.includes(t.id) || Ii({ id: t.id }));
|
|
1302
|
-
}
|
|
1303
|
-
let Hi = b(() => {
|
|
1304
|
-
if (X.value.length === 0) return {
|
|
1305
|
-
head: [],
|
|
1306
|
-
body: [],
|
|
1307
|
-
config: {},
|
|
1308
|
-
columnNames: []
|
|
1309
|
-
};
|
|
1310
|
-
let e = X.value.map(({ name: e, color: t }) => ({
|
|
1311
|
-
label: e,
|
|
1312
|
-
color: t
|
|
1313
|
-
})), t = [];
|
|
1314
|
-
return ti.value.forEach((e) => {
|
|
1315
|
-
let n = e.absoluteIndex, r = [R.value.values?.[n] ? e.text : n + 1];
|
|
1316
|
-
K.value.forEach((e) => {
|
|
1317
|
-
let t = e.series?.[n], i = Number((t ?? 0).toFixed(I.value.table.td.roundingValue));
|
|
1318
|
-
r.push(i);
|
|
1319
|
-
}), t.push(r);
|
|
1320
|
-
}), {
|
|
1321
|
-
head: e,
|
|
1322
|
-
body: t
|
|
1323
|
-
};
|
|
1324
|
-
});
|
|
1325
|
-
function Ui(e = null) {
|
|
1326
|
-
let t = [
|
|
1327
|
-
[H.value.title.text],
|
|
1328
|
-
[H.value.title.subtitle.text],
|
|
1329
|
-
[""]
|
|
1330
|
-
], n = ["", ...Hi.value.head.map((e) => e.label)], r = Hi.value.body, i = t.concat([n]).concat(r), o = a(i);
|
|
1331
|
-
e ? e(o) : ce({
|
|
1332
|
-
csvContent: o,
|
|
1333
|
-
title: H.value.title.text || "vue-ui-stackline"
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
let Wi = b(() => {
|
|
1337
|
-
let e = [""].concat(X.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, J.value.end - J.value.start);
|
|
1338
|
-
for (let e = 0; e < n; e += 1) {
|
|
1339
|
-
let n = Ar(e), r = R.value.values?.[n] ? Yr.value?.[e]?.text ?? n + 1 : n + 1, i = X.value.map((t) => {
|
|
1340
|
-
let n = t.series?.[e] ?? 0;
|
|
1341
|
-
return Number(n.toFixed(I.value.table.td.roundingValue));
|
|
1342
|
-
}), a = X.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
1343
|
-
t.push([r].concat(i, Number(a.toFixed(I.value.table.td.roundingValue))));
|
|
1344
|
-
}
|
|
1345
|
-
return {
|
|
1346
|
-
head: e,
|
|
1347
|
-
body: t,
|
|
1348
|
-
config: {
|
|
1349
|
-
th: {
|
|
1350
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
1351
|
-
color: I.value.table.th.color,
|
|
1352
|
-
outline: I.value.table.th.outline
|
|
1353
|
-
},
|
|
1354
|
-
td: {
|
|
1355
|
-
backgroundColor: I.value.table.td.backgroundColor,
|
|
1356
|
-
color: I.value.table.td.color,
|
|
1357
|
-
outline: I.value.table.td.outline
|
|
1358
|
-
},
|
|
1359
|
-
breakpoint: I.value.table.responsiveBreakpoint
|
|
1360
|
-
},
|
|
1361
|
-
colNames: [I.value.table.columnNames.period].concat(X.value.map((e) => e.name), I.value.table.columnNames.total)
|
|
1362
|
-
};
|
|
1363
|
-
}), Gi = b(() => H.value.backgroundColor), Ki = b(() => H.value.legend), qi = b(() => H.value.title), { isCallbackImaging: Ji, isCallbackSvg: Yi, generateSvg: Xi, onGenerateImage: Zi } = De({
|
|
1364
|
-
svg: $n,
|
|
1365
|
-
title: qi,
|
|
1366
|
-
legend: Ki,
|
|
1367
|
-
legendItems: Li,
|
|
1368
|
-
backgroundColor: Gi,
|
|
1369
|
-
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
1370
|
-
generateImage: ur
|
|
1371
|
-
});
|
|
1372
|
-
async function Qi({ scale: e = 2 } = {}) {
|
|
1373
|
-
if (!cn.value) return;
|
|
1374
|
-
let { imageUri: t, base64: n } = await je({
|
|
1375
|
-
domElement: cn.value,
|
|
1376
|
-
base64: !0,
|
|
1377
|
-
img: !0,
|
|
1378
|
-
scale: e
|
|
1379
|
-
}), r = cn.value.getBoundingClientRect(), i = {
|
|
1380
|
-
width: r.width,
|
|
1381
|
-
height: r.height,
|
|
1382
|
-
aspectRatio: r.height ? r.width / r.height : 0
|
|
1383
|
-
}, a = await ae(t, e) ?? i;
|
|
1384
|
-
return {
|
|
1385
|
-
imageUri: t,
|
|
1386
|
-
base64: n,
|
|
1387
|
-
title: H.value.title.text,
|
|
1388
|
-
...a
|
|
1389
|
-
};
|
|
1390
|
-
}
|
|
1391
|
-
let $i = b(() => {
|
|
1392
|
-
let e = I.value.table.useDialog && !I.value.table.show, t = U.value.showTable;
|
|
1393
|
-
return {
|
|
1394
|
-
component: e ? en : Yt,
|
|
1395
|
-
title: `${H.value.title.text}${H.value.title.subtitle.text ? `: ${H.value.title.subtitle.text}` : ""}`,
|
|
1396
|
-
props: e ? {
|
|
1397
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
1398
|
-
color: I.value.table.th.color,
|
|
1399
|
-
headerColor: I.value.table.th.color,
|
|
1400
|
-
headerBg: I.value.table.th.backgroundColor,
|
|
1401
|
-
isFullscreen: gn.value,
|
|
1402
|
-
fullscreenParent: cn.value,
|
|
1403
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1404
|
-
isCursorPointer: Gn.value
|
|
1405
|
-
} : {
|
|
1406
|
-
hideDetails: !0,
|
|
1407
|
-
config: {
|
|
1408
|
-
open: t,
|
|
1409
|
-
maxHeight: 1e4,
|
|
1410
|
-
body: {
|
|
1411
|
-
backgroundColor: H.value.backgroundColor,
|
|
1412
|
-
color: H.value.color
|
|
1413
|
-
},
|
|
1414
|
-
head: {
|
|
1415
|
-
backgroundColor: H.value.backgroundColor,
|
|
1416
|
-
color: H.value.color
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
};
|
|
1421
|
-
});
|
|
1422
|
-
st(() => U.value.showTable, (e) => {
|
|
1423
|
-
I.value.table.show || (e && I.value.table.useDialog && Sn.value ? Sn.value.open() : "close" in Sn.value && Sn.value.close());
|
|
1424
|
-
});
|
|
1425
|
-
function ea() {
|
|
1426
|
-
U.value.showTable = !1, Cn.value && Cn.value.setTableIconState(!1);
|
|
1427
|
-
}
|
|
1428
|
-
function ta(e) {
|
|
1429
|
-
gn.value = e, un.value += 1;
|
|
1430
|
-
}
|
|
1431
|
-
function na() {
|
|
1432
|
-
U.value.showTable = !U.value.showTable;
|
|
1433
|
-
}
|
|
1434
|
-
function ra() {
|
|
1435
|
-
U.value.dataLabels.show = !U.value.dataLabels.show;
|
|
1436
|
-
}
|
|
1437
|
-
function ia() {
|
|
1438
|
-
U.value.showTooltip = !U.value.showTooltip;
|
|
1439
|
-
}
|
|
1440
|
-
function aa() {
|
|
1441
|
-
return X.value;
|
|
1442
|
-
}
|
|
1443
|
-
function oa(e) {
|
|
1444
|
-
let t = e ?? 0, n = Ar(t);
|
|
1445
|
-
return JSON.parse(JSON.stringify(X.value)).map((e) => {
|
|
1446
|
-
let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
|
|
1447
|
-
return {
|
|
1448
|
-
name: e.name,
|
|
1449
|
-
absoluteIndex: e.absoluteIndex,
|
|
1450
|
-
value: a,
|
|
1451
|
-
proportion: e.proportions?.[t] || null,
|
|
1452
|
-
color: e.color,
|
|
1453
|
-
id: e.id,
|
|
1454
|
-
timeLabel: Xr.value?.[n] || null
|
|
1455
|
-
};
|
|
1456
|
-
});
|
|
1457
|
-
}
|
|
1458
|
-
let sa = b(() => Array(q.value).fill(0).map((e, t) => oa(t)));
|
|
1459
|
-
st(() => N.selectedXIndex, (e) => {
|
|
1460
|
-
if ([null, void 0].includes(N.selectedXIndex)) {
|
|
1461
|
-
$.value = null;
|
|
1462
|
-
return;
|
|
1463
|
-
}
|
|
1464
|
-
let t = e - J.value.start;
|
|
1465
|
-
t < 0 || e >= J.value.end ? $.value = null : $.value = t ?? null;
|
|
1466
|
-
}, { immediate: !0 });
|
|
1467
|
-
let ca = b(() => {
|
|
1468
|
-
if (B.value.distributed) return {
|
|
1469
|
-
min: -1,
|
|
1470
|
-
max: 1
|
|
1471
|
-
};
|
|
1472
|
-
let e = Dr.value, t = Or.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
|
|
1473
|
-
e.forEach((e) => {
|
|
1474
|
-
for (let t = 0; t < n; t += 1) {
|
|
1475
|
-
let n = e.series[t] ?? 0;
|
|
1476
|
-
n >= 0 ? r[t] += n : i[t] += n;
|
|
1477
|
-
}
|
|
1478
|
-
});
|
|
1479
|
-
let a = Array(n).fill(0), o = Array(n).fill(0);
|
|
1480
|
-
t.forEach((e) => {
|
|
1481
|
-
for (let t = 0; t < n; t += 1) {
|
|
1482
|
-
let n = e.series[t] ?? 0;
|
|
1483
|
-
n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
|
|
1484
|
-
}
|
|
1485
|
-
});
|
|
1486
|
-
let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.scale.scaleMin, u = z.value.scale.scaleMax, d = z.value.scale.ticks, f = !B.value.distributed && (l !== null || u !== null) ? pe(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : ee(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
|
|
1487
|
-
return {
|
|
1488
|
-
min: Number(f.min) || 0,
|
|
1489
|
-
max: Number(f.max) || 0
|
|
1490
|
-
};
|
|
1491
|
-
});
|
|
1492
|
-
function la({ minimapH: e, unitW: t }) {
|
|
1493
|
-
let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1494
|
-
if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
|
|
1495
|
-
let r = X.value.filter((e) => !e.standalone), i = X.value.filter((e) => e.standalone), a = Math.max(0, ...X.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
|
|
1496
|
-
if (a <= 0) return "";
|
|
1497
|
-
let o = a === 1 ? [t * .5] : Array.from({ length: a }, (e, n) => n * t);
|
|
1498
|
-
if (B.value.distributed) {
|
|
1499
|
-
let t = Array.from({ length: a }, (e, t) => {
|
|
1500
|
-
let n = 0;
|
|
1501
|
-
return r.forEach((e) => {
|
|
1502
|
-
let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
|
|
1503
|
-
r != null && !Number.isNaN(r) && (n += Math.abs(r));
|
|
1504
|
-
}), n || 1;
|
|
1505
|
-
}), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [], u = Array(a).fill(0);
|
|
1506
|
-
return r.forEach((e) => {
|
|
1507
|
-
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), d = Array(a);
|
|
1508
|
-
for (let e = 0; e < a; e += 1) {
|
|
1509
|
-
let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
|
|
1510
|
-
d[e] = u[e], u[e] += a, i[e] = u[e];
|
|
1511
|
-
}
|
|
1512
|
-
let f = i.map(s), p = d.map(s), h = o.map((e, t) => ({
|
|
1513
|
-
x: e,
|
|
1514
|
-
y: f[t]
|
|
1515
|
-
})), g = o.map((e, t) => ({
|
|
1516
|
-
x: e,
|
|
1517
|
-
y: p[t]
|
|
1518
|
-
})), _ = l(h), ee = l([...g].reverse()), v = m(h), te = m([...g].reverse()), ne = g[g.length - 1];
|
|
1519
|
-
if (B.value.useArea) {
|
|
1520
|
-
let t = B.value.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${ne.x},${ne.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(v)} L${ne.x},${ne.y} ${n(te)} Z`;
|
|
1521
|
-
c.push(`<path d="${t}"
|
|
1522
|
-
fill="${an.pattern ? `url(#pattern_${P.value}_${e.absoluteIndex})` : (B.value.gradient.show, e.color)}"
|
|
1523
|
-
opacity="${B.value.areaOpacity}"
|
|
1524
|
-
stroke="none" />`);
|
|
1525
|
-
}
|
|
1526
|
-
let re = B.value.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(v)}`;
|
|
1527
|
-
c.push(`<path d="${re}"
|
|
1528
|
-
fill="none"
|
|
1529
|
-
stroke="${e.color}"
|
|
1530
|
-
stroke-width="${B.value.strokeWidth}"
|
|
1531
|
-
stroke-linecap="round" />`);
|
|
1532
|
-
}), i.length && i.forEach((e) => {
|
|
1533
|
-
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
|
|
1534
|
-
x: e,
|
|
1535
|
-
y: i[t]
|
|
1536
|
-
})), d = l(u), f = m(u), p = B.value.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
|
|
1537
|
-
c.push(`<path d="${p}"
|
|
1538
|
-
fill="none"
|
|
1539
|
-
stroke="${e.color}"
|
|
1540
|
-
stroke-width="${B.value.strokeWidth}"
|
|
1541
|
-
stroke-linecap="round" />`);
|
|
1542
|
-
}), c.join("");
|
|
1543
|
-
}
|
|
1544
|
-
let s = ca.value.min, c = ca.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + u) / d)), h = [];
|
|
1545
|
-
if (r.length) {
|
|
1546
|
-
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1547
|
-
r.forEach((r) => {
|
|
1548
|
-
let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, s = Array(a), c = Array(a);
|
|
1549
|
-
for (let n = 0; n < a; n += 1) {
|
|
1550
|
-
let r = i?.[n] ?? 0;
|
|
1551
|
-
r >= 0 ? (c[n] = e[n], e[n] += r, s[n] = e[n]) : (c[n] = t[n], t[n] += r, s[n] = t[n]);
|
|
1552
|
-
}
|
|
1553
|
-
let u = s.map(p), d = c.map(p), f = o.map((e, t) => ({
|
|
1554
|
-
x: e,
|
|
1555
|
-
y: u[t]
|
|
1556
|
-
})), g = o.map((e, t) => ({
|
|
1557
|
-
x: e,
|
|
1558
|
-
y: d[t]
|
|
1559
|
-
})), _ = l(f), ee = l([...g].reverse()), v = m(f), te = m([...g].reverse()), ne = g[g.length - 1];
|
|
1560
|
-
if (B.value.useArea) {
|
|
1561
|
-
let e = B.value.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${ne.x},${ne.y} ${n(ee)} Z` : `M${f[0].x},${f[0].y} ${n(v)} L${ne.x},${ne.y} ${n(te)} Z`;
|
|
1562
|
-
h.push(`<path d="${e}"
|
|
1563
|
-
fill="${an.pattern ? `url(#pattern_${P.value}_${r.absoluteIndex})` : (B.value.gradient.show, r.color)}"
|
|
1564
|
-
opacity="${B.value.areaOpacity}"
|
|
1565
|
-
stroke="none" />`);
|
|
1566
|
-
}
|
|
1567
|
-
let re = B.value.smooth ? `M${f[0].x},${f[0].y} ${n(_)}` : `M${f[0].x},${f[0].y} ${n(v)}`;
|
|
1568
|
-
h.push(`<path d="${re}"
|
|
1569
|
-
fill="none"
|
|
1570
|
-
stroke="${r.color}"
|
|
1571
|
-
stroke-width="${B.value.strokeWidth}"
|
|
1572
|
-
stroke-linecap="round" />`);
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
return i.length && i.forEach((e) => {
|
|
1576
|
-
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
|
|
1577
|
-
x: e,
|
|
1578
|
-
y: t[n]
|
|
1579
|
-
})), i = l(r), a = m(r), s = B.value.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
|
|
1580
|
-
h.push(`<path d="${s}"
|
|
1581
|
-
fill="none"
|
|
1582
|
-
stroke="${e.color}"
|
|
1583
|
-
stroke-width="${B.value.strokeWidth}"
|
|
1584
|
-
stroke-linecap="round" />`);
|
|
1585
|
-
}), h.join("");
|
|
1586
|
-
}
|
|
1587
|
-
function ua(e, t) {
|
|
1588
|
-
let n = B.value, r = n.dataLabels;
|
|
1589
|
-
return n.showDistributedPercentage && n.distributed ? ir.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : ir.value ? (rr.value && gr.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > da.value * r.hideUnderPercentage / 100) : rr.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
|
|
1590
|
-
}
|
|
1591
|
-
let da = b(() => Math.max(...X.value.flatMap((e) => e.series)));
|
|
1592
|
-
function fa(e, n, r, i, a) {
|
|
1593
|
-
let o = a === -1 && e >= 0 ? -e : e;
|
|
1594
|
-
return se(B.value.dataLabels.formatter, o, t({
|
|
1595
|
-
p: B.value.dataLabels.prefix,
|
|
1596
|
-
v: o,
|
|
1597
|
-
s: B.value.dataLabels.suffix,
|
|
1598
|
-
r: B.value.dataLabels.rounding
|
|
1599
|
-
}), {
|
|
1600
|
-
datapoint: n,
|
|
1601
|
-
seriesIndex: r,
|
|
1602
|
-
datapointIndex: i
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
function pa(e, n, r, i) {
|
|
1606
|
-
return se(B.value.dataLabels.formatter, e, t({
|
|
1607
|
-
v: isNaN(e) ? 0 : e,
|
|
1608
|
-
s: "%",
|
|
1609
|
-
r: B.value.dataLabels.rounding
|
|
1610
|
-
}), {
|
|
1611
|
-
datapoint: n,
|
|
1612
|
-
seriesIndex: r,
|
|
1613
|
-
datapointIndex: i
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
function ma({ seriesIndex: e, datapoint: t }) {
|
|
1617
|
-
let n = J.value.start + e;
|
|
1618
|
-
on("selectX", {
|
|
1619
|
-
dataset: t,
|
|
1620
|
-
index: n,
|
|
1621
|
-
indexLabel: R.value.values[n]
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
async function ha() {
|
|
1625
|
-
if (on("copyAlt", {
|
|
1626
|
-
config: I.value,
|
|
1627
|
-
dataset: X.value
|
|
1628
|
-
}), !I.value.userOptions.callbacks.altCopy) {
|
|
1629
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1630
|
-
return;
|
|
1631
|
-
}
|
|
1632
|
-
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
1633
|
-
config: I.value,
|
|
1634
|
-
dataset: X.value
|
|
1635
|
-
}));
|
|
1636
|
-
}
|
|
1637
|
-
let ga = D(!1);
|
|
1638
|
-
function _a() {
|
|
1639
|
-
Pn.value = null, ga.value = !0;
|
|
1640
|
-
}
|
|
1641
|
-
function va() {
|
|
1642
|
-
Pn.value = null, In.value = "pointer", ln.value = !1, $.value = null, on("selectX", {
|
|
1643
|
-
index: null,
|
|
1644
|
-
indexLabel: null,
|
|
1645
|
-
dataset: null
|
|
1646
|
-
}), ga.value = !1;
|
|
1647
|
-
}
|
|
1648
|
-
function ya(e) {
|
|
1649
|
-
if (!$n.value || Hn.value || document.activeElement !== $n.value || zr.value || !Q.value) return;
|
|
1650
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1651
|
-
if (!t && !n && !r && !i) return;
|
|
1652
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1653
|
-
Pn.value = null, In.value = "pointer", ln.value = !1, $.value = null, on("selectX", {
|
|
1654
|
-
index: null,
|
|
1655
|
-
indexLabel: null,
|
|
1656
|
-
dataset: null
|
|
1657
|
-
});
|
|
1658
|
-
return;
|
|
1659
|
-
}
|
|
1660
|
-
if (r) {
|
|
1661
|
-
if (Pn.value === null) return;
|
|
1662
|
-
Oi(Pn.value);
|
|
1663
|
-
return;
|
|
1664
|
-
}
|
|
1665
|
-
let a = Pn.value, o = bi.value, s = a !== null && a >= 0 && a < Q.value, c = o !== null && o >= 0 && o < Q.value;
|
|
1666
|
-
s ? n ? (a += 1, a >= Q.value && (a = 0)) : t && (--a, a < 0 && (a = Q.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Q.value && (a = 0), a < 0 && (a = Q.value - 1)) : a = n ? 0 : Q.value - 1, Pn.value = a, ba(a), Ni(!0, a, "keyboard");
|
|
1667
|
-
}
|
|
1668
|
-
function ba(e) {
|
|
1669
|
-
if (!Number.isFinite(e) || !$n.value) return;
|
|
1670
|
-
let t = G.value.left + e * Ci.value, n = G.value.top + G.value.height / 2, r = d(t, n, $n.value);
|
|
1671
|
-
r && (Fn.value = r);
|
|
1672
|
-
}
|
|
1673
|
-
let xa = b(() => ({
|
|
1674
|
-
headers: Wi.value?.colNames ?? [],
|
|
1675
|
-
rows: Wi.value?.body ?? []
|
|
1676
|
-
}));
|
|
1677
|
-
return Pe({
|
|
1678
|
-
getData: aa,
|
|
1679
|
-
getImage: Qi,
|
|
1680
|
-
generatePdf: lr,
|
|
1681
|
-
generateCsv: Ui,
|
|
1682
|
-
generateImage: ur,
|
|
1683
|
-
generateSvg: Xi,
|
|
1684
|
-
hideSeries: Vi,
|
|
1685
|
-
showSeries: Bi,
|
|
1686
|
-
toggleTable: na,
|
|
1687
|
-
toggleLabels: ra,
|
|
1688
|
-
toggleTooltip: ia,
|
|
1689
|
-
toggleAnnotator: Un,
|
|
1690
|
-
toggleFullscreen: ta,
|
|
1691
|
-
copyAlt: ha
|
|
1692
|
-
}), (n, r) => (E(), C("div", {
|
|
1693
|
-
id: `stackline_${P.value}`,
|
|
1694
|
-
ref_key: "stacklineChart",
|
|
1695
|
-
ref: cn,
|
|
1696
|
-
class: $e({
|
|
1697
|
-
"vue-data-ui-component": !0,
|
|
1698
|
-
"vue-ui-stackline": !0,
|
|
1699
|
-
"vue-data-ui-wrapper-fullscreen": gn.value
|
|
1700
|
-
}),
|
|
1701
|
-
style: et(`background:${H.value.backgroundColor};color:${H.value.color};font-family:${I.value.style.fontFamily}; position: relative; ${I.value.responsive ? "height: 100%" : ""}`),
|
|
1702
|
-
onMouseenter: er,
|
|
1703
|
-
onMouseleave: tr
|
|
1704
|
-
}, [
|
|
1705
|
-
Ke("div", {
|
|
1706
|
-
id: `chart-instructions-${P.value}`,
|
|
1707
|
-
class: "sr-only"
|
|
1708
|
-
}, [Ke("p", null, A(I.value.a11y.translations.keyboardNavigation), 1)], 8, dt),
|
|
1709
|
-
xa.value?.rows?.length ? (E(), x(Be, {
|
|
1710
|
-
key: 0,
|
|
1711
|
-
uid: P.value,
|
|
1712
|
-
head: xa.value.headers,
|
|
1713
|
-
body: xa.value.rows,
|
|
1714
|
-
notice: I.value.a11y.translations.tableAvailable,
|
|
1715
|
-
caption: I.value.a11y.translations.tableCaption
|
|
1716
|
-
}, null, 8, [
|
|
1717
|
-
"uid",
|
|
1718
|
-
"head",
|
|
1719
|
-
"body",
|
|
1720
|
-
"notice",
|
|
1721
|
-
"caption"
|
|
1722
|
-
])) : S("", !0),
|
|
1723
|
-
L.value.buttons.annotator ? (E(), x(j(Zt), {
|
|
1724
|
-
key: 1,
|
|
1725
|
-
svgRef: j($n),
|
|
1726
|
-
backgroundColor: H.value.backgroundColor,
|
|
1727
|
-
color: H.value.color,
|
|
1728
|
-
active: Hn.value,
|
|
1729
|
-
isCursorPointer: Gn.value,
|
|
1730
|
-
palette: L.value.annotatorPalette,
|
|
1731
|
-
onClose: Un
|
|
1732
|
-
}, {
|
|
1733
|
-
"annotator-action-close": M(() => [k(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1734
|
-
"annotator-action-color": M(({ color: e }) => [k(n.$slots, "annotator-action-color", T(w({ color: e })), void 0, !0)]),
|
|
1735
|
-
"annotator-action-draw": M(({ mode: e }) => [k(n.$slots, "annotator-action-draw", T(w({ mode: e })), void 0, !0)]),
|
|
1736
|
-
"annotator-action-undo": M(({ disabled: e }) => [k(n.$slots, "annotator-action-undo", T(w({ disabled: e })), void 0, !0)]),
|
|
1737
|
-
"annotator-action-redo": M(({ disabled: e }) => [k(n.$slots, "annotator-action-redo", T(w({ disabled: e })), void 0, !0)]),
|
|
1738
|
-
"annotator-action-delete": M(({ disabled: e }) => [k(n.$slots, "annotator-action-delete", T(w({ disabled: e })), void 0, !0)]),
|
|
1739
|
-
_: 3
|
|
1740
|
-
}, 8, [
|
|
1741
|
-
"svgRef",
|
|
1742
|
-
"backgroundColor",
|
|
1743
|
-
"color",
|
|
1744
|
-
"active",
|
|
1745
|
-
"isCursorPointer",
|
|
1746
|
-
"palette"
|
|
1747
|
-
])) : S("", !0),
|
|
1748
|
-
k(n.$slots, "userConfig", {}, void 0, !0),
|
|
1749
|
-
dr.value ? (E(), C("div", {
|
|
1750
|
-
key: 2,
|
|
1751
|
-
ref_key: "noTitle",
|
|
1752
|
-
ref: mn,
|
|
1753
|
-
class: "vue-data-ui-no-title-space",
|
|
1754
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1755
|
-
}, null, 512)) : S("", !0),
|
|
1756
|
-
H.value.title.text ? (E(), C("div", {
|
|
1757
|
-
key: 3,
|
|
1758
|
-
ref_key: "chartTitle",
|
|
1759
|
-
ref: dn,
|
|
1760
|
-
style: "width:100%;background:transparent;"
|
|
1761
|
-
}, [(E(), x(Me, {
|
|
1762
|
-
key: `title_${vn.value}`,
|
|
1763
|
-
config: {
|
|
1764
|
-
title: {
|
|
1765
|
-
cy: "stackline-title",
|
|
1766
|
-
...H.value.title
|
|
1767
|
-
},
|
|
1768
|
-
subtitle: {
|
|
1769
|
-
cy: "stackline-subtitle",
|
|
1770
|
-
...H.value.title.subtitle
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1774
|
-
Ke("div", { id: `legend-top-${P.value}` }, null, 8, ft),
|
|
1775
|
-
L.value.show && sn.value && (j(Qn) || j(Xn)) ? (E(), x(j(Qt), {
|
|
1776
|
-
ref_key: "userOptionsRef",
|
|
1777
|
-
ref: Cn,
|
|
1778
|
-
key: `user_option_${un.value}`,
|
|
1779
|
-
backgroundColor: H.value.backgroundColor,
|
|
1780
|
-
color: H.value.color,
|
|
1781
|
-
isPrinting: j(sr),
|
|
1782
|
-
isImaging: j(cr),
|
|
1783
|
-
uid: P.value,
|
|
1784
|
-
hasTooltip: V.value.show && L.value.buttons.tooltip,
|
|
1785
|
-
hasPdf: L.value.buttons.pdf,
|
|
1786
|
-
hasImg: L.value.buttons.img,
|
|
1787
|
-
hasSvg: L.value.buttons.svg,
|
|
1788
|
-
hasXls: L.value.buttons.csv,
|
|
1789
|
-
hasTable: L.value.buttons.table,
|
|
1790
|
-
hasLabel: L.value.buttons.labels,
|
|
1791
|
-
hasFullscreen: L.value.buttons.fullscreen,
|
|
1792
|
-
hasAltCopy: L.value.buttons.altCopy,
|
|
1793
|
-
isFullscreen: gn.value,
|
|
1794
|
-
chartElement: cn.value,
|
|
1795
|
-
position: L.value.position,
|
|
1796
|
-
isTooltip: U.value.showTooltip,
|
|
1797
|
-
titles: { ...L.value.buttonTitles },
|
|
1798
|
-
hasAnnotator: L.value.buttons.annotator,
|
|
1799
|
-
isAnnotation: Hn.value,
|
|
1800
|
-
callbacks: L.value.callbacks,
|
|
1801
|
-
printScale: L.value.print.scale,
|
|
1802
|
-
tableDialog: I.value.table.useDialog,
|
|
1803
|
-
isCursorPointer: Gn.value,
|
|
1804
|
-
onToggleFullscreen: ta,
|
|
1805
|
-
onGeneratePdf: j(lr),
|
|
1806
|
-
onGenerateCsv: Ui,
|
|
1807
|
-
onGenerateImage: j(Zi),
|
|
1808
|
-
onGenerateSvg: j(Xi),
|
|
1809
|
-
onToggleTable: na,
|
|
1810
|
-
onToggleLabels: ra,
|
|
1811
|
-
onToggleTooltip: ia,
|
|
1812
|
-
onToggleAnnotator: Un,
|
|
1813
|
-
onCopyAlt: ha,
|
|
1814
|
-
style: et({ visibility: j(Qn) ? j(Xn) ? "visible" : "hidden" : "visible" })
|
|
1815
|
-
}, qe({ _: 2 }, [
|
|
1816
|
-
n.$slots.menuIcon ? {
|
|
1817
|
-
name: "menuIcon",
|
|
1818
|
-
fn: M(({ isOpen: e, color: t }) => [k(n.$slots, "menuIcon", T(w({
|
|
1819
|
-
isOpen: e,
|
|
1820
|
-
color: t
|
|
1821
|
-
})), void 0, !0)]),
|
|
1822
|
-
key: "0"
|
|
1823
|
-
} : void 0,
|
|
1824
|
-
n.$slots.optionTooltip ? {
|
|
1825
|
-
name: "optionTooltip",
|
|
1826
|
-
fn: M(() => [k(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1827
|
-
key: "1"
|
|
1828
|
-
} : void 0,
|
|
1829
|
-
n.$slots.optionPdf ? {
|
|
1830
|
-
name: "optionPdf",
|
|
1831
|
-
fn: M(() => [k(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1832
|
-
key: "2"
|
|
1833
|
-
} : void 0,
|
|
1834
|
-
n.$slots.optionCsv ? {
|
|
1835
|
-
name: "optionCsv",
|
|
1836
|
-
fn: M(() => [k(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1837
|
-
key: "3"
|
|
1838
|
-
} : void 0,
|
|
1839
|
-
n.$slots.optionImg ? {
|
|
1840
|
-
name: "optionImg",
|
|
1841
|
-
fn: M(() => [k(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1842
|
-
key: "4"
|
|
1843
|
-
} : void 0,
|
|
1844
|
-
n.$slots.optionSvg ? {
|
|
1845
|
-
name: "optionSvg",
|
|
1846
|
-
fn: M(() => [k(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1847
|
-
key: "5"
|
|
1848
|
-
} : void 0,
|
|
1849
|
-
n.$slots.optionTable ? {
|
|
1850
|
-
name: "optionTable",
|
|
1851
|
-
fn: M(() => [k(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1852
|
-
key: "6"
|
|
1853
|
-
} : void 0,
|
|
1854
|
-
n.$slots.optionLabels ? {
|
|
1855
|
-
name: "optionLabels",
|
|
1856
|
-
fn: M(() => [k(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1857
|
-
key: "7"
|
|
1858
|
-
} : void 0,
|
|
1859
|
-
n.$slots.optionFullscreen ? {
|
|
1860
|
-
name: "optionFullscreen",
|
|
1861
|
-
fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [k(n.$slots, "optionFullscreen", T(w({
|
|
1862
|
-
toggleFullscreen: e,
|
|
1863
|
-
isFullscreen: t
|
|
1864
|
-
})), void 0, !0)]),
|
|
1865
|
-
key: "8"
|
|
1866
|
-
} : void 0,
|
|
1867
|
-
n.$slots.optionAnnotator ? {
|
|
1868
|
-
name: "optionAnnotator",
|
|
1869
|
-
fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [k(n.$slots, "optionAnnotator", T(w({
|
|
1870
|
-
toggleAnnotator: e,
|
|
1871
|
-
isAnnotator: t
|
|
1872
|
-
})), void 0, !0)]),
|
|
1873
|
-
key: "9"
|
|
1874
|
-
} : void 0,
|
|
1875
|
-
n.$slots.optionAltCopy ? {
|
|
1876
|
-
name: "optionAltCopy",
|
|
1877
|
-
fn: M(({ altCopy: e }) => [k(n.$slots, "optionAltCopy", T(w({ altCopy: e })), void 0, !0)]),
|
|
1878
|
-
key: "10"
|
|
1879
|
-
} : void 0,
|
|
1880
|
-
n.$slots["custom-menu-before"] ? {
|
|
1881
|
-
name: "custom-menu-before",
|
|
1882
|
-
fn: M(() => [k(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1883
|
-
key: "11"
|
|
1884
|
-
} : void 0,
|
|
1885
|
-
n.$slots["custom-menu-after"] ? {
|
|
1886
|
-
name: "custom-menu-after",
|
|
1887
|
-
fn: M(() => [k(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1888
|
-
key: "12"
|
|
1889
|
-
} : void 0
|
|
1890
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
|
|
1891
|
-
Ke("div", pt, [(E(), C("svg", {
|
|
1892
|
-
ref_key: "svgRef",
|
|
1893
|
-
ref: $n,
|
|
1894
|
-
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1895
|
-
xmlns: j(ue),
|
|
1896
|
-
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1897
|
-
class: $e({
|
|
1898
|
-
"vue-data-ui-loading": j(qn),
|
|
1899
|
-
"vue-data-ui-fullscreen--on": gn.value,
|
|
1900
|
-
"vue-data-ui-fulscreen--off": !gn.value,
|
|
1901
|
-
"vue-data-ui-no-transition": !j(Wn)
|
|
1902
|
-
}),
|
|
1903
|
-
style: et(`max-width:100%;overflow:visible;background:transparent;color:${H.value.color}`),
|
|
1904
|
-
role: "img",
|
|
1905
|
-
"aria-live": "polite",
|
|
1906
|
-
tabindex: "0",
|
|
1907
|
-
preserveAspectRatio: "xMidYMid",
|
|
1908
|
-
onMousemove: Ei,
|
|
1909
|
-
onMouseleave: ki,
|
|
1910
|
-
onClick: Di,
|
|
1911
|
-
onFocus: _a,
|
|
1912
|
-
onBlur: va,
|
|
1913
|
-
onKeydown: ya
|
|
1914
|
-
}, [
|
|
1915
|
-
Ye(j($t)),
|
|
1916
|
-
(E(!0), C(y, null, O(Dr.value, (e) => (E(), C(y, null, [n.$slots.pattern ? (E(), C("defs", ht, [k(n.$slots, "pattern", Ze({ ref_for: !0 }, {
|
|
1917
|
-
seriesIndex: e.absoluteIndex,
|
|
1918
|
-
patternId: `pattern_${P.value}_${e.absoluteIndex}`
|
|
1919
|
-
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
1920
|
-
n.$slots["chart-background"] ? (E(), C("foreignObject", {
|
|
1921
|
-
key: 0,
|
|
1922
|
-
x: Z.value.left,
|
|
1923
|
-
y: G.value.top,
|
|
1924
|
-
width: Z.value.width,
|
|
1925
|
-
height: G.value.height,
|
|
1926
|
-
style: { pointerEvents: "none" }
|
|
1927
|
-
}, [k(n.$slots, "chart-background", {}, void 0, !0)], 8, gt)) : S("", !0),
|
|
1928
|
-
B.value.gradient.show ? (E(), C("defs", _t, [(E(!0), C(y, null, O(X.value, (e, t) => (E(), x(Le, {
|
|
1929
|
-
t: "linear",
|
|
1930
|
-
id: `gradient_${e.id}`,
|
|
1931
|
-
key: `gradient_${e.id}_${t}`,
|
|
1932
|
-
x1: "0%",
|
|
1933
|
-
y1: "0%",
|
|
1934
|
-
x2: "0%",
|
|
1935
|
-
y2: "100%",
|
|
1936
|
-
stops: [[
|
|
1937
|
-
"0%",
|
|
1938
|
-
e.color,
|
|
1939
|
-
1
|
|
1940
|
-
], [
|
|
1941
|
-
"100%",
|
|
1942
|
-
j(u)(e.color, B.value.gradient.intensity / 100),
|
|
1943
|
-
1
|
|
1944
|
-
]]
|
|
1945
|
-
}, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
|
|
1946
|
-
z.value.x.showHorizontalLines ? (E(!0), C(y, { key: 2 }, O(Jr.value, (e, t) => (E(), C("line", {
|
|
1947
|
-
x1: Z.value.left,
|
|
1948
|
-
x2: Z.value.right,
|
|
1949
|
-
y1: e.y,
|
|
1950
|
-
y2: e.y,
|
|
1951
|
-
stroke: z.value.x.linesColor,
|
|
1952
|
-
"stroke-width": z.value.x.linesThickness,
|
|
1953
|
-
"stroke-dasharray": z.value.x.linesStrokeDasharray,
|
|
1954
|
-
"stroke-linecap": "round"
|
|
1955
|
-
}, null, 8, vt))), 256)) : S("", !0),
|
|
1956
|
-
z.value.y.showVerticalLines ? (E(!0), C(y, { key: 3 }, O(J.value.end - J.value.start, (e, t) => (E(), C("line", {
|
|
1957
|
-
x1: wi(t),
|
|
1958
|
-
x2: wi(t),
|
|
1959
|
-
y1: G.value.top,
|
|
1960
|
-
y2: G.value.bottom,
|
|
1961
|
-
stroke: z.value.y.linesColor,
|
|
1962
|
-
"stroke-width": z.value.y.linesThickness,
|
|
1963
|
-
"stroke-dasharray": z.value.y.linesStrokeDasharray,
|
|
1964
|
-
"stroke-linecap": "round"
|
|
1965
|
-
}, null, 8, yt))), 256)) : S("", !0),
|
|
1966
|
-
z.value.x.showAxis ? (E(), C("line", {
|
|
1967
|
-
key: 4,
|
|
1968
|
-
x1: Z.value.left,
|
|
1969
|
-
x2: Z.value.right,
|
|
1970
|
-
y1: G.value.bottom,
|
|
1971
|
-
y2: G.value.bottom,
|
|
1972
|
-
stroke: z.value.x.axisColor,
|
|
1973
|
-
"stroke-width": z.value.x.axisThickness,
|
|
1974
|
-
"stroke-linecap": "round",
|
|
1975
|
-
"stroke-linejoin": "round"
|
|
1976
|
-
}, null, 8, bt)) : S("", !0),
|
|
1977
|
-
z.value.y.showAxis && !B.value.distributed ? (E(), C("line", {
|
|
1978
|
-
key: 5,
|
|
1979
|
-
x1: vr.value ? Z.value.right : Z.value.left,
|
|
1980
|
-
x2: vr.value ? Z.value.right : Z.value.left,
|
|
1981
|
-
y1: G.value.top,
|
|
1982
|
-
y2: G.value.bottom,
|
|
1983
|
-
stroke: z.value.y.axisColor,
|
|
1984
|
-
"stroke-width": z.value.y.axisThickness,
|
|
1985
|
-
"stroke-linecap": "round",
|
|
1986
|
-
"stroke-linejoin": "round"
|
|
1987
|
-
}, null, 8, xt)) : S("", !0),
|
|
1988
|
-
z.value.x.axisName.show && z.value.x.axisName.text ? (E(), C("text", {
|
|
1989
|
-
key: 6,
|
|
1990
|
-
ref_key: "xAxisLabel",
|
|
1991
|
-
ref: Tn,
|
|
1992
|
-
x: G.value.left + G.value.width / 2,
|
|
1993
|
-
y: G.value.chartHeight - 3,
|
|
1994
|
-
"font-size": z.value.x.axisName.fontSize,
|
|
1995
|
-
fill: z.value.x.axisName.color,
|
|
1996
|
-
"font-weight": z.value.x.axisName.bold ? "bold" : "normal",
|
|
1997
|
-
"text-anchor": "middle"
|
|
1998
|
-
}, A(z.value.x.axisName.text), 9, St)) : S("", !0),
|
|
1999
|
-
z.value.y.axisName.show && z.value.y.axisName.text ? (E(), C("text", {
|
|
2000
|
-
key: 7,
|
|
2001
|
-
ref_key: "yAxisLabel",
|
|
2002
|
-
ref: En,
|
|
2003
|
-
transform: `translate(${vr.value ? G.value.chartWidth - z.value.y.axisName.fontSize / 2 - z.value.y.axisName.offsetX : z.value.y.axisName.fontSize + z.value.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
2004
|
-
"font-size": z.value.y.axisName.fontSize,
|
|
2005
|
-
fill: z.value.y.axisName.color,
|
|
2006
|
-
"font-weight": z.value.y.axisName.bold ? "bold" : "normal",
|
|
2007
|
-
"text-anchor": "middle"
|
|
2008
|
-
}, A(z.value.y.axisName.text), 9, Ct)) : S("", !0),
|
|
2009
|
-
z.value.frame.show ? (E(), C("rect", {
|
|
2010
|
-
key: 8,
|
|
2011
|
-
style: {
|
|
2012
|
-
pointerEvents: "none",
|
|
2013
|
-
transition: "none",
|
|
2014
|
-
animation: "none !important"
|
|
2015
|
-
},
|
|
2016
|
-
x: Z.value.left,
|
|
2017
|
-
y: G.value.top,
|
|
2018
|
-
width: Z.value.width,
|
|
2019
|
-
height: G.value.height,
|
|
2020
|
-
fill: "transparent",
|
|
2021
|
-
stroke: z.value.frame.stroke,
|
|
2022
|
-
"stroke-width": z.value.frame.strokeWidth,
|
|
2023
|
-
"stroke-linecap": z.value.frame.strokeLinecap,
|
|
2024
|
-
"stroke-linejoin": z.value.frame.strokeLinejoin,
|
|
2025
|
-
"stroke-dasharray": z.value.frame.strokeDasharray
|
|
2026
|
-
}, null, 8, wt)) : S("", !0),
|
|
2027
|
-
(E(!0), C(y, null, O(X.value, (e) => (E(), C(y, null, [B.value.useArea && !e.standalone ? (E(), C("path", {
|
|
2028
|
-
key: 0,
|
|
2029
|
-
d: B.value.smooth ? e.smoothArea : e.straightArea,
|
|
2030
|
-
fill: n.$slots.pattern ? `url(#pattern_${P.value}_${e.absoluteIndex})` : B.value.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2031
|
-
opacity: B.value.areaOpacity,
|
|
2032
|
-
class: $e({ "vue-data-ui-transition": j(Wn) })
|
|
2033
|
-
}, null, 10, Tt)) : S("", !0)], 64))), 256)),
|
|
2034
|
-
(E(!0), C(y, null, O(X.value, (e) => (E(), C("path", {
|
|
2035
|
-
d: B.value.smooth ? e.smoothPath : e.straightPath,
|
|
2036
|
-
stroke: B.value.path.useSerieColor ? e.color : B.value.path.stroke,
|
|
2037
|
-
"stroke-width": B.value.strokeWidth,
|
|
2038
|
-
fill: "none",
|
|
2039
|
-
"stroke-linecap": "round",
|
|
2040
|
-
class: $e({ "vue-data-ui-transition": j(Wn) })
|
|
2041
|
-
}, null, 10, Et))), 256)),
|
|
2042
|
-
z.value.y.axisLabels.show && !B.value.distributed ? (E(), C("g", {
|
|
2043
|
-
key: 9,
|
|
2044
|
-
ref_key: "scaleLabels",
|
|
2045
|
-
ref: Dn
|
|
2046
|
-
}, [(E(!0), C(y, null, O(Jr.value, (e, t) => (E(), C("line", {
|
|
2047
|
-
key: `ytick_${t}`,
|
|
2048
|
-
class: $e({ "vue-data-ui-transition": j(Wn) }),
|
|
2049
|
-
x1: vr.value ? Z.value.right : Z.value.left,
|
|
2050
|
-
x2: vr.value ? Z.value.right + 6 : Z.value.left - 6,
|
|
2051
|
-
y1: e.y,
|
|
2052
|
-
y2: e.y,
|
|
2053
|
-
stroke: z.value.x.axisColor,
|
|
2054
|
-
"stroke-width": 1
|
|
2055
|
-
}, null, 10, Dt))), 128)), (E(!0), C(y, null, O(Jr.value, (e, n) => (E(), C("text", {
|
|
2056
|
-
class: $e({ "vue-data-ui-transition": j(Wn) }),
|
|
2057
|
-
transform: `translate(${e.x}, ${e.y + z.value.y.axisLabels.fontSize / 3})`,
|
|
2058
|
-
"font-size": z.value.y.axisLabels.fontSize,
|
|
2059
|
-
"font-weight": z.value.y.axisLabels.bold ? "bold" : "normal",
|
|
2060
|
-
fill: z.value.y.axisLabels.color,
|
|
2061
|
-
"text-anchor": vr.value ? "start" : "end"
|
|
2062
|
-
}, A(j(se)(z.value.y.axisLabels.formatter, e.value, j(t)({
|
|
2063
|
-
p: B.value.dataLabels.prefix,
|
|
2064
|
-
v: e.value,
|
|
2065
|
-
s: B.value.dataLabels.suffix,
|
|
2066
|
-
r: z.value.y.axisLabels.rounding
|
|
2067
|
-
}), { datapoint: e })), 11, Ot))), 256))], 512)) : S("", !0),
|
|
2068
|
-
R.value.show ? (E(), C("g", {
|
|
2069
|
-
key: 10,
|
|
2070
|
-
ref_key: "timeLabelsEls",
|
|
2071
|
-
ref: On
|
|
2072
|
-
}, [n.$slots["time-label"] ? (E(), C("g", kt, [(E(!0), C(y, null, O(ti.value, (e, t) => (E(), C("g", null, [k(n.$slots, "time-label", Ze({ ref_for: !0 }, {
|
|
2073
|
-
x: G.value.left + Lr.value * t + Lr.value / 2,
|
|
2074
|
-
y: G.value.bottom + z.value.x.timeLabels.fontSize * 1.3 + z.value.x.timeLabels.offsetY,
|
|
2075
|
-
fontSize: z.value.x.timeLabels.fontSize,
|
|
2076
|
-
fill: z.value.x.timeLabels.color,
|
|
2077
|
-
transform: `translate(${G.value.left + Lr.value * t + Lr.value / 2}, ${G.value.bottom + R.value.fontSize * 1.3 + R.value.offsetY}), rotate(${R.value.rotation})`,
|
|
2078
|
-
absoluteIndex: e.absoluteIndex,
|
|
2079
|
-
content: e.text,
|
|
2080
|
-
textAnchor: z.value.x.timeLabels.rotation > 0 ? "start" : z.value.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2081
|
-
show: !0
|
|
2082
|
-
}), void 0, !0)]))), 256))])) : (E(), C("g", At, [(E(!0), C(y, null, O(ti.value, (e, t) => (E(), C("g", null, [String(e.text).includes("\n") ? (E(), C("text", {
|
|
2083
|
-
key: t + "-multi",
|
|
2084
|
-
"text-anchor": z.value.x.timeLabels.rotation > 0 ? "start" : z.value.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2085
|
-
"font-size": z.value.x.timeLabels.fontSize,
|
|
2086
|
-
fill: z.value.x.timeLabels.color,
|
|
2087
|
-
transform: `
|
|
2088
|
-
translate(
|
|
2089
|
-
${wi(t)},
|
|
2090
|
-
${G.value.bottom + R.value.fontSize * 1.3 + R.value.offsetY}
|
|
2091
|
-
),
|
|
2092
|
-
rotate(${R.value.rotation})
|
|
2093
|
-
`,
|
|
2094
|
-
style: et({ cursor: Gn.value ? "pointer" : "default" }),
|
|
2095
|
-
innerHTML: n.createTSpansFromLineBreaksOnX({
|
|
2096
|
-
content: String(e.text),
|
|
2097
|
-
fontSize: z.value.x.timeLabels.fontSize,
|
|
2098
|
-
fill: z.value.x.timeLabels.color,
|
|
2099
|
-
stroke: H.value.backgroundColor,
|
|
2100
|
-
x: 0,
|
|
2101
|
-
y: 0
|
|
2102
|
-
}),
|
|
2103
|
-
onClick: () => Pi(e, t)
|
|
2104
|
-
}, null, 12, Mt)) : (E(), C("text", {
|
|
2105
|
-
class: "vue-data-ui-time-label",
|
|
2106
|
-
key: t,
|
|
2107
|
-
"text-anchor": z.value.x.timeLabels.rotation > 0 ? "start" : z.value.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2108
|
-
"font-size": z.value.x.timeLabels.fontSize,
|
|
2109
|
-
"font-weight": z.value.x.timeLabels.bold ? "bold" : "normal",
|
|
2110
|
-
fill: z.value.x.timeLabels.color,
|
|
2111
|
-
stroke: H.value.backgroundColor,
|
|
2112
|
-
"stroke-width": "3",
|
|
2113
|
-
"stroke-linecap": "round",
|
|
2114
|
-
"stroke-linejoin": "round",
|
|
2115
|
-
"paint-order": "stroke fill",
|
|
2116
|
-
transform: `translate(${wi(t)}, ${G.value.bottom + R.value.fontSize * 1.3 + R.value.offsetY}), rotate(${R.value.rotation})`,
|
|
2117
|
-
style: et({ cursor: Gn.value ? "pointer" : "default" }),
|
|
2118
|
-
onClick: () => Pi(e, t)
|
|
2119
|
-
}, A(e.text), 13, jt))]))), 256))]))], 512)) : S("", !0),
|
|
2120
|
-
(wn.value || ![null, void 0].includes($.value)) && !H.value.highlighter.useLine ? (E(!0), C(y, { key: 11 }, O(J.value.end - J.value.start, (e, t) => (E(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [Ke("rect", {
|
|
2121
|
-
x: Ti(t).x,
|
|
2122
|
-
y: G.value.top,
|
|
2123
|
-
height: G.value.height,
|
|
2124
|
-
width: Ti(t).width,
|
|
2125
|
-
fill: [Vn.value, $.value].includes(t) ? j(le)(H.value.highlighter.color, H.value.highlighter.opacity) : "transparent",
|
|
2126
|
-
style: {
|
|
2127
|
-
transition: "none !important",
|
|
2128
|
-
animation: "none !important"
|
|
2129
|
-
}
|
|
2130
|
-
}, null, 8, Nt)]))), 128)) : S("", !0),
|
|
2131
|
-
(wn.value || ![null, void 0].includes($.value)) && H.value.highlighter.useLine ? (E(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Vn.value) ? (E(), C("g", Pt, [Ke("line", {
|
|
2132
|
-
x1: wi(($.value ?? Vn.value) || 0),
|
|
2133
|
-
x2: wi(($.value ?? Vn.value) || 0),
|
|
2134
|
-
y1: j(fe)(G.value.top),
|
|
2135
|
-
y2: j(fe)(G.value.bottom),
|
|
2136
|
-
stroke: H.value.highlighter.color,
|
|
2137
|
-
"stroke-width": H.value.highlighter.lineWidth,
|
|
2138
|
-
"stroke-dasharray": H.value.highlighter.lineDasharray,
|
|
2139
|
-
"stroke-linecap": "round",
|
|
2140
|
-
style: {
|
|
2141
|
-
transition: "none !important",
|
|
2142
|
-
animation: "none !important",
|
|
2143
|
-
"pointer-events": "none"
|
|
2144
|
-
}
|
|
2145
|
-
}, null, 8, Ft)])) : S("", !0)], 64)) : S("", !0),
|
|
2146
|
-
(E(!0), C(y, null, O(X.value, (e) => (E(), C(y, { key: `shp_sel_${e.id}` }, [wn.value && J.value.end - J.value.start > B.value.dot.hideAboveMaxSerieLength ? (E(), C("g", It, [$.value == null ? S("", !0) : (E(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[J.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[J.value.start + $.value]) ? (E(), x(Ne, {
|
|
2147
|
-
key: 0,
|
|
2148
|
-
shape: [
|
|
2149
|
-
"triangle",
|
|
2150
|
-
"square",
|
|
2151
|
-
"diamond",
|
|
2152
|
-
"pentagon",
|
|
2153
|
-
"hexagon",
|
|
2154
|
-
"star"
|
|
2155
|
-
].includes(e.shape) ? e.shape : "circle",
|
|
2156
|
-
color: B.value.dot.useSerieColor ? e.color : B.value.dot.fill,
|
|
2157
|
-
plot: {
|
|
2158
|
-
x: j(te)(e.points[e.rel.indexOf($.value)].x),
|
|
2159
|
-
y: j(te)(e.points[e.rel.indexOf($.value)].y)
|
|
2160
|
-
},
|
|
2161
|
-
radius: B.value.dot.radius * 1.3,
|
|
2162
|
-
stroke: B.value.dot.useSerieColor ? B.value.dot.stroke : e.color,
|
|
2163
|
-
strokeWidth: B.value.dot.strokeWidth,
|
|
2164
|
-
still: j(qn),
|
|
2165
|
-
class: $e({ "vue-data-ui-transition": j(Wn) })
|
|
2166
|
-
}, null, 8, [
|
|
2167
|
-
"shape",
|
|
2168
|
-
"color",
|
|
2169
|
-
"plot",
|
|
2170
|
-
"radius",
|
|
2171
|
-
"stroke",
|
|
2172
|
-
"strokeWidth",
|
|
2173
|
-
"still",
|
|
2174
|
-
"class"
|
|
2175
|
-
])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
|
|
2176
|
-
(E(!0), C(y, null, O(X.value, (e) => (E(), C(y, { key: `shp_${e.id}` }, [J.value.end - J.value.start < B.value.dot.hideAboveMaxSerieLength ? (E(!0), C(y, { key: 0 }, O(e.points, (t, n) => (E(), C("g", { key: `shp_${e.id}_${J.value.start + n}` }, [e.fullSeries?.[J.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[J.value.start + e.rel[n]]) ? (E(), x(Ne, {
|
|
2177
|
-
key: 0,
|
|
2178
|
-
shape: [
|
|
2179
|
-
"triangle",
|
|
2180
|
-
"square",
|
|
2181
|
-
"diamond",
|
|
2182
|
-
"pentagon",
|
|
2183
|
-
"hexagon",
|
|
2184
|
-
"star"
|
|
2185
|
-
].includes(e.shape) ? e.shape : "circle",
|
|
2186
|
-
color: B.value.dot.useSerieColor ? e.color : B.value.dot.fill,
|
|
2187
|
-
plot: {
|
|
2188
|
-
x: t.x,
|
|
2189
|
-
y: t.y
|
|
2190
|
-
},
|
|
2191
|
-
radius: wn.value && $.value === e.rel[n] ? B.value.dot.radius * 1.3 : B.value.dot.radius,
|
|
2192
|
-
stroke: B.value.dot.useSerieColor ? B.value.dot.stroke : e.color,
|
|
2193
|
-
strokeWidth: B.value.dot.strokeWidth,
|
|
2194
|
-
still: j(qn),
|
|
2195
|
-
class: $e({ "vue-data-ui-transition": j(Wn) })
|
|
2196
|
-
}, null, 8, [
|
|
2197
|
-
"shape",
|
|
2198
|
-
"color",
|
|
2199
|
-
"plot",
|
|
2200
|
-
"radius",
|
|
2201
|
-
"stroke",
|
|
2202
|
-
"strokeWidth",
|
|
2203
|
-
"still",
|
|
2204
|
-
"class"
|
|
2205
|
-
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
|
|
2206
|
-
U.value.dataLabels.show && B.value.dataLabels.hideAboveMaxSerieLength > J.value.end - J.value.start ? (E(), C(y, { key: 13 }, [(E(!0), C(y, null, O(X.value, (e, t) => (E(), C("g", { key: `dl_${e.id}` }, [(E(!0), C(y, null, O(e.points, (n, r) => (E(), C(y, { key: `dp_${e.id}_${J.value.start + r}` }, [ua(e.series[r], e.proportions[r]) ? (E(), C("text", {
|
|
2207
|
-
key: 0,
|
|
2208
|
-
class: $e({ "vue-data-ui-transition": j(Wn) }),
|
|
2209
|
-
transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -B.value.dataLabels.fontSize / 2 + B.value.dataLabels.offsetY : B.value.dataLabels.fontSize * 1.2 - B.value.dataLabels.offsetY)})`,
|
|
2210
|
-
"font-size": B.value.dataLabels.fontSize,
|
|
2211
|
-
fill: B.value.dataLabels.color,
|
|
2212
|
-
"font-weight": B.value.dataLabels.bold ? "bold" : "normal",
|
|
2213
|
-
"text-anchor": "middle"
|
|
2214
|
-
}, A(B.value.showDistributedPercentage && B.value.distributed ? pa(e.proportions[r] * 100, e, t, e.rel[r]) : fa(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Lt)) : S("", !0)], 64))), 128))]))), 128)), B.value.totalValues.show && X.value.length > 1 ? (E(), C("g", {
|
|
2215
|
-
key: 0,
|
|
2216
|
-
ref_key: "sumTop",
|
|
2217
|
-
ref: kn
|
|
2218
|
-
}, [(E(!0), C(y, null, O(Gr.value, (e, t) => (E(), C(y, { key: `total_l_${t + J.value.start}` }, [!B.value.dataLabels.hideEmptyValues || e.value !== 0 ? (E(), C("text", {
|
|
2219
|
-
key: 0,
|
|
2220
|
-
class: $e({ "vue-data-ui-transition": j(Wn) }),
|
|
2221
|
-
transform: `translate(${wi(t)}, ${qr(t)})`,
|
|
2222
|
-
"text-anchor": "middle",
|
|
2223
|
-
"font-size": B.value.totalValues.fontSize,
|
|
2224
|
-
"font-weight": B.value.totalValues.bold ? "bold" : "normal",
|
|
2225
|
-
fill: B.value.totalValues.color
|
|
2226
|
-
}, A(fa(e.value, e, t, t, e.sign)), 11, Rt)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2227
|
-
jr.value ? (E(), C("rect", Ze({ key: 14 }, Er.value, {
|
|
2228
|
-
"data-start": J.value.start,
|
|
2229
|
-
"data-end": J.value.end
|
|
2230
|
-
}), null, 16, zt)) : S("", !0),
|
|
2231
|
-
k(n.$slots, "svg", { svg: {
|
|
2232
|
-
drawingArea: G.value,
|
|
2233
|
-
data: X.value,
|
|
2234
|
-
isPrintingImg: j(sr) || j(cr) || j(Ji),
|
|
2235
|
-
isPrintingSvg: j(Yi)
|
|
2236
|
-
} }, void 0, !0)
|
|
2237
|
-
], 46, mt)), n.$slots.hint ? (E(), C("div", Bt, [k(n.$slots, "hint", T(w({
|
|
2238
|
-
hint: I.value.a11y.translations.keyboardNavigation,
|
|
2239
|
-
isVisible: ga.value
|
|
2240
|
-
})), void 0, !0)])) : S("", !0)]),
|
|
2241
|
-
n.$slots.watermark ? (E(), C("div", Vt, [k(n.$slots, "watermark", T(w({ isPrinting: j(sr) || j(cr) || j(Ji) || j(Yi) })), void 0, !0)])) : S("", !0),
|
|
2242
|
-
xn.value && (H.value.legend.show || n.$slots.legend) ? (E(), x(Ge, {
|
|
2243
|
-
key: 6,
|
|
2244
|
-
to: H.value.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2245
|
-
}, [Ke("div", {
|
|
2246
|
-
ref_key: "chartLegend",
|
|
2247
|
-
ref: fn
|
|
2248
|
-
}, [k(n.$slots, "legend", { legend: Li.value }, () => [H.value.legend.show ? (E(), x(Ue, {
|
|
2249
|
-
key: 0,
|
|
2250
|
-
legendSet: Li.value,
|
|
2251
|
-
config: Ri.value,
|
|
2252
|
-
isCursorPointer: Gn.value,
|
|
2253
|
-
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2254
|
-
}, qe({
|
|
2255
|
-
item: M(({ legend: e }) => [j(qn) ? S("", !0) : (E(), C("div", {
|
|
2256
|
-
key: 0,
|
|
2257
|
-
onClick: (t) => e.segregate(),
|
|
2258
|
-
style: et(`opacity:${F.value.includes(e.id) ? .5 : 1}`)
|
|
2259
|
-
}, A(e.name), 13, Ht))]),
|
|
2260
|
-
legendToggle: M(() => [Li.value.length > 2 && H.value.legend.selectAllToggle.show && !j(qn) ? (E(), x(ze, {
|
|
2261
|
-
key: 0,
|
|
2262
|
-
backgroundColor: H.value.legend.selectAllToggle.backgroundColor,
|
|
2263
|
-
color: H.value.legend.selectAllToggle.color,
|
|
2264
|
-
fontSize: H.value.legend.fontSize,
|
|
2265
|
-
checked: F.value.length > 0,
|
|
2266
|
-
isCursorPointer: Gn.value,
|
|
2267
|
-
onToggle: Fi
|
|
2268
|
-
}, null, 8, [
|
|
2269
|
-
"backgroundColor",
|
|
2270
|
-
"color",
|
|
2271
|
-
"fontSize",
|
|
2272
|
-
"checked",
|
|
2273
|
-
"isCursorPointer"
|
|
2274
|
-
])) : S("", !0)]),
|
|
2275
|
-
_: 2
|
|
2276
|
-
}, [n.$slots.pattern ? {
|
|
2277
|
-
name: "legend-pattern",
|
|
2278
|
-
fn: M(({ legend: e, index: t }) => [Ye(Ne, {
|
|
2279
|
-
shape: e.shape,
|
|
2280
|
-
radius: 30,
|
|
2281
|
-
stroke: "none",
|
|
2282
|
-
plot: {
|
|
2283
|
-
x: 30,
|
|
2284
|
-
y: 30
|
|
2285
|
-
},
|
|
2286
|
-
fill: `url(#pattern_${P.value}_${t})`
|
|
2287
|
-
}, null, 8, ["shape", "fill"])]),
|
|
2288
|
-
key: "0"
|
|
2289
|
-
} : void 0]), 1032, [
|
|
2290
|
-
"legendSet",
|
|
2291
|
-
"config",
|
|
2292
|
-
"isCursorPointer"
|
|
2293
|
-
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2294
|
-
sn.value && L.value.buttons.table ? (E(), x(rt($i.value.component), Ze({ key: 7 }, $i.value.props, {
|
|
2295
|
-
ref_key: "tableUnit",
|
|
2296
|
-
ref: Sn,
|
|
2297
|
-
onClose: ea
|
|
2298
|
-
}), qe({
|
|
2299
|
-
content: M(() => [Ye(j(Xt), {
|
|
2300
|
-
colNames: Wi.value.colNames,
|
|
2301
|
-
head: Wi.value.head,
|
|
2302
|
-
body: Wi.value.body,
|
|
2303
|
-
config: Wi.value.config,
|
|
2304
|
-
title: I.value.table.useDialog ? "" : $i.value.title,
|
|
2305
|
-
withCloseButton: !I.value.table.useDialog,
|
|
2306
|
-
isCursorPointer: Gn.value,
|
|
2307
|
-
onClose: ea
|
|
2308
|
-
}, {
|
|
2309
|
-
th: M(({ th: e }) => [e === "__SUM__" ? (E(), C("div", Ut, [Ye(j(Jt), {
|
|
2310
|
-
name: "sigma",
|
|
2311
|
-
stroke: Wi.value.config.th.color,
|
|
2312
|
-
size: 16
|
|
2313
|
-
}, null, 8, ["stroke"])])) : (E(), C("div", Wt, A(e), 1))]),
|
|
2314
|
-
td: M(({ td: e }) => [Je(A(isNaN(Number(e)) ? e : j(t)({
|
|
2315
|
-
p: B.value.dataLabels.prefix,
|
|
2316
|
-
v: e,
|
|
2317
|
-
s: B.value.dataLabels.suffix,
|
|
2318
|
-
r: I.value.table.td.roundingValue
|
|
2319
|
-
})), 1)]),
|
|
2320
|
-
_: 1
|
|
2321
|
-
}, 8, [
|
|
2322
|
-
"colNames",
|
|
2323
|
-
"head",
|
|
2324
|
-
"body",
|
|
2325
|
-
"config",
|
|
2326
|
-
"title",
|
|
2327
|
-
"withCloseButton",
|
|
2328
|
-
"isCursorPointer"
|
|
2329
|
-
])]),
|
|
2330
|
-
_: 2
|
|
2331
|
-
}, [I.value.table.useDialog ? {
|
|
2332
|
-
name: "title",
|
|
2333
|
-
fn: M(() => [Je(A($i.value.title), 1)]),
|
|
2334
|
-
key: "0"
|
|
2335
|
-
} : void 0, I.value.table.useDialog ? {
|
|
2336
|
-
name: "actions",
|
|
2337
|
-
fn: M(() => [Ke("button", {
|
|
2338
|
-
tabindex: "0",
|
|
2339
|
-
class: "vue-ui-user-options-button",
|
|
2340
|
-
onClick: r[1] ||= (e) => Ui(L.value.callbacks.csv),
|
|
2341
|
-
style: et({ cursor: Gn.value ? "pointer" : "default" })
|
|
2342
|
-
}, [Ye(j(Jt), {
|
|
2343
|
-
name: "fileCsv",
|
|
2344
|
-
stroke: $i.value.props.color
|
|
2345
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
2346
|
-
key: "1"
|
|
2347
|
-
} : void 0]), 1040)) : S("", !0),
|
|
2348
|
-
H.value.zoom.show && sn.value && di.value && q.value > 6 ? (E(), x(Re, {
|
|
2349
|
-
key: 8,
|
|
2350
|
-
ref_key: "chartSlicer",
|
|
2351
|
-
ref: pn,
|
|
2352
|
-
"data-dom-to-png-ignore-layout": "",
|
|
2353
|
-
allMinimaps: Vr.value,
|
|
2354
|
-
background: H.value.zoom.color,
|
|
2355
|
-
borderColor: H.value.backgroundColor,
|
|
2356
|
-
customFormat: H.value.zoom.customFormat,
|
|
2357
|
-
cutNullValues: !1,
|
|
2358
|
-
enableRangeHandles: H.value.zoom.enableRangeHandles,
|
|
2359
|
-
enableSelectionDrag: H.value.zoom.enableSelectionDrag,
|
|
2360
|
-
end: J.value.end,
|
|
2361
|
-
focusOnDrag: H.value.zoom.focusOnDrag,
|
|
2362
|
-
focusRangeRatio: H.value.zoom.focusRangeRatio,
|
|
2363
|
-
fontSize: H.value.zoom.fontSize,
|
|
2364
|
-
immediate: !H.value.zoom.preview.enable,
|
|
2365
|
-
inputColor: H.value.zoom.color,
|
|
2366
|
-
isPreview: jr.value,
|
|
2367
|
-
labelLeft: R.value.values[J.value.start] ? Yr.value?.[0]?.text ?? "" : "",
|
|
2368
|
-
labelRight: R.value.values[J.value.end - 1] ? Yr.value?.at(-1)?.text ?? "" : "",
|
|
2369
|
-
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2370
|
-
min: 0,
|
|
2371
|
-
minimap: Br.value,
|
|
2372
|
-
minimapCompact: H.value.zoom.minimap.compact,
|
|
2373
|
-
minimapFrameColor: H.value.zoom.minimap.frameColor,
|
|
2374
|
-
minimapIndicatorColor: H.value.zoom.minimap.indicatorColor,
|
|
2375
|
-
minimapMerged: !1,
|
|
2376
|
-
minimapSelectedColor: H.value.zoom.minimap.selectedColor,
|
|
2377
|
-
minimapSelectedColorOpacity: H.value.zoom.minimap.selectedColorOpacity,
|
|
2378
|
-
minimapSelectedIndex: $.value,
|
|
2379
|
-
minimapSelectionRadius: 1,
|
|
2380
|
-
preciseLabels: oi.value.length ? oi.value : Xr.value,
|
|
2381
|
-
refreshEndPoint: H.value.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : H.value.zoom.endIndex + 1,
|
|
2382
|
-
refreshStartPoint: H.value.zoom.startIndex === null ? 0 : H.value.zoom.startIndex,
|
|
2383
|
-
selectColor: H.value.zoom.highlightColor,
|
|
2384
|
-
selectedSeries: sa.value,
|
|
2385
|
-
smoothMinimap: !1,
|
|
2386
|
-
start: J.value.start,
|
|
2387
|
-
textColor: H.value.color,
|
|
2388
|
-
timeLabels: Xr.value,
|
|
2389
|
-
usePreciseLabels: R.value.datetimeFormatter.enable && !H.value.zoom.useDefaultFormat,
|
|
2390
|
-
valueEnd: J.value.end,
|
|
2391
|
-
valueStart: J.value.start,
|
|
2392
|
-
verticalHandles: H.value.zoom.minimap.verticalHandles,
|
|
2393
|
-
maxWidth: H.value.zoom.maxWidth,
|
|
2394
|
-
minimapLeftInsetRatio: G.value.chartWidth > 0 && H.value.zoom.autoFit ? G.value.left / G.value.chartWidth : null,
|
|
2395
|
-
minimapRightInsetRatio: G.value.chartWidth > 0 && H.value.zoom.autoFit ? (G.value.chartWidth - G.value.right) / G.value.chartWidth : null,
|
|
2396
|
-
isCursorPointer: Gn.value,
|
|
2397
|
-
additionalMinimapHeight: H.value.zoom.minimap.additionalHeight,
|
|
2398
|
-
handleType: H.value.zoom.minimap.handleType,
|
|
2399
|
-
handleIconColor: H.value.zoom.minimap.handleIconColor,
|
|
2400
|
-
handleBorderWidth: H.value.zoom.minimap.handleBorderWidth,
|
|
2401
|
-
handleBorderColor: H.value.zoom.minimap.handleBorderColor,
|
|
2402
|
-
handleFill: H.value.zoom.minimap.handleFill,
|
|
2403
|
-
handleWidth: H.value.zoom.minimap.handleWidth,
|
|
2404
|
-
"onUpdate:end": hi,
|
|
2405
|
-
"onUpdate:start": mi,
|
|
2406
|
-
onTrapMouse: kr,
|
|
2407
|
-
onReset: r[2] ||= () => Ir({ force: !0 }),
|
|
2408
|
-
onFutureEnd: r[3] ||= (e) => Mr("end", e),
|
|
2409
|
-
onFutureStart: r[4] ||= (e) => Mr("start", e)
|
|
2410
|
-
}, {
|
|
2411
|
-
"reset-action": M(({ reset: e }) => [k(n.$slots, "reset-action", T(w({ reset: e })), void 0, !0)]),
|
|
2412
|
-
slotMap: M(({ width: e, height: t, unitW: n }) => [Ke("g", { innerHTML: la({
|
|
2413
|
-
minimapW: e,
|
|
2414
|
-
minimapH: t,
|
|
2415
|
-
unitW: n
|
|
2416
|
-
}) }, null, 8, Gt)]),
|
|
2417
|
-
_: 3
|
|
2418
|
-
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2419
|
-
Ke("div", { id: `legend-bottom-${P.value}` }, null, 8, Kt),
|
|
2420
|
-
Ye(j(qt), {
|
|
2421
|
-
teleportTo: V.value.teleportTo,
|
|
2422
|
-
show: U.value.showTooltip && ln.value,
|
|
2423
|
-
backgroundColor: V.value.backgroundColor,
|
|
2424
|
-
color: V.value.color,
|
|
2425
|
-
fontSize: V.value.fontSize,
|
|
2426
|
-
borderRadius: V.value.borderRadius,
|
|
2427
|
-
borderColor: V.value.borderColor,
|
|
2428
|
-
borderWidth: V.value.borderWidth,
|
|
2429
|
-
backgroundOpacity: V.value.backgroundOpacity,
|
|
2430
|
-
position: V.value.position,
|
|
2431
|
-
offsetX: V.value.offsetX,
|
|
2432
|
-
offsetY: V.value.offsetY,
|
|
2433
|
-
parent: cn.value,
|
|
2434
|
-
content: Mi.value,
|
|
2435
|
-
isFullscreen: gn.value,
|
|
2436
|
-
isCustom: V.value.customFormat && typeof V.value.customFormat == "function",
|
|
2437
|
-
smooth: V.value.smooth,
|
|
2438
|
-
backdropFilter: V.value.backdropFilter,
|
|
2439
|
-
smoothForce: V.value.smoothForce,
|
|
2440
|
-
smoothSnapThreshold: V.value.smoothSnapThreshold,
|
|
2441
|
-
isA11yMode: In.value === "keyboard",
|
|
2442
|
-
a11yPosition: Fn.value
|
|
2443
|
-
}, {
|
|
2444
|
-
"tooltip-before": M(() => [k(n.$slots, "tooltip-before", T(w({ ...li.value })), void 0, !0)]),
|
|
2445
|
-
tooltip: M(() => [k(n.$slots, "tooltip", T(w({ ...li.value })), void 0, !0)]),
|
|
2446
|
-
"tooltip-after": M(() => [k(n.$slots, "tooltip-after", T(w({ ...li.value })), void 0, !0)]),
|
|
2447
|
-
_: 3
|
|
2448
|
-
}, 8, [
|
|
2449
|
-
"teleportTo",
|
|
2450
|
-
"show",
|
|
2451
|
-
"backgroundColor",
|
|
2452
|
-
"color",
|
|
2453
|
-
"fontSize",
|
|
2454
|
-
"borderRadius",
|
|
2455
|
-
"borderColor",
|
|
2456
|
-
"borderWidth",
|
|
2457
|
-
"backgroundOpacity",
|
|
2458
|
-
"position",
|
|
2459
|
-
"offsetX",
|
|
2460
|
-
"offsetY",
|
|
2461
|
-
"parent",
|
|
2462
|
-
"content",
|
|
2463
|
-
"isFullscreen",
|
|
2464
|
-
"isCustom",
|
|
2465
|
-
"smooth",
|
|
2466
|
-
"backdropFilter",
|
|
2467
|
-
"smoothForce",
|
|
2468
|
-
"smoothSnapThreshold",
|
|
2469
|
-
"isA11yMode",
|
|
2470
|
-
"a11yPosition"
|
|
2471
|
-
]),
|
|
2472
|
-
n.$slots.source ? (E(), C("div", {
|
|
2473
|
-
key: 9,
|
|
2474
|
-
ref_key: "source",
|
|
2475
|
-
ref: hn,
|
|
2476
|
-
dir: "auto"
|
|
2477
|
-
}, [k(n.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2478
|
-
k(n.$slots, "skeleton", {}, () => [j(qn) ? (E(), x(we, { key: 0 })) : S("", !0)], !0)
|
|
2479
|
-
], 46, ut));
|
|
2480
|
-
}
|
|
2481
|
-
}, [["__scopeId", "data-v-97d7644a"]]);
|
|
2482
|
-
//#endregion
|
|
2483
|
-
export { lt as n, qt as t };
|