vue-data-ui 2.4.22 → 2.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BW_I0Vmx.js → Arrow-9iDBAuSV.js} +1 -1
- package/dist/{Arrow-D2zjDsxe.cjs → Arrow-DHtg3zTZ.cjs} +1 -1
- package/dist/{BaseIcon-BCC16NCl.cjs → BaseIcon-CZcJp0BK.cjs} +1 -1
- package/dist/{BaseIcon-BbbAnrZI.js → BaseIcon-Cupc3HpM.js} +1 -1
- package/dist/{DataTable-DeevzR8O.cjs → DataTable-CKU2-3VH.cjs} +1 -1
- package/dist/{DataTable-Ce4R8v-3.js → DataTable-DpgVCStr.js} +2 -2
- package/dist/{Legend-C6q2bLVV.js → Legend-BItqGLYs.js} +1 -1
- package/dist/{Legend-BksImVUi.cjs → Legend-Lx_cdBGO.cjs} +1 -1
- package/dist/{PackageVersion-g2UOsY7H.js → PackageVersion-COTfkq01.js} +1 -1
- package/dist/{PackageVersion-AftniVVo.cjs → PackageVersion-KNK0JwMQ.cjs} +1 -1
- package/dist/{PenAndPaper-DRFeGfqV.js → PenAndPaper-CCFQ3lIj.js} +3 -3
- package/dist/{PenAndPaper-j5noaKJZ.cjs → PenAndPaper-CUZAR9sb.cjs} +1 -1
- package/dist/{Shape-Cf2Cj3g6.cjs → Shape-CHo_V5NA.cjs} +1 -1
- package/dist/{Shape-CBu7ails.js → Shape-CNgd2ODn.js} +1 -1
- package/dist/{Slicer-C0bRksfh.js → Slicer-1C1usd0L.js} +2 -2
- package/dist/{Slicer-IneBjcpY.cjs → Slicer-DFzd-3uU.cjs} +1 -1
- package/dist/{Title-B2orjUIW.js → Title-ZcAPoasN.js} +1 -1
- package/dist/{Title-BxrsVY3-.cjs → Title-kzPAj9Bx.cjs} +1 -1
- package/dist/{Tooltip-CXjc5vb3.js → Tooltip-CUGz5S0n.js} +1 -1
- package/dist/{Tooltip-BXc56Oxr.cjs → Tooltip-rrH-I4us.cjs} +1 -1
- package/dist/index-BkeVohkW.cjs +9 -0
- package/dist/{index-D020Kb3z.js → index-CWlhzm6K.js} +4 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-CZkNAGQh.js → useNestedProp-DH41HJ08.js} +1 -1
- package/dist/{useNestedProp-vPTP0Wem.cjs → useNestedProp-Dp6z-Sc4.cjs} +1 -1
- package/dist/{usePrinter-BKzxQK4e.cjs → usePrinter-DHOJP772.cjs} +1 -1
- package/dist/{usePrinter-CN0J0NFL.js → usePrinter-DPAte4qe.js} +1 -1
- package/dist/{vue-data-ui-e2cclW_4.js → vue-data-ui-pKAecUSS.js} +58 -58
- package/dist/{vue-data-ui-CWDZLUkp.cjs → vue-data-ui-qgmGN1Q3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DggyGAlC.js → vue-ui-3d-bar-BXCwShkR.js} +9 -9
- package/dist/{vue-ui-3d-bar-DCeFCwb0.cjs → vue-ui-3d-bar-DWuaVLbf.cjs} +1 -1
- package/dist/{vue-ui-accordion-QoJofzqF.cjs → vue-ui-accordion-C5v0z_Xf.cjs} +1 -1
- package/dist/{vue-ui-accordion-B0fEWLwn.js → vue-ui-accordion-DOBaAopj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CXtRGpVa.cjs → vue-ui-age-pyramid-DbPAn9zq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DGDvfcvP.js → vue-ui-age-pyramid-vyCFJjNt.js} +10 -10
- package/dist/{vue-ui-annotator-BETCQ-pV.js → vue-ui-annotator-DGCuUvcA.js} +1 -1
- package/dist/{vue-ui-annotator-BEZ0D_12.cjs → vue-ui-annotator-HVCwKP38.cjs} +1 -1
- package/dist/{vue-ui-bullet-BK3d_nhc.js → vue-ui-bullet-BQ6KtvIV.js} +8 -8
- package/dist/{vue-ui-bullet-qAGQkwN4.cjs → vue-ui-bullet-gBARXd6m.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DwfFHSRG.cjs → vue-ui-candlestick-CH00Pe-m.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DQR8cYLr.js → vue-ui-candlestick-Cp94bu6U.js} +11 -11
- package/dist/{vue-ui-carousel-table-BrIXFgJp.cjs → vue-ui-carousel-table-ArXyyfTX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-B6TSxUwp.js → vue-ui-carousel-table-DMlpUpov.js} +4 -4
- package/dist/{vue-ui-chestnut-CWtw_edx.cjs → vue-ui-chestnut-CGFD2NmV.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CpINqXRz.js → vue-ui-chestnut-Ddab6epX.js} +8 -8
- package/dist/{vue-ui-cursor-yI58QC1O.js → vue-ui-cursor-B7c72wC4.js} +2 -2
- package/dist/{vue-ui-cursor-DvX6FbhZ.cjs → vue-ui-cursor-BDlDJKU9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BCic2CfN.cjs → vue-ui-dashboard-C3v2FoY4.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Bb7vJ0Nx.js → vue-ui-dashboard-D6YQysXz.js} +2 -2
- package/dist/{vue-ui-digits-C4dI1v6b.cjs → vue-ui-digits-C5t5G6WA.cjs} +1 -1
- package/dist/{vue-ui-digits-D4uy7_hL.js → vue-ui-digits-rKt3WYmo.js} +2 -2
- package/dist/{vue-ui-donut-ClvjMOxC.cjs → vue-ui-donut-CIaIft1i.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DFkGtmhv.cjs → vue-ui-donut-evolution-EaxYPzHO.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DgrQVEh2.js → vue-ui-donut-evolution-x154QZPU.js} +11 -11
- package/dist/{vue-ui-donut-CRiEc5mP.js → vue-ui-donut-xEiPs0jw.js} +11 -11
- package/dist/{vue-ui-dumbbell-BdkARfxX.cjs → vue-ui-dumbbell-Bhw-LZKD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-QCB4jZm4.js → vue-ui-dumbbell-lk9voxo9.js} +10 -10
- package/dist/{vue-ui-flow-CYfdTIad.cjs → vue-ui-flow-D282qMxZ.cjs} +1 -1
- package/dist/{vue-ui-flow-CRnCk5Is.js → vue-ui-flow-DDrRUTls.js} +9 -9
- package/dist/{vue-ui-galaxy-WhRsA1Is.js → vue-ui-galaxy-CdrlGwj5.js} +11 -11
- package/dist/{vue-ui-galaxy-Cn9t3BG5.cjs → vue-ui-galaxy-D1WO8wNh.cjs} +1 -1
- package/dist/{vue-ui-gauge-DwmCZiTj.js → vue-ui-gauge-BB0B-afr.js} +7 -7
- package/dist/{vue-ui-gauge-jYskVFUy.cjs → vue-ui-gauge-CLE1ripj.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DpEZm4Uk.js → vue-ui-gizmo-BwhKySbh.js} +3 -3
- package/dist/{vue-ui-gizmo-C2P2qQYU.cjs → vue-ui-gizmo-YAVeHEMb.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D7TGNxC-.cjs → vue-ui-heatmap-CA3rX3aP.cjs} +1 -1
- package/dist/{vue-ui-heatmap-u3SOjwts.js → vue-ui-heatmap-HtfXbdDL.js} +10 -10
- package/dist/{vue-ui-kpi-Cdz5RM6j.js → vue-ui-kpi-l3PRzR6k.js} +3 -3
- package/dist/{vue-ui-kpi-CCr0pHjp.cjs → vue-ui-kpi-nA9x9jed.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B2Xh0j5H.js → vue-ui-mini-loader-08kgYVwW.js} +2 -2
- package/dist/{vue-ui-mini-loader-BuCeYPNP.cjs → vue-ui-mini-loader-C6NkSh4S.cjs} +1 -1
- package/dist/{vue-ui-molecule-GPDqR2rp.js → vue-ui-molecule-BAwlDL6Z.js} +11 -11
- package/dist/{vue-ui-molecule-z1A47zG1.cjs → vue-ui-molecule-BP_b5wFi.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-YZfCADah.cjs → vue-ui-mood-radar-CiF-yLnM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DdQC5bH5.js → vue-ui-mood-radar-D7R1sJ-s.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CDSRcEX0.cjs → vue-ui-nested-donuts-BoiB2fYL.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Cf_KfoeP.js → vue-ui-nested-donuts-mi_bKP5P.js} +11 -11
- package/dist/{vue-ui-onion-CmGZo3Sf.cjs → vue-ui-onion-B_9x-PDA.cjs} +1 -1
- package/dist/{vue-ui-onion-Lw3ohFAX.js → vue-ui-onion-DDcm9VKG.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-AHpf7ejC.cjs → vue-ui-parallel-coordinate-plot-B8Amex6j.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BsT0r0hr.js → vue-ui-parallel-coordinate-plot-BLXVSCmi.js} +12 -12
- package/dist/{vue-ui-quadrant-BPUIyB4-.cjs → vue-ui-quadrant-BFEprQ_j.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BTmoe6UT.js → vue-ui-quadrant-BmPJLow1.js} +12 -12
- package/dist/{vue-ui-quick-chart-CRtE0pcc.js → vue-ui-quick-chart-B7Sotlr0.js} +9 -9
- package/dist/{vue-ui-quick-chart-BYyXa06h.cjs → vue-ui-quick-chart-Cnb0C1nv.cjs} +1 -1
- package/dist/{vue-ui-radar-krdMX_hl.cjs → vue-ui-radar-CYu4mixy.cjs} +1 -1
- package/dist/{vue-ui-radar-BpkjOSOI.js → vue-ui-radar-SYkVFE08.js} +12 -12
- package/dist/{vue-ui-rating-9kj9GE7P.cjs → vue-ui-rating-36rj-wHU.cjs} +1 -1
- package/dist/{vue-ui-rating-D1RlkwK9.js → vue-ui-rating-452f1yMa.js} +2 -2
- package/dist/{vue-ui-relation-circle-B7WGb08k.js → vue-ui-relation-circle-CWbxQJsa.js} +7 -7
- package/dist/{vue-ui-relation-circle-Kv3G0P5k.cjs → vue-ui-relation-circle-DVuvBy9_.cjs} +1 -1
- package/dist/{vue-ui-rings-DjXcLsY1.js → vue-ui-rings-CDVcaS2n.js} +11 -11
- package/dist/{vue-ui-rings-DsZPnoqm.cjs → vue-ui-rings-DBXvtevd.cjs} +1 -1
- package/dist/{vue-ui-scatter-DEkTyyG8.js → vue-ui-scatter-BG1X9kbp.js} +12 -12
- package/dist/{vue-ui-scatter-D3ntjnfT.cjs → vue-ui-scatter-CjOuKwUh.cjs} +1 -1
- package/dist/{vue-ui-screenshot-kiJVXAGt.js → vue-ui-screenshot-CZkWSgQw.js} +1 -1
- package/dist/{vue-ui-screenshot-BEbUxjNl.cjs → vue-ui-screenshot-UevcnZpH.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CI8sxaqr.cjs → vue-ui-skeleton-Cu2s1RAC.cjs} +1 -1
- package/dist/{vue-ui-skeleton-E1-7diF5.js → vue-ui-skeleton-D8lu0qH2.js} +3 -3
- package/dist/{vue-ui-smiley-CmkUQtfb.cjs → vue-ui-smiley-D9S4GXJs.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cjbqlfre.js → vue-ui-smiley-ogUjJC93.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfpFe1UQ.js → vue-ui-spark-trend-8QH7-7XF.js} +5 -5
- package/dist/{vue-ui-spark-trend-C60Ypeev.cjs → vue-ui-spark-trend-C7kB_1Vw.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B5oV2RUs.js → vue-ui-sparkbar-CjH_X0R-.js} +4 -4
- package/dist/{vue-ui-sparkbar-BAa71eZp.cjs → vue-ui-sparkbar-h8ikA2Sx.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-UejPQm4b.cjs → vue-ui-sparkgauge-C9LFXNGj.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-xlERw-g0.js → vue-ui-sparkgauge-Cs41GkQn.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-nzFRlmgx.js → vue-ui-sparkhistogram-DTKMNIQK.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DC4jzkI0.cjs → vue-ui-sparkhistogram-FSp_ueqT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Duu0VrnG.js → vue-ui-sparkline-BLA-tfpO.js} +4 -4
- package/dist/{vue-ui-sparkline-BT4hxfBE.cjs → vue-ui-sparkline-Drr1pzx9.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-tyoFIhva.js → vue-ui-sparkstackbar-CfcRdnSX.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-K_vPau1u.cjs → vue-ui-sparkstackbar-CusKLPdp.cjs} +1 -1
- package/dist/{vue-ui-stackbar-e8BUjttp.js → vue-ui-stackbar-D0eu-fwT.js} +12 -12
- package/dist/{vue-ui-stackbar-DRlvF164.cjs → vue-ui-stackbar-skhdwzKu.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-8MOhIicL.cjs → vue-ui-strip-plot-BAhwCR9h.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Ef8oKjNV.js → vue-ui-strip-plot-C8OUrG4s.js} +11 -11
- package/dist/{vue-ui-table-BOV6jtcL.js → vue-ui-table-Bu2uIl2l.js} +1 -1
- package/dist/{vue-ui-table-DfevkNnK.cjs → vue-ui-table-DEGpMRSo.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BMyRP1ol.cjs → vue-ui-table-heatmap-D8tpklnq.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CL-MybKI.js → vue-ui-table-heatmap-zO08g4xR.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CsqcT3ff.cjs → vue-ui-table-sparkline-Di3fZVu4.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DXvxiDJJ.js → vue-ui-table-sparkline-lYobxmx6.js} +5 -5
- package/dist/{vue-ui-thermometer-DyYqfAOW.cjs → vue-ui-thermometer-B2xrgXt1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-WKzTNOOX.js → vue-ui-thermometer-BenXeMXf.js} +7 -7
- package/dist/{vue-ui-timer-DQQGe1jt.cjs → vue-ui-timer-CDB9r1W2.cjs} +1 -1
- package/dist/{vue-ui-timer-CFDkyaxV.js → vue-ui-timer-LJyKKC2o.js} +5 -5
- package/dist/{vue-ui-tiremarks-aiUC8-YL.js → vue-ui-tiremarks-DoTYOuot.js} +7 -7
- package/dist/{vue-ui-tiremarks-C8iAWe-u.cjs → vue-ui-tiremarks-Dy9gG1gc.cjs} +1 -1
- package/dist/{vue-ui-treemap-BORZ3g1I.cjs → vue-ui-treemap-BPz_AwA2.cjs} +1 -1
- package/dist/{vue-ui-treemap-Bw-bWkza.js → vue-ui-treemap-CY5sCBQp.js} +11 -11
- package/dist/{vue-ui-vertical-bar--mYbTcpi.js → vue-ui-vertical-bar-B8kiRxLN.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B3ypOHUB.cjs → vue-ui-vertical-bar-DTOcnkWX.cjs} +1 -1
- package/dist/{vue-ui-waffle-Bj-tJs4n.js → vue-ui-waffle-B4RCOwEg.js} +11 -11
- package/dist/{vue-ui-waffle-_84Hvek7.cjs → vue-ui-waffle-Dv2YchrJ.cjs} +1 -1
- package/dist/{vue-ui-wheel-C-v9TgG1.cjs → vue-ui-wheel-C7wEmgol.cjs} +1 -1
- package/dist/{vue-ui-wheel-BywwqvY2.js → vue-ui-wheel-Zk6U_Lnd.js} +7 -7
- package/dist/{vue-ui-word-cloud-CwExwCYc.js → vue-ui-word-cloud-5fxQJ65o.js} +10 -10
- package/dist/{vue-ui-word-cloud-CaQ4jLed.cjs → vue-ui-word-cloud-DIF9KUX-.cjs} +1 -1
- package/dist/{vue-ui-xy-CT3-xPpa.cjs → vue-ui-xy-Bcb7loPC.cjs} +1 -1
- package/dist/{vue-ui-xy-CAYxRDzC.js → vue-ui-xy-BnasTV4L.js} +14 -14
- package/dist/{vue-ui-xy-canvas-BOElCo0f.js → vue-ui-xy-canvas-BIULd1f-.js} +224 -224
- package/dist/vue-ui-xy-canvas-Dc4l_P9H.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-3oZdQf6G.cjs +0 -9
- package/dist/vue-ui-xy-canvas-CdrfnVuI.cjs +0 -9
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
2
|
-
import { u as $a, c as za, t as Ta, a as Ma, p as H, b as Ra, C as xe, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-
|
|
1
|
+
import { ref as v, computed as b, watch as A, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as F, createCommentVNode as _, unref as D, createSlots as Ca, withCtx as m, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
|
|
2
|
+
import { u as $a, c as za, t as Ta, a as Ma, p as H, b as Ra, C as xe, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-CWlhzm6K.js";
|
|
3
3
|
import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as Le, b as E, p as Ke, u as Ba } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Xa } from "./Tooltip-
|
|
5
|
-
import { L as Ua } from "./Legend-
|
|
6
|
-
import { _ as Za } from "./Title-
|
|
7
|
-
import { S as Ga } from "./Slicer-
|
|
8
|
-
import { u as Va, U as ja } from "./usePrinter-
|
|
9
|
-
import qa from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ja } from "./DataTable-
|
|
11
|
-
import Ka from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Qe } from "./useNestedProp-
|
|
13
|
-
import { P as Qa } from "./PenAndPaper-
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
4
|
+
import { _ as Xa } from "./Tooltip-CUGz5S0n.js";
|
|
5
|
+
import { L as Ua } from "./Legend-BItqGLYs.js";
|
|
6
|
+
import { _ as Za } from "./Title-ZcAPoasN.js";
|
|
7
|
+
import { S as Ga } from "./Slicer-1C1usd0L.js";
|
|
8
|
+
import { u as Va, U as ja } from "./usePrinter-DPAte4qe.js";
|
|
9
|
+
import qa from "./vue-ui-accordion-DOBaAopj.js";
|
|
10
|
+
import { D as Ja } from "./DataTable-DpgVCStr.js";
|
|
11
|
+
import Ka from "./vue-ui-skeleton-D8lu0qH2.js";
|
|
12
|
+
import { u as Qe } from "./useNestedProp-DH41HJ08.js";
|
|
13
|
+
import { P as Qa } from "./PenAndPaper-CCFQ3lIj.js";
|
|
14
|
+
import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const al = ["id"], ll = ["onClick"], tl = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, ol = ["innerHTML"], ul = {
|
|
19
19
|
__name: "vue-ui-xy-canvas",
|
|
20
20
|
props: {
|
|
21
21
|
dataset: {
|
|
@@ -33,14 +33,14 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(ke, { expose: ea, emit: aa }) {
|
|
36
|
-
const M = ke, { vue_ui_xy_canvas:
|
|
36
|
+
const M = ke, { vue_ui_xy_canvas: la } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), S = v([]), W = v(1), N = v(!0), z = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Te = v(null), Me = v(null), de = v(0), he = v(0), fe = v(0), ye = b(() => !!M.dataset && M.dataset.length), a = b({
|
|
37
37
|
get: () => Re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
});
|
|
40
40
|
function Re() {
|
|
41
41
|
const e = Qe({
|
|
42
42
|
userConfig: M.config,
|
|
43
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: la
|
|
44
44
|
});
|
|
45
45
|
return e.theme ? {
|
|
46
46
|
...Qe({
|
|
@@ -58,16 +58,16 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
58
58
|
const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = Va({
|
|
59
59
|
elementId: `xy_canvas_${ie.value}`,
|
|
60
60
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
61
|
-
}),
|
|
61
|
+
}), r = v({
|
|
62
62
|
showTable: a.value.table.show,
|
|
63
63
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
64
64
|
stacked: a.value.style.chart.stacked,
|
|
65
65
|
showTooltip: a.value.style.chart.tooltip.show
|
|
66
66
|
});
|
|
67
|
-
function
|
|
67
|
+
function ta(e) {
|
|
68
68
|
ce.value = e, Se.value += 1;
|
|
69
69
|
}
|
|
70
|
-
const Ne =
|
|
70
|
+
const Ne = b(() => Ra(a.value.customPalette)), I = b(() => Y.value ? Math.max(...Y.value.filter((e, t) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
|
|
71
71
|
const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
72
72
|
return {
|
|
73
73
|
canvasWidth: f.value,
|
|
@@ -78,40 +78,40 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
78
78
|
bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
|
|
79
79
|
width: e,
|
|
80
80
|
height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
81
|
-
slot: e / (
|
|
81
|
+
slot: e / (u.value.end - u.value.start)
|
|
82
82
|
};
|
|
83
83
|
});
|
|
84
|
-
function Ae(e,
|
|
85
|
-
return e /
|
|
84
|
+
function Ae(e, t) {
|
|
85
|
+
return e / t;
|
|
86
86
|
}
|
|
87
|
-
function oa({ hasAutoScale: e, series:
|
|
88
|
-
return
|
|
87
|
+
function oa({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
|
|
88
|
+
return t.map((k, be) => {
|
|
89
89
|
const T = c.min < 0 ? Math.abs(c.min) : 0, O = Ae(k + T, T + c.max);
|
|
90
90
|
let P, G;
|
|
91
91
|
e && (P = Math.abs(c.min), G = Ae(k + P, c.max + P));
|
|
92
92
|
let V = 0;
|
|
93
|
-
return g === null ? V =
|
|
94
|
-
x:
|
|
93
|
+
return g === null ? V = l.value.bottom - l.value.height * (e ? G : O) : V = l.value.bottom - y - n * (e ? G : O), {
|
|
94
|
+
x: l.value.left + l.value.slot * be + l.value.slot / 2,
|
|
95
95
|
y: V,
|
|
96
96
|
value: k
|
|
97
97
|
};
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
const p =
|
|
101
|
-
const e = Math.min(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(
|
|
102
|
-
y:
|
|
103
|
-
x:
|
|
100
|
+
const p = b(() => {
|
|
101
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o = xe(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
|
|
102
|
+
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
103
|
+
x: l.value.left - 8,
|
|
104
104
|
value: n
|
|
105
105
|
}));
|
|
106
106
|
return {
|
|
107
107
|
absoluteMin: i,
|
|
108
|
-
max:
|
|
108
|
+
max: t,
|
|
109
109
|
min: e,
|
|
110
110
|
scale: o,
|
|
111
111
|
yLabels: y,
|
|
112
112
|
zero: c
|
|
113
113
|
};
|
|
114
|
-
}),
|
|
114
|
+
}), ua = b(() => h.value.map((e) => `
|
|
115
115
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
116
116
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
117
117
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -129,23 +129,23 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
129
129
|
{ datapoint: e, seriesIndex: d.value }
|
|
130
130
|
)}</span>
|
|
131
131
|
</div>
|
|
132
|
-
`)), Y =
|
|
132
|
+
`)), Y = b(() => M.dataset.map((e, t) => ({
|
|
133
133
|
...e,
|
|
134
134
|
series: Ia({
|
|
135
135
|
data: Oa(e.series),
|
|
136
136
|
threshold: a.value.downsample.threshold
|
|
137
137
|
}),
|
|
138
|
-
absoluteIndex:
|
|
139
|
-
color: je(e.color || Ne.value[
|
|
138
|
+
absoluteIndex: t,
|
|
139
|
+
color: je(e.color || Ne.value[t] || H[t] || H[t % H.length])
|
|
140
140
|
})));
|
|
141
141
|
A(I, (e) => {
|
|
142
142
|
e && _e();
|
|
143
143
|
});
|
|
144
|
-
const h =
|
|
144
|
+
const h = b(() => Pa(Y.value.filter((e, t) => !S.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
145
145
|
...e,
|
|
146
|
-
series: e.series.slice(
|
|
147
|
-
})).map((e,
|
|
148
|
-
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
146
|
+
series: e.series.slice(u.value.start, u.value.end)
|
|
147
|
+
})).map((e, t) => {
|
|
148
|
+
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, i = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
149
149
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
150
150
|
const y = {
|
|
151
151
|
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
@@ -154,22 +154,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
154
154
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
155
155
|
let g;
|
|
156
156
|
e.autoScaling ? g = xe(y.valueMin, y.valueMax, n) : g = xe(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
|
|
157
|
-
const k =
|
|
157
|
+
const k = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, be = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = r.value.stacked ? l.value.height * e.stackRatio - be : l.value.height, O = g.min < 0 ? Math.abs(g.min) : 0;
|
|
158
158
|
let P;
|
|
159
|
-
e.autoScaling &&
|
|
160
|
-
const G = g.ticks.map((j,
|
|
161
|
-
y:
|
|
162
|
-
x:
|
|
159
|
+
e.autoScaling && r.value.stacked && i <= 0 ? P = l.value.bottom - k - T : P = l.value.bottom - k - T * (O / (g.max + O));
|
|
160
|
+
const G = g.ticks.map((j, ba) => ({
|
|
161
|
+
y: l.value.bottom - k - T * (ba / (g.ticks.length - 1)),
|
|
162
|
+
x: l.value.left - 8,
|
|
163
163
|
value: j
|
|
164
164
|
})), V = oa({
|
|
165
|
-
hasAutoScale:
|
|
165
|
+
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
166
166
|
series: e.series,
|
|
167
|
-
min:
|
|
168
|
-
max:
|
|
169
|
-
scale:
|
|
167
|
+
min: r.value.stacked ? o : p.value.min,
|
|
168
|
+
max: r.value.stacked ? i : p.value.max,
|
|
169
|
+
scale: r.value.stacked ? g : p.value.scale,
|
|
170
170
|
yOffset: k,
|
|
171
171
|
individualHeight: T,
|
|
172
|
-
stackIndex:
|
|
172
|
+
stackIndex: r.value.stacked ? t : null
|
|
173
173
|
});
|
|
174
174
|
return {
|
|
175
175
|
...e,
|
|
@@ -183,37 +183,37 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
183
183
|
yOffset: k,
|
|
184
184
|
individualHeight: T
|
|
185
185
|
};
|
|
186
|
-
})),
|
|
186
|
+
})), u = v({
|
|
187
187
|
start: 0,
|
|
188
188
|
end: I.value
|
|
189
189
|
});
|
|
190
190
|
function _e() {
|
|
191
|
-
|
|
191
|
+
u.value = {
|
|
192
192
|
start: 0,
|
|
193
193
|
end: I.value
|
|
194
194
|
}, we.value += 1;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const ra = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), L = b(() => h.value.filter((e) => e.type === "bar"));
|
|
197
197
|
function sa() {
|
|
198
198
|
if (!$.value)
|
|
199
199
|
return;
|
|
200
|
-
const e = Z.value.offsetWidth,
|
|
201
|
-
$.value.width = e * W.value * 2, $.value.height =
|
|
200
|
+
const e = Z.value.offsetWidth, t = Z.value.offsetHeight;
|
|
201
|
+
$.value.width = e * W.value * 2, $.value.height = t * W.value * 2, f.value = e * W.value * 2, R.value = t * W.value * 2, s.value.scale(W.value, W.value), ge();
|
|
202
202
|
}
|
|
203
203
|
function na() {
|
|
204
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
205
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
206
|
-
for (let
|
|
204
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
|
|
205
|
+
a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
206
|
+
for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
|
|
207
207
|
w(
|
|
208
208
|
s.value,
|
|
209
209
|
[
|
|
210
210
|
{
|
|
211
|
-
x:
|
|
212
|
-
y:
|
|
211
|
+
x: l.value.left + l.value.slot * t,
|
|
212
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
215
|
+
x: l.value.left + l.value.slot * t,
|
|
216
|
+
y: l.value.bottom - e.yOffset
|
|
217
217
|
}
|
|
218
218
|
],
|
|
219
219
|
{
|
|
@@ -221,14 +221,14 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
221
221
|
}
|
|
222
222
|
);
|
|
223
223
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
224
|
-
e.localYLabels.forEach((
|
|
224
|
+
e.localYLabels.forEach((t, o) => {
|
|
225
225
|
o < e.localYLabels.length - 1 && Le(
|
|
226
226
|
s.value,
|
|
227
227
|
[
|
|
228
|
-
{ x:
|
|
229
|
-
{ x:
|
|
230
|
-
{ x:
|
|
231
|
-
{ x:
|
|
228
|
+
{ x: l.value.left, y: t.y },
|
|
229
|
+
{ x: l.value.right, y: t.y },
|
|
230
|
+
{ x: l.value.right, y: e.localYLabels[o + 1].y },
|
|
231
|
+
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
232
232
|
],
|
|
233
233
|
{
|
|
234
234
|
fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
@@ -237,12 +237,12 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
237
237
|
);
|
|
238
238
|
});
|
|
239
239
|
}) : h.value.forEach((e) => {
|
|
240
|
-
e.localYLabels.slice(
|
|
240
|
+
e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
|
|
241
241
|
w(
|
|
242
242
|
s.value,
|
|
243
243
|
[
|
|
244
|
-
{ x:
|
|
245
|
-
{ x:
|
|
244
|
+
{ x: l.value.left, y: t.y },
|
|
245
|
+
{ x: l.value.right, y: t.y }
|
|
246
246
|
],
|
|
247
247
|
{
|
|
248
248
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -253,8 +253,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
253
253
|
w(
|
|
254
254
|
s.value,
|
|
255
255
|
[
|
|
256
|
-
{ x:
|
|
257
|
-
{ x:
|
|
256
|
+
{ x: l.value.left, y: e.localZero },
|
|
257
|
+
{ x: l.value.right, y: e.localZero }
|
|
258
258
|
],
|
|
259
259
|
{
|
|
260
260
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -265,8 +265,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
265
265
|
w(
|
|
266
266
|
s.value,
|
|
267
267
|
[
|
|
268
|
-
{ x:
|
|
269
|
-
{ x:
|
|
268
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
269
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
270
270
|
],
|
|
271
271
|
{
|
|
272
272
|
color: e.color
|
|
@@ -274,28 +274,28 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
274
274
|
), w(
|
|
275
275
|
s.value,
|
|
276
276
|
[
|
|
277
|
-
{ x:
|
|
278
|
-
{ x:
|
|
277
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
278
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
279
279
|
],
|
|
280
280
|
{
|
|
281
281
|
color: e.color
|
|
282
282
|
}
|
|
283
|
-
), e.localYLabels.forEach((
|
|
283
|
+
), e.localYLabels.forEach((t, o) => {
|
|
284
284
|
E(
|
|
285
285
|
s.value,
|
|
286
286
|
Q(
|
|
287
287
|
a.value.style.chart.dataLabels.formatter,
|
|
288
|
-
|
|
288
|
+
t.value,
|
|
289
289
|
ee({
|
|
290
290
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
291
|
-
v:
|
|
291
|
+
v: t.value,
|
|
292
292
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
293
293
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
294
294
|
}),
|
|
295
|
-
{ datapoint:
|
|
295
|
+
{ datapoint: t, seriesIndex: o }
|
|
296
296
|
),
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
298
|
+
t.y,
|
|
299
299
|
{
|
|
300
300
|
align: "right",
|
|
301
301
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -308,7 +308,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
308
308
|
s.value,
|
|
309
309
|
e.name,
|
|
310
310
|
f.value / 35,
|
|
311
|
-
|
|
311
|
+
l.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
312
312
|
{
|
|
313
313
|
align: "center",
|
|
314
314
|
rotation: -90,
|
|
@@ -318,29 +318,29 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
318
318
|
);
|
|
319
319
|
});
|
|
320
320
|
else {
|
|
321
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
322
|
-
for (let e = 0; e <
|
|
321
|
+
if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
322
|
+
for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
|
|
323
323
|
w(
|
|
324
324
|
s.value,
|
|
325
325
|
[
|
|
326
|
-
{ x:
|
|
327
|
-
{ x:
|
|
326
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
327
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.bottom }
|
|
328
328
|
],
|
|
329
329
|
{
|
|
330
330
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
334
|
-
|
|
333
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
334
|
+
t < p.value.yLabels.length - 1 && Le(
|
|
335
335
|
s.value,
|
|
336
336
|
[
|
|
337
|
-
{ x:
|
|
338
|
-
{ x:
|
|
339
|
-
{ x:
|
|
340
|
-
{ x:
|
|
337
|
+
{ x: l.value.left, y: e.y },
|
|
338
|
+
{ x: l.value.right, y: e.y },
|
|
339
|
+
{ x: l.value.right, y: p.value.yLabels[t + 1].y },
|
|
340
|
+
{ x: l.value.left, y: p.value.yLabels[t + 1].y }
|
|
341
341
|
],
|
|
342
342
|
{
|
|
343
|
-
fillColor:
|
|
343
|
+
fillColor: t % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
344
344
|
strokeColor: "transparent"
|
|
345
345
|
}
|
|
346
346
|
);
|
|
@@ -348,8 +348,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
348
348
|
w(
|
|
349
349
|
s.value,
|
|
350
350
|
[
|
|
351
|
-
{ x:
|
|
352
|
-
{ x:
|
|
351
|
+
{ x: l.value.left, y: e.y },
|
|
352
|
+
{ x: l.value.right, y: e.y }
|
|
353
353
|
],
|
|
354
354
|
{
|
|
355
355
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -358,8 +358,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
358
358
|
})), a.value.style.chart.grid.y.showAxis && w(
|
|
359
359
|
s.value,
|
|
360
360
|
[
|
|
361
|
-
{ x:
|
|
362
|
-
{ x:
|
|
361
|
+
{ x: l.value.left, y: l.value.top },
|
|
362
|
+
{ x: l.value.left, y: l.value.bottom }
|
|
363
363
|
],
|
|
364
364
|
{
|
|
365
365
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -368,8 +368,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
368
368
|
), a.value.style.chart.grid.x.showAxis && w(
|
|
369
369
|
s.value,
|
|
370
370
|
[
|
|
371
|
-
{ x:
|
|
372
|
-
{ x:
|
|
371
|
+
{ x: l.value.left, y: l.value.bottom },
|
|
372
|
+
{ x: l.value.right, y: l.value.bottom }
|
|
373
373
|
],
|
|
374
374
|
{
|
|
375
375
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -378,14 +378,14 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
378
378
|
), a.value.style.chart.grid.zeroLine.show && w(
|
|
379
379
|
s.value,
|
|
380
380
|
[
|
|
381
|
-
{ x:
|
|
382
|
-
{ x:
|
|
381
|
+
{ x: l.value.left, y: p.value.zero },
|
|
382
|
+
{ x: l.value.right, y: p.value.zero }
|
|
383
383
|
],
|
|
384
384
|
{
|
|
385
385
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
386
386
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
387
387
|
}
|
|
388
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
388
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
|
|
389
389
|
E(
|
|
390
390
|
s.value,
|
|
391
391
|
Q(
|
|
@@ -397,7 +397,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
397
397
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
398
398
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
399
399
|
}),
|
|
400
|
-
{ datapoint: e, seriesIndex:
|
|
400
|
+
{ datapoint: e, seriesIndex: t }
|
|
401
401
|
),
|
|
402
402
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
403
403
|
e.y,
|
|
@@ -413,7 +413,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
413
413
|
s.value,
|
|
414
414
|
a.value.style.chart.grid.y.axisName,
|
|
415
415
|
f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
416
|
-
|
|
416
|
+
l.value.bottom - l.value.height / 2,
|
|
417
417
|
{
|
|
418
418
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
419
419
|
color: a.value.style.chart.color,
|
|
@@ -433,11 +433,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
435
|
function ia(e) {
|
|
436
|
-
for (let
|
|
437
|
-
const o = (d.value ===
|
|
436
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
437
|
+
const o = (d.value === t ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
438
438
|
Je(
|
|
439
439
|
s.value,
|
|
440
|
-
{ x: e.coordinatesLine[
|
|
440
|
+
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
441
441
|
o,
|
|
442
442
|
{
|
|
443
443
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -448,22 +448,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function va(e) {
|
|
451
|
-
for (let
|
|
451
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
452
452
|
E(
|
|
453
453
|
s.value,
|
|
454
454
|
Q(
|
|
455
455
|
a.value.style.chart.dataLabels.formatter,
|
|
456
|
-
e.coordinatesLine[
|
|
456
|
+
e.coordinatesLine[t].value,
|
|
457
457
|
ee({
|
|
458
458
|
p: e.prefix || "",
|
|
459
|
-
v: e.coordinatesLine[
|
|
459
|
+
v: e.coordinatesLine[t].value,
|
|
460
460
|
s: e.suffix || "",
|
|
461
461
|
r: e.rounding || 0
|
|
462
462
|
}),
|
|
463
|
-
{ datapoint: e.coordinatesLine[
|
|
463
|
+
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
464
464
|
),
|
|
465
|
-
e.coordinatesLine[
|
|
466
|
-
e.coordinatesLine[
|
|
465
|
+
e.coordinatesLine[t].x,
|
|
466
|
+
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
467
467
|
{
|
|
468
468
|
align: "center",
|
|
469
469
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -474,16 +474,16 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
476
|
function ca() {
|
|
477
|
-
for (let e =
|
|
478
|
-
(
|
|
477
|
+
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
478
|
+
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + u.value.start)) && E(
|
|
479
479
|
s.value,
|
|
480
480
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
482
|
+
l.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
483
483
|
{
|
|
484
484
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
485
485
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
486
|
-
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value +
|
|
486
|
+
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100),
|
|
487
487
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
488
488
|
}
|
|
489
489
|
);
|
|
@@ -492,8 +492,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
492
492
|
w(
|
|
493
493
|
s.value,
|
|
494
494
|
[
|
|
495
|
-
{ x:
|
|
496
|
-
{ x:
|
|
495
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
496
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
|
|
497
497
|
],
|
|
498
498
|
{
|
|
499
499
|
color: a.value.style.chart.selector.color,
|
|
@@ -504,25 +504,25 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
function da() {
|
|
507
|
-
L.value.forEach((e,
|
|
507
|
+
L.value.forEach((e, t) => {
|
|
508
508
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
509
509
|
Le(
|
|
510
510
|
s.value,
|
|
511
511
|
[
|
|
512
512
|
{
|
|
513
|
-
x:
|
|
514
|
-
y:
|
|
513
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)),
|
|
514
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
|
-
x:
|
|
518
|
-
y:
|
|
517
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : L.value.length),
|
|
518
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
|
-
x:
|
|
521
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : L.value.length),
|
|
522
522
|
y: e.coordinatesLine[o].y
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
|
-
x:
|
|
525
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)),
|
|
526
526
|
y: e.coordinatesLine[o].y
|
|
527
527
|
}
|
|
528
528
|
],
|
|
@@ -536,7 +536,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
536
536
|
},
|
|
537
537
|
end: {
|
|
538
538
|
x: e.coordinatesLine[o].x,
|
|
539
|
-
y:
|
|
539
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
540
540
|
},
|
|
541
541
|
stops: [
|
|
542
542
|
{ offset: 0, color: e.color },
|
|
@@ -544,7 +544,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
544
544
|
]
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
),
|
|
547
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
|
|
548
548
|
s.value,
|
|
549
549
|
Q(
|
|
550
550
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -557,8 +557,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
557
557
|
}),
|
|
558
558
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
559
559
|
),
|
|
560
|
-
|
|
561
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
560
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : L.value.length),
|
|
561
|
+
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
562
562
|
{
|
|
563
563
|
align: "center",
|
|
564
564
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -570,7 +570,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
function ha(e) {
|
|
573
|
-
e.useArea ?
|
|
573
|
+
e.useArea ? r.value.stacked ? Ke(
|
|
574
574
|
s.value,
|
|
575
575
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
576
576
|
{
|
|
@@ -590,12 +590,12 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
function fa() {
|
|
593
|
-
h.value.forEach((e,
|
|
593
|
+
h.value.forEach((e, t) => {
|
|
594
594
|
w(
|
|
595
595
|
s.value,
|
|
596
596
|
[
|
|
597
|
-
{ x:
|
|
598
|
-
{ x:
|
|
597
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
598
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset }
|
|
599
599
|
],
|
|
600
600
|
{
|
|
601
601
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -605,8 +605,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
function ge() {
|
|
608
|
-
na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && De(), da(),
|
|
609
|
-
(e.type === "line" || !e.type) && ha(e), z.value && (ia(e),
|
|
608
|
+
na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && De(), da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ra.value.forEach((e) => {
|
|
609
|
+
(e.type === "line" || !e.type) && ha(e), z.value && (ia(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && va(e));
|
|
610
610
|
}), ve.value = Wa($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && De(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
611
611
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
612
612
|
if (!e.coordinatesLine[d.value]) return;
|
|
@@ -630,13 +630,13 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
630
630
|
z.value = !0, sa();
|
|
631
631
|
}, I.value > 200 ? 10 : 1, !z.value);
|
|
632
632
|
function ya(e) {
|
|
633
|
-
const { left:
|
|
634
|
-
if (o * 2 <
|
|
635
|
-
|
|
633
|
+
const { left: t } = $.value.getBoundingClientRect(), o = e.clientX - t;
|
|
634
|
+
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
635
|
+
le.value = !1, d.value = null;
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
|
-
const i = o * 2 -
|
|
639
|
-
if (d.value = Math.floor(i /
|
|
638
|
+
const i = o * 2 - l.value.left;
|
|
639
|
+
if (d.value = Math.floor(i / l.value.slot), le.value = !0, !z.value) return;
|
|
640
640
|
let c = "";
|
|
641
641
|
const y = a.value.style.chart.tooltip.customFormat;
|
|
642
642
|
qe(y) && Na(() => y({
|
|
@@ -650,7 +650,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
650
650
|
})),
|
|
651
651
|
series: h.value,
|
|
652
652
|
config: a.value
|
|
653
|
-
})) ?
|
|
653
|
+
})) ? te.value = y({
|
|
654
654
|
seriesIndex: d.value,
|
|
655
655
|
datapoint: h.value.map((n) => ({
|
|
656
656
|
shape: n.shape || null,
|
|
@@ -661,23 +661,23 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
661
661
|
})),
|
|
662
662
|
series: h.value,
|
|
663
663
|
config: a.value
|
|
664
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
664
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c), z.value = !1;
|
|
665
665
|
}
|
|
666
666
|
A(() => d.value, (e) => {
|
|
667
667
|
oe();
|
|
668
|
-
}), A(() =>
|
|
668
|
+
}), A(() => u.value, (e) => {
|
|
669
669
|
N.value = !0, ge();
|
|
670
670
|
}, {
|
|
671
671
|
deep: !0
|
|
672
|
-
}), A(() =>
|
|
672
|
+
}), A(() => r.value.showDataLabels, (e) => {
|
|
673
673
|
N.value = !0, ge();
|
|
674
|
-
}), A(() =>
|
|
674
|
+
}), A(() => r.value.stacked, (e) => {
|
|
675
675
|
N.value = !0, z.value = !0, oe();
|
|
676
676
|
});
|
|
677
677
|
function ga() {
|
|
678
|
-
|
|
678
|
+
le.value = !1, d.value = null, te.value = "";
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const ue = v(null), re = v(null);
|
|
681
681
|
xa(() => {
|
|
682
682
|
pe();
|
|
683
683
|
});
|
|
@@ -687,32 +687,32 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
687
687
|
type: "dataset"
|
|
688
688
|
}) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
689
689
|
const e = Ya(() => {
|
|
690
|
-
const { width:
|
|
690
|
+
const { width: t, height: o } = Ba({
|
|
691
691
|
chart: U.value,
|
|
692
692
|
title: a.value.style.chart.title.text ? $e.value : null,
|
|
693
693
|
legend: a.value.style.chart.legend.show ? ze.value : null,
|
|
694
694
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Te.value : null,
|
|
695
695
|
source: Me.value
|
|
696
696
|
});
|
|
697
|
-
Ie.value = `${
|
|
697
|
+
Ie.value = `${t} / ${o}`;
|
|
698
698
|
});
|
|
699
|
-
|
|
699
|
+
ue.value = new ResizeObserver(e), ue.value.observe(U.value.parentNode);
|
|
700
700
|
}
|
|
701
|
-
|
|
702
|
-
for (const
|
|
703
|
-
|
|
704
|
-
}),
|
|
701
|
+
re.value = new ResizeObserver((e) => {
|
|
702
|
+
for (const t of e)
|
|
703
|
+
t.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
704
|
+
}), re.value.observe(Z.value);
|
|
705
705
|
}
|
|
706
706
|
La(() => {
|
|
707
|
-
|
|
707
|
+
re.value && re.value.disconnect(), ue.value && ue.value.disconnect();
|
|
708
708
|
});
|
|
709
709
|
function He(e) {
|
|
710
|
-
aa("selectLegend", h.value.find((
|
|
710
|
+
aa("selectLegend", h.value.find((t) => t.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((t) => t !== e) : S.value.push(e), N.value = !0, oe();
|
|
711
711
|
}
|
|
712
|
-
const We =
|
|
712
|
+
const We = b(() => Y.value.map((e, t) => ({
|
|
713
713
|
...e,
|
|
714
714
|
name: e.name,
|
|
715
|
-
color: je(e.color) || Ne.value[
|
|
715
|
+
color: je(e.color) || Ne.value[t] || H[t] || H[t % H.length],
|
|
716
716
|
shape: e.shape || "circle",
|
|
717
717
|
prefix: e.prefix || "",
|
|
718
718
|
suffix: e.suffix || "",
|
|
@@ -722,19 +722,19 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
722
722
|
opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
723
723
|
segregate: () => He(e.absoluteIndex),
|
|
724
724
|
isSegregated: S.value.includes(e.absoluteIndex)
|
|
725
|
-
}))), pa =
|
|
725
|
+
}))), pa = b(() => ({
|
|
726
726
|
cy: "donut-div-legend",
|
|
727
727
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
728
728
|
color: a.value.style.chart.legend.color,
|
|
729
729
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
730
730
|
paddingBottom: 12,
|
|
731
731
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
732
|
-
})), se =
|
|
732
|
+
})), se = b(() => {
|
|
733
733
|
const e = [""].concat(h.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
734
|
-
let
|
|
734
|
+
let t = [];
|
|
735
735
|
for (let c = 0; c < I.value; c += 1) {
|
|
736
736
|
const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
737
|
-
|
|
737
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((y ?? 0).toFixed(a.value.table.rounding)));
|
|
738
738
|
}
|
|
739
739
|
const o = {
|
|
740
740
|
th: {
|
|
@@ -749,47 +749,47 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
749
749
|
},
|
|
750
750
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
751
751
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
752
|
-
return { head: e, body:
|
|
753
|
-
}), Ye =
|
|
752
|
+
return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: i };
|
|
753
|
+
}), Ye = b(() => {
|
|
754
754
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
755
755
|
const e = h.value.map((o) => ({
|
|
756
756
|
label: o.name,
|
|
757
757
|
color: o.color,
|
|
758
758
|
type: o.type
|
|
759
|
-
})),
|
|
760
|
-
for (let o =
|
|
759
|
+
})), t = [];
|
|
760
|
+
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
761
761
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
762
762
|
h.value.forEach((c) => {
|
|
763
763
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
764
|
-
}),
|
|
764
|
+
}), t.push(i);
|
|
765
765
|
}
|
|
766
|
-
return { head: e, body:
|
|
766
|
+
return { head: e, body: t };
|
|
767
767
|
});
|
|
768
768
|
function Be() {
|
|
769
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
769
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ye.value.head.map((y) => y.label)], o = Ye.value.body, i = e.concat([t]).concat(o), c = Aa(i);
|
|
770
770
|
_a({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function ma() {
|
|
773
773
|
return h.value;
|
|
774
774
|
}
|
|
775
775
|
function Xe() {
|
|
776
|
-
|
|
776
|
+
r.value.showTable = !r.value.showTable;
|
|
777
777
|
}
|
|
778
778
|
function Ue() {
|
|
779
|
-
|
|
779
|
+
r.value.showDataLabels = !r.value.showDataLabels;
|
|
780
780
|
}
|
|
781
781
|
function Ze() {
|
|
782
|
-
|
|
782
|
+
r.value.stacked = !r.value.stacked;
|
|
783
783
|
}
|
|
784
784
|
function Ge() {
|
|
785
|
-
|
|
785
|
+
r.value.showTooltip = !r.value.showTooltip;
|
|
786
786
|
}
|
|
787
787
|
const ne = v(!1);
|
|
788
|
-
function
|
|
788
|
+
function me() {
|
|
789
789
|
ne.value = !ne.value;
|
|
790
790
|
}
|
|
791
791
|
return ea({
|
|
792
|
-
getData:
|
|
792
|
+
getData: ma,
|
|
793
793
|
generateCsv: Be,
|
|
794
794
|
generatePdf: Fe,
|
|
795
795
|
generateImage: Ee,
|
|
@@ -797,8 +797,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
797
797
|
toggleLabels: Ue,
|
|
798
798
|
toggleStack: Ze,
|
|
799
799
|
toggleTooltip: Ge,
|
|
800
|
-
toggleAnnotator:
|
|
801
|
-
}), (e,
|
|
800
|
+
toggleAnnotator: me
|
|
801
|
+
}), (e, t) => (C(), q("div", {
|
|
802
802
|
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
803
803
|
ref_key: "xy",
|
|
804
804
|
ref: U,
|
|
@@ -840,16 +840,16 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
840
840
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
841
841
|
hasStack: ke.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
842
842
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
843
|
-
hasTable:
|
|
843
|
+
hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
|
|
844
844
|
isFullscreen: ce.value,
|
|
845
|
-
isTooltip:
|
|
846
|
-
isStacked:
|
|
845
|
+
isTooltip: r.value.showTooltip,
|
|
846
|
+
isStacked: r.value.stacked,
|
|
847
847
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
848
848
|
chartElement: U.value,
|
|
849
849
|
position: a.value.userOptions.position,
|
|
850
850
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
851
851
|
isAnnotation: ne.value,
|
|
852
|
-
onToggleFullscreen:
|
|
852
|
+
onToggleFullscreen: ta,
|
|
853
853
|
onGeneratePdf: D(Fe),
|
|
854
854
|
onGenerateCsv: Be,
|
|
855
855
|
onGenerateImage: D(Ee),
|
|
@@ -857,67 +857,67 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
857
857
|
onToggleLabels: Ue,
|
|
858
858
|
onToggleStack: Ze,
|
|
859
859
|
onToggleTooltip: Ge,
|
|
860
|
-
onToggleAnnotator:
|
|
860
|
+
onToggleAnnotator: me
|
|
861
861
|
}, Ca({ _: 2 }, [
|
|
862
862
|
e.$slots.optionTooltip ? {
|
|
863
863
|
name: "optionTooltip",
|
|
864
|
-
fn:
|
|
864
|
+
fn: m(() => [
|
|
865
865
|
x(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
866
866
|
]),
|
|
867
867
|
key: "0"
|
|
868
868
|
} : void 0,
|
|
869
869
|
e.$slots.optionPdf ? {
|
|
870
870
|
name: "optionPdf",
|
|
871
|
-
fn:
|
|
871
|
+
fn: m(() => [
|
|
872
872
|
x(e.$slots, "optionPdf", {}, void 0, !0)
|
|
873
873
|
]),
|
|
874
874
|
key: "1"
|
|
875
875
|
} : void 0,
|
|
876
876
|
e.$slots.optionCsv ? {
|
|
877
877
|
name: "optionCsv",
|
|
878
|
-
fn:
|
|
878
|
+
fn: m(() => [
|
|
879
879
|
x(e.$slots, "optionCsv", {}, void 0, !0)
|
|
880
880
|
]),
|
|
881
881
|
key: "2"
|
|
882
882
|
} : void 0,
|
|
883
883
|
e.$slots.optionImg ? {
|
|
884
884
|
name: "optionImg",
|
|
885
|
-
fn:
|
|
885
|
+
fn: m(() => [
|
|
886
886
|
x(e.$slots, "optionImg", {}, void 0, !0)
|
|
887
887
|
]),
|
|
888
888
|
key: "3"
|
|
889
889
|
} : void 0,
|
|
890
890
|
e.$slots.optionTable ? {
|
|
891
891
|
name: "optionTable",
|
|
892
|
-
fn:
|
|
892
|
+
fn: m(() => [
|
|
893
893
|
x(e.$slots, "optionTable", {}, void 0, !0)
|
|
894
894
|
]),
|
|
895
895
|
key: "4"
|
|
896
896
|
} : void 0,
|
|
897
897
|
e.$slots.optionLabels ? {
|
|
898
898
|
name: "optionLabels",
|
|
899
|
-
fn:
|
|
899
|
+
fn: m(() => [
|
|
900
900
|
x(e.$slots, "optionLabels", {}, void 0, !0)
|
|
901
901
|
]),
|
|
902
902
|
key: "5"
|
|
903
903
|
} : void 0,
|
|
904
904
|
e.$slots.optionStack ? {
|
|
905
905
|
name: "optionStack",
|
|
906
|
-
fn:
|
|
906
|
+
fn: m(() => [
|
|
907
907
|
x(e.$slots, "optionStack", {}, void 0, !0)
|
|
908
908
|
]),
|
|
909
909
|
key: "6"
|
|
910
910
|
} : void 0,
|
|
911
911
|
e.$slots.optionFullscreen ? {
|
|
912
912
|
name: "optionFullscreen",
|
|
913
|
-
fn:
|
|
913
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
914
914
|
x(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
915
915
|
]),
|
|
916
916
|
key: "7"
|
|
917
917
|
} : void 0,
|
|
918
918
|
e.$slots.optionAnnotator ? {
|
|
919
919
|
name: "optionAnnotator",
|
|
920
|
-
fn:
|
|
920
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
921
921
|
x(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
922
922
|
]),
|
|
923
923
|
key: "8"
|
|
@@ -934,7 +934,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
934
934
|
ref_key: "canvas",
|
|
935
935
|
ref: $,
|
|
936
936
|
style: { width: "100%", height: "100%" },
|
|
937
|
-
onMousemove:
|
|
937
|
+
onMousemove: t[0] || (t[0] = (o) => ya(o)),
|
|
938
938
|
onMouseleave: ga
|
|
939
939
|
}, null, 544)) : (C(), F(Ka, {
|
|
940
940
|
key: 1,
|
|
@@ -955,7 +955,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
955
955
|
}
|
|
956
956
|
}, null, 8, ["config"])),
|
|
957
957
|
wa(Xa, {
|
|
958
|
-
show:
|
|
958
|
+
show: r.value.showTooltip && le.value,
|
|
959
959
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
960
960
|
color: a.value.style.chart.tooltip.color,
|
|
961
961
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -965,14 +965,14 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
965
965
|
position: a.value.style.chart.tooltip.position,
|
|
966
966
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
967
967
|
parent: $.value,
|
|
968
|
-
content:
|
|
968
|
+
content: te.value,
|
|
969
969
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
970
970
|
isCustom: D(qe)(a.value.style.chart.tooltip.customFormat)
|
|
971
971
|
}, {
|
|
972
|
-
"tooltip-before":
|
|
972
|
+
"tooltip-before": m(() => [
|
|
973
973
|
x(e.$slots, "tooltip-before", B(X({ ...Ce.value })), void 0, !0)
|
|
974
974
|
]),
|
|
975
|
-
"tooltip-after":
|
|
975
|
+
"tooltip-after": m(() => [
|
|
976
976
|
x(e.$slots, "tooltip-after", B(X({ ...Ce.value })), void 0, !0)
|
|
977
977
|
]),
|
|
978
978
|
_: 3
|
|
@@ -990,22 +990,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
990
990
|
borderColor: a.value.style.chart.backgroundColor,
|
|
991
991
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
992
992
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
993
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
994
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
993
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? a.value.style.chart.grid.y.timeLabels.values[u.value.start] : "",
|
|
994
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] : "",
|
|
995
995
|
textColor: a.value.style.chart.color,
|
|
996
996
|
inputColor: a.value.style.chart.zoom.color,
|
|
997
997
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
998
998
|
max: I.value,
|
|
999
999
|
min: 0,
|
|
1000
|
-
valueStart:
|
|
1001
|
-
valueEnd:
|
|
1002
|
-
start:
|
|
1003
|
-
"onUpdate:start":
|
|
1004
|
-
end:
|
|
1005
|
-
"onUpdate:end":
|
|
1000
|
+
valueStart: u.value.start,
|
|
1001
|
+
valueEnd: u.value.end,
|
|
1002
|
+
start: u.value.start,
|
|
1003
|
+
"onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
|
|
1004
|
+
end: u.value.end,
|
|
1005
|
+
"onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
|
|
1006
1006
|
onReset: _e
|
|
1007
1007
|
}, {
|
|
1008
|
-
"reset-action":
|
|
1008
|
+
"reset-action": m(({ reset: o }) => [
|
|
1009
1009
|
x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 3
|
|
@@ -1019,13 +1019,13 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1019
1019
|
legendSet: We.value,
|
|
1020
1020
|
config: pa.value,
|
|
1021
1021
|
key: `legend_${fe.value}`,
|
|
1022
|
-
onClickMarker:
|
|
1022
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => He(o))
|
|
1023
1023
|
}, {
|
|
1024
|
-
item:
|
|
1024
|
+
item: m(({ legend: o, index: i }) => [
|
|
1025
1025
|
K("div", {
|
|
1026
1026
|
onClick: (c) => o.segregate(),
|
|
1027
1027
|
style: J(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
|
|
1028
|
-
}, Ve(o.name), 13,
|
|
1028
|
+
}, Ve(o.name), 13, ll)
|
|
1029
1029
|
]),
|
|
1030
1030
|
_: 1
|
|
1031
1031
|
}, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
|
|
@@ -1033,7 +1033,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1033
1033
|
legend: We.value
|
|
1034
1034
|
}, void 0, !0)
|
|
1035
1035
|
], 512),
|
|
1036
|
-
e.$slots.watermark ? (C(), q("div",
|
|
1036
|
+
e.$slots.watermark ? (C(), q("div", tl, [
|
|
1037
1037
|
x(e.$slots, "watermark", B(X({ isPrinting: D(Oe) || D(Pe) })), void 0, !0)
|
|
1038
1038
|
])) : _("", !0),
|
|
1039
1039
|
e.$slots.source ? (C(), q("div", {
|
|
@@ -1044,11 +1044,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1044
1044
|
}, [
|
|
1045
1045
|
x(e.$slots, "source", {}, void 0, !0)
|
|
1046
1046
|
], 512)) : _("", !0),
|
|
1047
|
-
|
|
1047
|
+
u.value.end - u.value.start < 200 ? (C(), F(qa, {
|
|
1048
1048
|
key: 4,
|
|
1049
1049
|
hideDetails: "",
|
|
1050
1050
|
config: {
|
|
1051
|
-
open:
|
|
1051
|
+
open: r.value.showTable,
|
|
1052
1052
|
maxHeight: 1e4,
|
|
1053
1053
|
body: {
|
|
1054
1054
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1060,7 +1060,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
}, {
|
|
1063
|
-
content:
|
|
1063
|
+
content: m(() => [
|
|
1064
1064
|
(C(), F(Ja, {
|
|
1065
1065
|
key: `table_${he.value}`,
|
|
1066
1066
|
colNames: se.value.colNames,
|
|
@@ -1068,12 +1068,12 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1068
1068
|
body: se.value.body,
|
|
1069
1069
|
config: se.value.config,
|
|
1070
1070
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1071
|
-
onClose:
|
|
1071
|
+
onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
|
|
1072
1072
|
}, {
|
|
1073
|
-
th:
|
|
1074
|
-
K("div", { innerHTML: o }, null, 8,
|
|
1073
|
+
th: m(({ th: o }) => [
|
|
1074
|
+
K("div", { innerHTML: o }, null, 8, ol)
|
|
1075
1075
|
]),
|
|
1076
|
-
td:
|
|
1076
|
+
td: m(({ td: o }) => [
|
|
1077
1077
|
Sa(Ve(o), 1)
|
|
1078
1078
|
]),
|
|
1079
1079
|
_: 1
|
|
@@ -1087,11 +1087,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1087
1087
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1088
1088
|
color: a.value.style.chart.color,
|
|
1089
1089
|
active: ne.value,
|
|
1090
|
-
onClose:
|
|
1090
|
+
onClose: me
|
|
1091
1091
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1092
|
-
], 14,
|
|
1092
|
+
], 14, al));
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, xl = /* @__PURE__ */ el(ul, [["__scopeId", "data-v-bf3412d9"]]);
|
|
1095
1095
|
export {
|
|
1096
|
-
|
|
1096
|
+
xl as default
|
|
1097
1097
|
};
|