vue-data-ui 2.13.5-beta.0 → 2.13.5-beta.2
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-nJWOreP4.js → Arrow-jAlo7FL4.js} +1 -1
- package/dist/{BaseDraggableDialog-IYfaPzLA.js → BaseDraggableDialog-cr1Ws9Gz.js} +2 -2
- package/dist/{BaseIcon-lwpKi6Wa.js → BaseIcon-DC9kZidZ.js} +1 -1
- package/dist/{ColorPicker-D8TZj-R5.js → ColorPicker-DGDl_EF0.js} +2 -2
- package/dist/{DataTable-CuFlXUxm.js → DataTable-B9YN_lJK.js} +2 -2
- package/dist/{Legend-DwNuhYnG.js → Legend-CYO46Fgu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D1qSfnYa.js → NonSvgPenAndPaper-BPOHeX6A.js} +3 -3
- package/dist/{PackageVersion-1psmmuzo.js → PackageVersion-CL7-1Vjo.js} +1 -1
- package/dist/{PenAndPaper-DgUkj01g.js → PenAndPaper-DJMdHI8y.js} +3 -3
- package/dist/{Shape-CmlBrd-F.js → Shape-CYJGzNrC.js} +1 -1
- package/dist/{Slicer-B-5jXhhw.js → Slicer--UnnsuCq.js} +2 -2
- package/dist/{SparkTooltip-BGjRXPbu.js → SparkTooltip-BqdbXK3B.js} +1 -1
- package/dist/{Title-BoKeR6i0.js → Title-BZjJJp9L.js} +1 -1
- package/dist/{Tooltip-Df2iF7bv.js → Tooltip-CPzQ_10f.js} +1 -1
- package/dist/{UserOptions-NrArsCuC.js → UserOptions-CmNbuins.js} +2 -2
- package/dist/{dom-to-png-DK9TIQio.js → dom-to-png-CN8ySW2i.js} +1 -1
- package/dist/{img-CqqmkwDl.js → img-BfX4ljIV.js} +1 -1
- package/dist/{index-C137VZkI.js → index-BvUVRVgF.js} +124 -124
- package/dist/{pdf-DTB7aasS.js → pdf-23y_Uq7_.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +10 -10
- package/dist/types/vue-data-ui.d.ts +10 -10
- package/dist/{useNestedProp-ZNu8JrRX.js → useNestedProp-B92QFY2a.js} +1 -1
- package/dist/{usePrinter-B63T3abI.js → usePrinter-BPqJ_36J.js} +2 -2
- package/dist/{vue-data-ui-CBTXw5iV.js → vue-data-ui-Dl8eAyEP.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DKF0Y325.js → vue-ui-3d-bar-rIxGaoDX.js} +5 -5
- package/dist/{vue-ui-accordion-BI2rBS5z.js → vue-ui-accordion-CqMFmeS2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BDulR8Zn.js → vue-ui-age-pyramid-Dc9FDIVM.js} +5 -5
- package/dist/{vue-ui-annotator-BokgyAXW.js → vue-ui-annotator-CK0yeMQs.js} +2 -2
- package/dist/{vue-ui-bullet-D5TWFElT.js → vue-ui-bullet-B-iI40xO.js} +6 -6
- package/dist/{vue-ui-candlestick-DHTA9GKN.js → vue-ui-candlestick-DhkGOKn5.js} +6 -6
- package/dist/{vue-ui-carousel-table-Bw4rC-Mv.js → vue-ui-carousel-table-DbADmG9H.js} +4 -4
- package/dist/{vue-ui-chestnut-DJAW8dTu.js → vue-ui-chestnut-Cdd0lBRg.js} +4 -4
- package/dist/{vue-ui-chord-Drxbeh2P.js → vue-ui-chord-DWHAEEET.js} +7 -7
- package/dist/{vue-ui-circle-pack-ClMdOEtG.js → vue-ui-circle-pack-BbXCM3Ek.js} +5 -5
- package/dist/{vue-ui-cursor-DaT20eFb.js → vue-ui-cursor-B79ObORP.js} +2 -2
- package/dist/{vue-ui-dashboard-z7pGTlMX.js → vue-ui-dashboard-wGDt8Yrc.js} +62 -62
- package/dist/{vue-ui-digits-D6kq38s9.js → vue-ui-digits-D5p6d7y1.js} +2 -2
- package/dist/{vue-ui-donut-_kVdFrZR.js → vue-ui-donut-BW7tBRdV.js} +7 -7
- package/dist/{vue-ui-donut-evolution-D5P6GSM6.js → vue-ui-donut-evolution-O6CngY3o.js} +9 -9
- package/dist/{vue-ui-dumbbell-DfZNlCK5.js → vue-ui-dumbbell-BqsKhZaB.js} +6 -6
- package/dist/{vue-ui-flow-DTx267Ka.js → vue-ui-flow-rs5pUsRE.js} +6 -6
- package/dist/{vue-ui-funnel-B_J0AaMa.js → vue-ui-funnel-C9s34kJW.js} +5 -5
- package/dist/{vue-ui-galaxy-DtE48yJw.js → vue-ui-galaxy-CnN886cx.js} +4 -4
- package/dist/{vue-ui-gauge-CAKj45DE.js → vue-ui-gauge-BWQkGkHK.js} +5 -5
- package/dist/{vue-ui-gizmo-B-7-Lfai.js → vue-ui-gizmo-P8l-Oda8.js} +3 -3
- package/dist/{vue-ui-heatmap-3anHqH8-.js → vue-ui-heatmap-B7rocJ3z.js} +6 -6
- package/dist/{vue-ui-history-plot-DfduurUS.js → vue-ui-history-plot-BtQ6dwBk.js} +6 -6
- package/dist/{vue-ui-kpi-C_wEVoh0.js → vue-ui-kpi-A3u_dMdq.js} +3 -3
- package/dist/{vue-ui-mini-loader-lGMkM8Kw.js → vue-ui-mini-loader-GHC-r9i2.js} +2 -2
- package/dist/{vue-ui-molecule-fXW4ejgw.js → vue-ui-molecule-DL8nNYbm.js} +4 -4
- package/dist/{vue-ui-mood-radar-TuyuMkzg.js → vue-ui-mood-radar-Dw0W7_QJ.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CtbOVaRR.js → vue-ui-nested-donuts-Dymxu3lt.js} +6 -6
- package/dist/{vue-ui-onion-BV3A2JCN.js → vue-ui-onion-BTsYCMqV.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DJbeP86h.js → vue-ui-parallel-coordinate-plot-CGvTvhgA.js} +7 -7
- package/dist/{vue-ui-quadrant-xaXINXWX.js → vue-ui-quadrant-CE60QzYW.js} +7 -7
- package/dist/{vue-ui-quick-chart-Dr1HyP8V.js → vue-ui-quick-chart-BEJ2e9rZ.js} +7 -7
- package/dist/{vue-ui-radar-Cbqe4LM_.js → vue-ui-radar-DmeGPOcv.js} +6 -6
- package/dist/{vue-ui-rating-FuSmmUE8.js → vue-ui-rating-BBJqZ2dV.js} +2 -2
- package/dist/{vue-ui-relation-circle-kDNSenDo.js → vue-ui-relation-circle-ClTaQHD4.js} +5 -5
- package/dist/{vue-ui-ridgeline-DxtgFsg_.js → vue-ui-ridgeline-CaE2_SY3.js} +25 -25
- package/dist/{vue-ui-rings-DMx8sMKa.js → vue-ui-rings-DhXxW3eZ.js} +7 -7
- package/dist/{vue-ui-scatter-DX42tHz8.js → vue-ui-scatter-Bm1e4Wvt.js} +7 -7
- package/dist/{vue-ui-skeleton-CO_Hk6A_.js → vue-ui-skeleton-CgwXMwMI.js} +3 -3
- package/dist/{vue-ui-smiley-4lhGcbc2.js → vue-ui-smiley-BaGHUUo-.js} +2 -2
- package/dist/{vue-ui-spark-trend-hGZ_JmgH.js → vue-ui-spark-trend-mNfD0Ugd.js} +3 -3
- package/dist/{vue-ui-sparkbar-BTf3c9Qn.js → vue-ui-sparkbar-DCoqWOVz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-oMfHC1dA.js → vue-ui-sparkgauge-BSSpW7iW.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DvVbSLEj.js → vue-ui-sparkhistogram-MBKTS0j5.js} +4 -4
- package/dist/{vue-ui-sparkline-BbmMxjnF.js → vue-ui-sparkline-DpikqyAA.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ChREWvRl.js → vue-ui-sparkstackbar-CbVg5NZ4.js} +3 -3
- package/dist/{vue-ui-stackbar-BNPLRyEN.js → vue-ui-stackbar-WzsiXeID.js} +10 -10
- package/dist/{vue-ui-strip-plot-Ca1C6bZ_.js → vue-ui-strip-plot-DPfvroJc.js} +6 -6
- package/dist/{vue-ui-table-Cfb6eIU4.js → vue-ui-table-fKovKyqI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BnjgK_PF.js → vue-ui-table-heatmap-hjSlzWFJ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-MJ8lvKbd.js → vue-ui-table-sparkline-BuuSOpSN.js} +4 -4
- package/dist/{vue-ui-thermometer-C2qisXo8.js → vue-ui-thermometer-B6uQ_m7K.js} +5 -5
- package/dist/{vue-ui-timer-By6_kV9k.js → vue-ui-timer-C10w2fga.js} +5 -5
- package/dist/{vue-ui-tiremarks-BU6rsols.js → vue-ui-tiremarks-D5UVJ_40.js} +5 -5
- package/dist/{vue-ui-treemap-DivJblJW.js → vue-ui-treemap-21qSTOPH.js} +7 -7
- package/dist/{vue-ui-vertical-bar-Dyt4yezz.js → vue-ui-vertical-bar-2LftvPXy.js} +8 -8
- package/dist/{vue-ui-waffle-DSzMjANd.js → vue-ui-waffle-CvsJPDsy.js} +7 -7
- package/dist/{vue-ui-wheel-DFCGjYBy.js → vue-ui-wheel-D-w5g_jg.js} +5 -5
- package/dist/{vue-ui-word-cloud-BiG5zI03.js → vue-ui-word-cloud-B0FZpJaV.js} +5 -5
- package/dist/{vue-ui-world-BhGGmeGq.js → vue-ui-world-BH6wuEgy.js} +5 -5
- package/dist/{vue-ui-xy-CZpcKEkV.js → vue-ui-xy-Cp5M0GHR.js} +18 -18
- package/dist/{vue-ui-xy-canvas-B7fE9npn.js → vue-ui-xy-canvas-8PFKPb7M.js} +24 -24
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as J, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as ze, G as Me, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-
|
|
1
|
+
import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as J, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as ze, G as Me, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BvUVRVgF.js";
|
|
2
2
|
import { u as We } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as K } from "./useNestedProp-
|
|
3
|
+
import { u as K } from "./useNestedProp-B92QFY2a.js";
|
|
4
4
|
import { u as Be } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
5
|
import { defineAsyncComponent as B, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as y, normalizeClass as E, createBlock as W, createCommentVNode as h, createVNode as U, createSlots as Ee, withCtx as V, renderSlot as p, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as d, renderList as I, toDisplayString as T, mergeProps as Q, withDirectives as Ye, vModelCheckbox as qe, createTextVNode as Xe } from "vue";
|
|
6
|
-
import { S as Ue } from "./Slicer
|
|
7
|
-
import Ze from "./Title-
|
|
8
|
-
import { _ as Ke } from "./Shape-
|
|
6
|
+
import { S as Ue } from "./Slicer--UnnsuCq.js";
|
|
7
|
+
import Ze from "./Title-BZjJJp9L.js";
|
|
8
|
+
import { _ as Ke } from "./Shape-CYJGzNrC.js";
|
|
9
9
|
import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Je = J(), je = {
|
|
11
11
|
name: "vue-ui-xy",
|
|
@@ -29,15 +29,15 @@ const Je = J(), je = {
|
|
|
29
29
|
Title: Ze,
|
|
30
30
|
// Must be ready in responsive mode
|
|
31
31
|
Shape: Ke,
|
|
32
|
-
DataTable: B(() => import("./DataTable-
|
|
33
|
-
Tooltip: B(() => import("./Tooltip-
|
|
34
|
-
UserOptions: B(() => import("./UserOptions-
|
|
35
|
-
BaseIcon: B(() => import("./BaseIcon-
|
|
36
|
-
TableSparkline: B(() => import("./vue-ui-table-sparkline-
|
|
37
|
-
Skeleton: B(() => import("./vue-ui-skeleton-
|
|
38
|
-
Accordion: B(() => import("./vue-ui-accordion-
|
|
39
|
-
PackageVersion: B(() => import("./PackageVersion-
|
|
40
|
-
PenAndPaper: B(() => import("./PenAndPaper-
|
|
32
|
+
DataTable: B(() => import("./DataTable-B9YN_lJK.js")),
|
|
33
|
+
Tooltip: B(() => import("./Tooltip-CPzQ_10f.js")),
|
|
34
|
+
UserOptions: B(() => import("./UserOptions-CmNbuins.js")),
|
|
35
|
+
BaseIcon: B(() => import("./BaseIcon-DC9kZidZ.js")),
|
|
36
|
+
TableSparkline: B(() => import("./vue-ui-table-sparkline-BuuSOpSN.js")),
|
|
37
|
+
Skeleton: B(() => import("./vue-ui-skeleton-CgwXMwMI.js")),
|
|
38
|
+
Accordion: B(() => import("./vue-ui-accordion-CqMFmeS2.js")),
|
|
39
|
+
PackageVersion: B(() => import("./PackageVersion-CL7-1Vjo.js")),
|
|
40
|
+
PenAndPaper: B(() => import("./PenAndPaper-DJMdHI8y.js"))
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
this.dataset.forEach((g, r) => {
|
|
@@ -607,7 +607,7 @@ const Je = J(), je = {
|
|
|
607
607
|
return Be({
|
|
608
608
|
values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
|
|
609
609
|
maxDatapoints: t,
|
|
610
|
-
formatter: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.
|
|
610
|
+
formatter: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
611
611
|
start: this.slicer.start,
|
|
612
612
|
end: this.slicer.end
|
|
613
613
|
});
|
|
@@ -1182,7 +1182,7 @@ const Je = J(), je = {
|
|
|
1182
1182
|
async generatePdf() {
|
|
1183
1183
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1184
1184
|
try {
|
|
1185
|
-
const { default: t } = await import("./pdf-
|
|
1185
|
+
const { default: t } = await import("./pdf-23y_Uq7_.js");
|
|
1186
1186
|
await t({
|
|
1187
1187
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1188
1188
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1205,7 +1205,7 @@ const Je = J(), je = {
|
|
|
1205
1205
|
async generateImage() {
|
|
1206
1206
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1207
1207
|
try {
|
|
1208
|
-
const { default: t } = await import("./img-
|
|
1208
|
+
const { default: t } = await import("./img-BfX4ljIV.js");
|
|
1209
1209
|
await t({
|
|
1210
1210
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1211
1211
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -3048,7 +3048,7 @@ function Mr(t, c, u, g, r, e) {
|
|
|
3048
3048
|
}, 8, ["config"])) : h("", !0)
|
|
3049
3049
|
], 46, $e);
|
|
3050
3050
|
}
|
|
3051
|
-
const Yr = /* @__PURE__ */ Qe(je, [["render", Mr], ["__scopeId", "data-v-
|
|
3051
|
+
const Yr = /* @__PURE__ */ Qe(je, [["render", Mr], ["__scopeId", "data-v-893845d0"]]);
|
|
3052
3052
|
export {
|
|
3053
3053
|
Yr as default
|
|
3054
3054
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Ga, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
|
|
2
|
-
import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a1 as ll, H as tl, ai as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-
|
|
2
|
+
import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a1 as ll, H as tl, ai as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-BvUVRVgF.js";
|
|
3
3
|
import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as da } from "./useNestedProp-
|
|
5
|
-
import { u as fl } from "./usePrinter-
|
|
4
|
+
import { u as da } from "./useNestedProp-B92QFY2a.js";
|
|
5
|
+
import { u as fl } from "./usePrinter-BPqJ_36J.js";
|
|
6
6
|
import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ml from "./Legend-
|
|
9
|
-
import bl from "./Title-
|
|
10
|
-
import { S as xl } from "./Slicer
|
|
8
|
+
import ml from "./Legend-CYO46Fgu.js";
|
|
9
|
+
import bl from "./Title-BZjJJp9L.js";
|
|
10
|
+
import { S as xl } from "./Slicer--UnnsuCq.js";
|
|
11
11
|
import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
12
|
import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Cl = ["id"], wl = ["onClick"], zl = {
|
|
@@ -31,7 +31,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
33
|
setup(Oe, { expose: ha, emit: ya }) {
|
|
34
|
-
const fa = K(() => import("./vue-ui-accordion-
|
|
34
|
+
const fa = K(() => import("./vue-ui-accordion-CqMFmeS2.js")), ga = K(() => import("./DataTable-B9YN_lJK.js")), pa = K(() => import("./NonSvgPenAndPaper-BPOHeX6A.js")), ma = K(() => import("./vue-ui-skeleton-CgwXMwMI.js")), ba = K(() => import("./Tooltip-CPzQ_10f.js")), xa = K(() => import("./UserOptions-CmNbuins.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Fe = d(0), he = d(!1), Ee = d(null), Ae = d(null), De = d(null), He = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
|
|
35
35
|
ra(() => {
|
|
36
36
|
Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
37
37
|
});
|
|
@@ -69,7 +69,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
69
69
|
showTooltip: a.value.style.chart.tooltip.show
|
|
70
70
|
});
|
|
71
71
|
function wa(e) {
|
|
72
|
-
he.value = e,
|
|
72
|
+
he.value = e, Fe.value += 1;
|
|
73
73
|
}
|
|
74
74
|
const Ze = x(() => al(a.value.customPalette)), I = x(() => G.value ? Math.max(...G.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
|
|
75
75
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
@@ -90,7 +90,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
90
90
|
}
|
|
91
91
|
function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
|
|
92
92
|
return t.map((Y, S) => {
|
|
93
|
-
const
|
|
93
|
+
const E = v.min < 0 ? Math.abs(v.min) : 0, U = Ge(Y + E, E + v.max);
|
|
94
94
|
let re, se;
|
|
95
95
|
e && (re = v.min, se = Ge(Y - re, v.max - re));
|
|
96
96
|
let O = 0;
|
|
@@ -157,9 +157,9 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
157
157
|
}, C = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
158
158
|
let i;
|
|
159
159
|
e.autoScaling ? i = Me(v.valueMin, v.valueMax, C) : i = Me(v.valueMin < 0 ? v.valueMin : 0, v.valueMax <= 0 ? 0 : v.valueMax, C);
|
|
160
|
-
const f = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Y = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = r.value.stacked ? l.value.height * e.stackRatio - Y : l.value.height,
|
|
160
|
+
const f = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Y = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = r.value.stacked ? l.value.height * e.stackRatio - Y : l.value.height, E = i.min < 0 ? Math.abs(i.min) : 0;
|
|
161
161
|
let U;
|
|
162
|
-
e.autoScaling && r.value.stacked && n <= 0 ? U = l.value.bottom - f - S : U = l.value.bottom - f - S * (
|
|
162
|
+
e.autoScaling && r.value.stacked && n <= 0 ? U = l.value.bottom - f - S : U = l.value.bottom - f - S * (E / (i.max + E));
|
|
163
163
|
const re = i.ticks.map((O, _a) => ({
|
|
164
164
|
y: l.value.bottom - f - S * (_a / (i.ticks.length - 1)),
|
|
165
165
|
x: l.value.left - 8,
|
|
@@ -181,7 +181,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
181
181
|
max: n,
|
|
182
182
|
localScale: i,
|
|
183
183
|
localZero: U,
|
|
184
|
-
localMin:
|
|
184
|
+
localMin: E,
|
|
185
185
|
localYLabels: re,
|
|
186
186
|
yOffset: f,
|
|
187
187
|
individualHeight: S
|
|
@@ -519,7 +519,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
519
519
|
);
|
|
520
520
|
}));
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Fa(e) {
|
|
523
523
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
524
524
|
R(
|
|
525
525
|
s.value,
|
|
@@ -546,11 +546,11 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
546
546
|
const N = x(() => Ll({
|
|
547
547
|
values: a.value.style.chart.grid.y.timeLabels.values,
|
|
548
548
|
maxDatapoints: I.value,
|
|
549
|
-
formatter: a.value.style.chart.grid.y.timeLabels.
|
|
549
|
+
formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
|
|
550
550
|
start: 0,
|
|
551
551
|
end: a.value.style.chart.grid.y.timeLabels.values.length
|
|
552
552
|
}));
|
|
553
|
-
function
|
|
553
|
+
function Ea() {
|
|
554
554
|
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
555
555
|
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
|
|
556
556
|
s.value,
|
|
@@ -696,7 +696,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
696
696
|
}
|
|
697
697
|
function oe() {
|
|
698
698
|
Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Na(), Ia.value.forEach((e) => {
|
|
699
|
-
(e.type === "line" || !e.type) && Ha(e), Z.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
699
|
+
(e.type === "line" || !e.type) && Ha(e), Z.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
|
|
700
700
|
}), xe.value = yl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
|
|
701
701
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
702
702
|
if (!e.coordinatesLine[c.value]) return;
|
|
@@ -713,7 +713,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
713
713
|
}
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
716
|
+
})), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
|
|
717
717
|
}
|
|
718
718
|
const ye = cl(() => {
|
|
719
719
|
Z.value = !0, Ma();
|
|
@@ -773,7 +773,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
773
773
|
function Ua() {
|
|
774
774
|
ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
|
|
775
775
|
}
|
|
776
|
-
const
|
|
776
|
+
const F = Ie(null), q = Ie(null), J = Ie(null);
|
|
777
777
|
ra(() => {
|
|
778
778
|
Se();
|
|
779
779
|
});
|
|
@@ -785,7 +785,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
785
785
|
const e = dl(() => {
|
|
786
786
|
const { width: t, height: o } = hl({
|
|
787
787
|
chart: le.value,
|
|
788
|
-
title: a.value.style.chart.title.text ?
|
|
788
|
+
title: a.value.style.chart.title.text ? Ee.value : null,
|
|
789
789
|
legend: a.value.style.chart.legend.show ? Ae.value : null,
|
|
790
790
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
|
|
791
791
|
source: He.value
|
|
@@ -794,7 +794,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
794
794
|
We.value = `${t} / ${o}`;
|
|
795
795
|
});
|
|
796
796
|
});
|
|
797
|
-
|
|
797
|
+
F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect()), F.value = new ResizeObserver(e), q.value = le.value.parentNode, F.value.observe(q.value);
|
|
798
798
|
}
|
|
799
799
|
J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
|
|
800
800
|
for (const t of e)
|
|
@@ -802,7 +802,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
802
802
|
}), J.value.observe(te.value), qe();
|
|
803
803
|
}
|
|
804
804
|
Va(() => {
|
|
805
|
-
J.value && J.value.disconnect(),
|
|
805
|
+
J.value && J.value.disconnect(), F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect());
|
|
806
806
|
});
|
|
807
807
|
function Ke(e) {
|
|
808
808
|
ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), H.value = !0, ye();
|
|
@@ -908,7 +908,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
908
908
|
a.value.style.chart.title.text ? (z(), ne("div", {
|
|
909
909
|
key: 0,
|
|
910
910
|
ref_key: "chartTitle",
|
|
911
|
-
ref:
|
|
911
|
+
ref: Ee,
|
|
912
912
|
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
913
913
|
}, [
|
|
914
914
|
(z(), D(bl, {
|
|
@@ -927,7 +927,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
927
927
|
], 4)) : W("", !0),
|
|
928
928
|
a.value.userOptions.show && we.value && (p(Ye) || p(ze)) ? (z(), D(p(xa), {
|
|
929
929
|
ref: "details",
|
|
930
|
-
key: `user_option_${
|
|
930
|
+
key: `user_option_${Fe.value}`,
|
|
931
931
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
932
932
|
color: a.value.style.chart.color,
|
|
933
933
|
isPrinting: p(Xe),
|
|
@@ -1209,7 +1209,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
1209
1209
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
|
|
1210
1210
|
], 46, Cl));
|
|
1211
1211
|
}
|
|
1212
|
-
}, Yl = /* @__PURE__ */ kl($l, [["__scopeId", "data-v-
|
|
1212
|
+
}, Yl = /* @__PURE__ */ kl($l, [["__scopeId", "data-v-2541a32d"]]);
|
|
1213
1213
|
export {
|
|
1214
1214
|
Yl as default
|
|
1215
1215
|
};
|
package/package.json
CHANGED