vue-data-ui 3.0.18 → 3.0.20
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-atQJQhSg.js → Arrow-C1fRvh9g.js} +1 -1
- package/dist/{BaseDraggableDialog-DAjDTF2E.js → BaseDraggableDialog-DMhsV373.js} +2 -2
- package/dist/{BaseIcon-CZRMSu7L.js → BaseIcon-DWAJ7jwb.js} +1 -1
- package/dist/{ColorPicker-NfoJDC1T.js → ColorPicker-CyexdZFM.js} +2 -2
- package/dist/{DataTable-B8fwwP3k.js → DataTable-DQiJu93V.js} +2 -2
- package/dist/{Legend-D6fG79Vb.js → Legend-D8Remudy.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Dkcjk8W0.js → NonSvgPenAndPaper-mtcA1nKZ.js} +3 -3
- package/dist/{PackageVersion-CgspZZpA.js → PackageVersion-DumR2qGe.js} +1 -1
- package/dist/{PenAndPaper-CqngHFG4.js → PenAndPaper-Cu6GxtQ6.js} +3 -3
- package/dist/{Shape-BDZG6rn4.js → Shape-DdBsBent.js} +1 -1
- package/dist/{Slicer-CuQsQK2M.js → Slicer-DljgQEsA.js} +2 -2
- package/dist/{SparkTooltip-BbRyUM8D.js → SparkTooltip-QUBOYZxA.js} +1 -1
- package/dist/{Title-Cg1YYB1O.js → Title-D7x4zGG0.js} +1 -1
- package/dist/{Tooltip-Bbr0zB06.js → Tooltip-Bsa6EuEm.js} +1 -1
- package/dist/{UserOptions-B47zyMrH.js → UserOptions-DPUL9riB.js} +2 -2
- package/dist/{dom-to-png-C_TEDIxO.js → dom-to-png-tvYSu_tu.js} +1 -1
- package/dist/{img-ZcIvlri1.js → img-0hGxF-z_.js} +1 -1
- package/dist/{index-DJSyeunB.js → index-DfF9BVIH.js} +1 -1
- package/dist/{pdf-CzL6RrTK.js → pdf-B0KxeNiX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BXmemlo2.js → useAutoSizeLabelsInsideViewbox-DL5z_5Cd.js} +1 -1
- package/dist/{useNestedProp-CRd5Y8D5.js → useNestedProp-hio_vSDF.js} +1 -1
- package/dist/{usePrinter-CbqromOy.js → usePrinter-GwUP6s4H.js} +2 -2
- package/dist/{vue-data-ui-ByCKcztg.js → vue-data-ui-CG0uc0kR.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Bqe9JRoY.js → vue-ui-3d-bar-CnXwUZIv.js} +6 -6
- package/dist/{vue-ui-accordion-D39N-6DM.js → vue-ui-accordion-CAS1QxHB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-ORcVPIbc.js → vue-ui-age-pyramid-Dk4PsM4Q.js} +6 -6
- package/dist/{vue-ui-annotator-Q0Kxdr3n.js → vue-ui-annotator-C5cJH_OI.js} +2 -2
- package/dist/{vue-ui-bullet-Mma5ZtPW.js → vue-ui-bullet-C4U_ylLQ.js} +7 -7
- package/dist/{vue-ui-candlestick-BP7uo49E.js → vue-ui-candlestick-CxhAiN5U.js} +90 -90
- package/dist/{vue-ui-carousel-table-SwxKShB5.js → vue-ui-carousel-table-DnAiljh3.js} +4 -4
- package/dist/{vue-ui-chestnut-C2W_Er7l.js → vue-ui-chestnut-Buv0yvKE.js} +5 -5
- package/dist/{vue-ui-chord-CXIcOc1C.js → vue-ui-chord-T67meiPg.js} +8 -8
- package/dist/{vue-ui-circle-pack-COazmWem.js → vue-ui-circle-pack-D_3lpfLF.js} +6 -6
- package/dist/{vue-ui-cursor-Clu87afC.js → vue-ui-cursor-BzvPug-A.js} +2 -2
- package/dist/{vue-ui-dashboard-I50n02HH.js → vue-ui-dashboard-CL_F4ps9.js} +62 -62
- package/dist/{vue-ui-digits-BmNIUhFs.js → vue-ui-digits-hoiK52LV.js} +2 -2
- package/dist/{vue-ui-donut-DGmBWk6O.js → vue-ui-donut-CklK_gWu.js} +8 -8
- package/dist/{vue-ui-donut-evolution-PCuapLo2.js → vue-ui-donut-evolution-DSv3vrSC.js} +71 -71
- package/dist/{vue-ui-dumbbell-CfUwsxj6.js → vue-ui-dumbbell-D_x6uKYA.js} +7 -7
- package/dist/{vue-ui-flow-Cjv_jN1a.js → vue-ui-flow-CY-eyF-t.js} +7 -7
- package/dist/{vue-ui-funnel-Cu_Kt_ky.js → vue-ui-funnel-D2dFWf96.js} +6 -6
- package/dist/{vue-ui-galaxy-BQP93gJH.js → vue-ui-galaxy-dQ4w5UnI.js} +5 -5
- package/dist/{vue-ui-gauge-Dke3-wg1.js → vue-ui-gauge-qG0d7loE.js} +7 -7
- package/dist/{vue-ui-gizmo-BlJ_OcXd.js → vue-ui-gizmo-sFJNS_ns.js} +3 -3
- package/dist/{vue-ui-heatmap-DR8QlFIe.js → vue-ui-heatmap-CJf7_Qfe.js} +7 -7
- package/dist/{vue-ui-history-plot-DqieS3Hl.js → vue-ui-history-plot-B0_y082J.js} +7 -7
- package/dist/{vue-ui-kpi-Fh9nlxXK.js → vue-ui-kpi-DoMswQpf.js} +3 -3
- package/dist/{vue-ui-mini-loader-CZDoacHN.js → vue-ui-mini-loader-C7OePX97.js} +2 -2
- package/dist/{vue-ui-molecule-u7kjgf0d.js → vue-ui-molecule-XdL--dz7.js} +5 -5
- package/dist/{vue-ui-mood-radar-BSYhNsbr.js → vue-ui-mood-radar-CT7IXgK2.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Duo-d25u.js → vue-ui-nested-donuts-c4oPkcOR.js} +9 -9
- package/dist/{vue-ui-onion-xaIW9KC8.js → vue-ui-onion-D4i0uoIa.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DODQIP0e.js → vue-ui-parallel-coordinate-plot-COuSaI6B.js} +8 -8
- package/dist/{vue-ui-quadrant-NkZBklZN.js → vue-ui-quadrant-CchBt_6l.js} +8 -8
- package/dist/{vue-ui-quick-chart-DBvOhC7F.js → vue-ui-quick-chart-pPlw-TwN.js} +6 -6
- package/dist/{vue-ui-radar-Di_J5YmQ.js → vue-ui-radar-9_-UIzMY.js} +8 -8
- package/dist/{vue-ui-rating-BdJYTUqV.js → vue-ui-rating-B--qyFQ8.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJk_p5SB.js → vue-ui-relation-circle-DD-aKvk_.js} +7 -7
- package/dist/{vue-ui-ridgeline-uZV7Q1Ek.js → vue-ui-ridgeline-JGphxcie.js} +8 -8
- package/dist/{vue-ui-rings-Cs6aKNya.js → vue-ui-rings-DaaFARfn.js} +8 -8
- package/dist/{vue-ui-scatter-DdKgAbzn.js → vue-ui-scatter-BEuy8BPA.js} +8 -8
- package/dist/{vue-ui-skeleton-MDNCHfRi.js → vue-ui-skeleton-xXOE_R9a.js} +3 -3
- package/dist/{vue-ui-smiley-1XU7j0OP.js → vue-ui-smiley-OJsMggd0.js} +2 -2
- package/dist/{vue-ui-spark-trend-C_cN22Na.js → vue-ui-spark-trend-CMKd6oRL.js} +3 -3
- package/dist/{vue-ui-sparkbar-CLmSAXY3.js → vue-ui-sparkbar-By1vDh2m.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BtlIUrbl.js → vue-ui-sparkgauge-BkHnYufn.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B-28r0SJ.js → vue-ui-sparkhistogram-BjG050oU.js} +4 -4
- package/dist/{vue-ui-sparkline-NNwgq93f.js → vue-ui-sparkline-BZEmzwg5.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cm5-KZrS.js → vue-ui-sparkstackbar-DiZ7159Z.js} +3 -3
- package/dist/{vue-ui-stackbar-BNLmWzBl.js → vue-ui-stackbar-CkMdwfRB.js} +11 -11
- package/dist/{vue-ui-strip-plot-DtGB_k0x.js → vue-ui-strip-plot-EwBZVApZ.js} +7 -7
- package/dist/{vue-ui-table-BzopiIhG.js → vue-ui-table-Da7sMO5S.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dk9PvK6o.js → vue-ui-table-heatmap-DJD02Ieo.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BQ85WQiE.js → vue-ui-table-sparkline-d1MqvDFW.js} +4 -4
- package/dist/{vue-ui-thermometer-C9pdTuNH.js → vue-ui-thermometer-BYfo5PLX.js} +7 -7
- package/dist/{vue-ui-timer-7pTQcY8d.js → vue-ui-timer-DN72cEDC.js} +5 -5
- package/dist/{vue-ui-tiremarks-DY1eMCWO.js → vue-ui-tiremarks-DS33hTNC.js} +6 -6
- package/dist/{vue-ui-treemap-B1Jj743-.js → vue-ui-treemap-C4picIe4.js} +8 -8
- package/dist/{vue-ui-vertical-bar-B4t8TdJe.js → vue-ui-vertical-bar-C3aCwokO.js} +9 -9
- package/dist/{vue-ui-waffle-C2zcfy2o.js → vue-ui-waffle-DTWUwzDT.js} +8 -8
- package/dist/{vue-ui-wheel-C32ymqbU.js → vue-ui-wheel-DbBGjZE0.js} +6 -6
- package/dist/{vue-ui-word-cloud-BEXRcDtH.js → vue-ui-word-cloud-Bk0aUw0d.js} +6 -6
- package/dist/{vue-ui-world-ClwNLXYk.js → vue-ui-world-Ca5HZWlH.js} +6 -6
- package/dist/{vue-ui-xy-canvas-DXH6PtJC.js → vue-ui-xy-canvas-BgGFyKhz.js} +10 -10
- package/dist/{vue-ui-xy-D3BEh4Ts.js → vue-ui-xy-hT-KqQhJ.js} +9 -9
- package/package.json +2 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as D, computed as g, ref as r, toRefs as Rt, watch as pe, shallowRef as Xe, onMounted as Ot, onBeforeUnmount as je, watchEffect as Nt, nextTick as be, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as me, normalizeClass as
|
|
2
|
-
import { u as Vt, c as Bt, t as Mt, b as Ut, C as Z, o as qe, f as M, D as Wt, h as X, i as
|
|
1
|
+
import { defineAsyncComponent as D, computed as g, ref as r, toRefs as Rt, watch as pe, shallowRef as Xe, onMounted as Ot, onBeforeUnmount as je, watchEffect as Nt, nextTick as be, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as me, normalizeClass as S, createBlock as N, createCommentVNode as p, createElementVNode as c, createVNode as Ye, createSlots as Pt, withCtx as x, renderSlot as b, normalizeProps as P, guardReactiveProps as E, Fragment as V, renderList as B, toDisplayString as Q, createTextVNode as Et } from "vue";
|
|
2
|
+
import { u as Vt, c as Bt, t as Mt, b as Ut, C as Z, o as qe, f as M, D as Wt, h as X, i as L, X as Dt, x as ee, s as Ht, E as Je, v as Gt, w as Xt, y as jt, z as Yt } from "./index-DfF9BVIH.js";
|
|
3
3
|
import { t as Ke, u as qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Qe } from "./useNestedProp-
|
|
5
|
-
import { u as Jt } from "./usePrinter-
|
|
4
|
+
import { u as Qe } from "./useNestedProp-hio_vSDF.js";
|
|
5
|
+
import { u as Jt } from "./usePrinter-GwUP6s4H.js";
|
|
6
6
|
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as Zt, B as el } from "./useLoading-D7YHNtLX.js";
|
|
9
|
-
import tl from "./Title-
|
|
10
|
-
import { S as ll } from "./Slicer-
|
|
9
|
+
import tl from "./Title-D7x4zGG0.js";
|
|
10
|
+
import { S as ll } from "./Slicer-DljgQEsA.js";
|
|
11
11
|
import { u as al } from "./useTimeLabels-4la0yDx0.js";
|
|
12
|
-
import ol from "./img-
|
|
12
|
+
import ol from "./img-0hGxF-z_.js";
|
|
13
13
|
import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
14
|
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "width", "height"], vl = { key: 1 }, dl = ["id"], yl = ["stop-color"], cl = ["stop-color"], hl = ["stop-color"], fl = ["id"], gl = ["stop-color"], pl = ["stop-color"], bl = ["stop-color"], ml = { key: 0 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = ["x", "y", "font-size", "fill", "font-weight"], _l = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Cl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], $l = ["x", "y", "width", "height", "fill", "rx"], zl = { key: 0 },
|
|
15
|
+
const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "width", "height"], vl = { key: 1 }, dl = ["id"], yl = ["stop-color"], cl = ["stop-color"], hl = ["stop-color"], fl = ["id"], gl = ["stop-color"], pl = ["stop-color"], bl = ["stop-color"], ml = { key: 0 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = ["x", "y", "font-size", "fill", "font-weight"], _l = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Cl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], $l = ["x", "y", "width", "height", "fill", "rx"], zl = { key: 0 }, Sl = ["cx", "cy", "r", "fill"], Ll = ["cx", "cy", "r", "fill"], Tl = { key: 1 }, Il = ["x", "y", "width", "height", "rx", "fill"], Fl = ["x", "y", "width", "height", "fill", "rx"], Rl = ["x", "y", "height", "width", "fill", "rx"], Ol = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Nl = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Pl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, El = ["innerHTML"], Vl = {
|
|
@@ -32,7 +32,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ze, { expose: et }) {
|
|
35
|
-
const tt = D(() => import("./vue-ui-accordion-
|
|
35
|
+
const tt = D(() => import("./vue-ui-accordion-CAS1QxHB.js")), lt = D(() => import("./DataTable-DQiJu93V.js")), at = D(() => import("./PackageVersion-DumR2qGe.js")), ot = D(() => import("./PenAndPaper-Cu6GxtQ6.js")), st = D(() => import("./Tooltip-Bsa6EuEm.js")), ut = D(() => import("./UserOptions-DPUL9riB.js")), { vue_ui_candlestick: it } = Vt(), h = Ze, te = g(() => !!h.dataset && h.dataset.length), $ = r(!1), le = r(null), w = r(Bt()), nt = r(null), ae = r(!1), oe = r(""), se = r(void 0), xe = r(0), T = r(null), ke = r(null), we = r(null), Ae = r(null), _e = r(null), Ce = r(null), j = r(0), $e = r(0), ze = r(0), ue = r(null), H = r(null), e = r(re()), { loading: z, FINAL_DATASET: A, manualLoading: ie } = Zt({
|
|
36
36
|
...Rt(h),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: re,
|
|
@@ -96,7 +96,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
99
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = Kt({ config: e.value }), { svgRef: Te } = Qt({ config: e.value.style.title });
|
|
100
100
|
function re() {
|
|
101
101
|
const t = Qe({
|
|
102
102
|
userConfig: h.config,
|
|
@@ -113,9 +113,9 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
113
113
|
pe(() => h.config, (t) => {
|
|
114
114
|
z.value || (e.value = re()), ne.value = !e.value.userOptions.showOnChartHover, Ie(), j.value += 1, ze.value += 1, $e.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
|
|
115
115
|
}, { deep: !0 }), pe(() => h.dataset, (t) => {
|
|
116
|
-
Array.isArray(t) && t.length > 0 && (ie.value = !1),
|
|
116
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1), v.value.start = 0, v.value.end = t.length, j.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
118
|
-
const
|
|
118
|
+
const y = r({
|
|
119
119
|
height: e.value.style.height,
|
|
120
120
|
width: e.value.style.width,
|
|
121
121
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
@@ -144,19 +144,19 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
144
144
|
noTitle: Ce.value
|
|
145
145
|
});
|
|
146
146
|
requestAnimationFrame(() => {
|
|
147
|
-
|
|
147
|
+
y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Je({
|
|
148
148
|
relator: Math.min(l, o),
|
|
149
149
|
adjuster: e.value.style.width,
|
|
150
150
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
151
151
|
threshold: 6,
|
|
152
152
|
fallback: 6
|
|
153
|
-
}),
|
|
153
|
+
}), y.value.yAxisFontSize = Je({
|
|
154
154
|
relator: Math.min(l, o),
|
|
155
155
|
adjuster: e.value.style.width,
|
|
156
156
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
157
157
|
threshold: 6,
|
|
158
158
|
fallback: 6
|
|
159
|
-
})) : (
|
|
159
|
+
})) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), le.value && clearTimeout(le.value), le.value = setTimeout(() => {
|
|
160
160
|
$.value = !0;
|
|
161
161
|
}, 10);
|
|
162
162
|
});
|
|
@@ -190,7 +190,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
190
190
|
});
|
|
191
191
|
const Pe = g(() => {
|
|
192
192
|
let t = 0;
|
|
193
|
-
return H.value && (t = ve.value +
|
|
193
|
+
return H.value && (t = ve.value + y.value.xAxisFontSize), t;
|
|
194
194
|
});
|
|
195
195
|
function dt() {
|
|
196
196
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
@@ -203,19 +203,19 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
203
203
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, m = dt(), f = 12;
|
|
204
204
|
return {
|
|
205
205
|
top: t + f,
|
|
206
|
-
right:
|
|
206
|
+
right: y.value.width - a,
|
|
207
207
|
left: o + m,
|
|
208
|
-
bottom:
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
208
|
+
bottom: y.value.height - l - Pe.value,
|
|
209
|
+
width: y.value.width - o - a - m,
|
|
210
|
+
height: y.value.height - t - l - Pe.value - f
|
|
211
211
|
};
|
|
212
|
-
}), G = g(() => A.value.length),
|
|
212
|
+
}), G = g(() => A.value.length), v = r({
|
|
213
213
|
start: 0,
|
|
214
214
|
end: G.value
|
|
215
215
|
}), Ee = g(() => A.value.map((t, a) => ({
|
|
216
216
|
...t,
|
|
217
217
|
absoluteIndex: a
|
|
218
|
-
})).slice(
|
|
218
|
+
})).slice(v.value.start, v.value.end)), de = g(() => (A.value.forEach((t, a) => {
|
|
219
219
|
[null, void 0].includes(t[0]) && M({
|
|
220
220
|
componentName: "VueUiCandlestick",
|
|
221
221
|
type: "datasetAttribute",
|
|
@@ -261,7 +261,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
261
261
|
low: t[3],
|
|
262
262
|
last: t[4],
|
|
263
263
|
volume: t[5]
|
|
264
|
-
})))),
|
|
264
|
+
})))), d = g(() => n.value.width / Ee.value.length), Ve = g(() => {
|
|
265
265
|
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...de.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;
|
|
266
266
|
return {
|
|
267
267
|
max: t,
|
|
@@ -271,7 +271,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
271
271
|
function Y(t, a) {
|
|
272
272
|
return {
|
|
273
273
|
...t,
|
|
274
|
-
x: X(n.value.left + a *
|
|
274
|
+
x: X(n.value.left + a * d.value + d.value / 2),
|
|
275
275
|
y: X(n.value.top + (1 - (t - C.value.min) / (C.value.max - C.value.min)) * n.value.height),
|
|
276
276
|
value: X(t)
|
|
277
277
|
};
|
|
@@ -299,23 +299,23 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
299
299
|
values: A.value.map((t) => t[0]),
|
|
300
300
|
maxDatapoints: A.value.length,
|
|
301
301
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
302
|
-
start:
|
|
303
|
-
end:
|
|
302
|
+
start: v.value.start,
|
|
303
|
+
end: v.value.end
|
|
304
304
|
})), Be = g(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
|
-
start: R.value.find((t) => t.absoluteIndex ===
|
|
306
|
-
end: R.value.find((t) => t.absoluteIndex ===
|
|
305
|
+
start: R.value.find((t) => t.absoluteIndex === v.value.start).text,
|
|
306
|
+
end: R.value.find((t) => t.absoluteIndex === v.value.end - 1).text
|
|
307
307
|
} : {
|
|
308
|
-
start: A.value[
|
|
309
|
-
end: A.value[
|
|
308
|
+
start: A.value[v.value.start] ? A.value[v.value.start][0] : A.value[0][0],
|
|
309
|
+
end: A.value[v.value.end - 1] ? A.value[v.value.end - 1][0] : A.value.at(-1)[0]
|
|
310
310
|
}), ye = r(null);
|
|
311
311
|
function ft(t, a) {
|
|
312
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t +
|
|
312
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + v.value.start });
|
|
313
313
|
}
|
|
314
314
|
function gt(t, a) {
|
|
315
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t +
|
|
315
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + v.value.start }), se.value = void 0, ae.value = !1;
|
|
316
316
|
}
|
|
317
317
|
function pt(t, a) {
|
|
318
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t +
|
|
318
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), se.value = t, ye.value = {
|
|
319
319
|
datapoint: a,
|
|
320
320
|
seriesIndex: t,
|
|
321
321
|
series: k.value,
|
|
@@ -336,31 +336,31 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
336
336
|
});
|
|
337
337
|
else if (e.value.style.tooltip.show) {
|
|
338
338
|
let o = "";
|
|
339
|
-
const { period: m, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Bl, open: At, high: _t, low: Ct, last: $t, volume: zt } = e.value.translations,
|
|
339
|
+
const { period: m, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Bl, open: At, high: _t, low: Ct, last: $t, volume: zt } = e.value.translations, St = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[t].text : m;
|
|
340
340
|
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}"
|
|
341
|
-
fill="${e.value.style.layout.candle.gradient.show ? Ge ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${
|
|
342
|
-
const
|
|
341
|
+
fill="${e.value.style.layout.candle.gradient.show ? Ge ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${St}</div>`, o += `${zt} : <b>${isNaN(K) ? "-" : Number(K.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}">`;
|
|
342
|
+
const Lt = L({
|
|
343
343
|
p: e.value.style.tooltip.prefix,
|
|
344
344
|
v: f.value,
|
|
345
345
|
s: e.value.style.tooltip.suffix,
|
|
346
346
|
r: e.value.style.tooltip.roundingValue
|
|
347
347
|
});
|
|
348
|
-
o += `<div>${At}: <b>${
|
|
349
|
-
const Tt =
|
|
348
|
+
o += `<div>${At}: <b>${Lt}</b></div>`;
|
|
349
|
+
const Tt = L({
|
|
350
350
|
p: e.value.style.tooltip.prefix,
|
|
351
351
|
v: O.value,
|
|
352
352
|
s: e.value.style.tooltip.suffix,
|
|
353
353
|
r: e.value.style.tooltip.roundingValue
|
|
354
354
|
});
|
|
355
355
|
o += `<div>${_t}: <b>${Tt}</b></div>`;
|
|
356
|
-
const It =
|
|
356
|
+
const It = L({
|
|
357
357
|
p: e.value.style.tooltip.prefix,
|
|
358
358
|
v: fe.value,
|
|
359
359
|
s: e.value.style.tooltip.suffix,
|
|
360
360
|
r: e.value.style.tooltip.roundingValue
|
|
361
361
|
});
|
|
362
362
|
o += `<div>${Ct}: <b>${It}</b></div>`;
|
|
363
|
-
const Ft =
|
|
363
|
+
const Ft = L({
|
|
364
364
|
p: e.value.style.tooltip.prefix,
|
|
365
365
|
v: ge.value,
|
|
366
366
|
s: e.value.style.tooltip.suffix,
|
|
@@ -377,7 +377,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
377
377
|
async function ce() {
|
|
378
378
|
await be(), await be();
|
|
379
379
|
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Me.value, o = G.value;
|
|
380
|
-
(t != null || a != null) && l ? (t != null
|
|
380
|
+
v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(mt(a + 1)) : (v.value.end = o, l.setEndValue(o))) : (v.value = { start: 0, end: o }, j.value += 1);
|
|
381
381
|
}
|
|
382
382
|
function mt(t) {
|
|
383
383
|
const a = G.value;
|
|
@@ -398,22 +398,22 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
398
398
|
}
|
|
399
399
|
const q = g(() => {
|
|
400
400
|
const t = k.value.map((o, m) => {
|
|
401
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[m].text : o.period, O =
|
|
401
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[m].text : o.period, O = L({
|
|
402
402
|
p: e.value.table.td.prefix,
|
|
403
403
|
v: o.open.value,
|
|
404
404
|
s: e.value.table.td.suffix,
|
|
405
405
|
r: e.value.table.td.roundingValue
|
|
406
|
-
}), fe =
|
|
406
|
+
}), fe = L({
|
|
407
407
|
p: e.value.table.td.prefix,
|
|
408
408
|
v: o.high.value,
|
|
409
409
|
s: e.value.table.td.suffix,
|
|
410
410
|
r: e.value.table.td.roundingValue
|
|
411
|
-
}), ge =
|
|
411
|
+
}), ge = L({
|
|
412
412
|
p: e.value.table.td.prefix,
|
|
413
413
|
v: o.low.value,
|
|
414
414
|
s: e.value.table.td.suffix,
|
|
415
415
|
r: e.value.table.td.roundingValue
|
|
416
|
-
}), K =
|
|
416
|
+
}), K = L({
|
|
417
417
|
p: e.value.table.td.prefix,
|
|
418
418
|
v: o.last.value,
|
|
419
419
|
s: e.value.table.td.suffix,
|
|
@@ -474,11 +474,11 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
474
474
|
aspectRatio: o
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
const kt = g(() =>
|
|
477
|
+
const kt = g(() => y.value.width), wt = g(() => y.value.height);
|
|
478
478
|
return sl({
|
|
479
479
|
timeLabelsEls: H,
|
|
480
480
|
timeLabels: R,
|
|
481
|
-
slicer:
|
|
481
|
+
slicer: v,
|
|
482
482
|
configRef: e,
|
|
483
483
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
484
484
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
@@ -503,11 +503,11 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
503
503
|
}), (t, a) => (s(), i("div", {
|
|
504
504
|
ref_key: "candlestickChart",
|
|
505
505
|
ref: T,
|
|
506
|
-
class:
|
|
506
|
+
class: S(`vue-ui-candlestick ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
507
507
|
style: me(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
508
508
|
id: `vue-ui-candlestick_${w.value}`,
|
|
509
|
-
onMouseenter: a[3] || (a[3] = () => u(
|
|
510
|
-
onMouseleave: a[4] || (a[4] = () => u(
|
|
509
|
+
onMouseenter: a[3] || (a[3] = () => u(Se)(!0)),
|
|
510
|
+
onMouseleave: a[4] || (a[4] = () => u(Se)(!1))
|
|
511
511
|
}, [
|
|
512
512
|
e.value.userOptions.buttons.annotator ? (s(), N(u(ot), {
|
|
513
513
|
key: 0,
|
|
@@ -544,7 +544,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
544
544
|
}
|
|
545
545
|
}, null, 8, ["config"]))
|
|
546
546
|
], 512)) : p("", !0),
|
|
547
|
-
e.value.userOptions.show && te.value && (u(
|
|
547
|
+
e.value.userOptions.show && te.value && (u(Le) || u(ne)) ? (s(), N(u(ut), {
|
|
548
548
|
ref_key: "details",
|
|
549
549
|
ref: nt,
|
|
550
550
|
key: `user_options_${xe.value}`,
|
|
@@ -576,7 +576,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
576
576
|
onToggleTooltip: He,
|
|
577
577
|
onToggleAnnotator: he,
|
|
578
578
|
style: me({
|
|
579
|
-
visibility: u(
|
|
579
|
+
visibility: u(Le) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
580
580
|
})
|
|
581
581
|
}, Pt({ _: 2 }, [
|
|
582
582
|
t.$slots.menuIcon ? {
|
|
@@ -641,8 +641,8 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
641
641
|
ref: Te,
|
|
642
642
|
xmlns: u(Dt),
|
|
643
643
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
644
|
-
class:
|
|
645
|
-
viewBox: `0 0 ${
|
|
644
|
+
class: S({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
645
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
|
|
646
646
|
style: me(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
647
647
|
}, [
|
|
648
648
|
Ye(u(at)),
|
|
@@ -736,12 +736,12 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
736
736
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("text", {
|
|
737
737
|
key: 1,
|
|
738
738
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
739
|
-
y: l.y +
|
|
740
|
-
"font-size":
|
|
739
|
+
y: l.y + y.value.yAxisFontSize / 3,
|
|
740
|
+
"font-size": y.value.yAxisFontSize,
|
|
741
741
|
"text-anchor": "end",
|
|
742
742
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
743
743
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
744
|
-
}, Q(u(
|
|
744
|
+
}, Q(u(L)({
|
|
745
745
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
746
746
|
v: l.value,
|
|
747
747
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
@@ -757,9 +757,9 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
757
757
|
(s(!0), i(V, null, B(ht.value, (l, o) => (s(), i("g", null, [
|
|
758
758
|
c("text", {
|
|
759
759
|
class: "vue-data-ui-time-label",
|
|
760
|
-
transform: `translate(${n.value.left +
|
|
760
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
761
761
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
762
|
-
"font-size":
|
|
762
|
+
"font-size": y.value.xAxisFontSize,
|
|
763
763
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
764
764
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
765
765
|
}, Q(l), 9, _l)
|
|
@@ -773,9 +773,9 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
773
773
|
(s(!0), i(V, null, B(R.value, (l, o) => (s(), i("g", null, [
|
|
774
774
|
c("text", {
|
|
775
775
|
class: "vue-data-ui-time-label",
|
|
776
|
-
transform: `translate(${n.value.left +
|
|
776
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
777
777
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
778
|
-
"font-size":
|
|
778
|
+
"font-size": y.value.xAxisFontSize,
|
|
779
779
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
780
780
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
781
781
|
}, Q(l.text), 9, Cl)
|
|
@@ -791,79 +791,79 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
791
791
|
fill: e.value.style.layout.wick.stroke,
|
|
792
792
|
stroke: "none",
|
|
793
793
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
794
|
-
class:
|
|
794
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
795
795
|
}, null, 10, $l),
|
|
796
796
|
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", zl, [
|
|
797
797
|
c("circle", {
|
|
798
798
|
cx: l.high.x,
|
|
799
799
|
cy: l.high.y,
|
|
800
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
800
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
801
801
|
fill: e.value.style.layout.wick.extremity.color,
|
|
802
|
-
class:
|
|
803
|
-
}, null, 10,
|
|
802
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
803
|
+
}, null, 10, Sl),
|
|
804
804
|
c("circle", {
|
|
805
805
|
cx: l.low.x,
|
|
806
806
|
cy: l.low.y,
|
|
807
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
807
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
808
808
|
fill: e.value.style.layout.wick.extremity.color,
|
|
809
|
-
class:
|
|
810
|
-
}, null, 10,
|
|
809
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
810
|
+
}, null, 10, Ll)
|
|
811
811
|
])) : p("", !0),
|
|
812
812
|
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Tl, [
|
|
813
813
|
c("rect", {
|
|
814
|
-
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
814
|
+
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
815
815
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
816
|
-
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
816
|
+
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
817
817
|
height: e.value.style.layout.wick.strokeWidth,
|
|
818
818
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
819
819
|
fill: e.value.style.layout.wick.extremity.color,
|
|
820
820
|
stroke: "none",
|
|
821
|
-
class:
|
|
821
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
822
822
|
}, null, 10, Il),
|
|
823
823
|
c("rect", {
|
|
824
|
-
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
824
|
+
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
825
825
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
826
|
-
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
826
|
+
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
827
827
|
height: e.value.style.layout.wick.strokeWidth,
|
|
828
828
|
fill: e.value.style.layout.wick.extremity.color,
|
|
829
829
|
stroke: "none",
|
|
830
830
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
831
|
-
class:
|
|
831
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
832
832
|
}, null, 10, Fl)
|
|
833
833
|
])) : p("", !0)
|
|
834
834
|
]))), 256))
|
|
835
835
|
]),
|
|
836
836
|
c("g", null, [
|
|
837
837
|
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
838
|
-
x: l.open.x -
|
|
838
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
839
839
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
840
840
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
841
|
-
width:
|
|
841
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
842
842
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
843
843
|
rx: e.value.style.layout.candle.borderRadius,
|
|
844
844
|
stroke: "none",
|
|
845
|
-
class:
|
|
845
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
846
846
|
}, null, 10, Rl))), 256)),
|
|
847
847
|
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
848
|
-
x: l.open.x -
|
|
848
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
849
849
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
850
850
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
851
|
-
width:
|
|
851
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
852
852
|
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${w.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${w.value})` : e.value.style.layout.candle.colors.bearish,
|
|
853
853
|
rx: e.value.style.layout.candle.borderRadius,
|
|
854
854
|
stroke: e.value.style.layout.candle.stroke,
|
|
855
855
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
856
856
|
"stroke-linecap": "round",
|
|
857
857
|
"stroke-linejoin": "round",
|
|
858
|
-
class:
|
|
858
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
859
859
|
}, null, 10, Ol))), 256))
|
|
860
860
|
]),
|
|
861
861
|
c("g", null, [
|
|
862
862
|
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
863
|
-
x: n.value.left + o *
|
|
863
|
+
x: n.value.left + o * d.value,
|
|
864
864
|
y: n.value.top,
|
|
865
865
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
866
|
-
width:
|
|
866
|
+
width: d.value <= 0 ? 1e-4 : d.value,
|
|
867
867
|
fill: se.value === o ? u(Ht)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
868
868
|
onMouseover: () => pt(o, l),
|
|
869
869
|
onMouseleave: () => gt(o, l),
|
|
@@ -871,7 +871,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
871
871
|
}, null, 40, Nl))), 256))
|
|
872
872
|
])
|
|
873
873
|
])) : p("", !0),
|
|
874
|
-
b(t.$slots, "svg", { svg:
|
|
874
|
+
b(t.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
875
875
|
], 14, nl)),
|
|
876
876
|
t.$slots.watermark ? (s(), i("div", Pl, [
|
|
877
877
|
b(t.$slots, "watermark", P(E({ isPrinting: u(Fe) || u(Re) })), void 0, !0)
|
|
@@ -896,12 +896,12 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
896
896
|
selectColor: e.value.style.zoom.highlightColor,
|
|
897
897
|
max: G.value,
|
|
898
898
|
min: 0,
|
|
899
|
-
valueStart:
|
|
900
|
-
valueEnd:
|
|
901
|
-
start:
|
|
902
|
-
"onUpdate:start": a[0] || (a[0] = (l) =>
|
|
903
|
-
end:
|
|
904
|
-
"onUpdate:end": a[1] || (a[1] = (l) =>
|
|
899
|
+
valueStart: v.value.start,
|
|
900
|
+
valueEnd: v.value.end,
|
|
901
|
+
start: v.value.start,
|
|
902
|
+
"onUpdate:start": a[0] || (a[0] = (l) => v.value.start = l),
|
|
903
|
+
end: v.value.end,
|
|
904
|
+
"onUpdate:end": a[1] || (a[1] = (l) => v.value.end = l),
|
|
905
905
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
906
906
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : G.value,
|
|
907
907
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
@@ -994,7 +994,7 @@ const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "wid
|
|
|
994
994
|
u(z) ? (s(), N(el, { key: 8 })) : p("", !0)
|
|
995
995
|
], 46, il));
|
|
996
996
|
}
|
|
997
|
-
}, ea = /* @__PURE__ */ ul(Vl, [["__scopeId", "data-v-
|
|
997
|
+
}, ea = /* @__PURE__ */ ul(Vl, [["__scopeId", "data-v-cf6a1ffe"]]);
|
|
998
998
|
export {
|
|
999
999
|
ea as default
|
|
1000
1000
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as ce, ref as n, useSlots as Se, onMounted as w, computed as R, watch as N, onBeforeUnmount as G, shallowRef as ze, nextTick as fe, createElementBlock as v, openBlock as r, unref as u, createElementVNode as U, createBlock as he, createCommentVNode as S, normalizeClass as Ee, normalizeStyle as h, createTextVNode as D, renderSlot as p, toDisplayString as X, Fragment as j, renderList as J, mergeProps as me, createSlots as He, withCtx as A, normalizeProps as ge, guardReactiveProps as be } from "vue";
|
|
2
|
-
import { u as Ne, c as Ue, o as K, f as Q, s as Ve, v as Me, w as Le } from "./index-
|
|
3
|
-
import { u as qe } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
2
|
+
import { u as Ne, c as Ue, o as K, f as Q, s as Ve, v as Me, w as Le } from "./index-DfF9BVIH.js";
|
|
3
|
+
import { u as qe } from "./useNestedProp-hio_vSDF.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-GwUP6s4H.js";
|
|
5
5
|
import { u as De } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
@@ -25,7 +25,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(T, { expose: ye }) {
|
|
28
|
-
const Ce = ce(() => import("./vue-ui-skeleton-
|
|
28
|
+
const Ce = ce(() => import("./vue-ui-skeleton-xXOE_R9a.js")), $e = ce(() => import("./UserOptions-DPUL9riB.js")), { vue_ui_carousel_table: Te } = Ne(), i = T, V = n(Ue()), W = n(!1), O = n(!!i.dataset), ke = Se();
|
|
29
29
|
w(() => {
|
|
30
30
|
Y();
|
|
31
31
|
}), w(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCssVars as rt, defineAsyncComponent as K, computed as k, ref as z, toRefs as it, watch as Fe, shallowRef as ct, onMounted as dt, onBeforeUnmount as vt, createElementBlock as o, openBlock as a, unref as n, normalizeStyle as y, normalizeClass as w, createBlock as ee, createCommentVNode as f, renderSlot as F, createSlots as yt, withCtx as B, normalizeProps as te, guardReactiveProps as le, createVNode as Le, createElementVNode as u, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as ae, withKeys as ht, nextTick as Ie } from "vue";
|
|
2
|
-
import { u as ft, c as bt, t as pt, a as gt, p as R, b as _t, d as xt, g as ve, f as oe, e as ye, o as mt, X as kt, s as A, x as Re, k as U, i as S, F as Pe, m as Oe, n as wt, q as Z, r as P, v as Ct, w as $t } from "./index-
|
|
2
|
+
import { u as ft, c as bt, t as pt, a as gt, p as R, b as _t, d as xt, g as ve, f as oe, e as ye, o as mt, X as kt, s as A, x as Re, k as U, i as S, F as Pe, m as Oe, n as wt, q as Z, r as P, v as Ct, w as $t } from "./index-DfF9BVIH.js";
|
|
3
3
|
import { u as Tt, B as zt } from "./useLoading-D7YHNtLX.js";
|
|
4
|
-
import { u as At } from "./usePrinter-
|
|
5
|
-
import { u as Ve } from "./useNestedProp-
|
|
4
|
+
import { u as At } from "./usePrinter-GwUP6s4H.js";
|
|
5
|
+
import { u as Ve } from "./useNestedProp-hio_vSDF.js";
|
|
6
6
|
import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ft from "./img-
|
|
8
|
+
import Ft from "./img-0hGxF-z_.js";
|
|
9
9
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const It = ["id"], Rt = {
|
|
11
11
|
key: 1,
|
|
@@ -48,7 +48,7 @@ const It = ["id"], Rt = {
|
|
|
48
48
|
rt((l) => ({
|
|
49
49
|
"49657cde": l.tdo
|
|
50
50
|
}));
|
|
51
|
-
const Xe = K(() => import("./BaseIcon-
|
|
51
|
+
const Xe = K(() => import("./BaseIcon-DWAJ7jwb.js")), Ee = K(() => import("./vue-ui-accordion-CAS1QxHB.js")), Ge = K(() => import("./PenAndPaper-Cu6GxtQ6.js")), Ue = K(() => import("./UserOptions-DPUL9riB.js")), De = K(() => import("./PackageVersion-DumR2qGe.js")), { vue_ui_chestnut: Ye } = ft(), M = Be, he = k(() => !!M.dataset && M.dataset.length), C = z(bt()), H = z(null), qe = z(null), fe = z(0), e = z(ne()), { loading: be, FINAL_DATASET: se } = Tt({
|
|
52
52
|
...it(M),
|
|
53
53
|
FINAL_CONFIG: e,
|
|
54
54
|
prepareConfig: ne,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCssVars as zt, defineAsyncComponent as H, ref as d, shallowRef as et, toRefs as Xt, watch as tt, computed as M, onMounted as at, onBeforeUnmount as ot, createElementBlock as i, openBlock as r, unref as v, normalizeStyle as D, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as $, createElementVNode as T, createSlots as lt, withCtx as S, normalizeProps as ie, guardReactiveProps as ce, withModifiers as nt, createVNode as ke, Fragment as z, renderList as G, mergeProps as Ut, toDisplayString as Q, Teleport as Vt, createTextVNode as jt, nextTick as Yt } from "vue";
|
|
2
|
-
import { u as Gt, c as $e, t as Wt, a as qt, p as ve, b as Ht, o as Qt, f as st, g as Zt, d as Jt, e as Kt, X as ea, F as ta, i as we, a0 as aa, ab as oa, v as la, w as na, k as sa } from "./index-
|
|
2
|
+
import { u as Gt, c as $e, t as Wt, a as qt, p as ve, b as Ht, o as Qt, f as st, g as Zt, d as Jt, e as Kt, X as ea, F as ta, i as we, a0 as aa, ab as oa, v as la, w as na, k as sa } from "./index-DfF9BVIH.js";
|
|
3
3
|
import { u as ra } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
-
import { u as rt } from "./useNestedProp-
|
|
4
|
+
import { u as rt } from "./useNestedProp-hio_vSDF.js";
|
|
5
5
|
import { u as ua } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import { u as ia } from "./usePrinter-
|
|
6
|
+
import { u as ia } from "./usePrinter-GwUP6s4H.js";
|
|
7
7
|
import { t as ca, u as va } from "./useResponsive-DfdjqQps.js";
|
|
8
|
-
import da from "./Legend-
|
|
9
|
-
import ha from "./Title-
|
|
10
|
-
import { _ as fa } from "./Shape-
|
|
11
|
-
import ga from "./img-
|
|
8
|
+
import da from "./Legend-D8Remudy.js";
|
|
9
|
+
import ha from "./Title-D7x4zGG0.js";
|
|
10
|
+
import { _ as fa } from "./Shape-DdBsBent.js";
|
|
11
|
+
import ga from "./img-0hGxF-z_.js";
|
|
12
12
|
import { u as pa, B as ba } from "./useLoading-D7YHNtLX.js";
|
|
13
13
|
import { _ as ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const ya = ["id"], ka = ["id"], $a = ["xmlns", "viewBox"], wa = ["width", "height"], Ca = { key: 1 }, Ma = ["id", "d"], xa = { key: 2 }, Aa = ["transform"], Ia = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], _a = ["d", "fill", "stroke", "stroke-width"], Pa = ["d", "fill"], Ta = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Sa = ["d", "fill", "stroke", "stroke-width"], Ba = ["d", "fill", "stroke", "stroke-width"], La = ["d", "fill", "stroke", "stroke-width"], Oa = { key: 0 }, Ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Na = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ra = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], Da = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Fa = { key: 1 }, za = ["font-size", "font-weight", "fill"], Xa = ["href"], Ua = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], Va = {
|
|
@@ -39,7 +39,7 @@ const ya = ["id"], ka = ["id"], $a = ["xmlns", "viewBox"], wa = ["width", "heigh
|
|
|
39
39
|
zt((e) => ({
|
|
40
40
|
"82435eb8": e.slicerColor
|
|
41
41
|
}));
|
|
42
|
-
const vt = H(() => import("./vue-ui-accordion-
|
|
42
|
+
const vt = H(() => import("./vue-ui-accordion-CAS1QxHB.js")), dt = H(() => import("./BaseIcon-DWAJ7jwb.js")), ht = H(() => import("./DataTable-DQiJu93V.js")), ft = H(() => import("./PackageVersion-DumR2qGe.js")), gt = H(() => import("./PenAndPaper-Cu6GxtQ6.js")), pt = H(() => import("./UserOptions-DPUL9riB.js")), { vue_ui_chord: bt } = Gt(), B = ut, oe = ct, E = d(!!B.dataset && Object.hasOwn(B.dataset, "matrix")), k = d($e()), w = d(null), b = d(null), g = d(null), Ce = d(0), N = d(null), Me = d(null), xe = d(null), Ae = d(null), Ie = d(null), de = d(0), he = d(0), fe = d(0), W = d(!1), X = et(null), q = et(null), _e = d(!1), a = d(pe()), { loading: Pe, FINAL_DATASET: C, manualLoading: Z } = pa({
|
|
43
43
|
...Xt(B),
|
|
44
44
|
FINAL_CONFIG: a,
|
|
45
45
|
prepareConfig: pe,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as rt, computed as _, defineAsyncComponent as X, ref as p, toRefs as it, watch as he, shallowRef as Ne, onMounted as ct, onBeforeUnmount as vt, watchEffect as dt, createElementBlock as b, openBlock as m, unref as i, normalizeStyle as ae, normalizeClass as Re, createBlock as B, createCommentVNode as w, renderSlot as k, createSlots as ht, withCtx as $, normalizeProps as Y, guardReactiveProps as Z, createVNode as ft, Fragment as le, renderList as mt, createElementVNode as z, mergeProps as De, toDisplayString as J, createTextVNode as yt, nextTick as Le } from "vue";
|
|
2
|
-
import { u as pt, c as Be, t as bt, a as fe, p as oe, b as gt, o as kt, f as xt, d as wt, e as Ct, j as Ve, i as me, X as _t, l as zt, F as K, al as $t, v as Tt, w as St, k as He } from "./index-
|
|
2
|
+
import { u as pt, c as Be, t as bt, a as fe, p as oe, b as gt, o as kt, f as xt, d as wt, e as Ct, j as Ve, i as me, X as _t, l as zt, F as K, al as $t, v as Tt, w as St, k as He } from "./index-DfF9BVIH.js";
|
|
3
3
|
import { t as Ft, u as Ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as It } from "./usePrinter-
|
|
4
|
+
import { u as It } from "./usePrinter-GwUP6s4H.js";
|
|
5
5
|
import { u as Pt, B as At } from "./useLoading-D7YHNtLX.js";
|
|
6
|
-
import { u as Ue } from "./useNestedProp-
|
|
6
|
+
import { u as Ue } from "./useNestedProp-hio_vSDF.js";
|
|
7
7
|
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Nt from "./img-
|
|
10
|
-
import Rt from "./Title-
|
|
9
|
+
import Nt from "./img-0hGxF-z_.js";
|
|
10
|
+
import Rt from "./Title-D7x4zGG0.js";
|
|
11
11
|
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
function je(r, v = 0) {
|
|
13
13
|
const f = r.reduce((o, { x: s, r: u }) => Math.min(o, s - u - v), 1 / 0), y = r.reduce((o, { x: s, r: u }) => Math.max(o, s + u + v), -1 / 0), d = r.reduce((o, { y: s, r: u }) => Math.min(o, s - u - v), 1 / 0), n = r.reduce((o, { y: s, r: u }) => Math.max(o, s + u + v), -1 / 0);
|
|
@@ -100,7 +100,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox", "height", "width"], Ht = ["x", "y",
|
|
|
100
100
|
"336045f2": L.value,
|
|
101
101
|
b72ba32a: ie.value
|
|
102
102
|
}));
|
|
103
|
-
const y = X(() => import("./vue-ui-accordion-
|
|
103
|
+
const y = X(() => import("./vue-ui-accordion-CAS1QxHB.js")), d = X(() => import("./DataTable-DQiJu93V.js")), n = X(() => import("./UserOptions-DPUL9riB.js")), o = X(() => import("./PenAndPaper-Cu6GxtQ6.js")), s = X(() => import("./PackageVersion-DumR2qGe.js")), u = r, x = f, { vue_ui_circle_pack: T } = pt(), V = _(() => !!u.dataset && u.dataset.length), S = p(Be()), C = p(null), H = p(null), ye = p(null), pe = p(0), be = p(0), ge = p(0), Xe = p(null), e = p(ue()), { loading: ke, FINAL_DATASET: xe } = Pt({
|
|
104
104
|
...it(u),
|
|
105
105
|
FINAL_CONFIG: e,
|
|
106
106
|
prepareConfig: ue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
|
|
2
|
-
import { u as F } from "./useNestedProp-
|
|
3
|
-
import { u as L, c as z, X as O, s as I } from "./index-
|
|
2
|
+
import { u as F } from "./useNestedProp-hio_vSDF.js";
|
|
3
|
+
import { u as L, c as z, X as O, s as I } from "./index-DfF9BVIH.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const N = ["xmlns", "height", "width"], T = {
|
|
6
6
|
id: "follower",
|