vue-data-ui 2.4.23 → 2.4.24
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-9iDBAuSV.js → Arrow-9R7QraNV.js} +1 -1
- package/dist/{Arrow-DHtg3zTZ.cjs → Arrow-CTmibgPb.cjs} +1 -1
- package/dist/{BaseIcon-Cupc3HpM.js → BaseIcon-CQUxE4D0.js} +1 -1
- package/dist/{BaseIcon-CZcJp0BK.cjs → BaseIcon-D_vWKdk3.cjs} +1 -1
- package/dist/{DataTable-CKU2-3VH.cjs → DataTable-ClN04OBE.cjs} +1 -1
- package/dist/{DataTable-DpgVCStr.js → DataTable-DN4NMcy_.js} +2 -2
- package/dist/{Legend-Lx_cdBGO.cjs → Legend-BdjYa7o4.cjs} +1 -1
- package/dist/{Legend-BItqGLYs.js → Legend-CNAQN1JM.js} +1 -1
- package/dist/{PackageVersion-KNK0JwMQ.cjs → PackageVersion-BReu3g8_.cjs} +1 -1
- package/dist/{PackageVersion-COTfkq01.js → PackageVersion-DFzNvc8X.js} +1 -1
- package/dist/{PenAndPaper-CCFQ3lIj.js → PenAndPaper-BQ4Vfc7S.js} +3 -3
- package/dist/{PenAndPaper-CUZAR9sb.cjs → PenAndPaper-C9MBduiw.cjs} +1 -1
- package/dist/{Shape-CNgd2ODn.js → Shape-YbAlN6X4.js} +1 -1
- package/dist/{Shape-CHo_V5NA.cjs → Shape-mLeYDFcS.cjs} +1 -1
- package/dist/{Slicer-DFzd-3uU.cjs → Slicer-DAnwJuA4.cjs} +1 -1
- package/dist/{Slicer-1C1usd0L.js → Slicer-DvFk8kZE.js} +2 -2
- package/dist/{Title-ZcAPoasN.js → Title-DdrRlJjz.js} +1 -1
- package/dist/{Title-kzPAj9Bx.cjs → Title-hDWoW1x0.cjs} +1 -1
- package/dist/{Tooltip-rrH-I4us.cjs → Tooltip-CLz1sK2U.cjs} +1 -1
- package/dist/{Tooltip-CUGz5S0n.js → Tooltip-DZnNOyXe.js} +1 -1
- package/dist/{index-CWlhzm6K.js → index-DNpWvHMv.js} +1 -1
- package/dist/{index-BkeVohkW.cjs → index-Yx-Iy-n8.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Dp6z-Sc4.cjs → useNestedProp-BhXCOMBU.cjs} +1 -1
- package/dist/{useNestedProp-DH41HJ08.js → useNestedProp-DCPT4jkz.js} +1 -1
- package/dist/{usePrinter-DHOJP772.cjs → usePrinter-DA6eJ-d8.cjs} +1 -1
- package/dist/{usePrinter-DPAte4qe.js → usePrinter-Tcpg1Xq_.js} +1 -1
- package/dist/{vue-data-ui-qgmGN1Q3.cjs → vue-data-ui-xS2yvUZ2.cjs} +1 -1
- package/dist/{vue-data-ui-pKAecUSS.js → vue-data-ui-z1BPTu-V.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DWuaVLbf.cjs → vue-ui-3d-bar-CK1sjoUi.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BXCwShkR.js → vue-ui-3d-bar-D3TdYgOP.js} +9 -9
- package/dist/{vue-ui-accordion-C5v0z_Xf.cjs → vue-ui-accordion-BKaHbGc7.cjs} +1 -1
- package/dist/{vue-ui-accordion-DOBaAopj.js → vue-ui-accordion-BZUQ-qHe.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DbPAn9zq.cjs → vue-ui-age-pyramid-6gZ1ApV3.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vyCFJjNt.js → vue-ui-age-pyramid-B1KI1HfD.js} +10 -10
- package/dist/{vue-ui-annotator-HVCwKP38.cjs → vue-ui-annotator-BjiXyrZQ.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGCuUvcA.js → vue-ui-annotator-CdsFcctQ.js} +1 -1
- package/dist/{vue-ui-bullet-BQ6KtvIV.js → vue-ui-bullet-DzZoOmWT.js} +8 -8
- package/dist/{vue-ui-bullet-gBARXd6m.cjs → vue-ui-bullet-lRr8AGvu.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Cp94bu6U.js → vue-ui-candlestick-DUZ1v_V2.js} +11 -11
- package/dist/{vue-ui-candlestick-CH00Pe-m.cjs → vue-ui-candlestick-sQ9OuT8L.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DMlpUpov.js → vue-ui-carousel-table-B3754KOr.js} +4 -4
- package/dist/{vue-ui-carousel-table-ArXyyfTX.cjs → vue-ui-carousel-table-sfpNsFFM.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ddab6epX.js → vue-ui-chestnut-Bj8iuxME.js} +8 -8
- package/dist/{vue-ui-chestnut-CGFD2NmV.cjs → vue-ui-chestnut-CrLkWFiA.cjs} +1 -1
- package/dist/{vue-ui-cursor-B7c72wC4.js → vue-ui-cursor-BeDbdiQ_.js} +2 -2
- package/dist/{vue-ui-cursor-BDlDJKU9.cjs → vue-ui-cursor-olMTBc3h.cjs} +1 -1
- package/dist/{vue-ui-dashboard-C3v2FoY4.cjs → vue-ui-dashboard-Cl0-ES43.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D6YQysXz.js → vue-ui-dashboard-_x3uCh6v.js} +2 -2
- package/dist/{vue-ui-digits-C5t5G6WA.cjs → vue-ui-digits-51QHU1dt.cjs} +1 -1
- package/dist/{vue-ui-digits-rKt3WYmo.js → vue-ui-digits-B2XiXAlb.js} +2 -2
- package/dist/{vue-ui-donut-xEiPs0jw.js → vue-ui-donut-BScgLfCs.js} +11 -11
- package/dist/{vue-ui-donut-evolution-x154QZPU.js → vue-ui-donut-evolution-BWI37PoD.js} +11 -11
- package/dist/{vue-ui-donut-evolution-EaxYPzHO.cjs → vue-ui-donut-evolution-BYZ-0q-Q.cjs} +1 -1
- package/dist/{vue-ui-donut-CIaIft1i.cjs → vue-ui-donut-vHW8U7Yo.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Bhw-LZKD.cjs → vue-ui-dumbbell-3Eitchg8.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-lk9voxo9.js → vue-ui-dumbbell-s09CyK69.js} +10 -10
- package/dist/{vue-ui-flow-DDrRUTls.js → vue-ui-flow-B1Rt8LLH.js} +9 -9
- package/dist/{vue-ui-flow-D282qMxZ.cjs → vue-ui-flow-Oc6Zl5gy.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D1WO8wNh.cjs → vue-ui-galaxy-DIg1SS4W.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CdrlGwj5.js → vue-ui-galaxy-DtDk3bvA.js} +11 -11
- package/dist/{vue-ui-gauge-CLE1ripj.cjs → vue-ui-gauge-BY33zNrL.cjs} +1 -1
- package/dist/{vue-ui-gauge-BB0B-afr.js → vue-ui-gauge-CqDYHzxD.js} +7 -7
- package/dist/{vue-ui-gizmo-BwhKySbh.js → vue-ui-gizmo-C0wcIOIv.js} +3 -3
- package/dist/{vue-ui-gizmo-YAVeHEMb.cjs → vue-ui-gizmo-NhgqjNTn.cjs} +1 -1
- package/dist/{vue-ui-heatmap-HtfXbdDL.js → vue-ui-heatmap-AqYgted0.js} +10 -10
- package/dist/{vue-ui-heatmap-CA3rX3aP.cjs → vue-ui-heatmap-C7_6hfx_.cjs} +1 -1
- package/dist/{vue-ui-kpi-l3PRzR6k.js → vue-ui-kpi-C00uVM5q.js} +3 -3
- package/dist/{vue-ui-kpi-nA9x9jed.cjs → vue-ui-kpi-DlqjCSOa.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C6NkSh4S.cjs → vue-ui-mini-loader-34x62P6H.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-08kgYVwW.js → vue-ui-mini-loader-CMxB6-7I.js} +2 -2
- package/dist/{vue-ui-molecule-BAwlDL6Z.js → vue-ui-molecule-CUo3NiTx.js} +11 -11
- package/dist/{vue-ui-molecule-BP_b5wFi.cjs → vue-ui-molecule-DX26Q_UW.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D7R1sJ-s.js → vue-ui-mood-radar-B48X5fUo.js} +11 -11
- package/dist/{vue-ui-mood-radar-CiF-yLnM.cjs → vue-ui-mood-radar-BnP66ZkN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BoiB2fYL.cjs → vue-ui-nested-donuts-BB8An9kQ.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-mi_bKP5P.js → vue-ui-nested-donuts-BYC1kE3-.js} +11 -11
- package/dist/{vue-ui-onion-DDcm9VKG.js → vue-ui-onion-C_5HEmVo.js} +11 -11
- package/dist/{vue-ui-onion-B_9x-PDA.cjs → vue-ui-onion-CaiK6TJx.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B8Amex6j.cjs → vue-ui-parallel-coordinate-plot-0V4h_rBl.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BLXVSCmi.js → vue-ui-parallel-coordinate-plot-BcMVYdY3.js} +12 -12
- package/dist/{vue-ui-quadrant-BFEprQ_j.cjs → vue-ui-quadrant--F2x6TBI.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BmPJLow1.js → vue-ui-quadrant-gF4piFaT.js} +12 -12
- package/dist/{vue-ui-quick-chart-B7Sotlr0.js → vue-ui-quick-chart-BFO5nlxt.js} +9 -9
- package/dist/{vue-ui-quick-chart-Cnb0C1nv.cjs → vue-ui-quick-chart-Cmm4grEJ.cjs} +1 -1
- package/dist/{vue-ui-radar-SYkVFE08.js → vue-ui-radar-C3oGJqRO.js} +12 -12
- package/dist/{vue-ui-radar-CYu4mixy.cjs → vue-ui-radar-DLAHJPYl.cjs} +1 -1
- package/dist/{vue-ui-rating-36rj-wHU.cjs → vue-ui-rating-DDPmcwLh.cjs} +1 -1
- package/dist/{vue-ui-rating-452f1yMa.js → vue-ui-rating-wWlA8aGu.js} +2 -2
- package/dist/{vue-ui-relation-circle-DVuvBy9_.cjs → vue-ui-relation-circle-CN76qQMx.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CWbxQJsa.js → vue-ui-relation-circle-CtnRCd-D.js} +7 -7
- package/dist/{vue-ui-rings-DBXvtevd.cjs → vue-ui-rings-BzmG-1wd.cjs} +1 -1
- package/dist/{vue-ui-rings-CDVcaS2n.js → vue-ui-rings-Jjb3Hb_c.js} +11 -11
- package/dist/{vue-ui-scatter-BG1X9kbp.js → vue-ui-scatter-CDcO_SRL.js} +12 -12
- package/dist/{vue-ui-scatter-CjOuKwUh.cjs → vue-ui-scatter-DwvgXKwS.cjs} +1 -1
- package/dist/{vue-ui-screenshot-UevcnZpH.cjs → vue-ui-screenshot-CMSHN3Kq.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CZkWSgQw.js → vue-ui-screenshot-x7d584sf.js} +1 -1
- package/dist/{vue-ui-skeleton-Cu2s1RAC.cjs → vue-ui-skeleton-8EAYuqbl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D8lu0qH2.js → vue-ui-skeleton-pdfgn69e.js} +3 -3
- package/dist/{vue-ui-smiley-ogUjJC93.js → vue-ui-smiley-DBkSG5cV.js} +2 -2
- package/dist/{vue-ui-smiley-D9S4GXJs.cjs → vue-ui-smiley-Dz5qeDJY.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-8QH7-7XF.js → vue-ui-spark-trend-Pw2ApGpF.js} +5 -5
- package/dist/{vue-ui-spark-trend-C7kB_1Vw.cjs → vue-ui-spark-trend-QvfiA4OU.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-h8ikA2Sx.cjs → vue-ui-sparkbar-48yoWNM1.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CjH_X0R-.js → vue-ui-sparkbar-Cj4xrmUI.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cs41GkQn.js → vue-ui-sparkgauge-DXQSkM_S.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C9LFXNGj.cjs → vue-ui-sparkgauge-sb5_grfL.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-FSp_ueqT.cjs → vue-ui-sparkhistogram-B58h2Zbw.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DTKMNIQK.js → vue-ui-sparkhistogram-CKAF5W5v.js} +5 -5
- package/dist/{vue-ui-sparkline-BLA-tfpO.js → vue-ui-sparkline-DSjLFYon.js} +4 -4
- package/dist/{vue-ui-sparkline-Drr1pzx9.cjs → vue-ui-sparkline-oLYUoDR1.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CusKLPdp.cjs → vue-ui-sparkstackbar-BJwck6a7.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CfcRdnSX.js → vue-ui-sparkstackbar-VJKqaZ-e.js} +5 -5
- package/dist/{vue-ui-stackbar-D0eu-fwT.js → vue-ui-stackbar-Bo0yKeyV.js} +12 -12
- package/dist/{vue-ui-stackbar-skhdwzKu.cjs → vue-ui-stackbar-CeM-EW_p.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-C8OUrG4s.js → vue-ui-strip-plot-B7TECT_l.js} +11 -11
- package/dist/{vue-ui-strip-plot-BAhwCR9h.cjs → vue-ui-strip-plot-BehocVOu.cjs} +1 -1
- package/dist/{vue-ui-table-Bu2uIl2l.js → vue-ui-table-D2EOoNwN.js} +1 -1
- package/dist/{vue-ui-table-DEGpMRSo.cjs → vue-ui-table-GVF0S5Ry.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-zO08g4xR.js → vue-ui-table-heatmap-BNWIkOv9.js} +4 -4
- package/dist/{vue-ui-table-heatmap-D8tpklnq.cjs → vue-ui-table-heatmap-jlcKc0Ws.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-lYobxmx6.js → vue-ui-table-sparkline-BDWWC7zT.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Di3fZVu4.cjs → vue-ui-table-sparkline-CZHIhrJE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-B2xrgXt1.cjs → vue-ui-thermometer-DnRAOGzE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BenXeMXf.js → vue-ui-thermometer-DpdmV84i.js} +7 -7
- package/dist/{vue-ui-timer-LJyKKC2o.js → vue-ui-timer-ClEy78ag.js} +5 -5
- package/dist/{vue-ui-timer-CDB9r1W2.cjs → vue-ui-timer-Dqz_JqG8.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DoTYOuot.js → vue-ui-tiremarks-BVC-dJW2.js} +7 -7
- package/dist/{vue-ui-tiremarks-Dy9gG1gc.cjs → vue-ui-tiremarks-aziTOe35.cjs} +1 -1
- package/dist/{vue-ui-treemap-BPz_AwA2.cjs → vue-ui-treemap-ey3O_EM_.cjs} +1 -1
- package/dist/{vue-ui-treemap-CY5sCBQp.js → vue-ui-treemap-izyqRSO4.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DTOcnkWX.cjs → vue-ui-vertical-bar-3ahimUet.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B8kiRxLN.js → vue-ui-vertical-bar-DkRLKkh9.js} +11 -11
- package/dist/{vue-ui-waffle-B4RCOwEg.js → vue-ui-waffle-BP9klXeX.js} +11 -11
- package/dist/{vue-ui-waffle-Dv2YchrJ.cjs → vue-ui-waffle-uQGjZTgi.cjs} +1 -1
- package/dist/{vue-ui-wheel-Zk6U_Lnd.js → vue-ui-wheel-BvhwRXPd.js} +7 -7
- package/dist/{vue-ui-wheel-C7wEmgol.cjs → vue-ui-wheel-CYFdZRVV.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DIF9KUX-.cjs → vue-ui-word-cloud-DUWtk6YK.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-5fxQJ65o.js → vue-ui-word-cloud-QVQUaIdb.js} +10 -10
- package/dist/{vue-ui-xy-BnasTV4L.js → vue-ui-xy-DApUlxLq.js} +14 -14
- package/dist/{vue-ui-xy-Bcb7loPC.cjs → vue-ui-xy-DF-M-Idj.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-Dc4l_P9H.cjs → vue-ui-xy-canvas-Cw8ymUpz.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BIULd1f-.js → vue-ui-xy-canvas-DHLXo1fA.js} +284 -283
- package/package.json +1 -1
|
@@ -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 w, 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 B, guardReactiveProps as X, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
|
|
2
|
+
import { u as za, c as Ta, t as Ma, a as Ra, p as H, M as je, b as Ia, C as xe, i as Q, f as ee, Y as Oa, 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-DNpWvHMv.js";
|
|
3
|
+
import { d as Wa, c as Ya, a as Ke, t as Ba, l as S, r as Le, b as E, p as Qe, u as Xa } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Ua } from "./Tooltip-DZnNOyXe.js";
|
|
5
|
+
import { L as Za } from "./Legend-CNAQN1JM.js";
|
|
6
|
+
import { _ as Ga } from "./Title-DdrRlJjz.js";
|
|
7
|
+
import { S as Va } from "./Slicer-DvFk8kZE.js";
|
|
8
|
+
import { u as ja, U as qa } from "./usePrinter-Tcpg1Xq_.js";
|
|
9
|
+
import Ja from "./vue-ui-accordion-BZUQ-qHe.js";
|
|
10
|
+
import { D as Ka } from "./DataTable-DN4NMcy_.js";
|
|
11
|
+
import Qa from "./vue-ui-skeleton-pdfgn69e.js";
|
|
12
|
+
import { u as ea } from "./useNestedProp-DCPT4jkz.js";
|
|
13
|
+
import { P as el } from "./PenAndPaper-BQ4Vfc7S.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,42 +32,43 @@ 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 L = ke, { vue_ui_xy_canvas: ta } = za(), ie = v(Ta()), U = v(null), z = 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), $ = v([]), W = v(1), N = v(!0), T = 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(() => !!L.dataset && L.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: L.config,
|
|
43
|
+
defaultConfig: ta
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
let l = {};
|
|
46
|
+
return e.theme ? l = {
|
|
47
|
+
...ea({
|
|
48
|
+
userConfig: Ma.vue_ui_xy_canvas[e.theme] || L.config,
|
|
48
49
|
defaultConfig: e
|
|
49
50
|
}),
|
|
50
|
-
customPalette:
|
|
51
|
-
} : e;
|
|
51
|
+
customPalette: Ra[e.theme] || H
|
|
52
|
+
} : l = e, L.config && je(L.config, "style.chart.scale.min") ? l.style.chart.scale.min = L.config.style.chart.scale.min : l.style.chart.scale.min = null, L.config && je(L.config, "style.chart.scale.max") ? l.style.chart.scale.max = L.config.style.chart.scale.max : l.style.chart.scale.max = null, l;
|
|
52
53
|
}
|
|
53
|
-
A(() =>
|
|
54
|
+
A(() => L.config, (e) => {
|
|
54
55
|
a.value = Re(), pe(), de.value += 1, he.value += 1, fe.value += 1;
|
|
55
|
-
}, { deep: !0 }), A(() =>
|
|
56
|
+
}, { deep: !0 }), A(() => L.dataset, () => {
|
|
56
57
|
pe(), de.value += 1, he.value += 1, fe.value += 1;
|
|
57
58
|
}, { deep: !0 });
|
|
58
|
-
const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, isImaging: Pe, generatePdf: Fe, generateImage: Ee } =
|
|
59
|
+
const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, 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 Ne = b(() => Ia(a.value.customPalette)), I = b(() => Y.value ? Math.max(...Y.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = b(() => {
|
|
71
72
|
const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
72
73
|
return {
|
|
73
74
|
canvasWidth: f.value,
|
|
@@ -78,34 +79,34 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
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
|
-
function Ae(e,
|
|
85
|
-
return e /
|
|
85
|
+
function Ae(e, l) {
|
|
86
|
+
return e / l;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
89
|
-
const
|
|
88
|
+
function ra({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
|
|
89
|
+
return l.map((C, be) => {
|
|
90
|
+
const M = c.min < 0 ? Math.abs(c.min) : 0, O = Ae(C + M, M + 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(C + P, c.max + P));
|
|
92
93
|
let V = 0;
|
|
93
|
-
return g === null ? V =
|
|
94
|
-
x:
|
|
94
|
+
return g === null ? V = t.value.bottom - t.value.height * (e ? G : O) : V = t.value.bottom - y - n * (e ? G : O), {
|
|
95
|
+
x: t.value.left + t.value.slot * be + t.value.slot / 2,
|
|
95
96
|
y: V,
|
|
96
|
-
value:
|
|
97
|
+
value: C
|
|
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(...Y.value.filter((n, g) =>
|
|
102
|
-
y:
|
|
103
|
-
x:
|
|
102
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Y.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Y.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, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
|
|
103
|
+
y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
|
|
104
|
+
x: t.value.left - 8,
|
|
104
105
|
value: n
|
|
105
106
|
}));
|
|
106
107
|
return {
|
|
107
108
|
absoluteMin: i,
|
|
108
|
-
max:
|
|
109
|
+
max: l,
|
|
109
110
|
min: e,
|
|
110
111
|
scale: o,
|
|
111
112
|
yLabels: y,
|
|
@@ -129,22 +130,22 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
129
130
|
{ datapoint: e, seriesIndex: d.value }
|
|
130
131
|
)}</span>
|
|
131
132
|
</div>
|
|
132
|
-
`)), Y = b(() =>
|
|
133
|
+
`)), Y = b(() => L.dataset.map((e, l) => ({
|
|
133
134
|
...e,
|
|
134
|
-
series:
|
|
135
|
-
data:
|
|
135
|
+
series: Oa({
|
|
136
|
+
data: Pa(e.series),
|
|
136
137
|
threshold: a.value.downsample.threshold
|
|
137
138
|
}),
|
|
138
|
-
absoluteIndex:
|
|
139
|
-
color:
|
|
139
|
+
absoluteIndex: l,
|
|
140
|
+
color: qe(e.color || Ne.value[l] || H[l] || H[l % H.length])
|
|
140
141
|
})));
|
|
141
142
|
A(I, (e) => {
|
|
142
143
|
e && _e();
|
|
143
144
|
});
|
|
144
|
-
const h = b(() =>
|
|
145
|
+
const h = b(() => Fa(Y.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
145
146
|
...e,
|
|
146
|
-
series: e.series.slice(
|
|
147
|
-
})).map((e,
|
|
147
|
+
series: e.series.slice(r.value.start, r.value.end)
|
|
148
|
+
})).map((e, l) => {
|
|
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
151
|
const y = {
|
|
@@ -154,22 +155,22 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
154
155
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
155
156
|
let g;
|
|
156
157
|
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
|
|
158
|
+
const C = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, be = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, M = u.value.stacked ? t.value.height * e.stackRatio - be : t.value.height, O = g.min < 0 ? Math.abs(g.min) : 0;
|
|
158
159
|
let P;
|
|
159
|
-
e.autoScaling &&
|
|
160
|
-
const G = g.ticks.map((j,
|
|
161
|
-
y:
|
|
162
|
-
x:
|
|
160
|
+
e.autoScaling && u.value.stacked && i <= 0 ? P = t.value.bottom - C - M : P = t.value.bottom - C - M * (O / (g.max + O));
|
|
161
|
+
const G = g.ticks.map((j, xa) => ({
|
|
162
|
+
y: t.value.bottom - C - M * (xa / (g.ticks.length - 1)),
|
|
163
|
+
x: t.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:
|
|
171
|
-
individualHeight:
|
|
172
|
-
stackIndex:
|
|
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: C,
|
|
172
|
+
individualHeight: M,
|
|
173
|
+
stackIndex: u.value.stacked ? l : null
|
|
173
174
|
});
|
|
174
175
|
return {
|
|
175
176
|
...e,
|
|
@@ -180,40 +181,40 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
180
181
|
localZero: P,
|
|
181
182
|
localMin: O,
|
|
182
183
|
localYLabels: G,
|
|
183
|
-
yOffset:
|
|
184
|
-
individualHeight:
|
|
184
|
+
yOffset: C,
|
|
185
|
+
individualHeight: M
|
|
185
186
|
};
|
|
186
|
-
})),
|
|
187
|
+
})), r = v({
|
|
187
188
|
start: 0,
|
|
188
189
|
end: I.value
|
|
189
190
|
});
|
|
190
191
|
function _e() {
|
|
191
|
-
|
|
192
|
+
r.value = {
|
|
192
193
|
start: 0,
|
|
193
194
|
end: I.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))), k = b(() => h.value.filter((e) => e.type === "bar"));
|
|
198
|
+
function na() {
|
|
199
|
+
if (!z.value)
|
|
199
200
|
return;
|
|
200
|
-
const e = Z.value.offsetWidth,
|
|
201
|
-
|
|
201
|
+
const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
|
|
202
|
+
z.value.width = e * W.value * 2, z.value.height = l * W.value * 2, f.value = e * W.value * 2, R.value = l * 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,
|
|
205
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
206
|
-
for (let
|
|
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, t.value.canvasWidth, t.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 l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
208
|
+
S(
|
|
208
209
|
s.value,
|
|
209
210
|
[
|
|
210
211
|
{
|
|
211
|
-
x:
|
|
212
|
-
y:
|
|
212
|
+
x: t.value.left + t.value.slot * l,
|
|
213
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
213
214
|
},
|
|
214
215
|
{
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
216
|
+
x: t.value.left + t.value.slot * l,
|
|
217
|
+
y: t.value.bottom - e.yOffset
|
|
217
218
|
}
|
|
218
219
|
],
|
|
219
220
|
{
|
|
@@ -221,14 +222,14 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
221
222
|
}
|
|
222
223
|
);
|
|
223
224
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
224
|
-
e.localYLabels.forEach((
|
|
225
|
+
e.localYLabels.forEach((l, o) => {
|
|
225
226
|
o < e.localYLabels.length - 1 && Le(
|
|
226
227
|
s.value,
|
|
227
228
|
[
|
|
228
|
-
{ x:
|
|
229
|
-
{ x:
|
|
230
|
-
{ x:
|
|
231
|
-
{ x:
|
|
229
|
+
{ x: t.value.left, y: l.y },
|
|
230
|
+
{ x: t.value.right, y: l.y },
|
|
231
|
+
{ x: t.value.right, y: e.localYLabels[o + 1].y },
|
|
232
|
+
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
232
233
|
],
|
|
233
234
|
{
|
|
234
235
|
fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
@@ -237,12 +238,12 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
237
238
|
);
|
|
238
239
|
});
|
|
239
240
|
}) : h.value.forEach((e) => {
|
|
240
|
-
e.localYLabels.slice(
|
|
241
|
-
|
|
241
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
242
|
+
S(
|
|
242
243
|
s.value,
|
|
243
244
|
[
|
|
244
|
-
{ x:
|
|
245
|
-
{ x:
|
|
245
|
+
{ x: t.value.left, y: l.y },
|
|
246
|
+
{ x: t.value.right, y: l.y }
|
|
246
247
|
],
|
|
247
248
|
{
|
|
248
249
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -250,11 +251,11 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
250
251
|
);
|
|
251
252
|
});
|
|
252
253
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
253
|
-
|
|
254
|
+
S(
|
|
254
255
|
s.value,
|
|
255
256
|
[
|
|
256
|
-
{ x:
|
|
257
|
-
{ x:
|
|
257
|
+
{ x: t.value.left, y: e.localZero },
|
|
258
|
+
{ x: t.value.right, y: e.localZero }
|
|
258
259
|
],
|
|
259
260
|
{
|
|
260
261
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -262,40 +263,40 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
262
263
|
}
|
|
263
264
|
);
|
|
264
265
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
265
|
-
|
|
266
|
+
S(
|
|
266
267
|
s.value,
|
|
267
268
|
[
|
|
268
|
-
{ x:
|
|
269
|
-
{ x:
|
|
269
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
270
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
270
271
|
],
|
|
271
272
|
{
|
|
272
273
|
color: e.color
|
|
273
274
|
}
|
|
274
|
-
),
|
|
275
|
+
), S(
|
|
275
276
|
s.value,
|
|
276
277
|
[
|
|
277
|
-
{ x:
|
|
278
|
-
{ x:
|
|
278
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
279
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
279
280
|
],
|
|
280
281
|
{
|
|
281
282
|
color: e.color
|
|
282
283
|
}
|
|
283
|
-
), e.localYLabels.forEach((
|
|
284
|
+
), e.localYLabels.forEach((l, o) => {
|
|
284
285
|
E(
|
|
285
286
|
s.value,
|
|
286
287
|
Q(
|
|
287
288
|
a.value.style.chart.dataLabels.formatter,
|
|
288
|
-
|
|
289
|
+
l.value,
|
|
289
290
|
ee({
|
|
290
291
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
291
|
-
v:
|
|
292
|
+
v: l.value,
|
|
292
293
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
293
294
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
294
295
|
}),
|
|
295
|
-
{ datapoint:
|
|
296
|
+
{ datapoint: l, seriesIndex: o }
|
|
296
297
|
),
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
299
|
+
l.y,
|
|
299
300
|
{
|
|
300
301
|
align: "right",
|
|
301
302
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -308,7 +309,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
308
309
|
s.value,
|
|
309
310
|
e.name,
|
|
310
311
|
f.value / 35,
|
|
311
|
-
|
|
312
|
+
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
312
313
|
{
|
|
313
314
|
align: "center",
|
|
314
315
|
rotation: -90,
|
|
@@ -318,74 +319,74 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
318
319
|
);
|
|
319
320
|
});
|
|
320
321
|
else {
|
|
321
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
322
|
-
for (let e = 0; e <
|
|
323
|
-
|
|
322
|
+
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
323
|
+
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
324
|
+
S(
|
|
324
325
|
s.value,
|
|
325
326
|
[
|
|
326
|
-
{ x:
|
|
327
|
-
{ x:
|
|
327
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
328
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
328
329
|
],
|
|
329
330
|
{
|
|
330
331
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
331
332
|
}
|
|
332
333
|
);
|
|
333
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
334
|
-
|
|
334
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
|
|
335
|
+
l < p.value.yLabels.length - 1 && Le(
|
|
335
336
|
s.value,
|
|
336
337
|
[
|
|
337
|
-
{ x:
|
|
338
|
-
{ x:
|
|
339
|
-
{ x:
|
|
340
|
-
{ x:
|
|
338
|
+
{ x: t.value.left, y: e.y },
|
|
339
|
+
{ x: t.value.right, y: e.y },
|
|
340
|
+
{ x: t.value.right, y: p.value.yLabels[l + 1].y },
|
|
341
|
+
{ x: t.value.left, y: p.value.yLabels[l + 1].y }
|
|
341
342
|
],
|
|
342
343
|
{
|
|
343
|
-
fillColor:
|
|
344
|
+
fillColor: l % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
344
345
|
strokeColor: "transparent"
|
|
345
346
|
}
|
|
346
347
|
);
|
|
347
348
|
}) : p.value.yLabels.forEach((e) => {
|
|
348
|
-
|
|
349
|
+
S(
|
|
349
350
|
s.value,
|
|
350
351
|
[
|
|
351
|
-
{ x:
|
|
352
|
-
{ x:
|
|
352
|
+
{ x: t.value.left, y: e.y },
|
|
353
|
+
{ x: t.value.right, y: e.y }
|
|
353
354
|
],
|
|
354
355
|
{
|
|
355
356
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
356
357
|
}
|
|
357
358
|
);
|
|
358
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
359
|
+
})), a.value.style.chart.grid.y.showAxis && S(
|
|
359
360
|
s.value,
|
|
360
361
|
[
|
|
361
|
-
{ x:
|
|
362
|
-
{ x:
|
|
362
|
+
{ x: t.value.left, y: t.value.top },
|
|
363
|
+
{ x: t.value.left, y: t.value.bottom }
|
|
363
364
|
],
|
|
364
365
|
{
|
|
365
366
|
color: a.value.style.chart.grid.y.axisColor,
|
|
366
367
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
367
368
|
}
|
|
368
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
369
|
+
), a.value.style.chart.grid.x.showAxis && S(
|
|
369
370
|
s.value,
|
|
370
371
|
[
|
|
371
|
-
{ x:
|
|
372
|
-
{ x:
|
|
372
|
+
{ x: t.value.left, y: t.value.bottom },
|
|
373
|
+
{ x: t.value.right, y: t.value.bottom }
|
|
373
374
|
],
|
|
374
375
|
{
|
|
375
376
|
color: a.value.style.chart.grid.x.axisColor,
|
|
376
377
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
377
378
|
}
|
|
378
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
379
|
+
), a.value.style.chart.grid.zeroLine.show && S(
|
|
379
380
|
s.value,
|
|
380
381
|
[
|
|
381
|
-
{ x:
|
|
382
|
-
{ x:
|
|
382
|
+
{ x: t.value.left, y: p.value.zero },
|
|
383
|
+
{ x: t.value.right, y: p.value.zero }
|
|
383
384
|
],
|
|
384
385
|
{
|
|
385
386
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
386
387
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
387
388
|
}
|
|
388
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
389
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
|
|
389
390
|
E(
|
|
390
391
|
s.value,
|
|
391
392
|
Q(
|
|
@@ -397,7 +398,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
397
398
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
398
399
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
399
400
|
}),
|
|
400
|
-
{ datapoint: e, seriesIndex:
|
|
401
|
+
{ datapoint: e, seriesIndex: l }
|
|
401
402
|
),
|
|
402
403
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
403
404
|
e.y,
|
|
@@ -413,7 +414,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
413
414
|
s.value,
|
|
414
415
|
a.value.style.chart.grid.y.axisName,
|
|
415
416
|
f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
416
|
-
|
|
417
|
+
t.value.bottom - t.value.height / 2,
|
|
417
418
|
{
|
|
418
419
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
419
420
|
color: a.value.style.chart.color,
|
|
@@ -432,12 +433,12 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
432
433
|
}
|
|
433
434
|
);
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
-
for (let
|
|
437
|
-
const o = (d.value ===
|
|
438
|
-
|
|
436
|
+
function va(e) {
|
|
437
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
438
|
+
const o = (d.value === l ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
439
|
+
Ke(
|
|
439
440
|
s.value,
|
|
440
|
-
{ x: e.coordinatesLine[
|
|
441
|
+
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
441
442
|
o,
|
|
442
443
|
{
|
|
443
444
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -447,23 +448,23 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
447
448
|
);
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
-
for (let
|
|
451
|
+
function ca(e) {
|
|
452
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
452
453
|
E(
|
|
453
454
|
s.value,
|
|
454
455
|
Q(
|
|
455
456
|
a.value.style.chart.dataLabels.formatter,
|
|
456
|
-
e.coordinatesLine[
|
|
457
|
+
e.coordinatesLine[l].value,
|
|
457
458
|
ee({
|
|
458
459
|
p: e.prefix || "",
|
|
459
|
-
v: e.coordinatesLine[
|
|
460
|
+
v: e.coordinatesLine[l].value,
|
|
460
461
|
s: e.suffix || "",
|
|
461
462
|
r: e.rounding || 0
|
|
462
463
|
}),
|
|
463
|
-
{ datapoint: e.coordinatesLine[
|
|
464
|
+
{ datapoint: e.coordinatesLine[l], seriesIndex: l }
|
|
464
465
|
),
|
|
465
|
-
e.coordinatesLine[
|
|
466
|
-
e.coordinatesLine[
|
|
466
|
+
e.coordinatesLine[l].x,
|
|
467
|
+
e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
|
|
467
468
|
{
|
|
468
469
|
align: "center",
|
|
469
470
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -473,27 +474,27 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
473
474
|
}
|
|
474
475
|
);
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
-
for (let e =
|
|
478
|
-
(
|
|
477
|
+
function da() {
|
|
478
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
479
|
+
(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
480
|
s.value,
|
|
480
481
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
481
|
-
|
|
482
|
-
|
|
482
|
+
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
483
|
+
t.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
483
484
|
{
|
|
484
485
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
485
486
|
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 +
|
|
487
|
+
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
487
488
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
488
489
|
}
|
|
489
490
|
);
|
|
490
491
|
}
|
|
491
492
|
function De() {
|
|
492
|
-
|
|
493
|
+
S(
|
|
493
494
|
s.value,
|
|
494
495
|
[
|
|
495
|
-
{ x:
|
|
496
|
-
{ x:
|
|
496
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
|
|
497
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
|
|
497
498
|
],
|
|
498
499
|
{
|
|
499
500
|
color: a.value.style.chart.selector.color,
|
|
@@ -503,26 +504,26 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
503
504
|
}
|
|
504
505
|
);
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
507
|
+
function ha() {
|
|
508
|
+
k.value.forEach((e, l) => {
|
|
508
509
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
509
510
|
Le(
|
|
510
511
|
s.value,
|
|
511
512
|
[
|
|
512
513
|
{
|
|
513
|
-
x:
|
|
514
|
-
y:
|
|
514
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)),
|
|
515
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
515
516
|
},
|
|
516
517
|
{
|
|
517
|
-
x:
|
|
518
|
-
y:
|
|
518
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : k.value.length),
|
|
519
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
519
520
|
},
|
|
520
521
|
{
|
|
521
|
-
x:
|
|
522
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : k.value.length),
|
|
522
523
|
y: e.coordinatesLine[o].y
|
|
523
524
|
},
|
|
524
525
|
{
|
|
525
|
-
x:
|
|
526
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)),
|
|
526
527
|
y: e.coordinatesLine[o].y
|
|
527
528
|
}
|
|
528
529
|
],
|
|
@@ -536,15 +537,15 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
536
537
|
},
|
|
537
538
|
end: {
|
|
538
539
|
x: e.coordinatesLine[o].x,
|
|
539
|
-
y:
|
|
540
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
540
541
|
},
|
|
541
542
|
stops: [
|
|
542
543
|
{ offset: 0, color: e.color },
|
|
543
|
-
{ offset: 1, color:
|
|
544
|
+
{ offset: 1, color: Ha(e.color, 0.5) }
|
|
544
545
|
]
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
|
-
),
|
|
548
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
|
|
548
549
|
s.value,
|
|
549
550
|
Q(
|
|
550
551
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -557,8 +558,8 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
557
558
|
}),
|
|
558
559
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
559
560
|
),
|
|
560
|
-
|
|
561
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
561
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / k.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * k.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : k.value.length),
|
|
562
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
562
563
|
{
|
|
563
564
|
align: "center",
|
|
564
565
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -569,33 +570,33 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
569
570
|
);
|
|
570
571
|
});
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
-
e.useArea ?
|
|
573
|
+
function fa(e) {
|
|
574
|
+
e.useArea ? u.value.stacked ? Qe(
|
|
574
575
|
s.value,
|
|
575
576
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
576
577
|
{
|
|
577
578
|
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
578
579
|
strokeColor: "transparent"
|
|
579
580
|
}
|
|
580
|
-
) :
|
|
581
|
+
) : Qe(
|
|
581
582
|
s.value,
|
|
582
583
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
583
584
|
{
|
|
584
585
|
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
585
586
|
strokeColor: "transparent"
|
|
586
587
|
}
|
|
587
|
-
) :
|
|
588
|
+
) : S(s.value, e.coordinatesLine, {
|
|
588
589
|
color: e.color,
|
|
589
590
|
lineWidth: 3
|
|
590
591
|
});
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
-
h.value.forEach((e,
|
|
594
|
-
|
|
593
|
+
function ya() {
|
|
594
|
+
h.value.forEach((e, l) => {
|
|
595
|
+
S(
|
|
595
596
|
s.value,
|
|
596
597
|
[
|
|
597
|
-
{ x:
|
|
598
|
-
{ x:
|
|
598
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
599
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
599
600
|
],
|
|
600
601
|
{
|
|
601
602
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -605,12 +606,12 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
608
|
function ge() {
|
|
608
|
-
|
|
609
|
-
(e.type === "line" || !e.type) &&
|
|
610
|
-
}), ve.value =
|
|
609
|
+
ia(), N.value ? (T.value && d.value !== null && a.value.style.chart.selector.show && De(), ha(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ya(), sa.value.forEach((e) => {
|
|
610
|
+
(e.type === "line" || !e.type) && fa(e), T.value && (va(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ca(e));
|
|
611
|
+
}), ve.value = Ya(z.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), T.value && d.value !== null && a.value.style.chart.selector.show && De(), T.value && d.value !== null && h.value.forEach((e) => {
|
|
611
612
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
612
613
|
if (!e.coordinatesLine[d.value]) return;
|
|
613
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
614
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ke(
|
|
614
615
|
s.value,
|
|
615
616
|
{
|
|
616
617
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -624,29 +625,29 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
624
625
|
}
|
|
625
626
|
);
|
|
626
627
|
}
|
|
627
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
628
|
+
})), a.value.style.chart.grid.y.timeLabels.show && da(), N.value = !1;
|
|
628
629
|
}
|
|
629
|
-
const oe =
|
|
630
|
-
|
|
631
|
-
}, I.value > 200 ? 10 : 1, !
|
|
632
|
-
function
|
|
633
|
-
const { left:
|
|
634
|
-
if (o * 2 <
|
|
630
|
+
const oe = Wa(() => {
|
|
631
|
+
T.value = !0, na();
|
|
632
|
+
}, I.value > 200 ? 10 : 1, !T.value);
|
|
633
|
+
function ga(e) {
|
|
634
|
+
const { left: l } = z.value.getBoundingClientRect(), o = e.clientX - l;
|
|
635
|
+
if (o * 2 < t.value.left || o * 2 > t.value.right) {
|
|
635
636
|
le.value = !1, d.value = null;
|
|
636
637
|
return;
|
|
637
638
|
}
|
|
638
|
-
const i = o * 2 -
|
|
639
|
-
if (d.value = Math.floor(i /
|
|
639
|
+
const i = o * 2 - t.value.left;
|
|
640
|
+
if (d.value = Math.floor(i / t.value.slot), le.value = !0, !T.value) return;
|
|
640
641
|
let c = "";
|
|
641
642
|
const y = a.value.style.chart.tooltip.customFormat;
|
|
642
|
-
|
|
643
|
+
Je(y) && Aa(() => y({
|
|
643
644
|
seriesIndex: d.value,
|
|
644
645
|
datapoint: h.value.map((n) => ({
|
|
645
646
|
shape: n.shape || null,
|
|
646
647
|
name: n.name,
|
|
647
648
|
color: n.color,
|
|
648
649
|
type: n.type || "line",
|
|
649
|
-
value: n.series.find((g,
|
|
650
|
+
value: n.series.find((g, C) => C === d.value)
|
|
650
651
|
})),
|
|
651
652
|
series: h.value,
|
|
652
653
|
config: a.value
|
|
@@ -657,72 +658,72 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
657
658
|
name: n.name,
|
|
658
659
|
color: n.color,
|
|
659
660
|
type: n.type || "line",
|
|
660
|
-
value: n.series.find((g,
|
|
661
|
+
value: n.series.find((g, C) => C === d.value)
|
|
661
662
|
})),
|
|
662
663
|
series: h.value,
|
|
663
664
|
config: a.value
|
|
664
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
665
|
+
}) : (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), T.value = !1;
|
|
665
666
|
}
|
|
666
667
|
A(() => d.value, (e) => {
|
|
667
668
|
oe();
|
|
668
|
-
}), A(() =>
|
|
669
|
+
}), A(() => r.value, (e) => {
|
|
669
670
|
N.value = !0, ge();
|
|
670
671
|
}, {
|
|
671
672
|
deep: !0
|
|
672
|
-
}), A(() =>
|
|
673
|
+
}), A(() => u.value.showDataLabels, (e) => {
|
|
673
674
|
N.value = !0, ge();
|
|
674
|
-
}), A(() =>
|
|
675
|
-
N.value = !0,
|
|
675
|
+
}), A(() => u.value.stacked, (e) => {
|
|
676
|
+
N.value = !0, T.value = !0, oe();
|
|
676
677
|
});
|
|
677
|
-
function
|
|
678
|
+
function pa() {
|
|
678
679
|
le.value = !1, d.value = null, te.value = "";
|
|
679
680
|
}
|
|
680
|
-
const
|
|
681
|
-
|
|
681
|
+
const re = v(null), ue = v(null);
|
|
682
|
+
La(() => {
|
|
682
683
|
pe();
|
|
683
684
|
});
|
|
684
685
|
function pe() {
|
|
685
|
-
if (
|
|
686
|
+
if (Ea(L.dataset) ? Na({
|
|
686
687
|
componentName: "VueUiXyCanvas",
|
|
687
688
|
type: "dataset"
|
|
688
|
-
}) :
|
|
689
|
-
const e =
|
|
690
|
-
const { width:
|
|
689
|
+
}) : z.value && (s.value = z.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
690
|
+
const e = Ba(() => {
|
|
691
|
+
const { width: l, height: o } = Xa({
|
|
691
692
|
chart: U.value,
|
|
692
693
|
title: a.value.style.chart.title.text ? $e.value : null,
|
|
693
694
|
legend: a.value.style.chart.legend.show ? ze.value : null,
|
|
694
695
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Te.value : null,
|
|
695
696
|
source: Me.value
|
|
696
697
|
});
|
|
697
|
-
Ie.value = `${
|
|
698
|
+
Ie.value = `${l} / ${o}`;
|
|
698
699
|
});
|
|
699
|
-
|
|
700
|
+
re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
|
|
700
701
|
}
|
|
701
|
-
|
|
702
|
-
for (const
|
|
703
|
-
|
|
704
|
-
}),
|
|
702
|
+
ue.value = new ResizeObserver((e) => {
|
|
703
|
+
for (const l of e)
|
|
704
|
+
l.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
705
|
+
}), ue.value.observe(Z.value);
|
|
705
706
|
}
|
|
706
|
-
|
|
707
|
-
|
|
707
|
+
ka(() => {
|
|
708
|
+
ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
|
|
708
709
|
});
|
|
709
710
|
function He(e) {
|
|
710
|
-
|
|
711
|
+
la("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), N.value = !0, oe();
|
|
711
712
|
}
|
|
712
|
-
const We = b(() => Y.value.map((e,
|
|
713
|
+
const We = b(() => Y.value.map((e, l) => ({
|
|
713
714
|
...e,
|
|
714
715
|
name: e.name,
|
|
715
|
-
color:
|
|
716
|
+
color: qe(e.color) || Ne.value[l] || H[l] || H[l % H.length],
|
|
716
717
|
shape: e.shape || "circle",
|
|
717
718
|
prefix: e.prefix || "",
|
|
718
719
|
suffix: e.suffix || "",
|
|
719
720
|
rounding: e.rounding || 0
|
|
720
721
|
})).map((e) => ({
|
|
721
722
|
...e,
|
|
722
|
-
opacity:
|
|
723
|
+
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
723
724
|
segregate: () => He(e.absoluteIndex),
|
|
724
|
-
isSegregated:
|
|
725
|
-
}))),
|
|
725
|
+
isSegregated: $.value.includes(e.absoluteIndex)
|
|
726
|
+
}))), ma = b(() => ({
|
|
726
727
|
cy: "donut-div-legend",
|
|
727
728
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
728
729
|
color: a.value.style.chart.legend.color,
|
|
@@ -731,10 +732,10 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
731
732
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
732
733
|
})), se = b(() => {
|
|
733
734
|
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
|
|
735
|
+
let l = [];
|
|
735
736
|
for (let c = 0; c < I.value; c += 1) {
|
|
736
737
|
const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
737
|
-
|
|
738
|
+
l.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((y ?? 0).toFixed(a.value.table.rounding)));
|
|
738
739
|
}
|
|
739
740
|
const o = {
|
|
740
741
|
th: {
|
|
@@ -749,47 +750,47 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
749
750
|
},
|
|
750
751
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
751
752
|
}, 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
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
753
754
|
}), Ye = b(() => {
|
|
754
755
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
755
756
|
const e = h.value.map((o) => ({
|
|
756
757
|
label: o.name,
|
|
757
758
|
color: o.color,
|
|
758
759
|
type: o.type
|
|
759
|
-
})),
|
|
760
|
-
for (let o =
|
|
760
|
+
})), l = [];
|
|
761
|
+
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
761
762
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
762
763
|
h.value.forEach((c) => {
|
|
763
764
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
764
|
-
}),
|
|
765
|
+
}), l.push(i);
|
|
765
766
|
}
|
|
766
|
-
return { head: e, body:
|
|
767
|
+
return { head: e, body: l };
|
|
767
768
|
});
|
|
768
769
|
function Be() {
|
|
769
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
770
|
-
|
|
770
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...Ye.value.head.map((y) => y.label)], o = Ye.value.body, i = e.concat([l]).concat(o), c = _a(i);
|
|
771
|
+
Da({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
771
772
|
}
|
|
772
|
-
function
|
|
773
|
+
function ba() {
|
|
773
774
|
return h.value;
|
|
774
775
|
}
|
|
775
776
|
function Xe() {
|
|
776
|
-
|
|
777
|
+
u.value.showTable = !u.value.showTable;
|
|
777
778
|
}
|
|
778
779
|
function Ue() {
|
|
779
|
-
|
|
780
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
780
781
|
}
|
|
781
782
|
function Ze() {
|
|
782
|
-
|
|
783
|
+
u.value.stacked = !u.value.stacked;
|
|
783
784
|
}
|
|
784
785
|
function Ge() {
|
|
785
|
-
|
|
786
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
786
787
|
}
|
|
787
788
|
const ne = v(!1);
|
|
788
789
|
function me() {
|
|
789
790
|
ne.value = !ne.value;
|
|
790
791
|
}
|
|
791
|
-
return
|
|
792
|
-
getData:
|
|
792
|
+
return aa({
|
|
793
|
+
getData: ba,
|
|
793
794
|
generateCsv: Be,
|
|
794
795
|
generatePdf: Fe,
|
|
795
796
|
generateImage: Ee,
|
|
@@ -798,20 +799,20 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
798
799
|
toggleStack: Ze,
|
|
799
800
|
toggleTooltip: Ge,
|
|
800
801
|
toggleAnnotator: me
|
|
801
|
-
}), (e,
|
|
802
|
+
}), (e, l) => (w(), q("div", {
|
|
802
803
|
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
803
804
|
ref_key: "xy",
|
|
804
805
|
ref: U,
|
|
805
806
|
id: `xy_canvas_${ie.value}`,
|
|
806
|
-
class:
|
|
807
|
+
class: Ca(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
807
808
|
}, [
|
|
808
|
-
a.value.style.chart.title.text ? (
|
|
809
|
+
a.value.style.chart.title.text ? (w(), q("div", {
|
|
809
810
|
key: 0,
|
|
810
811
|
ref_key: "chartTitle",
|
|
811
812
|
ref: $e,
|
|
812
813
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
813
814
|
}, [
|
|
814
|
-
(
|
|
815
|
+
(w(), F(Ga, {
|
|
815
816
|
key: `title_${de.value}`,
|
|
816
817
|
config: {
|
|
817
818
|
title: {
|
|
@@ -825,7 +826,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
825
826
|
}
|
|
826
827
|
}, null, 8, ["config"]))
|
|
827
828
|
], 4)) : _("", !0),
|
|
828
|
-
a.value.userOptions.show && ye.value ? (
|
|
829
|
+
a.value.userOptions.show && ye.value ? (w(), F(qa, {
|
|
829
830
|
ref: "details",
|
|
830
831
|
key: `user_option_${Se.value}`,
|
|
831
832
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -840,16 +841,16 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
840
841
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
841
842
|
hasStack: ke.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
842
843
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
843
|
-
hasTable:
|
|
844
|
+
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
844
845
|
isFullscreen: ce.value,
|
|
845
|
-
isTooltip:
|
|
846
|
-
isStacked:
|
|
846
|
+
isTooltip: u.value.showTooltip,
|
|
847
|
+
isStacked: u.value.stacked,
|
|
847
848
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
848
849
|
chartElement: U.value,
|
|
849
850
|
position: a.value.userOptions.position,
|
|
850
851
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
851
852
|
isAnnotation: ne.value,
|
|
852
|
-
onToggleFullscreen:
|
|
853
|
+
onToggleFullscreen: oa,
|
|
853
854
|
onGeneratePdf: D(Fe),
|
|
854
855
|
onGenerateCsv: Be,
|
|
855
856
|
onGenerateImage: D(Ee),
|
|
@@ -858,7 +859,7 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
858
859
|
onToggleStack: Ze,
|
|
859
860
|
onToggleTooltip: Ge,
|
|
860
861
|
onToggleAnnotator: me
|
|
861
|
-
},
|
|
862
|
+
}, wa({ _: 2 }, [
|
|
862
863
|
e.$slots.optionTooltip ? {
|
|
863
864
|
name: "optionTooltip",
|
|
864
865
|
fn: m(() => [
|
|
@@ -929,14 +930,14 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
929
930
|
ref_key: "container",
|
|
930
931
|
ref: Z
|
|
931
932
|
}, [
|
|
932
|
-
ye.value ? (
|
|
933
|
+
ye.value ? (w(), q("canvas", {
|
|
933
934
|
key: 0,
|
|
934
935
|
ref_key: "canvas",
|
|
935
|
-
ref:
|
|
936
|
+
ref: z,
|
|
936
937
|
style: { width: "100%", height: "100%" },
|
|
937
|
-
onMousemove:
|
|
938
|
-
onMouseleave:
|
|
939
|
-
}, null, 544)) : (
|
|
938
|
+
onMousemove: l[0] || (l[0] = (o) => ga(o)),
|
|
939
|
+
onMouseleave: pa
|
|
940
|
+
}, null, 544)) : (w(), F(Qa, {
|
|
940
941
|
key: 1,
|
|
941
942
|
config: {
|
|
942
943
|
type: "line",
|
|
@@ -954,8 +955,8 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
954
955
|
}
|
|
955
956
|
}
|
|
956
957
|
}, null, 8, ["config"])),
|
|
957
|
-
|
|
958
|
-
show:
|
|
958
|
+
Sa(Ua, {
|
|
959
|
+
show: u.value.showTooltip && le.value,
|
|
959
960
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
960
961
|
color: a.value.style.chart.tooltip.color,
|
|
961
962
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -964,10 +965,10 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
964
965
|
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
965
966
|
position: a.value.style.chart.tooltip.position,
|
|
966
967
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
967
|
-
parent:
|
|
968
|
+
parent: z.value,
|
|
968
969
|
content: te.value,
|
|
969
970
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
970
|
-
isCustom: D(
|
|
971
|
+
isCustom: D(Je)(a.value.style.chart.tooltip.customFormat)
|
|
971
972
|
}, {
|
|
972
973
|
"tooltip-before": m(() => [
|
|
973
974
|
x(e.$slots, "tooltip-before", B(X({ ...Ce.value })), void 0, !0)
|
|
@@ -984,25 +985,25 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
984
985
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
985
986
|
"data-html2canvas-ignore": ""
|
|
986
987
|
}, [
|
|
987
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (
|
|
988
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (w(), F(Va, {
|
|
988
989
|
key: `slicer_${we.value}`,
|
|
989
990
|
background: a.value.style.chart.zoom.color,
|
|
990
991
|
borderColor: a.value.style.chart.backgroundColor,
|
|
991
992
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
992
993
|
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[
|
|
994
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
|
|
995
|
+
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
996
|
textColor: a.value.style.chart.color,
|
|
996
997
|
inputColor: a.value.style.chart.zoom.color,
|
|
997
998
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
998
999
|
max: I.value,
|
|
999
1000
|
min: 0,
|
|
1000
|
-
valueStart:
|
|
1001
|
-
valueEnd:
|
|
1002
|
-
start:
|
|
1003
|
-
"onUpdate:start":
|
|
1004
|
-
end:
|
|
1005
|
-
"onUpdate:end":
|
|
1001
|
+
valueStart: r.value.start,
|
|
1002
|
+
valueEnd: r.value.end,
|
|
1003
|
+
start: r.value.start,
|
|
1004
|
+
"onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
|
|
1005
|
+
end: r.value.end,
|
|
1006
|
+
"onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
|
|
1006
1007
|
onReset: _e
|
|
1007
1008
|
}, {
|
|
1008
1009
|
"reset-action": m(({ reset: o }) => [
|
|
@@ -1015,17 +1016,17 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1015
1016
|
ref_key: "chartLegend",
|
|
1016
1017
|
ref: ze
|
|
1017
1018
|
}, [
|
|
1018
|
-
a.value.style.chart.legend.show && ye.value ? (
|
|
1019
|
+
a.value.style.chart.legend.show && ye.value ? (w(), F(Za, {
|
|
1019
1020
|
legendSet: We.value,
|
|
1020
|
-
config:
|
|
1021
|
+
config: ma.value,
|
|
1021
1022
|
key: `legend_${fe.value}`,
|
|
1022
|
-
onClickMarker:
|
|
1023
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => He(o))
|
|
1023
1024
|
}, {
|
|
1024
1025
|
item: m(({ legend: o, index: i }) => [
|
|
1025
1026
|
K("div", {
|
|
1026
1027
|
onClick: (c) => o.segregate(),
|
|
1027
|
-
style: J(`opacity:${
|
|
1028
|
-
}, Ve(o.name), 13,
|
|
1028
|
+
style: J(`opacity:${$.value.includes(i) ? 0.5 : 1}`)
|
|
1029
|
+
}, Ve(o.name), 13, tl)
|
|
1029
1030
|
]),
|
|
1030
1031
|
_: 1
|
|
1031
1032
|
}, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
|
|
@@ -1033,10 +1034,10 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1033
1034
|
legend: We.value
|
|
1034
1035
|
}, void 0, !0)
|
|
1035
1036
|
], 512),
|
|
1036
|
-
e.$slots.watermark ? (
|
|
1037
|
+
e.$slots.watermark ? (w(), q("div", ol, [
|
|
1037
1038
|
x(e.$slots, "watermark", B(X({ isPrinting: D(Oe) || D(Pe) })), void 0, !0)
|
|
1038
1039
|
])) : _("", !0),
|
|
1039
|
-
e.$slots.source ? (
|
|
1040
|
+
e.$slots.source ? (w(), q("div", {
|
|
1040
1041
|
key: 3,
|
|
1041
1042
|
ref_key: "source",
|
|
1042
1043
|
ref: Me,
|
|
@@ -1044,11 +1045,11 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1044
1045
|
}, [
|
|
1045
1046
|
x(e.$slots, "source", {}, void 0, !0)
|
|
1046
1047
|
], 512)) : _("", !0),
|
|
1047
|
-
|
|
1048
|
+
r.value.end - r.value.start < 200 ? (w(), F(Ja, {
|
|
1048
1049
|
key: 4,
|
|
1049
1050
|
hideDetails: "",
|
|
1050
1051
|
config: {
|
|
1051
|
-
open:
|
|
1052
|
+
open: u.value.showTable,
|
|
1052
1053
|
maxHeight: 1e4,
|
|
1053
1054
|
body: {
|
|
1054
1055
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1061,27 +1062,27 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1061
1062
|
}
|
|
1062
1063
|
}, {
|
|
1063
1064
|
content: m(() => [
|
|
1064
|
-
(
|
|
1065
|
+
(w(), F(Ka, {
|
|
1065
1066
|
key: `table_${he.value}`,
|
|
1066
1067
|
colNames: se.value.colNames,
|
|
1067
1068
|
head: se.value.head,
|
|
1068
1069
|
body: se.value.body,
|
|
1069
1070
|
config: se.value.config,
|
|
1070
1071
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1071
|
-
onClose:
|
|
1072
|
+
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1072
1073
|
}, {
|
|
1073
1074
|
th: m(({ th: o }) => [
|
|
1074
|
-
K("div", { innerHTML: o }, null, 8,
|
|
1075
|
+
K("div", { innerHTML: o }, null, 8, rl)
|
|
1075
1076
|
]),
|
|
1076
1077
|
td: m(({ td: o }) => [
|
|
1077
|
-
|
|
1078
|
+
$a(Ve(o), 1)
|
|
1078
1079
|
]),
|
|
1079
1080
|
_: 1
|
|
1080
1081
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1081
1082
|
]),
|
|
1082
1083
|
_: 1
|
|
1083
1084
|
}, 8, ["config"])) : _("", !0),
|
|
1084
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (
|
|
1085
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (w(), F(el, {
|
|
1085
1086
|
key: 5,
|
|
1086
1087
|
parent: U.value,
|
|
1087
1088
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1089,9 +1090,9 @@ const al = ["id"], ll = ["onClick"], tl = {
|
|
|
1089
1090
|
active: ne.value,
|
|
1090
1091
|
onClose: me
|
|
1091
1092
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1092
|
-
], 14,
|
|
1093
|
+
], 14, ll));
|
|
1093
1094
|
}
|
|
1094
|
-
},
|
|
1095
|
+
}, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-ebae8991"]]);
|
|
1095
1096
|
export {
|
|
1096
|
-
|
|
1097
|
+
Ll as default
|
|
1097
1098
|
};
|