vue-data-ui 2.4.23 → 2.4.25
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-DHtg3zTZ.cjs → Arrow-ByXO10pD.cjs} +1 -1
- package/dist/{Arrow-9iDBAuSV.js → Arrow-DaXXS-Wb.js} +1 -1
- package/dist/{BaseIcon-CZcJp0BK.cjs → BaseIcon-BRuFT7-k.cjs} +1 -1
- package/dist/{BaseIcon-Cupc3HpM.js → BaseIcon-D3twU60H.js} +1 -1
- package/dist/{DataTable-DpgVCStr.js → DataTable-D8fcY_sJ.js} +2 -2
- package/dist/{DataTable-CKU2-3VH.cjs → DataTable-DFdNUfRe.cjs} +1 -1
- package/dist/{Legend-BItqGLYs.js → Legend-BorSDXCj.js} +1 -1
- package/dist/{Legend-Lx_cdBGO.cjs → Legend-DZAy6K3t.cjs} +1 -1
- package/dist/{PackageVersion-KNK0JwMQ.cjs → PackageVersion-C2anu38L.cjs} +1 -1
- package/dist/{PackageVersion-COTfkq01.js → PackageVersion-mSsg8dpu.js} +1 -1
- package/dist/{PenAndPaper-CUZAR9sb.cjs → PenAndPaper-DKSbeuss.cjs} +1 -1
- package/dist/{PenAndPaper-CCFQ3lIj.js → PenAndPaper-Dk41ZrJ0.js} +3 -3
- package/dist/{Shape-CNgd2ODn.js → Shape-DYFnvMNd.js} +1 -1
- package/dist/{Shape-CHo_V5NA.cjs → Shape-bmo_-9LU.cjs} +1 -1
- package/dist/{Slicer-1C1usd0L.js → Slicer-BLQZ4Fne.js} +2 -2
- package/dist/{Slicer-DFzd-3uU.cjs → Slicer-BME5LXma.cjs} +1 -1
- package/dist/{Title-kzPAj9Bx.cjs → Title-Dm2GAV04.cjs} +1 -1
- package/dist/{Title-ZcAPoasN.js → Title-DyD-mBPN.js} +1 -1
- package/dist/{Tooltip-rrH-I4us.cjs → Tooltip-CcZzx8f8.cjs} +1 -1
- package/dist/{Tooltip-CUGz5S0n.js → Tooltip-qod9o4Vz.js} +1 -1
- package/dist/{index-CWlhzm6K.js → index-BICsqKzz.js} +4 -2
- package/dist/index-CLWrZGbv.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DH41HJ08.js → useNestedProp-BxrcwmTZ.js} +1 -1
- package/dist/{useNestedProp-Dp6z-Sc4.cjs → useNestedProp-bUwthiZ4.cjs} +1 -1
- package/dist/{usePrinter-DPAte4qe.js → usePrinter-CLcxWv-4.js} +1 -1
- package/dist/{usePrinter-DHOJP772.cjs → usePrinter-D_-LKcci.cjs} +1 -1
- package/dist/{vue-data-ui-pKAecUSS.js → vue-data-ui-DF7u-eZV.js} +58 -58
- package/dist/{vue-data-ui-qgmGN1Q3.cjs → vue-data-ui-DFh0GmXI.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-BXCwShkR.js → vue-ui-3d-bar-BDVAkP4Z.js} +9 -9
- package/dist/{vue-ui-3d-bar-DWuaVLbf.cjs → vue-ui-3d-bar-BtfayTxG.cjs} +1 -1
- package/dist/{vue-ui-accordion-C5v0z_Xf.cjs → vue-ui-accordion-BCBC5X2n.cjs} +1 -1
- package/dist/{vue-ui-accordion-DOBaAopj.js → vue-ui-accordion-m8rut1bP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DbPAn9zq.cjs → vue-ui-age-pyramid-71PgCBF6.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vyCFJjNt.js → vue-ui-age-pyramid-DTYLss6w.js} +10 -10
- package/dist/{vue-ui-annotator-HVCwKP38.cjs → vue-ui-annotator-DKveFO8S.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGCuUvcA.js → vue-ui-annotator-WjNfGCba.js} +1 -1
- package/dist/{vue-ui-bullet-BQ6KtvIV.js → vue-ui-bullet-BaN07Yto.js} +8 -8
- package/dist/{vue-ui-bullet-gBARXd6m.cjs → vue-ui-bullet-D-QKgdGT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CH00Pe-m.cjs → vue-ui-candlestick-9MfQ-DXp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Cp94bu6U.js → vue-ui-candlestick-CEXWukDl.js} +11 -11
- package/dist/{vue-ui-carousel-table-DMlpUpov.js → vue-ui-carousel-table-DwPPz25F.js} +4 -4
- package/dist/{vue-ui-carousel-table-ArXyyfTX.cjs → vue-ui-carousel-table-bHyWXhUR.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CGFD2NmV.cjs → vue-ui-chestnut-BgQsSFpo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ddab6epX.js → vue-ui-chestnut-UVDUlA26.js} +8 -8
- package/dist/{vue-ui-cursor-BDlDJKU9.cjs → vue-ui-cursor-B5N8-2TC.cjs} +1 -1
- package/dist/{vue-ui-cursor-B7c72wC4.js → vue-ui-cursor-DwJ_3OeD.js} +2 -2
- package/dist/{vue-ui-dashboard-C3v2FoY4.cjs → vue-ui-dashboard-DHMq8KDe.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D6YQysXz.js → vue-ui-dashboard-Dlnt37bU.js} +2 -2
- package/dist/{vue-ui-digits-C5t5G6WA.cjs → vue-ui-digits-CLw0UlLM.cjs} +1 -1
- package/dist/{vue-ui-digits-rKt3WYmo.js → vue-ui-digits-d5q7aYEB.js} +2 -2
- package/dist/{vue-ui-donut-CIaIft1i.cjs → vue-ui-donut-CeNCKLSe.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-EaxYPzHO.cjs → vue-ui-donut-evolution-CfPcjjnn.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-x154QZPU.js → vue-ui-donut-evolution-H2_TlrF2.js} +11 -11
- package/dist/{vue-ui-donut-xEiPs0jw.js → vue-ui-donut-nuCiumWN.js} +11 -11
- package/dist/{vue-ui-dumbbell-lk9voxo9.js → vue-ui-dumbbell--qD2MDbF.js} +10 -10
- package/dist/{vue-ui-dumbbell-Bhw-LZKD.cjs → vue-ui-dumbbell-hSPyK3qm.cjs} +1 -1
- package/dist/{vue-ui-flow-DDrRUTls.js → vue-ui-flow-CgcUEWmx.js} +9 -9
- package/dist/{vue-ui-flow-D282qMxZ.cjs → vue-ui-flow-Cp154Fpn.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CdrlGwj5.js → vue-ui-galaxy-CNuslpHY.js} +11 -11
- package/dist/{vue-ui-galaxy-D1WO8wNh.cjs → vue-ui-galaxy-CVRruPO1.cjs} +1 -1
- package/dist/{vue-ui-gauge-CLE1ripj.cjs → vue-ui-gauge-BdEZP0P9.cjs} +1 -1
- package/dist/{vue-ui-gauge-BB0B-afr.js → vue-ui-gauge-BlfbiQ2E.js} +7 -7
- package/dist/{vue-ui-gizmo-BwhKySbh.js → vue-ui-gizmo-CKbSLvuP.js} +3 -3
- package/dist/{vue-ui-gizmo-YAVeHEMb.cjs → vue-ui-gizmo-D7ANYpNx.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CA3rX3aP.cjs → vue-ui-heatmap-DCTdqUIX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-HtfXbdDL.js → vue-ui-heatmap-DeV-Tkf2.js} +10 -10
- package/dist/{vue-ui-kpi-nA9x9jed.cjs → vue-ui-kpi-BQMwef0E.cjs} +1 -1
- package/dist/{vue-ui-kpi-l3PRzR6k.js → vue-ui-kpi-BS6Q-H3p.js} +3 -3
- package/dist/{vue-ui-mini-loader-08kgYVwW.js → vue-ui-mini-loader-1hfptP8p.js} +2 -2
- package/dist/{vue-ui-mini-loader-C6NkSh4S.cjs → vue-ui-mini-loader-BkB2IKcd.cjs} +1 -1
- package/dist/{vue-ui-molecule-BAwlDL6Z.js → vue-ui-molecule-9nYN6FWk.js} +11 -11
- package/dist/{vue-ui-molecule-BP_b5wFi.cjs → vue-ui-molecule-BSfmIrIV.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D7R1sJ-s.js → vue-ui-mood-radar-CdhoXPjB.js} +11 -11
- package/dist/{vue-ui-mood-radar-CiF-yLnM.cjs → vue-ui-mood-radar-DmxG3SpA.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BoiB2fYL.cjs → vue-ui-nested-donuts-BVDpwaOw.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-mi_bKP5P.js → vue-ui-nested-donuts-DHn5JPVa.js} +11 -11
- package/dist/{vue-ui-onion-DDcm9VKG.js → vue-ui-onion-Dn2beWtO.js} +11 -11
- package/dist/{vue-ui-onion-B_9x-PDA.cjs → vue-ui-onion-DpRHbEWN.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B8Amex6j.cjs → vue-ui-parallel-coordinate-plot-CU0tOs-u.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BLXVSCmi.js → vue-ui-parallel-coordinate-plot-yq09af0J.js} +12 -12
- package/dist/{vue-ui-quadrant-BFEprQ_j.cjs → vue-ui-quadrant-71OHEVEh.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BmPJLow1.js → vue-ui-quadrant-DzwXd881.js} +12 -12
- package/dist/{vue-ui-quick-chart-B7Sotlr0.js → vue-ui-quick-chart-BF7xqf0f.js} +9 -9
- package/dist/{vue-ui-quick-chart-Cnb0C1nv.cjs → vue-ui-quick-chart-Pt-8uXit.cjs} +1 -1
- package/dist/{vue-ui-radar-CYu4mixy.cjs → vue-ui-radar-Buv9DMRa.cjs} +1 -1
- package/dist/{vue-ui-radar-SYkVFE08.js → vue-ui-radar-DOmOWd_A.js} +12 -12
- package/dist/{vue-ui-rating-452f1yMa.js → vue-ui-rating-CQrrI3Mx.js} +2 -2
- package/dist/{vue-ui-rating-36rj-wHU.cjs → vue-ui-rating-DiAqIvDv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DVuvBy9_.cjs → vue-ui-relation-circle-CxOgNn5_.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CWbxQJsa.js → vue-ui-relation-circle-Sb7Nyb8W.js} +7 -7
- package/dist/{vue-ui-rings-CDVcaS2n.js → vue-ui-rings-BrdbD7PJ.js} +11 -11
- package/dist/{vue-ui-rings-DBXvtevd.cjs → vue-ui-rings-Cm5q10II.cjs} +1 -1
- package/dist/{vue-ui-scatter-BG1X9kbp.js → vue-ui-scatter-D5q2EE4b.js} +12 -12
- package/dist/{vue-ui-scatter-CjOuKwUh.cjs → vue-ui-scatter-ngmt8UB9.cjs} +1 -1
- package/dist/{vue-ui-screenshot-UevcnZpH.cjs → vue-ui-screenshot-B6zLJRHR.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CZkWSgQw.js → vue-ui-screenshot-Jf_CuPtB.js} +1 -1
- package/dist/{vue-ui-skeleton-Cu2s1RAC.cjs → vue-ui-skeleton-CEeXInMi.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D8lu0qH2.js → vue-ui-skeleton-Dgzcn3FL.js} +3 -3
- package/dist/{vue-ui-smiley-ogUjJC93.js → vue-ui-smiley-BAclx6KJ.js} +2 -2
- package/dist/{vue-ui-smiley-D9S4GXJs.cjs → vue-ui-smiley-JwYaXNnm.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-8QH7-7XF.js → vue-ui-spark-trend-BIGVUzmd.js} +5 -5
- package/dist/{vue-ui-spark-trend-C7kB_1Vw.cjs → vue-ui-spark-trend-_QrAMYgz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-h8ikA2Sx.cjs → vue-ui-sparkbar-DhfJlpfY.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CjH_X0R-.js → vue-ui-sparkbar-OZC6iwJ4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cs41GkQn.js → vue-ui-sparkgauge-8Tv-j1T9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C9LFXNGj.cjs → vue-ui-sparkgauge-DEPvmH2r.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DTKMNIQK.js → vue-ui-sparkhistogram-BNILlxcX.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-FSp_ueqT.cjs → vue-ui-sparkhistogram-DAbQdCGz.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BLA-tfpO.js → vue-ui-sparkline-B0BJFHMi.js} +4 -4
- package/dist/{vue-ui-sparkline-Drr1pzx9.cjs → vue-ui-sparkline-XUWsqlUN.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CfcRdnSX.js → vue-ui-sparkstackbar-BB-MOwPO.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CusKLPdp.cjs → vue-ui-sparkstackbar-DiyZJ8wv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-skhdwzKu.cjs → vue-ui-stackbar-BqX7ZucO.cjs} +1 -1
- package/dist/{vue-ui-stackbar-D0eu-fwT.js → vue-ui-stackbar-DT_TRXc4.js} +12 -12
- package/dist/{vue-ui-strip-plot-C8OUrG4s.js → vue-ui-strip-plot-Bn4z9RH8.js} +11 -11
- package/dist/{vue-ui-strip-plot-BAhwCR9h.cjs → vue-ui-strip-plot-DiiGkNc9.cjs} +1 -1
- package/dist/{vue-ui-table-DEGpMRSo.cjs → vue-ui-table-9xjGzylw.cjs} +1 -1
- package/dist/{vue-ui-table-Bu2uIl2l.js → vue-ui-table-BERyvvqz.js} +1 -1
- package/dist/{vue-ui-table-heatmap-D8tpklnq.cjs → vue-ui-table-heatmap-CNWh58QC.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-zO08g4xR.js → vue-ui-table-heatmap-tduub4CZ.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Di3fZVu4.cjs → vue-ui-table-sparkline-COsvxl8Z.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-lYobxmx6.js → vue-ui-table-sparkline-DirFLTCn.js} +5 -5
- package/dist/{vue-ui-thermometer-B2xrgXt1.cjs → vue-ui-thermometer-Bp8DH03h.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BenXeMXf.js → vue-ui-thermometer-aj7L5dYo.js} +7 -7
- package/dist/{vue-ui-timer-LJyKKC2o.js → vue-ui-timer-BxdADUyO.js} +5 -5
- package/dist/{vue-ui-timer-CDB9r1W2.cjs → vue-ui-timer-CFLSCgHD.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DoTYOuot.js → vue-ui-tiremarks-CEfNdN2Z.js} +7 -7
- package/dist/{vue-ui-tiremarks-Dy9gG1gc.cjs → vue-ui-tiremarks-swIZAkBk.cjs} +1 -1
- package/dist/{vue-ui-treemap-BPz_AwA2.cjs → vue-ui-treemap-TA_t2X-T.cjs} +1 -1
- package/dist/{vue-ui-treemap-CY5sCBQp.js → vue-ui-treemap-XADmrlur.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B8kiRxLN.js → vue-ui-vertical-bar-BxZxWXPp.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DTOcnkWX.cjs → vue-ui-vertical-bar-DpX4MZOk.cjs} +1 -1
- package/dist/{vue-ui-waffle-B4RCOwEg.js → vue-ui-waffle-D5fVZhj1.js} +11 -11
- package/dist/{vue-ui-waffle-Dv2YchrJ.cjs → vue-ui-waffle-u71f2gDj.cjs} +1 -1
- package/dist/{vue-ui-wheel-Zk6U_Lnd.js → vue-ui-wheel-DeJIQNQo.js} +7 -7
- package/dist/{vue-ui-wheel-C7wEmgol.cjs → vue-ui-wheel-OcDfmU6G.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-5fxQJ65o.js → vue-ui-word-cloud-C8RX9zpp.js} +10 -10
- package/dist/{vue-ui-word-cloud-DIF9KUX-.cjs → vue-ui-word-cloud-CqMxlLQ5.cjs} +1 -1
- package/dist/{vue-ui-xy-BnasTV4L.js → vue-ui-xy-C-IsoZnw.js} +14 -14
- package/dist/{vue-ui-xy-Bcb7loPC.cjs → vue-ui-xy-YFzX3F_Z.cjs} +1 -1
- package/dist/vue-ui-xy-canvas-DHCbEqpJ.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-BIULd1f-.js → vue-ui-xy-canvas-RMsnzPnE.js} +282 -251
- package/package.json +1 -1
- package/dist/index-BkeVohkW.cjs +0 -9
- package/dist/vue-ui-xy-canvas-Dc4l_P9H.cjs +0 -9
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as v, computed as b, watch as A, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { P as
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as S, createElementBlock as q, normalizeStyle as J, normalizeClass as Ca, createBlock as F, createCommentVNode as _, unref as D, createSlots as wa, withCtx as m, renderSlot as x, normalizeProps as Y, guardReactiveProps as B, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
|
|
2
|
+
import { u as za, c as Ma, t as Ta, a as Ra, p as H, M as je, b as Oa, C as xe, i as Q, f as ee, Y as Ia, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-BICsqKzz.js";
|
|
3
|
+
import { d as Wa, c as Xa, a as Ke, t as Ya, l as L, r as Le, b as E, p as Qe, u as Ba } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Ua } from "./Tooltip-qod9o4Vz.js";
|
|
5
|
+
import { L as Za } from "./Legend-BorSDXCj.js";
|
|
6
|
+
import { _ as Ga } from "./Title-DyD-mBPN.js";
|
|
7
|
+
import { S as Va } from "./Slicer-BLQZ4Fne.js";
|
|
8
|
+
import { u as ja, U as qa } from "./usePrinter-CLcxWv-4.js";
|
|
9
|
+
import Ja from "./vue-ui-accordion-m8rut1bP.js";
|
|
10
|
+
import { D as Ka } from "./DataTable-D8fcY_sJ.js";
|
|
11
|
+
import Qa from "./vue-ui-skeleton-Dgzcn3FL.js";
|
|
12
|
+
import { u as ea } from "./useNestedProp-BxrcwmTZ.js";
|
|
13
|
+
import { P as el } from "./PenAndPaper-Dk41ZrJ0.js";
|
|
14
|
+
import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ll = ["id"], tl = ["onClick"], ol = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, rl = ["innerHTML"], ul = {
|
|
19
19
|
__name: "vue-ui-xy-canvas",
|
|
20
20
|
props: {
|
|
21
21
|
dataset: {
|
|
@@ -32,73 +32,74 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(ke, { expose:
|
|
36
|
-
const
|
|
35
|
+
setup(ke, { expose: aa, emit: la }) {
|
|
36
|
+
const k = ke, { vue_ui_xy_canvas: ta } = za(), ie = v(Ma()), U = v(null), z = v(null), Z = v(null), s = v(null), y = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), $ = v([]), W = v(1), N = v(!0), M = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Me = v(null), Te = v(null), de = v(0), he = v(0), ye = v(0), fe = b(() => !!k.dataset && k.dataset.length), a = b({
|
|
37
37
|
get: () => Re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
});
|
|
40
40
|
function Re() {
|
|
41
|
-
const e =
|
|
42
|
-
userConfig:
|
|
43
|
-
defaultConfig:
|
|
41
|
+
const e = ea({
|
|
42
|
+
userConfig: k.config,
|
|
43
|
+
defaultConfig: ta
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
let t = {};
|
|
46
|
+
return e.theme ? t = {
|
|
47
|
+
...ea({
|
|
48
|
+
userConfig: Ta.vue_ui_xy_canvas[e.theme] || k.config,
|
|
48
49
|
defaultConfig: e
|
|
49
50
|
}),
|
|
50
|
-
customPalette:
|
|
51
|
-
} : e;
|
|
51
|
+
customPalette: Ra[e.theme] || H
|
|
52
|
+
} : t = e, k.config && je(k.config, "style.chart.scale.min") ? t.style.chart.scale.min = k.config.style.chart.scale.min : t.style.chart.scale.min = null, k.config && je(k.config, "style.chart.scale.max") ? t.style.chart.scale.max = k.config.style.chart.scale.max : t.style.chart.scale.max = null, t;
|
|
52
53
|
}
|
|
53
|
-
A(() =>
|
|
54
|
-
a.value = Re(), pe(), de.value += 1, he.value += 1,
|
|
55
|
-
}, { deep: !0 }), A(() =>
|
|
56
|
-
pe(), de.value += 1, he.value += 1,
|
|
54
|
+
A(() => k.config, (e) => {
|
|
55
|
+
a.value = Re(), pe(), de.value += 1, he.value += 1, ye.value += 1;
|
|
56
|
+
}, { deep: !0 }), A(() => k.dataset, () => {
|
|
57
|
+
pe(), de.value += 1, he.value += 1, ye.value += 1;
|
|
57
58
|
}, { deep: !0 });
|
|
58
|
-
const
|
|
59
|
+
const Oe = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = ja({
|
|
59
60
|
elementId: `xy_canvas_${ie.value}`,
|
|
60
61
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
61
|
-
}),
|
|
62
|
+
}), u = v({
|
|
62
63
|
showTable: a.value.table.show,
|
|
63
64
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
64
65
|
stacked: a.value.style.chart.stacked,
|
|
65
66
|
showTooltip: a.value.style.chart.tooltip.show
|
|
66
67
|
});
|
|
67
|
-
function
|
|
68
|
+
function oa(e) {
|
|
68
69
|
ce.value = e, Se.value += 1;
|
|
69
70
|
}
|
|
70
|
-
const Ne = b(() =>
|
|
71
|
-
const e =
|
|
71
|
+
const Ne = b(() => Oa(a.value.customPalette)), O = b(() => X.value ? Math.max(...X.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
|
|
72
|
+
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
72
73
|
return {
|
|
73
|
-
canvasWidth:
|
|
74
|
+
canvasWidth: y.value,
|
|
74
75
|
canvasHeight: R.value,
|
|
75
|
-
left:
|
|
76
|
+
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
76
77
|
top: R.value * a.value.style.chart.paddingProportions.top,
|
|
77
|
-
right:
|
|
78
|
+
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
78
79
|
bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
|
|
79
80
|
width: e,
|
|
80
81
|
height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
81
|
-
slot: e / (
|
|
82
|
+
slot: e / (r.value.end - r.value.start)
|
|
82
83
|
};
|
|
83
84
|
});
|
|
84
85
|
function Ae(e, t) {
|
|
85
86
|
return e / t;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return t.map((
|
|
89
|
-
const T = c.min < 0 ? Math.abs(c.min) : 0,
|
|
88
|
+
function ra({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: f, individualHeight: n, stackIndex: g = null }) {
|
|
89
|
+
return t.map((w, be) => {
|
|
90
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ae(w + T, T + c.max);
|
|
90
91
|
let P, G;
|
|
91
|
-
e && (P = Math.abs(c.min), G = Ae(
|
|
92
|
+
e && (P = Math.abs(c.min), G = Ae(w + P, c.max + P));
|
|
92
93
|
let V = 0;
|
|
93
|
-
return g === null ? V = l.value.bottom - l.value.height * (e ? G :
|
|
94
|
+
return g === null ? V = l.value.bottom - l.value.height * (e ? G : I) : V = l.value.bottom - f - n * (e ? G : I), {
|
|
94
95
|
x: l.value.left + l.value.slot * be + l.value.slot / 2,
|
|
95
96
|
y: V,
|
|
96
|
-
value:
|
|
97
|
+
value: w
|
|
97
98
|
};
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
const p = b(() => {
|
|
101
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
102
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.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)), f = o.ticks.map((n) => ({
|
|
102
103
|
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
103
104
|
x: l.value.left - 8,
|
|
104
105
|
value: n
|
|
@@ -108,7 +109,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
108
109
|
max: t,
|
|
109
110
|
min: e,
|
|
110
111
|
scale: o,
|
|
111
|
-
yLabels:
|
|
112
|
+
yLabels: f,
|
|
112
113
|
zero: c
|
|
113
114
|
};
|
|
114
115
|
}), ua = b(() => h.value.map((e) => `
|
|
@@ -129,47 +130,47 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
129
130
|
{ datapoint: e, seriesIndex: d.value }
|
|
130
131
|
)}</span>
|
|
131
132
|
</div>
|
|
132
|
-
`)),
|
|
133
|
+
`)), X = b(() => k.dataset.map((e, t) => ({
|
|
133
134
|
...e,
|
|
134
135
|
series: Ia({
|
|
135
|
-
data:
|
|
136
|
+
data: Pa(e.series),
|
|
136
137
|
threshold: a.value.downsample.threshold
|
|
137
138
|
}),
|
|
138
139
|
absoluteIndex: t,
|
|
139
|
-
color:
|
|
140
|
+
color: qe(e.color || Ne.value[t] || H[t] || H[t % H.length])
|
|
140
141
|
})));
|
|
141
|
-
A(
|
|
142
|
+
A(O, (e) => {
|
|
142
143
|
e && _e();
|
|
143
144
|
});
|
|
144
|
-
const h = b(() =>
|
|
145
|
+
const h = b(() => Fa(X.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
145
146
|
...e,
|
|
146
|
-
series: e.series.slice(
|
|
147
|
+
series: e.series.slice(r.value.start, r.value.end)
|
|
147
148
|
})).map((e, t) => {
|
|
148
149
|
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
150
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
150
|
-
const
|
|
151
|
+
const f = {
|
|
151
152
|
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
152
153
|
valueMin: o,
|
|
153
154
|
valueMax: i
|
|
154
155
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
155
156
|
let g;
|
|
156
|
-
e.autoScaling ? g = xe(
|
|
157
|
-
const
|
|
157
|
+
e.autoScaling ? g = xe(f.valueMin, f.valueMax, n) : g = xe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
|
|
158
|
+
const w = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, be = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? l.value.height * e.stackRatio - be : l.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
|
|
158
159
|
let P;
|
|
159
|
-
e.autoScaling &&
|
|
160
|
-
const G = g.ticks.map((j,
|
|
161
|
-
y: l.value.bottom -
|
|
160
|
+
e.autoScaling && u.value.stacked && i <= 0 ? P = l.value.bottom - w - T : P = l.value.bottom - w - T * (I / (g.max + I));
|
|
161
|
+
const G = g.ticks.map((j, xa) => ({
|
|
162
|
+
y: l.value.bottom - w - T * (xa / (g.ticks.length - 1)),
|
|
162
163
|
x: l.value.left - 8,
|
|
163
164
|
value: j
|
|
164
|
-
})), V =
|
|
165
|
-
hasAutoScale:
|
|
165
|
+
})), V = ra({
|
|
166
|
+
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
166
167
|
series: e.series,
|
|
167
|
-
min:
|
|
168
|
-
max:
|
|
169
|
-
scale:
|
|
170
|
-
yOffset:
|
|
168
|
+
min: u.value.stacked ? o : p.value.min,
|
|
169
|
+
max: u.value.stacked ? i : p.value.max,
|
|
170
|
+
scale: u.value.stacked ? g : p.value.scale,
|
|
171
|
+
yOffset: w,
|
|
171
172
|
individualHeight: T,
|
|
172
|
-
stackIndex:
|
|
173
|
+
stackIndex: u.value.stacked ? t : null
|
|
173
174
|
});
|
|
174
175
|
return {
|
|
175
176
|
...e,
|
|
@@ -178,33 +179,33 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
178
179
|
max: i,
|
|
179
180
|
localScale: g,
|
|
180
181
|
localZero: P,
|
|
181
|
-
localMin:
|
|
182
|
+
localMin: I,
|
|
182
183
|
localYLabels: G,
|
|
183
|
-
yOffset:
|
|
184
|
+
yOffset: w,
|
|
184
185
|
individualHeight: T
|
|
185
186
|
};
|
|
186
|
-
})),
|
|
187
|
+
})), r = v({
|
|
187
188
|
start: 0,
|
|
188
|
-
end:
|
|
189
|
+
end: O.value
|
|
189
190
|
});
|
|
190
191
|
function _e() {
|
|
191
|
-
|
|
192
|
+
r.value = {
|
|
192
193
|
start: 0,
|
|
193
|
-
end:
|
|
194
|
+
end: O.value
|
|
194
195
|
}, we.value += 1;
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
197
|
+
const sa = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = b(() => h.value.filter((e) => e.type === "bar"));
|
|
198
|
+
function na() {
|
|
199
|
+
if (!z.value)
|
|
199
200
|
return;
|
|
200
201
|
const e = Z.value.offsetWidth, t = Z.value.offsetHeight;
|
|
201
|
-
|
|
202
|
+
z.value.width = e * W.value * 2, z.value.height = t * W.value * 2, y.value = e * W.value * 2, R.value = t * W.value * 2, s.value.scale(W.value, W.value), ge();
|
|
202
203
|
}
|
|
203
|
-
function
|
|
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),
|
|
205
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
206
|
-
for (let t = 0; t <
|
|
207
|
-
|
|
204
|
+
function ia() {
|
|
205
|
+
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), u.value.stacked)
|
|
206
|
+
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
|
|
207
|
+
for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
|
|
208
|
+
L(
|
|
208
209
|
s.value,
|
|
209
210
|
[
|
|
210
211
|
{
|
|
@@ -220,6 +221,24 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
220
221
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
221
222
|
}
|
|
222
223
|
);
|
|
224
|
+
}) : a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
225
|
+
for (let t = r.value.start; t < r.value.end; t += 1)
|
|
226
|
+
t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
|
|
227
|
+
s.value,
|
|
228
|
+
[
|
|
229
|
+
{
|
|
230
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
231
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
235
|
+
y: l.value.bottom - e.yOffset
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
{
|
|
239
|
+
color: a.value.style.chart.grid.y.verticalLines.color
|
|
240
|
+
}
|
|
241
|
+
);
|
|
223
242
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
224
243
|
e.localYLabels.forEach((t, o) => {
|
|
225
244
|
o < e.localYLabels.length - 1 && Le(
|
|
@@ -237,8 +256,8 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
237
256
|
);
|
|
238
257
|
});
|
|
239
258
|
}) : h.value.forEach((e) => {
|
|
240
|
-
e.localYLabels.slice(
|
|
241
|
-
|
|
259
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
|
|
260
|
+
L(
|
|
242
261
|
s.value,
|
|
243
262
|
[
|
|
244
263
|
{ x: l.value.left, y: t.y },
|
|
@@ -250,7 +269,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
250
269
|
);
|
|
251
270
|
});
|
|
252
271
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
253
|
-
|
|
272
|
+
L(
|
|
254
273
|
s.value,
|
|
255
274
|
[
|
|
256
275
|
{ x: l.value.left, y: e.localZero },
|
|
@@ -262,7 +281,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
262
281
|
}
|
|
263
282
|
);
|
|
264
283
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
265
|
-
|
|
284
|
+
L(
|
|
266
285
|
s.value,
|
|
267
286
|
[
|
|
268
287
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -271,7 +290,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
271
290
|
{
|
|
272
291
|
color: e.color
|
|
273
292
|
}
|
|
274
|
-
),
|
|
293
|
+
), L(
|
|
275
294
|
s.value,
|
|
276
295
|
[
|
|
277
296
|
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
@@ -298,7 +317,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
298
317
|
t.y,
|
|
299
318
|
{
|
|
300
319
|
align: "right",
|
|
301
|
-
font: `${Math.round(
|
|
320
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
302
321
|
color: e.color
|
|
303
322
|
}
|
|
304
323
|
);
|
|
@@ -307,20 +326,20 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
307
326
|
E(
|
|
308
327
|
s.value,
|
|
309
328
|
e.name,
|
|
310
|
-
|
|
329
|
+
y.value / 35,
|
|
311
330
|
l.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
312
331
|
{
|
|
313
332
|
align: "center",
|
|
314
333
|
rotation: -90,
|
|
315
334
|
color: e.color,
|
|
316
|
-
font: `${Math.round(
|
|
335
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
|
|
317
336
|
}
|
|
318
337
|
);
|
|
319
338
|
});
|
|
320
339
|
else {
|
|
321
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
322
|
-
for (let e = 0; e <
|
|
323
|
-
|
|
340
|
+
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
341
|
+
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
342
|
+
L(
|
|
324
343
|
s.value,
|
|
325
344
|
[
|
|
326
345
|
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
@@ -330,6 +349,18 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
330
349
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
331
350
|
}
|
|
332
351
|
);
|
|
352
|
+
else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
353
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
354
|
+
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
|
|
355
|
+
s.value,
|
|
356
|
+
[
|
|
357
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
|
|
358
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.bottom }
|
|
359
|
+
],
|
|
360
|
+
{
|
|
361
|
+
color: a.value.style.chart.grid.y.verticalLines.color
|
|
362
|
+
}
|
|
363
|
+
);
|
|
333
364
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
334
365
|
t < p.value.yLabels.length - 1 && Le(
|
|
335
366
|
s.value,
|
|
@@ -345,7 +376,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
345
376
|
}
|
|
346
377
|
);
|
|
347
378
|
}) : p.value.yLabels.forEach((e) => {
|
|
348
|
-
|
|
379
|
+
L(
|
|
349
380
|
s.value,
|
|
350
381
|
[
|
|
351
382
|
{ x: l.value.left, y: e.y },
|
|
@@ -355,7 +386,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
355
386
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
356
387
|
}
|
|
357
388
|
);
|
|
358
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
389
|
+
})), a.value.style.chart.grid.y.showAxis && L(
|
|
359
390
|
s.value,
|
|
360
391
|
[
|
|
361
392
|
{ x: l.value.left, y: l.value.top },
|
|
@@ -365,7 +396,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
365
396
|
color: a.value.style.chart.grid.y.axisColor,
|
|
366
397
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
367
398
|
}
|
|
368
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
399
|
+
), a.value.style.chart.grid.x.showAxis && L(
|
|
369
400
|
s.value,
|
|
370
401
|
[
|
|
371
402
|
{ x: l.value.left, y: l.value.bottom },
|
|
@@ -375,7 +406,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
375
406
|
color: a.value.style.chart.grid.x.axisColor,
|
|
376
407
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
377
408
|
}
|
|
378
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
409
|
+
), a.value.style.chart.grid.zeroLine.show && L(
|
|
379
410
|
s.value,
|
|
380
411
|
[
|
|
381
412
|
{ x: l.value.left, y: p.value.zero },
|
|
@@ -403,7 +434,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
403
434
|
e.y,
|
|
404
435
|
{
|
|
405
436
|
align: "right",
|
|
406
|
-
font: `${Math.round(
|
|
437
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
407
438
|
color: a.value.style.chart.grid.y.axisLabels.color
|
|
408
439
|
}
|
|
409
440
|
);
|
|
@@ -412,10 +443,10 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
412
443
|
a.value.style.chart.grid.y.axisName && E(
|
|
413
444
|
s.value,
|
|
414
445
|
a.value.style.chart.grid.y.axisName,
|
|
415
|
-
|
|
446
|
+
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
416
447
|
l.value.bottom - l.value.height / 2,
|
|
417
448
|
{
|
|
418
|
-
font: `${Math.round(
|
|
449
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
419
450
|
color: a.value.style.chart.color,
|
|
420
451
|
align: "center",
|
|
421
452
|
rotation: 90
|
|
@@ -423,19 +454,19 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
423
454
|
), a.value.style.chart.grid.x.axisName && E(
|
|
424
455
|
s.value,
|
|
425
456
|
a.value.style.chart.grid.x.axisName,
|
|
426
|
-
|
|
457
|
+
y.value / 2,
|
|
427
458
|
R.value,
|
|
428
459
|
{
|
|
429
|
-
font: `${Math.round(
|
|
460
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
430
461
|
color: a.value.style.chart.color,
|
|
431
462
|
align: "center"
|
|
432
463
|
}
|
|
433
464
|
);
|
|
434
465
|
}
|
|
435
|
-
function
|
|
466
|
+
function va(e) {
|
|
436
467
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
437
|
-
const o = (d.value === t ?
|
|
438
|
-
|
|
468
|
+
const o = (d.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
469
|
+
Ke(
|
|
439
470
|
s.value,
|
|
440
471
|
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
441
472
|
o,
|
|
@@ -447,7 +478,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
447
478
|
);
|
|
448
479
|
}
|
|
449
480
|
}
|
|
450
|
-
function
|
|
481
|
+
function ca(e) {
|
|
451
482
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
452
483
|
E(
|
|
453
484
|
s.value,
|
|
@@ -466,30 +497,30 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
466
497
|
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
467
498
|
{
|
|
468
499
|
align: "center",
|
|
469
|
-
font: `${Math.round(
|
|
500
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
470
501
|
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
471
502
|
strokeColor: a.value.style.chart.backgroundColor,
|
|
472
503
|
lineWidth: 0.8
|
|
473
504
|
}
|
|
474
505
|
);
|
|
475
506
|
}
|
|
476
|
-
function
|
|
477
|
-
for (let e =
|
|
478
|
-
(
|
|
507
|
+
function da() {
|
|
508
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
509
|
+
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + r.value.start)) && E(
|
|
479
510
|
s.value,
|
|
480
511
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
481
|
-
l.value.left + l.value.slot * (e -
|
|
482
|
-
l.value.bottom +
|
|
512
|
+
l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
|
|
513
|
+
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
483
514
|
{
|
|
484
515
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
485
|
-
font: `${Math.round(
|
|
486
|
-
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value +
|
|
516
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
517
|
+
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
487
518
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
488
519
|
}
|
|
489
520
|
);
|
|
490
521
|
}
|
|
491
522
|
function De() {
|
|
492
|
-
|
|
523
|
+
L(
|
|
493
524
|
s.value,
|
|
494
525
|
[
|
|
495
526
|
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
@@ -503,26 +534,26 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
503
534
|
}
|
|
504
535
|
);
|
|
505
536
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
537
|
+
function ha() {
|
|
538
|
+
C.value.forEach((e, t) => {
|
|
508
539
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
509
540
|
Le(
|
|
510
541
|
s.value,
|
|
511
542
|
[
|
|
512
543
|
{
|
|
513
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
514
|
-
y:
|
|
544
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
545
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
515
546
|
},
|
|
516
547
|
{
|
|
517
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
518
|
-
y:
|
|
548
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
549
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
519
550
|
},
|
|
520
551
|
{
|
|
521
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
552
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
522
553
|
y: e.coordinatesLine[o].y
|
|
523
554
|
},
|
|
524
555
|
{
|
|
525
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
556
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
526
557
|
y: e.coordinatesLine[o].y
|
|
527
558
|
}
|
|
528
559
|
],
|
|
@@ -536,15 +567,15 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
536
567
|
},
|
|
537
568
|
end: {
|
|
538
569
|
x: e.coordinatesLine[o].x,
|
|
539
|
-
y:
|
|
570
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
540
571
|
},
|
|
541
572
|
stops: [
|
|
542
573
|
{ offset: 0, color: e.color },
|
|
543
|
-
{ offset: 1, color:
|
|
574
|
+
{ offset: 1, color: Ha(e.color, 0.5) }
|
|
544
575
|
]
|
|
545
576
|
}
|
|
546
577
|
}
|
|
547
|
-
),
|
|
578
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
|
|
548
579
|
s.value,
|
|
549
580
|
Q(
|
|
550
581
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -557,11 +588,11 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
557
588
|
}),
|
|
558
589
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
559
590
|
),
|
|
560
|
-
l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
561
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
591
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
592
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
562
593
|
{
|
|
563
594
|
align: "center",
|
|
564
|
-
font: `${Math.round(
|
|
595
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
565
596
|
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
566
597
|
strokeColor: a.value.style.chart.backgroundColor,
|
|
567
598
|
lineWidth: 0.8
|
|
@@ -569,29 +600,29 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
569
600
|
);
|
|
570
601
|
});
|
|
571
602
|
}
|
|
572
|
-
function
|
|
573
|
-
e.useArea ?
|
|
603
|
+
function ya(e) {
|
|
604
|
+
e.useArea ? u.value.stacked ? Qe(
|
|
574
605
|
s.value,
|
|
575
606
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
576
607
|
{
|
|
577
608
|
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
578
609
|
strokeColor: "transparent"
|
|
579
610
|
}
|
|
580
|
-
) :
|
|
611
|
+
) : Qe(
|
|
581
612
|
s.value,
|
|
582
613
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
583
614
|
{
|
|
584
615
|
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
585
616
|
strokeColor: "transparent"
|
|
586
617
|
}
|
|
587
|
-
) :
|
|
618
|
+
) : L(s.value, e.coordinatesLine, {
|
|
588
619
|
color: e.color,
|
|
589
620
|
lineWidth: 3
|
|
590
621
|
});
|
|
591
622
|
}
|
|
592
623
|
function fa() {
|
|
593
624
|
h.value.forEach((e, t) => {
|
|
594
|
-
|
|
625
|
+
L(
|
|
595
626
|
s.value,
|
|
596
627
|
[
|
|
597
628
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -605,18 +636,18 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
605
636
|
});
|
|
606
637
|
}
|
|
607
638
|
function ge() {
|
|
608
|
-
|
|
609
|
-
(e.type === "line" || !e.type) &&
|
|
610
|
-
}), ve.value =
|
|
639
|
+
ia(), N.value ? (M.value && d.value !== null && a.value.style.chart.selector.show && De(), ha(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), sa.value.forEach((e) => {
|
|
640
|
+
(e.type === "line" || !e.type) && ya(e), M.value && (va(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ca(e));
|
|
641
|
+
}), ve.value = Xa(z.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), M.value && d.value !== null && a.value.style.chart.selector.show && De(), M.value && d.value !== null && h.value.forEach((e) => {
|
|
611
642
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
612
643
|
if (!e.coordinatesLine[d.value]) return;
|
|
613
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
644
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ke(
|
|
614
645
|
s.value,
|
|
615
646
|
{
|
|
616
647
|
x: e.coordinatesLine[d.value].x,
|
|
617
648
|
y: e.coordinatesLine[d.value].y
|
|
618
649
|
},
|
|
619
|
-
|
|
650
|
+
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
620
651
|
{
|
|
621
652
|
color: a.value.style.chart.backgroundColor,
|
|
622
653
|
fillStyle: e.color,
|
|
@@ -624,105 +655,105 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
624
655
|
}
|
|
625
656
|
);
|
|
626
657
|
}
|
|
627
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
658
|
+
})), a.value.style.chart.grid.y.timeLabels.show && da(), N.value = !1;
|
|
628
659
|
}
|
|
629
|
-
const oe =
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
function
|
|
633
|
-
const { left: t } =
|
|
660
|
+
const oe = Wa(() => {
|
|
661
|
+
M.value = !0, na();
|
|
662
|
+
}, O.value > 200 ? 10 : 1, !M.value);
|
|
663
|
+
function ga(e) {
|
|
664
|
+
const { left: t } = z.value.getBoundingClientRect(), o = e.clientX - t;
|
|
634
665
|
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
635
666
|
le.value = !1, d.value = null;
|
|
636
667
|
return;
|
|
637
668
|
}
|
|
638
669
|
const i = o * 2 - l.value.left;
|
|
639
|
-
if (d.value = Math.floor(i / l.value.slot), le.value = !0, !
|
|
670
|
+
if (d.value = Math.floor(i / l.value.slot), le.value = !0, !M.value) return;
|
|
640
671
|
let c = "";
|
|
641
|
-
const
|
|
642
|
-
|
|
672
|
+
const f = a.value.style.chart.tooltip.customFormat;
|
|
673
|
+
Je(f) && Aa(() => f({
|
|
643
674
|
seriesIndex: d.value,
|
|
644
675
|
datapoint: h.value.map((n) => ({
|
|
645
676
|
shape: n.shape || null,
|
|
646
677
|
name: n.name,
|
|
647
678
|
color: n.color,
|
|
648
679
|
type: n.type || "line",
|
|
649
|
-
value: n.series.find((g,
|
|
680
|
+
value: n.series.find((g, w) => w === d.value)
|
|
650
681
|
})),
|
|
651
682
|
series: h.value,
|
|
652
683
|
config: a.value
|
|
653
|
-
})) ? te.value =
|
|
684
|
+
})) ? te.value = f({
|
|
654
685
|
seriesIndex: d.value,
|
|
655
686
|
datapoint: h.value.map((n) => ({
|
|
656
687
|
shape: n.shape || null,
|
|
657
688
|
name: n.name,
|
|
658
689
|
color: n.color,
|
|
659
690
|
type: n.type || "line",
|
|
660
|
-
value: n.series.find((g,
|
|
691
|
+
value: n.series.find((g, w) => w === d.value)
|
|
661
692
|
})),
|
|
662
693
|
series: h.value,
|
|
663
694
|
config: a.value
|
|
664
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
695
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.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(r.value.start, r.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c), M.value = !1;
|
|
665
696
|
}
|
|
666
697
|
A(() => d.value, (e) => {
|
|
667
698
|
oe();
|
|
668
|
-
}), A(() =>
|
|
699
|
+
}), A(() => r.value, (e) => {
|
|
669
700
|
N.value = !0, ge();
|
|
670
701
|
}, {
|
|
671
702
|
deep: !0
|
|
672
|
-
}), A(() =>
|
|
703
|
+
}), A(() => u.value.showDataLabels, (e) => {
|
|
673
704
|
N.value = !0, ge();
|
|
674
|
-
}), A(() =>
|
|
675
|
-
N.value = !0,
|
|
705
|
+
}), A(() => u.value.stacked, (e) => {
|
|
706
|
+
N.value = !0, M.value = !0, oe();
|
|
676
707
|
});
|
|
677
|
-
function
|
|
708
|
+
function pa() {
|
|
678
709
|
le.value = !1, d.value = null, te.value = "";
|
|
679
710
|
}
|
|
680
|
-
const
|
|
681
|
-
|
|
711
|
+
const re = v(null), ue = v(null);
|
|
712
|
+
La(() => {
|
|
682
713
|
pe();
|
|
683
714
|
});
|
|
684
715
|
function pe() {
|
|
685
|
-
if (
|
|
716
|
+
if (Ea(k.dataset) ? Na({
|
|
686
717
|
componentName: "VueUiXyCanvas",
|
|
687
718
|
type: "dataset"
|
|
688
|
-
}) :
|
|
719
|
+
}) : z.value && (s.value = z.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
689
720
|
const e = Ya(() => {
|
|
690
721
|
const { width: t, height: o } = Ba({
|
|
691
722
|
chart: U.value,
|
|
692
723
|
title: a.value.style.chart.title.text ? $e.value : null,
|
|
693
724
|
legend: a.value.style.chart.legend.show ? ze.value : null,
|
|
694
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
695
|
-
source:
|
|
725
|
+
slicer: a.value.style.chart.zoom.show && O.value > 1 ? Me.value : null,
|
|
726
|
+
source: Te.value
|
|
696
727
|
});
|
|
697
|
-
|
|
728
|
+
Oe.value = `${t} / ${o}`;
|
|
698
729
|
});
|
|
699
|
-
|
|
730
|
+
re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
|
|
700
731
|
}
|
|
701
|
-
|
|
732
|
+
ue.value = new ResizeObserver((e) => {
|
|
702
733
|
for (const t of e)
|
|
703
734
|
t.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
704
|
-
}),
|
|
735
|
+
}), ue.value.observe(Z.value);
|
|
705
736
|
}
|
|
706
|
-
|
|
707
|
-
|
|
737
|
+
ka(() => {
|
|
738
|
+
ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
|
|
708
739
|
});
|
|
709
740
|
function He(e) {
|
|
710
|
-
|
|
741
|
+
la("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, oe();
|
|
711
742
|
}
|
|
712
|
-
const We = b(() =>
|
|
743
|
+
const We = b(() => X.value.map((e, t) => ({
|
|
713
744
|
...e,
|
|
714
745
|
name: e.name,
|
|
715
|
-
color:
|
|
746
|
+
color: qe(e.color) || Ne.value[t] || H[t] || H[t % H.length],
|
|
716
747
|
shape: e.shape || "circle",
|
|
717
748
|
prefix: e.prefix || "",
|
|
718
749
|
suffix: e.suffix || "",
|
|
719
750
|
rounding: e.rounding || 0
|
|
720
751
|
})).map((e) => ({
|
|
721
752
|
...e,
|
|
722
|
-
opacity:
|
|
753
|
+
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
723
754
|
segregate: () => He(e.absoluteIndex),
|
|
724
|
-
isSegregated:
|
|
725
|
-
}))),
|
|
755
|
+
isSegregated: $.value.includes(e.absoluteIndex)
|
|
756
|
+
}))), ma = b(() => ({
|
|
726
757
|
cy: "donut-div-legend",
|
|
727
758
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
728
759
|
color: a.value.style.chart.legend.color,
|
|
@@ -732,9 +763,9 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
732
763
|
})), se = b(() => {
|
|
733
764
|
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
765
|
let t = [];
|
|
735
|
-
for (let c = 0; c <
|
|
736
|
-
const
|
|
737
|
-
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
766
|
+
for (let c = 0; c < O.value; c += 1) {
|
|
767
|
+
const f = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
768
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
|
|
738
769
|
}
|
|
739
770
|
const o = {
|
|
740
771
|
th: {
|
|
@@ -749,15 +780,15 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
749
780
|
},
|
|
750
781
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
751
782
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
752
|
-
return { head: e, body: t.slice(0,
|
|
753
|
-
}),
|
|
783
|
+
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
784
|
+
}), Xe = b(() => {
|
|
754
785
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
755
786
|
const e = h.value.map((o) => ({
|
|
756
787
|
label: o.name,
|
|
757
788
|
color: o.color,
|
|
758
789
|
type: o.type
|
|
759
790
|
})), t = [];
|
|
760
|
-
for (let o =
|
|
791
|
+
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
761
792
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
762
793
|
h.value.forEach((c) => {
|
|
763
794
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
@@ -765,53 +796,53 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
765
796
|
}
|
|
766
797
|
return { head: e, body: t };
|
|
767
798
|
});
|
|
768
|
-
function
|
|
769
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
770
|
-
|
|
799
|
+
function Ye() {
|
|
800
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Xe.value.head.map((f) => f.label)], o = Xe.value.body, i = e.concat([t]).concat(o), c = _a(i);
|
|
801
|
+
Da({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
771
802
|
}
|
|
772
|
-
function
|
|
803
|
+
function ba() {
|
|
773
804
|
return h.value;
|
|
774
805
|
}
|
|
775
|
-
function
|
|
776
|
-
|
|
806
|
+
function Be() {
|
|
807
|
+
u.value.showTable = !u.value.showTable;
|
|
777
808
|
}
|
|
778
809
|
function Ue() {
|
|
779
|
-
|
|
810
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
780
811
|
}
|
|
781
812
|
function Ze() {
|
|
782
|
-
|
|
813
|
+
u.value.stacked = !u.value.stacked;
|
|
783
814
|
}
|
|
784
815
|
function Ge() {
|
|
785
|
-
|
|
816
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
786
817
|
}
|
|
787
818
|
const ne = v(!1);
|
|
788
819
|
function me() {
|
|
789
820
|
ne.value = !ne.value;
|
|
790
821
|
}
|
|
791
|
-
return
|
|
792
|
-
getData:
|
|
793
|
-
generateCsv:
|
|
822
|
+
return aa({
|
|
823
|
+
getData: ba,
|
|
824
|
+
generateCsv: Ye,
|
|
794
825
|
generatePdf: Fe,
|
|
795
826
|
generateImage: Ee,
|
|
796
|
-
toggleTable:
|
|
827
|
+
toggleTable: Be,
|
|
797
828
|
toggleLabels: Ue,
|
|
798
829
|
toggleStack: Ze,
|
|
799
830
|
toggleTooltip: Ge,
|
|
800
831
|
toggleAnnotator: me
|
|
801
|
-
}), (e, t) => (
|
|
832
|
+
}), (e, t) => (S(), q("div", {
|
|
802
833
|
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
803
834
|
ref_key: "xy",
|
|
804
835
|
ref: U,
|
|
805
836
|
id: `xy_canvas_${ie.value}`,
|
|
806
|
-
class:
|
|
837
|
+
class: Ca(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
807
838
|
}, [
|
|
808
|
-
a.value.style.chart.title.text ? (
|
|
839
|
+
a.value.style.chart.title.text ? (S(), q("div", {
|
|
809
840
|
key: 0,
|
|
810
841
|
ref_key: "chartTitle",
|
|
811
842
|
ref: $e,
|
|
812
843
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
813
844
|
}, [
|
|
814
|
-
(
|
|
845
|
+
(S(), F(Ga, {
|
|
815
846
|
key: `title_${de.value}`,
|
|
816
847
|
config: {
|
|
817
848
|
title: {
|
|
@@ -825,12 +856,12 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
825
856
|
}
|
|
826
857
|
}, null, 8, ["config"]))
|
|
827
858
|
], 4)) : _("", !0),
|
|
828
|
-
a.value.userOptions.show &&
|
|
859
|
+
a.value.userOptions.show && fe.value ? (S(), F(qa, {
|
|
829
860
|
ref: "details",
|
|
830
861
|
key: `user_option_${Se.value}`,
|
|
831
862
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
832
863
|
color: a.value.style.chart.color,
|
|
833
|
-
isPrinting: D(
|
|
864
|
+
isPrinting: D(Ie),
|
|
834
865
|
isImaging: D(Pe),
|
|
835
866
|
uid: ie.value,
|
|
836
867
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
@@ -840,25 +871,25 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
840
871
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
841
872
|
hasStack: ke.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
842
873
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
843
|
-
hasTable:
|
|
874
|
+
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
844
875
|
isFullscreen: ce.value,
|
|
845
|
-
isTooltip:
|
|
846
|
-
isStacked:
|
|
876
|
+
isTooltip: u.value.showTooltip,
|
|
877
|
+
isStacked: u.value.stacked,
|
|
847
878
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
848
879
|
chartElement: U.value,
|
|
849
880
|
position: a.value.userOptions.position,
|
|
850
881
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
851
882
|
isAnnotation: ne.value,
|
|
852
|
-
onToggleFullscreen:
|
|
883
|
+
onToggleFullscreen: oa,
|
|
853
884
|
onGeneratePdf: D(Fe),
|
|
854
|
-
onGenerateCsv:
|
|
885
|
+
onGenerateCsv: Ye,
|
|
855
886
|
onGenerateImage: D(Ee),
|
|
856
|
-
onToggleTable:
|
|
887
|
+
onToggleTable: Be,
|
|
857
888
|
onToggleLabels: Ue,
|
|
858
889
|
onToggleStack: Ze,
|
|
859
890
|
onToggleTooltip: Ge,
|
|
860
891
|
onToggleAnnotator: me
|
|
861
|
-
},
|
|
892
|
+
}, wa({ _: 2 }, [
|
|
862
893
|
e.$slots.optionTooltip ? {
|
|
863
894
|
name: "optionTooltip",
|
|
864
895
|
fn: m(() => [
|
|
@@ -911,32 +942,32 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
911
942
|
e.$slots.optionFullscreen ? {
|
|
912
943
|
name: "optionFullscreen",
|
|
913
944
|
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
914
|
-
x(e.$slots, "optionFullscreen", B(
|
|
945
|
+
x(e.$slots, "optionFullscreen", Y(B({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
915
946
|
]),
|
|
916
947
|
key: "7"
|
|
917
948
|
} : void 0,
|
|
918
949
|
e.$slots.optionAnnotator ? {
|
|
919
950
|
name: "optionAnnotator",
|
|
920
951
|
fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
921
|
-
x(e.$slots, "optionAnnotator", B(
|
|
952
|
+
x(e.$slots, "optionAnnotator", Y(B({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
922
953
|
]),
|
|
923
954
|
key: "8"
|
|
924
955
|
} : void 0
|
|
925
956
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
|
|
926
957
|
K("div", {
|
|
927
958
|
class: "vue-ui-xy-canvas",
|
|
928
|
-
style: J(`position: relative; aspect-ratio: ${
|
|
959
|
+
style: J(`position: relative; aspect-ratio: ${Oe.value}`),
|
|
929
960
|
ref_key: "container",
|
|
930
961
|
ref: Z
|
|
931
962
|
}, [
|
|
932
|
-
|
|
963
|
+
fe.value ? (S(), q("canvas", {
|
|
933
964
|
key: 0,
|
|
934
965
|
ref_key: "canvas",
|
|
935
|
-
ref:
|
|
966
|
+
ref: z,
|
|
936
967
|
style: { width: "100%", height: "100%" },
|
|
937
|
-
onMousemove: t[0] || (t[0] = (o) =>
|
|
938
|
-
onMouseleave:
|
|
939
|
-
}, null, 544)) : (
|
|
968
|
+
onMousemove: t[0] || (t[0] = (o) => ga(o)),
|
|
969
|
+
onMouseleave: pa
|
|
970
|
+
}, null, 544)) : (S(), F(Qa, {
|
|
940
971
|
key: 1,
|
|
941
972
|
config: {
|
|
942
973
|
type: "line",
|
|
@@ -954,8 +985,8 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
954
985
|
}
|
|
955
986
|
}
|
|
956
987
|
}, null, 8, ["config"])),
|
|
957
|
-
|
|
958
|
-
show:
|
|
988
|
+
Sa(Ua, {
|
|
989
|
+
show: u.value.showTooltip && le.value,
|
|
959
990
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
960
991
|
color: a.value.style.chart.tooltip.color,
|
|
961
992
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -964,49 +995,49 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
964
995
|
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
965
996
|
position: a.value.style.chart.tooltip.position,
|
|
966
997
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
967
|
-
parent:
|
|
998
|
+
parent: z.value,
|
|
968
999
|
content: te.value,
|
|
969
1000
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
970
|
-
isCustom: D(
|
|
1001
|
+
isCustom: D(Je)(a.value.style.chart.tooltip.customFormat)
|
|
971
1002
|
}, {
|
|
972
1003
|
"tooltip-before": m(() => [
|
|
973
|
-
x(e.$slots, "tooltip-before", B(
|
|
1004
|
+
x(e.$slots, "tooltip-before", Y(B({ ...Ce.value })), void 0, !0)
|
|
974
1005
|
]),
|
|
975
1006
|
"tooltip-after": m(() => [
|
|
976
|
-
x(e.$slots, "tooltip-after", B(
|
|
1007
|
+
x(e.$slots, "tooltip-after", Y(B({ ...Ce.value })), void 0, !0)
|
|
977
1008
|
]),
|
|
978
1009
|
_: 3
|
|
979
1010
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
980
1011
|
], 4),
|
|
981
1012
|
K("div", {
|
|
982
1013
|
ref_key: "chartSlicer",
|
|
983
|
-
ref:
|
|
1014
|
+
ref: Me,
|
|
984
1015
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
985
1016
|
"data-html2canvas-ignore": ""
|
|
986
1017
|
}, [
|
|
987
|
-
a.value.style.chart.zoom.show &&
|
|
1018
|
+
a.value.style.chart.zoom.show && O.value > 1 ? (S(), F(Va, {
|
|
988
1019
|
key: `slicer_${we.value}`,
|
|
989
1020
|
background: a.value.style.chart.zoom.color,
|
|
990
1021
|
borderColor: a.value.style.chart.backgroundColor,
|
|
991
1022
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
992
1023
|
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[
|
|
1024
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
|
|
1025
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
|
|
995
1026
|
textColor: a.value.style.chart.color,
|
|
996
1027
|
inputColor: a.value.style.chart.zoom.color,
|
|
997
1028
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
998
|
-
max:
|
|
1029
|
+
max: O.value,
|
|
999
1030
|
min: 0,
|
|
1000
|
-
valueStart:
|
|
1001
|
-
valueEnd:
|
|
1002
|
-
start:
|
|
1003
|
-
"onUpdate:start": t[1] || (t[1] = (o) =>
|
|
1004
|
-
end:
|
|
1005
|
-
"onUpdate:end": t[2] || (t[2] = (o) =>
|
|
1031
|
+
valueStart: r.value.start,
|
|
1032
|
+
valueEnd: r.value.end,
|
|
1033
|
+
start: r.value.start,
|
|
1034
|
+
"onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
|
|
1035
|
+
end: r.value.end,
|
|
1036
|
+
"onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
|
|
1006
1037
|
onReset: _e
|
|
1007
1038
|
}, {
|
|
1008
1039
|
"reset-action": m(({ reset: o }) => [
|
|
1009
|
-
x(e.$slots, "reset-action", B(
|
|
1040
|
+
x(e.$slots, "reset-action", Y(B({ reset: o })), void 0, !0)
|
|
1010
1041
|
]),
|
|
1011
1042
|
_: 3
|
|
1012
1043
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
|
|
@@ -1015,17 +1046,17 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1015
1046
|
ref_key: "chartLegend",
|
|
1016
1047
|
ref: ze
|
|
1017
1048
|
}, [
|
|
1018
|
-
a.value.style.chart.legend.show &&
|
|
1049
|
+
a.value.style.chart.legend.show && fe.value ? (S(), F(Za, {
|
|
1019
1050
|
legendSet: We.value,
|
|
1020
|
-
config:
|
|
1021
|
-
key: `legend_${
|
|
1051
|
+
config: ma.value,
|
|
1052
|
+
key: `legend_${ye.value}`,
|
|
1022
1053
|
onClickMarker: t[3] || (t[3] = ({ i: o }) => He(o))
|
|
1023
1054
|
}, {
|
|
1024
1055
|
item: m(({ legend: o, index: i }) => [
|
|
1025
1056
|
K("div", {
|
|
1026
1057
|
onClick: (c) => o.segregate(),
|
|
1027
|
-
style: J(`opacity:${
|
|
1028
|
-
}, Ve(o.name), 13,
|
|
1058
|
+
style: J(`opacity:${$.value.includes(i) ? 0.5 : 1}`)
|
|
1059
|
+
}, Ve(o.name), 13, tl)
|
|
1029
1060
|
]),
|
|
1030
1061
|
_: 1
|
|
1031
1062
|
}, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
|
|
@@ -1033,22 +1064,22 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1033
1064
|
legend: We.value
|
|
1034
1065
|
}, void 0, !0)
|
|
1035
1066
|
], 512),
|
|
1036
|
-
e.$slots.watermark ? (
|
|
1037
|
-
x(e.$slots, "watermark", B(
|
|
1067
|
+
e.$slots.watermark ? (S(), q("div", ol, [
|
|
1068
|
+
x(e.$slots, "watermark", Y(B({ isPrinting: D(Ie) || D(Pe) })), void 0, !0)
|
|
1038
1069
|
])) : _("", !0),
|
|
1039
|
-
e.$slots.source ? (
|
|
1070
|
+
e.$slots.source ? (S(), q("div", {
|
|
1040
1071
|
key: 3,
|
|
1041
1072
|
ref_key: "source",
|
|
1042
|
-
ref:
|
|
1073
|
+
ref: Te,
|
|
1043
1074
|
dir: "auto"
|
|
1044
1075
|
}, [
|
|
1045
1076
|
x(e.$slots, "source", {}, void 0, !0)
|
|
1046
1077
|
], 512)) : _("", !0),
|
|
1047
|
-
|
|
1078
|
+
r.value.end - r.value.start < 200 ? (S(), F(Ja, {
|
|
1048
1079
|
key: 4,
|
|
1049
1080
|
hideDetails: "",
|
|
1050
1081
|
config: {
|
|
1051
|
-
open:
|
|
1082
|
+
open: u.value.showTable,
|
|
1052
1083
|
maxHeight: 1e4,
|
|
1053
1084
|
body: {
|
|
1054
1085
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1061,27 +1092,27 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1061
1092
|
}
|
|
1062
1093
|
}, {
|
|
1063
1094
|
content: m(() => [
|
|
1064
|
-
(
|
|
1095
|
+
(S(), F(Ka, {
|
|
1065
1096
|
key: `table_${he.value}`,
|
|
1066
1097
|
colNames: se.value.colNames,
|
|
1067
1098
|
head: se.value.head,
|
|
1068
1099
|
body: se.value.body,
|
|
1069
1100
|
config: se.value.config,
|
|
1070
1101
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1071
|
-
onClose: t[4] || (t[4] = (o) =>
|
|
1102
|
+
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1072
1103
|
}, {
|
|
1073
1104
|
th: m(({ th: o }) => [
|
|
1074
|
-
K("div", { innerHTML: o }, null, 8,
|
|
1105
|
+
K("div", { innerHTML: o }, null, 8, rl)
|
|
1075
1106
|
]),
|
|
1076
1107
|
td: m(({ td: o }) => [
|
|
1077
|
-
|
|
1108
|
+
$a(Ve(o), 1)
|
|
1078
1109
|
]),
|
|
1079
1110
|
_: 1
|
|
1080
1111
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1081
1112
|
]),
|
|
1082
1113
|
_: 1
|
|
1083
1114
|
}, 8, ["config"])) : _("", !0),
|
|
1084
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (
|
|
1115
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (S(), F(el, {
|
|
1085
1116
|
key: 5,
|
|
1086
1117
|
parent: U.value,
|
|
1087
1118
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1089,9 +1120,9 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1089
1120
|
active: ne.value,
|
|
1090
1121
|
onClose: me
|
|
1091
1122
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1092
|
-
], 14,
|
|
1123
|
+
], 14, ll));
|
|
1093
1124
|
}
|
|
1094
|
-
},
|
|
1125
|
+
}, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-1359e2b5"]]);
|
|
1095
1126
|
export {
|
|
1096
|
-
|
|
1127
|
+
Ll as default
|
|
1097
1128
|
};
|