vue-data-ui 3.1.17 → 3.1.19-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DFX_NfRh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-DRpg18lg.js} +3 -3
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D5bgIg6W.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/universal.d.ts +1 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/vue-data-ui-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-BZDLbeym.js} +103 -102
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-C1NMeWTB.js} +28 -27
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack-5L50If0h.js} +75 -74
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-2FyL5ac1.js} +68 -68
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-MM8rPNWR.js} +149 -148
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-BCfEt867.js} +105 -104
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-V6jytnl0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-BmmwGJaI.js} +90 -89
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-FtA6-6zz.js} +5 -5
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/vue-ui-spark-trend-qt8UvEPc.js +337 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-DgHvA8ra.js} +86 -85
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-BSGiRpQ9.js} +105 -104
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-DKHtmqLd.js} +9 -8
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-BjzutuG2.js} +496 -505
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -11
- package/dist/index-Lg17rmB1.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DpwLJMsW.js +0 -13
- package/dist/vue-data-ui-lki09wwK.js +0 -325
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { useCssVars as Yo, computed as x, ref as y,
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
1
|
+
import { useCssVars as Yo, computed as x, ref as y, watch as ht, onMounted as Zl, onBeforeUnmount as Ll, onUpdated as ho, nextTick as Ml, createElementBlock as u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as C, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as L, normalizeProps as Yt, mergeProps as Gt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as re, defineAsyncComponent as Wt, useSlots as Go, getCurrentInstance as qo, toRefs as Uo, watchEffect as go, createBlock as ct, createSlots as xo, withCtx as we, guardReactiveProps as dl, Teleport as Zo, resolveDynamicComponent as Ko, vModelCheckbox as Jo, createTextVNode as bo } from "vue";
|
|
2
|
+
import { c as ga, z as xa, X as Qo, G as dt, ae as ya, W as pa, af as ka, V as wa, ag as yo, f as Na, t as jo, e as en, E as Ul, aa as hl, h as po, p as ko, ap as ha, a6 as j, a0 as Pa, a8 as tn, q as U, ac as ln, aq as wo, ar as So, a as Ae, as as an, A as on, j as $o, k as wt, d as lt, i as fl, s as vt, a4 as ie, Q as nn, ak as fa, N as un, at as Xt, D as Ue, b as sn, o as _o, x as rn, y as cn, F as _l } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as ba, d as vn, u as dn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as hn, a as Fa } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as fn } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as mn, B as gn } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Mo, a as xn, l as bn } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as yn } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import pn from "./img-CH7J0fYg.js";
|
|
10
|
+
import kn from "./Title-pI68ZJsq.js";
|
|
11
|
+
import { t as wn } from "./themes-D3cUNuKw.js";
|
|
12
|
+
import { _ as ma } from "./Shape-BDy56-wS.js";
|
|
13
|
+
import Sn from "./BaseIcon-D2f9w5Z5.js";
|
|
13
14
|
import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
import $n from "./vue-ui-accordion-
|
|
15
|
+
import $n from "./vue-ui-accordion-D-L73-T2.js";
|
|
15
16
|
const _n = {
|
|
16
17
|
class: "vue-data-ui-slicer-labels",
|
|
17
18
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -22,7 +23,7 @@ const _n = {
|
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "minimap",
|
|
24
25
|
style: { width: "100%" }
|
|
25
|
-
}, Cn = ["xmlns", "viewBox"], An = ["id"],
|
|
26
|
+
}, Cn = ["xmlns", "viewBox"], An = ["id"], Tn = ["stop-color"], zn = ["width", "height", "stroke"], In = ["d", "stroke"], Nn = ["d", "fill"], Pn = ["x", "y", "width", "height", "fill"], Fn = ["d", "stroke"], Rn = ["cx", "cy", "fill", "stroke"], On = ["x", "width", "height", "fill", "rx"], Vn = ["x", "width", "height", "rx", "fill"], Bn = ["x", "width", "height", "fill", "rx"], En = ["x2", "y1", "y2", "stroke"], Hn = { key: "merged-tree" }, Dn = ["d", "fill"], Wn = ["d", "stroke"], Xn = ["cx", "cy", "stroke", "fill"], Yn = ["cx", "cy", "stroke", "fill"], Gn = { key: "split-tree" }, qn = ["x", "y", "width", "height", "fill"], Un = ["d", "stroke"], Zn = ["x", "height", "fill", "stroke"], Kn = ["x", "height", "fill", "stroke"], Jn = { key: "merged-tree" }, Qn = ["cx", "cy", "stroke", "fill"], jn = ["cx", "cy", "fill"], eu = ["cx", "cy", "stroke", "fill"], tu = ["cx", "cy", "fill"], lu = { key: 11 }, au = ["d", "stroke"], ou = ["cx", "cy", "fill", "stroke"], nu = ["cx", "cy", "stroke", "fill"], uu = ["cx", "cy", "fill"], iu = ["cx", "cy", "stroke", "fill"], su = ["cx", "cy", "fill"], ru = ["x", "height", "width", "onMouseenter"], cu = ["min", "max"], vu = ["min", "max"], Ra = 48, du = {
|
|
26
27
|
__name: "SlicerPreview",
|
|
27
28
|
props: {
|
|
28
29
|
immediate: {
|
|
@@ -190,40 +191,30 @@ const _n = {
|
|
|
190
191
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
191
192
|
setup($, { expose: Sa, emit: $a }) {
|
|
192
193
|
Yo((v) => ({
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
"64664f38": Tl.value,
|
|
195
|
+
"074850a8": ne.value,
|
|
196
|
+
"0460f41d": mt.value,
|
|
197
|
+
"46ddce48": $.selectColor,
|
|
198
|
+
fcd4952c: zl.value
|
|
198
199
|
}));
|
|
199
|
-
const d = $,
|
|
200
|
+
const d = $, Ne = y(null), ce = y(d.min), fe = y(d.max), me = x(() => !!d.minimap.length), Cl = y(ga()), St = y(!1), Nt = x(() => me.value && d.minimapCompact), Kl = y(0), qt = ba((v) => Le("futureStart", v), 0), gl = ba((v) => Le("futureEnd", v), 0), Ut = x({
|
|
200
201
|
get: () => ce.value,
|
|
201
202
|
set(v) {
|
|
202
203
|
const m = Math.min(v, fe.value - 1);
|
|
203
|
-
m !== ce.value && (ce.value = m, Mt.value && (Mt.value.value = String(m)), d.immediate ?
|
|
204
|
+
m !== ce.value && (ce.value = m, Mt.value && (Mt.value.value = String(m)), d.immediate ? Le("update:start", Number(m)) : St.value && qt(m));
|
|
204
205
|
}
|
|
205
206
|
}), $t = x({
|
|
206
207
|
get: () => fe.value,
|
|
207
208
|
set(v) {
|
|
208
209
|
const m = Math.max(v, ce.value + 1);
|
|
209
|
-
m !== fe.value && (fe.value = m, t.value && (t.value.value = String(m)), d.immediate ?
|
|
210
|
+
m !== fe.value && (fe.value = m, t.value && (t.value.value = String(m)), d.immediate ? Le("update:end", Number(m)) : St.value && gl(m));
|
|
210
211
|
}
|
|
211
212
|
});
|
|
212
|
-
Ll(() => {
|
|
213
|
-
const v = () => {
|
|
214
|
-
Le.value && (zl.value = Le.value.getBoundingClientRect().width);
|
|
215
|
-
};
|
|
216
|
-
v();
|
|
217
|
-
const m = Jl(v, 50);
|
|
218
|
-
window.addEventListener("resize", m), gl(() => {
|
|
219
|
-
window.removeEventListener("resize", m);
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
213
|
let Be = null;
|
|
223
214
|
function Te() {
|
|
224
|
-
clearTimeout(Be), d.immediate || (
|
|
215
|
+
clearTimeout(Be), d.immediate || (Le("update:start", Number(ce.value)), Le("update:end", Number(fe.value))), St.value = !1;
|
|
225
216
|
}
|
|
226
|
-
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint),
|
|
217
|
+
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Le = $a, ft = x(() => {
|
|
227
218
|
if (Nt.value) {
|
|
228
219
|
const m = Math.max(1, at.value - 1);
|
|
229
220
|
return Pt.value / m * 100;
|
|
@@ -237,34 +228,34 @@ const _n = {
|
|
|
237
228
|
}
|
|
238
229
|
const v = Math.max(1, d.max - d.min);
|
|
239
230
|
return (fe.value - d.min) / v * 100;
|
|
240
|
-
}),
|
|
241
|
-
if (!
|
|
231
|
+
}), Al = x(() => (ft.value + _t.value) / 2), Zt = x(() => {
|
|
232
|
+
if (!Ne.value) return !1;
|
|
242
233
|
const v = Math.max(1, d.max - d.min);
|
|
243
|
-
return
|
|
234
|
+
return Ne.value.getBoundingClientRect().width * ((ce.value - d.min) / v) - yl.value / 2 < 0;
|
|
244
235
|
}), Kt = x(() => {
|
|
245
|
-
if (!
|
|
246
|
-
const v = Math.max(1, d.max - d.min), m =
|
|
236
|
+
if (!Ne.value) return !1;
|
|
237
|
+
const v = Math.max(1, d.max - d.min), m = Ne.value.getBoundingClientRect().width;
|
|
247
238
|
return m * ((fe.value - d.min) / v) + c.value / 2 > m;
|
|
248
239
|
}), Se = x(() => {
|
|
249
|
-
const v = Kt.value ? `calc(${
|
|
240
|
+
const v = Kt.value ? `calc(${Al.value}% - ${Bt.value.width}px - 2px)` : Zt.value ? `calc(${Al.value}% - 8px)` : `calc(${Al.value}% - ${Bt.value.width / 2}px - 4px)`;
|
|
250
241
|
return {
|
|
251
242
|
left: `${ft.value}%`,
|
|
252
243
|
width: `${Math.max(0, _t.value - ft.value)}%`,
|
|
253
244
|
background: d.selectColor,
|
|
254
|
-
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 :
|
|
245
|
+
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 : yl.value / 2 + 3.5}px)`,
|
|
255
246
|
tooltipRight: `calc(${_t.value}% - ${Kt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
|
|
256
247
|
tooltipCenter: v,
|
|
257
248
|
arrowLeft: !Zt.value,
|
|
258
249
|
arrowRight: !Kt.value
|
|
259
250
|
};
|
|
260
|
-
}),
|
|
251
|
+
}), Tl = x(() => d.inputColor), zl = x(() => d.background), mt = x(() => `${d.selectColor}33`), ne = x(() => d.borderColor), Jl = x(() => {
|
|
261
252
|
let v = [];
|
|
262
253
|
for (let m = 0; m < d.max; m += 1)
|
|
263
254
|
v.push(m);
|
|
264
255
|
return v;
|
|
265
256
|
});
|
|
266
257
|
function E() {
|
|
267
|
-
|
|
258
|
+
Le("reset");
|
|
268
259
|
}
|
|
269
260
|
ht(
|
|
270
261
|
() => d.min,
|
|
@@ -281,20 +272,20 @@ const _n = {
|
|
|
281
272
|
width: 1,
|
|
282
273
|
height: 1
|
|
283
274
|
}), le = y(null);
|
|
284
|
-
|
|
275
|
+
Zl(() => {
|
|
285
276
|
if (me.value) {
|
|
286
|
-
const v =
|
|
277
|
+
const v = ba(() => {
|
|
287
278
|
if (!Jt.value) return;
|
|
288
|
-
const { width: m, height: f } =
|
|
289
|
-
(_ !== W.value.width ||
|
|
290
|
-
},
|
|
279
|
+
const { width: m, height: f } = dn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)), T = Math.max(0, Math.round(f - 47));
|
|
280
|
+
(_ !== W.value.width || T !== W.value.height) && (W.value.width = _, W.value.height = T);
|
|
281
|
+
}, 0);
|
|
291
282
|
le.value = new ResizeObserver(v), le.value.observe(Jt.value);
|
|
292
283
|
}
|
|
293
|
-
}),
|
|
284
|
+
}), Ll(() => {
|
|
294
285
|
le.value && le.value.disconnect();
|
|
295
286
|
});
|
|
296
287
|
const at = x(() => Math.max(1, d.max - d.min));
|
|
297
|
-
function
|
|
288
|
+
function Ql(v) {
|
|
298
289
|
const m = Math.floor(v - d.min);
|
|
299
290
|
return Math.min(Math.max(0, m), at.value);
|
|
300
291
|
}
|
|
@@ -302,34 +293,34 @@ const _n = {
|
|
|
302
293
|
const m = Math.ceil(v - d.min);
|
|
303
294
|
return Math.min(Math.max(0, m), at.value);
|
|
304
295
|
}
|
|
305
|
-
const Ee = x(() =>
|
|
296
|
+
const Ee = x(() => Ql(ce.value)), Pe = x(() => Qt(fe.value)), xl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
|
|
306
297
|
if (!d.minimap.length) return 0;
|
|
307
|
-
const v = Math.max(1,
|
|
298
|
+
const v = Math.max(1, xl.value - (d.minimapCompact ? 1 : 0));
|
|
308
299
|
return W.value.width / v;
|
|
309
300
|
}), ve = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ve.value || 1) * 0.8);
|
|
310
|
-
function
|
|
311
|
-
const _ = Z.value,
|
|
312
|
-
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (
|
|
301
|
+
function Il(v, m, f) {
|
|
302
|
+
const _ = Z.value, T = Math.max(1, ve.value), D = xl.value - 1;
|
|
303
|
+
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (T - m) : v - T * _ / 2 + m * _;
|
|
313
304
|
}
|
|
314
|
-
function
|
|
315
|
-
return [0,
|
|
305
|
+
function Nl(v, m) {
|
|
306
|
+
return [0, xl.value - 1].includes(m) ? Z.value / 2 : Z.value;
|
|
316
307
|
}
|
|
317
|
-
const
|
|
308
|
+
const Pl = x(() => {
|
|
318
309
|
const v = [];
|
|
319
310
|
if (Array.isArray(d.minimap) && d.minimap.length && d.minimapMerged && v.push(...d.minimap.filter(Number.isFinite)), Array.isArray(d.allMinimaps) && d.allMinimaps.length)
|
|
320
311
|
for (const m of d.allMinimaps)
|
|
321
312
|
m?.isVisible && Array.isArray(m?.series) && v.push(...m.series.filter(Number.isFinite));
|
|
322
313
|
return v.length ? { min: Math.min(...v), max: Math.max(...v) } : { min: 0, max: 1 };
|
|
323
|
-
}), He = x(() =>
|
|
314
|
+
}), He = x(() => Pl.value.min), gt = x(() => Pl.value.max), X = x(() => He.value < 0 && gt.value > 0 || gt.value <= 0 ? He.value : 0), jl = x(() => Math.max(1e-9, Math.max(Math.abs(He.value), Math.abs(gt.value)))), Fl = x(() => He.value < 0 && gt.value > 0), bl = (v) => {
|
|
324
315
|
const m = Math.max(1, W.value.height);
|
|
325
|
-
if (
|
|
326
|
-
const f =
|
|
316
|
+
if (Fl.value) {
|
|
317
|
+
const f = jl.value;
|
|
327
318
|
return (1 - (Math.max(-1, Math.min(1, v / f)) + 1) / 2) * m;
|
|
328
319
|
} else {
|
|
329
320
|
const f = Math.min(0, He.value), _ = Math.max(0, gt.value);
|
|
330
321
|
return m - (v - f) / Math.max(1e-9, _ - f) * m;
|
|
331
322
|
}
|
|
332
|
-
}, $e = x(() =>
|
|
323
|
+
}, $e = x(() => bl(0));
|
|
333
324
|
function ot(v, m, f) {
|
|
334
325
|
const _ = (D, ke, S) => Math.max(ke, Math.min(S, D));
|
|
335
326
|
if (m <= 0) {
|
|
@@ -357,19 +348,19 @@ const _n = {
|
|
|
357
348
|
fullMarkers: [],
|
|
358
349
|
selectionMarkers: []
|
|
359
350
|
};
|
|
360
|
-
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f),
|
|
361
|
-
const
|
|
351
|
+
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f), T = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, T - 1)), ke = Math.min(T, Math.max(D + 1, Pe.value)), S = v.map((Me, il) => {
|
|
352
|
+
const Tt = d.cutNullValues ? Me : Me === null ? 0 : Me, oa = Number.isFinite(Tt), La = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), Ca = _(0);
|
|
362
353
|
return {
|
|
363
354
|
x: La,
|
|
364
|
-
y:
|
|
365
|
-
v:
|
|
366
|
-
value:
|
|
355
|
+
y: oa ? _(Tt) : NaN,
|
|
356
|
+
v: Tt,
|
|
357
|
+
value: oa ? Tt : null,
|
|
367
358
|
y0: Ca,
|
|
368
359
|
i: il
|
|
369
360
|
};
|
|
370
|
-
}),
|
|
361
|
+
}), kl = (Me) => Me >= 0 && Me < S.length && Number.isFinite(S[Me]?.value), st = S.filter((Me) => Number.isFinite(Me.value) && !kl(Me.i - 1) && !kl(Me.i + 1)), Et = st.filter((Me) => Me.i >= D && Me.i < ke), At = S.slice(D, ke), aa = S.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(S) : pa(S) : d.cutNullValues ? ka(S) : wa(S) : "", ul = At.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(At) : pa(At) : d.cutNullValues ? ka(At) : wa(At) : "";
|
|
371
362
|
return {
|
|
372
|
-
fullSet:
|
|
363
|
+
fullSet: aa,
|
|
373
364
|
points: S,
|
|
374
365
|
selectionSet: ul,
|
|
375
366
|
sliced: At,
|
|
@@ -396,14 +387,14 @@ const _n = {
|
|
|
396
387
|
x: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
397
388
|
width: ae.value * (m - v) - ae.value
|
|
398
389
|
};
|
|
399
|
-
}), xt = y(d.minimapSelectedIndex),
|
|
390
|
+
}), xt = y(d.minimapSelectedIndex), Rl = (v) => Math.round(d.min + v), Pt = x({
|
|
400
391
|
get() {
|
|
401
|
-
return Nt.value ? Ee.value : Number(
|
|
392
|
+
return Nt.value ? Ee.value : Number(Ut.value);
|
|
402
393
|
},
|
|
403
394
|
set(v) {
|
|
404
395
|
if (Nt.value) {
|
|
405
396
|
const m = Math.round(+v || 0);
|
|
406
|
-
Lt(
|
|
397
|
+
Lt(Rl(m));
|
|
407
398
|
} else {
|
|
408
399
|
let m = Math.round(+v || 0);
|
|
409
400
|
const f = Number(fe.value) - 1, _ = Math.min(Math.max(d.min, m), f);
|
|
@@ -417,7 +408,7 @@ const _n = {
|
|
|
417
408
|
set(v) {
|
|
418
409
|
if (Nt.value) {
|
|
419
410
|
const m = Math.round(+v || 0);
|
|
420
|
-
_e(
|
|
411
|
+
_e(Rl(m + 1));
|
|
421
412
|
} else {
|
|
422
413
|
let m = Math.round(+v || 0);
|
|
423
414
|
const f = Number(ce.value) + 1, _ = Math.max(f, Math.min(m, d.max));
|
|
@@ -426,9 +417,9 @@ const _n = {
|
|
|
426
417
|
}
|
|
427
418
|
});
|
|
428
419
|
function A(v) {
|
|
429
|
-
xt.value =
|
|
420
|
+
xt.value = Ql(d.valueStart) + v;
|
|
430
421
|
}
|
|
431
|
-
const De =
|
|
422
|
+
const De = vn(A, 60);
|
|
432
423
|
ht(() => d.minimapSelectedIndex, (v, m) => {
|
|
433
424
|
if ([null, void 0].includes(v)) {
|
|
434
425
|
xt.value = null;
|
|
@@ -436,10 +427,10 @@ const _n = {
|
|
|
436
427
|
}
|
|
437
428
|
v !== m && De(v);
|
|
438
429
|
}, { immediate: !0 });
|
|
439
|
-
function
|
|
430
|
+
function Ol(v) {
|
|
440
431
|
xt.value = v;
|
|
441
432
|
const m = Ee.value, f = Pe.value;
|
|
442
|
-
v >= m && v < f && !tt.value &&
|
|
433
|
+
v >= m && v < f && !tt.value && Le("trapMouse", v - m);
|
|
443
434
|
}
|
|
444
435
|
const Mt = y(null), t = y(null);
|
|
445
436
|
function p(v) {
|
|
@@ -455,7 +446,7 @@ const _n = {
|
|
|
455
446
|
St.value = !0;
|
|
456
447
|
const m = p(v);
|
|
457
448
|
Number.isFinite(m) && (cancelAnimationFrame(tl), tl = requestAnimationFrame(() => {
|
|
458
|
-
|
|
449
|
+
Ut.value = m;
|
|
459
450
|
}));
|
|
460
451
|
}
|
|
461
452
|
let xe = 0;
|
|
@@ -466,17 +457,17 @@ const _n = {
|
|
|
466
457
|
$t.value = m;
|
|
467
458
|
}));
|
|
468
459
|
}
|
|
469
|
-
|
|
460
|
+
Ll(() => {
|
|
470
461
|
cancelAnimationFrame(tl), cancelAnimationFrame(xe);
|
|
471
462
|
});
|
|
472
463
|
const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Ft = y(!1);
|
|
473
464
|
let yt = y(null);
|
|
474
|
-
const Qe = x(() => (
|
|
465
|
+
const Qe = x(() => (Kl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, Kl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ea = x(() => We.value / w.value), Vl = y(0), Ct = y(0), Ma = y(0), Bl = y(0);
|
|
475
466
|
let nt = null, ut = null, it = null, pt = null;
|
|
476
467
|
const ll = y(d.min);
|
|
477
468
|
function Rt(v) {
|
|
478
|
-
if (!
|
|
479
|
-
const m =
|
|
469
|
+
if (!Ne.value) return d.min;
|
|
470
|
+
const m = Ne.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, T = Math.max(1, _ - f), ke = (Math.max(f, Math.min(v, _)) - f) / T, S = Math.max(1, d.max - d.min);
|
|
480
471
|
return Math.round(d.min + ke * S);
|
|
481
472
|
}
|
|
482
473
|
const al = async (v) => {
|
|
@@ -486,116 +477,116 @@ const _n = {
|
|
|
486
477
|
const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, _ = m ? f ? f.target : null : v.target;
|
|
487
478
|
if (!_ || !(_ instanceof Element) || _.classList && _.classList.contains("range-handle")) return;
|
|
488
479
|
Ft.value = !0;
|
|
489
|
-
const
|
|
490
|
-
if (yt.value =
|
|
491
|
-
ll.value = Rt(
|
|
492
|
-
const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), ke = d.max - d.min, S = Math.max(1, Math.round(ke * D)),
|
|
493
|
-
let st = ll.value -
|
|
480
|
+
const T = m ? f ? f.clientX : 0 : v.clientX;
|
|
481
|
+
if (yt.value = T, Vl.value = T, d.focusOnDrag && !_a.value && Ne.value) {
|
|
482
|
+
ll.value = Rt(T);
|
|
483
|
+
const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), ke = d.max - d.min, S = Math.max(1, Math.round(ke * D)), kl = Math.floor(S / 2);
|
|
484
|
+
let st = ll.value - kl;
|
|
494
485
|
st = Math.max(d.min, Math.min(st, d.max - S));
|
|
495
486
|
const Et = Math.min(d.max, st + S);
|
|
496
|
-
|
|
487
|
+
Ut.value = st, $t.value = Et, qt(st), gl(Et), yo(Ne.value, "mouseup"), await Ml(), yo(Ne.value, "mousedown", { clientX: T });
|
|
497
488
|
}
|
|
498
|
-
Ct.value = ce.value, Ma.value = fe.value,
|
|
489
|
+
Ct.value = ce.value, Ma.value = fe.value, Bl.value = ea.value, nt = m ? "touchmove" : "mousemove", ut = m ? "touchend" : "mouseup", it = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, it, { passive: !1 }), window.addEventListener(ut, pt);
|
|
499
490
|
};
|
|
500
491
|
function Xe(v) {
|
|
501
492
|
Ft.value && je(v.clientX);
|
|
502
493
|
}
|
|
503
494
|
function ol(v) {
|
|
504
|
-
if (!Ft.value || !
|
|
495
|
+
if (!Ft.value || !Ne.value) return;
|
|
505
496
|
const m = v.target;
|
|
506
|
-
if (!(m instanceof Element) || !
|
|
497
|
+
if (!(m instanceof Element) || !Ne.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
|
|
507
498
|
v.preventDefault();
|
|
508
499
|
const f = v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null;
|
|
509
500
|
f && je(f.clientX);
|
|
510
501
|
}
|
|
511
502
|
function je(v) {
|
|
512
503
|
if (!Ft.value) return;
|
|
513
|
-
const m = Rt(
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
const D =
|
|
517
|
-
|
|
504
|
+
const m = Rt(Vl.value), _ = Rt(v) - m;
|
|
505
|
+
let T = Math.round(Ct.value + _);
|
|
506
|
+
T = Math.max(d.min, Math.min(T, d.max - bt.value));
|
|
507
|
+
const D = T + bt.value;
|
|
508
|
+
Ut.value = T, $t.value = D, qt(T), gl(D);
|
|
518
509
|
}
|
|
519
510
|
function et() {
|
|
520
|
-
|
|
511
|
+
ta();
|
|
521
512
|
}
|
|
522
513
|
function Fe() {
|
|
523
|
-
|
|
514
|
+
ta();
|
|
524
515
|
}
|
|
525
|
-
function
|
|
516
|
+
function ta() {
|
|
526
517
|
Ft.value = !1, nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, Te();
|
|
527
518
|
}
|
|
528
|
-
const tt = y(!1), nl = y(null), Ot = y(null),
|
|
529
|
-
function
|
|
519
|
+
const tt = y(!1), nl = y(null), Ot = y(null), yl = y(1), c = y(1), Vt = y(!1);
|
|
520
|
+
function El() {
|
|
530
521
|
if (nl.value) {
|
|
531
522
|
const v = Math.round(nl.value.getBoundingClientRect().width);
|
|
532
|
-
v !==
|
|
523
|
+
v !== yl.value && (yl.value = v);
|
|
533
524
|
}
|
|
534
525
|
}
|
|
535
|
-
function
|
|
526
|
+
function pl() {
|
|
536
527
|
if (Ot.value) {
|
|
537
528
|
const v = Math.round(Ot.value.getBoundingClientRect().width);
|
|
538
529
|
v !== c.value && (c.value = v);
|
|
539
530
|
}
|
|
540
531
|
}
|
|
541
532
|
ho(() => {
|
|
542
|
-
|
|
533
|
+
El(), pl();
|
|
543
534
|
});
|
|
544
|
-
const
|
|
545
|
-
function
|
|
546
|
-
|
|
535
|
+
const la = y(0);
|
|
536
|
+
function Hl(v) {
|
|
537
|
+
la.value = v === "start" ? 1 : 0;
|
|
547
538
|
}
|
|
548
539
|
const kt = y(!1), Bt = y({
|
|
549
540
|
width: 0,
|
|
550
541
|
left: 0
|
|
551
542
|
});
|
|
552
543
|
ht([ce, fe], async () => {
|
|
553
|
-
if (await
|
|
544
|
+
if (await Ml(), !nl.value || !Ot.value) {
|
|
554
545
|
kt.value = !1, Bt.value = { width: 0, left: 0 };
|
|
555
546
|
return;
|
|
556
547
|
}
|
|
557
548
|
const v = nl.value.getBoundingClientRect(), m = Ot.value.getBoundingClientRect();
|
|
558
549
|
kt.value = v.x + v.width > m.x;
|
|
559
|
-
const f = v.x + v.width / 2, _ = m.x + m.width / 2,
|
|
550
|
+
const f = v.x + v.width / 2, _ = m.x + m.width / 2, T = v.width + m.width, D = (f + _) / 2;
|
|
560
551
|
Bt.value = {
|
|
561
|
-
width:
|
|
562
|
-
left: D -
|
|
552
|
+
width: T,
|
|
553
|
+
left: D - T / 2
|
|
563
554
|
};
|
|
564
555
|
}), ho(() => {
|
|
565
|
-
|
|
556
|
+
El(), pl();
|
|
566
557
|
}), ht(() => d.labelLeft, () => {
|
|
567
|
-
|
|
558
|
+
Ml(El);
|
|
568
559
|
}, { deep: !0 }), ht(() => d.labelRight, () => {
|
|
569
|
-
|
|
560
|
+
Ml(pl);
|
|
570
561
|
}, { deep: !0 });
|
|
571
562
|
const ge = x(() => {
|
|
572
563
|
let v = "", m = "", f = !1;
|
|
573
|
-
if (
|
|
564
|
+
if (xa(d.customFormat))
|
|
574
565
|
try {
|
|
575
566
|
const _ = d.customFormat({
|
|
576
567
|
absoluteIndex: ce.value,
|
|
577
568
|
seriesIndex: ce.value,
|
|
578
569
|
datapoint: d.selectedSeries
|
|
579
|
-
}),
|
|
570
|
+
}), T = d.customFormat({
|
|
580
571
|
absoluteIndex: fe.value - 1,
|
|
581
572
|
seriesIndex: -1,
|
|
582
573
|
datapoint: d.selectedSeries
|
|
583
574
|
});
|
|
584
|
-
typeof _ == "string" && typeof
|
|
575
|
+
typeof _ == "string" && typeof T == "string" && (v = _, m = T, f = !0);
|
|
585
576
|
} catch {
|
|
586
577
|
f = !1;
|
|
587
578
|
}
|
|
588
579
|
if (!f) {
|
|
589
|
-
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value),
|
|
590
|
-
v = _ ? _.text : "", m =
|
|
580
|
+
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value), T = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === fe.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === fe.value - 1);
|
|
581
|
+
v = _ ? _.text : "", m = T ? T.text : "";
|
|
591
582
|
}
|
|
592
583
|
return { left: v, right: m };
|
|
593
584
|
});
|
|
594
|
-
|
|
585
|
+
Ll(() => {
|
|
595
586
|
le.value && le.value.disconnect(), nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, clearTimeout(Be);
|
|
596
587
|
});
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
588
|
+
const Dl = x(() => {
|
|
589
|
+
if (!Jl.value.length) return null;
|
|
599
590
|
if (xt.value >= Ee.value && xt.value < Pe.value) {
|
|
600
591
|
const v = xt.value;
|
|
601
592
|
return {
|
|
@@ -619,7 +610,7 @@ const _n = {
|
|
|
619
610
|
style: { padding: "0 24px" },
|
|
620
611
|
class: "vue-data-ui-zoom",
|
|
621
612
|
ref_key: "zoomWrapper",
|
|
622
|
-
ref:
|
|
613
|
+
ref: Ne,
|
|
623
614
|
onMousedown: al,
|
|
624
615
|
onTouchstart: al
|
|
625
616
|
}, [
|
|
@@ -662,7 +653,7 @@ const _n = {
|
|
|
662
653
|
}, [
|
|
663
654
|
k("defs", null, [
|
|
664
655
|
k("linearGradient", {
|
|
665
|
-
id:
|
|
656
|
+
id: Cl.value,
|
|
666
657
|
x1: "0%",
|
|
667
658
|
y1: "0%",
|
|
668
659
|
x2: "0%",
|
|
@@ -671,7 +662,7 @@ const _n = {
|
|
|
671
662
|
k("stop", {
|
|
672
663
|
offset: "0%",
|
|
673
664
|
"stop-color": `${$.minimapLineColor}50`
|
|
674
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, Tn),
|
|
675
666
|
m[13] || (m[13] = k("stop", {
|
|
676
667
|
offset: "100%",
|
|
677
668
|
"stop-color": "transparent"
|
|
@@ -688,7 +679,7 @@ const _n = {
|
|
|
688
679
|
fill: "none",
|
|
689
680
|
stroke: $.minimapFrameColor,
|
|
690
681
|
rx: 3
|
|
691
|
-
}, null, 8,
|
|
682
|
+
}, null, 8, zn)) : g("", !0),
|
|
692
683
|
$.minimapMerged ? (n(), u("path", {
|
|
693
684
|
key: 1,
|
|
694
685
|
d: `M${H.value.fullSet}`,
|
|
@@ -702,18 +693,18 @@ const _n = {
|
|
|
702
693
|
$.minimapMerged && !$.minimapCompact ? (n(), u("path", {
|
|
703
694
|
key: 2,
|
|
704
695
|
d: `M${ae.value / 2},${Math.max(W.value.height, 0)} ${H.value.fullSet} L${W.value.width - ae.value / 2},${Math.max(W.value.height, 0)}Z`,
|
|
705
|
-
fill: `url(#${
|
|
696
|
+
fill: `url(#${Cl.value})`,
|
|
706
697
|
stroke: "none",
|
|
707
698
|
style: { opacity: "0.6" }
|
|
708
699
|
}, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
|
|
709
700
|
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
710
|
-
(n(!0), u(b, null, L(f.points, (
|
|
711
|
-
f.isVisible && !isNaN(
|
|
701
|
+
(n(!0), u(b, null, L(f.points, (T, D) => (n(), u(b, null, [
|
|
702
|
+
f.isVisible && !isNaN(T.y) ? (n(), u("rect", {
|
|
712
703
|
key: 0,
|
|
713
|
-
x:
|
|
714
|
-
y:
|
|
715
|
-
width:
|
|
716
|
-
height:
|
|
704
|
+
x: Il(T.x, _, D),
|
|
705
|
+
y: T.v >= 0 ? T.y : T.y0,
|
|
706
|
+
width: Nl(_, D),
|
|
707
|
+
height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
|
|
717
708
|
fill: f.color,
|
|
718
709
|
style: { opacity: 0.6 }
|
|
719
710
|
}, null, 8, Pn)) : g("", !0)
|
|
@@ -781,7 +772,7 @@ const _n = {
|
|
|
781
772
|
H.value.selectionSet ? (n(), u("path", {
|
|
782
773
|
key: 0,
|
|
783
774
|
d: `M${H.value.sliced[0].x},${Math.max(W.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(W.value.height, 0)}Z`,
|
|
784
|
-
fill: `url(#${
|
|
775
|
+
fill: `url(#${Cl.value})`,
|
|
785
776
|
stroke: "none",
|
|
786
777
|
style: { opacity: "1" }
|
|
787
778
|
}, null, 8, Dn)) : g("", !0),
|
|
@@ -815,16 +806,16 @@ const _n = {
|
|
|
815
806
|
}, null, 8, Yn)) : g("", !0)
|
|
816
807
|
])) : (n(), u("g", Gn, [
|
|
817
808
|
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
818
|
-
(n(!0), u(b, null, L(f.points, (
|
|
819
|
-
f && f.isVisible && !isNaN(
|
|
809
|
+
(n(!0), u(b, null, L(f.points, (T, D) => (n(), u(b, null, [
|
|
810
|
+
f && f.isVisible && !isNaN(T.y) ? (n(), u("rect", {
|
|
820
811
|
key: 0,
|
|
821
|
-
x:
|
|
822
|
-
y:
|
|
823
|
-
width:
|
|
824
|
-
height:
|
|
812
|
+
x: Il(T.x, _, D),
|
|
813
|
+
y: T.v >= 0 ? T.y : T.y0,
|
|
814
|
+
width: Nl(_, D),
|
|
815
|
+
height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
|
|
825
816
|
fill: f.color,
|
|
826
|
-
style: C({ opacity: D >=
|
|
827
|
-
}, null, 12,
|
|
817
|
+
style: C({ opacity: D >= Ut.value && D < $t.value ? 1 : 0 })
|
|
818
|
+
}, null, 12, qn)) : g("", !0)
|
|
828
819
|
], 64))), 256))
|
|
829
820
|
]))), 256)),
|
|
830
821
|
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
|
|
@@ -838,7 +829,7 @@ const _n = {
|
|
|
838
829
|
"stroke-width": "2",
|
|
839
830
|
"stroke-linecap": "round",
|
|
840
831
|
"stroke-linejoin": "round"
|
|
841
|
-
}, null, 8,
|
|
832
|
+
}, null, 8, Un)) : g("", !0)
|
|
842
833
|
]))), 128))
|
|
843
834
|
])),
|
|
844
835
|
me.value && $.minimapCompact ? (n(), u("rect", {
|
|
@@ -863,7 +854,7 @@ const _n = {
|
|
|
863
854
|
stroke: $.textColor,
|
|
864
855
|
rx: 3
|
|
865
856
|
}, null, 8, Kn)) : g("", !0),
|
|
866
|
-
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 },
|
|
857
|
+
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 }, Dl.value)), null, 16)) : g("", !0),
|
|
867
858
|
$.minimapMerged ? (n(), u("g", Jn, [
|
|
868
859
|
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
869
860
|
key: 0,
|
|
@@ -953,18 +944,18 @@ const _n = {
|
|
|
953
944
|
}, null, 8, su)) : g("", !0)
|
|
954
945
|
]))), 128))
|
|
955
946
|
])),
|
|
956
|
-
(n(!0), u(b, null, L(
|
|
947
|
+
(n(!0), u(b, null, L(Jl.value, (f, _) => (n(), u("rect", {
|
|
957
948
|
x: ae.value * _ - ($.minimapCompact ? ae.value / 2 : 0),
|
|
958
949
|
y: 0,
|
|
959
950
|
height: Math.max(W.value.height, 0),
|
|
960
951
|
width: ae.value < 0 ? 0 : ae.value,
|
|
961
952
|
fill: "transparent",
|
|
962
953
|
style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && $.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
|
|
963
|
-
onMousedown: m[0] || (m[0] = (
|
|
964
|
-
onMouseup: m[1] || (m[1] = (
|
|
965
|
-
onMouseenter: (
|
|
966
|
-
onMouseleave: m[2] || (m[2] = (
|
|
967
|
-
xt.value = null,
|
|
954
|
+
onMousedown: m[0] || (m[0] = (T) => tt.value = !0),
|
|
955
|
+
onMouseup: m[1] || (m[1] = (T) => tt.value = !1),
|
|
956
|
+
onMouseenter: (T) => Ol(f),
|
|
957
|
+
onMouseleave: m[2] || (m[2] = (T) => {
|
|
958
|
+
xt.value = null, Le("trapMouse", null);
|
|
968
959
|
})
|
|
969
960
|
}, null, 44, ru))), 256))
|
|
970
961
|
], 8, Cn))
|
|
@@ -1001,7 +992,7 @@ const _n = {
|
|
|
1001
992
|
onChange: Te,
|
|
1002
993
|
onKeyup: fo(Te, ["enter"]),
|
|
1003
994
|
onBlur: Te,
|
|
1004
|
-
onMouseenter: m[7] || (m[7] = (f) =>
|
|
995
|
+
onMouseenter: m[7] || (m[7] = (f) => Hl("start")),
|
|
1005
996
|
onPointerup: Te
|
|
1006
997
|
}, null, 42, cu)), [
|
|
1007
998
|
[
|
|
@@ -1029,7 +1020,7 @@ const _n = {
|
|
|
1029
1020
|
onChange: Te,
|
|
1030
1021
|
onKeyup: fo(Te, ["enter"]),
|
|
1031
1022
|
onBlur: Te,
|
|
1032
|
-
onMouseenter: m[10] || (m[10] = (f) =>
|
|
1023
|
+
onMouseenter: m[10] || (m[10] = (f) => Hl("end")),
|
|
1033
1024
|
onPointerup: Te
|
|
1034
1025
|
}, null, 42, vu)), [
|
|
1035
1026
|
[
|
|
@@ -1054,7 +1045,7 @@ const _n = {
|
|
|
1054
1045
|
color: h(dt)($.selectColor),
|
|
1055
1046
|
backgroundColor: $.selectColor,
|
|
1056
1047
|
border: `1px solid ${ne.value}`,
|
|
1057
|
-
zIndex: `${
|
|
1048
|
+
zIndex: `${la.value + 4}`,
|
|
1058
1049
|
visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
|
|
1059
1050
|
top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1060
1051
|
})
|
|
@@ -1102,7 +1093,7 @@ const _n = {
|
|
|
1102
1093
|
], 544)
|
|
1103
1094
|
], 544));
|
|
1104
1095
|
}
|
|
1105
|
-
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-
|
|
1096
|
+
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-3e0d2bcb"]]), fu = ["id"], mu = ["id"], gu = ["viewBox", "aria-label"], xu = ["x", "y", "width", "height"], bu = { key: 1 }, yu = { class: "vue-ui-xy-grid" }, pu = ["stroke", "x1", "x2", "y1", "y2"], ku = ["stroke", "x1", "x2", "y1", "y2"], wu = { key: 1 }, Su = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x1", "x2", "y1", "y2", "stroke"], Mu = { key: 3 }, Lu = ["d", "stroke"], Cu = { key: 4 }, Au = ["d", "stroke"], Tu = ["id"], zu = ["stop-color"], Iu = ["stop-color"], Nu = ["stop-color"], Pu = ["id"], Fu = ["stop-color"], Ru = ["stop-color"], Ou = ["stop-color"], Vu = ["id"], Bu = ["stop-color"], Eu = ["stop-color"], Hu = ["id"], Du = ["stop-color"], Wu = ["stop-color"], Xu = ["id"], Yu = ["stop-color"], Gu = ["stop-color"], qu = ["x", "y", "height", "width", "fill"], Uu = ["x", "y", "width"], Zu = { key: 0 }, Ku = ["x", "y", "height", "width", "fill"], Ju = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ju = ["width", "x", "y"], ei = { key: 0 }, ti = ["id"], li = ["fill"], ai = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oi = ["x", "y", "font-size", "fill"], ni = ["stroke", "x1", "x2", "y1", "y2"], ui = { key: 3 }, ii = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ri = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ci = ["fill", "font-size", "transform"], vi = ["x1", "x2", "y1", "y2", "stroke"], di = ["x", "y", "font-size", "fill"], hi = ["x1", "x2", "y1", "y2", "stroke"], fi = ["x", "y", "font-size", "fill"], mi = ["width", "x", "y"], gi = { style: { width: "100%" } }, xi = { key: 0 }, bi = ["id"], yi = ["fill"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x", "y", "font-size", "fill"], wi = ["d", "stroke", "stroke-width", "stroke-dasharray"], Si = ["d", "stroke", "stroke-width", "stroke-dasharray"], $i = { key: 6 }, _i = { key: 7 }, Mi = ["d", "fill", "fill-opacity"], Li = { key: 0 }, Ci = ["d", "fill"], Ai = ["d", "fill"], Ti = ["d", "fill"], zi = ["d", "fill"], Ii = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pi = ["width", "x", "y"], Fi = { style: { width: "100%" } }, Ri = { key: 3 }, Oi = ["id"], Vi = ["fill"], Bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ei = ["x", "y", "font-size", "fill"], Hi = { key: 8 }, Di = ["x", "y", "font-size", "fill"], Wi = ["x", "y", "font-size", "fill", "font-weight"], Xi = { key: 9 }, Yi = ["x", "y", "font-size", "fill"], Gi = { key: 10 }, qi = ["x", "y"], Ui = ["innerHTML"], Zi = ["x", "y"], Ki = ["innerHTML"], Ji = ["x1", "x2", "y1", "y2", "stroke"], Qi = { key: 11 }, ji = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], is = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], ms = ["x", "y", "font-size", "fill"], gs = ["text-anchor", "font-size", "fill", "transform", "onClick"], xs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bs = { key: 15 }, ys = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["y", "x", "width", "height", "fill"], ws = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ss = {
|
|
1106
1097
|
key: 16,
|
|
1107
1098
|
style: { "pointer-events": "none" }
|
|
1108
1099
|
}, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
|
|
@@ -1113,7 +1104,7 @@ const _n = {
|
|
|
1113
1104
|
height: "20",
|
|
1114
1105
|
viewBox: "0 0 10 20",
|
|
1115
1106
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1116
|
-
},
|
|
1107
|
+
}, Ts = ["fill"], zs = ["innerHTML"], Is = {
|
|
1117
1108
|
class: "vue-ui-xy-tag-arrow",
|
|
1118
1109
|
height: "100%",
|
|
1119
1110
|
viewBox: "0 0 10 20",
|
|
@@ -1138,7 +1129,7 @@ const _n = {
|
|
|
1138
1129
|
viewBox: "0 0 40 40",
|
|
1139
1130
|
height: "1em",
|
|
1140
1131
|
width: "1em"
|
|
1141
|
-
}, Gs = ["fill"],
|
|
1132
|
+
}, Gs = ["fill"], qs = ["fill"], Us = {
|
|
1142
1133
|
key: 2,
|
|
1143
1134
|
viewBox: "0 0 12 12",
|
|
1144
1135
|
height: "1em",
|
|
@@ -1168,11 +1159,11 @@ const _n = {
|
|
|
1168
1159
|
},
|
|
1169
1160
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
1170
1161
|
setup($, { expose: Sa, emit: $a }) {
|
|
1171
|
-
const d = $,
|
|
1162
|
+
const d = $, Ne = Wt(() => import("./DataTable-xISHA7Pu.js")), ce = Wt(() => import("./Tooltip-Clf2K3CF.js")), fe = Wt(() => import("./UserOptions-Bn3u4JQu.js")), me = Wt(() => import("./BaseIcon-D2f9w5Z5.js")), Cl = Wt(() => import("./vue-ui-table-sparkline-mMpPAUon.js")), St = Wt(() => import("./PackageVersion-DRpg18lg.js")), Nt = Wt(() => import("./PenAndPaper-CtDMyIvW.js")), Kl = Wt(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), qt = $a, gl = Go(), Ut = qo(), { vue_ui_xy: $t } = hn(), Be = y(null), Te = y(null), Ke = y(null), Le = y(null), ft = y(null), _t = y(null), Al = y(null), Zt = y(null), Kt = y(null), Se = y(null), Tl = y(null), zl = y(null), mt = y(null), ne = y(null), Jl = y(0), E = y(null), Jt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), Ql = y({ x: 0, y: 0 }), Qt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), xl = y(!1), ae = y(null), ve = y([]), Z = y(ga()), Il = y(0), Nl = y(0), Pl = y(0), He = y(!0), gt = y(0), X = y(null), jl = y(!1), Fl = y(!0), bl = y(!0), $e = y(null), ot = y({}), jt = y(null), H = y(!1), Je = y(null), M = y(null), xt = x(() => ({
|
|
1172
1163
|
height: W.value,
|
|
1173
1164
|
width: le.value
|
|
1174
1165
|
}));
|
|
1175
|
-
function
|
|
1166
|
+
function Rl(l) {
|
|
1176
1167
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
1177
1168
|
}
|
|
1178
1169
|
function Pt(l, s, e = 0) {
|
|
@@ -1184,7 +1175,7 @@ const _n = {
|
|
|
1184
1175
|
dataLabels: 20,
|
|
1185
1176
|
plotLabels: 10
|
|
1186
1177
|
}), De = y({ plot: 3, line: 3 });
|
|
1187
|
-
|
|
1178
|
+
Zl(() => {
|
|
1188
1179
|
H.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
|
|
1189
1180
|
[null, void 0].includes(l.series) && Na({
|
|
1190
1181
|
componentName: "VueUiXy",
|
|
@@ -1195,22 +1186,22 @@ const _n = {
|
|
|
1195
1186
|
});
|
|
1196
1187
|
});
|
|
1197
1188
|
});
|
|
1198
|
-
function
|
|
1189
|
+
function Ol() {
|
|
1199
1190
|
if (!Object.keys(d.config || {}).length)
|
|
1200
1191
|
return $t;
|
|
1201
1192
|
const l = Fa({
|
|
1202
1193
|
userConfig: d.config,
|
|
1203
1194
|
defaultConfig: $t
|
|
1204
1195
|
});
|
|
1205
|
-
return d.config &&
|
|
1196
|
+
return d.config && Ue(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && Ue(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && Ue(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && Ue(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && Ue(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && Ue(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && Ue(d.config, "chart.annotations") && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((s) => Fa({
|
|
1206
1197
|
defaultConfig: $t.chart.annotations[0],
|
|
1207
1198
|
userConfig: s
|
|
1208
|
-
})) : l.chart.annotations = [], d.config &&
|
|
1199
|
+
})) : l.chart.annotations = [], d.config && Ue(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", Ue(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && Ue(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && Ue(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && Ue(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && Ue(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
1209
1200
|
...Fa({
|
|
1210
|
-
userConfig:
|
|
1201
|
+
userConfig: wn.vue_ui_xy[l.theme] || d.config,
|
|
1211
1202
|
defaultConfig: l
|
|
1212
1203
|
}),
|
|
1213
|
-
customPalette:
|
|
1204
|
+
customPalette: sn[l.theme] || d.palette
|
|
1214
1205
|
} : l;
|
|
1215
1206
|
}
|
|
1216
1207
|
const Mt = x({
|
|
@@ -1220,7 +1211,7 @@ const _n = {
|
|
|
1220
1211
|
set(l) {
|
|
1221
1212
|
return l;
|
|
1222
1213
|
}
|
|
1223
|
-
}), t = y(
|
|
1214
|
+
}), t = y(Ol()), p = y({
|
|
1224
1215
|
dataLabels: { show: !0 },
|
|
1225
1216
|
showTooltip: !0,
|
|
1226
1217
|
showTable: !1,
|
|
@@ -1236,10 +1227,10 @@ const _n = {
|
|
|
1236
1227
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1237
1228
|
}, el.value = !0);
|
|
1238
1229
|
}
|
|
1239
|
-
const Lt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } =
|
|
1240
|
-
...
|
|
1230
|
+
const Lt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } = mn({
|
|
1231
|
+
...Uo(d),
|
|
1241
1232
|
FINAL_CONFIG: t,
|
|
1242
|
-
prepareConfig:
|
|
1233
|
+
prepareConfig: Ol,
|
|
1243
1234
|
callback: () => {
|
|
1244
1235
|
Promise.resolve().then(async () => {
|
|
1245
1236
|
await il(), p.value.showTable = t.value.showTable;
|
|
@@ -1260,7 +1251,7 @@ const _n = {
|
|
|
1260
1251
|
color: "#CACACA"
|
|
1261
1252
|
}
|
|
1262
1253
|
],
|
|
1263
|
-
skeletonConfig:
|
|
1254
|
+
skeletonConfig: jo({
|
|
1264
1255
|
defaultConfig: t.value,
|
|
1265
1256
|
userConfig: {
|
|
1266
1257
|
useCssAnimation: !1,
|
|
@@ -1331,8 +1322,8 @@ const _n = {
|
|
|
1331
1322
|
const Ft = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Ft(l, t.value.downsample.threshold), Qe = x({
|
|
1332
1323
|
get: () => Math.max(..._e.value.map((l) => yt(l.series).length)),
|
|
1333
1324
|
set: (l) => l
|
|
1334
|
-
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }),
|
|
1335
|
-
function
|
|
1325
|
+
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }), ea = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== w.value.start || We.value.end !== w.value.end));
|
|
1326
|
+
function Vl(l, s) {
|
|
1336
1327
|
We.value[l] = s;
|
|
1337
1328
|
}
|
|
1338
1329
|
function Ct() {
|
|
@@ -1344,11 +1335,11 @@ const _n = {
|
|
|
1344
1335
|
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), w.value = { start: s, end: e }, We.value.start = s, We.value.end = e, Ke.value && (Ke.value.setStartValue(s), Ke.value.setEndValue(e));
|
|
1345
1336
|
}
|
|
1346
1337
|
const Ma = x(() => {
|
|
1347
|
-
const { left: l, top: s, width: e, height: i } = c.value, a = w.value.start, o = w.value.end - a, F = e / o, R = We.value.start - a, O = We.value.end - a,
|
|
1338
|
+
const { left: l, top: s, width: e, height: i } = c.value, a = w.value.start, o = w.value.end - a, F = e / o, R = We.value.start - a, O = We.value.end - a, z = Math.max(0, Math.min(o, R)), N = Math.max(0, Math.min(o, O));
|
|
1348
1339
|
return {
|
|
1349
|
-
x: l +
|
|
1340
|
+
x: l + z * F,
|
|
1350
1341
|
y: s,
|
|
1351
|
-
width: (N -
|
|
1342
|
+
width: (N - z) * F,
|
|
1352
1343
|
height: i,
|
|
1353
1344
|
fill: t.value.chart.zoom.preview.fill,
|
|
1354
1345
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -1371,11 +1362,11 @@ const _n = {
|
|
|
1371
1362
|
const s = l - w.value.start;
|
|
1372
1363
|
s < 0 || l >= w.value.end ? M.value = null : M.value = s ?? null;
|
|
1373
1364
|
}, { immediate: !0 });
|
|
1374
|
-
const { isPrinting:
|
|
1365
|
+
const { isPrinting: Bl, isImaging: nt, generatePdf: ut, generateImage: it } = fn({
|
|
1375
1366
|
elementId: `vue-ui-xy_${Z.value}`,
|
|
1376
1367
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
1377
1368
|
options: t.value.chart.userOptions.print
|
|
1378
|
-
}), pt = y(!1), ll = x(() =>
|
|
1369
|
+
}), pt = y(!1), ll = x(() => en(t.value.customPalette)), Rt = x(() => {
|
|
1379
1370
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
1380
1371
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
1381
1372
|
const l = Math.min(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
@@ -1385,12 +1376,12 @@ const _n = {
|
|
|
1385
1376
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
1386
1377
|
const l = Math.max(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
1387
1378
|
return Rt.value === l ? l + 1 : l;
|
|
1388
|
-
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1379
|
+
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Jt.value ? _e.value.map((l, s) => {
|
|
1389
1380
|
const e = yt(l.series), i = `uniqueId_${s}`;
|
|
1390
1381
|
return {
|
|
1391
1382
|
...l,
|
|
1392
1383
|
slotAbsoluteIndex: s,
|
|
1393
|
-
series: e.map((a) =>
|
|
1384
|
+
series: e.map((a) => ha(a) ? a : null).slice(w.value.start, w.value.end),
|
|
1394
1385
|
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s]),
|
|
1395
1386
|
id: i,
|
|
1396
1387
|
scaleLabel: l.scaleLabel || i
|
|
@@ -1407,16 +1398,16 @@ const _n = {
|
|
|
1407
1398
|
series: l.series.map((e) => e + ol.value),
|
|
1408
1399
|
absoluteValues: l.series
|
|
1409
1400
|
})).filter((l) => !ve.value.includes(l.id)));
|
|
1410
|
-
function
|
|
1401
|
+
function ta() {
|
|
1411
1402
|
let l = 0;
|
|
1412
|
-
|
|
1403
|
+
Tl.value && (l = Array.from(Tl.value.querySelectorAll("text")).reduce((a, r) => {
|
|
1413
1404
|
const o = r.getComputedTextLength();
|
|
1414
1405
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1415
1406
|
}, 0));
|
|
1416
1407
|
const s = Kt.value ? Kt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + A.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1417
1408
|
return l + s + e;
|
|
1418
1409
|
}
|
|
1419
|
-
const tt = y(0), nl =
|
|
1410
|
+
const tt = y(0), nl = ba((l) => {
|
|
1420
1411
|
tt.value = l;
|
|
1421
1412
|
}, 100);
|
|
1422
1413
|
go((l) => {
|
|
@@ -1426,7 +1417,7 @@ const _n = {
|
|
|
1426
1417
|
nl(i[0].contentRect.height);
|
|
1427
1418
|
});
|
|
1428
1419
|
e.observe(s), l(() => e.disconnect());
|
|
1429
|
-
}),
|
|
1420
|
+
}), Ll(() => {
|
|
1430
1421
|
tt.value = 0;
|
|
1431
1422
|
});
|
|
1432
1423
|
const Ot = x(() => {
|
|
@@ -1434,11 +1425,11 @@ const _n = {
|
|
|
1434
1425
|
Zt.value && (l = Zt.value.getBBox().height);
|
|
1435
1426
|
let s = 0;
|
|
1436
1427
|
return Se.value && (s = tt.value), l + s + A.value.xAxis;
|
|
1437
|
-
}),
|
|
1428
|
+
}), yl = x(() => _e.value.some((l) => l.useProgression)), c = x(() => {
|
|
1438
1429
|
let l = 0;
|
|
1439
1430
|
const s = 36;
|
|
1440
|
-
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (_e.value.length - ve.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l =
|
|
1441
|
-
const e = t.value.chart.labels.fontSize * 1.1, i =
|
|
1431
|
+
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (_e.value.length - ve.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = ta());
|
|
1432
|
+
const e = t.value.chart.labels.fontSize * 1.1, i = yl.value ? 24 : 6;
|
|
1442
1433
|
if (Se.value) {
|
|
1443
1434
|
const o = Se.value.getBBox().x;
|
|
1444
1435
|
o < 0 && (l += Math.abs(o));
|
|
@@ -1460,26 +1451,26 @@ const _n = {
|
|
|
1460
1451
|
const o = c.value.width / S.value * r + c.value.left + ue.value;
|
|
1461
1452
|
return `M${o},${e} L${o},${i}`;
|
|
1462
1453
|
}).join(" ");
|
|
1463
|
-
}),
|
|
1454
|
+
}), El = x(() => {
|
|
1464
1455
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1465
1456
|
const l = c.value.width / S.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1466
1457
|
return D.value.map((i, a) => {
|
|
1467
1458
|
if (!i || !i.text) return null;
|
|
1468
|
-
const r = c.value.left + l * a + l / 2, o = e ?
|
|
1459
|
+
const r = c.value.left + l * a + l / 2, o = e ? ze.value - (ze.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, F = e ? ze.value + s / (ze.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
1469
1460
|
return `M${r},${o} L${r},${F}`;
|
|
1470
1461
|
}).filter(Boolean).join(" ");
|
|
1471
1462
|
});
|
|
1472
|
-
function
|
|
1473
|
-
return !!
|
|
1463
|
+
function pl() {
|
|
1464
|
+
return !!Ut?.vnode.props?.onSelectTimeLabel;
|
|
1474
1465
|
}
|
|
1475
|
-
function
|
|
1466
|
+
function la(l, s, e) {
|
|
1476
1467
|
if (!jt.value) {
|
|
1477
1468
|
const i = document.createElement("canvas");
|
|
1478
1469
|
jt.value = i.getContext("2d");
|
|
1479
1470
|
}
|
|
1480
1471
|
return jt.value.font = `normal ${l}px sans-serif`, jt.value;
|
|
1481
1472
|
}
|
|
1482
|
-
function
|
|
1473
|
+
function Hl() {
|
|
1483
1474
|
const l = Be.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1484
1475
|
l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
|
|
1485
1476
|
}
|
|
@@ -1488,9 +1479,9 @@ const _n = {
|
|
|
1488
1479
|
}
|
|
1489
1480
|
const Bt = y(!1);
|
|
1490
1481
|
async function ge(l = !1) {
|
|
1491
|
-
await
|
|
1482
|
+
await Ml(), Bt.value = l, jl.value && (bl.value = l);
|
|
1492
1483
|
}
|
|
1493
|
-
function
|
|
1484
|
+
function Dl() {
|
|
1494
1485
|
Ee.value = !Ee.value;
|
|
1495
1486
|
}
|
|
1496
1487
|
const v = x(() => {
|
|
@@ -1522,7 +1513,7 @@ const _n = {
|
|
|
1522
1513
|
return a === s || (s = a, e = l(...i)), e;
|
|
1523
1514
|
};
|
|
1524
1515
|
}
|
|
1525
|
-
const
|
|
1516
|
+
const T = _((l, s, e, i, a, r, o, F) => {
|
|
1526
1517
|
if (l)
|
|
1527
1518
|
return i.length <= 2 ? i.map((B, se) => ({ text: B, absoluteIndex: se })) : i.map((B, se) => ({ text: se === 0 || se === i.length - 1 || o != null && se === o ? B : "", absoluteIndex: se }));
|
|
1528
1519
|
if (!s)
|
|
@@ -1539,18 +1530,18 @@ const _n = {
|
|
|
1539
1530
|
}
|
|
1540
1531
|
if (!O.length)
|
|
1541
1532
|
return i.map((Y, B) => ({ text: "", absoluteIndex: B }));
|
|
1542
|
-
const
|
|
1543
|
-
let
|
|
1533
|
+
const z = O.length, N = R, ee = Math.max(2, Math.min(N - 3, z)), I = Math.min(z, N + 3);
|
|
1534
|
+
let q = Math.min(N, z), V = 1 / 0;
|
|
1544
1535
|
for (let Y = ee; Y <= I; Y += 1) {
|
|
1545
|
-
const B = (
|
|
1546
|
-
Oe < V && (V = Oe,
|
|
1536
|
+
const B = (z - 1) % (Y - 1), se = Math.abs(Y - N), Oe = B * 10 + se;
|
|
1537
|
+
Oe < V && (V = Oe, q = Y);
|
|
1547
1538
|
}
|
|
1548
1539
|
const he = /* @__PURE__ */ new Set();
|
|
1549
|
-
if (
|
|
1550
|
-
he.add(O[Math.round((
|
|
1540
|
+
if (q <= 1)
|
|
1541
|
+
he.add(O[Math.round((z - 1) / 2)]);
|
|
1551
1542
|
else {
|
|
1552
|
-
const Y = (
|
|
1553
|
-
for (let B = 0; B <
|
|
1543
|
+
const Y = (z - 1) / (q - 1);
|
|
1544
|
+
for (let B = 0; B < q; B += 1)
|
|
1554
1545
|
he.add(O[Math.round(B * Y)]);
|
|
1555
1546
|
}
|
|
1556
1547
|
return i.map((Y, B) => ({
|
|
@@ -1559,7 +1550,7 @@ const _n = {
|
|
|
1559
1550
|
}));
|
|
1560
1551
|
}), D = x(() => {
|
|
1561
1552
|
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = M.value, r = S.value, o = s.map((R) => R?.text ?? ""), F = e.map((R) => R?.text ?? "");
|
|
1562
|
-
return
|
|
1553
|
+
return T(
|
|
1563
1554
|
!!l.showOnlyFirstAndLast,
|
|
1564
1555
|
!!l.showOnlyAtModulo,
|
|
1565
1556
|
Math.max(1, f.value || 1),
|
|
@@ -1581,17 +1572,17 @@ const _n = {
|
|
|
1581
1572
|
prefix: i.prefix || t.value.chart.labels.prefix,
|
|
1582
1573
|
suffix: i.suffix || t.value.chart.labels.suffix
|
|
1583
1574
|
}));
|
|
1584
|
-
|
|
1575
|
+
qt("selectTimeLabel", {
|
|
1585
1576
|
datapoint: e,
|
|
1586
1577
|
absoluteIndex: l.absoluteIndex,
|
|
1587
1578
|
label: l.text
|
|
1588
1579
|
});
|
|
1589
1580
|
}
|
|
1590
1581
|
const S = x(() => {
|
|
1591
|
-
const l =
|
|
1582
|
+
const l = Rl((w.value.end ?? 0) - (w.value.start ?? 0));
|
|
1592
1583
|
return Math.max(1, l);
|
|
1593
1584
|
});
|
|
1594
|
-
function
|
|
1585
|
+
function kl(l) {
|
|
1595
1586
|
X.value = l;
|
|
1596
1587
|
}
|
|
1597
1588
|
function st() {
|
|
@@ -1601,11 +1592,11 @@ const _n = {
|
|
|
1601
1592
|
Lt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1602
1593
|
}
|
|
1603
1594
|
function At(l, s) {
|
|
1604
|
-
const e =
|
|
1595
|
+
const e = Rl(l), i = Array(e).fill(0);
|
|
1605
1596
|
for (let a = 0; a < s.length && a < e; a += 1) i[a] = s[a] ?? 0;
|
|
1606
1597
|
return i;
|
|
1607
1598
|
}
|
|
1608
|
-
function
|
|
1599
|
+
function aa(l) {
|
|
1609
1600
|
const s = Math.max(..._e.value.map((e) => yt(e.series).length));
|
|
1610
1601
|
return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1611
1602
|
}
|
|
@@ -1614,22 +1605,22 @@ const _n = {
|
|
|
1614
1605
|
if (!ul.value) {
|
|
1615
1606
|
ul.value = !0;
|
|
1616
1607
|
try {
|
|
1617
|
-
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(..._e.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(
|
|
1618
|
-
|
|
1608
|
+
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(..._e.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(aa(s + 1), e) : e;
|
|
1609
|
+
Tt.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, Ct(), Me.value = !0;
|
|
1619
1610
|
} finally {
|
|
1620
1611
|
queueMicrotask(() => {
|
|
1621
|
-
|
|
1612
|
+
Tt.value = !1;
|
|
1622
1613
|
}), ul.value = !1;
|
|
1623
1614
|
}
|
|
1624
1615
|
}
|
|
1625
1616
|
}
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1628
|
-
ul.value ||
|
|
1617
|
+
const Tt = y(!1);
|
|
1618
|
+
function oa(l) {
|
|
1619
|
+
ul.value || Tt.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Ct());
|
|
1629
1620
|
}
|
|
1630
1621
|
function La(l) {
|
|
1631
|
-
if (ul.value ||
|
|
1632
|
-
const s =
|
|
1622
|
+
if (ul.value || Tt.value) return;
|
|
1623
|
+
const s = aa(l);
|
|
1633
1624
|
s !== w.value.end && (w.value.end = s, We.value.end = s, Ct());
|
|
1634
1625
|
}
|
|
1635
1626
|
async function Ca() {
|
|
@@ -1642,13 +1633,13 @@ const _n = {
|
|
|
1642
1633
|
function sl(l) {
|
|
1643
1634
|
return l / (Ye(Va.value) ? Va.value : 1);
|
|
1644
1635
|
}
|
|
1645
|
-
const
|
|
1636
|
+
const ze = x(() => isNaN(sl(ol.value)) ? c.value.bottom : c.value.bottom - c.value.height * sl(ol.value));
|
|
1646
1637
|
function Ba(l) {
|
|
1647
|
-
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Rt.value >= 0 ? c.value.bottom :
|
|
1648
|
-
return l.value >= 0 ?
|
|
1638
|
+
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Rt.value >= 0 ? c.value.bottom : ze.value;
|
|
1639
|
+
return l.value >= 0 ? U(s - l.y <= 0 ? 1e-5 : s - l.y) : U(l.y - ze.value <= 0 ? 1e-5 : l.y - ze.value);
|
|
1649
1640
|
}
|
|
1650
1641
|
function Ea(l) {
|
|
1651
|
-
return l.value >= 0 ?
|
|
1642
|
+
return l.value >= 0 ? U(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : U(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
1652
1643
|
}
|
|
1653
1644
|
const de = x(() => {
|
|
1654
1645
|
const l = Math.max(1, S.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((i) => i.type === "bar" && !ve.value.includes(i.id)).length);
|
|
@@ -1658,19 +1649,19 @@ const _n = {
|
|
|
1658
1649
|
line: Pt(s, l, 1)
|
|
1659
1650
|
};
|
|
1660
1651
|
});
|
|
1661
|
-
function
|
|
1652
|
+
function wl() {
|
|
1662
1653
|
return p.value.useIndividualScale && p.value.isStacked ? de.value.line - c.value.width / S.value * 0.1 : de.value.bar;
|
|
1663
1654
|
}
|
|
1664
|
-
function
|
|
1655
|
+
function na(l) {
|
|
1665
1656
|
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / S.value * 0.05 : l.x + de.value.bar / 2;
|
|
1666
1657
|
}
|
|
1667
1658
|
function Ha(l) {
|
|
1668
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
1659
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ze.value) ? c.bottom.value : ze.value;
|
|
1669
1660
|
}
|
|
1670
1661
|
function Da(l) {
|
|
1671
1662
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1672
1663
|
}
|
|
1673
|
-
const
|
|
1664
|
+
const Wl = y(null);
|
|
1674
1665
|
function Wa(l) {
|
|
1675
1666
|
const s = $e.value;
|
|
1676
1667
|
if (!s) return null;
|
|
@@ -1683,8 +1674,8 @@ const _n = {
|
|
|
1683
1674
|
return { x: I.x, y: I.y, ok: !0 };
|
|
1684
1675
|
}
|
|
1685
1676
|
}
|
|
1686
|
-
const e = s.getBoundingClientRect(), i = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / i.width, e.height / i.height), r = i.width * a, o = i.height * a, F = (e.width - r) / 2, R = (e.height - o) / 2, O = (l.clientX - e.left - F) / a + i.x,
|
|
1687
|
-
return { x: O, y:
|
|
1677
|
+
const e = s.getBoundingClientRect(), i = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / i.width, e.height / i.height), r = i.width * a, o = i.height * a, F = (e.width - r) / 2, R = (e.height - o) / 2, O = (l.clientX - e.left - F) / a + i.x, z = (l.clientY - e.top - R) / a + i.y;
|
|
1678
|
+
return { x: O, y: z, ok: !0 };
|
|
1688
1679
|
}
|
|
1689
1680
|
let rl = 0;
|
|
1690
1681
|
function Co(l) {
|
|
@@ -1692,20 +1683,20 @@ const _n = {
|
|
|
1692
1683
|
rl = 0;
|
|
1693
1684
|
const s = Wa(l);
|
|
1694
1685
|
if (!s || !$e.value) {
|
|
1695
|
-
|
|
1686
|
+
ua();
|
|
1696
1687
|
return;
|
|
1697
1688
|
}
|
|
1698
1689
|
const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
|
|
1699
1690
|
if (s.x < e || s.x > i || s.y < a || s.y > r) {
|
|
1700
|
-
|
|
1691
|
+
ua();
|
|
1701
1692
|
return;
|
|
1702
1693
|
}
|
|
1703
1694
|
const F = s.x - e, R = o / S.value, O = Math.floor(F / R);
|
|
1704
|
-
O >= 0 && O < S.value ?
|
|
1695
|
+
O >= 0 && O < S.value ? Wl.value !== O && (Wl.value = O, to(!0, O)) : ua();
|
|
1705
1696
|
}));
|
|
1706
1697
|
}
|
|
1707
|
-
function
|
|
1708
|
-
rl && (cancelAnimationFrame(rl), rl = 0),
|
|
1698
|
+
function ua() {
|
|
1699
|
+
rl && (cancelAnimationFrame(rl), rl = 0), Wl.value = null, to(!1, null);
|
|
1709
1700
|
}
|
|
1710
1701
|
function Xa(l) {
|
|
1711
1702
|
const s = Wa(l);
|
|
@@ -1719,7 +1710,7 @@ const _n = {
|
|
|
1719
1710
|
}
|
|
1720
1711
|
}
|
|
1721
1712
|
}
|
|
1722
|
-
|
|
1713
|
+
Wl.value != null && Ya(Wl.value);
|
|
1723
1714
|
}
|
|
1724
1715
|
function Ya(l) {
|
|
1725
1716
|
const s = Fe.value.map((e) => ({
|
|
@@ -1728,7 +1719,7 @@ const _n = {
|
|
|
1728
1719
|
color: e.color,
|
|
1729
1720
|
type: e.type
|
|
1730
1721
|
}));
|
|
1731
|
-
|
|
1722
|
+
qt(
|
|
1732
1723
|
"selectX",
|
|
1733
1724
|
{
|
|
1734
1725
|
dataset: s,
|
|
@@ -1745,9 +1736,9 @@ const _n = {
|
|
|
1745
1736
|
type: l.type
|
|
1746
1737
|
}));
|
|
1747
1738
|
}
|
|
1748
|
-
async function
|
|
1739
|
+
async function To({ scale: l = 2 } = {}) {
|
|
1749
1740
|
if (!Be.value) return;
|
|
1750
|
-
const { width: s, height: e } = Be.value.getBoundingClientRect(), i = s / e, { imageUri: a, base64: r } = await
|
|
1741
|
+
const { width: s, height: e } = Be.value.getBoundingClientRect(), i = s / e, { imageUri: a, base64: r } = await pn({ domElement: Be.value, base64: !0, img: !0, scale: l });
|
|
1751
1742
|
return {
|
|
1752
1743
|
imageUri: a,
|
|
1753
1744
|
base64: r,
|
|
@@ -1764,17 +1755,17 @@ const _n = {
|
|
|
1764
1755
|
if (ve.value.length + 1 === je.value.length) return;
|
|
1765
1756
|
ve.value.push(l.id);
|
|
1766
1757
|
}
|
|
1767
|
-
|
|
1758
|
+
qt("selectLegend", Fe.value.map((s) => ({
|
|
1768
1759
|
name: s.name,
|
|
1769
1760
|
values: s.absoluteValues,
|
|
1770
1761
|
color: s.color,
|
|
1771
1762
|
type: s.type
|
|
1772
1763
|
}))), gt.value += 1;
|
|
1773
1764
|
}
|
|
1774
|
-
const
|
|
1765
|
+
const zo = x(() => {
|
|
1775
1766
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1776
1767
|
return `${l}. ${s}`;
|
|
1777
|
-
}),
|
|
1768
|
+
}), qa = x(() => ({
|
|
1778
1769
|
linePlot: S.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1779
1770
|
})), Io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), No = x(() => {
|
|
1780
1771
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
@@ -1790,7 +1781,7 @@ const _n = {
|
|
|
1790
1781
|
to: Math.min(t.value.chart.highlightArea.to, Qe.value - 1)
|
|
1791
1782
|
};
|
|
1792
1783
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1793
|
-
}),
|
|
1784
|
+
}), Ua = x(() => Jt.value ? _e.value.map((l, s) => ({
|
|
1794
1785
|
...l,
|
|
1795
1786
|
series: yt(l.series),
|
|
1796
1787
|
id: `uniqueId_${s}`,
|
|
@@ -1812,7 +1803,7 @@ const _n = {
|
|
|
1812
1803
|
fontFamily: t.value.chart.fontFamily,
|
|
1813
1804
|
prefix: t.value.chart.labels.prefix,
|
|
1814
1805
|
suffix: t.value.chart.labels.suffix,
|
|
1815
|
-
colNames: v.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text :
|
|
1806
|
+
colNames: v.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text : Sl.value(s + w.value.start, t.value.table.timeFormat)),
|
|
1816
1807
|
thead: {
|
|
1817
1808
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1818
1809
|
color: t.value.table.th.color,
|
|
@@ -1829,31 +1820,31 @@ const _n = {
|
|
|
1829
1820
|
sparkline: {
|
|
1830
1821
|
animation: { show: !1 }
|
|
1831
1822
|
}
|
|
1832
|
-
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value / 2), cl = x(() =>
|
|
1823
|
+
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value / 2), cl = x(() => tn(et.value.filter((l) => !ve.value.includes(l.id)))), P = x(() => {
|
|
1833
1824
|
const l = Object.groupBy(cl.value, (e) => e.scaleLabel), s = {};
|
|
1834
1825
|
for (const [e, i] of Object.entries(l)) {
|
|
1835
1826
|
const a = i.flatMap((r) => r.absoluteValues);
|
|
1836
1827
|
s[e] = {
|
|
1837
1828
|
min: Math.min(...a) || 0,
|
|
1838
1829
|
max: Math.max(...a) || 1,
|
|
1839
|
-
groupId: `scale_group_${
|
|
1830
|
+
groupId: `scale_group_${ga()}`
|
|
1840
1831
|
};
|
|
1841
1832
|
}
|
|
1842
1833
|
return s;
|
|
1843
1834
|
}), Ro = x(() => {
|
|
1844
1835
|
const l = je.value.filter((s) => s.type === "bar").filter((s) => !ve.value.includes(s.id)).length;
|
|
1845
|
-
return c.value.width / S.value / l -
|
|
1846
|
-
}),
|
|
1836
|
+
return c.value.width / S.value / l - ia.value * l;
|
|
1837
|
+
}), ia = x(() => de.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, wl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : ia.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
|
|
1847
1838
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1848
|
-
const l =
|
|
1839
|
+
const l = Ua.value.filter((a) => !ve.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1849
1840
|
for (let a = 0; a < s; a += 1)
|
|
1850
1841
|
e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
1851
1842
|
const i = Math.min(...e);
|
|
1852
1843
|
return e.map((a) => a + (i < 0 ? Math.abs(i) : 0));
|
|
1853
|
-
}), Vo = x(() => t.value.chart.zoom.minimap.show ?
|
|
1844
|
+
}), Vo = x(() => t.value.chart.zoom.minimap.show ? Ua.value.map((s) => ({
|
|
1854
1845
|
...s,
|
|
1855
1846
|
isVisible: !ve.value.includes(s.id)
|
|
1856
|
-
})) : []),
|
|
1847
|
+
})) : []), zt = x(() => Fe.value.map((l) => ({
|
|
1857
1848
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1858
1849
|
shape: l.shape || null,
|
|
1859
1850
|
name: l.name,
|
|
@@ -1864,23 +1855,23 @@ const _n = {
|
|
|
1864
1855
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1865
1856
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1866
1857
|
}))), Za = x(() => Xe.value.ticks.map((l) => ({
|
|
1867
|
-
y: l >= 0 ?
|
|
1858
|
+
y: l >= 0 ? ze.value - c.value.height * sl(l) : ze.value + c.value.height * sl(Math.abs(l)),
|
|
1868
1859
|
value: l,
|
|
1869
1860
|
prefix: t.value.chart.labels.prefix,
|
|
1870
1861
|
suffix: t.value.chart.labels.suffix
|
|
1871
1862
|
}))), Ka = x(() => {
|
|
1872
1863
|
const l = t.value.chart.annotations;
|
|
1873
|
-
if (!l || !Array.isArray(l) || l.every((
|
|
1864
|
+
if (!l || !Array.isArray(l) || l.every((z) => !z.show)) return [];
|
|
1874
1865
|
const s = l.filter(
|
|
1875
|
-
(
|
|
1866
|
+
(z) => z.show && (z.yAxis.yTop != null || z.yAxis.yBottom != null)
|
|
1876
1867
|
);
|
|
1877
1868
|
if (!s.length) return [];
|
|
1878
|
-
const { left: e, right: i } = c.value, a =
|
|
1879
|
-
const N = (
|
|
1869
|
+
const { left: e, right: i } = c.value, a = ze.value, r = c.value.height, o = Xe.value.min, R = Xe.value.max - o, O = (z) => {
|
|
1870
|
+
const N = (z - 0) / R;
|
|
1880
1871
|
return a - N * r;
|
|
1881
1872
|
};
|
|
1882
|
-
return s.map((
|
|
1883
|
-
const { yAxis: { yTop: N, yBottom: ee, label: I } } =
|
|
1873
|
+
return s.map((z) => {
|
|
1874
|
+
const { yAxis: { yTop: N, yBottom: ee, label: I } } = z, q = N != null && ee != null && N !== ee, V = N == null ? null : O(N), he = ee == null ? null : O(ee), Y = la(I.fontSize);
|
|
1884
1875
|
Y.font = `${I.fontSize}px sans-serif`;
|
|
1885
1876
|
const B = Y.measureText(I.text).width, se = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : i - I.padding.right) + I.offsetX, Ge = (V != null && he != null ? Math.min(V, he) : V ?? he) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
1886
1877
|
let J;
|
|
@@ -1888,12 +1879,12 @@ const _n = {
|
|
|
1888
1879
|
const Q = Ge - se * 0.75 - I.padding.top;
|
|
1889
1880
|
return {
|
|
1890
1881
|
show: ![V, he, Q].includes(NaN),
|
|
1891
|
-
id: `annotation_y_${
|
|
1892
|
-
hasArea:
|
|
1893
|
-
areaHeight:
|
|
1882
|
+
id: `annotation_y_${ga()}`,
|
|
1883
|
+
hasArea: q,
|
|
1884
|
+
areaHeight: q ? Math.abs(V - he) : 0,
|
|
1894
1885
|
yTop: V,
|
|
1895
1886
|
yBottom: he,
|
|
1896
|
-
config:
|
|
1887
|
+
config: z.yAxis,
|
|
1897
1888
|
x1: e,
|
|
1898
1889
|
x2: i,
|
|
1899
1890
|
_text: { x: Oe, y: Ge },
|
|
@@ -1922,37 +1913,37 @@ const _n = {
|
|
|
1922
1913
|
Et(o);
|
|
1923
1914
|
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1924
1915
|
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - R) / (O - R));
|
|
1925
|
-
const
|
|
1916
|
+
const z = {
|
|
1926
1917
|
valueMin: R,
|
|
1927
1918
|
valueMax: O < 0 ? 0 : O
|
|
1928
1919
|
}, N = {
|
|
1929
1920
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1930
1921
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((K) => ![void 0, null].includes(K))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((K) => ![null, void 0].includes(K)))
|
|
1931
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001,
|
|
1932
|
-
const Dt = p.value.useIndividualScale ? (o.absoluteValues[pe] + he) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left + de.value.bar * F + de.value.bar * pe *
|
|
1922
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee), he = q.min >= 0 ? 0 : Math.abs(q.min), Y = 0, B = q.max + he, se = V.max + Math.abs(Y), Oe = o.stackIndex, $l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * $l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, qe = c.value.bottom - J - Q * Y / se, Ie = et.value.filter((K) => K.type === "bar").filter((K) => !ve.value.includes(K.id)).length, Gl = o.series.map((K, pe) => {
|
|
1923
|
+
const Dt = p.value.useIndividualScale ? (o.absoluteValues[pe] + he) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left + de.value.bar * F + de.value.bar * pe * Ie - Ro.value / 2 - F * ia.value;
|
|
1933
1924
|
return {
|
|
1934
|
-
yOffset:
|
|
1935
|
-
individualHeight:
|
|
1936
|
-
x:
|
|
1925
|
+
yOffset: U(J),
|
|
1926
|
+
individualHeight: U(Q),
|
|
1927
|
+
x: U(vl),
|
|
1937
1928
|
y: c.value.bottom - J - Q * Dt,
|
|
1938
1929
|
value: o.absoluteValues[pe],
|
|
1939
|
-
zeroPosition:
|
|
1940
|
-
individualMax:
|
|
1930
|
+
zeroPosition: U(be),
|
|
1931
|
+
individualMax: U(B),
|
|
1941
1932
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1942
1933
|
};
|
|
1943
1934
|
}), Ve = o.absoluteValues.map((K) => V.min >= 0 ? (K - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (K + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ht = o.series.map((K, pe) => {
|
|
1944
1935
|
const Dt = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left - de.value.bar / 2 + de.value.bar * F + de.value.bar * pe * et.value.filter((vl) => vl.type === "bar").filter((vl) => !ve.value.includes(vl.id)).length;
|
|
1945
1936
|
return {
|
|
1946
|
-
yOffset:
|
|
1947
|
-
individualHeight:
|
|
1948
|
-
x:
|
|
1949
|
-
y:
|
|
1937
|
+
yOffset: U(J),
|
|
1938
|
+
individualHeight: U(Q),
|
|
1939
|
+
x: U(Dt),
|
|
1940
|
+
y: U(c.value.bottom - U(J) - (U(Q) * Ve[pe] || 0)),
|
|
1950
1941
|
value: o.absoluteValues[pe],
|
|
1951
|
-
zeroPosition:
|
|
1952
|
-
individualMax:
|
|
1942
|
+
zeroPosition: U(be),
|
|
1943
|
+
individualMax: U(B),
|
|
1953
1944
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1954
1945
|
};
|
|
1955
|
-
}), oe =
|
|
1946
|
+
}), oe = q.ticks.map((K) => ({
|
|
1956
1947
|
y: K >= 0 ? be - Q * (K / B) : be + Q * Math.abs(K) / B,
|
|
1957
1948
|
value: K,
|
|
1958
1949
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
@@ -1961,23 +1952,23 @@ const _n = {
|
|
|
1961
1952
|
})), ye = V.ticks.map((K) => {
|
|
1962
1953
|
const pe = (K - V.min) / (V.max - V.min);
|
|
1963
1954
|
return {
|
|
1964
|
-
y: K >= 0 ?
|
|
1955
|
+
y: K >= 0 ? qe - Q * pe : qe + Q * pe,
|
|
1965
1956
|
value: K,
|
|
1966
1957
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1967
1958
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1968
1959
|
datapoint: o
|
|
1969
1960
|
};
|
|
1970
1961
|
});
|
|
1971
|
-
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ye : oe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
1962
|
+
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ye : oe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = ye, P.value[o.scaleLabel].unique = cl.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
|
|
1972
1963
|
...o,
|
|
1973
1964
|
yOffset: J,
|
|
1974
1965
|
autoScaleYLabels: ye,
|
|
1975
1966
|
individualHeight: Q,
|
|
1976
1967
|
scaleYLabels: o.autoScaling ? ye : oe,
|
|
1977
|
-
individualScale: o.autoScaling ? V :
|
|
1968
|
+
individualScale: o.autoScaling ? V : q,
|
|
1978
1969
|
individualMax: o.autoScaling ? se : B,
|
|
1979
|
-
zeroPosition: o.autoScaling ?
|
|
1980
|
-
plots: o.autoScaling ? Ht :
|
|
1970
|
+
zeroPosition: o.autoScaling ? qe : be,
|
|
1971
|
+
plots: o.autoScaling ? Ht : Gl,
|
|
1981
1972
|
groupId: P.value[o.scaleLabel].groupId
|
|
1982
1973
|
};
|
|
1983
1974
|
});
|
|
@@ -1987,69 +1978,69 @@ const _n = {
|
|
|
1987
1978
|
Et(o);
|
|
1988
1979
|
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1989
1980
|
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (O - R));
|
|
1990
|
-
const
|
|
1981
|
+
const z = {
|
|
1991
1982
|
valueMin: R,
|
|
1992
1983
|
valueMax: O
|
|
1993
1984
|
}, N = {
|
|
1994
1985
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1995
1986
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1996
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001,
|
|
1997
|
-
const Xo = p.value.useIndividualScale ? (o.absoluteValues[
|
|
1987
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee), he = q.min >= 0 ? 0 : Math.abs(q.min), Y = 0, B = q.max + Math.abs(he), se = V.max + Math.abs(Y), Oe = o.stackIndex, $l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * $l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, qe = c.value.bottom - J - Q * Y / se, Ie = o.series.map((G, Ce) => {
|
|
1988
|
+
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ce] + Math.abs(he)) / B : sl(G);
|
|
1998
1989
|
return {
|
|
1999
|
-
x:
|
|
2000
|
-
y:
|
|
2001
|
-
value: o.absoluteValues[
|
|
2002
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1990
|
+
x: U(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
1991
|
+
y: U(c.value.bottom - J - Q * Xo),
|
|
1992
|
+
value: o.absoluteValues[Ce],
|
|
1993
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2003
1994
|
};
|
|
2004
|
-
}),
|
|
2005
|
-
x:
|
|
1995
|
+
}), Gl = o.absoluteValues.map((G) => V.min >= 0 ? (G - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (G + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ve = o.series.map((G, Ce) => [void 0, null].includes(o.absoluteValues[Ce]) ? {
|
|
1996
|
+
x: U(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
2006
1997
|
y: be,
|
|
2007
|
-
value: o.absoluteValues[
|
|
2008
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1998
|
+
value: o.absoluteValues[Ce],
|
|
1999
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2009
2000
|
} : {
|
|
2010
|
-
x:
|
|
2011
|
-
y:
|
|
2012
|
-
value: o.absoluteValues[
|
|
2013
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
2014
|
-
}), Ht = t.value.line.cutNullValues ? ya(
|
|
2001
|
+
x: U(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
2002
|
+
y: U(c.value.bottom - J - (Q * Gl[Ce] || 0)),
|
|
2003
|
+
value: o.absoluteValues[Ce],
|
|
2004
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2005
|
+
}), Ht = t.value.line.cutNullValues ? ya(Ie) : pa(Ie.filter((G) => G.value !== null)), oe = t.value.line.cutNullValues ? ya(Ve) : pa(Ve.filter((G) => G.value !== null)), ye = t.value.line.cutNullValues ? ka(Ie) : wa(Ie.filter((G) => G.value !== null)), K = t.value.line.cutNullValues ? ka(Ve) : wa(Ve.filter((G) => G.value !== null)), pe = q.ticks.map((G) => ({
|
|
2015
2006
|
y: G >= 0 ? be - Q * (G / B) : be + Q * Math.abs(G) / B,
|
|
2016
2007
|
value: G,
|
|
2017
2008
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2018
2009
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2019
2010
|
datapoint: o
|
|
2020
2011
|
})), Dt = V.ticks.map((G) => {
|
|
2021
|
-
const
|
|
2012
|
+
const Ce = (G - V.min) / (V.max - V.min);
|
|
2022
2013
|
return {
|
|
2023
|
-
y: G >= 0 ?
|
|
2014
|
+
y: G >= 0 ? qe - Q * Ce : qe + Q * Ce,
|
|
2024
2015
|
value: G,
|
|
2025
2016
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2026
2017
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2027
2018
|
datapoint: o
|
|
2028
2019
|
};
|
|
2029
2020
|
});
|
|
2030
|
-
P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Dt : pe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
2031
|
-
const vl = p.value.useIndividualScale ? o.autoScaling ?
|
|
2021
|
+
P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Dt : pe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = Dt, P.value[o.scaleLabel].unique = cl.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1;
|
|
2022
|
+
const vl = p.value.useIndividualScale ? o.autoScaling ? qe : be : ze.value, ql = Math.max(Math.max(o.autoScaling ? qe : pe.at(-1) ? pe.at(-1).y : 0, c.value.top), vl);
|
|
2032
2023
|
return {
|
|
2033
2024
|
...o,
|
|
2034
2025
|
yOffset: J,
|
|
2035
2026
|
autoScaleYLabels: Dt,
|
|
2036
2027
|
individualHeight: Q,
|
|
2037
2028
|
scaleYLabels: o.autoScaling ? Dt : pe,
|
|
2038
|
-
individualScale: o.autoScaling ? V :
|
|
2029
|
+
individualScale: o.autoScaling ? V : q,
|
|
2039
2030
|
individualMax: o.autoScaling ? se : B,
|
|
2040
|
-
zeroPosition: o.autoScaling ?
|
|
2031
|
+
zeroPosition: o.autoScaling ? qe : be,
|
|
2041
2032
|
curve: o.autoScaling ? oe : Ht,
|
|
2042
|
-
plots: o.autoScaling ? Ve :
|
|
2033
|
+
plots: o.autoScaling ? Ve : Ie,
|
|
2043
2034
|
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
|
|
2044
|
-
o.autoScaling ? Ve :
|
|
2045
|
-
|
|
2035
|
+
o.autoScaling ? Ve : Ie,
|
|
2036
|
+
ql
|
|
2046
2037
|
) : So(
|
|
2047
|
-
o.autoScaling ? Ve.filter((G) => G.value !== null) :
|
|
2048
|
-
|
|
2049
|
-
) : t.value.line.cutNullValues ? wo(
|
|
2050
|
-
curveAreas: o.useArea ?
|
|
2051
|
-
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ?
|
|
2052
|
-
|
|
2038
|
+
o.autoScaling ? Ve.filter((G) => G.value !== null) : Ie.filter((G) => G.value !== null),
|
|
2039
|
+
ql
|
|
2040
|
+
) : t.value.line.cutNullValues ? wo(Ie, ql) : So(Ie.filter((G) => G.value !== null), ql) : "",
|
|
2041
|
+
curveAreas: o.useArea ? ln(
|
|
2042
|
+
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ? Ie : Ie.filter((G) => G.value !== null),
|
|
2043
|
+
ql,
|
|
2053
2044
|
t.value.line.cutNullValues
|
|
2054
2045
|
) : [],
|
|
2055
2046
|
straight: o.autoScaling ? K : ye,
|
|
@@ -2065,20 +2056,20 @@ const _n = {
|
|
|
2065
2056
|
const O = {
|
|
2066
2057
|
valueMin: F,
|
|
2067
2058
|
valueMax: R
|
|
2068
|
-
},
|
|
2059
|
+
}, z = {
|
|
2069
2060
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
2070
2061
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
2071
|
-
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(
|
|
2062
|
+
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(z.min, z.max === z.min ? z.max * ee : z.max, N), q = hl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * ee : O.valueMax, N), V = I.min >= 0 ? 0 : Math.abs(I.min), he = 0, Y = I.max + V, B = q.max + Math.abs(he), se = o.stackIndex, Oe = s - 1 - se, $l = i ? 1 - o.cumulatedStackRatio : 0, Ge = i ? r * $l + e * Oe : 0, J = i ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * V / Y, be = c.value.bottom - Ge - J * he / B, qe = o.series.map((oe, ye) => {
|
|
2072
2063
|
const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(V)) / Y : sl(oe);
|
|
2073
2064
|
return {
|
|
2074
|
-
x:
|
|
2075
|
-
y:
|
|
2065
|
+
x: U(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
2066
|
+
y: U(c.value.bottom - Ge - J * K),
|
|
2076
2067
|
value: o.absoluteValues[ye],
|
|
2077
2068
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2078
2069
|
};
|
|
2079
|
-
}),
|
|
2080
|
-
x:
|
|
2081
|
-
y:
|
|
2070
|
+
}), Ie = o.absoluteValues.map((oe) => q.min >= 0 ? (oe - Math.abs(q.min)) / (q.max - Math.abs(q.min)) : (oe + Math.abs(q.min)) / (q.max + Math.abs(q.min))), Gl = o.series.map((oe, ye) => ({
|
|
2071
|
+
x: U(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
2072
|
+
y: U(c.value.bottom - Ge - (J * Ie[ye] || 0)),
|
|
2082
2073
|
value: o.absoluteValues[ye],
|
|
2083
2074
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2084
2075
|
})), Ve = I.ticks.map((oe) => ({
|
|
@@ -2087,8 +2078,8 @@ const _n = {
|
|
|
2087
2078
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2088
2079
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2089
2080
|
datapoint: o
|
|
2090
|
-
})), Ht =
|
|
2091
|
-
const ye = (oe -
|
|
2081
|
+
})), Ht = q.ticks.map((oe) => {
|
|
2082
|
+
const ye = (oe - q.min) / (q.max - q.min);
|
|
2092
2083
|
return {
|
|
2093
2084
|
y: oe >= 0 ? be - J * ye : be + J * ye,
|
|
2094
2085
|
value: oe,
|
|
@@ -2103,14 +2094,14 @@ const _n = {
|
|
|
2103
2094
|
autoScaleYLabels: Ht,
|
|
2104
2095
|
individualHeight: J,
|
|
2105
2096
|
scaleYLabels: o.autoScaling ? Ht : Ve,
|
|
2106
|
-
individualScale: o.autoScaling ?
|
|
2097
|
+
individualScale: o.autoScaling ? q : I,
|
|
2107
2098
|
individualMax: o.autoScaling ? B : Y,
|
|
2108
2099
|
zeroPosition: o.autoScaling ? be : Q,
|
|
2109
|
-
plots: o.autoScaling ?
|
|
2100
|
+
plots: o.autoScaling ? Gl : qe,
|
|
2110
2101
|
groupId: P.value[o.scaleLabel].groupId
|
|
2111
2102
|
};
|
|
2112
2103
|
});
|
|
2113
|
-
}),
|
|
2104
|
+
}), Xl = x(() => {
|
|
2114
2105
|
const l = Re.value.map((r) => ({
|
|
2115
2106
|
name: r.name,
|
|
2116
2107
|
color: r.color,
|
|
@@ -2156,7 +2147,7 @@ const _n = {
|
|
|
2156
2147
|
id: r.id,
|
|
2157
2148
|
groupId: r.groupId,
|
|
2158
2149
|
scaleLabel: r.scaleLabel,
|
|
2159
|
-
name:
|
|
2150
|
+
name: Ae(
|
|
2160
2151
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
2161
2152
|
R,
|
|
2162
2153
|
R,
|
|
@@ -2182,32 +2173,32 @@ const _n = {
|
|
|
2182
2173
|
if (!o || !F) return;
|
|
2183
2174
|
const R = Re.value.find((I) => I.name === o), O = Re.value.find((I) => I.name === F);
|
|
2184
2175
|
if (!R || !O || R.type !== "line" || O.type !== "line") return;
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2176
|
+
const z = e?.[r]?.[0] ?? R.color, N = e?.[r]?.[1] ?? O.color;
|
|
2177
|
+
an({
|
|
2187
2178
|
lineA: R.plots,
|
|
2188
2179
|
lineB: O.plots,
|
|
2189
2180
|
smoothA: !!R.smooth,
|
|
2190
2181
|
smoothB: !!O.smooth,
|
|
2191
|
-
colorLineA:
|
|
2182
|
+
colorLineA: z,
|
|
2192
2183
|
colorLineB: N,
|
|
2193
2184
|
sampleStepPx: 2,
|
|
2194
2185
|
cutNullValues: t.value.line.cutNullValues
|
|
2195
|
-
}).forEach((I,
|
|
2196
|
-
i.push({ ...I, key: `inter_${o}_${F}_${r}_${
|
|
2186
|
+
}).forEach((I, q) => {
|
|
2187
|
+
i.push({ ...I, key: `inter_${o}_${F}_${r}_${q}` });
|
|
2197
2188
|
});
|
|
2198
2189
|
}), i;
|
|
2199
2190
|
}), ja = x(() => ({
|
|
2200
|
-
datapoint:
|
|
2191
|
+
datapoint: zt.value,
|
|
2201
2192
|
seriesIndex: M.value,
|
|
2202
2193
|
series: et.value,
|
|
2203
2194
|
bars: It.value,
|
|
2204
2195
|
lines: Re.value,
|
|
2205
2196
|
plots: rt.value,
|
|
2206
2197
|
config: t.value
|
|
2207
|
-
})),
|
|
2208
|
-
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s =
|
|
2198
|
+
})), Sl = x(() => {
|
|
2199
|
+
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = xn({
|
|
2209
2200
|
useUTC: l.useUTC,
|
|
2210
|
-
locale:
|
|
2201
|
+
locale: bn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
2211
2202
|
januaryAsYear: l.januaryAsYear
|
|
2212
2203
|
});
|
|
2213
2204
|
return (e, i) => {
|
|
@@ -2215,31 +2206,31 @@ const _n = {
|
|
|
2215
2206
|
return r == null ? "" : s.formatDate(new Date(r), i);
|
|
2216
2207
|
};
|
|
2217
2208
|
}), Aa = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
2218
|
-
text:
|
|
2209
|
+
text: Sl.value(e, t.value.chart.zoom.timeFormat),
|
|
2219
2210
|
absoluteIndex: e
|
|
2220
|
-
}))),
|
|
2211
|
+
}))), ca = y(!1);
|
|
2221
2212
|
x(() => {
|
|
2222
2213
|
let l = "", s = "";
|
|
2223
2214
|
if (t.value.chart.zoom.preview.enable)
|
|
2224
2215
|
return { left: l, right: s };
|
|
2225
|
-
|
|
2216
|
+
ca.value = !1;
|
|
2226
2217
|
const e = t.value.chart.zoom.customFormat;
|
|
2227
|
-
if (
|
|
2218
|
+
if (xa(e))
|
|
2228
2219
|
try {
|
|
2229
2220
|
const i = e({
|
|
2230
2221
|
absoluteIndex: w.value.start,
|
|
2231
2222
|
seriesIndex: w.value.start,
|
|
2232
|
-
datapoint:
|
|
2223
|
+
datapoint: zt.value
|
|
2233
2224
|
}), a = e({
|
|
2234
2225
|
absoluteIndex: w.value.end - 1,
|
|
2235
2226
|
seriesIndex: w.value.end - 1,
|
|
2236
|
-
datapoint:
|
|
2227
|
+
datapoint: zt.value
|
|
2237
2228
|
});
|
|
2238
|
-
typeof i == "string" && typeof a == "string" && (l = i, s = a,
|
|
2229
|
+
typeof i == "string" && typeof a == "string" && (l = i, s = a, ca.value = !0);
|
|
2239
2230
|
} catch {
|
|
2240
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
2231
|
+
console.warn("Custom format cannot be applied on zoom labels."), ca.value = !1;
|
|
2241
2232
|
}
|
|
2242
|
-
if (!
|
|
2233
|
+
if (!ca.value) {
|
|
2243
2234
|
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[w.value.start]?.text || "" : v.value[0]?.text || "";
|
|
2244
2235
|
const i = Math.max(w.value.start, w.value.end - 1);
|
|
2245
2236
|
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[i]?.text || "" : v.value.at(-1)?.text || "";
|
|
@@ -2247,12 +2238,12 @@ const _n = {
|
|
|
2247
2238
|
return { left: l, right: s };
|
|
2248
2239
|
});
|
|
2249
2240
|
const Bo = x(() => {
|
|
2250
|
-
let l = "", s =
|
|
2241
|
+
let l = "", s = zt.value.map((a) => a.value).filter((a) => ha(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
|
|
2251
2242
|
const e = v.value[M.value], i = t.value.chart.tooltip.customFormat;
|
|
2252
|
-
if (
|
|
2243
|
+
if (xa(i) && on(() => i({
|
|
2253
2244
|
absoluteIndex: M.value + w.value.start,
|
|
2254
2245
|
seriesIndex: M.value,
|
|
2255
|
-
datapoint:
|
|
2246
|
+
datapoint: zt.value,
|
|
2256
2247
|
series: et.value,
|
|
2257
2248
|
bars: It.value,
|
|
2258
2249
|
lines: Re.value,
|
|
@@ -2262,7 +2253,7 @@ const _n = {
|
|
|
2262
2253
|
return i({
|
|
2263
2254
|
absoluteIndex: M.value + w.value.start,
|
|
2264
2255
|
seriesIndex: M.value,
|
|
2265
|
-
datapoint:
|
|
2256
|
+
datapoint: zt.value,
|
|
2266
2257
|
series: et.value,
|
|
2267
2258
|
bars: It.value,
|
|
2268
2259
|
lines: Re.value,
|
|
@@ -2270,15 +2261,15 @@ const _n = {
|
|
|
2270
2261
|
config: t.value
|
|
2271
2262
|
});
|
|
2272
2263
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
2273
|
-
const a =
|
|
2264
|
+
const a = Sl.value(M.value + w.value.start, t.value.chart.tooltip.timeFormat);
|
|
2274
2265
|
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
2275
2266
|
}
|
|
2276
|
-
return
|
|
2277
|
-
if (
|
|
2267
|
+
return zt.value.forEach((a) => {
|
|
2268
|
+
if (ha(a.value)) {
|
|
2278
2269
|
let r = "", o = "";
|
|
2279
2270
|
switch (Qt.value[a.type]) {
|
|
2280
2271
|
case "bar":
|
|
2281
|
-
r = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
2272
|
+
r = `<svg viewBox="0 0 40 40" height="14" width="14">${gl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${gl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
2282
2273
|
break;
|
|
2283
2274
|
case "line":
|
|
2284
2275
|
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${$o({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
@@ -2313,7 +2304,7 @@ const _n = {
|
|
|
2313
2304
|
break;
|
|
2314
2305
|
}
|
|
2315
2306
|
}
|
|
2316
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ?
|
|
2307
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Ae(
|
|
2317
2308
|
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2318
2309
|
a.value,
|
|
2319
2310
|
lt({
|
|
@@ -2324,7 +2315,7 @@ const _n = {
|
|
|
2324
2315
|
}),
|
|
2325
2316
|
{ datapoint: a }
|
|
2326
2317
|
) : ""}</b> ${t.value.chart.tooltip.showPercentage ? `(${lt({
|
|
2327
|
-
v:
|
|
2318
|
+
v: U(Math.abs(a.value) / s * 100),
|
|
2328
2319
|
s: "%",
|
|
2329
2320
|
r: t.value.chart.tooltip.roundingPercentage
|
|
2330
2321
|
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[M.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(w.value.start, w.value.end)[M.value]}</div>`);
|
|
@@ -2338,12 +2329,12 @@ const _n = {
|
|
|
2338
2329
|
type: e.type
|
|
2339
2330
|
})), s = [];
|
|
2340
2331
|
return v.value.forEach((e, i) => {
|
|
2341
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
2332
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [Sl.value(i + w.value.start, t.value.table.timeFormat)];
|
|
2342
2333
|
Fe.value.forEach((r) => {
|
|
2343
2334
|
a.push(Ye(r.absoluteValues[i]) ? Number(r.absoluteValues[i].toFixed(t.value.table.rounding)) : "");
|
|
2344
2335
|
}), s.push(a);
|
|
2345
2336
|
}), { head: l, body: s };
|
|
2346
|
-
}),
|
|
2337
|
+
}), va = x(() => {
|
|
2347
2338
|
const l = t.value.table.showSum;
|
|
2348
2339
|
let s = [""].concat(Fe.value.map((r) => r.name));
|
|
2349
2340
|
l && (s = s.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>'));
|
|
@@ -2352,9 +2343,9 @@ const _n = {
|
|
|
2352
2343
|
const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
|
|
2353
2344
|
e.push(
|
|
2354
2345
|
[
|
|
2355
|
-
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" :
|
|
2346
|
+
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" : Sl.value(r + w.value.start, t.value.table.timeFormat)
|
|
2356
2347
|
].concat(Fe.value.map(
|
|
2357
|
-
(F) =>
|
|
2348
|
+
(F) => Ae(
|
|
2358
2349
|
F.type === "line" ? t.value.line.labels.formatter : F.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2359
2350
|
F.absoluteValues[r] ?? 0,
|
|
2360
2351
|
lt({
|
|
@@ -2382,12 +2373,12 @@ const _n = {
|
|
|
2382
2373
|
}, a = [t.value.table.columnNames.period].concat(Fe.value.map((r) => r.name)).concat(t.value.table.columnNames.total);
|
|
2383
2374
|
return { head: s, body: e, config: i, colNames: a };
|
|
2384
2375
|
});
|
|
2385
|
-
function
|
|
2386
|
-
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...eo.value.head.map((o) => o.label)], i = eo.value.body, a = s.concat([e]).concat(i), r =
|
|
2387
|
-
l ? l(r) :
|
|
2376
|
+
function Ta(l = null) {
|
|
2377
|
+
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...eo.value.head.map((o) => o.label)], i = eo.value.body, a = s.concat([e]).concat(i), r = rn(a);
|
|
2378
|
+
l ? l(r) : cn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
2388
2379
|
}
|
|
2389
2380
|
function to(l, s = null) {
|
|
2390
|
-
|
|
2381
|
+
xl.value = l;
|
|
2391
2382
|
const e = Fe.value.map((i) => ({
|
|
2392
2383
|
name: i.name,
|
|
2393
2384
|
value: [null, void 0, NaN].includes(i.absoluteValues[s]) ? null : i.absoluteValues[s],
|
|
@@ -2406,44 +2397,44 @@ const _n = {
|
|
|
2406
2397
|
p.value.showTooltip = !p.value.showTooltip;
|
|
2407
2398
|
}
|
|
2408
2399
|
function no(l) {
|
|
2409
|
-
Pe.value = l,
|
|
2400
|
+
Pe.value = l, Il.value += 1;
|
|
2410
2401
|
}
|
|
2411
2402
|
function uo() {
|
|
2412
2403
|
if (!t.value.responsiveProportionalSizing) {
|
|
2413
2404
|
A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius;
|
|
2414
2405
|
return;
|
|
2415
2406
|
}
|
|
2416
|
-
A.value.dataLabels =
|
|
2407
|
+
A.value.dataLabels = _l({
|
|
2417
2408
|
relator: W.value,
|
|
2418
2409
|
adjuster: 400,
|
|
2419
2410
|
source: t.value.chart.grid.labels.fontSize,
|
|
2420
2411
|
threshold: 10,
|
|
2421
2412
|
fallback: 10
|
|
2422
|
-
}), A.value.yAxis =
|
|
2413
|
+
}), A.value.yAxis = _l({
|
|
2423
2414
|
relator: le.value,
|
|
2424
2415
|
adjuster: 1e3,
|
|
2425
2416
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
2426
2417
|
threshold: 10,
|
|
2427
2418
|
fallback: 10
|
|
2428
|
-
}), A.value.xAxis =
|
|
2419
|
+
}), A.value.xAxis = _l({
|
|
2429
2420
|
relator: le.value,
|
|
2430
2421
|
adjuster: 1e3,
|
|
2431
2422
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2432
2423
|
threshold: 10,
|
|
2433
2424
|
fallback: 10
|
|
2434
|
-
}), A.value.plotLabels =
|
|
2425
|
+
}), A.value.plotLabels = _l({
|
|
2435
2426
|
relator: le.value,
|
|
2436
2427
|
adjuster: 800,
|
|
2437
2428
|
source: t.value.chart.labels.fontSize,
|
|
2438
2429
|
threshold: 10,
|
|
2439
2430
|
fallback: 10
|
|
2440
|
-
}), De.value.plot =
|
|
2431
|
+
}), De.value.plot = _l({
|
|
2441
2432
|
relator: le.value,
|
|
2442
2433
|
adjuster: 800,
|
|
2443
2434
|
source: t.value.plot.radius,
|
|
2444
2435
|
threshold: 1,
|
|
2445
2436
|
fallback: 1
|
|
2446
|
-
}), De.value.line =
|
|
2437
|
+
}), De.value.line = _l({
|
|
2447
2438
|
relator: le.value,
|
|
2448
2439
|
adjuster: 800,
|
|
2449
2440
|
source: t.value.line.radius,
|
|
@@ -2451,7 +2442,7 @@ const _n = {
|
|
|
2451
2442
|
fallback: 1
|
|
2452
2443
|
});
|
|
2453
2444
|
}
|
|
2454
|
-
function
|
|
2445
|
+
function za() {
|
|
2455
2446
|
_o(d.dataset) ? (Na({
|
|
2456
2447
|
componentName: "VueUiXy",
|
|
2457
2448
|
type: "dataset",
|
|
@@ -2466,11 +2457,11 @@ const _n = {
|
|
|
2466
2457
|
}), bt.value = !0);
|
|
2467
2458
|
}), Lt.value && d.dataset.forEach((s) => {
|
|
2468
2459
|
s.series.forEach((e, i) => {
|
|
2469
|
-
|
|
2460
|
+
ha(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2470
2461
|
-----> The serie '${s.name}' contains the value '${e}' at index ${i}.
|
|
2471
2462
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2472
2463
|
});
|
|
2473
|
-
}), _o(d.dataset) || (bt.value = t.value.loading),
|
|
2464
|
+
}), _o(d.dataset) || (bt.value = t.value.loading), jl.value = t.value.chart.userOptions.showOnChartHover, Fl.value = t.value.chart.userOptions.keepStateOnChartLeave, bl.value = !t.value.chart.userOptions.showOnChartHover, tl();
|
|
2474
2465
|
const l = 12;
|
|
2475
2466
|
if (t.value.responsive) {
|
|
2476
2467
|
const e = Be.value.parentNode;
|
|
@@ -2480,16 +2471,16 @@ const _n = {
|
|
|
2480
2471
|
t.value.chart.title.show && Te.value && (r = Te.value, o = r.getBoundingClientRect().height);
|
|
2481
2472
|
let F = null, R = 0;
|
|
2482
2473
|
t.value.chart.zoom.show && Qe.value > 6 && Mt.value && Ke.value && Ke.value.$el && (F = Ke.value.$el, R = F.getBoundingClientRect().height);
|
|
2483
|
-
let O = null,
|
|
2484
|
-
t.value.chart.legend.show &&
|
|
2474
|
+
let O = null, z = 0;
|
|
2475
|
+
t.value.chart.legend.show && Le.value && (O = Le.value, z = O.getBoundingClientRect().height);
|
|
2485
2476
|
let N = 0;
|
|
2486
2477
|
ft.value && (N = ft.value.getBoundingClientRect().height);
|
|
2487
2478
|
let ee = 0;
|
|
2488
|
-
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - o -
|
|
2489
|
-
const I = new ResizeObserver((
|
|
2490
|
-
for (const V of
|
|
2491
|
-
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0,
|
|
2492
|
-
W.value = V.contentRect.height - o -
|
|
2479
|
+
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - o - z - R - N - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
|
|
2480
|
+
const I = new ResizeObserver((q) => {
|
|
2481
|
+
for (const V of q)
|
|
2482
|
+
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0, Le.value ? z = Le.value.getBoundingClientRect().height : z = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0, _t.value ? ee = _t.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
|
|
2483
|
+
W.value = V.contentRect.height - o - z - R - N - ee - l, le.value = V.contentBoxSize[0].inlineSize, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
|
|
2493
2484
|
});
|
|
2494
2485
|
});
|
|
2495
2486
|
mt.value = I, ne.value = e, I.observe(e);
|
|
@@ -2497,16 +2488,16 @@ const _n = {
|
|
|
2497
2488
|
W.value = t.value.chart.height, le.value = t.value.chart.width, A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius, at.value = `0 0 ${le.value} ${W.value}`;
|
|
2498
2489
|
}
|
|
2499
2490
|
function io(l) {
|
|
2500
|
-
|
|
2491
|
+
Ql.value = {
|
|
2501
2492
|
x: l.clientX,
|
|
2502
2493
|
y: l.clientY
|
|
2503
2494
|
};
|
|
2504
2495
|
}
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
}),
|
|
2508
|
-
document.removeEventListener("scroll",
|
|
2509
|
-
}),
|
|
2496
|
+
Zl(() => {
|
|
2497
|
+
za(), il(), document.addEventListener("mousemove", io, { passive: !0 }), document.addEventListener("scroll", Hl, { passive: !0 });
|
|
2498
|
+
}), Ll(() => {
|
|
2499
|
+
document.removeEventListener("scroll", Hl, { passive: !0 }), document.removeEventListener("mousemove", io, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
|
|
2500
|
+
}), yn({
|
|
2510
2501
|
timeLabelsEls: Se,
|
|
2511
2502
|
timeLabels: v,
|
|
2512
2503
|
slicer: w,
|
|
@@ -2518,7 +2509,7 @@ const _n = {
|
|
|
2518
2509
|
width: le,
|
|
2519
2510
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2520
2511
|
});
|
|
2521
|
-
const
|
|
2512
|
+
const da = y(!1), so = y(null), ro = y(200), Eo = x(
|
|
2522
2513
|
() => M.value ?? X.value ?? 0
|
|
2523
2514
|
);
|
|
2524
2515
|
function Ho() {
|
|
@@ -2527,9 +2518,9 @@ const _n = {
|
|
|
2527
2518
|
}
|
|
2528
2519
|
function Do() {
|
|
2529
2520
|
const l = Ho(), s = 200, e = Math.max(1, S.value), i = c.value.width / e, r = c.value.left + Eo.value * i + i / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, F = c.value.right - (s + l) / 2, R = Math.max(o, Math.min(r, F));
|
|
2530
|
-
return
|
|
2521
|
+
return U(R);
|
|
2531
2522
|
}
|
|
2532
|
-
|
|
2523
|
+
Zl(() => {
|
|
2533
2524
|
let l = null, s = null;
|
|
2534
2525
|
const e = (r) => {
|
|
2535
2526
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
@@ -2540,13 +2531,13 @@ const _n = {
|
|
|
2540
2531
|
o && e(o.contentRect.width || 200);
|
|
2541
2532
|
}), a = go((r) => {
|
|
2542
2533
|
const o = so.value;
|
|
2543
|
-
l && l !== o && (i.unobserve(l), l = null), o && o !== l && (
|
|
2534
|
+
l && l !== o && (i.unobserve(l), l = null), o && o !== l && (Ml(() => {
|
|
2544
2535
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2545
2536
|
}), i.observe(o), l = o), r(() => {
|
|
2546
2537
|
l && (i.unobserve(l), l = null);
|
|
2547
2538
|
});
|
|
2548
2539
|
});
|
|
2549
|
-
|
|
2540
|
+
Ll(() => {
|
|
2550
2541
|
try {
|
|
2551
2542
|
l && i.unobserve(l), i.disconnect(), a();
|
|
2552
2543
|
} catch {
|
|
@@ -2556,32 +2547,32 @@ const _n = {
|
|
|
2556
2547
|
const Wo = x(() => {
|
|
2557
2548
|
if ([null, void 0].includes(M.value) && [null, void 0].includes(X.value)) return "";
|
|
2558
2549
|
const l = (M.value != null ? M.value : 0) || (X.value != null ? X.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2559
|
-
if (
|
|
2550
|
+
if (da.value = !1, xa(s))
|
|
2560
2551
|
try {
|
|
2561
2552
|
const e = s({
|
|
2562
2553
|
absoluteIndex: l + w.value.start,
|
|
2563
2554
|
seriesIndex: l,
|
|
2564
|
-
datapoint:
|
|
2555
|
+
datapoint: zt.value,
|
|
2565
2556
|
bars: It.value,
|
|
2566
2557
|
lines: Re.value,
|
|
2567
2558
|
plots: rt.value,
|
|
2568
2559
|
config: t.value
|
|
2569
2560
|
});
|
|
2570
2561
|
if (typeof e == "string")
|
|
2571
|
-
return
|
|
2562
|
+
return da.value = !0, e;
|
|
2572
2563
|
} catch {
|
|
2573
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2564
|
+
console.warn("Custom format cannot be applied on timeTag."), da.value = !1;
|
|
2574
2565
|
}
|
|
2575
|
-
if (!
|
|
2576
|
-
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ?
|
|
2566
|
+
if (!da.value)
|
|
2567
|
+
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? Sl.value(l + w.value.start, t.value.chart.timeTag.timeFormat) : v.value[l].text;
|
|
2577
2568
|
});
|
|
2578
2569
|
ht(() => d.dataset, (l) => {
|
|
2579
2570
|
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(..._e.value.map((s) => yt(s.series).length)), w.value = {
|
|
2580
2571
|
start: 0,
|
|
2581
2572
|
end: Qe.value
|
|
2582
|
-
},
|
|
2573
|
+
}, Jl.value += 1, gt.value += 1, Ct();
|
|
2583
2574
|
}, { deep: !0 }), ht(() => d.config, (l) => {
|
|
2584
|
-
xe.value || (t.value =
|
|
2575
|
+
xe.value || (t.value = Ol()), za(), Pl.value += 1, Nl.value += 1, tl(), Ct();
|
|
2585
2576
|
}, { deep: !0 });
|
|
2586
2577
|
const Ia = y(!1);
|
|
2587
2578
|
function co() {
|
|
@@ -2593,19 +2584,19 @@ const _n = {
|
|
|
2593
2584
|
const s = l.getBoundingClientRect();
|
|
2594
2585
|
Ia.value = s.width > 2 && s.height > 2;
|
|
2595
2586
|
}
|
|
2596
|
-
|
|
2587
|
+
Zl(() => {
|
|
2597
2588
|
co();
|
|
2598
2589
|
const l = new ResizeObserver(() => {
|
|
2599
|
-
co(), Ia.value && (
|
|
2590
|
+
co(), Ia.value && (za(), Ct(), il());
|
|
2600
2591
|
});
|
|
2601
2592
|
Be.value?.parentNode && l.observe(Be.value.parentNode);
|
|
2602
2593
|
}), ht(t, () => {
|
|
2603
2594
|
tl();
|
|
2604
2595
|
}, { immediate: !0 });
|
|
2605
|
-
const
|
|
2596
|
+
const Yl = x(() => {
|
|
2606
2597
|
const l = t.value.table.useDialog && !t.value.showTable, s = p.value.showTable;
|
|
2607
2598
|
return {
|
|
2608
|
-
component: l ?
|
|
2599
|
+
component: l ? Kl : $n,
|
|
2609
2600
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2610
2601
|
props: l ? {
|
|
2611
2602
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
@@ -2636,19 +2627,19 @@ const _n = {
|
|
|
2636
2627
|
t.value.showTable || (l && t.value.table.useDialog && Je.value ? Je.value.open() : Je.value && Je.value.close && Je.value.close());
|
|
2637
2628
|
});
|
|
2638
2629
|
function vo() {
|
|
2639
|
-
p.value.showTable = !1,
|
|
2630
|
+
p.value.showTable = !1, zl.value && zl.value.setTableIconState(!1);
|
|
2640
2631
|
}
|
|
2641
2632
|
return Sa({
|
|
2642
2633
|
getData: Ao,
|
|
2643
|
-
getImage:
|
|
2634
|
+
getImage: To,
|
|
2644
2635
|
generatePdf: ut,
|
|
2645
2636
|
generateImage: it,
|
|
2646
|
-
generateCsv:
|
|
2637
|
+
generateCsv: Ta,
|
|
2647
2638
|
toggleStack: st,
|
|
2648
2639
|
toggleTable: lo,
|
|
2649
2640
|
toggleLabels: ao,
|
|
2650
2641
|
toggleTooltip: oo,
|
|
2651
|
-
toggleAnnotator:
|
|
2642
|
+
toggleAnnotator: Dl,
|
|
2652
2643
|
toggleFullscreen: no
|
|
2653
2644
|
}), (l, s) => (n(), u("div", {
|
|
2654
2645
|
id: `vue-ui-xy_${Z.value}`,
|
|
@@ -2666,7 +2657,7 @@ const _n = {
|
|
|
2666
2657
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2667
2658
|
color: t.value.chart.color,
|
|
2668
2659
|
active: Ee.value,
|
|
2669
|
-
onClose:
|
|
2660
|
+
onClose: Dl
|
|
2670
2661
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
2671
2662
|
Io.value ? (n(), u("div", {
|
|
2672
2663
|
key: 1,
|
|
@@ -2682,8 +2673,8 @@ const _n = {
|
|
|
2682
2673
|
class: "vue-ui-xy-title",
|
|
2683
2674
|
style: C(`font-family:${t.value.chart.fontFamily}`)
|
|
2684
2675
|
}, [
|
|
2685
|
-
(n(), ct(
|
|
2686
|
-
key: `title_${
|
|
2676
|
+
(n(), ct(kn, {
|
|
2677
|
+
key: `title_${Pl.value}`,
|
|
2687
2678
|
config: {
|
|
2688
2679
|
title: {
|
|
2689
2680
|
cy: "xy-div-title",
|
|
@@ -2699,13 +2690,13 @@ const _n = {
|
|
|
2699
2690
|
k("div", {
|
|
2700
2691
|
id: `legend-top-${Z.value}`
|
|
2701
2692
|
}, null, 8, mu),
|
|
2702
|
-
t.value.chart.userOptions.show && (
|
|
2693
|
+
t.value.chart.userOptions.show && (Fl.value || bl.value) ? (n(), ct(h(fe), {
|
|
2703
2694
|
ref_key: "userOptionsRef",
|
|
2704
|
-
ref:
|
|
2705
|
-
key: `user_options_${
|
|
2695
|
+
ref: zl,
|
|
2696
|
+
key: `user_options_${Il.value}`,
|
|
2706
2697
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2707
2698
|
color: t.value.chart.color,
|
|
2708
|
-
isPrinting: h(
|
|
2699
|
+
isPrinting: h(Bl),
|
|
2709
2700
|
isImaging: h(nt),
|
|
2710
2701
|
uid: Z.value,
|
|
2711
2702
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
@@ -2729,15 +2720,15 @@ const _n = {
|
|
|
2729
2720
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2730
2721
|
onToggleFullscreen: no,
|
|
2731
2722
|
onGeneratePdf: h(ut),
|
|
2732
|
-
onGenerateCsv:
|
|
2723
|
+
onGenerateCsv: Ta,
|
|
2733
2724
|
onGenerateImage: h(it),
|
|
2734
2725
|
onToggleTable: lo,
|
|
2735
2726
|
onToggleLabels: ao,
|
|
2736
2727
|
onToggleStack: st,
|
|
2737
2728
|
onToggleTooltip: oo,
|
|
2738
|
-
onToggleAnnotator:
|
|
2729
|
+
onToggleAnnotator: Dl,
|
|
2739
2730
|
style: C({
|
|
2740
|
-
visibility:
|
|
2731
|
+
visibility: Fl.value ? bl.value ? "visible" : "hidden" : "visible"
|
|
2741
2732
|
})
|
|
2742
2733
|
}, xo({ _: 2 }, [
|
|
2743
2734
|
l.$slots.menuIcon ? {
|
|
@@ -2823,17 +2814,17 @@ const _n = {
|
|
|
2823
2814
|
color: t.value.chart.color,
|
|
2824
2815
|
fontFamily: t.value.chart.fontFamily
|
|
2825
2816
|
}),
|
|
2826
|
-
"aria-label":
|
|
2817
|
+
"aria-label": zo.value,
|
|
2827
2818
|
role: "img",
|
|
2828
2819
|
"aria-live": "polite",
|
|
2829
2820
|
preserveAspectRatio: "xMidYMid",
|
|
2830
2821
|
onMousemove: Co,
|
|
2831
|
-
onMouseleave:
|
|
2822
|
+
onMouseleave: ua,
|
|
2832
2823
|
onClick: Xa
|
|
2833
2824
|
}, [
|
|
2834
2825
|
k("g", {
|
|
2835
2826
|
ref_key: "G",
|
|
2836
|
-
ref:
|
|
2827
|
+
ref: Al,
|
|
2837
2828
|
class: "vue-data-ui-g"
|
|
2838
2829
|
}, [
|
|
2839
2830
|
ml(h(St)),
|
|
@@ -2862,7 +2853,7 @@ const _n = {
|
|
|
2862
2853
|
"stroke-linecap": "round",
|
|
2863
2854
|
style: { animation: "none !important" }
|
|
2864
2855
|
}, null, 8, pu)) : g("", !0),
|
|
2865
|
-
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(
|
|
2856
|
+
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(Xl.value, (e) => (n(), u("g", null, [
|
|
2866
2857
|
e.id === E.value && e.yLabels.length ? (n(!0), u(b, { key: 0 }, L(e.yLabels, (i) => (n(), u("line", {
|
|
2867
2858
|
x1: c.value.left + ue.value,
|
|
2868
2859
|
x2: c.value.right - ue.value,
|
|
@@ -2918,7 +2909,7 @@ const _n = {
|
|
|
2918
2909
|
])) : g("", !0),
|
|
2919
2910
|
t.value.chart.grid.labels.xAxisLabels.show ? (n(), u("g", Cu, [
|
|
2920
2911
|
k("path", {
|
|
2921
|
-
d:
|
|
2912
|
+
d: El.value,
|
|
2922
2913
|
stroke: t.value.chart.grid.stroke,
|
|
2923
2914
|
"stroke-width": 1,
|
|
2924
2915
|
"stroke-linecap": "round",
|
|
@@ -2941,7 +2932,7 @@ const _n = {
|
|
|
2941
2932
|
k("stop", {
|
|
2942
2933
|
offset: "0%",
|
|
2943
2934
|
"stop-color": e.color
|
|
2944
|
-
}, null, 8,
|
|
2935
|
+
}, null, 8, zu),
|
|
2945
2936
|
k("stop", {
|
|
2946
2937
|
offset: "62%",
|
|
2947
2938
|
"stop-color": `${h(fl)(e.color, 0.02)}`
|
|
@@ -2950,7 +2941,7 @@ const _n = {
|
|
|
2950
2941
|
offset: "100%",
|
|
2951
2942
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2952
2943
|
}, null, 8, Nu)
|
|
2953
|
-
], 8,
|
|
2944
|
+
], 8, Tu),
|
|
2954
2945
|
k("linearGradient", {
|
|
2955
2946
|
id: `rectGradient_neg_${i}_${Z.value}`,
|
|
2956
2947
|
x2: "0%",
|
|
@@ -3046,7 +3037,7 @@ const _n = {
|
|
|
3046
3037
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3047
3038
|
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
3048
3039
|
fill: h(vt)(e.color, e.opacity)
|
|
3049
|
-
}, null, 12,
|
|
3040
|
+
}, null, 12, qu)
|
|
3050
3041
|
]))), 256)),
|
|
3051
3042
|
(n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
|
|
3052
3043
|
e.caption.text && a === 0 ? (n(), u("foreignObject", {
|
|
@@ -3063,7 +3054,7 @@ const _n = {
|
|
|
3063
3054
|
k("div", {
|
|
3064
3055
|
style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
3065
3056
|
}, re(e.caption.text), 5)
|
|
3066
|
-
], 12,
|
|
3057
|
+
], 12, Uu)) : g("", !0)
|
|
3067
3058
|
]))), 256))
|
|
3068
3059
|
], 64)) : g("", !0)
|
|
3069
3060
|
]))), 256)),
|
|
@@ -3091,10 +3082,10 @@ const _n = {
|
|
|
3091
3082
|
}, [
|
|
3092
3083
|
Ye(a.value) ? (n(), u("rect", {
|
|
3093
3084
|
key: 0,
|
|
3094
|
-
x:
|
|
3085
|
+
x: na(a) + ra.value / 2,
|
|
3095
3086
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3096
3087
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3097
|
-
width:
|
|
3088
|
+
width: sa.value - ra.value,
|
|
3098
3089
|
rx: t.value.bar.borderRadius,
|
|
3099
3090
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${i}_${Z.value})` : `url(#rectGradient_neg_${i}_${Z.value})` : e.color,
|
|
3100
3091
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
@@ -3105,10 +3096,10 @@ const _n = {
|
|
|
3105
3096
|
}, null, 12, Ju)) : g("", !0),
|
|
3106
3097
|
Ye(a.value) && l.$slots.pattern ? (n(), u("rect", {
|
|
3107
3098
|
key: 1,
|
|
3108
|
-
x:
|
|
3099
|
+
x: na(a) - ra.value / 2,
|
|
3109
3100
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3110
3101
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3111
|
-
width:
|
|
3102
|
+
width: sa.value - ra.value,
|
|
3112
3103
|
rx: t.value.bar.borderRadius,
|
|
3113
3104
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3114
3105
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
@@ -3119,9 +3110,9 @@ const _n = {
|
|
|
3119
3110
|
key: 2,
|
|
3120
3111
|
style: { overflow: "visible" },
|
|
3121
3112
|
height: "12",
|
|
3122
|
-
width:
|
|
3123
|
-
x:
|
|
3124
|
-
y: h(
|
|
3113
|
+
width: sa.value / 2 + t.value.chart.comments.width,
|
|
3114
|
+
x: na(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3115
|
+
y: h(U)(a.y) + t.value.chart.comments.offsetY + 6
|
|
3125
3116
|
}, [
|
|
3126
3117
|
te(l.$slots, "plot-comment", {
|
|
3127
3118
|
plot: { ...a, color: e.color, seriesIndex: i, datapointIndex: r }
|
|
@@ -3146,8 +3137,8 @@ const _n = {
|
|
|
3146
3137
|
]),
|
|
3147
3138
|
e.plots.length > 1 ? (n(), u("line", {
|
|
3148
3139
|
key: 0,
|
|
3149
|
-
x1: h(ie)(e.plots).x1 +
|
|
3150
|
-
x2: h(ie)(e.plots).x2 +
|
|
3140
|
+
x1: h(ie)(e.plots).x1 + wl(),
|
|
3141
|
+
x2: h(ie)(e.plots).x2 + wl(),
|
|
3151
3142
|
y1: h(j)(h(ie)(e.plots).y1),
|
|
3152
3143
|
y2: h(j)(h(ie)(e.plots).y2),
|
|
3153
3144
|
"stroke-width": 1,
|
|
@@ -3158,7 +3149,7 @@ const _n = {
|
|
|
3158
3149
|
e.plots.length > 1 ? (n(), u("text", {
|
|
3159
3150
|
key: 1,
|
|
3160
3151
|
"text-anchor": "middle",
|
|
3161
|
-
x: h(ie)(e.plots).x2 +
|
|
3152
|
+
x: h(ie)(e.plots).x2 + wl(),
|
|
3162
3153
|
y: h(ie)(e.plots).y2 - 6,
|
|
3163
3154
|
"font-size": A.value.plotLabels,
|
|
3164
3155
|
fill: e.color
|
|
@@ -3175,8 +3166,8 @@ const _n = {
|
|
|
3175
3166
|
"stroke-width": "1",
|
|
3176
3167
|
x1: c.value.left + ue.value,
|
|
3177
3168
|
x2: c.value.right,
|
|
3178
|
-
y1: h(j)(
|
|
3179
|
-
y2: h(j)(
|
|
3169
|
+
y1: h(j)(ze.value),
|
|
3170
|
+
y2: h(j)(ze.value),
|
|
3180
3171
|
"stroke-linecap": "round",
|
|
3181
3172
|
style: { animation: "none !important" }
|
|
3182
3173
|
}, null, 8, ni)) : g("", !0),
|
|
@@ -3210,10 +3201,10 @@ const _n = {
|
|
|
3210
3201
|
t.value.chart.grid.labels.show ? (n(), u("g", {
|
|
3211
3202
|
key: 5,
|
|
3212
3203
|
ref_key: "scaleLabels",
|
|
3213
|
-
ref:
|
|
3204
|
+
ref: Tl
|
|
3214
3205
|
}, [
|
|
3215
3206
|
p.value.useIndividualScale ? (n(), u(b, { key: 0 }, [
|
|
3216
|
-
(n(!0), u(b, null, L(
|
|
3207
|
+
(n(!0), u(b, null, L(Xl.value, (e) => (n(), u("g", null, [
|
|
3217
3208
|
k("line", {
|
|
3218
3209
|
x1: e.x + ue.value - c.value.individualOffsetX,
|
|
3219
3210
|
x2: e.x + ue.value - c.value.individualOffsetX,
|
|
@@ -3225,7 +3216,7 @@ const _n = {
|
|
|
3225
3216
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3226
3217
|
}, null, 12, ri)
|
|
3227
3218
|
]))), 256)),
|
|
3228
|
-
(n(!0), u(b, null, L(
|
|
3219
|
+
(n(!0), u(b, null, L(Xl.value, (e) => (n(), u("g", {
|
|
3229
3220
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3230
3221
|
}, [
|
|
3231
3222
|
k("text", {
|
|
@@ -3254,7 +3245,7 @@ const _n = {
|
|
|
3254
3245
|
"font-size": A.value.dataLabels,
|
|
3255
3246
|
"text-anchor": "end",
|
|
3256
3247
|
fill: e.color
|
|
3257
|
-
}, re(h(
|
|
3248
|
+
}, re(h(Ae)(
|
|
3258
3249
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3259
3250
|
i.value,
|
|
3260
3251
|
h(lt)({
|
|
@@ -3283,11 +3274,11 @@ const _n = {
|
|
|
3283
3274
|
e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(), u("text", {
|
|
3284
3275
|
key: 1,
|
|
3285
3276
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3286
|
-
y: h(
|
|
3277
|
+
y: h(U)(e.y + A.value.dataLabels / 3),
|
|
3287
3278
|
"font-size": A.value.dataLabels,
|
|
3288
3279
|
"text-anchor": "end",
|
|
3289
3280
|
fill: t.value.chart.grid.labels.color
|
|
3290
|
-
}, re(Ye(e.value) ? h(
|
|
3281
|
+
}, re(Ye(e.value) ? h(Ae)(
|
|
3291
3282
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3292
3283
|
e.value,
|
|
3293
3284
|
h(lt)({
|
|
@@ -3307,11 +3298,11 @@ const _n = {
|
|
|
3307
3298
|
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
|
|
3308
3299
|
key: `circle_plot_${i}_${r}`
|
|
3309
3300
|
}, [
|
|
3310
|
-
a && Ye(a.value) ? (n(), ct(
|
|
3301
|
+
a && Ye(a.value) ? (n(), ct(ma, {
|
|
3311
3302
|
key: 0,
|
|
3312
3303
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3313
3304
|
color: t.value.plot.useGradient ? `url(#plotGradient_${i}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
3314
|
-
plot: { x: h(
|
|
3305
|
+
plot: { x: h(U)(a.x), y: h(U)(a.y) },
|
|
3315
3306
|
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
|
|
3316
3307
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3317
3308
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
@@ -3439,13 +3430,13 @@ const _n = {
|
|
|
3439
3430
|
d: `M${a}Z`,
|
|
3440
3431
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3441
3432
|
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3442
|
-
}, null, 12,
|
|
3433
|
+
}, null, 12, Ti)) : g("", !0),
|
|
3443
3434
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3444
3435
|
key: 1,
|
|
3445
3436
|
d: `M${a}Z`,
|
|
3446
3437
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3447
3438
|
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3448
|
-
}, null, 12,
|
|
3439
|
+
}, null, 12, zi)) : g("", !0)
|
|
3449
3440
|
], 64))), 128))
|
|
3450
3441
|
])) : g("", !0),
|
|
3451
3442
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
|
|
@@ -3471,11 +3462,11 @@ const _n = {
|
|
|
3471
3462
|
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3472
3463
|
key: `circle_line_${i}_${r}`
|
|
3473
3464
|
}, [
|
|
3474
|
-
!
|
|
3465
|
+
!qa.value.linePlot && a && Ye(a.value) || qa.value.linePlot && a && Ye(a.value) && (M.value !== null && M.value === r || X.value !== null && X.value === r) || Ja(e.plots, r) ? (n(), ct(ma, {
|
|
3475
3466
|
key: 0,
|
|
3476
3467
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3477
3468
|
color: t.value.line.useGradient ? `url(#lineGradient_${i}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3478
|
-
plot: { x: h(
|
|
3469
|
+
plot: { x: h(U)(a.x), y: h(U)(a.y) },
|
|
3479
3470
|
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.line || 6) * 1.5 : (Ja(e.plots, r), De.value.line || 6),
|
|
3480
3471
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3481
3472
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
@@ -3546,13 +3537,13 @@ const _n = {
|
|
|
3546
3537
|
}, [
|
|
3547
3538
|
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r) && t.value.bar.labels.show ? (n(), u("text", {
|
|
3548
3539
|
key: 0,
|
|
3549
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 :
|
|
3550
|
-
y: h(
|
|
3540
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : na(a) + wl() / 2 - ia.value / 2,
|
|
3541
|
+
y: h(U)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3551
3542
|
"text-anchor": "middle",
|
|
3552
3543
|
"font-size": A.value.plotLabels,
|
|
3553
3544
|
fill: t.value.bar.labels.color,
|
|
3554
3545
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3555
|
-
}, re(Ye(a.value) ? h(
|
|
3546
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3556
3547
|
t.value.bar.labels.formatter,
|
|
3557
3548
|
a.value,
|
|
3558
3549
|
h(lt)({
|
|
@@ -3568,14 +3559,14 @@ const _n = {
|
|
|
3568
3559
|
) : ""), 13, Di)) : g("", !0),
|
|
3569
3560
|
a && t.value.bar.serieName.show ? (n(), u("text", {
|
|
3570
3561
|
key: 1,
|
|
3571
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x +
|
|
3562
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x + wl() * 1.1,
|
|
3572
3563
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3573
3564
|
"text-anchor": "middle",
|
|
3574
3565
|
"font-size": A.value.plotLabels,
|
|
3575
3566
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3576
3567
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3577
3568
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3578
|
-
}, re(t.value.bar.serieName.useAbbreviation ? h(
|
|
3569
|
+
}, re(t.value.bar.serieName.useAbbreviation ? h(nn)({
|
|
3579
3570
|
source: e.name,
|
|
3580
3571
|
length: t.value.bar.serieName.abbreviationSize
|
|
3581
3572
|
}) : e.name), 13, Wi)) : g("", !0)
|
|
@@ -3597,7 +3588,7 @@ const _n = {
|
|
|
3597
3588
|
"font-size": A.value.plotLabels,
|
|
3598
3589
|
fill: t.value.plot.labels.color,
|
|
3599
3590
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3600
|
-
}, re(Ye(a.value) ? h(
|
|
3591
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3601
3592
|
t.value.plot.labels.formatter,
|
|
3602
3593
|
a.value,
|
|
3603
3594
|
h(lt)({
|
|
@@ -3644,7 +3635,7 @@ const _n = {
|
|
|
3644
3635
|
}, [
|
|
3645
3636
|
k("div", {
|
|
3646
3637
|
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3647
|
-
innerHTML: h(
|
|
3638
|
+
innerHTML: h(Ae)(
|
|
3648
3639
|
t.value.plot.tag.formatter,
|
|
3649
3640
|
a.value,
|
|
3650
3641
|
e.name,
|
|
@@ -3654,8 +3645,8 @@ const _n = {
|
|
|
3654
3645
|
serieName: e.name
|
|
3655
3646
|
}
|
|
3656
3647
|
)
|
|
3657
|
-
}, null, 12,
|
|
3658
|
-
], 12,
|
|
3648
|
+
}, null, 12, Ui)
|
|
3649
|
+
], 12, qi)) : g("", !0),
|
|
3659
3650
|
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), u("foreignObject", {
|
|
3660
3651
|
key: 1,
|
|
3661
3652
|
x: a.x - e.name.length * (A.value.plotLabels / 2),
|
|
@@ -3666,7 +3657,7 @@ const _n = {
|
|
|
3666
3657
|
}, [
|
|
3667
3658
|
k("div", {
|
|
3668
3659
|
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3669
|
-
innerHTML: h(
|
|
3660
|
+
innerHTML: h(Ae)(
|
|
3670
3661
|
t.value.plot.tag.formatter,
|
|
3671
3662
|
a.value,
|
|
3672
3663
|
e.name,
|
|
@@ -3697,7 +3688,7 @@ const _n = {
|
|
|
3697
3688
|
"font-size": A.value.plotLabels,
|
|
3698
3689
|
fill: t.value.line.labels.color,
|
|
3699
3690
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3700
|
-
}, re(Ye(a.value) ? h(
|
|
3691
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3701
3692
|
t.value.line.labels.formatter,
|
|
3702
3693
|
a.value,
|
|
3703
3694
|
h(lt)({
|
|
@@ -3744,7 +3735,7 @@ const _n = {
|
|
|
3744
3735
|
}, [
|
|
3745
3736
|
k("div", {
|
|
3746
3737
|
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3747
|
-
innerHTML: h(
|
|
3738
|
+
innerHTML: h(Ae)(
|
|
3748
3739
|
t.value.line.tag.formatter,
|
|
3749
3740
|
a.value,
|
|
3750
3741
|
e.name,
|
|
@@ -3766,7 +3757,7 @@ const _n = {
|
|
|
3766
3757
|
}, [
|
|
3767
3758
|
k("div", {
|
|
3768
3759
|
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3769
|
-
innerHTML: h(
|
|
3760
|
+
innerHTML: h(Ae)(
|
|
3770
3761
|
t.value.line.tag.formatter,
|
|
3771
3762
|
a.value,
|
|
3772
3763
|
e.name,
|
|
@@ -3795,7 +3786,7 @@ const _n = {
|
|
|
3795
3786
|
"font-size": A.value.plotLabels,
|
|
3796
3787
|
"text-anchor": "end",
|
|
3797
3788
|
fill: e.color,
|
|
3798
|
-
innerHTML: h(
|
|
3789
|
+
innerHTML: h(fa)({
|
|
3799
3790
|
content: e.name,
|
|
3800
3791
|
fontSize: A.value.plotLabels,
|
|
3801
3792
|
fill: e.color,
|
|
@@ -3812,7 +3803,7 @@ const _n = {
|
|
|
3812
3803
|
"font-size": A.value.plotLabels,
|
|
3813
3804
|
"text-anchor": "start",
|
|
3814
3805
|
fill: e.color,
|
|
3815
|
-
innerHTML: h(
|
|
3806
|
+
innerHTML: h(fa)({
|
|
3816
3807
|
content: e.name,
|
|
3817
3808
|
fontSize: A.value.plotLabels,
|
|
3818
3809
|
fill: e.color,
|
|
@@ -3837,7 +3828,7 @@ const _n = {
|
|
|
3837
3828
|
"font-size": A.value.plotLabels,
|
|
3838
3829
|
"text-anchor": "end",
|
|
3839
3830
|
fill: e.color,
|
|
3840
|
-
innerHTML: h(
|
|
3831
|
+
innerHTML: h(fa)({
|
|
3841
3832
|
content: e.name,
|
|
3842
3833
|
fontSize: A.value.plotLabels,
|
|
3843
3834
|
fill: e.color,
|
|
@@ -3854,7 +3845,7 @@ const _n = {
|
|
|
3854
3845
|
"font-size": A.value.plotLabels,
|
|
3855
3846
|
"text-anchor": "start",
|
|
3856
3847
|
fill: e.color,
|
|
3857
|
-
innerHTML: h(
|
|
3848
|
+
innerHTML: h(fa)({
|
|
3858
3849
|
content: e.name,
|
|
3859
3850
|
fontSize: A.value.plotLabels,
|
|
3860
3851
|
fill: e.color,
|
|
@@ -3868,7 +3859,7 @@ const _n = {
|
|
|
3868
3859
|
], 64))), 128)),
|
|
3869
3860
|
p.value.useIndividualScale && !p.value.isStacked ? (n(), u(b, { key: 13 }, [
|
|
3870
3861
|
k("defs", null, [
|
|
3871
|
-
(n(!0), u(b, null, L(
|
|
3862
|
+
(n(!0), u(b, null, L(Xl.value, (e, i) => (n(), u("linearGradient", {
|
|
3872
3863
|
id: `individual_scale_gradient_${Z.value}_${i}`,
|
|
3873
3864
|
x1: "0%",
|
|
3874
3865
|
x2: "100%",
|
|
@@ -3887,7 +3878,7 @@ const _n = {
|
|
|
3887
3878
|
}, null, 8, ds)
|
|
3888
3879
|
], 8, cs))), 256))
|
|
3889
3880
|
]),
|
|
3890
|
-
(n(!0), u(b, null, L(
|
|
3881
|
+
(n(!0), u(b, null, L(Xl.value, (e, i) => (n(), u("rect", {
|
|
3891
3882
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ue.value - c.value.individualOffsetX,
|
|
3892
3883
|
y: c.value.top,
|
|
3893
3884
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
@@ -3950,9 +3941,9 @@ const _n = {
|
|
|
3950
3941
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3951
3942
|
transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3952
3943
|
style: C({
|
|
3953
|
-
cursor:
|
|
3944
|
+
cursor: pl() ? "pointer" : "default"
|
|
3954
3945
|
}),
|
|
3955
|
-
innerHTML: h(
|
|
3946
|
+
innerHTML: h(un)({
|
|
3956
3947
|
content: String(e.text),
|
|
3957
3948
|
fontSize: A.value.xAxis,
|
|
3958
3949
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -3968,7 +3959,7 @@ const _n = {
|
|
|
3968
3959
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3969
3960
|
transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3970
3961
|
style: C({
|
|
3971
|
-
cursor:
|
|
3962
|
+
cursor: pl() ? "pointer" : "default"
|
|
3972
3963
|
}),
|
|
3973
3964
|
onClick: () => ke(e, i)
|
|
3974
3965
|
}, re(e.text || ""), 13, gs))
|
|
@@ -4008,7 +3999,7 @@ const _n = {
|
|
|
4008
3999
|
y: Math.min(e.yTop, e.yBottom),
|
|
4009
4000
|
x: e.x1,
|
|
4010
4001
|
width: c.value.width,
|
|
4011
|
-
height: h(
|
|
4002
|
+
height: h(U)(e.areaHeight, 0),
|
|
4012
4003
|
fill: h(vt)(e.config.area.fill, e.config.area.opacity),
|
|
4013
4004
|
style: { animation: "none !important" }
|
|
4014
4005
|
}, null, 8, ks)) : g("", !0),
|
|
@@ -4052,7 +4043,7 @@ const _n = {
|
|
|
4052
4043
|
}, null, 8, Ms)
|
|
4053
4044
|
])) : g("", !0)
|
|
4054
4045
|
])) : g("", !0),
|
|
4055
|
-
|
|
4046
|
+
ea.value ? (n(), u("rect", Gt({ key: 2 }, Ma.value, {
|
|
4056
4047
|
"data-start": w.value.start,
|
|
4057
4048
|
"data-end": w.value.end
|
|
4058
4049
|
}), null, 16, Ls)) : g("", !0),
|
|
@@ -4060,7 +4051,7 @@ const _n = {
|
|
|
4060
4051
|
], 512)
|
|
4061
4052
|
], 46, gu)),
|
|
4062
4053
|
l.$slots.watermark ? (n(), u("div", Cs, [
|
|
4063
|
-
te(l.$slots, "watermark", Yt(dl({ isPrinting: h(
|
|
4054
|
+
te(l.$slots, "watermark", Yt(dl({ isPrinting: h(Bl) || h(nt) })), void 0, !0)
|
|
4064
4055
|
])) : g("", !0),
|
|
4065
4056
|
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
4066
4057
|
key: `tag_line_${e.id}`
|
|
@@ -4104,11 +4095,11 @@ const _n = {
|
|
|
4104
4095
|
d: "M 0,10 10,0 10,20 Z",
|
|
4105
4096
|
fill: e.color,
|
|
4106
4097
|
stroke: "none"
|
|
4107
|
-
}, null, 8,
|
|
4098
|
+
}, null, 8, Ts)
|
|
4108
4099
|
])),
|
|
4109
4100
|
k("div", {
|
|
4110
4101
|
class: "vue-ui-xy-tag-content",
|
|
4111
|
-
innerHTML: h(
|
|
4102
|
+
innerHTML: h(Ae)(
|
|
4112
4103
|
t.value.line.tag.formatter,
|
|
4113
4104
|
a.value,
|
|
4114
4105
|
e.name,
|
|
@@ -4118,7 +4109,7 @@ const _n = {
|
|
|
4118
4109
|
serieName: e.name
|
|
4119
4110
|
}
|
|
4120
4111
|
)
|
|
4121
|
-
}, null, 8,
|
|
4112
|
+
}, null, 8, zs)
|
|
4122
4113
|
], 4)) : g("", !0),
|
|
4123
4114
|
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), u("div", {
|
|
4124
4115
|
key: 1,
|
|
@@ -4160,7 +4151,7 @@ const _n = {
|
|
|
4160
4151
|
])),
|
|
4161
4152
|
k("div", {
|
|
4162
4153
|
class: "vue-ui-xy-tag-content",
|
|
4163
|
-
innerHTML: h(
|
|
4154
|
+
innerHTML: h(Ae)(
|
|
4164
4155
|
t.value.line.tag.formatter,
|
|
4165
4156
|
a.value,
|
|
4166
4157
|
e.name,
|
|
@@ -4220,7 +4211,7 @@ const _n = {
|
|
|
4220
4211
|
])),
|
|
4221
4212
|
k("div", {
|
|
4222
4213
|
class: "vue-ui-xy-tag-content",
|
|
4223
|
-
innerHTML: h(
|
|
4214
|
+
innerHTML: h(Ae)(
|
|
4224
4215
|
t.value.plot.tag.formatter,
|
|
4225
4216
|
a.value,
|
|
4226
4217
|
e.name,
|
|
@@ -4272,7 +4263,7 @@ const _n = {
|
|
|
4272
4263
|
])),
|
|
4273
4264
|
k("div", {
|
|
4274
4265
|
class: "vue-ui-xy-tag-content",
|
|
4275
|
-
innerHTML: h(
|
|
4266
|
+
innerHTML: h(Ae)(
|
|
4276
4267
|
t.value.plot.tag.formatter,
|
|
4277
4268
|
a.value,
|
|
4278
4269
|
e.name,
|
|
@@ -4297,9 +4288,9 @@ const _n = {
|
|
|
4297
4288
|
valueEnd: w.value.end,
|
|
4298
4289
|
start: w.value.start,
|
|
4299
4290
|
end: w.value.end,
|
|
4300
|
-
"onUpdate:start":
|
|
4291
|
+
"onUpdate:start": oa,
|
|
4301
4292
|
"onUpdate:end": La,
|
|
4302
|
-
selectedSeries:
|
|
4293
|
+
selectedSeries: zt.value,
|
|
4303
4294
|
customFormat: t.value.chart.zoom.customFormat,
|
|
4304
4295
|
background: t.value.chart.zoom.color,
|
|
4305
4296
|
fontSize: t.value.chart.zoom.fontSize,
|
|
@@ -4333,11 +4324,11 @@ const _n = {
|
|
|
4333
4324
|
focusOnDrag: t.value.chart.zoom.focusOnDrag,
|
|
4334
4325
|
focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
|
|
4335
4326
|
onReset: Ca,
|
|
4336
|
-
onTrapMouse:
|
|
4337
|
-
onFutureStart: s[1] || (s[1] = (e) =>
|
|
4338
|
-
onFutureEnd: s[2] || (s[2] = (e) =>
|
|
4327
|
+
onTrapMouse: kl,
|
|
4328
|
+
onFutureStart: s[1] || (s[1] = (e) => Vl("start", e)),
|
|
4329
|
+
onFutureEnd: s[2] || (s[2] = (e) => Vl("end", e)),
|
|
4339
4330
|
timeLabels: m.value,
|
|
4340
|
-
isPreview:
|
|
4331
|
+
isPreview: ea.value
|
|
4341
4332
|
}, {
|
|
4342
4333
|
"reset-action": we(({ reset: e }) => [
|
|
4343
4334
|
te(l.$slots, "reset-action", Yt(dl({ reset: e })), void 0, !0)
|
|
@@ -4354,7 +4345,7 @@ const _n = {
|
|
|
4354
4345
|
t.value.chart.legend.show ? (n(), u("div", {
|
|
4355
4346
|
key: 0,
|
|
4356
4347
|
ref_key: "chartLegend",
|
|
4357
|
-
ref:
|
|
4348
|
+
ref: Le,
|
|
4358
4349
|
class: "vue-ui-xy-legend",
|
|
4359
4350
|
style: C({
|
|
4360
4351
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
@@ -4376,7 +4367,7 @@ const _n = {
|
|
|
4376
4367
|
width: "20",
|
|
4377
4368
|
fill: e.color
|
|
4378
4369
|
}, null, 8, Xs),
|
|
4379
|
-
ml(
|
|
4370
|
+
ml(ma, {
|
|
4380
4371
|
plot: { x: 10, y: 9 },
|
|
4381
4372
|
radius: 4,
|
|
4382
4373
|
color: e.color,
|
|
@@ -4404,9 +4395,9 @@ const _n = {
|
|
|
4404
4395
|
width: "32",
|
|
4405
4396
|
stroke: "none",
|
|
4406
4397
|
fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4407
|
-
}, null, 8,
|
|
4408
|
-
])) : (n(), u("svg",
|
|
4409
|
-
ml(
|
|
4398
|
+
}, null, 8, qs)) : g("", !0)
|
|
4399
|
+
])) : (n(), u("svg", Us, [
|
|
4400
|
+
ml(ma, {
|
|
4410
4401
|
plot: { x: 6, y: 6 },
|
|
4411
4402
|
radius: 5,
|
|
4412
4403
|
color: e.color,
|
|
@@ -4420,7 +4411,7 @@ const _n = {
|
|
|
4420
4411
|
], 4)) : (n(), u("div", {
|
|
4421
4412
|
key: 1,
|
|
4422
4413
|
ref_key: "chartLegend",
|
|
4423
|
-
ref:
|
|
4414
|
+
ref: Le
|
|
4424
4415
|
}, [
|
|
4425
4416
|
te(l.$slots, "legend", { legend: et.value }, void 0, !0)
|
|
4426
4417
|
], 512))
|
|
@@ -4434,7 +4425,7 @@ const _n = {
|
|
|
4434
4425
|
te(l.$slots, "source", {}, void 0, !0)
|
|
4435
4426
|
], 512)) : g("", !0),
|
|
4436
4427
|
ml(h(ce), {
|
|
4437
|
-
show: p.value.showTooltip &&
|
|
4428
|
+
show: p.value.showTooltip && xl.value,
|
|
4438
4429
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4439
4430
|
color: t.value.chart.tooltip.color,
|
|
4440
4431
|
fontSize: t.value.chart.tooltip.fontSize,
|
|
@@ -4461,14 +4452,14 @@ const _n = {
|
|
|
4461
4452
|
]),
|
|
4462
4453
|
_: 3
|
|
4463
4454
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4464
|
-
Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(
|
|
4455
|
+
Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Yl.value.component), Gt({ key: 8 }, Yl.value.props, {
|
|
4465
4456
|
ref_key: "tableUnit",
|
|
4466
4457
|
ref: Je,
|
|
4467
4458
|
onClose: vo
|
|
4468
4459
|
}), xo({
|
|
4469
4460
|
content: we(() => [
|
|
4470
4461
|
k("div", {
|
|
4471
|
-
style: C(`${h(
|
|
4462
|
+
style: C(`${h(Bl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
4472
4463
|
}, [
|
|
4473
4464
|
k("div", Zs, [
|
|
4474
4465
|
Oa(k("input", {
|
|
@@ -4488,17 +4479,17 @@ const _n = {
|
|
|
4488
4479
|
}, null, 8, ["stroke"])
|
|
4489
4480
|
])
|
|
4490
4481
|
]),
|
|
4491
|
-
He.value ? (n(), ct(h(
|
|
4482
|
+
He.value ? (n(), ct(h(Cl), {
|
|
4492
4483
|
key: `sparkline_${gt.value}`,
|
|
4493
4484
|
dataset: Po.value,
|
|
4494
4485
|
config: Fo.value
|
|
4495
|
-
}, null, 8, ["dataset", "config"])) : (n(), ct(h(
|
|
4496
|
-
key: `table_${
|
|
4497
|
-
colNames:
|
|
4498
|
-
head:
|
|
4499
|
-
body:
|
|
4500
|
-
config:
|
|
4501
|
-
title: t.value.table.useDialog ? "" :
|
|
4486
|
+
}, null, 8, ["dataset", "config"])) : (n(), ct(h(Ne), {
|
|
4487
|
+
key: `table_${Nl.value}`,
|
|
4488
|
+
colNames: va.value.colNames,
|
|
4489
|
+
head: va.value.head,
|
|
4490
|
+
body: va.value.body,
|
|
4491
|
+
config: va.value.config,
|
|
4492
|
+
title: t.value.table.useDialog ? "" : Yl.value.title,
|
|
4502
4493
|
withCloseButton: !t.value.table.useDialog,
|
|
4503
4494
|
onClose: vo
|
|
4504
4495
|
}, {
|
|
@@ -4522,7 +4513,7 @@ const _n = {
|
|
|
4522
4513
|
t.value.table.useDialog ? {
|
|
4523
4514
|
name: "title",
|
|
4524
4515
|
fn: we(() => [
|
|
4525
|
-
bo(re(
|
|
4516
|
+
bo(re(Yl.value.title), 1)
|
|
4526
4517
|
]),
|
|
4527
4518
|
key: "0"
|
|
4528
4519
|
} : void 0,
|
|
@@ -4532,21 +4523,21 @@ const _n = {
|
|
|
4532
4523
|
k("button", {
|
|
4533
4524
|
tabindex: "0",
|
|
4534
4525
|
class: "vue-ui-user-options-button",
|
|
4535
|
-
onClick: s[3] || (s[3] = (e) =>
|
|
4526
|
+
onClick: s[3] || (s[3] = (e) => Ta(t.value.chart.userOptions.callbacks.csv))
|
|
4536
4527
|
}, [
|
|
4537
4528
|
ml(h(me), {
|
|
4538
4529
|
name: "excel",
|
|
4539
|
-
stroke:
|
|
4530
|
+
stroke: Yl.value.props.color
|
|
4540
4531
|
}, null, 8, ["stroke"])
|
|
4541
4532
|
])
|
|
4542
4533
|
]),
|
|
4543
4534
|
key: "1"
|
|
4544
4535
|
} : void 0
|
|
4545
4536
|
]), 1040)) : g("", !0),
|
|
4546
|
-
h(xe) ? (n(), ct(
|
|
4537
|
+
h(xe) ? (n(), ct(gn, { key: 9 })) : g("", !0)
|
|
4547
4538
|
], 46, fu));
|
|
4548
4539
|
}
|
|
4549
|
-
},
|
|
4540
|
+
}, hr = /* @__PURE__ */ Lo(Js, [["__scopeId", "data-v-d218b34b"]]);
|
|
4550
4541
|
export {
|
|
4551
|
-
|
|
4542
|
+
hr as default
|
|
4552
4543
|
};
|