vue-data-ui 3.5.2 → 3.7.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/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,23 +1,40 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as zt, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Lt, a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { S as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as j, computed as d, ref as y, toRefs as Dl, watch as se, shallowRef as kt, onMounted as Ml, onBeforeUnmount as Ee, watchEffect as Il, nextTick as wt, createElementBlock as i, openBlock as u, normalizeStyle as ue, normalizeClass as V, createBlock as K, createCommentVNode as m, createElementVNode as g, createVNode as Re, unref as h, withCtx as b, renderSlot as x, normalizeProps as T, guardReactiveProps as D, createSlots as Ct, Fragment as z, renderList as M, toDisplayString as ie, mergeProps as At, resolveDynamicComponent as Bl, createTextVNode as $t } from "vue";
|
|
2
|
+
import { c as El, t as Rl, W as ge, o as Ft, g as J, F as Ol, M as H, K as Pl, d as U, X as Nl, h as fe, s as Vl, Y as _t, u as Ul, q as Wl, x as Xl, R as jl } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as zt, u as Hl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Gl, a as Oe } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as ql } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as Yl, B as Kl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Lt, a as Jl, l as Ql } from "./useTimeLabels-C5qMhpbe.js";
|
|
8
|
+
import { u as Zl } from "./useSvgExport-DrjCWun4.js";
|
|
9
|
+
import { u as eo } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
+
import { u as to } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as lo } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as oo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import ao from "./img-DUzJeMlr.js";
|
|
14
|
+
import so from "./Title-DfFUb9hd.js";
|
|
15
|
+
import { S as uo } from "./SlicerPreview-D76aSViW.js";
|
|
16
|
+
import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const St = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { selector: { color: "#CCCCCC" }, grid: { stroke: "#5A5A5A", xAxis: { dataLabels: { color: "#CCCCCC" } }, yAxis: { dataLabels: { color: "#CCCCCC" } } }, wick: { stroke: "#5A5A5A", extremity: { color: "#5A5A5A" } }, candle: { stroke: "#1A1A1A" } }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Tt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { selector: { color: "#424242" }, grid: { stroke: "#5D4037", xAxis: { dataLabels: { color: "#424242" } }, yAxis: { dataLabels: { color: "#424242" } } }, wick: { stroke: "#5D4037", extremity: { color: "#5D4037" } }, candle: { stroke: "#FFF8E1", colors: { bullish: "#D32F2F", bearish: "#F57C00" }, gradient: { show: !1 } } }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Dt = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { selector: { color: "#FFF8E1" }, grid: { stroke: "#5D4037", xAxis: { dataLabels: { color: "#BDBDBD" } }, yAxis: { dataLabels: { color: "#BDBDBD" } } }, wick: { stroke: "#BDBDBD", extremity: { color: "#BDBDBD" } }, candle: { stroke: "#1E1E1E", colors: { bullish: "#D32F2F", bearish: "#F57C00" }, gradient: { show: !1 } } }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Mt = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { selector: { color: "#7DA9B5" }, grid: { stroke: "#334C33", xAxis: { dataLabels: { color: "#99CC99" } }, yAxis: { dataLabels: { color: "#99CC99" } } }, wick: { stroke: "#334C33", extremity: { color: "#334C33" } }, candle: { stroke: "#1A1A1A", colors: { bullish: "#00FF00", bearish: "#334C33" }, gradient: { show: !1 } } }, zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, It = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { selector: { color: "#8F837A" }, grid: { stroke: "transparent", xAxis: { dataLabels: { color: "#8A9892" } }, yAxis: { dataLabels: { color: "#8A9892" } } }, wick: { stroke: "#D7E0D2", extremity: { shape: "circle", size: 2, color: "#C5B8A7" } }, candle: { stroke: "#fbfafa", colors: { bullish: "#A0AC94", bearish: "#C09E85" }, gradient: { show: !0 } } }, zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Bt = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { selector: { color: "#7DA9B5" }, grid: { stroke: "#334C33", xAxis: { dataLabels: { color: "#61747E" } }, yAxis: { dataLabels: { color: "#61747E" } } }, wick: { stroke: "#61747E", extremity: { color: "#61747E" } }, candle: { stroke: "#1A1A1A", colors: { bullish: "#92B0AB", bearish: "#EFECEC" }, gradient: { show: !1 } } }, zoom: { color: "#92B0AB", highlightColor: "#50606C" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Et = {
|
|
18
|
+
default: {},
|
|
19
|
+
dark: St,
|
|
20
|
+
celebration: Tt,
|
|
21
|
+
celebrationNight: Dt,
|
|
22
|
+
hack: Mt,
|
|
23
|
+
zen: It,
|
|
24
|
+
concrete: Bt
|
|
25
|
+
}, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
|
+
__proto__: null,
|
|
27
|
+
celebration: Tt,
|
|
28
|
+
celebrationNight: Dt,
|
|
29
|
+
concrete: Bt,
|
|
30
|
+
dark: St,
|
|
31
|
+
default: Et,
|
|
32
|
+
hack: Mt,
|
|
33
|
+
zen: It
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), no = ["id"], ro = ["xmlns", "aria-label", "viewBox"], co = ["x", "y", "width", "height"], vo = { key: 1 }, yo = ["id"], ho = ["stop-color"], mo = ["stop-color"], go = ["stop-color"], fo = ["id"], po = ["stop-color"], bo = ["stop-color"], xo = ["stop-color"], ko = { key: 0 }, wo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Co = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ao = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zo = ["x", "y", "font-size", "fill", "font-weight"], Lo = ["transform", "text-anchor", "font-size", "fill", "font-weight"], So = ["transform", "text-anchor", "font-size", "fill", "font-weight"], To = ["x", "y", "width", "height", "fill", "rx"], Do = { key: 0 }, Mo = ["cx", "cy", "r", "fill"], Io = ["cx", "cy", "r", "fill"], Bo = { key: 1 }, Eo = ["x", "y", "width", "height", "rx", "fill"], Ro = ["x", "y", "width", "height", "fill", "rx"], Oo = ["x", "y", "height", "width", "fill", "rx"], Po = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], No = ["d", "stroke"], Vo = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Uo = ["data-start", "data-end"], Wo = {
|
|
18
35
|
key: 4,
|
|
19
36
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
37
|
+
}, Xo = ["d", "stroke"], jo = ["d", "stroke", "stroke-width"], Ho = ["innerHTML"], Go = {
|
|
21
38
|
__name: "vue-ui-candlestick",
|
|
22
39
|
props: {
|
|
23
40
|
config: {
|
|
@@ -38,14 +55,14 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
38
55
|
}
|
|
39
56
|
},
|
|
40
57
|
emits: ["selectX"],
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
...
|
|
58
|
+
setup(Rt, { expose: Ot, emit: Pt }) {
|
|
59
|
+
const Nt = j(() => import("./BaseIcon-CofSxalQ.js")), Vt = j(() => import("./Tooltip-WD0Ros6G.js")), Ut = j(() => import("./vue-ui-accordion-DSdZUn2C.js")), Wt = j(() => import("./DataTable-CHaOCmsE.js")), Xt = j(() => import("./PenAndPaper-HCZQTkqi.js")), jt = j(() => import("./UserOptions-B3I-s3Lw.js")), Ht = j(() => import("./PackageVersion-Bq_mtsqr.js")), Gt = j(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_candlestick: qt } = Gl(), { isThemeValid: Yt, warnInvalidTheme: Kt } = eo(), f = Rt, Pe = Pt, pe = d(() => !!f.dataset && f.dataset.length), E = y(!1), be = y(null), I = y(El()), xe = y(!1), ke = y(""), R = y(void 0), Ne = y(0), O = y(null), Ve = y(null), Ue = y(null), Z = y(null), We = y(null), Xe = y(null), Jt = y(0), je = y(0), He = y(0), we = y(null), ee = y(null), te = y(null), Ce = y(null), Ge = y(null), e = y(_e()), { loading: P, FINAL_DATASET: k, manualLoading: Ae } = Yl({
|
|
60
|
+
...Dl(f),
|
|
44
61
|
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig:
|
|
62
|
+
prepareConfig: _e,
|
|
46
63
|
callback: () => {
|
|
47
64
|
Promise.resolve().then(async () => {
|
|
48
|
-
await
|
|
65
|
+
await de();
|
|
49
66
|
});
|
|
50
67
|
},
|
|
51
68
|
skeletonDataset: [
|
|
@@ -62,7 +79,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
62
79
|
[17304192e5, 890, 2330, 550, 1950, 3770],
|
|
63
80
|
[17330112e5, 1440, 3770, 890, 3200, 5100]
|
|
64
81
|
],
|
|
65
|
-
skeletonConfig:
|
|
82
|
+
skeletonConfig: Rl({
|
|
66
83
|
defaultConfig: e.value,
|
|
67
84
|
userConfig: {
|
|
68
85
|
useCssAnimation: !1,
|
|
@@ -109,132 +126,145 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
109
126
|
}
|
|
110
127
|
}
|
|
111
128
|
})
|
|
112
|
-
}), { userOptionsVisible:
|
|
113
|
-
function
|
|
114
|
-
|
|
129
|
+
}), { userOptionsVisible: $e, setUserOptionsVisibility: qe, keepUserOptionState: Ye } = to({ config: e.value }), { svgRef: Fe } = lo({ config: e.value.style.title });
|
|
130
|
+
function Qt() {
|
|
131
|
+
qe(!0);
|
|
115
132
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
133
|
+
function Zt() {
|
|
134
|
+
qe(!1), Pe("selectX", { seriesIndex: null, datapoint: null }), R.value = null;
|
|
118
135
|
}
|
|
119
|
-
function
|
|
120
|
-
const t =
|
|
121
|
-
userConfig:
|
|
122
|
-
defaultConfig:
|
|
136
|
+
function _e() {
|
|
137
|
+
const t = Oe({
|
|
138
|
+
userConfig: f.config,
|
|
139
|
+
defaultConfig: qt
|
|
123
140
|
});
|
|
124
|
-
let
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
141
|
+
let o = {};
|
|
142
|
+
const l = t.theme;
|
|
143
|
+
if (l)
|
|
144
|
+
if (!Yt.value(t))
|
|
145
|
+
Kt(t), o = t;
|
|
146
|
+
else {
|
|
147
|
+
const a = Oe({
|
|
148
|
+
userConfig: Et[l] || f.config,
|
|
149
|
+
defaultConfig: t
|
|
150
|
+
});
|
|
151
|
+
o = {
|
|
152
|
+
...Oe({
|
|
153
|
+
userConfig: f.config,
|
|
154
|
+
defaultConfig: a
|
|
155
|
+
})
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
else
|
|
159
|
+
o = t;
|
|
160
|
+
return f.config && ge(f.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = f.config.style.zoom.startIndex : o.style.zoom.startIndex = null, f.config && ge(f.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = f.config.style.zoom.endIndex : o.style.zoom.endIndex = null, f.config && ge(f.config, "style.layout.grid.yAxis.scale.min") ? o.style.layout.grid.yAxis.scale.min = f.config.style.layout.grid.yAxis.scale.min : o.style.layout.grid.yAxis.scale.min = null, f.config && ge(f.config, "style.layout.grid.yAxis.scale.max") ? o.style.layout.grid.yAxis.scale.max = f.config.style.layout.grid.yAxis.scale.max : o.style.layout.grid.yAxis.scale.max = null, o;
|
|
131
161
|
}
|
|
132
|
-
se(() =>
|
|
133
|
-
|
|
134
|
-
}, { deep: !0 }), se(() =>
|
|
135
|
-
Array.isArray(t) && t.length > 0 && (
|
|
162
|
+
se(() => f.config, (t) => {
|
|
163
|
+
P.value || (e.value = _e()), $e.value = !e.value.userOptions.showOnChartHover, Ke(), Jt.value += 1, He.value += 1, je.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ne();
|
|
164
|
+
}, { deep: !0 }), se(() => f.dataset, (t) => {
|
|
165
|
+
Array.isArray(t) && t.length > 0 && (Ae.value = !1), vt();
|
|
136
166
|
}, { deep: !0 });
|
|
137
|
-
const
|
|
167
|
+
const p = y({
|
|
138
168
|
height: e.value.style.height,
|
|
139
169
|
width: e.value.style.width,
|
|
140
170
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
141
171
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
142
|
-
}), W =
|
|
143
|
-
|
|
144
|
-
|
|
172
|
+
}), W = kt(null), Q = kt(null);
|
|
173
|
+
Ml(() => {
|
|
174
|
+
Ke();
|
|
145
175
|
});
|
|
146
|
-
const
|
|
147
|
-
function
|
|
148
|
-
if (
|
|
176
|
+
const G = d(() => !!e.value.debug);
|
|
177
|
+
function Ke() {
|
|
178
|
+
if (Ft(f.dataset) && (J({
|
|
149
179
|
componentName: "VueUiCandlestick",
|
|
150
180
|
type: "dataset",
|
|
151
|
-
debug:
|
|
152
|
-
}),
|
|
153
|
-
|
|
181
|
+
debug: G.value
|
|
182
|
+
}), Ae.value = !0), Ft(f.dataset) || (Ae.value = e.value.loading), setTimeout(() => {
|
|
183
|
+
E.value = !0;
|
|
154
184
|
}, 10), e.value.responsive) {
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
const { width: l, height:
|
|
158
|
-
chart:
|
|
159
|
-
title: e.value.style.title.text ?
|
|
160
|
-
slicer: e.value.style.zoom.show &&
|
|
161
|
-
legend:
|
|
162
|
-
source:
|
|
163
|
-
noTitle:
|
|
185
|
+
const o = zt(() => {
|
|
186
|
+
E.value = !1;
|
|
187
|
+
const { width: l, height: a } = Hl({
|
|
188
|
+
chart: O.value,
|
|
189
|
+
title: e.value.style.title.text ? Ve.value : null,
|
|
190
|
+
slicer: e.value.style.zoom.show && A.value > 6 ? Z.value.$el : null,
|
|
191
|
+
legend: Ue.value,
|
|
192
|
+
source: We.value,
|
|
193
|
+
noTitle: Xe.value
|
|
164
194
|
});
|
|
165
195
|
requestAnimationFrame(() => {
|
|
166
|
-
|
|
167
|
-
relator: Math.min(l,
|
|
196
|
+
p.value.width = l, p.value.height = a - 12, e.value.responsiveProportionalSizing ? (p.value.xAxisFontSize = _t({
|
|
197
|
+
relator: Math.min(l, a),
|
|
168
198
|
adjuster: e.value.style.width,
|
|
169
199
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
170
200
|
threshold: 6,
|
|
171
201
|
fallback: 6
|
|
172
|
-
}),
|
|
173
|
-
relator: Math.min(l,
|
|
202
|
+
}), p.value.yAxisFontSize = _t({
|
|
203
|
+
relator: Math.min(l, a),
|
|
174
204
|
adjuster: e.value.style.width,
|
|
175
205
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
176
206
|
threshold: 6,
|
|
177
207
|
fallback: 6
|
|
178
|
-
})) : (
|
|
179
|
-
|
|
208
|
+
})) : (p.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, p.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), be.value && clearTimeout(be.value), be.value = setTimeout(() => {
|
|
209
|
+
E.value = !0;
|
|
180
210
|
}, 10);
|
|
181
211
|
});
|
|
182
212
|
});
|
|
183
|
-
W.value && (
|
|
213
|
+
W.value && (Q.value && W.value.unobserve(Q.value), W.value.disconnect()), W.value = new ResizeObserver(o), Q.value = O.value.parentNode, W.value.observe(Q.value);
|
|
184
214
|
}
|
|
185
|
-
|
|
215
|
+
de();
|
|
186
216
|
}
|
|
187
|
-
|
|
188
|
-
W.value && (
|
|
217
|
+
Ee(() => {
|
|
218
|
+
W.value && (Q.value && W.value.unobserve(Q.value), W.value.disconnect());
|
|
189
219
|
});
|
|
190
|
-
const { isPrinting:
|
|
191
|
-
elementId: `vue-ui-candlestick_${
|
|
220
|
+
const { isPrinting: Je, isImaging: Qe, generatePdf: Ze, generateImage: et } = ql({
|
|
221
|
+
elementId: `vue-ui-candlestick_${I.value}`,
|
|
192
222
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
193
223
|
options: e.value.userOptions.print
|
|
194
|
-
}),
|
|
224
|
+
}), el = d(() => e.value.userOptions.show && !e.value.style.title.text), L = y({
|
|
195
225
|
showTable: e.value.table.show,
|
|
196
226
|
showTooltip: e.value.style.tooltip.show
|
|
197
|
-
}),
|
|
198
|
-
|
|
227
|
+
}), ze = y(0), tl = zt((t) => {
|
|
228
|
+
ze.value = t;
|
|
199
229
|
}, 100);
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
if (!
|
|
203
|
-
const l = new ResizeObserver((
|
|
204
|
-
|
|
230
|
+
Il((t) => {
|
|
231
|
+
const o = ee.value;
|
|
232
|
+
if (!o) return;
|
|
233
|
+
const l = new ResizeObserver((a) => {
|
|
234
|
+
tl(a[0].contentRect.height);
|
|
205
235
|
});
|
|
206
|
-
l.observe(
|
|
207
|
-
}),
|
|
208
|
-
|
|
236
|
+
l.observe(o), t(() => l.disconnect());
|
|
237
|
+
}), Ee(() => {
|
|
238
|
+
ze.value = 0;
|
|
209
239
|
});
|
|
210
|
-
const
|
|
240
|
+
const tt = d(() => {
|
|
211
241
|
let t = 0;
|
|
212
|
-
return ee.value && (t =
|
|
242
|
+
return ee.value && (t = ze.value + p.value.xAxisFontSize), t;
|
|
213
243
|
});
|
|
214
|
-
function
|
|
244
|
+
function ll() {
|
|
215
245
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
216
|
-
return we.value && (t = Array.from(we.value.querySelectorAll("text")).reduce((
|
|
217
|
-
const
|
|
218
|
-
return
|
|
246
|
+
return we.value && (t = Array.from(we.value.querySelectorAll("text")).reduce((a, s) => {
|
|
247
|
+
const c = s.getComputedTextLength();
|
|
248
|
+
return c > a ? c : a;
|
|
219
249
|
}, 0)), t + 13;
|
|
220
250
|
}
|
|
221
|
-
const n =
|
|
222
|
-
const { top: t, right:
|
|
251
|
+
const n = d(() => {
|
|
252
|
+
const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding, s = ll(), c = 12;
|
|
223
253
|
return {
|
|
224
|
-
top: t +
|
|
225
|
-
right:
|
|
226
|
-
left:
|
|
227
|
-
bottom:
|
|
228
|
-
width:
|
|
229
|
-
height:
|
|
254
|
+
top: t + c,
|
|
255
|
+
right: p.value.width - o,
|
|
256
|
+
left: a + s,
|
|
257
|
+
bottom: p.value.height - l - tt.value,
|
|
258
|
+
width: p.value.width - a - o - s,
|
|
259
|
+
height: p.value.height - t - l - tt.value - c
|
|
230
260
|
};
|
|
231
|
-
}),
|
|
232
|
-
const { left: t, top:
|
|
261
|
+
}), ol = d(() => {
|
|
262
|
+
const { left: t, top: o, width: l, height: a } = n.value, s = r.value.start, w = r.value.end - s, S = l / w, _ = C.value.start - s, X = C.value.end - s, Y = Math.max(0, Math.min(w, _)), me = Math.max(0, Math.min(w, X));
|
|
233
263
|
return {
|
|
234
|
-
x: t + Y *
|
|
235
|
-
y:
|
|
236
|
-
width: (me - Y) *
|
|
237
|
-
height:
|
|
264
|
+
x: t + Y * S,
|
|
265
|
+
y: o,
|
|
266
|
+
width: (me - Y) * S,
|
|
267
|
+
height: a,
|
|
238
268
|
fill: e.value.style.zoom.preview.fill,
|
|
239
269
|
stroke: e.value.style.zoom.preview.stroke,
|
|
240
270
|
"stroke-width": e.value.style.zoom.preview.strokeWidth,
|
|
@@ -247,59 +277,59 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
247
277
|
animation: "none !important"
|
|
248
278
|
}
|
|
249
279
|
};
|
|
250
|
-
}),
|
|
280
|
+
}), A = d(() => k.value.length), r = y({
|
|
251
281
|
start: 0,
|
|
252
|
-
end:
|
|
253
|
-
}),
|
|
254
|
-
function
|
|
255
|
-
|
|
282
|
+
end: A.value
|
|
283
|
+
}), C = y({ start: 0, end: A.value }), lt = d(() => e.value.style.zoom.preview.enable && (C.value.start !== r.value.start || C.value.end !== r.value.end));
|
|
284
|
+
function ot(t, o) {
|
|
285
|
+
C.value[t] = o;
|
|
256
286
|
}
|
|
257
287
|
function ne() {
|
|
258
|
-
let t = Math.max(0, Math.min(r.value.start ?? 0,
|
|
259
|
-
(!Number.isFinite(t) || !Number.isFinite(
|
|
288
|
+
let t = Math.max(0, Math.min(r.value.start ?? 0, A.value - 1)), o = Math.max(t + 1, Math.min(r.value.end ?? A.value, A.value));
|
|
289
|
+
(!Number.isFinite(t) || !Number.isFinite(o) || o <= t) && (t = 0, o = A.value), r.value.start = t, r.value.end = o, C.value.start = t, C.value.end = o, Z.value && (Z.value.setStartValue(t), Z.value.setEndValue(o));
|
|
260
290
|
}
|
|
261
|
-
const at =
|
|
291
|
+
const at = d(() => k.value.map((t, o) => ({
|
|
262
292
|
...t,
|
|
263
|
-
absoluteIndex:
|
|
264
|
-
}))),
|
|
293
|
+
absoluteIndex: o
|
|
294
|
+
}))), st = d(() => at.value.slice(r.value.start, r.value.end)), F = d(() => (k.value.forEach((t, o) => {
|
|
265
295
|
[null, void 0].includes(t[0]) && J({
|
|
266
296
|
componentName: "VueUiCandlestick",
|
|
267
297
|
type: "datasetAttribute",
|
|
268
298
|
property: "period (index 0)",
|
|
269
|
-
index:
|
|
270
|
-
debug:
|
|
299
|
+
index: o,
|
|
300
|
+
debug: G.value
|
|
271
301
|
}), [null, void 0].includes(t[1]) && J({
|
|
272
302
|
componentName: "VueUiCandlestick",
|
|
273
303
|
type: "datasetAttribute",
|
|
274
304
|
property: "open (index 1)",
|
|
275
|
-
index:
|
|
276
|
-
debug:
|
|
305
|
+
index: o,
|
|
306
|
+
debug: G.value
|
|
277
307
|
}), [null, void 0].includes(t[2]) && J({
|
|
278
308
|
componentName: "VueUiCandlestick",
|
|
279
309
|
type: "datasetAttribute",
|
|
280
310
|
property: "high (index 2)",
|
|
281
|
-
index:
|
|
282
|
-
debug:
|
|
311
|
+
index: o,
|
|
312
|
+
debug: G.value
|
|
283
313
|
}), [null, void 0].includes(t[3]) && J({
|
|
284
314
|
componentName: "VueUiCandlestick",
|
|
285
315
|
type: "datasetAttribute",
|
|
286
316
|
property: "low (index 3)",
|
|
287
|
-
index:
|
|
288
|
-
debug:
|
|
317
|
+
index: o,
|
|
318
|
+
debug: G.value
|
|
289
319
|
}), [null, void 0].includes(t[4]) && J({
|
|
290
320
|
componentName: "VueUiCandlestick",
|
|
291
321
|
type: "datasetAttribute",
|
|
292
322
|
property: "close (index 4)",
|
|
293
|
-
index:
|
|
294
|
-
debug:
|
|
323
|
+
index: o,
|
|
324
|
+
debug: G.value
|
|
295
325
|
}), [null, void 0].includes(t[5]) && J({
|
|
296
326
|
componentName: "VueUiCandlestick",
|
|
297
327
|
type: "datasetAttribute",
|
|
298
328
|
property: "volume (index 5)",
|
|
299
|
-
index:
|
|
300
|
-
debug:
|
|
329
|
+
index: o,
|
|
330
|
+
debug: G.value
|
|
301
331
|
});
|
|
302
|
-
}),
|
|
332
|
+
}), st.value.map((t) => ({
|
|
303
333
|
absoluteIndex: t.absoluteIndex,
|
|
304
334
|
period: t[0],
|
|
305
335
|
open: t[1],
|
|
@@ -307,7 +337,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
307
337
|
low: t[3],
|
|
308
338
|
close: t[4],
|
|
309
339
|
volume: t[5]
|
|
310
|
-
})))),
|
|
340
|
+
})))), al = d(() => at.value.map((t) => ({
|
|
311
341
|
absoluteIndex: t.absoluteIndex,
|
|
312
342
|
period: t[0],
|
|
313
343
|
open: t[1],
|
|
@@ -315,42 +345,42 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
315
345
|
low: t[3],
|
|
316
346
|
close: t[4],
|
|
317
347
|
volume: t[5]
|
|
318
|
-
}))),
|
|
319
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...
|
|
348
|
+
}))), v = d(() => n.value.width / st.value.length), ut = d(() => {
|
|
349
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...F.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, o = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
|
|
320
350
|
return {
|
|
321
351
|
max: t,
|
|
322
|
-
min:
|
|
352
|
+
min: o
|
|
323
353
|
};
|
|
324
|
-
}),
|
|
325
|
-
function re(t,
|
|
354
|
+
}), B = d(() => Ol(ut.value.min, ut.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
355
|
+
function re(t, o, l = null, a = null) {
|
|
326
356
|
return {
|
|
327
357
|
...t,
|
|
328
|
-
x:
|
|
329
|
-
y:
|
|
330
|
-
value:
|
|
358
|
+
x: H(n.value.left + o * v.value + v.value / 2),
|
|
359
|
+
y: H(n.value.top + (1 - (t - B.value.min) / (B.value.max - B.value.min)) * n.value.height),
|
|
360
|
+
value: H(t),
|
|
331
361
|
isMax: t === l,
|
|
332
|
-
isMin: t ===
|
|
362
|
+
isMin: t === a
|
|
333
363
|
};
|
|
334
364
|
}
|
|
335
|
-
const
|
|
365
|
+
const $ = d(() => {
|
|
336
366
|
const t = {
|
|
337
|
-
o: Math.max(...
|
|
338
|
-
h: Math.max(...
|
|
339
|
-
l: Math.max(...
|
|
340
|
-
c: Math.max(...
|
|
341
|
-
},
|
|
342
|
-
o: Math.min(...
|
|
343
|
-
h: Math.min(...
|
|
344
|
-
l: Math.min(...
|
|
345
|
-
c: Math.min(...
|
|
346
|
-
}, l = Math.max(...
|
|
347
|
-
return
|
|
348
|
-
const w = re(s.open,
|
|
367
|
+
o: Math.max(...F.value.map((s) => s.open)),
|
|
368
|
+
h: Math.max(...F.value.map((s) => s.high)),
|
|
369
|
+
l: Math.max(...F.value.map((s) => s.low)),
|
|
370
|
+
c: Math.max(...F.value.map((s) => s.low))
|
|
371
|
+
}, o = {
|
|
372
|
+
o: Math.min(...F.value.map((s) => s.open)),
|
|
373
|
+
h: Math.min(...F.value.map((s) => s.high)),
|
|
374
|
+
l: Math.min(...F.value.map((s) => s.low)),
|
|
375
|
+
c: Math.min(...F.value.map((s) => s.low))
|
|
376
|
+
}, l = Math.max(...F.value.map((s) => s.volume)), a = Math.min(...F.value.map((s) => s.volume));
|
|
377
|
+
return F.value.map((s, c) => {
|
|
378
|
+
const w = re(s.open, c, t.o, o.o), S = re(s.high, c, t.h, o.h), _ = re(s.low, c, t.l, o.l), X = re(s.close, c, t.c, o.c), Y = s.close > s.open, me = s.volume === l, Me = s.volume === a;
|
|
349
379
|
return {
|
|
350
380
|
period: s.period,
|
|
351
381
|
open: w,
|
|
352
|
-
high:
|
|
353
|
-
low:
|
|
382
|
+
high: S,
|
|
383
|
+
low: _,
|
|
354
384
|
close: X,
|
|
355
385
|
volume: s.volume,
|
|
356
386
|
isBullish: Y,
|
|
@@ -360,250 +390,250 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
360
390
|
};
|
|
361
391
|
});
|
|
362
392
|
});
|
|
363
|
-
function
|
|
364
|
-
const s = e.value.style.layout.grid.yAxis.scale.min ?? 0,
|
|
393
|
+
function ce({ item: t, index: o, minimapH: l, unitW: a }) {
|
|
394
|
+
const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, c = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...k.value.map((w) => w[2]));
|
|
365
395
|
return {
|
|
366
396
|
...t,
|
|
367
|
-
x:
|
|
368
|
-
y:
|
|
369
|
-
value:
|
|
397
|
+
x: H(o * a),
|
|
398
|
+
y: H((1 - (t - s) / (c - s)) * l),
|
|
399
|
+
value: H(t)
|
|
370
400
|
};
|
|
371
401
|
}
|
|
372
|
-
const
|
|
373
|
-
const s =
|
|
402
|
+
const sl = d(() => ({ minimapH: t, unitW: o }) => al.value.map((l, a) => {
|
|
403
|
+
const s = ce({ item: l.open, index: a, minimapH: t, unitW: o }), c = ce({ item: l.high, index: a, minimapH: t, unitW: o }), w = ce({ item: l.low, index: a, minimapH: t, unitW: o }), S = ce({ item: l.close, index: a, minimapH: t, unitW: o }), _ = l.close > l.open;
|
|
374
404
|
return {
|
|
375
405
|
period: l.period,
|
|
376
406
|
open: s,
|
|
377
|
-
high:
|
|
407
|
+
high: c,
|
|
378
408
|
low: w,
|
|
379
|
-
close:
|
|
409
|
+
close: S,
|
|
380
410
|
volume: l.volume,
|
|
381
|
-
isBullish:
|
|
411
|
+
isBullish: _,
|
|
382
412
|
absoluteIndex: l.absoluteIndex
|
|
383
413
|
};
|
|
384
|
-
})),
|
|
414
|
+
})), ul = d(() => e.value.style.zoom.minimap.show ? [{
|
|
385
415
|
name: "",
|
|
386
416
|
series: k.value.map((t) => t[2]),
|
|
387
417
|
color: "#000000",
|
|
388
418
|
isVisible: !0
|
|
389
419
|
}] : []);
|
|
390
|
-
function
|
|
391
|
-
return
|
|
420
|
+
function il(t) {
|
|
421
|
+
return H((t - B.value.min) / (B.value.max - B.value.min));
|
|
392
422
|
}
|
|
393
|
-
const
|
|
394
|
-
y: n.value.bottom - n.value.height *
|
|
395
|
-
value:
|
|
396
|
-
}))),
|
|
423
|
+
const it = d(() => B.value.ticks.map((t) => ({
|
|
424
|
+
y: n.value.bottom - n.value.height * il(t),
|
|
425
|
+
value: H(t)
|
|
426
|
+
}))), nl = d(() => F.value.map((t) => t.period)), N = d(() => Lt({
|
|
397
427
|
values: k.value.map((t) => t[0]),
|
|
398
428
|
maxDatapoints: k.value.length,
|
|
399
429
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
400
430
|
start: r.value.start,
|
|
401
431
|
end: r.value.end
|
|
402
|
-
})),
|
|
432
|
+
})), nt = d(() => Lt({
|
|
403
433
|
values: k.value.map((t) => t[0]),
|
|
404
434
|
maxDatapoints: k.value.length,
|
|
405
435
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
406
436
|
start: 0,
|
|
407
|
-
end:
|
|
408
|
-
})),
|
|
437
|
+
end: A.value
|
|
438
|
+
})), rl = d(() => {
|
|
409
439
|
const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
410
|
-
return
|
|
411
|
-
}),
|
|
412
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
440
|
+
return N.value.length ? Math.min(t, [...new Set(N.value.map((o) => o.text))].length) : t;
|
|
441
|
+
}), rt = d(() => {
|
|
442
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, o = Jl({
|
|
413
443
|
useUTC: t.useUTC,
|
|
414
|
-
locale:
|
|
444
|
+
locale: Ql[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
415
445
|
januaryAsYear: t.januaryAsYear
|
|
416
446
|
});
|
|
417
|
-
return (l,
|
|
418
|
-
const
|
|
419
|
-
return
|
|
447
|
+
return (l, a) => {
|
|
448
|
+
const c = k.value.map((w) => w[0])?.[l];
|
|
449
|
+
return c == null ? "" : o.formatDate(new Date(c), a);
|
|
420
450
|
};
|
|
421
|
-
}),
|
|
422
|
-
text:
|
|
451
|
+
}), cl = d(() => (k.value.map((o) => o[0]) || []).map((o, l) => ({
|
|
452
|
+
text: rt.value(l, e.value.style.tooltip.timeFormat),
|
|
423
453
|
absoluteIndex: l
|
|
424
|
-
}))),
|
|
425
|
-
text:
|
|
454
|
+
}))), vl = d(() => (k.value.map((o) => o[0]) || []).map((o, l) => ({
|
|
455
|
+
text: rt.value(l, e.value.style.zoom.timeFormat),
|
|
426
456
|
absoluteIndex: l
|
|
427
|
-
}))), Le =
|
|
428
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels,
|
|
429
|
-
return
|
|
457
|
+
}))), Le = d(() => {
|
|
458
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels, o = N.value || [], l = nt.value || [], a = r.value.start ?? 0, s = R.value, c = A.value, w = o.map((_) => _?.text ?? ""), S = l.map((_) => _?.text ?? "");
|
|
459
|
+
return Pl(
|
|
430
460
|
!!t.showOnlyFirstAndLast,
|
|
431
461
|
!!t.showOnlyAtModulo,
|
|
432
|
-
Math.max(1,
|
|
462
|
+
Math.max(1, rl.value || 1),
|
|
433
463
|
w,
|
|
434
|
-
|
|
435
|
-
|
|
464
|
+
S,
|
|
465
|
+
a,
|
|
436
466
|
s,
|
|
437
|
-
|
|
467
|
+
c
|
|
438
468
|
);
|
|
439
|
-
}),
|
|
440
|
-
start:
|
|
441
|
-
end:
|
|
469
|
+
}), ct = d(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
470
|
+
start: N.value.find((t) => t.absoluteIndex === r.value.start)?.text ?? "",
|
|
471
|
+
end: N.value.find((t) => t.absoluteIndex === r.value.end - 1)?.text ?? ""
|
|
442
472
|
} : {
|
|
443
473
|
start: k.value[r.value.start] ? k.value[r.value.start][0] : k.value[0][0],
|
|
444
474
|
end: k.value[r.value.end - 1] ? k.value[r.value.end - 1][0] : k.value.at(-1)[0]
|
|
445
|
-
}),
|
|
446
|
-
function
|
|
447
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
475
|
+
}), Se = y(null);
|
|
476
|
+
function dl(t, o) {
|
|
477
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t + r.value.start });
|
|
448
478
|
}
|
|
449
|
-
function
|
|
450
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
479
|
+
function yl(t, o) {
|
|
480
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t + r.value.start }), R.value = void 0, xe.value = !1;
|
|
451
481
|
}
|
|
452
|
-
se(() =>
|
|
453
|
-
if ([null, void 0].includes(
|
|
454
|
-
|
|
482
|
+
se(() => f.selectedXIndex, (t) => {
|
|
483
|
+
if ([null, void 0].includes(f.selectedXIndex)) {
|
|
484
|
+
R.value = null;
|
|
455
485
|
return;
|
|
456
486
|
}
|
|
457
|
-
const
|
|
458
|
-
|
|
487
|
+
const o = t - r.value.start;
|
|
488
|
+
o < 0 || t >= r.value.end ? R.value = null : R.value = o ?? null;
|
|
459
489
|
}, { immediate: !0 });
|
|
460
|
-
function
|
|
461
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
462
|
-
datapoint:
|
|
490
|
+
function hl(t, o) {
|
|
491
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t + r.value.start }), R.value = t, Se.value = {
|
|
492
|
+
datapoint: o,
|
|
463
493
|
seriesIndex: t,
|
|
464
|
-
series:
|
|
494
|
+
series: $.value,
|
|
465
495
|
config: e.value
|
|
466
|
-
},
|
|
496
|
+
}, Fl({ seriesIndex: t, datapoint: o });
|
|
467
497
|
const l = e.value.style.tooltip.customFormat;
|
|
468
|
-
if (
|
|
498
|
+
if (Xl(l) && jl(() => l({
|
|
469
499
|
seriesIndex: t,
|
|
470
|
-
datapoint:
|
|
471
|
-
series:
|
|
500
|
+
datapoint: o,
|
|
501
|
+
series: $.value,
|
|
472
502
|
config: e.value
|
|
473
503
|
})))
|
|
474
504
|
ke.value = l({
|
|
475
505
|
seriesIndex: t,
|
|
476
|
-
datapoint:
|
|
477
|
-
series:
|
|
506
|
+
datapoint: o,
|
|
507
|
+
series: $.value,
|
|
478
508
|
config: e.value
|
|
479
509
|
});
|
|
480
510
|
else if (e.value.style.tooltip.show) {
|
|
481
|
-
let
|
|
482
|
-
const { period: s, open:
|
|
483
|
-
|
|
484
|
-
fill="${e.value.style.layout.candle.gradient.show ? Y ? `url(#bullish_gradient_${
|
|
485
|
-
const
|
|
511
|
+
let a = "";
|
|
512
|
+
const { period: s, open: c, high: w, low: S, close: _, volume: X, isBullish: Y } = $.value[t], { period: me, open: Me, high: _l, low: zl, close: Ll, volume: Sl } = e.value.translations, Tl = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? N.value[t].text : cl.value[t].text : s;
|
|
513
|
+
a += `<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}"
|
|
514
|
+
fill="${e.value.style.layout.candle.gradient.show ? Y ? `url(#bullish_gradient_${I.value})` : `url(#bearish_gradient_${I.value})` : Y ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Tl}</div>`, a += `${Sl} : <b>${isNaN(X) ? "-" : Number(X.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
|
|
515
|
+
const Ie = U({
|
|
486
516
|
p: e.value.style.tooltip.prefix,
|
|
487
|
-
v:
|
|
517
|
+
v: c.value,
|
|
488
518
|
s: e.value.style.tooltip.suffix,
|
|
489
519
|
r: e.value.style.tooltip.roundingValue
|
|
490
|
-
}),
|
|
520
|
+
}), bt = U({
|
|
491
521
|
p: e.value.style.tooltip.prefix,
|
|
492
522
|
v: w.value,
|
|
493
523
|
s: e.value.style.tooltip.suffix,
|
|
494
524
|
r: e.value.style.tooltip.roundingValue
|
|
495
525
|
}), xt = U({
|
|
496
526
|
p: e.value.style.tooltip.prefix,
|
|
497
|
-
v:
|
|
527
|
+
v: S.value,
|
|
498
528
|
s: e.value.style.tooltip.suffix,
|
|
499
529
|
r: e.value.style.tooltip.roundingValue
|
|
500
|
-
}),
|
|
530
|
+
}), Be = U({
|
|
501
531
|
p: e.value.style.tooltip.prefix,
|
|
502
|
-
v:
|
|
532
|
+
v: _.value,
|
|
503
533
|
s: e.value.style.tooltip.suffix,
|
|
504
534
|
r: e.value.style.tooltip.roundingValue
|
|
505
535
|
});
|
|
506
|
-
e.value.style.tooltip.showChart ?
|
|
536
|
+
e.value.style.tooltip.showChart ? a += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
|
|
507
537
|
<svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
|
|
508
538
|
<g>
|
|
509
|
-
<line x1="50" x2="50" y1="20" y2="80" stroke="${
|
|
510
|
-
${
|
|
539
|
+
<line x1="50" x2="50" y1="20" y2="80" stroke="${o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}" stroke-width="2" stroke-linecap="round" />
|
|
540
|
+
${o.isBullish ? `
|
|
511
541
|
<line x1="45" x2="50" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
512
542
|
<line x1="50" x2="55" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
513
|
-
<text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${
|
|
514
|
-
<text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${
|
|
543
|
+
<text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${Ie}</text>
|
|
544
|
+
<text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${Be}</text>
|
|
515
545
|
` : `
|
|
516
546
|
<line x1="45" x2="50" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
517
547
|
<line x1="50" x2="55" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
518
|
-
<text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${
|
|
519
|
-
<text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${
|
|
548
|
+
<text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${Ie}</text>
|
|
549
|
+
<text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${Be}</text>
|
|
520
550
|
`}
|
|
521
|
-
<text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${
|
|
551
|
+
<text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${bt}</text>
|
|
522
552
|
<text x="50" y="97" text-anchor="middle" fill="${e.value.style.tooltip.color}">${xt}</text>
|
|
523
553
|
<g>
|
|
524
554
|
</svg>
|
|
525
555
|
<div>
|
|
526
|
-
` : (
|
|
556
|
+
` : (a += `<div>${Me}: <b>${Ie}</b></div>`, a += `<div>${_l}: <b>${bt}</b></div>`, a += `<div>${zl}: <b>${xt}</b></div>`, a += `<div>${Ll}: <b>${Be}</b></div>`), a += "</div>", ke.value = `<div style="text-align:right">${a}</div>`;
|
|
527
557
|
}
|
|
528
|
-
|
|
558
|
+
xe.value = !0;
|
|
529
559
|
}
|
|
530
560
|
const le = y(null);
|
|
531
|
-
function
|
|
561
|
+
function ml() {
|
|
532
562
|
return new Promise((t) => requestAnimationFrame(
|
|
533
563
|
() => requestAnimationFrame(() => t())
|
|
534
564
|
));
|
|
535
565
|
}
|
|
536
|
-
|
|
566
|
+
Ee(() => {
|
|
537
567
|
le.value && cancelAnimationFrame(le.value);
|
|
538
568
|
});
|
|
539
569
|
async function vt() {
|
|
540
|
-
|
|
541
|
-
await
|
|
570
|
+
de(), await wt(), le.value && cancelAnimationFrame(le.value), le.value = requestAnimationFrame(async () => {
|
|
571
|
+
await ml(), de();
|
|
542
572
|
});
|
|
543
573
|
}
|
|
544
|
-
const
|
|
545
|
-
function
|
|
546
|
-
if (!
|
|
547
|
-
|
|
574
|
+
const oe = y(!1), dt = y(!1), ve = y(!1);
|
|
575
|
+
function de() {
|
|
576
|
+
if (!oe.value) {
|
|
577
|
+
oe.value = !0;
|
|
548
578
|
try {
|
|
549
|
-
const { startIndex: t, endIndex:
|
|
550
|
-
|
|
579
|
+
const { startIndex: t, endIndex: o } = e.value.style.zoom, l = A.value, a = t ?? 0, s = o != null ? Math.min(yt(o + 1), l) : l;
|
|
580
|
+
ve.value = !0, r.value.start = a, r.value.end = s, C.value.start = a, C.value.end = s, ne(), dt.value = !0;
|
|
551
581
|
} finally {
|
|
552
582
|
queueMicrotask(() => {
|
|
553
|
-
|
|
554
|
-
}),
|
|
583
|
+
ve.value = !1;
|
|
584
|
+
}), oe.value = !1;
|
|
555
585
|
}
|
|
556
586
|
}
|
|
557
587
|
}
|
|
558
|
-
function
|
|
559
|
-
const
|
|
560
|
-
return t >
|
|
588
|
+
function yt(t) {
|
|
589
|
+
const o = A.value;
|
|
590
|
+
return t > o ? o : t < 0 || t < r.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
561
591
|
}
|
|
562
|
-
function
|
|
563
|
-
|
|
564
|
-
const
|
|
565
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
]),
|
|
572
|
-
t ? t(s) :
|
|
592
|
+
function Te(t = null) {
|
|
593
|
+
wt(() => {
|
|
594
|
+
const o = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l = $.value.map((c, w) => [
|
|
595
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? N.value[w].text : c.period,
|
|
596
|
+
c.open.value,
|
|
597
|
+
c.high.value,
|
|
598
|
+
c.low.value,
|
|
599
|
+
c.close.value,
|
|
600
|
+
c.volume
|
|
601
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), s = Ul(a);
|
|
602
|
+
t ? t(s) : Wl({ csvContent: s, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
573
603
|
});
|
|
574
604
|
}
|
|
575
|
-
const ye =
|
|
576
|
-
const t =
|
|
577
|
-
const
|
|
605
|
+
const ye = d(() => {
|
|
606
|
+
const t = $.value.map((a, s) => {
|
|
607
|
+
const c = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? N.value[s].text : a.period, w = U({
|
|
578
608
|
p: e.value.table.td.prefix,
|
|
579
|
-
v:
|
|
609
|
+
v: a.open.value,
|
|
580
610
|
s: e.value.table.td.suffix,
|
|
581
611
|
r: e.value.table.td.roundingValue
|
|
582
|
-
}),
|
|
612
|
+
}), S = U({
|
|
583
613
|
p: e.value.table.td.prefix,
|
|
584
|
-
v:
|
|
614
|
+
v: a.high.value,
|
|
585
615
|
s: e.value.table.td.suffix,
|
|
586
616
|
r: e.value.table.td.roundingValue
|
|
587
|
-
}),
|
|
617
|
+
}), _ = U({
|
|
588
618
|
p: e.value.table.td.prefix,
|
|
589
|
-
v:
|
|
619
|
+
v: a.low.value,
|
|
590
620
|
s: e.value.table.td.suffix,
|
|
591
621
|
r: e.value.table.td.roundingValue
|
|
592
622
|
}), X = U({
|
|
593
623
|
p: e.value.table.td.prefix,
|
|
594
|
-
v:
|
|
624
|
+
v: a.close.value,
|
|
595
625
|
s: e.value.table.td.suffix,
|
|
596
626
|
r: e.value.table.td.roundingValue
|
|
597
627
|
});
|
|
598
628
|
return [
|
|
599
|
-
`<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 ?
|
|
629
|
+
`<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 ? a.isBullish ? `url(#bullish_gradient_${I.value}` : `url(#bearish_gradient_${I.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${c}`,
|
|
600
630
|
w,
|
|
601
|
-
|
|
602
|
-
|
|
631
|
+
S,
|
|
632
|
+
_,
|
|
603
633
|
X,
|
|
604
|
-
`${isNaN(
|
|
634
|
+
`${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
|
|
605
635
|
];
|
|
606
|
-
}),
|
|
636
|
+
}), o = {
|
|
607
637
|
th: {
|
|
608
638
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
609
639
|
color: e.value.table.th.color,
|
|
@@ -623,55 +653,55 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
623
653
|
e.value.translations.last,
|
|
624
654
|
e.value.translations.volume
|
|
625
655
|
];
|
|
626
|
-
return { head: l, body: t, config:
|
|
656
|
+
return { head: l, body: t, config: o, colNames: l };
|
|
627
657
|
}), q = y(!1);
|
|
628
|
-
function
|
|
658
|
+
function ht(t) {
|
|
629
659
|
q.value = t, Ne.value += 1;
|
|
630
660
|
}
|
|
631
|
-
function
|
|
661
|
+
function mt() {
|
|
632
662
|
L.value.showTable = !L.value.showTable;
|
|
633
663
|
}
|
|
634
|
-
function
|
|
664
|
+
function gt() {
|
|
635
665
|
L.value.showTooltip = !L.value.showTooltip;
|
|
636
666
|
}
|
|
637
667
|
const he = y(!1);
|
|
638
|
-
function
|
|
668
|
+
function De() {
|
|
639
669
|
he.value = !he.value;
|
|
640
670
|
}
|
|
641
|
-
async function
|
|
642
|
-
if (!
|
|
643
|
-
const { width:
|
|
671
|
+
async function gl({ scale: t = 2 } = {}) {
|
|
672
|
+
if (!O.value) return;
|
|
673
|
+
const { width: o, height: l } = O.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: c } = await ao({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
644
674
|
return {
|
|
645
675
|
imageUri: s,
|
|
646
|
-
base64:
|
|
676
|
+
base64: c,
|
|
647
677
|
title: e.value.style.title.text,
|
|
648
|
-
width:
|
|
678
|
+
width: o,
|
|
649
679
|
height: l,
|
|
650
|
-
aspectRatio:
|
|
680
|
+
aspectRatio: a
|
|
651
681
|
};
|
|
652
682
|
}
|
|
653
|
-
const
|
|
654
|
-
|
|
683
|
+
const fl = d(() => p.value.width), pl = d(() => p.value.height);
|
|
684
|
+
oo({
|
|
655
685
|
timeLabelsEls: ee,
|
|
656
|
-
timeLabels:
|
|
686
|
+
timeLabels: N,
|
|
657
687
|
slicer: r,
|
|
658
688
|
configRef: e,
|
|
659
689
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
660
690
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
661
691
|
isAutoSize: !1,
|
|
662
692
|
rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
663
|
-
width:
|
|
664
|
-
height:
|
|
693
|
+
width: fl,
|
|
694
|
+
height: pl
|
|
665
695
|
}), se(e, () => {
|
|
666
696
|
L.value = {
|
|
667
697
|
showTable: e.value.table.show,
|
|
668
698
|
showTooltip: e.value.style.tooltip.show
|
|
669
699
|
};
|
|
670
700
|
}, { immediate: !0 });
|
|
671
|
-
const
|
|
672
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
701
|
+
const ae = d(() => {
|
|
702
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = L.value.showTable;
|
|
673
703
|
return {
|
|
674
|
-
component: t ?
|
|
704
|
+
component: t ? Gt : Ut,
|
|
675
705
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
676
706
|
props: t ? {
|
|
677
707
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -679,12 +709,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
679
709
|
headerColor: e.value.table.th.color,
|
|
680
710
|
headerBg: e.value.table.th.backgroundColor,
|
|
681
711
|
isFullscreen: q.value,
|
|
682
|
-
fullscreenParent:
|
|
712
|
+
fullscreenParent: O.value,
|
|
683
713
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
684
714
|
} : {
|
|
685
715
|
hideDetails: !0,
|
|
686
716
|
config: {
|
|
687
|
-
open:
|
|
717
|
+
open: o,
|
|
688
718
|
maxHeight: 1e4,
|
|
689
719
|
body: {
|
|
690
720
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -701,101 +731,101 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
701
731
|
se(() => L.value.showTable, (t) => {
|
|
702
732
|
e.value.table.show || (t && e.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
|
|
703
733
|
});
|
|
704
|
-
function
|
|
705
|
-
L.value.showTable = !1,
|
|
734
|
+
function ft() {
|
|
735
|
+
L.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
|
|
706
736
|
}
|
|
707
|
-
const
|
|
708
|
-
svg:
|
|
709
|
-
title:
|
|
710
|
-
backgroundColor:
|
|
737
|
+
const bl = d(() => e.value.style.backgroundColor), xl = d(() => e.value.style.title), { exportSvg: kl, getSvg: wl } = Zl({
|
|
738
|
+
svg: Fe,
|
|
739
|
+
title: xl,
|
|
740
|
+
backgroundColor: bl
|
|
711
741
|
});
|
|
712
|
-
async function
|
|
742
|
+
async function pt({ isCb: t }) {
|
|
713
743
|
if (t) {
|
|
714
|
-
const { blob:
|
|
715
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
744
|
+
const { blob: o, url: l, text: a, dataUrl: s } = await wl();
|
|
745
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
|
|
716
746
|
} else
|
|
717
|
-
|
|
747
|
+
kl();
|
|
718
748
|
}
|
|
719
|
-
function
|
|
749
|
+
function Cl(t) {
|
|
720
750
|
Ge.value = t;
|
|
721
751
|
}
|
|
722
|
-
function
|
|
723
|
-
|
|
752
|
+
function Al(t) {
|
|
753
|
+
oe.value || ve.value || t !== r.value.start && (r.value.start = t, C.value.start = t, ne());
|
|
724
754
|
}
|
|
725
|
-
function
|
|
726
|
-
if (
|
|
727
|
-
const
|
|
728
|
-
|
|
755
|
+
function $l(t) {
|
|
756
|
+
if (oe.value || ve.value) return;
|
|
757
|
+
const o = yt(t);
|
|
758
|
+
o !== r.value.end && (r.value.end = o, C.value.end = o, ne());
|
|
729
759
|
}
|
|
730
|
-
function
|
|
760
|
+
function Fl({ seriesIndex: t, datapoint: o }) {
|
|
731
761
|
const l = r.value.start + t;
|
|
732
|
-
|
|
733
|
-
dataset:
|
|
762
|
+
Pe("selectX", {
|
|
763
|
+
dataset: o,
|
|
734
764
|
index: l,
|
|
735
765
|
indexLabel: ""
|
|
736
766
|
});
|
|
737
767
|
}
|
|
738
|
-
return
|
|
739
|
-
getImage:
|
|
740
|
-
generatePdf:
|
|
741
|
-
generateCsv:
|
|
742
|
-
generateImage:
|
|
743
|
-
generateSvg:
|
|
744
|
-
toggleTable:
|
|
745
|
-
toggleTooltip:
|
|
746
|
-
toggleAnnotator:
|
|
747
|
-
toggleFullscreen:
|
|
748
|
-
}), (t,
|
|
768
|
+
return Ot({
|
|
769
|
+
getImage: gl,
|
|
770
|
+
generatePdf: Ze,
|
|
771
|
+
generateCsv: Te,
|
|
772
|
+
generateImage: et,
|
|
773
|
+
generateSvg: pt,
|
|
774
|
+
toggleTable: mt,
|
|
775
|
+
toggleTooltip: gt,
|
|
776
|
+
toggleAnnotator: De,
|
|
777
|
+
toggleFullscreen: ht
|
|
778
|
+
}), (t, o) => (u(), i("div", {
|
|
749
779
|
ref_key: "candlestickChart",
|
|
750
|
-
ref:
|
|
780
|
+
ref: O,
|
|
751
781
|
class: V(`vue-data-ui-component vue-ui-candlestick ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
752
782
|
style: ue(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
753
|
-
id: `vue-ui-candlestick_${
|
|
754
|
-
onMouseenter:
|
|
755
|
-
onMouseleave:
|
|
783
|
+
id: `vue-ui-candlestick_${I.value}`,
|
|
784
|
+
onMouseenter: Qt,
|
|
785
|
+
onMouseleave: Zt
|
|
756
786
|
}, [
|
|
757
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
787
|
+
e.value.userOptions.buttons.annotator ? (u(), K(h(Xt), {
|
|
758
788
|
key: 0,
|
|
759
|
-
svgRef: h(
|
|
789
|
+
svgRef: h(Fe),
|
|
760
790
|
backgroundColor: e.value.style.backgroundColor,
|
|
761
791
|
color: e.value.style.color,
|
|
762
792
|
active: he.value,
|
|
763
|
-
onClose:
|
|
793
|
+
onClose: De
|
|
764
794
|
}, {
|
|
765
|
-
"annotator-action-close":
|
|
766
|
-
|
|
795
|
+
"annotator-action-close": b(() => [
|
|
796
|
+
x(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
767
797
|
]),
|
|
768
|
-
"annotator-action-color":
|
|
769
|
-
|
|
798
|
+
"annotator-action-color": b(({ color: l }) => [
|
|
799
|
+
x(t.$slots, "annotator-action-color", T(D({ color: l })), void 0, !0)
|
|
770
800
|
]),
|
|
771
|
-
"annotator-action-draw":
|
|
772
|
-
|
|
801
|
+
"annotator-action-draw": b(({ mode: l }) => [
|
|
802
|
+
x(t.$slots, "annotator-action-draw", T(D({ mode: l })), void 0, !0)
|
|
773
803
|
]),
|
|
774
|
-
"annotator-action-undo":
|
|
775
|
-
|
|
804
|
+
"annotator-action-undo": b(({ disabled: l }) => [
|
|
805
|
+
x(t.$slots, "annotator-action-undo", T(D({ disabled: l })), void 0, !0)
|
|
776
806
|
]),
|
|
777
|
-
"annotator-action-redo":
|
|
778
|
-
|
|
807
|
+
"annotator-action-redo": b(({ disabled: l }) => [
|
|
808
|
+
x(t.$slots, "annotator-action-redo", T(D({ disabled: l })), void 0, !0)
|
|
779
809
|
]),
|
|
780
|
-
"annotator-action-delete":
|
|
781
|
-
|
|
810
|
+
"annotator-action-delete": b(({ disabled: l }) => [
|
|
811
|
+
x(t.$slots, "annotator-action-delete", T(D({ disabled: l })), void 0, !0)
|
|
782
812
|
]),
|
|
783
813
|
_: 3
|
|
784
814
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
785
|
-
|
|
815
|
+
el.value ? (u(), i("div", {
|
|
786
816
|
key: 1,
|
|
787
817
|
ref_key: "noTitle",
|
|
788
|
-
ref:
|
|
818
|
+
ref: Xe,
|
|
789
819
|
class: "vue-data-ui-no-title-space",
|
|
790
820
|
style: "height:36px; width: 100%;background:transparent"
|
|
791
821
|
}, null, 512)) : m("", !0),
|
|
792
822
|
e.value.style.title.text ? (u(), i("div", {
|
|
793
823
|
key: 2,
|
|
794
824
|
ref_key: "chartTitle",
|
|
795
|
-
ref:
|
|
825
|
+
ref: Ve,
|
|
796
826
|
style: "width:100%;background:transparent"
|
|
797
827
|
}, [
|
|
798
|
-
(u(),
|
|
828
|
+
(u(), K(so, {
|
|
799
829
|
key: `title_${He.value}`,
|
|
800
830
|
config: {
|
|
801
831
|
title: {
|
|
@@ -809,15 +839,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
809
839
|
}
|
|
810
840
|
}, null, 8, ["config"]))
|
|
811
841
|
], 512)) : m("", !0),
|
|
812
|
-
e.value.userOptions.show &&
|
|
842
|
+
e.value.userOptions.show && pe.value && (h(Ye) || h($e)) ? (u(), K(h(jt), {
|
|
813
843
|
ref_key: "userOptionsRef",
|
|
814
|
-
ref:
|
|
844
|
+
ref: Ce,
|
|
815
845
|
key: `user_options_${Ne.value}`,
|
|
816
846
|
backgroundColor: e.value.style.backgroundColor,
|
|
817
847
|
color: e.value.style.color,
|
|
818
|
-
isImaging: h(
|
|
819
|
-
isPrinting: h(
|
|
820
|
-
uid:
|
|
848
|
+
isImaging: h(Qe),
|
|
849
|
+
isPrinting: h(Je),
|
|
850
|
+
uid: I.value,
|
|
821
851
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
822
852
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
823
853
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -828,99 +858,99 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
828
858
|
isFullscreen: q.value,
|
|
829
859
|
isTooltip: L.value.showTooltip,
|
|
830
860
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
831
|
-
chartElement:
|
|
861
|
+
chartElement: O.value,
|
|
832
862
|
position: e.value.userOptions.position,
|
|
833
863
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
834
864
|
isAnnotation: he.value,
|
|
835
865
|
callbacks: e.value.userOptions.callbacks,
|
|
836
866
|
printScale: e.value.userOptions.print.scale,
|
|
837
867
|
tableDialog: e.value.table.useDialog,
|
|
838
|
-
onToggleFullscreen:
|
|
839
|
-
onGeneratePdf: h(
|
|
840
|
-
onGenerateCsv:
|
|
841
|
-
onGenerateImage: h(
|
|
842
|
-
onGenerateSvg:
|
|
843
|
-
onToggleTable:
|
|
844
|
-
onToggleTooltip:
|
|
845
|
-
onToggleAnnotator:
|
|
868
|
+
onToggleFullscreen: ht,
|
|
869
|
+
onGeneratePdf: h(Ze),
|
|
870
|
+
onGenerateCsv: Te,
|
|
871
|
+
onGenerateImage: h(et),
|
|
872
|
+
onGenerateSvg: pt,
|
|
873
|
+
onToggleTable: mt,
|
|
874
|
+
onToggleTooltip: gt,
|
|
875
|
+
onToggleAnnotator: De,
|
|
846
876
|
style: ue({
|
|
847
|
-
visibility: h(
|
|
877
|
+
visibility: h(Ye) ? h($e) ? "visible" : "hidden" : "visible"
|
|
848
878
|
})
|
|
849
|
-
},
|
|
879
|
+
}, Ct({ _: 2 }, [
|
|
850
880
|
t.$slots.menuIcon ? {
|
|
851
881
|
name: "menuIcon",
|
|
852
|
-
fn:
|
|
853
|
-
|
|
882
|
+
fn: b(({ isOpen: l, color: a }) => [
|
|
883
|
+
x(t.$slots, "menuIcon", T(D({ isOpen: l, color: a })), void 0, !0)
|
|
854
884
|
]),
|
|
855
885
|
key: "0"
|
|
856
886
|
} : void 0,
|
|
857
887
|
t.$slots.optionTooltip ? {
|
|
858
888
|
name: "optionTooltip",
|
|
859
|
-
fn:
|
|
860
|
-
|
|
889
|
+
fn: b(() => [
|
|
890
|
+
x(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
861
891
|
]),
|
|
862
892
|
key: "1"
|
|
863
893
|
} : void 0,
|
|
864
894
|
t.$slots.optionPdf ? {
|
|
865
895
|
name: "optionPdf",
|
|
866
|
-
fn:
|
|
867
|
-
|
|
896
|
+
fn: b(() => [
|
|
897
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
868
898
|
]),
|
|
869
899
|
key: "2"
|
|
870
900
|
} : void 0,
|
|
871
901
|
t.$slots.optionCsv ? {
|
|
872
902
|
name: "optionCsv",
|
|
873
|
-
fn:
|
|
874
|
-
|
|
903
|
+
fn: b(() => [
|
|
904
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
875
905
|
]),
|
|
876
906
|
key: "3"
|
|
877
907
|
} : void 0,
|
|
878
908
|
t.$slots.optionImg ? {
|
|
879
909
|
name: "optionImg",
|
|
880
|
-
fn:
|
|
881
|
-
|
|
910
|
+
fn: b(() => [
|
|
911
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
882
912
|
]),
|
|
883
913
|
key: "4"
|
|
884
914
|
} : void 0,
|
|
885
915
|
t.$slots.optionSvg ? {
|
|
886
916
|
name: "optionSvg",
|
|
887
|
-
fn:
|
|
888
|
-
|
|
917
|
+
fn: b(() => [
|
|
918
|
+
x(t.$slots, "optionSvg", {}, void 0, !0)
|
|
889
919
|
]),
|
|
890
920
|
key: "5"
|
|
891
921
|
} : void 0,
|
|
892
922
|
t.$slots.optionTable ? {
|
|
893
923
|
name: "optionTable",
|
|
894
|
-
fn:
|
|
895
|
-
|
|
924
|
+
fn: b(() => [
|
|
925
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
896
926
|
]),
|
|
897
927
|
key: "6"
|
|
898
928
|
} : void 0,
|
|
899
929
|
t.$slots.optionFullscreen ? {
|
|
900
930
|
name: "optionFullscreen",
|
|
901
|
-
fn:
|
|
902
|
-
|
|
931
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
932
|
+
x(t.$slots, "optionFullscreen", T(D({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
903
933
|
]),
|
|
904
934
|
key: "7"
|
|
905
935
|
} : void 0,
|
|
906
936
|
t.$slots.optionAnnotator ? {
|
|
907
937
|
name: "optionAnnotator",
|
|
908
|
-
fn:
|
|
909
|
-
|
|
938
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
939
|
+
x(t.$slots, "optionAnnotator", T(D({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
910
940
|
]),
|
|
911
941
|
key: "8"
|
|
912
942
|
} : void 0
|
|
913
943
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
914
944
|
(u(), i("svg", {
|
|
915
945
|
ref_key: "svgRef",
|
|
916
|
-
ref:
|
|
917
|
-
xmlns: h(
|
|
946
|
+
ref: Fe,
|
|
947
|
+
xmlns: h(Nl),
|
|
918
948
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
919
949
|
class: V({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
920
|
-
viewBox: `0 0 ${
|
|
950
|
+
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
|
|
921
951
|
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
922
952
|
}, [
|
|
923
|
-
|
|
953
|
+
Re(h(Ht)),
|
|
924
954
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
925
955
|
key: 0,
|
|
926
956
|
x: n.value.left,
|
|
@@ -931,49 +961,49 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
931
961
|
pointerEvents: "none"
|
|
932
962
|
}
|
|
933
963
|
}, [
|
|
934
|
-
|
|
935
|
-
], 8,
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
id: `bearish_gradient_${
|
|
964
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
965
|
+
], 8, co)) : m("", !0),
|
|
966
|
+
$.value.length > 0 ? (u(), i("g", vo, [
|
|
967
|
+
g("defs", null, [
|
|
968
|
+
g("linearGradient", {
|
|
969
|
+
id: `bearish_gradient_${I.value}`,
|
|
940
970
|
x2: "0%",
|
|
941
971
|
y2: "100%"
|
|
942
972
|
}, [
|
|
943
|
-
|
|
973
|
+
g("stop", {
|
|
944
974
|
offset: "0%",
|
|
945
975
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
946
|
-
}, null, 8,
|
|
947
|
-
|
|
976
|
+
}, null, 8, ho),
|
|
977
|
+
g("stop", {
|
|
948
978
|
offset: "50%",
|
|
949
979
|
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
950
|
-
}, null, 8,
|
|
951
|
-
|
|
980
|
+
}, null, 8, mo),
|
|
981
|
+
g("stop", {
|
|
952
982
|
offset: "100%",
|
|
953
983
|
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
954
|
-
}, null, 8,
|
|
955
|
-
], 8,
|
|
956
|
-
|
|
957
|
-
id: `bullish_gradient_${
|
|
984
|
+
}, null, 8, go)
|
|
985
|
+
], 8, yo),
|
|
986
|
+
g("linearGradient", {
|
|
987
|
+
id: `bullish_gradient_${I.value}`,
|
|
958
988
|
x2: "0%",
|
|
959
989
|
y2: "100%"
|
|
960
990
|
}, [
|
|
961
|
-
|
|
991
|
+
g("stop", {
|
|
962
992
|
offset: "0%",
|
|
963
993
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
964
|
-
}, null, 8,
|
|
965
|
-
|
|
994
|
+
}, null, 8, po),
|
|
995
|
+
g("stop", {
|
|
966
996
|
offset: "50%",
|
|
967
997
|
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
968
|
-
}, null, 8,
|
|
969
|
-
|
|
998
|
+
}, null, 8, bo),
|
|
999
|
+
g("stop", {
|
|
970
1000
|
offset: "100%",
|
|
971
1001
|
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
972
|
-
}, null, 8,
|
|
973
|
-
], 8,
|
|
1002
|
+
}, null, 8, xo)
|
|
1003
|
+
], 8, fo)
|
|
974
1004
|
]),
|
|
975
|
-
e.value.style.layout.grid.show ? (u(), i("g",
|
|
976
|
-
|
|
1005
|
+
e.value.style.layout.grid.show ? (u(), i("g", ko, [
|
|
1006
|
+
g("line", {
|
|
977
1007
|
x1: n.value.left,
|
|
978
1008
|
x2: n.value.left,
|
|
979
1009
|
y1: n.value.top,
|
|
@@ -981,8 +1011,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
981
1011
|
stroke: e.value.style.layout.grid.stroke,
|
|
982
1012
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
983
1013
|
"stroke-linecap": "round"
|
|
984
|
-
}, null, 8,
|
|
985
|
-
|
|
1014
|
+
}, null, 8, wo),
|
|
1015
|
+
g("line", {
|
|
986
1016
|
x1: n.value.left,
|
|
987
1017
|
x2: n.value.right,
|
|
988
1018
|
y1: n.value.bottom,
|
|
@@ -990,8 +1020,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
990
1020
|
stroke: e.value.style.layout.grid.stroke,
|
|
991
1021
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
992
1022
|
"stroke-linecap": "round"
|
|
993
|
-
}, null, 8,
|
|
994
|
-
e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(
|
|
1023
|
+
}, null, 8, Co),
|
|
1024
|
+
e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(z, { key: 0 }, M(it.value, (l) => (u(), i("line", {
|
|
995
1025
|
x1: n.value.left,
|
|
996
1026
|
x2: n.value.right,
|
|
997
1027
|
y1: l.y,
|
|
@@ -1000,31 +1030,31 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1000
1030
|
"stroke-width": e.value.style.layout.grid.horizontalLines.strokeWidth,
|
|
1001
1031
|
"stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1002
1032
|
"stroke-linecap": "round"
|
|
1003
|
-
}, null, 8,
|
|
1004
|
-
e.value.style.layout.grid.verticalLines.show ? (u(!0), i(
|
|
1033
|
+
}, null, 8, Ao))), 256)) : m("", !0),
|
|
1034
|
+
e.value.style.layout.grid.verticalLines.show ? (u(!0), i(z, { key: 1 }, M(Le.value, (l, a) => (u(), i("g", null, [
|
|
1005
1035
|
l.text ? (u(), i("line", {
|
|
1006
1036
|
key: 0,
|
|
1007
|
-
x1: n.value.left +
|
|
1008
|
-
x2: n.value.left +
|
|
1037
|
+
x1: n.value.left + v.value * a + v.value / 2,
|
|
1038
|
+
x2: n.value.left + v.value * a + v.value / 2,
|
|
1009
1039
|
y1: n.value.top,
|
|
1010
1040
|
y2: n.value.bottom,
|
|
1011
1041
|
stroke: e.value.style.layout.grid.verticalLines.stroke,
|
|
1012
1042
|
"stroke-width": e.value.style.layout.grid.verticalLines.strokeWidth,
|
|
1013
1043
|
"stroke-dasharray": e.value.style.layout.grid.verticalLines.strokeDasharray,
|
|
1014
1044
|
"stroke-linecap": "round"
|
|
1015
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, $o)) : m("", !0)
|
|
1016
1046
|
]))), 256)) : m("", !0),
|
|
1017
|
-
e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(
|
|
1047
|
+
e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(z, { key: 2 }, M(Le.value, (l, a) => (u(), i("g", null, [
|
|
1018
1048
|
l.text ? (u(), i("line", {
|
|
1019
1049
|
key: 0,
|
|
1020
|
-
x1: n.value.left +
|
|
1021
|
-
x2: n.value.left +
|
|
1050
|
+
x1: n.value.left + v.value * a + v.value / 2,
|
|
1051
|
+
x2: n.value.left + v.value * a + v.value / 2,
|
|
1022
1052
|
y1: n.value.bottom,
|
|
1023
1053
|
y2: n.value.bottom + 3,
|
|
1024
1054
|
stroke: e.value.style.layout.grid.stroke,
|
|
1025
1055
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1026
1056
|
"stroke-linecap": "round"
|
|
1027
|
-
}, null, 8,
|
|
1057
|
+
}, null, 8, Fo)) : m("", !0)
|
|
1028
1058
|
]))), 256)) : m("", !0)
|
|
1029
1059
|
])) : m("", !0),
|
|
1030
1060
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (u(), i("g", {
|
|
@@ -1032,8 +1062,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1032
1062
|
ref_key: "scaleLabels",
|
|
1033
1063
|
ref: we
|
|
1034
1064
|
}, [
|
|
1035
|
-
(u(!0), i(
|
|
1036
|
-
l.value >=
|
|
1065
|
+
(u(!0), i(z, null, M(it.value, (l, a) => (u(), i("g", null, [
|
|
1066
|
+
l.value >= B.value.min && l.value <= B.value.max ? (u(), i("line", {
|
|
1037
1067
|
key: 0,
|
|
1038
1068
|
x1: n.value.left,
|
|
1039
1069
|
x2: n.value.left - 5,
|
|
@@ -1042,12 +1072,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1042
1072
|
stroke: e.value.style.layout.grid.stroke,
|
|
1043
1073
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1044
1074
|
"stroke-linecap": "round"
|
|
1045
|
-
}, null, 8,
|
|
1046
|
-
l.value >=
|
|
1075
|
+
}, null, 8, _o)) : m("", !0),
|
|
1076
|
+
l.value >= B.value.min && l.value <= B.value.max ? (u(), i("text", {
|
|
1047
1077
|
key: 1,
|
|
1048
1078
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
1049
|
-
y: l.y +
|
|
1050
|
-
"font-size":
|
|
1079
|
+
y: l.y + p.value.yAxisFontSize / 3,
|
|
1080
|
+
"font-size": p.value.yAxisFontSize,
|
|
1051
1081
|
"text-anchor": "end",
|
|
1052
1082
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1053
1083
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
@@ -1056,7 +1086,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1056
1086
|
v: l.value,
|
|
1057
1087
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
1058
1088
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
1059
|
-
})), 9,
|
|
1089
|
+
})), 9, zo)) : m("", !0)
|
|
1060
1090
|
]))), 256))
|
|
1061
1091
|
], 512)) : m("", !0),
|
|
1062
1092
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
|
|
@@ -1064,15 +1094,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1064
1094
|
ref_key: "timeLabelsEls",
|
|
1065
1095
|
ref: ee
|
|
1066
1096
|
}, [
|
|
1067
|
-
(u(!0), i(
|
|
1068
|
-
|
|
1097
|
+
(u(!0), i(z, null, M(nl.value, (l, a) => (u(), i("g", null, [
|
|
1098
|
+
g("text", {
|
|
1069
1099
|
class: "vue-data-ui-time-label",
|
|
1070
|
-
transform: `translate(${n.value.left +
|
|
1100
|
+
transform: `translate(${n.value.left + v.value * a + v.value / 2}, ${n.value.bottom + p.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1071
1101
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1072
|
-
"font-size":
|
|
1102
|
+
"font-size": p.value.xAxisFontSize,
|
|
1073
1103
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1074
1104
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1075
|
-
}, ie(l), 9,
|
|
1105
|
+
}, ie(l), 9, Lo)
|
|
1076
1106
|
]))), 256))
|
|
1077
1107
|
], 512)) : m("", !0),
|
|
1078
1108
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
|
|
@@ -1080,21 +1110,21 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1080
1110
|
ref_key: "timeLabelsEls",
|
|
1081
1111
|
ref: ee
|
|
1082
1112
|
}, [
|
|
1083
|
-
(u(!0), i(
|
|
1084
|
-
|
|
1113
|
+
(u(!0), i(z, null, M(Le.value, (l, a) => (u(), i("g", null, [
|
|
1114
|
+
g("text", {
|
|
1085
1115
|
class: "vue-data-ui-time-label",
|
|
1086
|
-
transform: `translate(${n.value.left +
|
|
1116
|
+
transform: `translate(${n.value.left + v.value * a + v.value / 2}, ${n.value.bottom + p.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1087
1117
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1088
|
-
"font-size":
|
|
1118
|
+
"font-size": p.value.xAxisFontSize,
|
|
1089
1119
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1090
1120
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1091
|
-
}, ie(l.text), 9,
|
|
1121
|
+
}, ie(l.text), 9, So)
|
|
1092
1122
|
]))), 256))
|
|
1093
1123
|
], 512)) : m("", !0),
|
|
1094
|
-
e.value.type === "candlestick" ? (u(), i(
|
|
1095
|
-
|
|
1096
|
-
(u(!0), i(
|
|
1097
|
-
|
|
1124
|
+
e.value.type === "candlestick" ? (u(), i(z, { key: 4 }, [
|
|
1125
|
+
g("g", null, [
|
|
1126
|
+
(u(!0), i(z, null, M($.value, (l, a) => (u(), i("g", null, [
|
|
1127
|
+
g("rect", {
|
|
1098
1128
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
1099
1129
|
y: l.high.y,
|
|
1100
1130
|
width: e.value.style.layout.wick.strokeWidth,
|
|
@@ -1102,114 +1132,114 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1102
1132
|
fill: e.value.style.layout.wick.stroke,
|
|
1103
1133
|
stroke: "none",
|
|
1104
1134
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1105
|
-
class: V({ "vue-data-ui-transition":
|
|
1106
|
-
}, null, 10,
|
|
1107
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g",
|
|
1108
|
-
|
|
1135
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1136
|
+
}, null, 10, To),
|
|
1137
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g", Do, [
|
|
1138
|
+
g("circle", {
|
|
1109
1139
|
cx: l.high.x,
|
|
1110
1140
|
cy: l.high.y,
|
|
1111
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1141
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1112
1142
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1113
|
-
class: V({ "vue-data-ui-transition":
|
|
1114
|
-
}, null, 10,
|
|
1115
|
-
|
|
1143
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1144
|
+
}, null, 10, Mo),
|
|
1145
|
+
g("circle", {
|
|
1116
1146
|
cx: l.low.x,
|
|
1117
1147
|
cy: l.low.y,
|
|
1118
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1148
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1119
1149
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1120
|
-
class: V({ "vue-data-ui-transition":
|
|
1121
|
-
}, null, 10,
|
|
1150
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1151
|
+
}, null, 10, Io)
|
|
1122
1152
|
])) : m("", !0),
|
|
1123
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g",
|
|
1124
|
-
|
|
1125
|
-
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1153
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g", Bo, [
|
|
1154
|
+
g("rect", {
|
|
1155
|
+
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
1126
1156
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
1127
|
-
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1157
|
+
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.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" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
1128
1158
|
height: e.value.style.layout.wick.strokeWidth,
|
|
1129
1159
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1130
1160
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1131
1161
|
stroke: "none",
|
|
1132
|
-
class: V({ "vue-data-ui-transition":
|
|
1133
|
-
}, null, 10,
|
|
1134
|
-
|
|
1135
|
-
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1162
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1163
|
+
}, null, 10, Eo),
|
|
1164
|
+
g("rect", {
|
|
1165
|
+
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
1136
1166
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
1137
|
-
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1167
|
+
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.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" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
1138
1168
|
height: e.value.style.layout.wick.strokeWidth,
|
|
1139
1169
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1140
1170
|
stroke: "none",
|
|
1141
1171
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1142
|
-
class: V({ "vue-data-ui-transition":
|
|
1143
|
-
}, null, 10,
|
|
1172
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1173
|
+
}, null, 10, Ro)
|
|
1144
1174
|
])) : m("", !0)
|
|
1145
1175
|
]))), 256))
|
|
1146
1176
|
]),
|
|
1147
|
-
|
|
1148
|
-
(u(!0), i(
|
|
1149
|
-
x: l.open.x -
|
|
1177
|
+
g("g", null, [
|
|
1178
|
+
(u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
|
|
1179
|
+
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1150
1180
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1151
1181
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1152
|
-
width:
|
|
1182
|
+
width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
|
|
1153
1183
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
1154
1184
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1155
1185
|
stroke: "none",
|
|
1156
|
-
class: V({ "vue-data-ui-transition":
|
|
1157
|
-
}, null, 10,
|
|
1158
|
-
(u(!0), i(
|
|
1159
|
-
x: l.open.x -
|
|
1186
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1187
|
+
}, null, 10, Oo))), 256)),
|
|
1188
|
+
(u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
|
|
1189
|
+
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1160
1190
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1161
1191
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1162
|
-
width:
|
|
1163
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${
|
|
1192
|
+
width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
|
|
1193
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${I.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${I.value})` : e.value.style.layout.candle.colors.bearish,
|
|
1164
1194
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1165
1195
|
stroke: e.value.style.layout.candle.stroke,
|
|
1166
1196
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
1167
1197
|
"stroke-linecap": "round",
|
|
1168
1198
|
"stroke-linejoin": "round",
|
|
1169
|
-
class: V({ "vue-data-ui-transition":
|
|
1170
|
-
}, null, 10,
|
|
1199
|
+
class: V({ "vue-data-ui-transition": E.value && !h(P) })
|
|
1200
|
+
}, null, 10, Po))), 256))
|
|
1171
1201
|
])
|
|
1172
1202
|
], 64)) : m("", !0),
|
|
1173
|
-
e.value.type === "ohlc" ? (u(!0), i(
|
|
1174
|
-
|
|
1175
|
-
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6,
|
|
1203
|
+
e.value.type === "ohlc" ? (u(!0), i(z, { key: 5 }, M($.value, (l, a) => (u(), i("g", null, [
|
|
1204
|
+
g("path", {
|
|
1205
|
+
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, v.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, v.value / 3)},${l.close.y}`,
|
|
1176
1206
|
stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1177
1207
|
"stroke-width": 1
|
|
1178
|
-
}, null, 8,
|
|
1208
|
+
}, null, 8, No)
|
|
1179
1209
|
]))), 256)) : m("", !0),
|
|
1180
|
-
|
|
1181
|
-
(u(!0), i(
|
|
1182
|
-
x: n.value.left +
|
|
1210
|
+
g("g", null, [
|
|
1211
|
+
(u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
|
|
1212
|
+
x: n.value.left + a * v.value,
|
|
1183
1213
|
y: n.value.top,
|
|
1184
1214
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
1185
|
-
width:
|
|
1186
|
-
fill:
|
|
1187
|
-
onMouseover: () =>
|
|
1188
|
-
onMouseleave: () =>
|
|
1189
|
-
onClick: () =>
|
|
1190
|
-
}, null, 40,
|
|
1215
|
+
width: v.value <= 0 ? 1e-4 : v.value,
|
|
1216
|
+
fill: R.value === a || Ge.value === a ? h(Vl)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
1217
|
+
onMouseover: () => hl(a, l),
|
|
1218
|
+
onMouseleave: () => yl(a, l),
|
|
1219
|
+
onClick: () => dl(a, l)
|
|
1220
|
+
}, null, 40, Vo))), 256))
|
|
1191
1221
|
])
|
|
1192
1222
|
])) : m("", !0),
|
|
1193
|
-
|
|
1223
|
+
lt.value ? (u(), i("rect", At({ key: 2 }, ol.value, {
|
|
1194
1224
|
"data-start": r.value.start,
|
|
1195
1225
|
"data-end": r.value.end
|
|
1196
|
-
}), null, 16,
|
|
1197
|
-
|
|
1226
|
+
}), null, 16, Uo)) : m("", !0),
|
|
1227
|
+
x(t.$slots, "svg", {
|
|
1198
1228
|
svg: {
|
|
1199
|
-
...
|
|
1200
|
-
data:
|
|
1229
|
+
...p.value,
|
|
1230
|
+
data: $.value,
|
|
1201
1231
|
drawingArea: n.value
|
|
1202
1232
|
}
|
|
1203
1233
|
}, void 0, !0)
|
|
1204
|
-
], 14,
|
|
1205
|
-
t.$slots.watermark ? (u(), i("div",
|
|
1206
|
-
|
|
1234
|
+
], 14, ro)),
|
|
1235
|
+
t.$slots.watermark ? (u(), i("div", Wo, [
|
|
1236
|
+
x(t.$slots, "watermark", T(D({ isPrinting: h(Je) || h(Qe) })), void 0, !0)
|
|
1207
1237
|
])) : m("", !0),
|
|
1208
|
-
e.value.style.zoom.show &&
|
|
1238
|
+
e.value.style.zoom.show && A.value > 6 && pe.value && dt.value ? (u(), K(uo, {
|
|
1209
1239
|
key: 5,
|
|
1210
1240
|
ref_key: "chartSlicer",
|
|
1211
1241
|
ref: Z,
|
|
1212
|
-
allMinimaps:
|
|
1242
|
+
allMinimaps: ul.value,
|
|
1213
1243
|
background: e.value.style.zoom.color,
|
|
1214
1244
|
borderColor: e.value.style.backgroundColor,
|
|
1215
1245
|
customFormat: e.value.style.zoom.customFormat,
|
|
@@ -1222,10 +1252,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1222
1252
|
fontSize: e.value.style.zoom.fontSize,
|
|
1223
1253
|
immediate: !e.value.style.zoom.preview.enable,
|
|
1224
1254
|
inputColor: e.value.style.zoom.color,
|
|
1225
|
-
isPreview:
|
|
1226
|
-
labelLeft:
|
|
1227
|
-
labelRight:
|
|
1228
|
-
max:
|
|
1255
|
+
isPreview: lt.value,
|
|
1256
|
+
labelLeft: ct.value.start || "",
|
|
1257
|
+
labelRight: ct.value.end || "",
|
|
1258
|
+
max: A.value,
|
|
1229
1259
|
min: 0,
|
|
1230
1260
|
minimap: e.value.style.zoom.minimap.show ? h(k).map((l) => l[2]) : [],
|
|
1231
1261
|
minimapCompact: e.value.style.zoom.minimap.compact,
|
|
@@ -1234,70 +1264,70 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1234
1264
|
minimapMerged: !1,
|
|
1235
1265
|
minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
|
|
1236
1266
|
minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
|
|
1237
|
-
minimapSelectedIndex:
|
|
1267
|
+
minimapSelectedIndex: R.value,
|
|
1238
1268
|
minimapSelectionRadius: 1,
|
|
1239
|
-
preciseLabels:
|
|
1240
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
1269
|
+
preciseLabels: vl.value,
|
|
1270
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : A.value,
|
|
1241
1271
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
1242
1272
|
selectColor: e.value.style.zoom.highlightColor,
|
|
1243
1273
|
selectedSeries: h(k),
|
|
1244
1274
|
smoothMinimap: !1,
|
|
1245
1275
|
start: r.value.start,
|
|
1246
1276
|
textColor: e.value.style.color,
|
|
1247
|
-
timeLabels:
|
|
1277
|
+
timeLabels: nt.value,
|
|
1248
1278
|
usePreciseLabels: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !e.value.style.zoom.useDefaultFormat,
|
|
1249
1279
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
1250
1280
|
valueEnd: r.value.end,
|
|
1251
1281
|
valueStart: r.value.start,
|
|
1252
1282
|
verticalHandles: e.value.style.zoom.minimap.verticalHandles,
|
|
1253
|
-
"onUpdate:end":
|
|
1254
|
-
"onUpdate:start":
|
|
1255
|
-
onTrapMouse:
|
|
1283
|
+
"onUpdate:end": $l,
|
|
1284
|
+
"onUpdate:start": Al,
|
|
1285
|
+
onTrapMouse: Cl,
|
|
1256
1286
|
onReset: vt,
|
|
1257
|
-
onFutureEnd:
|
|
1258
|
-
onFutureStart:
|
|
1287
|
+
onFutureEnd: o[0] || (o[0] = (l) => ot("end", l)),
|
|
1288
|
+
onFutureStart: o[1] || (o[1] = (l) => ot("start", l))
|
|
1259
1289
|
}, {
|
|
1260
|
-
"reset-action":
|
|
1261
|
-
|
|
1290
|
+
"reset-action": b(({ reset: l }) => [
|
|
1291
|
+
x(t.$slots, "reset-action", T(D({ reset: l })), void 0, !0)
|
|
1262
1292
|
]),
|
|
1263
|
-
slotMap:
|
|
1264
|
-
(u(!0), i(
|
|
1265
|
-
|
|
1293
|
+
slotMap: b(({ height: l, unitW: a }) => [
|
|
1294
|
+
(u(!0), i(z, null, M(sl.value({ minimapH: l, unitW: a }), (s, c) => (u(), i("g", null, [
|
|
1295
|
+
g("path", {
|
|
1266
1296
|
d: `M ${s.high.x},${s.high.y} ${s.low.x},${s.low.y}`,
|
|
1267
1297
|
stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1268
1298
|
"stroke-width": 1,
|
|
1269
1299
|
style: ue({
|
|
1270
|
-
opacity:
|
|
1300
|
+
opacity: c >= C.value.start && c <= C.value.end ? 1 : 0.6
|
|
1271
1301
|
})
|
|
1272
|
-
}, null, 12,
|
|
1273
|
-
|
|
1302
|
+
}, null, 12, Xo),
|
|
1303
|
+
g("path", {
|
|
1274
1304
|
d: `M ${s.open.x},${s.open.y} ${s.close.x},${s.close.y}`,
|
|
1275
1305
|
stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1276
|
-
"stroke-width": Math.min(6,
|
|
1306
|
+
"stroke-width": Math.min(6, a / 1.5),
|
|
1277
1307
|
style: ue({
|
|
1278
|
-
opacity:
|
|
1308
|
+
opacity: c >= C.value.start && c <= C.value.end ? 1 : 0.6
|
|
1279
1309
|
})
|
|
1280
|
-
}, null, 12,
|
|
1310
|
+
}, null, 12, jo)
|
|
1281
1311
|
]))), 256))
|
|
1282
1312
|
]),
|
|
1283
1313
|
_: 3
|
|
1284
1314
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "useResetSlot", "valueEnd", "valueStart", "verticalHandles"])) : m("", !0),
|
|
1285
|
-
|
|
1315
|
+
g("div", {
|
|
1286
1316
|
ref_key: "chartLegend",
|
|
1287
|
-
ref:
|
|
1317
|
+
ref: Ue
|
|
1288
1318
|
}, [
|
|
1289
|
-
|
|
1319
|
+
x(t.$slots, "legend", { legend: $.value }, void 0, !0)
|
|
1290
1320
|
], 512),
|
|
1291
1321
|
t.$slots.source ? (u(), i("div", {
|
|
1292
1322
|
key: 6,
|
|
1293
1323
|
ref_key: "source",
|
|
1294
|
-
ref:
|
|
1324
|
+
ref: We,
|
|
1295
1325
|
dir: "auto"
|
|
1296
1326
|
}, [
|
|
1297
|
-
|
|
1327
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
1298
1328
|
], 512)) : m("", !0),
|
|
1299
|
-
|
|
1300
|
-
show: L.value.showTooltip &&
|
|
1329
|
+
Re(h(Vt), {
|
|
1330
|
+
show: L.value.showTooltip && xe.value,
|
|
1301
1331
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1302
1332
|
color: e.value.style.tooltip.color,
|
|
1303
1333
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1307,7 +1337,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1307
1337
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1308
1338
|
position: e.value.style.tooltip.position,
|
|
1309
1339
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1310
|
-
parent:
|
|
1340
|
+
parent: O.value,
|
|
1311
1341
|
content: ke.value,
|
|
1312
1342
|
isFullscreen: q.value,
|
|
1313
1343
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
@@ -1316,35 +1346,35 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1316
1346
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1317
1347
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1318
1348
|
}, {
|
|
1319
|
-
"tooltip-before":
|
|
1320
|
-
|
|
1349
|
+
"tooltip-before": b(() => [
|
|
1350
|
+
x(t.$slots, "tooltip-before", T(D({ ...Se.value })), void 0, !0)
|
|
1321
1351
|
]),
|
|
1322
|
-
"tooltip-after":
|
|
1323
|
-
|
|
1352
|
+
"tooltip-after": b(() => [
|
|
1353
|
+
x(t.$slots, "tooltip-after", T(D({ ...Se.value })), void 0, !0)
|
|
1324
1354
|
]),
|
|
1325
1355
|
_: 3
|
|
1326
1356
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1327
|
-
|
|
1357
|
+
pe.value && e.value.userOptions.buttons.table ? (u(), K(Bl(ae.value.component), At({ key: 7 }, ae.value.props, {
|
|
1328
1358
|
ref_key: "tableUnit",
|
|
1329
1359
|
ref: te,
|
|
1330
|
-
onClose:
|
|
1331
|
-
}),
|
|
1332
|
-
content:
|
|
1333
|
-
(u(),
|
|
1334
|
-
key: `table_${
|
|
1360
|
+
onClose: ft
|
|
1361
|
+
}), Ct({
|
|
1362
|
+
content: b(() => [
|
|
1363
|
+
(u(), K(h(Wt), {
|
|
1364
|
+
key: `table_${je.value}`,
|
|
1335
1365
|
colNames: ye.value.colNames,
|
|
1336
1366
|
head: ye.value.head,
|
|
1337
1367
|
body: ye.value.body,
|
|
1338
1368
|
config: ye.value.config,
|
|
1339
|
-
title: e.value.table.useDialog ? "" :
|
|
1369
|
+
title: e.value.table.useDialog ? "" : ae.value.title,
|
|
1340
1370
|
withCloseButton: !e.value.table.useDialog,
|
|
1341
|
-
onClose:
|
|
1371
|
+
onClose: ft
|
|
1342
1372
|
}, {
|
|
1343
|
-
th:
|
|
1373
|
+
th: b(({ th: l }) => [
|
|
1344
1374
|
$t(ie(l), 1)
|
|
1345
1375
|
]),
|
|
1346
|
-
td:
|
|
1347
|
-
|
|
1376
|
+
td: b(({ td: l }) => [
|
|
1377
|
+
g("div", { innerHTML: l }, null, 8, Ho)
|
|
1348
1378
|
]),
|
|
1349
1379
|
_: 1
|
|
1350
1380
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1353,32 +1383,37 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1353
1383
|
}, [
|
|
1354
1384
|
e.value.table.useDialog ? {
|
|
1355
1385
|
name: "title",
|
|
1356
|
-
fn:
|
|
1357
|
-
$t(ie(
|
|
1386
|
+
fn: b(() => [
|
|
1387
|
+
$t(ie(ae.value.title), 1)
|
|
1358
1388
|
]),
|
|
1359
1389
|
key: "0"
|
|
1360
1390
|
} : void 0,
|
|
1361
1391
|
e.value.table.useDialog ? {
|
|
1362
1392
|
name: "actions",
|
|
1363
|
-
fn:
|
|
1364
|
-
|
|
1393
|
+
fn: b(() => [
|
|
1394
|
+
g("button", {
|
|
1365
1395
|
tabindex: "0",
|
|
1366
1396
|
class: "vue-ui-user-options-button",
|
|
1367
|
-
onClick:
|
|
1397
|
+
onClick: o[2] || (o[2] = (l) => Te(e.value.userOptions.callbacks.csv))
|
|
1368
1398
|
}, [
|
|
1369
|
-
|
|
1399
|
+
Re(h(Nt), {
|
|
1370
1400
|
name: "excel",
|
|
1371
|
-
stroke:
|
|
1401
|
+
stroke: ae.value.props.color
|
|
1372
1402
|
}, null, 8, ["stroke"])
|
|
1373
1403
|
])
|
|
1374
1404
|
]),
|
|
1375
1405
|
key: "1"
|
|
1376
1406
|
} : void 0
|
|
1377
1407
|
]), 1040)) : m("", !0),
|
|
1378
|
-
h(
|
|
1379
|
-
], 46,
|
|
1408
|
+
h(P) ? (u(), K(Kl, { key: 8 })) : m("", !0)
|
|
1409
|
+
], 46, no));
|
|
1380
1410
|
}
|
|
1381
|
-
},
|
|
1411
|
+
}, qo = /* @__PURE__ */ io(Go, [["__scopeId", "data-v-7a605f29"]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1412
|
+
__proto__: null,
|
|
1413
|
+
default: qo
|
|
1414
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1382
1415
|
export {
|
|
1383
|
-
|
|
1416
|
+
va as a,
|
|
1417
|
+
da as b,
|
|
1418
|
+
qo as v
|
|
1384
1419
|
};
|