vue-data-ui 2.16.5 → 2.16.6
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/README.md +2 -2
- package/dist/{Arrow-D9B36pfx.js → Arrow-DCqxVwey.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-Bn996RXm.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-OFfLkKNb.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-CHBLjKtZ.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-nBXoxXJH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-Bg_9KCU-.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-BPTpbnay.js} +3 -3
- package/dist/{Shape-CrstrfQ9.js → Shape-Bnf512BA.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-BrqtJG2E.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-C-rLATAw.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-Gi81VwUM.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CJxVw7-T.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-CBEK6_jo.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-CRHNL8VU.js} +1 -1
- package/dist/img-BgOg8opa.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-DvIXJm6t.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-DhTxBrbJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DrYHm61t.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-CWnXbGMb.js} +2 -2
- package/dist/{vue-data-ui-BB8Upnjm.js → vue-data-ui-B8EWlMIK.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-D55kCO5G.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-FeScjj7q.js} +23 -22
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-BgLbFBT9.js} +87 -86
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-DWmfnM25.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-BgQch3Fc.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-B59bCV5_.js} +74 -73
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-DxF0ELtv.js} +9 -8
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-D7arhDmb.js} +8 -7
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-Buu4VX3u.js} +40 -39
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-68NMPxxQ.js} +26 -25
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-swH9kRr3.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-M-9dPI5D.js} +45 -44
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-BDpMsTYe.js} +11 -10
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-Bes74INL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
- package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-B9PxVO4n.js} +8 -7
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-DtJ7qJib.js} +69 -68
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-ui-treemap-DzJsjtz7.js +0 -952
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as S, computed as f, ref as y, watch as Re, shallowRef as Oe, onMounted as ht, onBeforeUnmount as pt, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Ne, createBlock as I, createCommentVNode as h, createElementVNode as v, createVNode as Pe, createSlots as ft, withCtx as x, renderSlot as g, normalizeProps as T, guardReactiveProps as L, Fragment as F, renderList as R, toDisplayString as q, createTextVNode as gt } from "vue";
|
|
2
|
-
import { u as xt, c as mt, a as bt, C as J, o as kt, e as O, D as wt, v as W, f as $, X as _t, w as K, s as Ct, E as Ve, q as $t, r as At, x as zt, y as St } from "./index-
|
|
2
|
+
import { u as xt, c as mt, a as bt, C as J, o as kt, e as O, D as wt, v as W, f as $, X as _t, w as K, s as Ct, E as Ve, q as $t, r as At, x as zt, y as St } from "./index-DvIXJm6t.js";
|
|
3
3
|
import { t as It, u as Tt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Me } from "./useNestedProp-
|
|
5
|
-
import { u as Lt } from "./usePrinter-
|
|
4
|
+
import { u as Me } from "./useNestedProp-DrYHm61t.js";
|
|
5
|
+
import { u as Lt } from "./usePrinter-CWnXbGMb.js";
|
|
6
6
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ot from "./Title-
|
|
9
|
-
import { S as Nt } from "./Slicer-
|
|
8
|
+
import Ot from "./Title-Gi81VwUM.js";
|
|
9
|
+
import { S as Nt } from "./Slicer-BrqtJG2E.js";
|
|
10
10
|
import { u as Pt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
11
11
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"], Ut = { key: 1 }, Dt = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Ht = ["stop-color"], jt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 0 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 1 }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill", "font-weight"], ll = { key: 2 },
|
|
12
|
+
const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"], Ut = { key: 1 }, Dt = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Ht = ["stop-color"], jt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 0 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 1 }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill", "font-weight"], ll = { key: 2 }, al = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ol = { key: 3 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = { key: 0 }, nl = ["cx", "cy", "r", "fill"], rl = ["cx", "cy", "r", "fill"], dl = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x", "y", "height", "width", "fill", "rx"], hl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "onMouseover"], fl = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, gl = ["innerHTML"], xl = {
|
|
@@ -29,7 +29,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(Ee, { expose: Be }) {
|
|
32
|
-
const Ue = S(() => import("./vue-ui-accordion-
|
|
32
|
+
const Ue = S(() => import("./vue-ui-accordion-D55kCO5G.js")), De = S(() => import("./DataTable-CHBLjKtZ.js")), We = S(() => import("./PackageVersion-Bg_9KCU-.js")), Ge = S(() => import("./PenAndPaper-BPTpbnay.js")), He = S(() => import("./vue-ui-skeleton-BAOt2neL.js")), je = S(() => import("./Tooltip-CJxVw7-T.js")), Xe = S(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_candlestick: Ye } = xt(), i = Ee, E = f(() => !!i.dataset && i.dataset.length), k = y(mt()), qe = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), B = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
|
|
33
33
|
get: () => me(),
|
|
34
34
|
set: (t) => t
|
|
35
35
|
}), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Ft({ config: e.value }), { svgRef: xe } = Rt({ config: e.value.style.title });
|
|
@@ -38,13 +38,13 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
38
38
|
userConfig: i.config,
|
|
39
39
|
defaultConfig: Ye
|
|
40
40
|
});
|
|
41
|
-
let
|
|
42
|
-
return t.theme ?
|
|
41
|
+
let a = {};
|
|
42
|
+
return t.theme ? a = {
|
|
43
43
|
...Me({
|
|
44
44
|
userConfig: bt.vue_ui_candlestick[t.theme] || i.config,
|
|
45
45
|
defaultConfig: t
|
|
46
46
|
})
|
|
47
|
-
} :
|
|
47
|
+
} : a = t, i.config && J(i.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = i.config.style.zoom.startIndex : a.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = i.config.style.zoom.endIndex : a.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
48
48
|
}
|
|
49
49
|
Re(() => i.config, (t) => {
|
|
50
50
|
e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
|
|
@@ -66,7 +66,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
66
66
|
type: "dataset"
|
|
67
67
|
}), e.value.responsive) {
|
|
68
68
|
const t = It(() => {
|
|
69
|
-
const { width:
|
|
69
|
+
const { width: a, height: l } = Tt({
|
|
70
70
|
chart: B.value,
|
|
71
71
|
title: e.value.style.title.text ? re.value : null,
|
|
72
72
|
slicer: ve.value,
|
|
@@ -75,14 +75,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
75
75
|
noTitle: ce.value
|
|
76
76
|
});
|
|
77
77
|
requestAnimationFrame(() => {
|
|
78
|
-
c.value.width =
|
|
79
|
-
relator: Math.min(
|
|
78
|
+
c.value.width = a, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ve({
|
|
79
|
+
relator: Math.min(a, l),
|
|
80
80
|
adjuster: e.value.style.width,
|
|
81
81
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
82
82
|
threshold: 6,
|
|
83
83
|
fallback: 6
|
|
84
84
|
}), c.value.yAxisFontSize = Ve({
|
|
85
|
-
relator: Math.min(
|
|
85
|
+
relator: Math.min(a, l),
|
|
86
86
|
adjuster: e.value.style.width,
|
|
87
87
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
88
88
|
threshold: 6,
|
|
@@ -105,52 +105,52 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
105
105
|
showTable: e.value.table.show,
|
|
106
106
|
showTooltip: e.value.style.tooltip.show
|
|
107
107
|
}), n = f(() => {
|
|
108
|
-
const { top: t, right:
|
|
108
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
|
|
109
109
|
return {
|
|
110
110
|
top: t,
|
|
111
|
-
right: c.value.width -
|
|
112
|
-
left:
|
|
111
|
+
right: c.value.width - a,
|
|
112
|
+
left: o,
|
|
113
113
|
bottom: c.value.height - l,
|
|
114
|
-
width: c.value.width -
|
|
114
|
+
width: c.value.width - o - a,
|
|
115
115
|
height: c.value.height - t - l
|
|
116
116
|
};
|
|
117
117
|
}), U = f(() => i.dataset.length), p = y({
|
|
118
118
|
start: 0,
|
|
119
119
|
end: U.value
|
|
120
|
-
}), $e = f(() => i.dataset.map((t,
|
|
120
|
+
}), $e = f(() => i.dataset.map((t, a) => ({
|
|
121
121
|
...t,
|
|
122
|
-
absoluteIndex:
|
|
123
|
-
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t,
|
|
122
|
+
absoluteIndex: a
|
|
123
|
+
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, a) => {
|
|
124
124
|
[null, void 0].includes(t[0]) && O({
|
|
125
125
|
componentName: "VueUiCandlestick",
|
|
126
126
|
type: "datasetAttribute",
|
|
127
127
|
property: "period (index 0)",
|
|
128
|
-
index:
|
|
128
|
+
index: a
|
|
129
129
|
}), [null, void 0].includes(t[1]) && O({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
131
131
|
type: "datasetAttribute",
|
|
132
132
|
property: "open (index 1)",
|
|
133
|
-
index:
|
|
133
|
+
index: a
|
|
134
134
|
}), [null, void 0].includes(t[2]) && O({
|
|
135
135
|
componentName: "VueUiCandlestick",
|
|
136
136
|
type: "datasetAttribute",
|
|
137
137
|
property: "high (index 2)",
|
|
138
|
-
index:
|
|
138
|
+
index: a
|
|
139
139
|
}), [null, void 0].includes(t[3]) && O({
|
|
140
140
|
componentName: "VueUiCandlestick",
|
|
141
141
|
type: "datasetAttribute",
|
|
142
142
|
property: "low (index 3)",
|
|
143
|
-
index:
|
|
143
|
+
index: a
|
|
144
144
|
}), [null, void 0].includes(t[4]) && O({
|
|
145
145
|
componentName: "VueUiCandlestick",
|
|
146
146
|
type: "datasetAttribute",
|
|
147
147
|
property: "last (index 4)",
|
|
148
|
-
index:
|
|
148
|
+
index: a
|
|
149
149
|
}), [null, void 0].includes(t[5]) && O({
|
|
150
150
|
componentName: "VueUiCandlestick",
|
|
151
151
|
type: "datasetAttribute",
|
|
152
152
|
property: "volume (index 5)",
|
|
153
|
-
index:
|
|
153
|
+
index: a
|
|
154
154
|
});
|
|
155
155
|
}), $e.value.map((t) => ({
|
|
156
156
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -161,26 +161,26 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
161
161
|
last: t[4],
|
|
162
162
|
volume: t[5]
|
|
163
163
|
})))), d = f(() => n.value.width / $e.value.length), Ae = f(() => {
|
|
164
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max,
|
|
164
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
|
|
165
165
|
return {
|
|
166
166
|
max: t,
|
|
167
|
-
min:
|
|
167
|
+
min: a
|
|
168
168
|
};
|
|
169
169
|
}), w = f(() => wt(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
170
|
-
function H(t,
|
|
170
|
+
function H(t, a) {
|
|
171
171
|
return {
|
|
172
172
|
...t,
|
|
173
|
-
x: W(n.value.left +
|
|
173
|
+
x: W(n.value.left + a * d.value + d.value / 2),
|
|
174
174
|
y: W(n.value.top + (1 - (t - w.value.min) / (w.value.max - w.value.min)) * n.value.height),
|
|
175
175
|
value: W(t)
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
const m = f(() => le.value.map((t,
|
|
179
|
-
const l = H(t.open,
|
|
178
|
+
const m = f(() => le.value.map((t, a) => {
|
|
179
|
+
const l = H(t.open, a), o = H(t.high, a), C = H(t.low, a), b = H(t.last, a), z = t.last > t.open;
|
|
180
180
|
return {
|
|
181
181
|
period: t.period,
|
|
182
182
|
open: l,
|
|
183
|
-
high:
|
|
183
|
+
high: o,
|
|
184
184
|
low: C,
|
|
185
185
|
last: b,
|
|
186
186
|
volume: t.volume,
|
|
@@ -206,10 +206,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
206
206
|
} : {
|
|
207
207
|
start: i.dataset[p.value.start] ? i.dataset[p.value.start][0] : i.dataset[0][0],
|
|
208
208
|
end: i.dataset[p.value.end - 1] ? i.dataset[p.value.end - 1][0] : i.dataset.at(-1)[0]
|
|
209
|
-
}),
|
|
210
|
-
function et(t,
|
|
211
|
-
ee.value = t,
|
|
212
|
-
datapoint:
|
|
209
|
+
}), ae = y(null);
|
|
210
|
+
function et(t, a) {
|
|
211
|
+
ee.value = t, ae.value = {
|
|
212
|
+
datapoint: a,
|
|
213
213
|
seriesIndex: t,
|
|
214
214
|
series: m.value,
|
|
215
215
|
config: e.value
|
|
@@ -217,49 +217,49 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
217
217
|
const l = e.value.style.tooltip.customFormat;
|
|
218
218
|
if (zt(l) && St(() => l({
|
|
219
219
|
seriesIndex: t,
|
|
220
|
-
datapoint:
|
|
220
|
+
datapoint: a,
|
|
221
221
|
series: m.value,
|
|
222
222
|
config: e.value
|
|
223
223
|
})))
|
|
224
224
|
Z.value = l({
|
|
225
225
|
seriesIndex: t,
|
|
226
|
-
datapoint:
|
|
226
|
+
datapoint: a,
|
|
227
227
|
series: m.value,
|
|
228
228
|
config: e.value
|
|
229
229
|
});
|
|
230
230
|
else if (e.value.style.tooltip.show) {
|
|
231
|
-
let
|
|
232
|
-
const { period: C, open: b, high: z, low: se, last: ue, volume: Y, isBullish: Fe } = m.value[t], { period: ml, open:
|
|
233
|
-
|
|
234
|
-
fill="${e.value.style.layout.candle.gradient.show ? Fe ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Fe ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${rt}</div>`,
|
|
231
|
+
let o = "";
|
|
232
|
+
const { period: C, open: b, high: z, low: se, last: ue, volume: Y, isBullish: Fe } = m.value[t], { period: ml, open: ot, high: st, low: ut, last: it, volume: nt } = e.value.translations, rt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[t].text : C;
|
|
233
|
+
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
234
|
+
fill="${e.value.style.layout.candle.gradient.show ? Fe ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Fe ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${rt}</div>`, o += `${nt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
|
|
235
235
|
const dt = $({
|
|
236
236
|
p: e.value.style.tooltip.prefix,
|
|
237
237
|
v: b.value,
|
|
238
238
|
s: e.value.style.tooltip.suffix,
|
|
239
239
|
r: e.value.style.tooltip.roundingValue
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
o += `<div>${ot}: <b>${dt}</b></div>`;
|
|
242
242
|
const vt = $({
|
|
243
243
|
p: e.value.style.tooltip.prefix,
|
|
244
244
|
v: z.value,
|
|
245
245
|
s: e.value.style.tooltip.suffix,
|
|
246
246
|
r: e.value.style.tooltip.roundingValue
|
|
247
247
|
});
|
|
248
|
-
|
|
248
|
+
o += `<div>${st}: <b>${vt}</b></div>`;
|
|
249
249
|
const yt = $({
|
|
250
250
|
p: e.value.style.tooltip.prefix,
|
|
251
251
|
v: se.value,
|
|
252
252
|
s: e.value.style.tooltip.suffix,
|
|
253
253
|
r: e.value.style.tooltip.roundingValue
|
|
254
254
|
});
|
|
255
|
-
|
|
255
|
+
o += `<div>${ut}: <b>${yt}</b></div>`;
|
|
256
256
|
const ct = $({
|
|
257
257
|
p: e.value.style.tooltip.prefix,
|
|
258
258
|
v: ue.value,
|
|
259
259
|
s: e.value.style.tooltip.suffix,
|
|
260
260
|
r: e.value.style.tooltip.roundingValue
|
|
261
261
|
});
|
|
262
|
-
|
|
262
|
+
o += `<div>${it}: <b>${ct}</b></div>`, o += "</div>", Z.value = `<div style="text-align:right">${o}</div>`;
|
|
263
263
|
}
|
|
264
264
|
Q.value = !0;
|
|
265
265
|
}
|
|
@@ -274,54 +274,54 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
274
274
|
}, G.value += 1);
|
|
275
275
|
}
|
|
276
276
|
function lt(t) {
|
|
277
|
-
const
|
|
278
|
-
return t >
|
|
277
|
+
const a = U.value;
|
|
278
|
+
return t > a ? a : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
279
279
|
}
|
|
280
280
|
function Ie(t = null) {
|
|
281
281
|
D(() => {
|
|
282
|
-
const
|
|
282
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = m.value.map((b, z) => [
|
|
283
283
|
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[z].text : b.period,
|
|
284
284
|
b.open.value,
|
|
285
285
|
b.high.value,
|
|
286
286
|
b.low.value,
|
|
287
287
|
b.last.value,
|
|
288
288
|
b.volume
|
|
289
|
-
]),
|
|
289
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), C = $t(o);
|
|
290
290
|
t ? t(C) : At({ csvContent: C, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
const j = f(() => {
|
|
294
|
-
const t = m.value.map((
|
|
295
|
-
const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[C].text :
|
|
294
|
+
const t = m.value.map((o, C) => {
|
|
295
|
+
const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[C].text : o.period, z = $({
|
|
296
296
|
p: e.value.table.td.prefix,
|
|
297
|
-
v:
|
|
297
|
+
v: o.open.value,
|
|
298
298
|
s: e.value.table.td.suffix,
|
|
299
299
|
r: e.value.table.td.roundingValue
|
|
300
300
|
}), se = $({
|
|
301
301
|
p: e.value.table.td.prefix,
|
|
302
|
-
v:
|
|
302
|
+
v: o.high.value,
|
|
303
303
|
s: e.value.table.td.suffix,
|
|
304
304
|
r: e.value.table.td.roundingValue
|
|
305
305
|
}), ue = $({
|
|
306
306
|
p: e.value.table.td.prefix,
|
|
307
|
-
v:
|
|
307
|
+
v: o.low.value,
|
|
308
308
|
s: e.value.table.td.suffix,
|
|
309
309
|
r: e.value.table.td.roundingValue
|
|
310
310
|
}), Y = $({
|
|
311
311
|
p: e.value.table.td.prefix,
|
|
312
|
-
v:
|
|
312
|
+
v: o.last.value,
|
|
313
313
|
s: e.value.table.td.suffix,
|
|
314
314
|
r: e.value.table.td.roundingValue
|
|
315
315
|
});
|
|
316
316
|
return [
|
|
317
|
-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ?
|
|
317
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
|
|
318
318
|
z,
|
|
319
319
|
se,
|
|
320
320
|
ue,
|
|
321
321
|
Y,
|
|
322
|
-
`${isNaN(
|
|
322
|
+
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
323
323
|
];
|
|
324
|
-
}),
|
|
324
|
+
}), a = {
|
|
325
325
|
th: {
|
|
326
326
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
327
327
|
color: e.value.table.th.color,
|
|
@@ -341,9 +341,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
341
341
|
e.value.translations.last,
|
|
342
342
|
e.value.translations.volume
|
|
343
343
|
];
|
|
344
|
-
return { head: l, body: t, config:
|
|
344
|
+
return { head: l, body: t, config: a, colNames: l };
|
|
345
345
|
}), M = y(!1);
|
|
346
|
-
function
|
|
346
|
+
function at(t) {
|
|
347
347
|
M.value = t, ne.value += 1;
|
|
348
348
|
}
|
|
349
349
|
function Te() {
|
|
@@ -353,7 +353,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
353
353
|
_.value.showTooltip = !_.value.showTooltip;
|
|
354
354
|
}
|
|
355
355
|
const X = y(!1);
|
|
356
|
-
function
|
|
356
|
+
function oe() {
|
|
357
357
|
X.value = !X.value;
|
|
358
358
|
}
|
|
359
359
|
return Be({
|
|
@@ -362,15 +362,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
362
362
|
generateImage: Ce,
|
|
363
363
|
toggleTable: Te,
|
|
364
364
|
toggleTooltip: Le,
|
|
365
|
-
toggleAnnotator:
|
|
366
|
-
}), (t,
|
|
365
|
+
toggleAnnotator: oe
|
|
366
|
+
}), (t, a) => (s(), u("div", {
|
|
367
367
|
ref_key: "candlestickChart",
|
|
368
368
|
ref: B,
|
|
369
369
|
class: Ne(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
370
370
|
style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
371
371
|
id: `vue-ui-candlestick_${k.value}`,
|
|
372
|
-
onMouseenter:
|
|
373
|
-
onMouseleave:
|
|
372
|
+
onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
|
|
373
|
+
onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
|
|
374
374
|
}, [
|
|
375
375
|
e.value.userOptions.buttons.annotator ? (s(), I(r(Ge), {
|
|
376
376
|
key: 0,
|
|
@@ -378,7 +378,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
378
378
|
backgroundColor: e.value.style.backgroundColor,
|
|
379
379
|
color: e.value.style.color,
|
|
380
380
|
active: X.value,
|
|
381
|
-
onClose:
|
|
381
|
+
onClose: oe
|
|
382
382
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
383
383
|
Je.value ? (s(), u("div", {
|
|
384
384
|
key: 1,
|
|
@@ -430,21 +430,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
430
430
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
431
431
|
isAnnotation: X.value,
|
|
432
432
|
callbacks: e.value.userOptions.callbacks,
|
|
433
|
-
|
|
433
|
+
printScale: e.value.userOptions.print.scale,
|
|
434
|
+
onToggleFullscreen: at,
|
|
434
435
|
onGeneratePdf: r(_e),
|
|
435
436
|
onGenerateCsv: Ie,
|
|
436
437
|
onGenerateImage: r(Ce),
|
|
437
438
|
onToggleTable: Te,
|
|
438
439
|
onToggleTooltip: Le,
|
|
439
|
-
onToggleAnnotator:
|
|
440
|
+
onToggleAnnotator: oe,
|
|
440
441
|
style: ie({
|
|
441
442
|
visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
|
|
442
443
|
})
|
|
443
444
|
}, ft({ _: 2 }, [
|
|
444
445
|
t.$slots.menuIcon ? {
|
|
445
446
|
name: "menuIcon",
|
|
446
|
-
fn: x(({ isOpen: l, color:
|
|
447
|
-
g(t.$slots, "menuIcon", T(L({ isOpen: l, color:
|
|
447
|
+
fn: x(({ isOpen: l, color: o }) => [
|
|
448
|
+
g(t.$slots, "menuIcon", T(L({ isOpen: l, color: o })), void 0, !0)
|
|
448
449
|
]),
|
|
449
450
|
key: "0"
|
|
450
451
|
} : void 0,
|
|
@@ -485,19 +486,19 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
485
486
|
} : void 0,
|
|
486
487
|
t.$slots.optionFullscreen ? {
|
|
487
488
|
name: "optionFullscreen",
|
|
488
|
-
fn: x(({ toggleFullscreen: l, isFullscreen:
|
|
489
|
-
g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen:
|
|
489
|
+
fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
490
|
+
g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
490
491
|
]),
|
|
491
492
|
key: "6"
|
|
492
493
|
} : void 0,
|
|
493
494
|
t.$slots.optionAnnotator ? {
|
|
494
495
|
name: "optionAnnotator",
|
|
495
|
-
fn: x(({ toggleAnnotator: l, isAnnotator:
|
|
496
|
-
g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator:
|
|
496
|
+
fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
497
|
+
g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
497
498
|
]),
|
|
498
499
|
key: "7"
|
|
499
500
|
} : void 0
|
|
500
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
501
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
501
502
|
E.value ? (s(), u("svg", {
|
|
502
503
|
key: 4,
|
|
503
504
|
ref_key: "svgRef",
|
|
@@ -580,7 +581,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
580
581
|
}, null, 8, Qt)
|
|
581
582
|
])) : h("", !0),
|
|
582
583
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Zt, [
|
|
583
|
-
(s(!0), u(F, null, R(Qe.value, (l,
|
|
584
|
+
(s(!0), u(F, null, R(Qe.value, (l, o) => (s(), u("g", null, [
|
|
584
585
|
l.value >= w.value.min && l.value <= w.value.max ? (s(), u("line", {
|
|
585
586
|
key: 0,
|
|
586
587
|
x1: n.value.left,
|
|
@@ -608,20 +609,20 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
608
609
|
]))), 256))
|
|
609
610
|
])) : h("", !0),
|
|
610
611
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ll, [
|
|
611
|
-
(s(!0), u(F, null, R(Ze.value, (l,
|
|
612
|
+
(s(!0), u(F, null, R(Ze.value, (l, o) => (s(), u("g", null, [
|
|
612
613
|
v("text", {
|
|
613
|
-
transform: `translate(${n.value.left + d.value *
|
|
614
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
614
615
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
615
616
|
"font-size": c.value.xAxisFontSize,
|
|
616
617
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
617
618
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
618
|
-
}, q(l), 9,
|
|
619
|
+
}, q(l), 9, al)
|
|
619
620
|
]))), 256))
|
|
620
621
|
])) : h("", !0),
|
|
621
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g",
|
|
622
|
-
(s(!0), u(F, null, R(P.value, (l,
|
|
622
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
|
|
623
|
+
(s(!0), u(F, null, R(P.value, (l, o) => (s(), u("g", null, [
|
|
623
624
|
v("text", {
|
|
624
|
-
transform: `translate(${n.value.left + d.value *
|
|
625
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
625
626
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
626
627
|
"font-size": c.value.xAxisFontSize,
|
|
627
628
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
@@ -630,7 +631,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
630
631
|
]))), 256))
|
|
631
632
|
])) : h("", !0),
|
|
632
633
|
v("g", null, [
|
|
633
|
-
(s(!0), u(F, null, R(m.value, (l,
|
|
634
|
+
(s(!0), u(F, null, R(m.value, (l, o) => (s(), u("g", null, [
|
|
634
635
|
v("line", {
|
|
635
636
|
x1: l.open.x,
|
|
636
637
|
x2: l.open.x,
|
|
@@ -677,7 +678,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
677
678
|
]))), 256))
|
|
678
679
|
]),
|
|
679
680
|
v("g", null, [
|
|
680
|
-
(s(!0), u(F, null, R(m.value, (l,
|
|
681
|
+
(s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
|
|
681
682
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
682
683
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
683
684
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -686,7 +687,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
686
687
|
rx: e.value.style.layout.candle.borderRadius,
|
|
687
688
|
stroke: "none"
|
|
688
689
|
}, null, 8, cl))), 256)),
|
|
689
|
-
(s(!0), u(F, null, R(m.value, (l,
|
|
690
|
+
(s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
|
|
690
691
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
691
692
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
692
693
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -700,14 +701,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
700
701
|
}, null, 8, hl))), 256))
|
|
701
702
|
]),
|
|
702
703
|
v("g", null, [
|
|
703
|
-
(s(!0), u(F, null, R(m.value, (l,
|
|
704
|
-
x: n.value.left +
|
|
704
|
+
(s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
|
|
705
|
+
x: n.value.left + o * d.value,
|
|
705
706
|
y: n.value.top,
|
|
706
707
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
707
708
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
708
|
-
fill: ee.value ===
|
|
709
|
-
onMouseover: (C) => et(
|
|
710
|
-
onMouseleave:
|
|
709
|
+
fill: ee.value === o ? r(Ct)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
710
|
+
onMouseover: (C) => et(o, l),
|
|
711
|
+
onMouseleave: a[0] || (a[0] = (C) => {
|
|
711
712
|
ee.value = void 0, Q.value = !1;
|
|
712
713
|
})
|
|
713
714
|
}, null, 40, pl))), 256))
|
|
@@ -758,9 +759,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
758
759
|
valueStart: p.value.start,
|
|
759
760
|
valueEnd: p.value.end,
|
|
760
761
|
start: p.value.start,
|
|
761
|
-
"onUpdate:start":
|
|
762
|
+
"onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
|
|
762
763
|
end: p.value.end,
|
|
763
|
-
"onUpdate:end":
|
|
764
|
+
"onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
|
|
764
765
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
765
766
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : U.value,
|
|
766
767
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
@@ -804,10 +805,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
804
805
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
805
806
|
}, {
|
|
806
807
|
"tooltip-before": x(() => [
|
|
807
|
-
g(t.$slots, "tooltip-before", T(L({ ...
|
|
808
|
+
g(t.$slots, "tooltip-before", T(L({ ...ae.value })), void 0, !0)
|
|
808
809
|
]),
|
|
809
810
|
"tooltip-after": x(() => [
|
|
810
|
-
g(t.$slots, "tooltip-after", T(L({ ...
|
|
811
|
+
g(t.$slots, "tooltip-after", T(L({ ...ae.value })), void 0, !0)
|
|
811
812
|
]),
|
|
812
813
|
_: 3
|
|
813
814
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -835,7 +836,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
835
836
|
body: j.value.body,
|
|
836
837
|
config: j.value.config,
|
|
837
838
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
838
|
-
onClose:
|
|
839
|
+
onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
|
|
839
840
|
}, {
|
|
840
841
|
th: x(({ th: l }) => [
|
|
841
842
|
gt(q(l), 1)
|
|
@@ -850,7 +851,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
850
851
|
}, 8, ["config"])) : h("", !0)
|
|
851
852
|
], 46, Mt));
|
|
852
853
|
}
|
|
853
|
-
}, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-
|
|
854
|
+
}, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-1e1e32d3"]]);
|
|
854
855
|
export {
|
|
855
856
|
Ll as default
|
|
856
857
|
};
|