candleview 2.8.6 → 2.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16 -16
- package/dist/index.mjs +541 -446
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import rt, { useState as st, useRef as Mt, useEffect as gt } from "react";
|
|
2
|
-
import { LineSeries as ut, AreaSeries as Ae, CandlestickSeries as Ht, BarSeries as
|
|
2
|
+
import { LineSeries as ut, AreaSeries as Ae, CandlestickSeries as Ht, BarSeries as Ni, BaselineSeries as De, HistogramSeries as Gt, createChart as or } from "lightweight-charts";
|
|
3
3
|
import ke from "react-dom";
|
|
4
4
|
var Jt = { exports: {} }, qt = {};
|
|
5
|
-
var
|
|
5
|
+
var We;
|
|
6
6
|
function lr() {
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (We) return qt;
|
|
8
|
+
We = 1;
|
|
9
9
|
var f = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
10
10
|
function e(i, r, a) {
|
|
11
11
|
var s = null;
|
|
@@ -25,9 +25,9 @@ function lr() {
|
|
|
25
25
|
return qt.Fragment = t, qt.jsx = e, qt.jsxs = e, qt;
|
|
26
26
|
}
|
|
27
27
|
var zt = {};
|
|
28
|
-
var
|
|
28
|
+
var Ne;
|
|
29
29
|
function hr() {
|
|
30
|
-
return
|
|
30
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
31
|
function f(x) {
|
|
32
32
|
if (x == null) return null;
|
|
33
33
|
if (typeof x == "function")
|
|
@@ -256,11 +256,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
256
256
|
};
|
|
257
257
|
})()), zt;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var Xe;
|
|
260
260
|
function cr() {
|
|
261
|
-
return
|
|
261
|
+
return Xe || (Xe = 1, process.env.NODE_ENV === "production" ? Jt.exports = lr() : Jt.exports = hr()), Jt.exports;
|
|
262
262
|
}
|
|
263
|
-
var m = cr(),
|
|
263
|
+
var m = cr(), Xi = (function() {
|
|
264
264
|
if (typeof Map < "u")
|
|
265
265
|
return Map;
|
|
266
266
|
function f(t, e) {
|
|
@@ -374,7 +374,7 @@ var pr = 20, fr = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
374
374
|
return this.instance_ || (this.instance_ = new f()), this.instance_;
|
|
375
375
|
}, f.instance_ = null, f;
|
|
376
376
|
})()
|
|
377
|
-
),
|
|
377
|
+
), Yi = (function(f, t) {
|
|
378
378
|
for (var e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
379
379
|
var r = i[e];
|
|
380
380
|
Object.defineProperty(f, r, {
|
|
@@ -388,11 +388,11 @@ var pr = 20, fr = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
388
388
|
}), Xt = (function(f) {
|
|
389
389
|
var t = f && f.ownerDocument && f.ownerDocument.defaultView;
|
|
390
390
|
return t || le;
|
|
391
|
-
}),
|
|
391
|
+
}), Vi = Pe(0, 0, 0, 0);
|
|
392
392
|
function he(f) {
|
|
393
393
|
return parseFloat(f) || 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Ye(f) {
|
|
396
396
|
for (var t = [], e = 1; e < arguments.length; e++)
|
|
397
397
|
t[e - 1] = arguments[e];
|
|
398
398
|
return t.reduce(function(i, r) {
|
|
@@ -414,9 +414,9 @@ function Pr(f) {
|
|
|
414
414
|
function Sr(f) {
|
|
415
415
|
var t = f.clientWidth, e = f.clientHeight;
|
|
416
416
|
if (!t && !e)
|
|
417
|
-
return
|
|
417
|
+
return Vi;
|
|
418
418
|
var i = Xt(f).getComputedStyle(f), r = kr(i), a = r.left + r.right, s = r.top + r.bottom, n = he(i.width), o = he(i.height);
|
|
419
|
-
if (i.boxSizing === "border-box" && (Math.round(n + a) !== t && (n -=
|
|
419
|
+
if (i.boxSizing === "border-box" && (Math.round(n + a) !== t && (n -= Ye(i, "left", "right") + a), Math.round(o + s) !== e && (o -= Ye(i, "top", "bottom") + s)), !Cr(f)) {
|
|
420
420
|
var l = Math.round(n + a) - t, h = Math.round(o + s) - e;
|
|
421
421
|
Math.abs(l) !== 1 && (n -= l), Math.abs(h) !== 1 && (o -= h);
|
|
422
422
|
}
|
|
@@ -433,11 +433,11 @@ function Cr(f) {
|
|
|
433
433
|
return f === Xt(f).document.documentElement;
|
|
434
434
|
}
|
|
435
435
|
function br(f) {
|
|
436
|
-
return Te ? _r(f) ? Pr(f) : Sr(f) :
|
|
436
|
+
return Te ? _r(f) ? Pr(f) : Sr(f) : Vi;
|
|
437
437
|
}
|
|
438
438
|
function Tr(f) {
|
|
439
439
|
var t = f.x, e = f.y, i = f.width, r = f.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(a.prototype);
|
|
440
|
-
return
|
|
440
|
+
return Yi(s, {
|
|
441
441
|
x: t,
|
|
442
442
|
y: e,
|
|
443
443
|
width: i,
|
|
@@ -470,7 +470,7 @@ var wr = (
|
|
|
470
470
|
/* @__PURE__ */ (function() {
|
|
471
471
|
function f(t, e) {
|
|
472
472
|
var i = Tr(e);
|
|
473
|
-
|
|
473
|
+
Yi(this, { target: t, contentRect: i });
|
|
474
474
|
}
|
|
475
475
|
return f;
|
|
476
476
|
})()
|
|
@@ -478,7 +478,7 @@ var wr = (
|
|
|
478
478
|
/** @class */
|
|
479
479
|
(function() {
|
|
480
480
|
function f(t, e, i) {
|
|
481
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
481
|
+
if (this.activeObservations_ = [], this.observations_ = new Xi(), typeof t != "function")
|
|
482
482
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
483
483
|
this.callback_ = t, this.controller_ = e, this.callbackCtx_ = i;
|
|
484
484
|
}
|
|
@@ -520,7 +520,7 @@ var wr = (
|
|
|
520
520
|
return this.activeObservations_.length > 0;
|
|
521
521
|
}, f;
|
|
522
522
|
})()
|
|
523
|
-
),
|
|
523
|
+
), qi = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Xi(), zi = (
|
|
524
524
|
/** @class */
|
|
525
525
|
/* @__PURE__ */ (function() {
|
|
526
526
|
function f(t) {
|
|
@@ -529,7 +529,7 @@ var wr = (
|
|
|
529
529
|
if (!arguments.length)
|
|
530
530
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
531
531
|
var e = mr.getInstance(), i = new xr(t, e, this);
|
|
532
|
-
|
|
532
|
+
qi.set(this, i);
|
|
533
533
|
}
|
|
534
534
|
return f;
|
|
535
535
|
})()
|
|
@@ -539,14 +539,14 @@ var wr = (
|
|
|
539
539
|
"unobserve",
|
|
540
540
|
"disconnect"
|
|
541
541
|
].forEach(function(f) {
|
|
542
|
-
|
|
542
|
+
zi.prototype[f] = function() {
|
|
543
543
|
var t;
|
|
544
|
-
return (t =
|
|
544
|
+
return (t = qi.get(this))[f].apply(t, arguments);
|
|
545
545
|
};
|
|
546
546
|
});
|
|
547
547
|
var Ar = (function() {
|
|
548
|
-
return typeof le.ResizeObserver < "u" ? le.ResizeObserver :
|
|
549
|
-
})(), E = /* @__PURE__ */ ((f) => (f.ONE_SECOND = "1s", f.FIVE_SECONDS = "5s", f.FIFTEEN_SECONDS = "15s", f.THIRTY_SECONDS = "30s", f.ONE_MINUTE = "1m", f.THREE_MINUTES = "3m", f.FIVE_MINUTES = "5m", f.FIFTEEN_MINUTES = "15m", f.THIRTY_MINUTES = "30m", f.FORTY_FIVE_MINUTES = "45m", f.ONE_HOUR = "1H", f.TWO_HOURS = "2H", f.THREE_HOURS = "3H", f.FOUR_HOURS = "4H", f.SIX_HOURS = "6H", f.EIGHT_HOURS = "8H", f.TWELVE_HOURS = "12H", f.ONE_DAY = "1D", f.THREE_DAYS = "3D", f.ONE_WEEK = "1W", f.TWO_WEEKS = "2W", f.ONE_MONTH = "1M", f.THREE_MONTHS = "3M", f.SIX_MONTHS = "6M", f))(E || {}), j = /* @__PURE__ */ ((f) => (f.NEW_YORK = "America/New_York", f.CHICAGO = "America/Chicago", f.DENVER = "America/Denver", f.LOS_ANGELES = "America/Los_Angeles", f.TORONTO = "America/Toronto", f.LONDON = "Europe/London", f.PARIS = "Europe/Paris", f.FRANKFURT = "Europe/Frankfurt", f.ZURICH = "Europe/Zurich", f.MOSCOW = "Europe/Moscow", f.DUBAI = "Asia/Dubai", f.KARACHI = "Asia/Karachi", f.KOLKATA = "Asia/Kolkata", f.SHANGHAI = "Asia/Shanghai", f.HONG_KONG = "Asia/Hong_Kong", f.SINGAPORE = "Asia/Singapore", f.TOKYO = "Asia/Tokyo", f.SEOUL = "Asia/Seoul", f.SYDNEY = "Australia/Sydney", f.AUCKLAND = "Pacific/Auckland", f.UTC = "UTC", f))(j || {}), bt = /* @__PURE__ */ ((f) => (f.Default = "default", f.Crosshair = "crosshair", f.None = "none", f.Circle = "circle", f.Dot = "dot", f))(bt || {}), Q = /* @__PURE__ */ ((f) => (f.Candle = "Candle", f.HollowCandle = "HollowCandle", f.Bar = "Bar", f.BaseLine = "BaseLine", f.Line = "Line", f.Area = "Area", f.StepLine = "StepLine", f.Histogram = "Histogram", f.HeikinAshi = "HeikinAshi", f.LineBreak = "LineBreak", f.Mountain = "Mountain", f.BaselineArea = "BaselineArea", f.HighLow = "HighLow", f.HLCArea = "HLCArea", f))(Q || {}),
|
|
548
|
+
return typeof le.ResizeObserver < "u" ? le.ResizeObserver : zi;
|
|
549
|
+
})(), E = /* @__PURE__ */ ((f) => (f.ONE_SECOND = "1s", f.FIVE_SECONDS = "5s", f.FIFTEEN_SECONDS = "15s", f.THIRTY_SECONDS = "30s", f.ONE_MINUTE = "1m", f.THREE_MINUTES = "3m", f.FIVE_MINUTES = "5m", f.FIFTEEN_MINUTES = "15m", f.THIRTY_MINUTES = "30m", f.FORTY_FIVE_MINUTES = "45m", f.ONE_HOUR = "1H", f.TWO_HOURS = "2H", f.THREE_HOURS = "3H", f.FOUR_HOURS = "4H", f.SIX_HOURS = "6H", f.EIGHT_HOURS = "8H", f.TWELVE_HOURS = "12H", f.ONE_DAY = "1D", f.THREE_DAYS = "3D", f.ONE_WEEK = "1W", f.TWO_WEEKS = "2W", f.ONE_MONTH = "1M", f.THREE_MONTHS = "3M", f.SIX_MONTHS = "6M", f))(E || {}), j = /* @__PURE__ */ ((f) => (f.NEW_YORK = "America/New_York", f.CHICAGO = "America/Chicago", f.DENVER = "America/Denver", f.LOS_ANGELES = "America/Los_Angeles", f.TORONTO = "America/Toronto", f.LONDON = "Europe/London", f.PARIS = "Europe/Paris", f.FRANKFURT = "Europe/Frankfurt", f.ZURICH = "Europe/Zurich", f.MOSCOW = "Europe/Moscow", f.DUBAI = "Asia/Dubai", f.KARACHI = "Asia/Karachi", f.KOLKATA = "Asia/Kolkata", f.SHANGHAI = "Asia/Shanghai", f.HONG_KONG = "Asia/Hong_Kong", f.SINGAPORE = "Asia/Singapore", f.TOKYO = "Asia/Tokyo", f.SEOUL = "Asia/Seoul", f.SYDNEY = "Australia/Sydney", f.AUCKLAND = "Pacific/Auckland", f.UTC = "UTC", f))(j || {}), bt = /* @__PURE__ */ ((f) => (f.Default = "default", f.Crosshair = "crosshair", f.None = "none", f.Circle = "circle", f.Dot = "dot", f))(bt || {}), Q = /* @__PURE__ */ ((f) => (f.Candle = "Candle", f.HollowCandle = "HollowCandle", f.Bar = "Bar", f.BaseLine = "BaseLine", f.Line = "Line", f.Area = "Area", f.StepLine = "StepLine", f.Histogram = "Histogram", f.HeikinAshi = "HeikinAshi", f.LineBreak = "LineBreak", f.Mountain = "Mountain", f.BaselineArea = "BaselineArea", f.HighLow = "HighLow", f.HLCArea = "HLCArea", f))(Q || {}), D = /* @__PURE__ */ ((f) => (f.MA = "MA", f.EMA = "EMA", f.BOLLINGER = "BOLLINGER", f.ICHIMOKU = "ICHIMOKU", f.DONCHIAN = "DONCHIAN", f.ENVELOPE = "ENVELOPE", f.VWAP = "VWAP", f.HEATMAP = "HEATMAP", f.MARKETPROFILE = "MARKETPROFILE", f))(D || {}), N = /* @__PURE__ */ ((f) => (f.RSI = "RSI", f.MACD = "MACD", f.VOLUME = "VOLUME", f.SAR = "SAR", f.KDJ = "KDJ", f.ATR = "ATR", f.STOCHASTIC = "STOCHASTIC", f.CCI = "CCI", f.BBWIDTH = "BBWIDTH", f.ADX = "ADX", f.OBV = "OBV", f))(N || {}), w = /* @__PURE__ */ ((f) => (f[f.Text = 0] = "Text", f[f.Emoji = 1] = "Emoji", f[f.LineSegment = 2] = "LineSegment", f[f.ArrowLine = 3] = "ArrowLine", f[f.ThickArrowLine = 4] = "ThickArrowLine", f[f.HorizontalLine = 5] = "HorizontalLine", f[f.VerticalLine = 6] = "VerticalLine", f[f.ParallelChannel = 7] = "ParallelChannel", f[f.LinearRegressionChannel = 8] = "LinearRegressionChannel", f[f.EquidistantChannel = 9] = "EquidistantChannel", f[f.DisjointChannel = 10] = "DisjointChannel", f[f.Pitchfork = 11] = "Pitchfork", f[f.AndrewPitchfork = 12] = "AndrewPitchfork", f[f.EnhancedAndrewPitchfork = 13] = "EnhancedAndrewPitchfork", f[f.SchiffPitchfork = 14] = "SchiffPitchfork", f[f.Rectangle = 15] = "Rectangle", f[f.Circle = 16] = "Circle", f[f.Ellipse = 17] = "Ellipse", f[f.Sector = 18] = "Sector", f[f.Curve = 19] = "Curve", f[f.DoubleCurve = 20] = "DoubleCurve", f[f.Triangle = 21] = "Triangle", f[f.GannFan = 22] = "GannFan", f[f.GannBox = 23] = "GannBox", f[f.GannRectangle = 24] = "GannRectangle", f[f.FibonacciTimeZoon = 25] = "FibonacciTimeZoon", f[f.FibonacciRetracement = 26] = "FibonacciRetracement", f[f.FibonacciArc = 27] = "FibonacciArc", f[f.FibonacciCircle = 28] = "FibonacciCircle", f[f.FibonacciSpiral = 29] = "FibonacciSpiral", f[f.FibonacciWedge = 30] = "FibonacciWedge", f[f.FibonacciFan = 31] = "FibonacciFan", f[f.FibonacciChannel = 32] = "FibonacciChannel", f[f.FibonacciExtensionBasePrice = 33] = "FibonacciExtensionBasePrice", f[f.FibonacciExtensionBaseTime = 34] = "FibonacciExtensionBaseTime", f[f.XABCD = 35] = "XABCD", f[f.HeadAndShoulders = 36] = "HeadAndShoulders", f[f.ABCD = 37] = "ABCD", f[f.TriangleABCD = 38] = "TriangleABCD", f[f.Elliott_Impulse = 39] = "Elliott_Impulse", f[f.Elliott_Corrective = 40] = "Elliott_Corrective", f[f.Elliott_Triangle = 41] = "Elliott_Triangle", f[f.Elliott_Double_Combination = 42] = "Elliott_Double_Combination", f[f.Elliott_Triple_Combination = 43] = "Elliott_Triple_Combination", f[f.TimeRange = 44] = "TimeRange", f[f.PriceRange = 45] = "PriceRange", f[f.TimePriceRange = 46] = "TimePriceRange", f[f.Pencil = 47] = "Pencil", f[f.Pen = 48] = "Pen", f[f.Brush = 49] = "Brush", f[f.MarkerPen = 50] = "MarkerPen", f[f.Eraser = 51] = "Eraser", f[f.Image = 52] = "Image", f[f.Table = 53] = "Table", f[f.LongPosition = 54] = "LongPosition", f[f.ShortPosition = 55] = "ShortPosition", f[f.PriceLabel = 56] = "PriceLabel", f[f.Flag = 57] = "Flag", f[f.PriceNote = 58] = "PriceNote", f[f.SignPost = 59] = "SignPost", f[f.Pin = 60] = "Pin", f[f.BubbleBox = 61] = "BubbleBox", f[f.TextEdit = 62] = "TextEdit", f[f.MockKLine = 63] = "MockKLine", f[f.HeatMap = 64] = "HeatMap", f[f.TimeEvent = 65] = "TimeEvent", f[f.PriceEvent = 66] = "PriceEvent", f))(w || {});
|
|
550
550
|
function Se(f) {
|
|
551
551
|
switch (f) {
|
|
552
552
|
case 0:
|
|
@@ -736,7 +736,7 @@ const Dr = (f, t) => ({ series: f.addSeries(Ht, {
|
|
|
736
736
|
precision: 2,
|
|
737
737
|
minMove: 0.01
|
|
738
738
|
}
|
|
739
|
-
}), type: "hollow-candle" }), Br = (f, t) => ({ series: f.addSeries(
|
|
739
|
+
}), type: "hollow-candle" }), Br = (f, t) => ({ series: f.addSeries(Ni, {
|
|
740
740
|
upColor: t.chart.candleUpColor || "#26a69a",
|
|
741
741
|
downColor: t.chart.candleDownColor || "#ef5350",
|
|
742
742
|
thinBars: !0,
|
|
@@ -949,7 +949,7 @@ const Dr = (f, t) => ({ series: f.addSeries(Ht, {
|
|
|
949
949
|
} catch (i) {
|
|
950
950
|
console.error("Error updating series theme:", i);
|
|
951
951
|
}
|
|
952
|
-
},
|
|
952
|
+
}, Qi = {
|
|
953
953
|
panel: {
|
|
954
954
|
backgroundColor: "#1A1D24",
|
|
955
955
|
borderColor: "#2D323D"
|
|
@@ -1080,7 +1080,7 @@ const Dr = (f, t) => ({ series: f.addSeries(Ht, {
|
|
|
1080
1080
|
dragging: "#49505780"
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
|
-
class
|
|
1083
|
+
class Gi {
|
|
1084
1084
|
constructor() {
|
|
1085
1085
|
this.showOHLCTooltipByCrosshair = (t, e) => {
|
|
1086
1086
|
let i = "";
|
|
@@ -1111,7 +1111,7 @@ class ji {
|
|
|
1111
1111
|
g && g.remove();
|
|
1112
1112
|
const c = document.createElement("div");
|
|
1113
1113
|
c.id = "ohlc-tooltip", c.style.position = "fixed", c.style.zIndex = "9999", c.style.pointerEvents = "none";
|
|
1114
|
-
const u = !l || l ===
|
|
1114
|
+
const u = !l || l === Qi;
|
|
1115
1115
|
c.style.backgroundColor = u ? "#1A1D24" : "#FFFFFF", c.style.color = u ? "#E8EAED" : "#1A1D24", c.style.border = `1px solid ${u ? "#2D323D" : "#E1E5E9"}`, c.style.borderRadius = "4px", c.style.padding = "8px 12px", c.style.fontSize = "12px", c.style.fontFamily = "Arial, sans-serif", c.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)", c.style.maxWidth = "250px", c.style.whiteSpace = "nowrap";
|
|
1116
1116
|
const p = "Time", M = "Open", k = "High", P = "Low", S = "Close", _ = u ? "#AAAAAA" : "#666666", C = `
|
|
1117
1117
|
<div style="display: grid; grid-template-columns: auto auto; gap: 4px 12px;">
|
|
@@ -1290,7 +1290,7 @@ class ji {
|
|
|
1290
1290
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1291
1291
|
if (i)
|
|
1292
1292
|
try {
|
|
1293
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1293
|
+
const r = i.getYAxisValuesAtMouseX(D.MA, e.x, t.props.chart);
|
|
1294
1294
|
t.setState({
|
|
1295
1295
|
maIndicatorValues: r || {}
|
|
1296
1296
|
});
|
|
@@ -1301,7 +1301,7 @@ class ji {
|
|
|
1301
1301
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1302
1302
|
if (i)
|
|
1303
1303
|
try {
|
|
1304
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1304
|
+
const r = i.getYAxisValuesAtMouseX(D.EMA, e.x, t.props.chart);
|
|
1305
1305
|
t.setState({
|
|
1306
1306
|
emaIndicatorValues: r || {}
|
|
1307
1307
|
});
|
|
@@ -1312,7 +1312,7 @@ class ji {
|
|
|
1312
1312
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1313
1313
|
if (i)
|
|
1314
1314
|
try {
|
|
1315
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1315
|
+
const r = i.getYAxisValuesAtMouseX(D.BOLLINGER, e.x, t.props.chart);
|
|
1316
1316
|
t.setState({
|
|
1317
1317
|
bollingerBandsValues: r || {}
|
|
1318
1318
|
});
|
|
@@ -1323,7 +1323,7 @@ class ji {
|
|
|
1323
1323
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1324
1324
|
if (i)
|
|
1325
1325
|
try {
|
|
1326
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1326
|
+
const r = i.getYAxisValuesAtMouseX(D.ICHIMOKU, e.x, t.props.chart);
|
|
1327
1327
|
t.setState({
|
|
1328
1328
|
ichimokuValues: r || {}
|
|
1329
1329
|
});
|
|
@@ -1334,7 +1334,7 @@ class ji {
|
|
|
1334
1334
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1335
1335
|
if (i)
|
|
1336
1336
|
try {
|
|
1337
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1337
|
+
const r = i.getYAxisValuesAtMouseX(D.DONCHIAN, e.x, t.props.chart);
|
|
1338
1338
|
t.setState({
|
|
1339
1339
|
donchianChannelValues: r || {}
|
|
1340
1340
|
});
|
|
@@ -1345,7 +1345,7 @@ class ji {
|
|
|
1345
1345
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1346
1346
|
if (i)
|
|
1347
1347
|
try {
|
|
1348
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1348
|
+
const r = i.getYAxisValuesAtMouseX(D.ENVELOPE, e.x, t.props.chart);
|
|
1349
1349
|
t.setState({
|
|
1350
1350
|
envelopeValues: r || {}
|
|
1351
1351
|
});
|
|
@@ -1356,7 +1356,7 @@ class ji {
|
|
|
1356
1356
|
const i = t.mainChartTechnicalIndicatorManager;
|
|
1357
1357
|
if (i)
|
|
1358
1358
|
try {
|
|
1359
|
-
const r = i.getYAxisValuesAtMouseX(
|
|
1359
|
+
const r = i.getYAxisValuesAtMouseX(D.VWAP, e.x, t.props.chart);
|
|
1360
1360
|
t.setState({
|
|
1361
1361
|
vwapValue: r
|
|
1362
1362
|
});
|
|
@@ -3821,7 +3821,7 @@ class Wr {
|
|
|
3821
3821
|
e > -1 && (this.hiddenABCDMarks.splice(e, 1), this.abcdMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
3824
|
-
class
|
|
3824
|
+
class Ve {
|
|
3825
3825
|
constructor(t, e, i, r, a, s, n = "#2962FF", o = "#FF6B6B", l = 2, h = !1) {
|
|
3826
3826
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._backgroundOpacity = 0.1, this.markType = w.AndrewPitchfork, this._hoverPoint = null, this._handleTime = t, this._handlePrice = e, this._baseStartTime = i, this._baseStartPrice = r, this._baseEndTime = a, this._baseEndPrice = s, this._lineColor = n, this._handleColor = o, this._lineWidth = l, this._isPreview = h;
|
|
3827
3827
|
}
|
|
@@ -4100,7 +4100,7 @@ class Nr {
|
|
|
4100
4100
|
...this.state,
|
|
4101
4101
|
drawingPhase: "baseStart",
|
|
4102
4102
|
andrewPitchforkHandlePoint: r
|
|
4103
|
-
}, this.previewAndrewPitchfork = new
|
|
4103
|
+
}, this.previewAndrewPitchfork = new Ve(
|
|
4104
4104
|
this.handleTime,
|
|
4105
4105
|
this.handlePrice,
|
|
4106
4106
|
e,
|
|
@@ -4120,7 +4120,7 @@ class Nr {
|
|
|
4120
4120
|
}, this.previewAndrewPitchfork && (this.previewAndrewPitchfork.updateBaseStartPoint(e, i), this.previewAndrewPitchfork.updateBaseEndPoint(e, i));
|
|
4121
4121
|
else if (this.state.drawingPhase === "baseEnd" && (this.baseEndTime = e, this.baseEndPrice = i, this.previewAndrewPitchfork)) {
|
|
4122
4122
|
this.previewAndrewPitchfork.updateBaseEndPoint(e, i), this.previewAndrewPitchfork.setPreviewMode(!1);
|
|
4123
|
-
const s = new
|
|
4123
|
+
const s = new Ve(
|
|
4124
4124
|
this.handleTime,
|
|
4125
4125
|
this.handlePrice,
|
|
4126
4126
|
this.baseStartTime,
|
|
@@ -4328,7 +4328,7 @@ class Nr {
|
|
|
4328
4328
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.andrewPitchforkMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
4329
4329
|
}
|
|
4330
4330
|
}
|
|
4331
|
-
class
|
|
4331
|
+
class qe {
|
|
4332
4332
|
constructor(t, e, i = 0, r = 0, a = "#2962FF", s = 2, n = !1) {
|
|
4333
4333
|
this._radiusTime = 0, this._radiusPrice = 0, this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Circle, this._fillColor = "", this._pixelRadius = 0, this._radiusHandleAngle = 0, this._centerTime = t, this._centerPrice = e, this._radiusTime = i, this._radiusPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._fillColor = this.hexToRGBA(a, 0.2), this._pixelRadius = this.calculatePixelRadius(), this._radiusHandleAngle = 0;
|
|
4334
4334
|
}
|
|
@@ -4632,7 +4632,7 @@ class Xr {
|
|
|
4632
4632
|
if (p !== null && M !== null) {
|
|
4633
4633
|
const k = Math.sqrt(
|
|
4634
4634
|
Math.pow(l - p, 2) + Math.pow(h - M, 2)
|
|
4635
|
-
), P = new
|
|
4635
|
+
), P = new qe(
|
|
4636
4636
|
c,
|
|
4637
4637
|
u,
|
|
4638
4638
|
0,
|
|
@@ -4657,7 +4657,7 @@ class Xr {
|
|
|
4657
4657
|
...this.state,
|
|
4658
4658
|
circleMarkStartPoint: e,
|
|
4659
4659
|
isDrawing: !0
|
|
4660
|
-
}, this.previewCircleMark = new
|
|
4660
|
+
}, this.previewCircleMark = new qe(
|
|
4661
4661
|
d,
|
|
4662
4662
|
g,
|
|
4663
4663
|
0,
|
|
@@ -4849,7 +4849,7 @@ class Xr {
|
|
|
4849
4849
|
e > -1 && (this.hiddenCircleMarks.splice(e, 1), this.circleMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
|
-
class
|
|
4852
|
+
class ze {
|
|
4853
4853
|
constructor(t, e, i, r, a = "", s = "#2962FF", n = 2, o = "transparent", l = 1, h = !1) {
|
|
4854
4854
|
this._lineStyle = "solid", this._fillColor = "transparent", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Image, this._image = null, this._imageUrl = "", this._opacity = 1, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = s, this._lineWidth = n, this._fillColor = o, this._opacity = l, this._isPreview = h, a && this.loadImage(a);
|
|
4855
4855
|
}
|
|
@@ -5106,7 +5106,7 @@ class Yr {
|
|
|
5106
5106
|
this.state = {
|
|
5107
5107
|
...this.state,
|
|
5108
5108
|
imageMarkStartPoint: e
|
|
5109
|
-
}, this.previewImageMark = new
|
|
5109
|
+
}, this.previewImageMark = new ze(
|
|
5110
5110
|
g,
|
|
5111
5111
|
c,
|
|
5112
5112
|
g,
|
|
@@ -5121,7 +5121,7 @@ class Yr {
|
|
|
5121
5121
|
else {
|
|
5122
5122
|
if (this.previewImageMark) {
|
|
5123
5123
|
i.series.detachPrimitive(this.previewImageMark);
|
|
5124
|
-
const p = new
|
|
5124
|
+
const p = new ze(
|
|
5125
5125
|
this.previewImageMark.getStartTime(),
|
|
5126
5126
|
this.previewImageMark.getStartPrice(),
|
|
5127
5127
|
g,
|
|
@@ -5297,7 +5297,7 @@ class Yr {
|
|
|
5297
5297
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.imageMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
5298
5298
|
}
|
|
5299
5299
|
}
|
|
5300
|
-
class
|
|
5300
|
+
class Qe {
|
|
5301
5301
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
5302
5302
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Curve, this._midPixelOffsetX = 0, this._midPixelOffsetY = 0, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
5303
5303
|
}
|
|
@@ -5540,7 +5540,7 @@ class Vr {
|
|
|
5540
5540
|
this.state = {
|
|
5541
5541
|
...this.state,
|
|
5542
5542
|
curveMarkStartPoint: e
|
|
5543
|
-
}, this.previewCurveMark = new
|
|
5543
|
+
}, this.previewCurveMark = new Qe(
|
|
5544
5544
|
g,
|
|
5545
5545
|
c,
|
|
5546
5546
|
g,
|
|
@@ -5552,7 +5552,7 @@ class Vr {
|
|
|
5552
5552
|
else {
|
|
5553
5553
|
if (this.previewCurveMark) {
|
|
5554
5554
|
i.series.detachPrimitive(this.previewCurveMark);
|
|
5555
|
-
const u = new
|
|
5555
|
+
const u = new Qe(
|
|
5556
5556
|
this.previewCurveMark.getStartTime(),
|
|
5557
5557
|
this.previewCurveMark.getStartPrice(),
|
|
5558
5558
|
g,
|
|
@@ -5740,7 +5740,7 @@ class Vr {
|
|
|
5740
5740
|
e > -1 && (this.hiddenCurveMarks.splice(e, 1), this.curveMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
|
-
class
|
|
5743
|
+
class Ge {
|
|
5744
5744
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1, o = 50) {
|
|
5745
5745
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._hoverPoint = null, this._showHandles = !1, this._channelHeight = 0, this.markType = w.EquidistantChannel, this._angle = 50, this._originalAngle = 50, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._channelHeight = Math.abs(r - e) * 0.1, this._angle = o, this._originalAngle = o;
|
|
5746
5746
|
}
|
|
@@ -6014,7 +6014,7 @@ class qr {
|
|
|
6014
6014
|
...this.state,
|
|
6015
6015
|
drawingPhase: "secondPoint",
|
|
6016
6016
|
disjointChannelMarkStartPoint: r
|
|
6017
|
-
}, this.previewDisjointChannelMark = new
|
|
6017
|
+
}, this.previewDisjointChannelMark = new Ge(
|
|
6018
6018
|
e,
|
|
6019
6019
|
i,
|
|
6020
6020
|
e,
|
|
@@ -6034,7 +6034,7 @@ class qr {
|
|
|
6034
6034
|
this.previewDisjointChannelMark.updateChannelHeight(s);
|
|
6035
6035
|
}
|
|
6036
6036
|
} else if (this.state.drawingPhase === "widthAdjust" && this.previewDisjointChannelMark) {
|
|
6037
|
-
const s = this.previewDisjointChannelMark.getChannelHeight(), n = this.previewDisjointChannelMark.getAngle(), o = new
|
|
6037
|
+
const s = this.previewDisjointChannelMark.getChannelHeight(), n = this.previewDisjointChannelMark.getAngle(), o = new Ge(
|
|
6038
6038
|
this.firstPointTime,
|
|
6039
6039
|
this.firstPointPrice,
|
|
6040
6040
|
this.secondPointTime,
|
|
@@ -6254,7 +6254,7 @@ class qr {
|
|
|
6254
6254
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.channelMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
6255
6255
|
}
|
|
6256
6256
|
}
|
|
6257
|
-
class
|
|
6257
|
+
class $e {
|
|
6258
6258
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
6259
6259
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.LineSegment, this._mid1PixelOffsetX = 0, this._mid1PixelOffsetY = 0, this._mid2PixelOffsetX = 0, this._mid2PixelOffsetY = 0, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
6260
6260
|
}
|
|
@@ -6508,7 +6508,7 @@ class zr {
|
|
|
6508
6508
|
this.state = {
|
|
6509
6509
|
...this.state,
|
|
6510
6510
|
doubleCurveMarkStartPoint: e
|
|
6511
|
-
}, this.previewDoubleCurveMark = new
|
|
6511
|
+
}, this.previewDoubleCurveMark = new $e(
|
|
6512
6512
|
g,
|
|
6513
6513
|
c,
|
|
6514
6514
|
g,
|
|
@@ -6520,7 +6520,7 @@ class zr {
|
|
|
6520
6520
|
else {
|
|
6521
6521
|
if (this.previewDoubleCurveMark) {
|
|
6522
6522
|
i.series.detachPrimitive(this.previewDoubleCurveMark);
|
|
6523
|
-
const u = new
|
|
6523
|
+
const u = new $e(
|
|
6524
6524
|
this.previewDoubleCurveMark.getStartTime(),
|
|
6525
6525
|
this.previewDoubleCurveMark.getStartPrice(),
|
|
6526
6526
|
g,
|
|
@@ -8946,7 +8946,7 @@ class Zr {
|
|
|
8946
8946
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.ElliottTripleCombinationMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
8947
8947
|
}
|
|
8948
8948
|
}
|
|
8949
|
-
class
|
|
8949
|
+
class Je {
|
|
8950
8950
|
constructor(t, e, i = 0, r = 0, a = 0, s = "#2962FF", n = 2, o = !1) {
|
|
8951
8951
|
this._radiusX = 0, this._radiusY = 0, this._angle = 0, this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Ellipse, this._fillColor = "", this._pixelRadiusX = 0, this._pixelRadiusY = 0, this._lastUpdateTime = 0, this._centerTime = t, this._centerPrice = e, this._radiusX = i, this._radiusY = r, this._angle = a, this._color = s, this._lineWidth = n, this._isPreview = o, this._fillColor = this.hexToRGBA(s, 0.2), this.calculatePixelRadii(), this.bindChartEvents();
|
|
8952
8952
|
}
|
|
@@ -9277,7 +9277,7 @@ class ts {
|
|
|
9277
9277
|
if (M !== null && k !== null) {
|
|
9278
9278
|
const P = Math.abs(l - M), S = Math.abs(h - k);
|
|
9279
9279
|
if (P > 5 && S > 5) {
|
|
9280
|
-
const _ = l - M, C = h - k, v = Math.atan2(C, _), A = new
|
|
9280
|
+
const _ = l - M, C = h - k, v = Math.atan2(C, _), A = new Je(
|
|
9281
9281
|
u,
|
|
9282
9282
|
p,
|
|
9283
9283
|
0,
|
|
@@ -9304,7 +9304,7 @@ class ts {
|
|
|
9304
9304
|
...this.state,
|
|
9305
9305
|
ellipseMarkStartPoint: { x: l, y: h },
|
|
9306
9306
|
isDrawing: !0
|
|
9307
|
-
}, this.previewEllipseMark = new
|
|
9307
|
+
}, this.previewEllipseMark = new Je(
|
|
9308
9308
|
d,
|
|
9309
9309
|
g,
|
|
9310
9310
|
0,
|
|
@@ -9529,7 +9529,7 @@ class ts {
|
|
|
9529
9529
|
e > -1 && (this.hiddenEllipseMarks.splice(e, 1), this.ellipseMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
9530
9530
|
}
|
|
9531
9531
|
}
|
|
9532
|
-
class
|
|
9532
|
+
class Ze {
|
|
9533
9533
|
constructor(t, e, i, r, a, s, n = "#2962FF", o = "#FF6B6B", l = 2, h = !1) {
|
|
9534
9534
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._backgroundOpacity = 0.1, this.markType = w.EnhancedAndrewPitchfork, this._hoverPoint = null, this._numberOfForks = 5, this._handleTime = t, this._handlePrice = e, this._baseStartTime = i, this._baseStartPrice = r, this._baseEndTime = a, this._baseEndPrice = s, this._lineColor = n, this._handleColor = o, this._lineWidth = l, this._isPreview = h;
|
|
9535
9535
|
}
|
|
@@ -9826,7 +9826,7 @@ class es {
|
|
|
9826
9826
|
...this.state,
|
|
9827
9827
|
drawingPhase: "baseStart",
|
|
9828
9828
|
enhancedAndrewPitchforkHandlePoint: r
|
|
9829
|
-
}, this.previewEnhancedAndrewPitchfork = new
|
|
9829
|
+
}, this.previewEnhancedAndrewPitchfork = new Ze(
|
|
9830
9830
|
this.handleTime,
|
|
9831
9831
|
this.handlePrice,
|
|
9832
9832
|
e,
|
|
@@ -9846,7 +9846,7 @@ class es {
|
|
|
9846
9846
|
}, this.previewEnhancedAndrewPitchfork && (this.previewEnhancedAndrewPitchfork.updateBaseStartPoint(e, i), this.previewEnhancedAndrewPitchfork.updateBaseEndPoint(e, i));
|
|
9847
9847
|
else if (this.state.drawingPhase === "baseEnd" && (this.baseEndTime = e, this.baseEndPrice = i, this.previewEnhancedAndrewPitchfork)) {
|
|
9848
9848
|
this.previewEnhancedAndrewPitchfork.updateBaseEndPoint(e, i), this.previewEnhancedAndrewPitchfork.setPreviewMode(!1);
|
|
9849
|
-
const s = new
|
|
9849
|
+
const s = new Ze(
|
|
9850
9850
|
this.handleTime,
|
|
9851
9851
|
this.handlePrice,
|
|
9852
9852
|
this.baseStartTime,
|
|
@@ -10060,7 +10060,7 @@ class es {
|
|
|
10060
10060
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.enhancedAndrewPitchforkMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
10061
10061
|
}
|
|
10062
10062
|
}
|
|
10063
|
-
class
|
|
10063
|
+
class ti {
|
|
10064
10064
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
10065
10065
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._channelHeight = 0, this.markType = w.EquidistantChannel, this._hoverPoint = null, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._channelHeight = Math.abs(r - e) * 0.1;
|
|
10066
10066
|
}
|
|
@@ -10320,7 +10320,7 @@ class is {
|
|
|
10320
10320
|
...this.state,
|
|
10321
10321
|
drawingPhase: "secondPoint",
|
|
10322
10322
|
equidistantChannelMarkStartPoint: r
|
|
10323
|
-
}, this.previewEquidistantChannelMark = new
|
|
10323
|
+
}, this.previewEquidistantChannelMark = new ti(
|
|
10324
10324
|
e,
|
|
10325
10325
|
i,
|
|
10326
10326
|
e,
|
|
@@ -10339,7 +10339,7 @@ class is {
|
|
|
10339
10339
|
this.previewEquidistantChannelMark.updateChannelHeight(s);
|
|
10340
10340
|
}
|
|
10341
10341
|
} else if (this.state.drawingPhase === "widthAdjust" && this.previewEquidistantChannelMark) {
|
|
10342
|
-
const s = this.previewEquidistantChannelMark.getChannelHeight(), n = new
|
|
10342
|
+
const s = this.previewEquidistantChannelMark.getChannelHeight(), n = new ti(
|
|
10343
10343
|
this.firstPointTime,
|
|
10344
10344
|
this.firstPointPrice,
|
|
10345
10345
|
this.secondPointTime,
|
|
@@ -10554,7 +10554,7 @@ class is {
|
|
|
10554
10554
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.channelMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
10555
10555
|
}
|
|
10556
10556
|
}
|
|
10557
|
-
class
|
|
10557
|
+
class ei {
|
|
10558
10558
|
constructor(t, e, i, r, a = "#2962FF", s = 1, n = !1) {
|
|
10559
10559
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.272, 1.414, 1.618, 2], this._fibonacciColors = [
|
|
10560
10560
|
"#FF4444",
|
|
@@ -10828,7 +10828,7 @@ class rs {
|
|
|
10828
10828
|
...this.state,
|
|
10829
10829
|
fibonacciArcStartPoint: e,
|
|
10830
10830
|
currentFibonacciArc: null
|
|
10831
|
-
}, this.previewFibonacciArcMark = new
|
|
10831
|
+
}, this.previewFibonacciArcMark = new ei(
|
|
10832
10832
|
g,
|
|
10833
10833
|
g,
|
|
10834
10834
|
c,
|
|
@@ -10841,7 +10841,7 @@ class rs {
|
|
|
10841
10841
|
if (this.previewFibonacciArcMark) {
|
|
10842
10842
|
const M = this.previewFibonacciArcMark.getStartPrice(), k = this.previewFibonacciArcMark.getStartTime();
|
|
10843
10843
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciArcMark);
|
|
10844
|
-
const P = new
|
|
10844
|
+
const P = new ei(
|
|
10845
10845
|
M,
|
|
10846
10846
|
g,
|
|
10847
10847
|
k,
|
|
@@ -11066,7 +11066,7 @@ class rs {
|
|
|
11066
11066
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciArcMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
11067
11067
|
}
|
|
11068
11068
|
}
|
|
11069
|
-
class
|
|
11069
|
+
class ii {
|
|
11070
11070
|
constructor(t, e, i, r, a = "#FF6B35", s = 2, n = !1) {
|
|
11071
11071
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._channelHeight = 0, this.markType = w.FibonacciChannel, this._hoverPoint = null, this._fibonacciLevels = [
|
|
11072
11072
|
0,
|
|
@@ -11418,7 +11418,7 @@ class ss {
|
|
|
11418
11418
|
...this.state,
|
|
11419
11419
|
drawingPhase: "secondPoint",
|
|
11420
11420
|
fibonacciChannelMarkStartPoint: r
|
|
11421
|
-
}, this.previewFibonacciChannelMark = new
|
|
11421
|
+
}, this.previewFibonacciChannelMark = new ii(
|
|
11422
11422
|
e,
|
|
11423
11423
|
i,
|
|
11424
11424
|
e,
|
|
@@ -11437,7 +11437,7 @@ class ss {
|
|
|
11437
11437
|
this.previewFibonacciChannelMark.updateChannelHeight(n);
|
|
11438
11438
|
}
|
|
11439
11439
|
} else if (this.state.drawingPhase === "widthAdjust" && this.previewFibonacciChannelMark) {
|
|
11440
|
-
const s = this.previewFibonacciChannelMark.getChannelHeight(), n = new
|
|
11440
|
+
const s = this.previewFibonacciChannelMark.getChannelHeight(), n = new ii(
|
|
11441
11441
|
this.firstPointTime,
|
|
11442
11442
|
this.firstPointPrice,
|
|
11443
11443
|
this.secondPointTime,
|
|
@@ -11652,7 +11652,7 @@ class ss {
|
|
|
11652
11652
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.channelMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
11653
11653
|
}
|
|
11654
11654
|
}
|
|
11655
|
-
class
|
|
11655
|
+
class ri {
|
|
11656
11656
|
constructor(t, e, i, r, a = "#2962FF", s = 1, n = !1) {
|
|
11657
11657
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 4.236, 6.854], this._fibonacciColors = [
|
|
11658
11658
|
"#FF4444",
|
|
@@ -11943,7 +11943,7 @@ class as {
|
|
|
11943
11943
|
...this.state,
|
|
11944
11944
|
fibonacciCircleCenterPoint: e,
|
|
11945
11945
|
currentFibonacciCircle: null
|
|
11946
|
-
}, this.previewFibonacciCircleMark = new
|
|
11946
|
+
}, this.previewFibonacciCircleMark = new ri(
|
|
11947
11947
|
g,
|
|
11948
11948
|
g,
|
|
11949
11949
|
c,
|
|
@@ -11956,7 +11956,7 @@ class as {
|
|
|
11956
11956
|
if (this.previewFibonacciCircleMark) {
|
|
11957
11957
|
const M = this.previewFibonacciCircleMark.getCenterPrice(), k = this.previewFibonacciCircleMark.getCenterTime();
|
|
11958
11958
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciCircleMark);
|
|
11959
|
-
const P = new
|
|
11959
|
+
const P = new ri(
|
|
11960
11960
|
M,
|
|
11961
11961
|
g,
|
|
11962
11962
|
k,
|
|
@@ -12181,7 +12181,7 @@ class as {
|
|
|
12181
12181
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciCircleMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
12182
12182
|
}
|
|
12183
12183
|
}
|
|
12184
|
-
class
|
|
12184
|
+
class si {
|
|
12185
12185
|
constructor(t, e, i, r, a, s, n = "#2962FF", o = 1, l = !1) {
|
|
12186
12186
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.382, 0.618, 1, 1.382, 1.618, 2, 2.618, 3.618, 4.618], this._fibonacciColors = [
|
|
12187
12187
|
"#FF4444",
|
|
@@ -12504,7 +12504,7 @@ class ns {
|
|
|
12504
12504
|
...this.state,
|
|
12505
12505
|
fibonacciExtensionBasePricePoints: M,
|
|
12506
12506
|
drawingPhase: "secondPoint"
|
|
12507
|
-
}, this.previewFibonacciExtensionBasePriceMark = new
|
|
12507
|
+
}, this.previewFibonacciExtensionBasePriceMark = new si(
|
|
12508
12508
|
g,
|
|
12509
12509
|
g,
|
|
12510
12510
|
g,
|
|
@@ -12524,7 +12524,7 @@ class ns {
|
|
|
12524
12524
|
else if (this.state.drawingPhase === "extensionPoint" && this.previewFibonacciExtensionBasePriceMark && M.length === 2) {
|
|
12525
12525
|
const k = this.previewFibonacciExtensionBasePriceMark.getStartPrice(), P = this.previewFibonacciExtensionBasePriceMark.getEndPrice(), S = this.previewFibonacciExtensionBasePriceMark.getStartTime(), _ = this.previewFibonacciExtensionBasePriceMark.getEndTime();
|
|
12526
12526
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciExtensionBasePriceMark);
|
|
12527
|
-
const C = new
|
|
12527
|
+
const C = new si(
|
|
12528
12528
|
k,
|
|
12529
12529
|
P,
|
|
12530
12530
|
g,
|
|
@@ -12748,7 +12748,7 @@ class ns {
|
|
|
12748
12748
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.FibonacciExtensionBasePriceMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
12749
12749
|
}
|
|
12750
12750
|
}
|
|
12751
|
-
class
|
|
12751
|
+
class ai {
|
|
12752
12752
|
constructor(t, e, i, r, a, s, n = "#2962FF", o = 1, l = !1) {
|
|
12753
12753
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.382, 0.618, 1, 1.382, 1.618, 2, 2.618, 3.618, 4.618], this._fibonacciColors = [
|
|
12754
12754
|
"#FF4444",
|
|
@@ -13070,7 +13070,7 @@ class os {
|
|
|
13070
13070
|
...this.state,
|
|
13071
13071
|
fibonacciExtensionBaseTimePoints: M,
|
|
13072
13072
|
drawingPhase: "secondPoint"
|
|
13073
|
-
}, this.previewFibonacciExtensionBaseTimeMark = new
|
|
13073
|
+
}, this.previewFibonacciExtensionBaseTimeMark = new ai(
|
|
13074
13074
|
g,
|
|
13075
13075
|
g,
|
|
13076
13076
|
g,
|
|
@@ -13090,7 +13090,7 @@ class os {
|
|
|
13090
13090
|
else if (this.state.drawingPhase === "extensionPoint" && this.previewFibonacciExtensionBaseTimeMark && M.length === 2) {
|
|
13091
13091
|
const k = this.previewFibonacciExtensionBaseTimeMark.getStartPrice(), P = this.previewFibonacciExtensionBaseTimeMark.getEndPrice(), S = this.previewFibonacciExtensionBaseTimeMark.getStartTime(), _ = this.previewFibonacciExtensionBaseTimeMark.getEndTime();
|
|
13092
13092
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciExtensionBaseTimeMark);
|
|
13093
|
-
const C = new
|
|
13093
|
+
const C = new ai(
|
|
13094
13094
|
k,
|
|
13095
13095
|
P,
|
|
13096
13096
|
g,
|
|
@@ -13314,7 +13314,7 @@ class os {
|
|
|
13314
13314
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.FibonacciExtensionBaseTimeMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
13315
13315
|
}
|
|
13316
13316
|
}
|
|
13317
|
-
class
|
|
13317
|
+
class ni {
|
|
13318
13318
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
13319
13319
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.FibonacciFan, this._fibRatios = [0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.272, 1.618, 2, 2.618], this._fibRatioColors = [
|
|
13320
13320
|
"#FF6B6B",
|
|
@@ -13622,7 +13622,7 @@ class ls {
|
|
|
13622
13622
|
if (this.previewFibonacciFan)
|
|
13623
13623
|
try {
|
|
13624
13624
|
i.series.detachPrimitive(this.previewFibonacciFan);
|
|
13625
|
-
const c = new
|
|
13625
|
+
const c = new ni(
|
|
13626
13626
|
this.previewFibonacciFan.time(),
|
|
13627
13627
|
this.previewFibonacciFan.priceValue(),
|
|
13628
13628
|
d,
|
|
@@ -13646,7 +13646,7 @@ class ls {
|
|
|
13646
13646
|
...this.state,
|
|
13647
13647
|
fibonacciFanStartPoint: e,
|
|
13648
13648
|
isDrawing: !0
|
|
13649
|
-
}, this.previewFibonacciFan = new
|
|
13649
|
+
}, this.previewFibonacciFan = new ni(
|
|
13650
13650
|
d,
|
|
13651
13651
|
g,
|
|
13652
13652
|
d,
|
|
@@ -13825,7 +13825,7 @@ class ls {
|
|
|
13825
13825
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciFans.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
13826
13826
|
}
|
|
13827
13827
|
}
|
|
13828
|
-
class
|
|
13828
|
+
class oi {
|
|
13829
13829
|
constructor(t, e, i, r, a = "#2962FF", s = 1, n = !1) {
|
|
13830
13830
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 4.236, 6.854], this._fibonacciColors = [
|
|
13831
13831
|
"#FF4444",
|
|
@@ -14100,7 +14100,7 @@ class hs {
|
|
|
14100
14100
|
...this.state,
|
|
14101
14101
|
fibonacciRetracementStartPoint: e,
|
|
14102
14102
|
currentFibonacciRetracement: null
|
|
14103
|
-
}, this.previewFibonacciRetracementMark = new
|
|
14103
|
+
}, this.previewFibonacciRetracementMark = new oi(
|
|
14104
14104
|
g,
|
|
14105
14105
|
g,
|
|
14106
14106
|
c,
|
|
@@ -14113,7 +14113,7 @@ class hs {
|
|
|
14113
14113
|
if (this.previewFibonacciRetracementMark) {
|
|
14114
14114
|
const M = this.previewFibonacciRetracementMark.getStartPrice(), k = this.previewFibonacciRetracementMark.getStartTime();
|
|
14115
14115
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciRetracementMark);
|
|
14116
|
-
const P = new
|
|
14116
|
+
const P = new oi(
|
|
14117
14117
|
M,
|
|
14118
14118
|
g,
|
|
14119
14119
|
k,
|
|
@@ -14356,7 +14356,7 @@ class hs {
|
|
|
14356
14356
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciRetracementMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
14357
14357
|
}
|
|
14358
14358
|
}
|
|
14359
|
-
class
|
|
14359
|
+
class li {
|
|
14360
14360
|
constructor(t, e, i, r = "#2962FF", a = 1, s = !1) {
|
|
14361
14361
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._spiralPoints = [], this._fillOpacity = 0.3, this.markType = w.FibonacciSpiral, this._goldenRatio = 1.61803398875, this._radiusPoint = { x: 0, y: 0 }, this._spiralStyle = "standard", this._showGrid = !1, this._baseRadius = 0, this._centerPrice = t, this._centerTime = e, this._radiusPrice = i, this._color = r, this._lineWidth = a, this._isPreview = s;
|
|
14362
14362
|
}
|
|
@@ -14672,7 +14672,7 @@ class cs {
|
|
|
14672
14672
|
if (this.previewFibonacciSpiralMark) {
|
|
14673
14673
|
const M = this.previewFibonacciSpiralMark.getCenterPrice(), k = this.previewFibonacciSpiralMark.getCenterTime(), P = this.previewFibonacciSpiralMark.getRadius();
|
|
14674
14674
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciSpiralMark);
|
|
14675
|
-
const S = new
|
|
14675
|
+
const S = new li(
|
|
14676
14676
|
M,
|
|
14677
14677
|
k,
|
|
14678
14678
|
P,
|
|
@@ -14695,7 +14695,7 @@ class cs {
|
|
|
14695
14695
|
currentFibonacciSpiral: null
|
|
14696
14696
|
};
|
|
14697
14697
|
const M = Math.abs(g) * 0.01;
|
|
14698
|
-
this.previewFibonacciSpiralMark = new
|
|
14698
|
+
this.previewFibonacciSpiralMark = new li(
|
|
14699
14699
|
g,
|
|
14700
14700
|
c,
|
|
14701
14701
|
M,
|
|
@@ -14910,7 +14910,7 @@ class cs {
|
|
|
14910
14910
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciSpiralMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
14911
14911
|
}
|
|
14912
14912
|
}
|
|
14913
|
-
class
|
|
14913
|
+
class hi {
|
|
14914
14914
|
constructor(t, e, i = "#2962FF", r = 1, a = !1, s = 2.5) {
|
|
14915
14915
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89], this.markType = w.FibonacciTimeZoon, this._fibonacciLinePositions = [], this._startTime = t, this._endTime = e, this._color = i, this._lineWidth = r, this._isPreview = a, this._dragSensitivity = s;
|
|
14916
14916
|
}
|
|
@@ -15160,7 +15160,7 @@ class ds {
|
|
|
15160
15160
|
this.state = {
|
|
15161
15161
|
...this.state,
|
|
15162
15162
|
fibonacciTimeZoonStartPoint: e
|
|
15163
|
-
}, this.previewFibonacciTimeZoonMark = new
|
|
15163
|
+
}, this.previewFibonacciTimeZoonMark = new hi(
|
|
15164
15164
|
g,
|
|
15165
15165
|
g,
|
|
15166
15166
|
"#2962FF",
|
|
@@ -15171,7 +15171,7 @@ class ds {
|
|
|
15171
15171
|
else {
|
|
15172
15172
|
if (this.previewFibonacciTimeZoonMark) {
|
|
15173
15173
|
i.series.detachPrimitive(this.previewFibonacciTimeZoonMark);
|
|
15174
|
-
const p = new
|
|
15174
|
+
const p = new hi(
|
|
15175
15175
|
this.previewFibonacciTimeZoonMark.getStartTime(),
|
|
15176
15176
|
g,
|
|
15177
15177
|
"#2962FF",
|
|
@@ -15356,7 +15356,7 @@ class ds {
|
|
|
15356
15356
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciTimeZoneMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
15357
15357
|
}
|
|
15358
15358
|
}
|
|
15359
|
-
class
|
|
15359
|
+
class ci {
|
|
15360
15360
|
constructor(t, e, i, r, a, s, n = "#FF3D00", o = 2, l = !1) {
|
|
15361
15361
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fibonacciLevels = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 4.236, 6.854], this._fibonacciColors = [
|
|
15362
15362
|
"#FF1744",
|
|
@@ -15673,7 +15673,7 @@ class us {
|
|
|
15673
15673
|
...this.state,
|
|
15674
15674
|
fibonacciWedgePoints: [e],
|
|
15675
15675
|
currentFibonacciWedge: null
|
|
15676
|
-
}, this.previewFibonacciWedgeMark = new
|
|
15676
|
+
}, this.previewFibonacciWedgeMark = new ci(
|
|
15677
15677
|
g,
|
|
15678
15678
|
g,
|
|
15679
15679
|
g,
|
|
@@ -15692,7 +15692,7 @@ class us {
|
|
|
15692
15692
|
else if (M === 2 && this.previewFibonacciWedgeMark) {
|
|
15693
15693
|
const k = this.previewFibonacciWedgeMark.getCenterPrice(), P = this.previewFibonacciWedgeMark.getCenterTime(), S = this.previewFibonacciWedgeMark.getRadiusPrice(), _ = this.previewFibonacciWedgeMark.getRadiusTime();
|
|
15694
15694
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewFibonacciWedgeMark);
|
|
15695
|
-
const C = new
|
|
15695
|
+
const C = new ci(
|
|
15696
15696
|
k,
|
|
15697
15697
|
S,
|
|
15698
15698
|
g,
|
|
@@ -15941,7 +15941,7 @@ class us {
|
|
|
15941
15941
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.fibonacciWedgeMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
15942
15942
|
}
|
|
15943
15943
|
}
|
|
15944
|
-
class
|
|
15944
|
+
class di {
|
|
15945
15945
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
15946
15946
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.GannBox, this._gridLines = 7, this._outerMarginRatio = 0.03, this._edgeCellRatio = 0.25, this._lineColors = [
|
|
15947
15947
|
"#FF3B30",
|
|
@@ -16363,7 +16363,7 @@ class gs {
|
|
|
16363
16363
|
if (this.previewGannBox)
|
|
16364
16364
|
try {
|
|
16365
16365
|
i.series.detachPrimitive(this.previewGannBox);
|
|
16366
|
-
const c = new
|
|
16366
|
+
const c = new di(
|
|
16367
16367
|
this.previewGannBox.time(),
|
|
16368
16368
|
this.previewGannBox.priceValue(),
|
|
16369
16369
|
d,
|
|
@@ -16387,7 +16387,7 @@ class gs {
|
|
|
16387
16387
|
...this.state,
|
|
16388
16388
|
gannBoxStartPoint: e,
|
|
16389
16389
|
isDrawing: !0
|
|
16390
|
-
}, this.previewGannBox = new
|
|
16390
|
+
}, this.previewGannBox = new di(
|
|
16391
16391
|
d,
|
|
16392
16392
|
g,
|
|
16393
16393
|
d,
|
|
@@ -16564,7 +16564,7 @@ class gs {
|
|
|
16564
16564
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.gannBoxes.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
16565
16565
|
}
|
|
16566
16566
|
}
|
|
16567
|
-
class
|
|
16567
|
+
class ui {
|
|
16568
16568
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
16569
16569
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.GannFan, this._angles = [1 / 8, 1 / 4, 1 / 3, 1 / 2, 1, 2, 3, 4, 8], this._angleColors = [
|
|
16570
16570
|
"#fd1c1cff",
|
|
@@ -16866,7 +16866,7 @@ class ps {
|
|
|
16866
16866
|
if (this.previewGannFan)
|
|
16867
16867
|
try {
|
|
16868
16868
|
i.series.detachPrimitive(this.previewGannFan);
|
|
16869
|
-
const c = new
|
|
16869
|
+
const c = new ui(
|
|
16870
16870
|
this.previewGannFan.time(),
|
|
16871
16871
|
this.previewGannFan.priceValue(),
|
|
16872
16872
|
d,
|
|
@@ -16890,7 +16890,7 @@ class ps {
|
|
|
16890
16890
|
...this.state,
|
|
16891
16891
|
gannFanStartPoint: e,
|
|
16892
16892
|
isDrawing: !0
|
|
16893
|
-
}, this.previewGannFan = new
|
|
16893
|
+
}, this.previewGannFan = new ui(
|
|
16894
16894
|
d,
|
|
16895
16895
|
g,
|
|
16896
16896
|
d,
|
|
@@ -17069,7 +17069,7 @@ class ps {
|
|
|
17069
17069
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.gannFans.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
17070
17070
|
}
|
|
17071
17071
|
}
|
|
17072
|
-
class
|
|
17072
|
+
class gi {
|
|
17073
17073
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
17074
17074
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.GannRectangle, this._gridLines = 6, this._outerMarginRatio = 0.03, this._fanLineCount = 3, this._fanLineColors = ["#FF6B6B", "#4ECDC4", "#45B7D1"], this._fanLineWidth = 2, this._lineColors = [
|
|
17075
17075
|
"#E0E0E0",
|
|
@@ -17426,7 +17426,7 @@ class si {
|
|
|
17426
17426
|
}
|
|
17427
17427
|
class fs {
|
|
17428
17428
|
constructor(t) {
|
|
17429
|
-
this.previewGannRectang = null, this.gannBoxFans = [], this.isOperating = !1, this.dragStartData = null, this.setGannRectangMode = () => (this.previewGannRectang = new
|
|
17429
|
+
this.previewGannRectang = null, this.gannBoxFans = [], this.isOperating = !1, this.dragStartData = null, this.setGannRectangMode = () => (this.previewGannRectang = new gi(
|
|
17430
17430
|
0,
|
|
17431
17431
|
0,
|
|
17432
17432
|
0,
|
|
@@ -17498,7 +17498,7 @@ class fs {
|
|
|
17498
17498
|
if (this.state.isDrawing && this.previewGannRectang) {
|
|
17499
17499
|
try {
|
|
17500
17500
|
i.series.detachPrimitive(this.previewGannRectang);
|
|
17501
|
-
const c = new
|
|
17501
|
+
const c = new gi(
|
|
17502
17502
|
this.previewGannRectang.time(),
|
|
17503
17503
|
this.previewGannRectang.priceValue(),
|
|
17504
17504
|
d,
|
|
@@ -18141,7 +18141,7 @@ class Ms {
|
|
|
18141
18141
|
e > -1 && (this.hiddenHeadAndShouldersMarks.splice(e, 1), this.headAndShouldersMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
18142
18142
|
}
|
|
18143
18143
|
}
|
|
18144
|
-
class
|
|
18144
|
+
class pi {
|
|
18145
18145
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
18146
18146
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._deviation = 2, this.markType = w.LinearRegressionChannel, this._hoverPoint = null, this._chartData = [], this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
18147
18147
|
}
|
|
@@ -18397,7 +18397,7 @@ class ms {
|
|
|
18397
18397
|
...this.state,
|
|
18398
18398
|
drawingPhase: "secondPoint",
|
|
18399
18399
|
linearRegressionChannelStartPoint: r
|
|
18400
|
-
}, this.previewLinearRegressionChannel = new
|
|
18400
|
+
}, this.previewLinearRegressionChannel = new pi(
|
|
18401
18401
|
e,
|
|
18402
18402
|
i,
|
|
18403
18403
|
e,
|
|
@@ -18408,7 +18408,7 @@ class ms {
|
|
|
18408
18408
|
), a?.series.attachPrimitive(this.previewLinearRegressionChannel);
|
|
18409
18409
|
else if (this.state.drawingPhase === "secondPoint") {
|
|
18410
18410
|
this.secondPointTime = e, this.secondPointPrice = i;
|
|
18411
|
-
const s = new
|
|
18411
|
+
const s = new pi(
|
|
18412
18412
|
this.firstPointTime,
|
|
18413
18413
|
this.firstPointPrice,
|
|
18414
18414
|
this.secondPointTime,
|
|
@@ -18566,7 +18566,7 @@ class ms {
|
|
|
18566
18566
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.channelMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
18567
18567
|
}
|
|
18568
18568
|
}
|
|
18569
|
-
class
|
|
18569
|
+
class fi {
|
|
18570
18570
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
18571
18571
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._channelHeight = 0, this.markType = w.ParallelChannel, this._hoverPoint = null, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._channelHeight = Math.abs(r - e) * 0.1;
|
|
18572
18572
|
}
|
|
@@ -18834,7 +18834,7 @@ class ks {
|
|
|
18834
18834
|
...this.state,
|
|
18835
18835
|
drawingPhase: "secondPoint",
|
|
18836
18836
|
parallelChannelMarkStartPoint: r
|
|
18837
|
-
}, this.previewParallelChannelMark = new
|
|
18837
|
+
}, this.previewParallelChannelMark = new fi(
|
|
18838
18838
|
e,
|
|
18839
18839
|
i,
|
|
18840
18840
|
e,
|
|
@@ -18853,7 +18853,7 @@ class ks {
|
|
|
18853
18853
|
this.previewParallelChannelMark.updateChannelHeight(s);
|
|
18854
18854
|
}
|
|
18855
18855
|
} else if (this.state.drawingPhase === "widthAdjust" && this.previewParallelChannelMark) {
|
|
18856
|
-
const s = this.previewParallelChannelMark.getChannelHeight(), n = new
|
|
18856
|
+
const s = this.previewParallelChannelMark.getChannelHeight(), n = new fi(
|
|
18857
18857
|
this.firstPointTime,
|
|
18858
18858
|
this.firstPointPrice,
|
|
18859
18859
|
this.secondPointTime,
|
|
@@ -20586,7 +20586,7 @@ class xs {
|
|
|
20586
20586
|
e > -1 && (this.hiddenPenMarks.splice(e, 1), this.PenMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
20587
20587
|
}
|
|
20588
20588
|
}
|
|
20589
|
-
class
|
|
20589
|
+
class Mi {
|
|
20590
20590
|
constructor(t, e, i, r, a = "#3964FE", s = 2, n = !1, o) {
|
|
20591
20591
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.PriceRange, this._hoverPoint = null, this._fillOpacity = 0.2, this._startPrice = t, this._endPrice = e, this._startTime = i, this._endTime = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._fillColor = o || a;
|
|
20592
20592
|
}
|
|
@@ -20778,7 +20778,7 @@ class As {
|
|
|
20778
20778
|
...this.state,
|
|
20779
20779
|
drawingPhase: "secondPoint",
|
|
20780
20780
|
priceRangeMarkStartPoint: e
|
|
20781
|
-
}, this.previewPriceRangeMark = new
|
|
20781
|
+
}, this.previewPriceRangeMark = new Mi(
|
|
20782
20782
|
this.firstPointPrice,
|
|
20783
20783
|
this.firstPointPrice,
|
|
20784
20784
|
this.firstPointTime,
|
|
@@ -20950,7 +20950,7 @@ class As {
|
|
|
20950
20950
|
const { chartSeries: t } = this.props;
|
|
20951
20951
|
if (this.previewPriceRangeMark) {
|
|
20952
20952
|
this.previewPriceRangeMark.updateEndPoint(this.secondPointPrice, this.secondPointTime), this.previewPriceRangeMark.setPreviewMode(!1);
|
|
20953
|
-
const e = new
|
|
20953
|
+
const e = new Mi(
|
|
20954
20954
|
this.firstPointPrice,
|
|
20955
20955
|
this.secondPointPrice,
|
|
20956
20956
|
this.firstPointTime,
|
|
@@ -21010,7 +21010,7 @@ class As {
|
|
|
21010
21010
|
e > -1 && (this.hiddenPriceRangeMarks.splice(e, 1), this.priceRangeMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
21011
21011
|
}
|
|
21012
21012
|
}
|
|
21013
|
-
class
|
|
21013
|
+
class mi {
|
|
21014
21014
|
constructor(t, e, i, r, a = "#000000", s = 2, n = !1, o, l) {
|
|
21015
21015
|
this._color = "#000000", this._lineWidth = 2, this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.LongPosition, this._hoverPoint = null, this._upperFillColor = "#00FF00", this._lowerFillColor = "#FF0000", this._fillOpacity = 0.2, this._startTime = t, this._endTime = e, this._upperPrice = i, this._lowerPrice = r, this._middlePrice = (i + r) / 2, this._color = a, this._lineWidth = s, this._isPreview = n, this._upperFillColor = o || "#00FF00", this._lowerFillColor = l || "#FF0000";
|
|
21016
21016
|
}
|
|
@@ -21249,7 +21249,7 @@ class Ds {
|
|
|
21249
21249
|
longPositionMarkStartPoint: e
|
|
21250
21250
|
};
|
|
21251
21251
|
const u = c * 0.1;
|
|
21252
|
-
this.previewLongPositionMark = new
|
|
21252
|
+
this.previewLongPositionMark = new mi(
|
|
21253
21253
|
this.firstPointTime,
|
|
21254
21254
|
g,
|
|
21255
21255
|
c + u,
|
|
@@ -21450,7 +21450,7 @@ class Ds {
|
|
|
21450
21450
|
completeLongPositionMark() {
|
|
21451
21451
|
const { chartSeries: t } = this.props;
|
|
21452
21452
|
if (this.previewLongPositionMark) {
|
|
21453
|
-
const e = new
|
|
21453
|
+
const e = new mi(
|
|
21454
21454
|
this.firstPointTime,
|
|
21455
21455
|
this.secondPointTime,
|
|
21456
21456
|
this.previewLongPositionMark.getUpperPrice(),
|
|
@@ -21510,7 +21510,7 @@ class Ds {
|
|
|
21510
21510
|
e > -1 && (this.hiddenLongPositionMarks.splice(e, 1), this.longPositionMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
21511
21511
|
}
|
|
21512
21512
|
}
|
|
21513
|
-
class
|
|
21513
|
+
class ki {
|
|
21514
21514
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = "transparent", o = !1) {
|
|
21515
21515
|
this._lineStyle = "solid", this._fillColor = "transparent", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Rectangle, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._fillColor = n, this._isPreview = o;
|
|
21516
21516
|
}
|
|
@@ -21722,7 +21722,7 @@ class Fs {
|
|
|
21722
21722
|
this.state = {
|
|
21723
21723
|
...this.state,
|
|
21724
21724
|
rectangleMarkStartPoint: e
|
|
21725
|
-
}, this.previewRectangleMark = new
|
|
21725
|
+
}, this.previewRectangleMark = new ki(
|
|
21726
21726
|
g,
|
|
21727
21727
|
c,
|
|
21728
21728
|
g,
|
|
@@ -21735,7 +21735,7 @@ class Fs {
|
|
|
21735
21735
|
else {
|
|
21736
21736
|
if (this.previewRectangleMark) {
|
|
21737
21737
|
i.series.detachPrimitive(this.previewRectangleMark);
|
|
21738
|
-
const p = new
|
|
21738
|
+
const p = new ki(
|
|
21739
21739
|
this.previewRectangleMark.getStartTime(),
|
|
21740
21740
|
this.previewRectangleMark.getStartPrice(),
|
|
21741
21741
|
g,
|
|
@@ -21902,7 +21902,7 @@ class Fs {
|
|
|
21902
21902
|
e > -1 && (this.hiddenRectangleMarks.splice(e, 1), this.rectangleMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
21903
21903
|
}
|
|
21904
21904
|
}
|
|
21905
|
-
class
|
|
21905
|
+
class Pi {
|
|
21906
21906
|
constructor(t, e, i, r, a, s, n = "#FF3D00", o = 2, l = !1) {
|
|
21907
21907
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._fillOpacity = 0.3, this._sectorAngle = 0, this.markType = w.Sector, this._radiusLength = 0, this._centerAngle = 0, this._centerPrice = t, this._radiusPrice = e, this._anglePrice = i, this._centerTime = r, this._radiusTime = a, this._angleTime = s, this._color = n, this._lineWidth = o, this._isPreview = l, this._updateSectorAngle();
|
|
21908
21908
|
}
|
|
@@ -22203,7 +22203,7 @@ class Es {
|
|
|
22203
22203
|
...this.state,
|
|
22204
22204
|
sectorPoints: [e],
|
|
22205
22205
|
currentSector: null
|
|
22206
|
-
}, this.previewSectorMark = new
|
|
22206
|
+
}, this.previewSectorMark = new Pi(
|
|
22207
22207
|
g,
|
|
22208
22208
|
g,
|
|
22209
22209
|
g,
|
|
@@ -22222,7 +22222,7 @@ class Es {
|
|
|
22222
22222
|
else if (M === 2 && this.previewSectorMark) {
|
|
22223
22223
|
const k = this.previewSectorMark.getCenterPrice(), P = this.previewSectorMark.getCenterTime(), S = this.previewSectorMark.getRadiusPrice(), _ = this.previewSectorMark.getRadiusTime();
|
|
22224
22224
|
i.series.detachPrimitive && i.series.detachPrimitive(this.previewSectorMark);
|
|
22225
|
-
const C = new
|
|
22225
|
+
const C = new Pi(
|
|
22226
22226
|
k,
|
|
22227
22227
|
S,
|
|
22228
22228
|
g,
|
|
@@ -22432,7 +22432,7 @@ class Es {
|
|
|
22432
22432
|
e > -1 && (this.hiddenSectorMarks.splice(e, 1), this.sectorMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
22433
22433
|
}
|
|
22434
22434
|
}
|
|
22435
|
-
class
|
|
22435
|
+
class Si {
|
|
22436
22436
|
constructor(t, e, i, r, a = "#FF6B35", s = 3, n = !1) {
|
|
22437
22437
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._arrowHeadSize = 20, this._arrowHeadWidth = 15, this._arrowShaftWidth = 8, this.markType = w.ThickArrowLine, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
22438
22438
|
}
|
|
@@ -22659,7 +22659,7 @@ class ys {
|
|
|
22659
22659
|
this.state = {
|
|
22660
22660
|
...this.state,
|
|
22661
22661
|
thickArrowLineMarkStartPoint: e
|
|
22662
|
-
}, this.previewThickArrowLineMark = new
|
|
22662
|
+
}, this.previewThickArrowLineMark = new Si(
|
|
22663
22663
|
g,
|
|
22664
22664
|
c,
|
|
22665
22665
|
g,
|
|
@@ -22671,7 +22671,7 @@ class ys {
|
|
|
22671
22671
|
else {
|
|
22672
22672
|
if (this.previewThickArrowLineMark) {
|
|
22673
22673
|
i.series.detachPrimitive(this.previewThickArrowLineMark);
|
|
22674
|
-
const u = new
|
|
22674
|
+
const u = new Si(
|
|
22675
22675
|
this.previewThickArrowLineMark.getStartTime(),
|
|
22676
22676
|
this.previewThickArrowLineMark.getStartPrice(),
|
|
22677
22677
|
g,
|
|
@@ -22851,7 +22851,7 @@ class ys {
|
|
|
22851
22851
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.thickArrowLineMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
22852
22852
|
}
|
|
22853
22853
|
}
|
|
22854
|
-
class
|
|
22854
|
+
class _i {
|
|
22855
22855
|
constructor(t, e, i, r, a = "#3964FE", s = 2, n = !1, o) {
|
|
22856
22856
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.TimePriceRange, this._hoverPoint = null, this._fillOpacity = 0.2, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._fillColor = o || a;
|
|
22857
22857
|
}
|
|
@@ -23052,7 +23052,7 @@ class Rs {
|
|
|
23052
23052
|
...this.state,
|
|
23053
23053
|
drawingPhase: "secondPoint",
|
|
23054
23054
|
timePriceRangeMarkStartPoint: e
|
|
23055
|
-
}, this.previewTimePriceRangeMark = new
|
|
23055
|
+
}, this.previewTimePriceRangeMark = new _i(
|
|
23056
23056
|
this.firstPointTime,
|
|
23057
23057
|
this.firstPointPrice,
|
|
23058
23058
|
this.firstPointTime,
|
|
@@ -23224,7 +23224,7 @@ class Rs {
|
|
|
23224
23224
|
const { chartSeries: t } = this.props;
|
|
23225
23225
|
if (this.previewTimePriceRangeMark) {
|
|
23226
23226
|
this.previewTimePriceRangeMark.updateEndPoint(this.secondPointTime, this.secondPointPrice), this.previewTimePriceRangeMark.setPreviewMode(!1);
|
|
23227
|
-
const e = new
|
|
23227
|
+
const e = new _i(
|
|
23228
23228
|
this.firstPointTime,
|
|
23229
23229
|
this.firstPointPrice,
|
|
23230
23230
|
this.secondPointTime,
|
|
@@ -23284,7 +23284,7 @@ class Rs {
|
|
|
23284
23284
|
e > -1 && (this.hiddenTimePriceRangeMarks.splice(e, 1), this.timePriceRangeMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
23285
23285
|
}
|
|
23286
23286
|
}
|
|
23287
|
-
class
|
|
23287
|
+
class Ci {
|
|
23288
23288
|
constructor(t, e, i, r, a = "#3964FE", s = 2, n = !1, o) {
|
|
23289
23289
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.TimeRange, this._hoverPoint = null, this._fillOpacity = 0.2, this._startTime = t, this._endTime = e, this._startPrice = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._fillColor = o || a;
|
|
23290
23290
|
}
|
|
@@ -23476,7 +23476,7 @@ class Bs {
|
|
|
23476
23476
|
...this.state,
|
|
23477
23477
|
drawingPhase: "secondPoint",
|
|
23478
23478
|
timeRangeMarkStartPoint: e
|
|
23479
|
-
}, this.previewTimeRangeMark = new
|
|
23479
|
+
}, this.previewTimeRangeMark = new Ci(
|
|
23480
23480
|
this.firstPointTime,
|
|
23481
23481
|
this.firstPointTime,
|
|
23482
23482
|
this.firstPointPrice,
|
|
@@ -23648,7 +23648,7 @@ class Bs {
|
|
|
23648
23648
|
const { chartSeries: t } = this.props;
|
|
23649
23649
|
if (this.previewTimeRangeMark) {
|
|
23650
23650
|
this.previewTimeRangeMark.updateEndPoint(this.secondPointTime, this.secondPointPrice), this.previewTimeRangeMark.setPreviewMode(!1);
|
|
23651
|
-
const e = new
|
|
23651
|
+
const e = new Ci(
|
|
23652
23652
|
this.firstPointTime,
|
|
23653
23653
|
this.secondPointTime,
|
|
23654
23654
|
this.firstPointPrice,
|
|
@@ -24161,7 +24161,7 @@ class Us {
|
|
|
24161
24161
|
e > -1 && (this.hiddenTriangleABCDMarks.splice(e, 1), this.TriangleABCDMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
24162
24162
|
}
|
|
24163
24163
|
}
|
|
24164
|
-
class
|
|
24164
|
+
class bi {
|
|
24165
24165
|
constructor(t, e, i = 0, r = 0, a = "#2962FF", s = 2, n = !1) {
|
|
24166
24166
|
this._sizeTime = 0, this._sizePrice = 0, this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.Triangle, this._fillColor = "", this._pixelSize = 50, this._rotation = 0, this._vertices = [], this._rotationHandleDistance = 70, this._centerTime = t, this._centerPrice = e, this._sizeTime = i, this._sizePrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._fillColor = this.hexToRGBA(a, 0.2), this._pixelSize = this.calculatePixelSize(), this._rotation = 0, this.calculateVertices();
|
|
24167
24167
|
}
|
|
@@ -24509,7 +24509,7 @@ class Is {
|
|
|
24509
24509
|
if (p !== null && M !== null) {
|
|
24510
24510
|
const k = Math.sqrt(
|
|
24511
24511
|
Math.pow(l - p, 2) + Math.pow(h - M, 2)
|
|
24512
|
-
), P = new
|
|
24512
|
+
), P = new bi(
|
|
24513
24513
|
c,
|
|
24514
24514
|
u,
|
|
24515
24515
|
0,
|
|
@@ -24534,7 +24534,7 @@ class Is {
|
|
|
24534
24534
|
...this.state,
|
|
24535
24535
|
triangleMarkStartPoint: e,
|
|
24536
24536
|
isDrawing: !0
|
|
24537
|
-
}, this.previewTriangleMark = new
|
|
24537
|
+
}, this.previewTriangleMark = new bi(
|
|
24538
24538
|
d,
|
|
24539
24539
|
g,
|
|
24540
24540
|
0,
|
|
@@ -25191,7 +25191,7 @@ class Ls {
|
|
|
25191
25191
|
e > -1 && (this.hiddenXABCDMarks.splice(e, 1), this.xabcdMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
25192
25192
|
}
|
|
25193
25193
|
}
|
|
25194
|
-
class
|
|
25194
|
+
class Ti {
|
|
25195
25195
|
constructor(t, e, i, r, a = "#000000", s = 2, n = !1, o, l) {
|
|
25196
25196
|
this._color = "#000000", this._lineWidth = 2, this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.ShortPosition, this._hoverPoint = null, this._upperFillColor = "#FF0000", this._lowerFillColor = "#00FF00", this._fillOpacity = 0.2, this._startTime = t, this._endTime = e, this._upperPrice = i, this._lowerPrice = r, this._middlePrice = (i + r) / 2, this._color = a, this._lineWidth = s, this._isPreview = n, this._upperFillColor = o || "#FF0000", this._lowerFillColor = l || "#00FF00";
|
|
25197
25197
|
}
|
|
@@ -25430,7 +25430,7 @@ class Hs {
|
|
|
25430
25430
|
shortPositionMarkStartPoint: e
|
|
25431
25431
|
};
|
|
25432
25432
|
const u = c * 0.1;
|
|
25433
|
-
this.previewShortPositionMark = new
|
|
25433
|
+
this.previewShortPositionMark = new Ti(
|
|
25434
25434
|
this.firstPointTime,
|
|
25435
25435
|
g,
|
|
25436
25436
|
c + u,
|
|
@@ -25631,7 +25631,7 @@ class Hs {
|
|
|
25631
25631
|
completeShortPositionMark() {
|
|
25632
25632
|
const { chartSeries: t } = this.props;
|
|
25633
25633
|
if (this.previewShortPositionMark) {
|
|
25634
|
-
const e = new
|
|
25634
|
+
const e = new Ti(
|
|
25635
25635
|
this.firstPointTime,
|
|
25636
25636
|
this.secondPointTime,
|
|
25637
25637
|
this.previewShortPositionMark.getUpperPrice(),
|
|
@@ -26395,7 +26395,7 @@ class Ws {
|
|
|
26395
26395
|
e > -1 && (this.hiddenFlagMarks.splice(e, 1), this.flagMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
26396
26396
|
}
|
|
26397
26397
|
}
|
|
26398
|
-
class
|
|
26398
|
+
class wi {
|
|
26399
26399
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
26400
26400
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._showPriceNote = !0, this._priceNoteBackground = "#FFFFFF", this._priceNoteTextColor = "#333333", this._priceNoteFont = "12px Arial", this.markType = w.PriceNote, this._isItalic = !1, this._isBold = !1, this._graphLineStyle = "solid", this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n, this._graphColor = a, this._graphLineStyle = "solid", this._graphLineWidth = s;
|
|
26401
26401
|
}
|
|
@@ -26628,7 +26628,7 @@ class Ns {
|
|
|
26628
26628
|
this.state = {
|
|
26629
26629
|
...this.state,
|
|
26630
26630
|
priceNoteMarkStartPoint: e
|
|
26631
|
-
}, this.previewPriceNoteMark = new
|
|
26631
|
+
}, this.previewPriceNoteMark = new wi(
|
|
26632
26632
|
g,
|
|
26633
26633
|
c,
|
|
26634
26634
|
g,
|
|
@@ -26642,7 +26642,7 @@ class Ns {
|
|
|
26642
26642
|
else {
|
|
26643
26643
|
if (this.previewPriceNoteMark) {
|
|
26644
26644
|
i.series.detachPrimitive(this.previewPriceNoteMark);
|
|
26645
|
-
const u = new
|
|
26645
|
+
const u = new wi(
|
|
26646
26646
|
this.previewPriceNoteMark.getStartTime(),
|
|
26647
26647
|
this.previewPriceNoteMark.getStartPrice(),
|
|
26648
26648
|
g,
|
|
@@ -28407,7 +28407,7 @@ class zs {
|
|
|
28407
28407
|
e > -1 && (this.hiddenPinMarks.splice(e, 1), this.pinMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
28408
28408
|
}
|
|
28409
28409
|
}
|
|
28410
|
-
class
|
|
28410
|
+
class vi {
|
|
28411
28411
|
constructor(t, e, i, r, a = "", s = "#2962FF", n = "rgba(41, 98, 255)", o = "#FFFFFF", l = 12, h = 1) {
|
|
28412
28412
|
this._isDraggingControlPoint = !1, this._isDraggingBubble = !1, this.markType = w.BubbleBox, this._isEditing = !1, this._editInput = null, this._isSelected = !1, this._isHovered = !1, this._lastHoverState = !1, this._originalText = "", this._cursorVisible = !0, this._cursorTimer = null, this._graphLineStyle = "solid", this._isBold = !1, this._isItalic = !1, this._controlPointTime = t, this._controlPointPrice = e, this._bubbleTime = i, this._bubblePrice = r, this._text = a, this._color = s, this._backgroundColor = n, this._textColor = o, this._fontSize = l, this._lineWidth = h, this._originalText = a, this._graphColor = s, this._graphLineStyle = "solid", this._graphLineWidth = h, this._onMouseDown = this._onMouseDown.bind(this), this._onMouseMove = this._onMouseMove.bind(this), this._onMouseUp = this._onMouseUp.bind(this), this._onDoubleClick = this._onDoubleClick.bind(this), this._onContextMenu = this._onContextMenu.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onInput = this._onInput.bind(this), this._onBlur = this._onBlur.bind(this), this._onDocumentClick = this._onDocumentClick.bind(this), this._isBold = !1, this._isItalic = !1;
|
|
28413
28413
|
}
|
|
@@ -28894,7 +28894,7 @@ class Qs {
|
|
|
28894
28894
|
}
|
|
28895
28895
|
if (this.state.isBubbleBoxMarkMode && !this.state.isDragging && this.isCreatingNewBubble) {
|
|
28896
28896
|
if (this.creationStep === 0)
|
|
28897
|
-
this.previewBubbleBoxMark = new
|
|
28897
|
+
this.previewBubbleBoxMark = new vi(
|
|
28898
28898
|
g,
|
|
28899
28899
|
c,
|
|
28900
28900
|
g,
|
|
@@ -28907,7 +28907,7 @@ class Qs {
|
|
|
28907
28907
|
1
|
|
28908
28908
|
), i.series.attachPrimitive(this.previewBubbleBoxMark), this.creationStep = 1;
|
|
28909
28909
|
else if (this.creationStep === 1 && this.previewBubbleBoxMark) {
|
|
28910
|
-
const p = new
|
|
28910
|
+
const p = new vi(
|
|
28911
28911
|
this.previewBubbleBoxMark.getControlPointTime(),
|
|
28912
28912
|
this.previewBubbleBoxMark.getControlPointPrice(),
|
|
28913
28913
|
g,
|
|
@@ -29724,7 +29724,7 @@ class $s {
|
|
|
29724
29724
|
e > -1 && (this.hiddenTextEditMarks.splice(e, 1), this.textEditMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
29725
29725
|
}
|
|
29726
29726
|
}
|
|
29727
|
-
class
|
|
29727
|
+
class xi {
|
|
29728
29728
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
29729
29729
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._arrowSize = 10, this.markType = w.ArrowLine, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
29730
29730
|
}
|
|
@@ -29941,7 +29941,7 @@ class Js {
|
|
|
29941
29941
|
this.state = {
|
|
29942
29942
|
...this.state,
|
|
29943
29943
|
arrowLineMarkStartPoint: e
|
|
29944
|
-
}, this.previewArrowLineMark = new
|
|
29944
|
+
}, this.previewArrowLineMark = new xi(
|
|
29945
29945
|
g,
|
|
29946
29946
|
c,
|
|
29947
29947
|
g,
|
|
@@ -29953,7 +29953,7 @@ class Js {
|
|
|
29953
29953
|
else {
|
|
29954
29954
|
if (this.previewArrowLineMark) {
|
|
29955
29955
|
i.series.detachPrimitive(this.previewArrowLineMark);
|
|
29956
|
-
const u = new
|
|
29956
|
+
const u = new xi(
|
|
29957
29957
|
this.previewArrowLineMark.getStartTime(),
|
|
29958
29958
|
this.previewArrowLineMark.getStartPrice(),
|
|
29959
29959
|
g,
|
|
@@ -30614,7 +30614,7 @@ class Zs {
|
|
|
30614
30614
|
}
|
|
30615
30615
|
}
|
|
30616
30616
|
}
|
|
30617
|
-
class
|
|
30617
|
+
class Ai {
|
|
30618
30618
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
30619
30619
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this.markType = w.LineSegment, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
30620
30620
|
}
|
|
@@ -30817,7 +30817,7 @@ class ta {
|
|
|
30817
30817
|
this.state = {
|
|
30818
30818
|
...this.state,
|
|
30819
30819
|
lineSegmentMarkStartPoint: e
|
|
30820
|
-
}, this.previewLineSegmentMark = new
|
|
30820
|
+
}, this.previewLineSegmentMark = new Ai(
|
|
30821
30821
|
g,
|
|
30822
30822
|
c,
|
|
30823
30823
|
g,
|
|
@@ -30829,7 +30829,7 @@ class ta {
|
|
|
30829
30829
|
else {
|
|
30830
30830
|
if (this.previewLineSegmentMark) {
|
|
30831
30831
|
i.series.detachPrimitive(this.previewLineSegmentMark);
|
|
30832
|
-
const u = new
|
|
30832
|
+
const u = new Ai(
|
|
30833
30833
|
this.previewLineSegmentMark.getStartTime(),
|
|
30834
30834
|
this.previewLineSegmentMark.getStartPrice(),
|
|
30835
30835
|
g,
|
|
@@ -31009,7 +31009,7 @@ class ta {
|
|
|
31009
31009
|
e > -1 && (this.hiddenMarks.splice(e, 1), this.lineMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
31010
31010
|
}
|
|
31011
31011
|
}
|
|
31012
|
-
class
|
|
31012
|
+
class Di {
|
|
31013
31013
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
31014
31014
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._candleCount = 10, this._candleWidth = 6, this.markType = w.MockKLine, this._cachedCandles = [], this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
31015
31015
|
}
|
|
@@ -31240,7 +31240,7 @@ class ea {
|
|
|
31240
31240
|
this.state = {
|
|
31241
31241
|
...this.state,
|
|
31242
31242
|
mockKLineMarkStartPoint: e
|
|
31243
|
-
}, this.previewMockKLineMark = new
|
|
31243
|
+
}, this.previewMockKLineMark = new Di(
|
|
31244
31244
|
g,
|
|
31245
31245
|
c,
|
|
31246
31246
|
g,
|
|
@@ -31252,7 +31252,7 @@ class ea {
|
|
|
31252
31252
|
else {
|
|
31253
31253
|
if (this.previewMockKLineMark) {
|
|
31254
31254
|
i.series.detachPrimitive(this.previewMockKLineMark);
|
|
31255
|
-
const u = new
|
|
31255
|
+
const u = new Di(
|
|
31256
31256
|
this.previewMockKLineMark.getStartTime(),
|
|
31257
31257
|
this.previewMockKLineMark.getStartPrice(),
|
|
31258
31258
|
g,
|
|
@@ -31432,7 +31432,7 @@ class ea {
|
|
|
31432
31432
|
e > -1 && (this.hiddenMockKLineMarks.splice(e, 1), this.mockKLineMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
31433
31433
|
}
|
|
31434
31434
|
}
|
|
31435
|
-
class
|
|
31435
|
+
class Fi {
|
|
31436
31436
|
constructor(t, e, i, r, a = "#2962FF", s = 2, n = !1) {
|
|
31437
31437
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._opacity = 0.7, this.markType = w.HeatMap, this._hoverPoint = null, this._chartData = [], this._volumeData = /* @__PURE__ */ new Map(), this._maxVolume = 0, this._startTime = t, this._startPrice = e, this._endTime = i, this._endPrice = r, this._color = a, this._lineWidth = s, this._isPreview = n;
|
|
31438
31438
|
}
|
|
@@ -31677,7 +31677,7 @@ class ia {
|
|
|
31677
31677
|
...this.state,
|
|
31678
31678
|
drawingPhase: "secondPoint",
|
|
31679
31679
|
heatMapStartPoint: r
|
|
31680
|
-
}, this.previewHeatMap = new
|
|
31680
|
+
}, this.previewHeatMap = new Fi(
|
|
31681
31681
|
e,
|
|
31682
31682
|
i,
|
|
31683
31683
|
e,
|
|
@@ -31688,7 +31688,7 @@ class ia {
|
|
|
31688
31688
|
), a?.series.attachPrimitive(this.previewHeatMap);
|
|
31689
31689
|
else if (this.state.drawingPhase === "secondPoint") {
|
|
31690
31690
|
this.secondPointTime = e, this.secondPointPrice = i;
|
|
31691
|
-
const s = new
|
|
31691
|
+
const s = new Fi(
|
|
31692
31692
|
this.firstPointTime,
|
|
31693
31693
|
this.firstPointPrice,
|
|
31694
31694
|
this.secondPointTime,
|
|
@@ -31853,7 +31853,7 @@ class ia {
|
|
|
31853
31853
|
e > -1 && (this.hiddenHeatMapMarks.splice(e, 1), this.heatMapMarks.push(t), this.props.chartSeries?.series.attachPrimitive(t));
|
|
31854
31854
|
}
|
|
31855
31855
|
}
|
|
31856
|
-
class
|
|
31856
|
+
class Ei {
|
|
31857
31857
|
constructor(t, e, i, r, a, s, n, o, l = "#2962FF", h = "#2962FF", d = 2, g = !1) {
|
|
31858
31858
|
this._lineStyle = "solid", this._isDragging = !1, this._dragPoint = null, this._showHandles = !1, this._backgroundOpacity = 0.1, this.markType = w.SchiffPitchfork, this._hoverPoint = null, this._numberOfForks = 5, this._handleTime = t, this._handlePrice = e, this._baseStartTime = i, this._baseStartPrice = r, this._baseEndTime = a, this._baseEndPrice = s, this._extensionTime = n, this._extensionPrice = o, this._lineColor = l, this._handleColor = h, this._lineWidth = d, this._isPreview = g;
|
|
31859
31859
|
}
|
|
@@ -32177,7 +32177,7 @@ class ra {
|
|
|
32177
32177
|
...this.state,
|
|
32178
32178
|
drawingPhase: "baseStart",
|
|
32179
32179
|
schiffPitchforkHandlePoint: r
|
|
32180
|
-
}, this.previewSchiffPitchfork = new
|
|
32180
|
+
}, this.previewSchiffPitchfork = new Ei(
|
|
32181
32181
|
this.handleTime,
|
|
32182
32182
|
this.handlePrice,
|
|
32183
32183
|
e,
|
|
@@ -32205,7 +32205,7 @@ class ra {
|
|
|
32205
32205
|
}, this.previewSchiffPitchfork && (this.previewSchiffPitchfork.updateBaseEndPoint(e, i), this.previewSchiffPitchfork.updateExtensionPoint(e, i));
|
|
32206
32206
|
else if (this.state.drawingPhase === "extension" && (this.extensionTime = e, this.extensionPrice = i, this.previewSchiffPitchfork)) {
|
|
32207
32207
|
this.previewSchiffPitchfork.updateExtensionPoint(e, i), this.previewSchiffPitchfork.setPreviewMode(!1);
|
|
32208
|
-
const s = new
|
|
32208
|
+
const s = new Ei(
|
|
32209
32209
|
this.handleTime,
|
|
32210
32210
|
this.handlePrice,
|
|
32211
32211
|
this.baseStartTime,
|
|
@@ -35522,7 +35522,7 @@ class ha {
|
|
|
35522
35522
|
}
|
|
35523
35523
|
// =============================== Bubble Box Mark End ===============================
|
|
35524
35524
|
}
|
|
35525
|
-
const b = 1.5, T = "round", X = "round",
|
|
35525
|
+
const b = 1.5, T = "round", X = "round", $i = ({ size: f = 29, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
35526
35526
|
/* @__PURE__ */ m.jsx("path", { d: "M2 4H22", stroke: t, strokeWidth: b * 0.8, strokeLinecap: T }),
|
|
35527
35527
|
/* @__PURE__ */ m.jsx("path", { d: "M2 9H22", stroke: t, strokeWidth: b * 0.8, strokeLinecap: T }),
|
|
35528
35528
|
/* @__PURE__ */ m.jsx("path", { d: "M2 15H22", stroke: t, strokeWidth: b * 0.8, strokeLinecap: T }),
|
|
@@ -35918,7 +35918,7 @@ const b = 1.5, T = "round", X = "round", Wi = ({ size: f = 29, color: t = "curre
|
|
|
35918
35918
|
d: "M 27.9266 43.8337 C 28.6400 43.8337 29.1436 43.4350 29.1436 42.7216 C 29.1436 42.4069 29.0597 42.2391 28.8289 41.7984 C 26.2691 37.8329 24.8213 33.2799 24.8213 28.3492 C 24.8213 23.5863 26.1852 18.8235 28.8289 14.8369 C 29.0597 14.3963 29.1436 14.2285 29.1436 13.9137 C 29.1436 13.2423 28.6400 12.8017 27.9266 12.8017 C 27.2343 12.8017 26.6677 13.1164 25.9963 14.0396 C 22.8491 18.0471 21.2545 23.0408 21.2545 28.3282 C 21.2545 33.6156 22.7861 38.4623 25.9963 42.5958 C 26.6677 43.5189 27.2343 43.8337 27.9266 43.8337 Z M 49.3490 43.8337 C 50.0413 43.8337 50.5870 43.5189 51.2582 42.5958 C 54.4685 38.4623 56 33.6156 56 28.3282 C 56 23.0408 54.4264 18.0471 51.2582 14.0396 C 50.5870 13.1164 50.0413 12.8017 49.3490 12.8017 C 48.6357 12.8017 48.1321 13.2423 48.1321 13.9137 C 48.1321 14.2285 48.1948 14.3963 48.4256 14.8369 C 51.0906 18.8235 52.4541 23.5863 52.4541 28.3492 C 52.4541 33.2799 50.9858 37.8329 48.4466 41.7984 C 48.1948 42.2391 48.1321 42.4069 48.1321 42.7216 C 48.1321 43.3931 48.6357 43.8337 49.3490 43.8337 Z M 2.8325 43.7917 C 6.9449 43.7917 8.8543 42.0292 9.8404 37.3084 L 12.2323 25.8314 L 16.0300 25.8314 C 17.2470 25.8314 18.0233 25.1809 18.0233 24.1318 C 18.0233 23.2296 17.4358 22.6631 16.4706 22.6631 L 12.9247 22.6631 L 13.5122 19.8096 C 14.0577 17.1449 14.8970 16.0539 17.2260 16.0539 C 17.5617 16.0539 17.8974 16.0329 18.1282 16.0119 C 19.1773 15.9070 19.6389 15.4244 19.6389 14.5222 C 19.6389 13.3472 18.6527 12.8227 16.6385 12.8227 C 12.6310 12.8227 10.5748 14.8160 9.6516 19.3060 L 8.9382 22.6631 L 6.3365 22.6631 C 5.1195 22.6631 4.3222 23.3136 4.3222 24.3626 C 4.3222 25.2648 4.9307 25.8314 5.8959 25.8314 L 8.2668 25.8314 L 5.9588 36.8048 C 5.3713 39.5534 4.5110 40.5605 2.2660 40.5605 C 1.9723 40.5605 1.6995 40.5815 1.4897 40.6025 C .5245 40.7284 0 41.2529 0 42.1342 C 0 43.2672 .9652 43.7917 2.8325 43.7917 Z M 32.3118 38.2735 C 33.0042 38.2735 33.4658 38.0427 33.9904 37.2874 L 38.5853 30.7411 L 38.6691 30.7411 L 43.3692 37.3923 C 43.8939 38.1267 44.3971 38.2735 44.9007 38.2735 C 45.9079 38.2735 46.5796 37.5601 46.5796 36.6999 C 46.5796 36.3012 46.4537 35.9236 46.1808 35.5669 L 40.8095 28.2652 L 46.1808 21.0685 C 46.4537 20.7118 46.5796 20.3341 46.5796 19.8935 C 46.5796 18.9913 45.8241 18.3619 44.9849 18.3619 C 44.2295 18.3619 43.7886 18.7396 43.3903 19.3480 L 38.9630 25.8314 L 38.8582 25.8314 L 34.4100 19.3270 C 34.0114 18.7185 33.5078 18.3619 32.7105 18.3619 C 31.7453 18.3619 31.0109 19.1382 31.0109 19.9774 C 31.0109 20.5859 31.1788 20.9636 31.4726 21.3203 L 36.5711 28.1603 L 31.1578 35.6508 C 30.8431 36.0495 30.7802 36.4062 30.7802 36.8258 C 30.7802 37.6441 31.4726 38.2735 32.3118 38.2735 Z",
|
|
35919
35919
|
fill: t
|
|
35920
35920
|
}
|
|
35921
|
-
) }),
|
|
35921
|
+
) }), yi = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
35922
35922
|
/* @__PURE__ */ m.jsx("path", { d: "M6 5V2H18V5", stroke: t, strokeWidth: b, strokeLinecap: T }),
|
|
35923
35923
|
/* @__PURE__ */ m.jsx("path", { d: "M6 19V22H18V19", stroke: t, strokeWidth: b, strokeLinecap: T }),
|
|
35924
35924
|
/* @__PURE__ */ m.jsx("rect", { x: "5", y: "5", width: "14", height: "14", stroke: t, strokeWidth: b, fill: "none" }),
|
|
@@ -35983,11 +35983,11 @@ const b = 1.5, T = "round", X = "round", Wi = ({ size: f = 29, color: t = "curre
|
|
|
35983
35983
|
/* @__PURE__ */ m.jsx("circle", { cx: "14", cy: "4", r: "1.5", fill: t }),
|
|
35984
35984
|
/* @__PURE__ */ m.jsx("circle", { cx: "14", cy: "8", r: "1.5", fill: t }),
|
|
35985
35985
|
/* @__PURE__ */ m.jsx("path", { d: "M2 18L6 10L10 14L14 8L18 10", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X, fill: "none" })
|
|
35986
|
-
] }),
|
|
35986
|
+
] }), Ri = (f, t) => {
|
|
35987
35987
|
const e = { size: 25, color: "currentColor", ...t };
|
|
35988
35988
|
switch (f) {
|
|
35989
35989
|
case Q.Candle:
|
|
35990
|
-
return /* @__PURE__ */ m.jsx(
|
|
35990
|
+
return /* @__PURE__ */ m.jsx(yi, { ...e });
|
|
35991
35991
|
case Q.HollowCandle:
|
|
35992
35992
|
return /* @__PURE__ */ m.jsx(Cn, { ...e });
|
|
35993
35993
|
case Q.Bar:
|
|
@@ -36015,7 +36015,7 @@ const b = 1.5, T = "round", X = "round", Wi = ({ size: f = 29, color: t = "curre
|
|
|
36015
36015
|
case Q.HLCArea:
|
|
36016
36016
|
return /* @__PURE__ */ m.jsx(Bn, { ...e });
|
|
36017
36017
|
default:
|
|
36018
|
-
return /* @__PURE__ */ m.jsx(
|
|
36018
|
+
return /* @__PURE__ */ m.jsx(yi, { ...e });
|
|
36019
36019
|
}
|
|
36020
36020
|
}, Un = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsx("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: /* @__PURE__ */ m.jsx("path", { d: "M15 18L9 12L15 6", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X }) }), In = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsx("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: /* @__PURE__ */ m.jsx("path", { d: "M9 18L15 12L9 6", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X }) }), Ln = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
36021
36021
|
/* @__PURE__ */ m.jsx("path", { d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.3019 3 18.1885 4.77814 19.7545 7.42906", stroke: t, strokeWidth: b, strokeLinecap: T }),
|
|
@@ -36158,14 +36158,14 @@ const b = 1.5, T = "round", X = "round", Wi = ({ size: f = 29, color: t = "curre
|
|
|
36158
36158
|
strokeLinejoin: X
|
|
36159
36159
|
}
|
|
36160
36160
|
)
|
|
36161
|
-
] }),
|
|
36161
|
+
] }), Ji = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
36162
36162
|
/* @__PURE__ */ m.jsx("path", { d: "M17 3L21 7L7 21H3V17L17 3Z", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X }),
|
|
36163
36163
|
/* @__PURE__ */ m.jsx("path", { d: "M15 5L19 9", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X })
|
|
36164
36164
|
] }), qn = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
36165
36165
|
/* @__PURE__ */ m.jsx("path", { d: "M12 19L19 12L22 15L15 22L12 19Z", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X }),
|
|
36166
36166
|
/* @__PURE__ */ m.jsx("path", { d: "M18 13L16.5 5.5L2 2L5.5 16.5L13 18L18 13Z", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X }),
|
|
36167
36167
|
/* @__PURE__ */ m.jsx("path", { d: "M2 2L9.5 9.5", stroke: t, strokeWidth: b, strokeLinecap: T, strokeLinejoin: X })
|
|
36168
|
-
] }),
|
|
36168
|
+
] }), Zi = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
36169
36169
|
/* @__PURE__ */ m.jsx("path", { d: "M12 2V18", stroke: t, strokeWidth: "1.8", strokeLinecap: "round" }),
|
|
36170
36170
|
/* @__PURE__ */ m.jsx("path", { d: "M6 18H18L17 21H7L6 18Z", stroke: t, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
36171
36171
|
/* @__PURE__ */ m.jsx("path", { d: "M8 19V21", stroke: t, strokeWidth: "0.8", strokeLinecap: "round" }),
|
|
@@ -36307,7 +36307,7 @@ const b = 1.5, T = "round", X = "round", Wi = ({ size: f = 29, color: t = "curre
|
|
|
36307
36307
|
strokeLinejoin: X
|
|
36308
36308
|
}
|
|
36309
36309
|
)
|
|
36310
|
-
] }),
|
|
36310
|
+
] }), Bi = ({ size: f = 25, color: t = "currentColor", className: e }) => /* @__PURE__ */ m.jsxs("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", className: e, children: [
|
|
36311
36311
|
/* @__PURE__ */ m.jsx(
|
|
36312
36312
|
"path",
|
|
36313
36313
|
{
|
|
@@ -39508,26 +39508,26 @@ class no {
|
|
|
39508
39508
|
if (e.props.chart && i.params)
|
|
39509
39509
|
try {
|
|
39510
39510
|
switch (i.type && this.removeIndicator(e.props.chart, i.type), i.type) {
|
|
39511
|
-
case
|
|
39512
|
-
this.addIndicator(e.props.chart,
|
|
39511
|
+
case D.MA:
|
|
39512
|
+
this.addIndicator(e.props.chart, D.MA, e.props.chartData, i);
|
|
39513
39513
|
break;
|
|
39514
|
-
case
|
|
39515
|
-
this.addIndicator(e.props.chart,
|
|
39514
|
+
case D.EMA:
|
|
39515
|
+
this.addIndicator(e.props.chart, D.EMA, e.props.chartData, i);
|
|
39516
39516
|
break;
|
|
39517
|
-
case
|
|
39518
|
-
this.addIndicator(e.props.chart,
|
|
39517
|
+
case D.BOLLINGER:
|
|
39518
|
+
this.addIndicator(e.props.chart, D.BOLLINGER, e.props.chartData, i);
|
|
39519
39519
|
break;
|
|
39520
|
-
case
|
|
39521
|
-
this.addIndicator(e.props.chart,
|
|
39520
|
+
case D.ICHIMOKU:
|
|
39521
|
+
this.addIndicator(e.props.chart, D.ICHIMOKU, e.props.chartData, i);
|
|
39522
39522
|
break;
|
|
39523
|
-
case
|
|
39524
|
-
this.addIndicator(e.props.chart,
|
|
39523
|
+
case D.DONCHIAN:
|
|
39524
|
+
this.addIndicator(e.props.chart, D.DONCHIAN, e.props.chartData, i);
|
|
39525
39525
|
break;
|
|
39526
|
-
case
|
|
39527
|
-
this.addIndicator(e.props.chart,
|
|
39526
|
+
case D.ENVELOPE:
|
|
39527
|
+
this.addIndicator(e.props.chart, D.ENVELOPE, e.props.chartData, i);
|
|
39528
39528
|
break;
|
|
39529
|
-
case
|
|
39530
|
-
this.addIndicator(e.props.chart,
|
|
39529
|
+
case D.VWAP:
|
|
39530
|
+
this.addIndicator(e.props.chart, D.VWAP, e.props.chartData, i);
|
|
39531
39531
|
break;
|
|
39532
39532
|
default:
|
|
39533
39533
|
}
|
|
@@ -39537,7 +39537,7 @@ class no {
|
|
|
39537
39537
|
}, this.theme = t, this.initializeIndicators();
|
|
39538
39538
|
}
|
|
39539
39539
|
initializeIndicators() {
|
|
39540
|
-
this.indicators.set(
|
|
39540
|
+
this.indicators.set(D.MA, new de(this.theme)), this.indicators.set(D.EMA, new ue(this.theme)), this.indicators.set(D.BOLLINGER, new ge(this.theme)), this.indicators.set(D.ICHIMOKU, new pe(this.theme)), this.indicators.set(D.DONCHIAN, new fe(this.theme)), this.indicators.set(D.ENVELOPE, new Me(this.theme)), this.indicators.set(D.VWAP, new me(this.theme));
|
|
39541
39541
|
}
|
|
39542
39542
|
addIndicator(t, e, i, r) {
|
|
39543
39543
|
try {
|
|
@@ -39623,7 +39623,7 @@ class no {
|
|
|
39623
39623
|
getYAxisValuesAtMouseX(t, e, i) {
|
|
39624
39624
|
try {
|
|
39625
39625
|
const r = this.indicators.get(t);
|
|
39626
|
-
return r && (t ===
|
|
39626
|
+
return r && (t === D.MA && r instanceof de || t === D.EMA && r instanceof ue || t === D.BOLLINGER && r instanceof ge || t === D.ICHIMOKU && r instanceof pe || t === D.DONCHIAN && r instanceof fe || t === D.ENVELOPE && r instanceof Me || t === D.VWAP && r instanceof me) ? r.getYAxisValuesAtMouseX(e, i) : null;
|
|
39627
39627
|
} catch {
|
|
39628
39628
|
return null;
|
|
39629
39629
|
}
|
|
@@ -39632,9 +39632,9 @@ class no {
|
|
|
39632
39632
|
return this.indicators.get(t)?.isVisible() || !1;
|
|
39633
39633
|
}
|
|
39634
39634
|
}
|
|
39635
|
-
const
|
|
39635
|
+
const ye = {
|
|
39636
39636
|
id: "1",
|
|
39637
|
-
type:
|
|
39637
|
+
type: D.MA,
|
|
39638
39638
|
params: [
|
|
39639
39639
|
{ paramName: "MA", paramValue: 5, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39640
39640
|
{ paramName: "MA", paramValue: 10, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39643,26 +39643,26 @@ const Yi = {
|
|
|
39643
39643
|
{ paramName: "MA", paramValue: 60, lineColor: "#f7c933ff", lineWidth: 1 }
|
|
39644
39644
|
],
|
|
39645
39645
|
nonce: Date.now()
|
|
39646
|
-
},
|
|
39646
|
+
}, Re = {
|
|
39647
39647
|
id: "2",
|
|
39648
|
-
type:
|
|
39648
|
+
type: D.EMA,
|
|
39649
39649
|
params: [
|
|
39650
39650
|
{ paramName: "EMA", paramValue: 12, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39651
39651
|
{ paramName: "EMA", paramValue: 26, lineColor: "#6958ffff", lineWidth: 1 }
|
|
39652
39652
|
],
|
|
39653
39653
|
nonce: Date.now()
|
|
39654
|
-
},
|
|
39654
|
+
}, Be = {
|
|
39655
39655
|
id: "3",
|
|
39656
|
-
type:
|
|
39656
|
+
type: D.BOLLINGER,
|
|
39657
39657
|
params: [
|
|
39658
39658
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39659
39659
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
39660
39660
|
{ paramName: "Lower", paramValue: 20, lineColor: "#0ed3ffff", lineWidth: 1 }
|
|
39661
39661
|
],
|
|
39662
39662
|
nonce: Date.now()
|
|
39663
|
-
},
|
|
39663
|
+
}, Ue = {
|
|
39664
39664
|
id: "4",
|
|
39665
|
-
type:
|
|
39665
|
+
type: D.ICHIMOKU,
|
|
39666
39666
|
params: [
|
|
39667
39667
|
{ paramName: "Tenkan", paramValue: 9, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39668
39668
|
{ paramName: "Kijun", paramValue: 26, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39671,41 +39671,41 @@ const Yi = {
|
|
|
39671
39671
|
{ paramName: "Chikou", paramValue: 26, lineColor: "#f7c933ff", lineWidth: 1 }
|
|
39672
39672
|
],
|
|
39673
39673
|
nonce: Date.now()
|
|
39674
|
-
},
|
|
39674
|
+
}, Ie = {
|
|
39675
39675
|
id: "5",
|
|
39676
|
-
type:
|
|
39676
|
+
type: D.DONCHIAN,
|
|
39677
39677
|
params: [
|
|
39678
39678
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39679
39679
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
39680
39680
|
{ paramName: "Lower", paramValue: 20, lineColor: "#0ed3ffff", lineWidth: 1 }
|
|
39681
39681
|
],
|
|
39682
39682
|
nonce: Date.now()
|
|
39683
|
-
},
|
|
39683
|
+
}, Le = {
|
|
39684
39684
|
id: "6",
|
|
39685
|
-
type:
|
|
39685
|
+
type: D.ENVELOPE,
|
|
39686
39686
|
params: [
|
|
39687
39687
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39688
39688
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
39689
39689
|
{ paramName: "Lower", paramValue: 20, lineColor: "#0ed3ffff", lineWidth: 1 }
|
|
39690
39690
|
],
|
|
39691
39691
|
nonce: Date.now()
|
|
39692
|
-
},
|
|
39692
|
+
}, He = {
|
|
39693
39693
|
id: "7",
|
|
39694
|
-
type:
|
|
39694
|
+
type: D.VWAP,
|
|
39695
39695
|
params: [
|
|
39696
39696
|
{ paramName: "VWAP", paramValue: 0, lineColor: "#FF6B6B", lineWidth: 1 }
|
|
39697
39697
|
],
|
|
39698
39698
|
nonce: Date.now()
|
|
39699
|
-
},
|
|
39699
|
+
}, Ke = {
|
|
39700
39700
|
id: "8",
|
|
39701
|
-
type:
|
|
39701
|
+
type: D.HEATMAP,
|
|
39702
39702
|
params: [
|
|
39703
39703
|
{ paramName: "HEATMAP", paramValue: 0, lineColor: "#FF6B6B", lineWidth: 1 }
|
|
39704
39704
|
],
|
|
39705
39705
|
nonce: Date.now()
|
|
39706
|
-
},
|
|
39706
|
+
}, Oe = {
|
|
39707
39707
|
id: "9",
|
|
39708
|
-
type:
|
|
39708
|
+
type: D.MARKETPROFILE,
|
|
39709
39709
|
params: [
|
|
39710
39710
|
{ paramName: "MARKETPROFILE", paramValue: 0, lineColor: "#FF6B6B", lineWidth: 1 }
|
|
39711
39711
|
],
|
|
@@ -39715,7 +39715,7 @@ function Qt() {
|
|
|
39715
39715
|
return [
|
|
39716
39716
|
{
|
|
39717
39717
|
id: "1",
|
|
39718
|
-
type:
|
|
39718
|
+
type: D.MA,
|
|
39719
39719
|
params: [
|
|
39720
39720
|
{ paramName: "MA", paramValue: 5, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39721
39721
|
{ paramName: "MA", paramValue: 10, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39727,7 +39727,7 @@ function Qt() {
|
|
|
39727
39727
|
},
|
|
39728
39728
|
{
|
|
39729
39729
|
id: "2",
|
|
39730
|
-
type:
|
|
39730
|
+
type: D.EMA,
|
|
39731
39731
|
params: [
|
|
39732
39732
|
{ paramName: "EMA", paramValue: 12, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39733
39733
|
{ paramName: "EMA", paramValue: 26, lineColor: "#6958ffff", lineWidth: 1 }
|
|
@@ -39736,7 +39736,7 @@ function Qt() {
|
|
|
39736
39736
|
},
|
|
39737
39737
|
{
|
|
39738
39738
|
id: "3",
|
|
39739
|
-
type:
|
|
39739
|
+
type: D.BOLLINGER,
|
|
39740
39740
|
params: [
|
|
39741
39741
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39742
39742
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39746,7 +39746,7 @@ function Qt() {
|
|
|
39746
39746
|
},
|
|
39747
39747
|
{
|
|
39748
39748
|
id: "4",
|
|
39749
|
-
type:
|
|
39749
|
+
type: D.ICHIMOKU,
|
|
39750
39750
|
params: [
|
|
39751
39751
|
{ paramName: "Tenkan", paramValue: 9, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39752
39752
|
{ paramName: "Kijun", paramValue: 26, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39758,7 +39758,7 @@ function Qt() {
|
|
|
39758
39758
|
},
|
|
39759
39759
|
{
|
|
39760
39760
|
id: "5",
|
|
39761
|
-
type:
|
|
39761
|
+
type: D.DONCHIAN,
|
|
39762
39762
|
params: [
|
|
39763
39763
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39764
39764
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39768,7 +39768,7 @@ function Qt() {
|
|
|
39768
39768
|
},
|
|
39769
39769
|
{
|
|
39770
39770
|
id: "6",
|
|
39771
|
-
type:
|
|
39771
|
+
type: D.ENVELOPE,
|
|
39772
39772
|
params: [
|
|
39773
39773
|
{ paramName: "Upper", paramValue: 20, lineColor: "#FF6B6B", lineWidth: 1 },
|
|
39774
39774
|
{ paramName: "Middle", paramValue: 20, lineColor: "#6958ffff", lineWidth: 1 },
|
|
@@ -39778,7 +39778,7 @@ function Qt() {
|
|
|
39778
39778
|
},
|
|
39779
39779
|
{
|
|
39780
39780
|
id: "7",
|
|
39781
|
-
type:
|
|
39781
|
+
type: D.VWAP,
|
|
39782
39782
|
params: [
|
|
39783
39783
|
{ paramName: "VWAP", paramValue: 0, lineColor: "#FF6B6B", lineWidth: 1 }
|
|
39784
39784
|
],
|
|
@@ -39871,25 +39871,25 @@ class oo extends rt.Component {
|
|
|
39871
39871
|
} = this.props;
|
|
39872
39872
|
let u = 0;
|
|
39873
39873
|
switch (r) {
|
|
39874
|
-
case
|
|
39874
|
+
case D.MA:
|
|
39875
39875
|
u = n?.[a + s] || 0;
|
|
39876
39876
|
break;
|
|
39877
|
-
case
|
|
39877
|
+
case D.EMA:
|
|
39878
39878
|
u = o?.[a + s] || 0;
|
|
39879
39879
|
break;
|
|
39880
|
-
case
|
|
39880
|
+
case D.BOLLINGER:
|
|
39881
39881
|
u = l?.[a] || 0;
|
|
39882
39882
|
break;
|
|
39883
|
-
case
|
|
39883
|
+
case D.ICHIMOKU:
|
|
39884
39884
|
u = h?.[a] || 0;
|
|
39885
39885
|
break;
|
|
39886
|
-
case
|
|
39886
|
+
case D.DONCHIAN:
|
|
39887
39887
|
u = d?.[a] || 0;
|
|
39888
39888
|
break;
|
|
39889
|
-
case
|
|
39889
|
+
case D.ENVELOPE:
|
|
39890
39890
|
u = g?.[a] || 0;
|
|
39891
39891
|
break;
|
|
39892
|
-
case
|
|
39892
|
+
case D.VWAP:
|
|
39893
39893
|
u = c || 0;
|
|
39894
39894
|
break;
|
|
39895
39895
|
default:
|
|
@@ -40089,19 +40089,19 @@ class oo extends rt.Component {
|
|
|
40089
40089
|
return null;
|
|
40090
40090
|
const l = this.state.visibleIndicatorsMap.get(o.type) ?? !0, h = (d) => {
|
|
40091
40091
|
switch (d) {
|
|
40092
|
-
case
|
|
40092
|
+
case D.MA:
|
|
40093
40093
|
return this.props.i18n.indicators.ma;
|
|
40094
|
-
case
|
|
40094
|
+
case D.EMA:
|
|
40095
40095
|
return this.props.i18n.indicators.ema;
|
|
40096
|
-
case
|
|
40096
|
+
case D.BOLLINGER:
|
|
40097
40097
|
return this.props.i18n.indicators.bollinger;
|
|
40098
|
-
case
|
|
40098
|
+
case D.ICHIMOKU:
|
|
40099
40099
|
return this.props.i18n.indicators.ichimoku;
|
|
40100
|
-
case
|
|
40100
|
+
case D.DONCHIAN:
|
|
40101
40101
|
return this.props.i18n.indicators.donchian;
|
|
40102
|
-
case
|
|
40102
|
+
case D.ENVELOPE:
|
|
40103
40103
|
return this.props.i18n.indicators.envelope;
|
|
40104
|
-
case
|
|
40104
|
+
case D.VWAP:
|
|
40105
40105
|
return this.props.i18n.indicators.vwap;
|
|
40106
40106
|
default:
|
|
40107
40107
|
return this.props.i18n.Indicators;
|
|
@@ -40219,7 +40219,7 @@ class oo extends rt.Component {
|
|
|
40219
40219
|
] })
|
|
40220
40220
|
}
|
|
40221
40221
|
),
|
|
40222
|
-
o.type ===
|
|
40222
|
+
o.type === D.MA || o.type === D.EMA ? this.renderIndicatorWithValues(o) : this.renderNormalIndicatorParams(o)
|
|
40223
40223
|
] })
|
|
40224
40224
|
]
|
|
40225
40225
|
},
|
|
@@ -40263,10 +40263,10 @@ const lo = ({
|
|
|
40263
40263
|
const P = (q) => {
|
|
40264
40264
|
const L = r?.chart?.lineColor || "#2962FF";
|
|
40265
40265
|
switch (q) {
|
|
40266
|
-
case
|
|
40266
|
+
case D.VWAP:
|
|
40267
40267
|
return {
|
|
40268
40268
|
id: Date.now().toString(),
|
|
40269
|
-
type:
|
|
40269
|
+
type: D.VWAP,
|
|
40270
40270
|
params: [{
|
|
40271
40271
|
paramName: n.indicators?.vwap || "VWAP",
|
|
40272
40272
|
paramValue: 0,
|
|
@@ -40275,10 +40275,10 @@ const lo = ({
|
|
|
40275
40275
|
}],
|
|
40276
40276
|
nonce: Date.now()
|
|
40277
40277
|
};
|
|
40278
|
-
case
|
|
40278
|
+
case D.ENVELOPE:
|
|
40279
40279
|
return {
|
|
40280
40280
|
id: Date.now().toString(),
|
|
40281
|
-
type:
|
|
40281
|
+
type: D.ENVELOPE,
|
|
40282
40282
|
params: [
|
|
40283
40283
|
{
|
|
40284
40284
|
paramName: n.modal?.parameterName || "周期",
|
|
@@ -40295,10 +40295,10 @@ const lo = ({
|
|
|
40295
40295
|
],
|
|
40296
40296
|
nonce: Date.now()
|
|
40297
40297
|
};
|
|
40298
|
-
case
|
|
40298
|
+
case D.DONCHIAN:
|
|
40299
40299
|
return {
|
|
40300
40300
|
id: Date.now().toString(),
|
|
40301
|
-
type:
|
|
40301
|
+
type: D.DONCHIAN,
|
|
40302
40302
|
params: [
|
|
40303
40303
|
{
|
|
40304
40304
|
paramName: n.modal?.parameterName || "周期",
|
|
@@ -40321,10 +40321,10 @@ const lo = ({
|
|
|
40321
40321
|
],
|
|
40322
40322
|
nonce: Date.now()
|
|
40323
40323
|
};
|
|
40324
|
-
case
|
|
40324
|
+
case D.BOLLINGER:
|
|
40325
40325
|
return {
|
|
40326
40326
|
id: Date.now().toString(),
|
|
40327
|
-
type:
|
|
40327
|
+
type: D.BOLLINGER,
|
|
40328
40328
|
params: [
|
|
40329
40329
|
{
|
|
40330
40330
|
paramName: n.modal?.parameterName || "周期",
|
|
@@ -40347,10 +40347,10 @@ const lo = ({
|
|
|
40347
40347
|
],
|
|
40348
40348
|
nonce: Date.now()
|
|
40349
40349
|
};
|
|
40350
|
-
case
|
|
40350
|
+
case D.EMA:
|
|
40351
40351
|
return {
|
|
40352
40352
|
id: Date.now().toString(),
|
|
40353
|
-
type:
|
|
40353
|
+
type: D.EMA,
|
|
40354
40354
|
params: [
|
|
40355
40355
|
{
|
|
40356
40356
|
paramName: `${n.indicators?.ema || "EMA"} 1`,
|
|
@@ -40367,10 +40367,10 @@ const lo = ({
|
|
|
40367
40367
|
],
|
|
40368
40368
|
nonce: Date.now()
|
|
40369
40369
|
};
|
|
40370
|
-
case
|
|
40370
|
+
case D.ICHIMOKU:
|
|
40371
40371
|
return {
|
|
40372
40372
|
id: Date.now().toString(),
|
|
40373
|
-
type:
|
|
40373
|
+
type: D.ICHIMOKU,
|
|
40374
40374
|
params: [
|
|
40375
40375
|
{
|
|
40376
40376
|
paramName: n.indicators?.ichimoku || "转换线周期",
|
|
@@ -40399,10 +40399,10 @@ const lo = ({
|
|
|
40399
40399
|
],
|
|
40400
40400
|
nonce: Date.now()
|
|
40401
40401
|
};
|
|
40402
|
-
case
|
|
40402
|
+
case D.MA:
|
|
40403
40403
|
return {
|
|
40404
40404
|
id: Date.now().toString(),
|
|
40405
|
-
type:
|
|
40405
|
+
type: D.MA,
|
|
40406
40406
|
params: [
|
|
40407
40407
|
{
|
|
40408
40408
|
paramName: `${n.indicators?.ma || "MA"} 1`,
|
|
@@ -40438,11 +40438,11 @@ const lo = ({
|
|
|
40438
40438
|
nonce: Date.now()
|
|
40439
40439
|
};
|
|
40440
40440
|
}
|
|
40441
|
-
}, S = () => s ===
|
|
40441
|
+
}, S = () => s === D.MA || s === D.EMA, _ = () => {
|
|
40442
40442
|
if (!S() || !o) return;
|
|
40443
40443
|
const q = B(), L = o?.params?.length || 0;
|
|
40444
40444
|
let z = "";
|
|
40445
|
-
s ===
|
|
40445
|
+
s === D.MA ? z = `${n.indicators?.ma || "MA"} ${L + 1}` : s === D.EMA ? z = `${n.indicators?.ema || "EMA"} ${L + 1}` : z = tt(L);
|
|
40446
40446
|
const Z = {
|
|
40447
40447
|
paramName: z,
|
|
40448
40448
|
paramValue: 0,
|
|
@@ -40459,7 +40459,7 @@ const lo = ({
|
|
|
40459
40459
|
L.splice(q, 1);
|
|
40460
40460
|
const z = L.map((Z, vt) => {
|
|
40461
40461
|
let wt = "";
|
|
40462
|
-
return s ===
|
|
40462
|
+
return s === D.MA ? wt = `${n.indicators?.ma || "MA"} ${vt + 1}` : s === D.EMA && (wt = `${n.indicators?.ema || "EMA"} ${vt + 1}`), {
|
|
40463
40463
|
...Z,
|
|
40464
40464
|
paramName: wt
|
|
40465
40465
|
};
|
|
@@ -40508,40 +40508,40 @@ const lo = ({
|
|
|
40508
40508
|
l(i || P(s)), t();
|
|
40509
40509
|
}, I = () => {
|
|
40510
40510
|
switch (s) {
|
|
40511
|
-
case
|
|
40511
|
+
case D.MA:
|
|
40512
40512
|
return `${n.indicators?.ma || "移动平均线"} (MA)`;
|
|
40513
|
-
case
|
|
40513
|
+
case D.EMA:
|
|
40514
40514
|
return `${n.indicators?.ema || "指数移动平均线"} (EMA)`;
|
|
40515
|
-
case
|
|
40515
|
+
case D.BOLLINGER:
|
|
40516
40516
|
return `${n.indicators?.bollinger || "布林通道"} (BOLL)`;
|
|
40517
|
-
case
|
|
40517
|
+
case D.ICHIMOKU:
|
|
40518
40518
|
return `${n.indicators?.ichimoku || "一目均衡表"} (ICHIMOKU)`;
|
|
40519
|
-
case
|
|
40519
|
+
case D.DONCHIAN:
|
|
40520
40520
|
return `${n.indicators?.donchian || "唐奇安通道"} (DONCHIAN)`;
|
|
40521
|
-
case
|
|
40521
|
+
case D.ENVELOPE:
|
|
40522
40522
|
return `${n.indicators?.envelope || "包络线"} (ENVELOPE)`;
|
|
40523
|
-
case
|
|
40523
|
+
case D.VWAP:
|
|
40524
40524
|
return `${n.indicators?.vwap || "成交量加权平均价"} (VWAP)`;
|
|
40525
40525
|
default:
|
|
40526
40526
|
return n.mainChartIndicators || "主图指标设置";
|
|
40527
40527
|
}
|
|
40528
|
-
}, tt = (q) => s ===
|
|
40528
|
+
}, tt = (q) => s === D.BOLLINGER ? [
|
|
40529
40529
|
n.modal?.parameterName || "周期",
|
|
40530
40530
|
n.indicators?.bollinger || "上轨标准差",
|
|
40531
40531
|
n.indicators?.bollinger || "下轨标准差"
|
|
40532
|
-
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s ===
|
|
40532
|
+
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s === D.ICHIMOKU ? [
|
|
40533
40533
|
n.indicators?.ichimoku || "转换线周期",
|
|
40534
40534
|
n.indicators?.ichimoku || "基准线周期",
|
|
40535
40535
|
n.indicators?.ichimoku || "先行跨度周期",
|
|
40536
40536
|
n.indicators?.ichimoku || "滞后跨度周期"
|
|
40537
|
-
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s ===
|
|
40537
|
+
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s === D.DONCHIAN ? [
|
|
40538
40538
|
n.modal?.parameterName || "周期",
|
|
40539
40539
|
n.indicators?.donchian || "上轨周期",
|
|
40540
40540
|
n.indicators?.donchian || "下轨周期"
|
|
40541
|
-
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s ===
|
|
40541
|
+
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s === D.ENVELOPE ? [
|
|
40542
40542
|
n.modal?.parameterName || "周期",
|
|
40543
40543
|
n.indicators?.envelope || "偏移百分比"
|
|
40544
|
-
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s ===
|
|
40544
|
+
][q] || `${n.modal?.parameterName || "参数"} ${q + 1}` : s === D.VWAP ? n.indicators?.vwap || "锚定时间" : s === D.EMA || s === D.MA ? `${n.modal?.parameterName || "周期"} ${q + 1}` : `${n.modal?.parameterName || "参数"} ${q + 1}`, at = (q) => {
|
|
40545
40545
|
if (q.target === k.current || k.current?.contains(q.target)) {
|
|
40546
40546
|
c(!0);
|
|
40547
40547
|
const L = M.current.getBoundingClientRect();
|
|
@@ -42463,7 +42463,7 @@ class xo {
|
|
|
42463
42463
|
}), t;
|
|
42464
42464
|
}
|
|
42465
42465
|
}
|
|
42466
|
-
class
|
|
42466
|
+
class Ui extends Dt {
|
|
42467
42467
|
constructor() {
|
|
42468
42468
|
super(...arguments), this.seriesMap = {}, this.rsiIndicator = null, this.currentValues = {}, this.rsiIndicatorInfo = [
|
|
42469
42469
|
{
|
|
@@ -43023,7 +43023,7 @@ class Bo {
|
|
|
43023
43023
|
case N.VOLUME:
|
|
43024
43024
|
return new Ro(i, r, a, s, t, e, n, o, l);
|
|
43025
43025
|
case N.RSI:
|
|
43026
|
-
return new
|
|
43026
|
+
return new Ui(i, r, a, s, t, e, n, o, l);
|
|
43027
43027
|
case N.MACD:
|
|
43028
43028
|
return new To(i, r, a, s, t, e, n, o, l);
|
|
43029
43029
|
case N.STOCHASTIC:
|
|
@@ -43043,7 +43043,7 @@ class Bo {
|
|
|
43043
43043
|
case N.OBV:
|
|
43044
43044
|
return new vo(i, r, a, s, t, e, n, o, l);
|
|
43045
43045
|
default:
|
|
43046
|
-
return new
|
|
43046
|
+
return new Ui(i, r, a, s, t, e, n, o, l);
|
|
43047
43047
|
}
|
|
43048
43048
|
}
|
|
43049
43049
|
}
|
|
@@ -43761,7 +43761,7 @@ const Io = ({
|
|
|
43761
43761
|
document.body
|
|
43762
43762
|
);
|
|
43763
43763
|
};
|
|
43764
|
-
class
|
|
43764
|
+
class Ii {
|
|
43765
43765
|
constructor(t) {
|
|
43766
43766
|
this.volumeSeries = null, this.refreshData = (e) => {
|
|
43767
43767
|
if (!this.volumeSeries) return;
|
|
@@ -43797,7 +43797,7 @@ class xi {
|
|
|
43797
43797
|
}
|
|
43798
43798
|
}
|
|
43799
43799
|
}
|
|
43800
|
-
class
|
|
43800
|
+
class Li {
|
|
43801
43801
|
constructor(t, e) {
|
|
43802
43802
|
this.candleSeries = null, this.refreshData = (r) => {
|
|
43803
43803
|
if (!this.candleSeries) return;
|
|
@@ -43887,7 +43887,7 @@ class Lo {
|
|
|
43887
43887
|
r.props.chart.removeSeries(a);
|
|
43888
43888
|
} catch {
|
|
43889
43889
|
}
|
|
43890
|
-
}, this.barSeries = t.props.chart.addSeries(
|
|
43890
|
+
}, this.barSeries = t.props.chart.addSeries(Ni, {
|
|
43891
43891
|
upColor: e.chart.candleUpColor || "#26a69a",
|
|
43892
43892
|
downColor: e.chart.candleDownColor || "#ef5350",
|
|
43893
43893
|
thinBars: !0,
|
|
@@ -44902,7 +44902,7 @@ class Go {
|
|
|
44902
44902
|
if (!(this.currentType === t && this.currentChart))
|
|
44903
44903
|
switch (this.destroyCurrentChart(), this.currentType = t, t) {
|
|
44904
44904
|
case Q.Candle:
|
|
44905
|
-
this.currentChart = new
|
|
44905
|
+
this.currentChart = new Li(this.chartLayer, this.theme);
|
|
44906
44906
|
break;
|
|
44907
44907
|
case Q.HollowCandle:
|
|
44908
44908
|
this.currentChart = new No(this.chartLayer, this.theme);
|
|
@@ -44944,7 +44944,7 @@ class Go {
|
|
|
44944
44944
|
this.currentChart = new zo(this.chartLayer, this.theme);
|
|
44945
44945
|
break;
|
|
44946
44946
|
default:
|
|
44947
|
-
console.warn(`Unknown chart type: ${t}`), this.currentChart = new
|
|
44947
|
+
console.warn(`Unknown chart type: ${t}`), this.currentChart = new Li(this.chartLayer, this.theme);
|
|
44948
44948
|
break;
|
|
44949
44949
|
}
|
|
44950
44950
|
}
|
|
@@ -45355,7 +45355,7 @@ class Zo extends rt.Component {
|
|
|
45355
45355
|
if (!this.mainChartTechnicalIndicatorManager || !this.props.chartData)
|
|
45356
45356
|
return;
|
|
45357
45357
|
const { selectedMainChartIndicator: e } = this.props;
|
|
45358
|
-
e && (
|
|
45358
|
+
e && (D.HEATMAP === e.type || D.MARKETPROFILE === e.type || this.setState((i) => {
|
|
45359
45359
|
const r = i.selectedMainChartIndicators.some(
|
|
45360
45360
|
(o) => o.type === e.type
|
|
45361
45361
|
);
|
|
@@ -45413,13 +45413,13 @@ class Zo extends rt.Component {
|
|
|
45413
45413
|
}
|
|
45414
45414
|
}, this.handleRemoveIndicator = (e) => {
|
|
45415
45415
|
if (!(!e || !this.mainChartTechnicalIndicatorManager || !this.props.chart)) {
|
|
45416
|
-
if (e ===
|
|
45416
|
+
if (e === D.HEATMAP) {
|
|
45417
45417
|
setTimeout(() => {
|
|
45418
45418
|
this.volumeHeatMap && (this.volumeHeatMap.destroy(), this.volumeHeatMap = null);
|
|
45419
45419
|
}, 0);
|
|
45420
45420
|
return;
|
|
45421
45421
|
}
|
|
45422
|
-
if (e ===
|
|
45422
|
+
if (e === D.MARKETPROFILE) {
|
|
45423
45423
|
setTimeout(() => {
|
|
45424
45424
|
this.marketProfile && (this.marketProfile.destroy(), this.marketProfile = null);
|
|
45425
45425
|
}, 0);
|
|
@@ -46170,13 +46170,13 @@ class Zo extends rt.Component {
|
|
|
46170
46170
|
priceEventDragTarget: null,
|
|
46171
46171
|
currentPriceEventMark: null,
|
|
46172
46172
|
isIncrement: !1
|
|
46173
|
-
}, this.chartEventManager = new
|
|
46173
|
+
}, this.chartEventManager = new Gi(), this.chartMarkManager = new la(), this.chartMarkTextEditManager = new ha(), this.mainChartTechnicalIndicatorManager = new no(this.props.currentTheme), this.initializeGraphManager(), this.staticMarkManager = new uo(), this.chartPanesManager = new Uo(), this.mainChartManager = new Go(this, this.props.currentTheme);
|
|
46174
46174
|
}
|
|
46175
46175
|
componentDidMount() {
|
|
46176
46176
|
this.setupCanvas(), this.setupAllDocumentEvents(), this.setupAllContainerEvents(), this.initializeMainChartIndicators(), this.chartMarkTextEditManager?.setupBubbleBoxMarkEvents(this), this.chartMarkTextEditManager?.setupSignPostMarkEvents(this), this.chartMarkTextEditManager?.setupPinMarkEvents(this), this.chartMarkTextEditManager?.setupTextEditMarkEvents(this), this.initStaticMark(), this.props.chart ? this.chartEventManager?.registerCrosshairMoveEvent(this) : setTimeout(() => {
|
|
46177
46177
|
this.props.chart && this.chartEventManager?.registerCrosshairMoveEvent(this);
|
|
46178
46178
|
}, 100), setTimeout(() => {
|
|
46179
|
-
this.mainChartManager?.switchChartType(Q.Candle), this.volume = new
|
|
46179
|
+
this.mainChartManager?.switchChartType(Q.Candle), this.volume = new Ii(this), this.props.chart && this.chartPanesManager?.setChartInstance(this.props.chart);
|
|
46180
46180
|
}, 50);
|
|
46181
46181
|
}
|
|
46182
46182
|
componentDidUpdate(t) {
|
|
@@ -46188,7 +46188,7 @@ class Zo extends rt.Component {
|
|
|
46188
46188
|
aiconfigs: this.props.aiconfigs
|
|
46189
46189
|
}), t.currentAIFunctionType !== this.props.currentAIFunctionType && this.props.currentAIFunctionType && this.setState({
|
|
46190
46190
|
currentAIFunctionType: this.props.currentAIFunctionType
|
|
46191
|
-
}), (t.timeframe !== this.props.timeframe || t.timezone !== this.props.timezone) && this.volume && (this.volume.destroy(this), this.volume = new
|
|
46191
|
+
}), (t.timeframe !== this.props.timeframe || t.timezone !== this.props.timezone) && this.volume && (this.volume.destroy(this), this.volume = new Ii(this), this.volume.refreshData(this)), this.hasChartDataChanged(t.chartData, this.props.chartData) ? (setTimeout(() => {
|
|
46192
46192
|
this.updateStaticMark();
|
|
46193
46193
|
}, 0), this.handleUpdateMainChartMaps(), this.updateAllMainChartIndicatorData(), this.chartPanesManager?.updateAllPaneData(this.props.chartData), this.volume?.refreshData(this), this.mainChartManager?.refreshData(), this.volumeHeatMap?.refreshData(this), this.executeEventMarksScriptForChartData()) : this.hasMainChartIndicatorChanged(t.selectedMainChartIndicator, this.props.selectedMainChartIndicator) && (this.handleInitMainChartMaps(), this.updateSelectedMainChartIndicators(), this.chartPanesManager?.updateAllPaneData(this.props.chartData), this.volume?.refreshData(this), this.mainChartManager?.refreshData(), this.executeEventMarksScriptForChartData()), t.currentMainChartType !== this.props.currentMainChartType && this.swtichMainChartType(), t.markData !== this.props.markData && (this.staticMarkManager?.clearAllMarks(), this.updateStaticMark()), t.currentTheme !== this.props.currentTheme && this.chartPanesManager?.updateAllPaneTheme(this.props.currentTheme), t.selectedSubChartIndicators !== this.props.selectedSubChartIndicators && (this.chartPanesManager?.removeAllPane(), setTimeout(() => {
|
|
46194
46194
|
this.props.selectedSubChartIndicators.forEach((e) => {
|
|
@@ -46210,9 +46210,9 @@ class Zo extends rt.Component {
|
|
|
46210
46210
|
}
|
|
46211
46211
|
// handle main chart technical map
|
|
46212
46212
|
handleInitMainChartMaps() {
|
|
46213
|
-
this.props.selectedMainChartIndicator && (this.props.selectedMainChartIndicator.type ===
|
|
46213
|
+
this.props.selectedMainChartIndicator && (this.props.selectedMainChartIndicator.type === D.HEATMAP && (this.volumeHeatMap || (this.volumeHeatMap = new $o(this, this.props.i18n, this.props.currentTheme, () => {
|
|
46214
46214
|
this.volumeHeatMap = null;
|
|
46215
|
-
}), this.volumeHeatMap?.refreshData(this))), this.props.selectedMainChartIndicator.type ===
|
|
46215
|
+
}), this.volumeHeatMap?.refreshData(this))), this.props.selectedMainChartIndicator.type === D.MARKETPROFILE && (this.marketProfile || (this.marketProfile = new Jo(this, this.props.i18n, this.props.currentTheme, () => {
|
|
46216
46216
|
this.marketProfile = null;
|
|
46217
46217
|
}), this.marketProfile?.refreshData(this))));
|
|
46218
46218
|
}
|
|
@@ -47701,9 +47701,9 @@ const er = {
|
|
|
47701
47701
|
[E.SIX_MONTHS]: { seconds: 15552e3, groupBy: "month" }
|
|
47702
47702
|
};
|
|
47703
47703
|
function hl(f, t) {
|
|
47704
|
-
return t && f in t.timeframes ? t.timeframes[f] :
|
|
47704
|
+
return t && f in t.timeframes ? t.timeframes[f] : Hi(f);
|
|
47705
47705
|
}
|
|
47706
|
-
function
|
|
47706
|
+
function Hi(f) {
|
|
47707
47707
|
return {
|
|
47708
47708
|
[E.ONE_SECOND]: "1 Second",
|
|
47709
47709
|
[E.FIVE_SECONDS]: "5 Seconds",
|
|
@@ -47765,7 +47765,7 @@ function cl(f, t, e, i = E.ONE_DAY) {
|
|
|
47765
47765
|
}
|
|
47766
47766
|
return s;
|
|
47767
47767
|
}
|
|
47768
|
-
function
|
|
47768
|
+
function Ki(f, t) {
|
|
47769
47769
|
if (!f || f.length === 0) return f;
|
|
47770
47770
|
const e = dl[t];
|
|
47771
47771
|
return e ? f.map((i) => {
|
|
@@ -47828,14 +47828,14 @@ function ul(f, t) {
|
|
|
47828
47828
|
r.push(n);
|
|
47829
47829
|
else {
|
|
47830
47830
|
if (r.length > 0) {
|
|
47831
|
-
const h =
|
|
47831
|
+
const h = Oi(r);
|
|
47832
47832
|
i.push(h);
|
|
47833
47833
|
}
|
|
47834
47834
|
r = [n], a = l;
|
|
47835
47835
|
}
|
|
47836
47836
|
}
|
|
47837
47837
|
if (r.length > 0) {
|
|
47838
|
-
const s =
|
|
47838
|
+
const s = Oi(r);
|
|
47839
47839
|
i.push(s);
|
|
47840
47840
|
}
|
|
47841
47841
|
return i;
|
|
@@ -47897,7 +47897,7 @@ function gl(f) {
|
|
|
47897
47897
|
return 0;
|
|
47898
47898
|
}
|
|
47899
47899
|
}
|
|
47900
|
-
function
|
|
47900
|
+
function Oi(f) {
|
|
47901
47901
|
if (f.length === 1)
|
|
47902
47902
|
return { ...f[0] };
|
|
47903
47903
|
const t = f[0].open, e = f[f.length - 1].close;
|
|
@@ -47933,10 +47933,10 @@ class be {
|
|
|
47933
47933
|
try {
|
|
47934
47934
|
var a = [];
|
|
47935
47935
|
if (r) {
|
|
47936
|
-
const s =
|
|
47936
|
+
const s = Ki(t, e.timezone);
|
|
47937
47937
|
a = e.shouldExtendVirtualData ? this.extendWithVirtualData(s, e) : s;
|
|
47938
47938
|
} else {
|
|
47939
|
-
const s =
|
|
47939
|
+
const s = Ki(t, e.timezone), n = ul(s, e.timeframe);
|
|
47940
47940
|
a = e.shouldExtendVirtualData ? this.extendWithVirtualData(n, e) : n;
|
|
47941
47941
|
}
|
|
47942
47942
|
return a;
|
|
@@ -49146,7 +49146,7 @@ const _l = {
|
|
|
49146
49146
|
deepseek: "https://www.deepseek.com/favicon.ico",
|
|
49147
49147
|
claude: "https://cdn.simpleicons.org/anthropic/FF6B35",
|
|
49148
49148
|
gemini: "https://cdn.simpleicons.org/google/4285F4"
|
|
49149
|
-
},
|
|
49149
|
+
}, ji = {
|
|
49150
49150
|
aliyun: "Aliyun",
|
|
49151
49151
|
openai: "OpenAI",
|
|
49152
49152
|
deepseek: "DeepSeek",
|
|
@@ -49199,7 +49199,7 @@ const Tl = [
|
|
|
49199
49199
|
"open",
|
|
49200
49200
|
"close"
|
|
49201
49201
|
], wl = [
|
|
49202
|
-
...Object.values(
|
|
49202
|
+
...Object.values(D).map((f) => f.toLowerCase().replace(/_/g, " ")),
|
|
49203
49203
|
...Object.values(N).map((f) => f.toLowerCase().replace(/_/g, " "))
|
|
49204
49204
|
], vl = ({
|
|
49205
49205
|
currentTheme: f,
|
|
@@ -49249,27 +49249,27 @@ Npm: <a href="https://www.npmjs.com/package/candleview" target="_blank" rel="noo
|
|
|
49249
49249
|
}, [h]), gt(() => {
|
|
49250
49250
|
a && !r && _ && U.current?.focus();
|
|
49251
49251
|
}, [a, r, _]), gt(() => {
|
|
49252
|
-
const
|
|
49253
|
-
if (
|
|
49252
|
+
const F = localStorage.getItem("terminal_command_history");
|
|
49253
|
+
if (F)
|
|
49254
49254
|
try {
|
|
49255
|
-
const H = JSON.parse(
|
|
49255
|
+
const H = JSON.parse(F);
|
|
49256
49256
|
c(Array.isArray(H) ? H.slice(-50) : []);
|
|
49257
49257
|
} catch {
|
|
49258
49258
|
c([]);
|
|
49259
49259
|
}
|
|
49260
49260
|
}, []);
|
|
49261
|
-
const lt = (
|
|
49261
|
+
const lt = (F) => {
|
|
49262
49262
|
const H = h.split(" ");
|
|
49263
49263
|
if (H.length === 0) return;
|
|
49264
|
-
H[H.length - 1] =
|
|
49264
|
+
H[H.length - 1] = F;
|
|
49265
49265
|
const Y = H.join(" ");
|
|
49266
49266
|
d(Y), J(!1), $(-1), setTimeout(() => {
|
|
49267
49267
|
U.current && (U.current.selectionStart = Y.length, U.current.selectionEnd = Y.length, S(Y.length));
|
|
49268
49268
|
}, 0);
|
|
49269
|
-
}, pt = (
|
|
49270
|
-
if (!
|
|
49269
|
+
}, pt = (F) => {
|
|
49270
|
+
if (!F.trim()) return;
|
|
49271
49271
|
const H = {
|
|
49272
|
-
command:
|
|
49272
|
+
command: F,
|
|
49273
49273
|
timestamp: Date.now()
|
|
49274
49274
|
}, Y = [...g, H].slice(-100);
|
|
49275
49275
|
c(Y);
|
|
@@ -49277,191 +49277,191 @@ Npm: <a href="https://www.npmjs.com/package/candleview" target="_blank" rel="noo
|
|
|
49277
49277
|
localStorage.setItem("terminal_command_history", JSON.stringify(Y));
|
|
49278
49278
|
} catch {
|
|
49279
49279
|
}
|
|
49280
|
-
}, x = (
|
|
49281
|
-
A((H) => [...H, `$ ${
|
|
49282
|
-
}, O = (
|
|
49283
|
-
A((H) => [...H,
|
|
49280
|
+
}, x = (F) => {
|
|
49281
|
+
A((H) => [...H, `$ ${F}`]);
|
|
49282
|
+
}, O = (F) => {
|
|
49283
|
+
A((H) => [...H, F]);
|
|
49284
49284
|
};
|
|
49285
49285
|
gt(() => {
|
|
49286
|
-
const
|
|
49287
|
-
|
|
49286
|
+
const F = document.querySelector(".terminal-scrollbar");
|
|
49287
|
+
F && (F.scrollTop = F.scrollHeight);
|
|
49288
49288
|
}, [v]);
|
|
49289
|
-
const nt = (
|
|
49290
|
-
|
|
49289
|
+
const nt = (F) => {
|
|
49290
|
+
F.preventDefault();
|
|
49291
49291
|
const H = h.trim();
|
|
49292
49292
|
H && (x(H), e && e(H), wt(H), pt(H), d(""), p(-1), at([]), J(!1), $(-1), setTimeout(() => {
|
|
49293
49293
|
const Y = document.querySelector(".terminal-scrollbar");
|
|
49294
49294
|
Y && (Y.scrollTop = Y.scrollHeight);
|
|
49295
49295
|
}, 50), !r && _ && (U.current?.focus(), S(0)));
|
|
49296
|
-
}, ct = (
|
|
49297
|
-
const H =
|
|
49298
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49296
|
+
}, ct = (F) => {
|
|
49297
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49298
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49299
49299
|
const dt = {
|
|
49300
|
-
...
|
|
49300
|
+
...ye,
|
|
49301
49301
|
nonce: Date.now()
|
|
49302
49302
|
};
|
|
49303
49303
|
l.handleSelectedMainChartIndicator(dt);
|
|
49304
49304
|
}
|
|
49305
|
-
o?.current && !
|
|
49305
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.MA), O(
|
|
49306
49306
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Moving Average (MA) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}移动平均线(MA)指标`
|
|
49307
49307
|
);
|
|
49308
|
-
}, et = (
|
|
49309
|
-
const H =
|
|
49310
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49308
|
+
}, et = (F) => {
|
|
49309
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49310
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49311
49311
|
const dt = {
|
|
49312
|
-
...
|
|
49312
|
+
...Re,
|
|
49313
49313
|
nonce: Date.now()
|
|
49314
49314
|
};
|
|
49315
49315
|
l.handleSelectedMainChartIndicator(dt);
|
|
49316
49316
|
}
|
|
49317
|
-
o?.current && !
|
|
49317
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.EMA), O(
|
|
49318
49318
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Exponential Moving Average (EMA) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}指数移动平均线(EMA)指标`
|
|
49319
49319
|
);
|
|
49320
|
-
}, R = (
|
|
49321
|
-
const H =
|
|
49322
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49320
|
+
}, R = (F) => {
|
|
49321
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49322
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49323
49323
|
const dt = {
|
|
49324
|
-
...
|
|
49324
|
+
...Be,
|
|
49325
49325
|
nonce: Date.now()
|
|
49326
49326
|
};
|
|
49327
49327
|
l.handleSelectedMainChartIndicator(dt);
|
|
49328
49328
|
}
|
|
49329
|
-
o?.current && !
|
|
49329
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.BOLLINGER), O(
|
|
49330
49330
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Bollinger Bands indicator` : `[<span style="color: #52c41a">信息</span>] ${H}布林带(Bollinger)指标`
|
|
49331
49331
|
);
|
|
49332
|
-
}, V = (
|
|
49333
|
-
const H =
|
|
49334
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49332
|
+
}, V = (F) => {
|
|
49333
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49334
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49335
49335
|
const dt = {
|
|
49336
|
-
...
|
|
49336
|
+
...Ue,
|
|
49337
49337
|
nonce: Date.now()
|
|
49338
49338
|
};
|
|
49339
49339
|
l.handleSelectedMainChartIndicator(dt);
|
|
49340
49340
|
}
|
|
49341
|
-
o?.current && !
|
|
49341
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.ICHIMOKU), O(
|
|
49342
49342
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Ichimoku Cloud indicator` : `[<span style="color: #52c41a">信息</span>] ${H}一目均衡表(Ichimoku)指标`
|
|
49343
49343
|
);
|
|
49344
|
-
}, it = (
|
|
49345
|
-
const H =
|
|
49346
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49344
|
+
}, it = (F) => {
|
|
49345
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49346
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49347
49347
|
const dt = {
|
|
49348
|
-
...
|
|
49348
|
+
...Ie,
|
|
49349
49349
|
nonce: Date.now()
|
|
49350
49350
|
};
|
|
49351
49351
|
l.handleSelectedMainChartIndicator(dt);
|
|
49352
49352
|
}
|
|
49353
|
-
o?.current && !
|
|
49353
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.BOLLINGER), O(
|
|
49354
49354
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Donchian Channel indicator` : `[<span style="color: #52c41a">信息</span>] ${H}唐奇安通道(Donchian)指标`
|
|
49355
49355
|
);
|
|
49356
|
-
}, ht = (
|
|
49357
|
-
const H =
|
|
49358
|
-
if (l?.handleSelectedMainChartIndicator &&
|
|
49356
|
+
}, ht = (F) => {
|
|
49357
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49358
|
+
if (l?.handleSelectedMainChartIndicator && F) {
|
|
49359
49359
|
const dt = {
|
|
49360
|
-
...
|
|
49360
|
+
...Le,
|
|
49361
49361
|
nonce: Date.now()
|
|
49362
49362
|
};
|
|
49363
49363
|
l.handleSelectedMainChartIndicator(dt);
|
|
49364
49364
|
}
|
|
49365
|
-
o?.current && !
|
|
49365
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.ENVELOPE), O(
|
|
49366
49366
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Envelope indicator` : `[<span style="color: #52c41a">信息</span>] ${H}包络线(Envelope)指标`
|
|
49367
49367
|
);
|
|
49368
|
-
}, ft = (
|
|
49369
|
-
const H =
|
|
49368
|
+
}, ft = (F) => {
|
|
49369
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49370
49370
|
if (l?.handleSelectedMainChartIndicator) {
|
|
49371
49371
|
const dt = {
|
|
49372
|
-
|
|
49372
|
+
...He,
|
|
49373
49373
|
nonce: Date.now()
|
|
49374
49374
|
};
|
|
49375
49375
|
l.handleSelectedMainChartIndicator(dt);
|
|
49376
49376
|
}
|
|
49377
|
-
o?.current && !
|
|
49377
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.VWAP), O(
|
|
49378
49378
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Volume Weighted Average Price (VWAP) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}成交量加权平均价(VWAP)指标`
|
|
49379
49379
|
);
|
|
49380
|
-
}, kt = (
|
|
49381
|
-
const H =
|
|
49380
|
+
}, kt = (F) => {
|
|
49381
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49382
49382
|
if (l?.handleSelectedMainChartIndicator) {
|
|
49383
49383
|
const dt = {
|
|
49384
|
-
...
|
|
49384
|
+
...Ke,
|
|
49385
49385
|
nonce: Date.now()
|
|
49386
49386
|
};
|
|
49387
49387
|
l.handleSelectedMainChartIndicator(dt);
|
|
49388
49388
|
}
|
|
49389
|
-
o?.current && !
|
|
49389
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.HEATMAP), O(
|
|
49390
49390
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Heatmap indicator` : `[<span style="color: #52c41a">信息</span>] ${H}热力图(Heatmap)指标`
|
|
49391
49391
|
);
|
|
49392
|
-
}, xt = (
|
|
49393
|
-
const H =
|
|
49392
|
+
}, xt = (F) => {
|
|
49393
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49394
49394
|
if (l?.handleSelectedMainChartIndicator) {
|
|
49395
49395
|
const dt = {
|
|
49396
|
-
...
|
|
49396
|
+
...Oe,
|
|
49397
49397
|
nonce: Date.now()
|
|
49398
49398
|
};
|
|
49399
49399
|
l.handleSelectedMainChartIndicator(dt);
|
|
49400
49400
|
}
|
|
49401
|
-
o?.current && !
|
|
49401
|
+
o?.current && !F && o?.current.handleRemoveIndicator && o?.current.handleRemoveIndicator(D.MARKETPROFILE), O(
|
|
49402
49402
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Market Profile indicator` : `[<span style="color: #52c41a">信息</span>] ${H}市场概况(Market Profile)指标`
|
|
49403
49403
|
);
|
|
49404
|
-
}, _t = (
|
|
49405
|
-
const H =
|
|
49406
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49404
|
+
}, _t = (F) => {
|
|
49405
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49406
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.RSI), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.RSI), O(
|
|
49407
49407
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Relative Strength Index (RSI) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}相对强弱指数(RSI)指标`
|
|
49408
49408
|
);
|
|
49409
|
-
}, Ft = (
|
|
49410
|
-
const H =
|
|
49411
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49409
|
+
}, Ft = (F) => {
|
|
49410
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49411
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.MACD), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.MACD), O(
|
|
49412
49412
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Moving Average Convergence Divergence (MACD) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}指数平滑异同移动平均线(MACD)指标`
|
|
49413
49413
|
);
|
|
49414
|
-
}, Bt = (
|
|
49415
|
-
const H =
|
|
49416
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49414
|
+
}, Bt = (F) => {
|
|
49415
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49416
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.VOLUME), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.VOLUME), O(
|
|
49417
49417
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Volume indicator` : `[<span style="color: #52c41a">信息</span>] ${H}成交量(Volume)指标`
|
|
49418
49418
|
);
|
|
49419
|
-
}, Ut = (
|
|
49420
|
-
const H =
|
|
49421
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49419
|
+
}, Ut = (F) => {
|
|
49420
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49421
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.SAR), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.SAR), O(
|
|
49422
49422
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Parabolic SAR indicator` : `[<span style="color: #52c41a">信息</span>] ${H}抛物线转向(SAR)指标`
|
|
49423
49423
|
);
|
|
49424
|
-
}, It = (
|
|
49425
|
-
const H =
|
|
49426
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49424
|
+
}, It = (F) => {
|
|
49425
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49426
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.KDJ), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.KDJ), O(
|
|
49427
49427
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} KDJ indicator` : `[<span style="color: #52c41a">信息</span>] ${H}随机指标(KDJ)`
|
|
49428
49428
|
);
|
|
49429
|
-
}, Yt = (
|
|
49430
|
-
const H =
|
|
49431
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49429
|
+
}, Yt = (F) => {
|
|
49430
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49431
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.ATR), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.ATR), O(
|
|
49432
49432
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Average True Range (ATR) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}平均真实波幅(ATR)指标`
|
|
49433
49433
|
);
|
|
49434
|
-
}, q = (
|
|
49435
|
-
const H =
|
|
49436
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49434
|
+
}, q = (F) => {
|
|
49435
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49436
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.STOCHASTIC), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.STOCHASTIC), O(
|
|
49437
49437
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Stochastic Oscillator indicator` : `[<span style="color: #52c41a">信息</span>] ${H}随机震荡指标(Stochastic)`
|
|
49438
49438
|
);
|
|
49439
|
-
}, L = (
|
|
49440
|
-
const H =
|
|
49441
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49439
|
+
}, L = (F) => {
|
|
49440
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49441
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.CCI), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.CCI), O(
|
|
49442
49442
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Commodity Channel Index (CCI) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}商品通道指数(CCI)指标`
|
|
49443
49443
|
);
|
|
49444
|
-
}, z = (
|
|
49445
|
-
const H =
|
|
49446
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49444
|
+
}, z = (F) => {
|
|
49445
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49446
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.BBWIDTH), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.BBWIDTH), O(
|
|
49447
49447
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Bollinger Bands Width (BBWIDTH) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}布林带宽度(BBWIDTH)指标`
|
|
49448
49448
|
);
|
|
49449
|
-
}, Z = (
|
|
49450
|
-
const H =
|
|
49451
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49449
|
+
}, Z = (F) => {
|
|
49450
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49451
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.ADX), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.ADX), O(
|
|
49452
49452
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} Average Directional Index (ADX) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}平均趋向指数(ADX)指标`
|
|
49453
49453
|
);
|
|
49454
|
-
}, vt = (
|
|
49455
|
-
const H =
|
|
49456
|
-
l?.handleExternalSelectedSubChartIndicator &&
|
|
49454
|
+
}, vt = (F) => {
|
|
49455
|
+
const H = F ? "开启" : "关闭", Y = F ? "Opening" : "Closing";
|
|
49456
|
+
l?.handleExternalSelectedSubChartIndicator && F && l.handleExternalSelectedSubChartIndicator(N.OBV), l?.handleRemoveSubChartIndicator && !F && l.handleRemoveSubChartIndicator(N.OBV), O(
|
|
49457
49457
|
I ? `[<span style="color: #52c41a">INFO</span>] ${Y} On Balance Volume (OBV) indicator` : `[<span style="color: #52c41a">信息</span>] ${H}能量潮(OBV)指标`
|
|
49458
49458
|
);
|
|
49459
|
-
}, wt = (
|
|
49460
|
-
const H =
|
|
49459
|
+
}, wt = (F) => {
|
|
49460
|
+
const H = F.toLowerCase().trim();
|
|
49461
49461
|
if (H.startsWith("open ") || H.startsWith("close ")) {
|
|
49462
|
-
const [Y, ...dt] = H.split(" "), Pt = dt.join(" ").toUpperCase(), Ot = Object.values(
|
|
49463
|
-
if (!Ot && !
|
|
49464
|
-
const $t = Object.values(
|
|
49462
|
+
const [Y, ...dt] = H.split(" "), Pt = dt.join(" ").toUpperCase(), Ot = Object.values(D).includes(Pt), je = Object.values(N).includes(Pt);
|
|
49463
|
+
if (!Ot && !je) {
|
|
49464
|
+
const $t = Object.values(D).map((Vt) => Vt.toLowerCase().replace(/_/g, " ")).join(", "), Rt = Object.values(N).map((Vt) => Vt.toLowerCase().replace(/_/g, " ")).join(", ");
|
|
49465
49465
|
O(
|
|
49466
49466
|
I ? `[<span style="color: #c41a1aff">ERROR</span>] Invalid indicator: "${Pt}".
|
|
49467
49467
|
Main chart indicators: ${$t}
|
|
@@ -49474,31 +49474,31 @@ Sub chart indicators: ${Rt}` : `[<span style="color: #c41a1aff">错误</span>]
|
|
|
49474
49474
|
const mt = Y === "open";
|
|
49475
49475
|
if (Ot)
|
|
49476
49476
|
switch (Pt) {
|
|
49477
|
-
case
|
|
49477
|
+
case D.MA:
|
|
49478
49478
|
ct(mt);
|
|
49479
49479
|
break;
|
|
49480
|
-
case
|
|
49480
|
+
case D.EMA:
|
|
49481
49481
|
et(mt);
|
|
49482
49482
|
break;
|
|
49483
|
-
case
|
|
49483
|
+
case D.BOLLINGER:
|
|
49484
49484
|
R(mt);
|
|
49485
49485
|
break;
|
|
49486
|
-
case
|
|
49486
|
+
case D.ICHIMOKU:
|
|
49487
49487
|
V(mt);
|
|
49488
49488
|
break;
|
|
49489
|
-
case
|
|
49489
|
+
case D.DONCHIAN:
|
|
49490
49490
|
it(mt);
|
|
49491
49491
|
break;
|
|
49492
|
-
case
|
|
49492
|
+
case D.ENVELOPE:
|
|
49493
49493
|
ht(mt);
|
|
49494
49494
|
break;
|
|
49495
|
-
case
|
|
49495
|
+
case D.VWAP:
|
|
49496
49496
|
ft(mt);
|
|
49497
49497
|
break;
|
|
49498
|
-
case
|
|
49498
|
+
case D.HEATMAP:
|
|
49499
49499
|
kt(mt);
|
|
49500
49500
|
break;
|
|
49501
|
-
case
|
|
49501
|
+
case D.MARKETPROFILE:
|
|
49502
49502
|
xt(mt);
|
|
49503
49503
|
break;
|
|
49504
49504
|
default:
|
|
@@ -49508,7 +49508,7 @@ Sub chart indicators: ${Rt}` : `[<span style="color: #c41a1aff">错误</span>]
|
|
|
49508
49508
|
);
|
|
49509
49509
|
break;
|
|
49510
49510
|
}
|
|
49511
|
-
else if (
|
|
49511
|
+
else if (je)
|
|
49512
49512
|
switch (Pt) {
|
|
49513
49513
|
case N.RSI:
|
|
49514
49514
|
_t(mt);
|
|
@@ -49557,7 +49557,7 @@ Sub chart indicators: ${Rt}` : `[<span style="color: #c41a1aff">错误</span>]
|
|
|
49557
49557
|
A([]), O(I ? "Terminal cleared." : "终端已清空。");
|
|
49558
49558
|
}, 50);
|
|
49559
49559
|
else if (H === "help") {
|
|
49560
|
-
const Y = Object.values(
|
|
49560
|
+
const Y = Object.values(D).map((Pt) => Pt.toLowerCase().replace(/_/g, " ")).join(", "), dt = Object.values(N).map((Pt) => Pt.toLowerCase().replace(/_/g, " ")).join(", ");
|
|
49561
49561
|
O(
|
|
49562
49562
|
I ? `Available commands:
|
|
49563
49563
|
clear/cls - Clear terminal
|
|
@@ -49580,7 +49580,7 @@ Sub chart indicators: ${Rt}` : `[<span style="color: #c41a1aff">错误</span>]
|
|
|
49580
49580
|
可用副图指标: ${dt}`
|
|
49581
49581
|
);
|
|
49582
49582
|
} else if (H.startsWith("theme ")) {
|
|
49583
|
-
const Y =
|
|
49583
|
+
const Y = F.split(" ")[1];
|
|
49584
49584
|
Y === "dark" || Y === "light" ? (l.setState({
|
|
49585
49585
|
currentTheme: l.getThemeConfig(Y)
|
|
49586
49586
|
}), l.handleThemeToggle(), O(
|
|
@@ -49598,17 +49598,17 @@ ${Y}`
|
|
|
49598
49598
|
);
|
|
49599
49599
|
} else
|
|
49600
49600
|
O(
|
|
49601
|
-
I ? `Command executed: ${
|
|
49601
|
+
I ? `Command executed: ${F}` : `命令已执行: ${F}`
|
|
49602
49602
|
);
|
|
49603
|
-
}, yt = (
|
|
49603
|
+
}, yt = (F) => {
|
|
49604
49604
|
if (!r)
|
|
49605
|
-
switch (
|
|
49605
|
+
switch (F.key) {
|
|
49606
49606
|
case "ArrowLeft":
|
|
49607
49607
|
case "ArrowRight":
|
|
49608
|
-
|
|
49608
|
+
F.stopPropagation();
|
|
49609
49609
|
break;
|
|
49610
49610
|
case "ArrowUp":
|
|
49611
|
-
if (
|
|
49611
|
+
if (F.preventDefault(), F.stopPropagation(), K && tt.length > 0) {
|
|
49612
49612
|
const H = G > 0 ? G - 1 : tt.length - 1;
|
|
49613
49613
|
$(H);
|
|
49614
49614
|
} else if (g.length > 0) {
|
|
@@ -49619,7 +49619,7 @@ ${Y}`
|
|
|
49619
49619
|
}
|
|
49620
49620
|
break;
|
|
49621
49621
|
case "ArrowDown":
|
|
49622
|
-
if (
|
|
49622
|
+
if (F.preventDefault(), F.stopPropagation(), K && tt.length > 0) {
|
|
49623
49623
|
const H = G < tt.length - 1 ? G + 1 : 0;
|
|
49624
49624
|
$(H);
|
|
49625
49625
|
} else if (u > 0) {
|
|
@@ -49628,24 +49628,24 @@ ${Y}`
|
|
|
49628
49628
|
} else u === 0 && (p(-1), d(""));
|
|
49629
49629
|
break;
|
|
49630
49630
|
case "Tab":
|
|
49631
|
-
if (
|
|
49631
|
+
if (F.preventDefault(), F.stopPropagation(), K && tt.length > 0) {
|
|
49632
49632
|
const H = G >= 0 ? G : 0;
|
|
49633
49633
|
lt(tt[H]);
|
|
49634
49634
|
}
|
|
49635
49635
|
break;
|
|
49636
49636
|
case "Enter":
|
|
49637
|
-
K && G >= 0 && (
|
|
49637
|
+
K && G >= 0 && (F.preventDefault(), F.stopPropagation(), lt(tt[G]));
|
|
49638
49638
|
break;
|
|
49639
49639
|
case "Escape":
|
|
49640
|
-
|
|
49640
|
+
F.preventDefault(), F.stopPropagation(), d(""), p(-1), J(!1);
|
|
49641
49641
|
break;
|
|
49642
49642
|
case "l":
|
|
49643
49643
|
case "L":
|
|
49644
|
-
|
|
49644
|
+
F.ctrlKey && (F.preventDefault(), F.stopPropagation(), d(""), p(-1));
|
|
49645
49645
|
break;
|
|
49646
49646
|
case "c":
|
|
49647
49647
|
case "C":
|
|
49648
|
-
|
|
49648
|
+
F.ctrlKey && (F.preventDefault(), F.stopPropagation(), d(""), p(-1), e && e("^C"));
|
|
49649
49649
|
break;
|
|
49650
49650
|
default:
|
|
49651
49651
|
setTimeout(() => {
|
|
@@ -49746,7 +49746,7 @@ ${Y}`
|
|
|
49746
49746
|
WebkitUserSelect: "text",
|
|
49747
49747
|
MozUserSelect: "text",
|
|
49748
49748
|
msUserSelect: "text"
|
|
49749
|
-
}, className: "terminal-scrollbar", children: v.map((
|
|
49749
|
+
}, className: "terminal-scrollbar", children: v.map((F, H) => /* @__PURE__ */ m.jsx(
|
|
49750
49750
|
"div",
|
|
49751
49751
|
{
|
|
49752
49752
|
style: {
|
|
@@ -49766,7 +49766,7 @@ ${Y}`
|
|
|
49766
49766
|
onMouseDown: (Y) => {
|
|
49767
49767
|
Y.target.tagName === "A" && Y.stopPropagation();
|
|
49768
49768
|
},
|
|
49769
|
-
dangerouslySetInnerHTML: { __html:
|
|
49769
|
+
dangerouslySetInnerHTML: { __html: F }
|
|
49770
49770
|
},
|
|
49771
49771
|
H
|
|
49772
49772
|
)) }),
|
|
@@ -49791,10 +49791,10 @@ ${Y}`
|
|
|
49791
49791
|
overflowY: "auto",
|
|
49792
49792
|
margin: "0 12px"
|
|
49793
49793
|
},
|
|
49794
|
-
children: tt.map((
|
|
49794
|
+
children: tt.map((F, H) => /* @__PURE__ */ m.jsx(
|
|
49795
49795
|
"div",
|
|
49796
49796
|
{
|
|
49797
|
-
onClick: () => lt(
|
|
49797
|
+
onClick: () => lt(F),
|
|
49798
49798
|
onMouseEnter: () => $(H),
|
|
49799
49799
|
style: {
|
|
49800
49800
|
padding: "8px 12px",
|
|
@@ -49806,7 +49806,7 @@ ${Y}`
|
|
|
49806
49806
|
borderBottom: H < tt.length - 1 ? `1px solid ${f.toolbar.border}` : "none",
|
|
49807
49807
|
transition: "background-color 0.2s"
|
|
49808
49808
|
},
|
|
49809
|
-
children:
|
|
49809
|
+
children: F
|
|
49810
49810
|
},
|
|
49811
49811
|
H
|
|
49812
49812
|
))
|
|
@@ -49869,8 +49869,8 @@ ${Y}`
|
|
|
49869
49869
|
ref: U,
|
|
49870
49870
|
type: "text",
|
|
49871
49871
|
value: h,
|
|
49872
|
-
onChange: (
|
|
49873
|
-
d(
|
|
49872
|
+
onChange: (F) => {
|
|
49873
|
+
d(F.target.value), p(-1), S(F.target.selectionStart || 0);
|
|
49874
49874
|
},
|
|
49875
49875
|
onKeyDown: yt,
|
|
49876
49876
|
onFocus: () => k(!0),
|
|
@@ -50402,9 +50402,9 @@ ${Y}`
|
|
|
50402
50402
|
{
|
|
50403
50403
|
title: f.leftPanel.penTools,
|
|
50404
50404
|
tools: [
|
|
50405
|
-
{ id: "pencil", name: f.leftPanel.pencil, description: f.leftPanel.pencilDesc, icon:
|
|
50405
|
+
{ id: "pencil", name: f.leftPanel.pencil, description: f.leftPanel.pencilDesc, icon: Ji },
|
|
50406
50406
|
{ id: "pen", name: f.leftPanel.pen, description: f.leftPanel.penDesc, icon: qn },
|
|
50407
|
-
{ id: "brush", name: f.leftPanel.brush, description: f.leftPanel.brushDesc, icon:
|
|
50407
|
+
{ id: "brush", name: f.leftPanel.brush, description: f.leftPanel.brushDesc, icon: Zi },
|
|
50408
50408
|
{ id: "marker-pen", name: f.leftPanel.markerPen, description: f.leftPanel.markerPenDesc, icon: zn },
|
|
50409
50409
|
{ id: "eraser", name: f.leftPanel.eraser, description: f.leftPanel.eraserDesc, icon: Qn }
|
|
50410
50410
|
]
|
|
@@ -50457,7 +50457,7 @@ ${Y}`
|
|
|
50457
50457
|
title: f.leftPanel.fibonacciTools,
|
|
50458
50458
|
tools: [
|
|
50459
50459
|
{ id: "fibonacci-time-zoon", name: f.leftPanel.fibonacciTimeZones, description: f.leftPanel.fibonacciTimeZonesDesc, icon: Aa },
|
|
50460
|
-
{ id: "fibonacci-retracement", name: f.leftPanel.fibonacciRetracement, description: f.leftPanel.fibonacciRetracementDesc, icon:
|
|
50460
|
+
{ id: "fibonacci-retracement", name: f.leftPanel.fibonacciRetracement, description: f.leftPanel.fibonacciRetracementDesc, icon: $i },
|
|
50461
50461
|
{ id: "fibonacci-arc", name: f.leftPanel.fibonacciArc, description: f.leftPanel.fibonacciArcDesc, icon: Da },
|
|
50462
50462
|
{ id: "fibonacci-circle", name: f.leftPanel.fibonacciCircle, description: f.leftPanel.fibonacciCircleDesc, icon: Ua },
|
|
50463
50463
|
{ id: "fibonacci-spiral", name: f.leftPanel.fibonacciSpiral, description: f.leftPanel.fibonacciSpiralDesc, icon: Ea },
|
|
@@ -50603,7 +50603,7 @@ ${Y}`
|
|
|
50603
50603
|
}
|
|
50604
50604
|
]
|
|
50605
50605
|
});
|
|
50606
|
-
class
|
|
50606
|
+
class Wi {
|
|
50607
50607
|
constructor() {
|
|
50608
50608
|
this.handleDrawingToolSelect = (t, e) => {
|
|
50609
50609
|
t.setState({
|
|
@@ -50621,7 +50621,7 @@ class Ri {
|
|
|
50621
50621
|
}
|
|
50622
50622
|
class Dl extends rt.Component {
|
|
50623
50623
|
constructor(t) {
|
|
50624
|
-
super(t), this.scriptModalRef = rt.createRef(), this.drawingModalRef = rt.createRef(), this.emojiPickerRef = rt.createRef(), this.cursorModalRef = rt.createRef(), this.brushModalRef = rt.createRef(), this.rulerModalRef = rt.createRef(), this.fibonacciModalRef = rt.createRef(), this.gannModalRef = rt.createRef(), this.projectInfoModalRef = rt.createRef(), this.irregularShapeModalRef = rt.createRef(), this.aiModalRef = rt.createRef(), this.toolManager = new
|
|
50624
|
+
super(t), this.scriptModalRef = rt.createRef(), this.drawingModalRef = rt.createRef(), this.emojiPickerRef = rt.createRef(), this.cursorModalRef = rt.createRef(), this.brushModalRef = rt.createRef(), this.rulerModalRef = rt.createRef(), this.fibonacciModalRef = rt.createRef(), this.gannModalRef = rt.createRef(), this.projectInfoModalRef = rt.createRef(), this.irregularShapeModalRef = rt.createRef(), this.aiModalRef = rt.createRef(), this.toolManager = new Wi(), this.functionPopUpWidth = "200px", this.emojiSelectPopUpWidth = "315px", this.containerRef = rt.createRef(), this.scrollContainerRef = rt.createRef(), this.checkScrollPosition = () => {
|
|
50625
50625
|
const e = this.scrollContainerRef.current;
|
|
50626
50626
|
if (e) {
|
|
50627
50627
|
const { scrollTop: i, scrollHeight: r, clientHeight: a } = e;
|
|
@@ -52093,7 +52093,7 @@ class Dl extends rt.Component {
|
|
|
52093
52093
|
const { lastSelectedTools: e } = this.state, { irregularShapeTools: i, gannAndFibonacciTools: r, projectInfoTools: a } = this.getToolConfig(), s = this.findToolInGroups(r, e.fibonacci), n = this.findToolInGroups(a, e.projectInfo), o = this.findToolInGroups(i, e.irregularShape), l = [
|
|
52094
52094
|
{
|
|
52095
52095
|
id: "fibonacci",
|
|
52096
|
-
icon: s?.icon ||
|
|
52096
|
+
icon: s?.icon || $i,
|
|
52097
52097
|
className: "fibonacci-button",
|
|
52098
52098
|
onMainClick: () => this.handleToolAction("activate-tool", "fibonacci"),
|
|
52099
52099
|
onArrowClick: () => this.handleToolAction("toggle-fibonacci")
|
|
@@ -52107,7 +52107,7 @@ class Dl extends rt.Component {
|
|
|
52107
52107
|
},
|
|
52108
52108
|
{
|
|
52109
52109
|
id: "irregular-shape",
|
|
52110
|
-
icon: o?.icon ||
|
|
52110
|
+
icon: o?.icon || Ji,
|
|
52111
52111
|
className: "irregular-shape-button",
|
|
52112
52112
|
onMainClick: () => this.handleToolAction("activate-tool", "irregularShape"),
|
|
52113
52113
|
onArrowClick: () => this.handleToolAction("toggle-irregular-shape")
|
|
@@ -52145,7 +52145,7 @@ class Dl extends rt.Component {
|
|
|
52145
52145
|
const { lastSelectedTools: e } = this.state, { penTools: i, textTools: r } = this.getToolConfig(), a = this.findToolInGroups(i, e.brush), s = this.findToolInGroups(r, e.textTool), n = [
|
|
52146
52146
|
{
|
|
52147
52147
|
id: "brush",
|
|
52148
|
-
icon: a?.icon ||
|
|
52148
|
+
icon: a?.icon || Zi,
|
|
52149
52149
|
className: "brush-button",
|
|
52150
52150
|
hasArrow: !0,
|
|
52151
52151
|
onMainClick: () => this.handleToolAction("activate-tool", "brush"),
|
|
@@ -52308,7 +52308,7 @@ class Dl extends rt.Component {
|
|
|
52308
52308
|
showTop: !1,
|
|
52309
52309
|
showBottom: !1
|
|
52310
52310
|
}
|
|
52311
|
-
}, this.toolManager = new
|
|
52311
|
+
}, this.toolManager = new Wi();
|
|
52312
52312
|
}
|
|
52313
52313
|
componentDidMount() {
|
|
52314
52314
|
document.addEventListener("mousedown", (t) => this.handleClickOutside(t), !0), document.addEventListener("touchstart", this.handleClickOutside, !0), this.updateContainerHeight(), window.addEventListener("resize", this.updateContainerHeight), this.checkScrollPosition();
|
|
@@ -52622,16 +52622,16 @@ class St extends rt.Component {
|
|
|
52622
52622
|
}
|
|
52623
52623
|
}
|
|
52624
52624
|
const sr = (f) => [
|
|
52625
|
-
{ id: "ma", name: f.mainIndicators.ma, type:
|
|
52626
|
-
{ id: "ema", name: f.mainIndicators.ema, type:
|
|
52627
|
-
{ id: "bollinger", name: f.mainIndicators.bollinger, type:
|
|
52628
|
-
{ id: "ichimoku", name: f.mainIndicators.ichimoku, type:
|
|
52629
|
-
{ id: "donchian", name: f.mainIndicators.donchian, type:
|
|
52630
|
-
{ id: "envelope", name: f.mainIndicators.envelope, type:
|
|
52631
|
-
{ id: "vwap", name: f.mainIndicators.vwap, type:
|
|
52625
|
+
{ id: "ma", name: f.mainIndicators.ma, type: D.MA },
|
|
52626
|
+
{ id: "ema", name: f.mainIndicators.ema, type: D.EMA },
|
|
52627
|
+
{ id: "bollinger", name: f.mainIndicators.bollinger, type: D.BOLLINGER },
|
|
52628
|
+
{ id: "ichimoku", name: f.mainIndicators.ichimoku, type: D.ICHIMOKU },
|
|
52629
|
+
{ id: "donchian", name: f.mainIndicators.donchian, type: D.DONCHIAN },
|
|
52630
|
+
{ id: "envelope", name: f.mainIndicators.envelope, type: D.ENVELOPE },
|
|
52631
|
+
{ id: "vwap", name: f.mainIndicators.vwap, type: D.VWAP }
|
|
52632
52632
|
], ar = (f) => [
|
|
52633
|
-
{ id: "heatmap", name: f.mainChartMaps.heatmap, type:
|
|
52634
|
-
{ id: "market-profile", name: f.mainChartMaps.marketProfile, type:
|
|
52633
|
+
{ id: "heatmap", name: f.mainChartMaps.heatmap, type: D.HEATMAP },
|
|
52634
|
+
{ id: "market-profile", name: f.mainChartMaps.marketProfile, type: D.MARKETPROFILE }
|
|
52635
52635
|
], Fl = (f) => [
|
|
52636
52636
|
{ id: "rsi", name: f.subChartIndicatorName.rsi, type: N.RSI },
|
|
52637
52637
|
{ id: "macd", name: f.subChartIndicatorName.macd, type: N.MACD },
|
|
@@ -52715,57 +52715,57 @@ function yl(f, t) {
|
|
|
52715
52715
|
a || (a = r.find((n) => n.id === t));
|
|
52716
52716
|
let s;
|
|
52717
52717
|
switch (a?.type) {
|
|
52718
|
-
case
|
|
52718
|
+
case D.MA:
|
|
52719
52719
|
s = {
|
|
52720
|
-
...
|
|
52720
|
+
...ye,
|
|
52721
52721
|
nonce: Date.now()
|
|
52722
52722
|
};
|
|
52723
52723
|
break;
|
|
52724
|
-
case
|
|
52724
|
+
case D.EMA:
|
|
52725
52725
|
s = {
|
|
52726
|
-
...
|
|
52726
|
+
...Re,
|
|
52727
52727
|
nonce: Date.now()
|
|
52728
52728
|
};
|
|
52729
52729
|
break;
|
|
52730
|
-
case
|
|
52730
|
+
case D.BOLLINGER:
|
|
52731
52731
|
s = {
|
|
52732
|
-
...
|
|
52732
|
+
...Be,
|
|
52733
52733
|
nonce: Date.now()
|
|
52734
52734
|
};
|
|
52735
52735
|
break;
|
|
52736
|
-
case
|
|
52736
|
+
case D.ICHIMOKU:
|
|
52737
52737
|
s = {
|
|
52738
|
-
...
|
|
52738
|
+
...Ue,
|
|
52739
52739
|
nonce: Date.now()
|
|
52740
52740
|
};
|
|
52741
52741
|
break;
|
|
52742
|
-
case
|
|
52742
|
+
case D.DONCHIAN:
|
|
52743
52743
|
s = {
|
|
52744
|
-
...
|
|
52744
|
+
...Ie,
|
|
52745
52745
|
nonce: Date.now()
|
|
52746
52746
|
};
|
|
52747
52747
|
break;
|
|
52748
|
-
case
|
|
52748
|
+
case D.ENVELOPE:
|
|
52749
52749
|
s = {
|
|
52750
|
-
...
|
|
52750
|
+
...Le,
|
|
52751
52751
|
nonce: Date.now()
|
|
52752
52752
|
};
|
|
52753
52753
|
break;
|
|
52754
|
-
case
|
|
52754
|
+
case D.VWAP:
|
|
52755
52755
|
s = {
|
|
52756
|
-
|
|
52756
|
+
...He,
|
|
52757
52757
|
nonce: Date.now()
|
|
52758
52758
|
};
|
|
52759
52759
|
break;
|
|
52760
|
-
case
|
|
52760
|
+
case D.HEATMAP:
|
|
52761
52761
|
s = {
|
|
52762
|
-
...
|
|
52762
|
+
...Ke,
|
|
52763
52763
|
nonce: Date.now()
|
|
52764
52764
|
};
|
|
52765
52765
|
break;
|
|
52766
|
-
case
|
|
52766
|
+
case D.MARKETPROFILE:
|
|
52767
52767
|
s = {
|
|
52768
|
-
...
|
|
52768
|
+
...Oe,
|
|
52769
52769
|
nonce: Date.now()
|
|
52770
52770
|
};
|
|
52771
52771
|
break;
|
|
@@ -53085,7 +53085,7 @@ class Bl extends rt.Component {
|
|
|
53085
53085
|
width: "20px",
|
|
53086
53086
|
height: "20px",
|
|
53087
53087
|
flexShrink: 0
|
|
53088
|
-
}, children:
|
|
53088
|
+
}, children: Ri(
|
|
53089
53089
|
c.type,
|
|
53090
53090
|
{
|
|
53091
53091
|
size: 30
|
|
@@ -54339,7 +54339,7 @@ class Bl extends rt.Component {
|
|
|
54339
54339
|
onMouseLeave: (C) => {
|
|
54340
54340
|
n || (C.currentTarget.style.background = "transparent");
|
|
54341
54341
|
},
|
|
54342
|
-
children:
|
|
54342
|
+
children: Ri(i, {
|
|
54343
54343
|
size: 17
|
|
54344
54344
|
})
|
|
54345
54345
|
}
|
|
@@ -55356,7 +55356,7 @@ const Ol = ({
|
|
|
55356
55356
|
marginTop: "8px",
|
|
55357
55357
|
textAlign: "center"
|
|
55358
55358
|
}, children: [
|
|
55359
|
-
o ? t === ot ? `Powered by ${
|
|
55359
|
+
o ? t === ot ? `Powered by ${ji[o]}` : `由 ${ji[o]} 提供支持` : null,
|
|
55360
55360
|
k && ` - ${k}`
|
|
55361
55361
|
] })
|
|
55362
55362
|
] }),
|
|
@@ -55650,7 +55650,7 @@ const Wl = ({
|
|
|
55650
55650
|
transition: "all 0.2s"
|
|
55651
55651
|
},
|
|
55652
55652
|
children: [
|
|
55653
|
-
/* @__PURE__ */ m.jsx(
|
|
55653
|
+
/* @__PURE__ */ m.jsx(Bi, { size: 14 }),
|
|
55654
55654
|
c ? t === ot ? "Running..." : "运行中..." : t === ot ? "Run" : "运行"
|
|
55655
55655
|
]
|
|
55656
55656
|
}
|
|
@@ -55681,7 +55681,7 @@ const Wl = ({
|
|
|
55681
55681
|
l.trim() && !c && (x.currentTarget.style.opacity = "1", x.currentTarget.style.transform = "translateY(0)");
|
|
55682
55682
|
},
|
|
55683
55683
|
children: [
|
|
55684
|
-
/* @__PURE__ */ m.jsx(
|
|
55684
|
+
/* @__PURE__ */ m.jsx(Bi, { size: 14 }),
|
|
55685
55685
|
c ? t === ot ? "Running..." : "运行中..." : t === ot ? "Run" : "运行"
|
|
55686
55686
|
]
|
|
55687
55687
|
}
|
|
@@ -56067,7 +56067,90 @@ console.log("结果:", x);
|
|
|
56067
56067
|
};
|
|
56068
56068
|
class ql extends rt.Component {
|
|
56069
56069
|
constructor(t) {
|
|
56070
|
-
super(t), this.candleViewRef = rt.createRef(), this.chartRef = rt.createRef(), this.chartContainerRef = rt.createRef(), this.chartLayerRef = rt.createRef(), this.chart = null, this.resizeObserver = null, this.realTimeInterval = null, this.currentSeries = null, this.chartManager = null, this.updateTimeout = null, this.viewportManager = null, this.chartEventManager = null, this.aiPanelResizeRef = rt.createRef(), this.isDragging = !1, this.startX = 0, this.startChartWidth = 0, this.containerWidth = 0, this.terminalResizeRef = rt.createRef(), this.isDraggingTerminal = !1, this.startY = 0, this.startTerminalHeightRatio = 0, this.aiMobilePanelResizeRef = rt.createRef(), this.isDraggingAiMobilePanel = !1, this.startAiMobileY = 0, this.startAiMobileHeightRatio = 0, this.preparedData = [], this.originalData = [], this.aiManager = null, this.
|
|
56070
|
+
super(t), this.candleViewRef = rt.createRef(), this.chartRef = rt.createRef(), this.chartContainerRef = rt.createRef(), this.chartLayerRef = rt.createRef(), this.chart = null, this.resizeObserver = null, this.realTimeInterval = null, this.currentSeries = null, this.chartManager = null, this.updateTimeout = null, this.viewportManager = null, this.chartEventManager = null, this.aiPanelResizeRef = rt.createRef(), this.isDragging = !1, this.startX = 0, this.startChartWidth = 0, this.containerWidth = 0, this.terminalResizeRef = rt.createRef(), this.isDraggingTerminal = !1, this.startY = 0, this.startTerminalHeightRatio = 0, this.aiMobilePanelResizeRef = rt.createRef(), this.isDraggingAiMobilePanel = !1, this.startAiMobileY = 0, this.startAiMobileHeightRatio = 0, this.preparedData = [], this.originalData = [], this.aiManager = null, this.initializeMainChartIndicators = (s) => {
|
|
56071
|
+
this.setState({
|
|
56072
|
+
selectedMainChartIndicator: null
|
|
56073
|
+
}), this.chartLayerRef.current && Object.values(D).forEach((n) => {
|
|
56074
|
+
this.chartLayerRef.current?.handleRemoveIndicator && this.chartLayerRef.current.handleRemoveIndicator(n);
|
|
56075
|
+
}), s.forEach((n) => {
|
|
56076
|
+
const o = n.toUpperCase();
|
|
56077
|
+
if (Object.values(D).includes(o)) {
|
|
56078
|
+
let l = null;
|
|
56079
|
+
switch (o) {
|
|
56080
|
+
case D.MA:
|
|
56081
|
+
l = {
|
|
56082
|
+
...ye,
|
|
56083
|
+
nonce: Date.now()
|
|
56084
|
+
};
|
|
56085
|
+
break;
|
|
56086
|
+
case D.EMA:
|
|
56087
|
+
l = {
|
|
56088
|
+
...Re,
|
|
56089
|
+
nonce: Date.now()
|
|
56090
|
+
};
|
|
56091
|
+
break;
|
|
56092
|
+
case D.BOLLINGER:
|
|
56093
|
+
l = {
|
|
56094
|
+
...Be,
|
|
56095
|
+
nonce: Date.now()
|
|
56096
|
+
};
|
|
56097
|
+
break;
|
|
56098
|
+
case D.ICHIMOKU:
|
|
56099
|
+
l = {
|
|
56100
|
+
...Ue,
|
|
56101
|
+
nonce: Date.now()
|
|
56102
|
+
};
|
|
56103
|
+
break;
|
|
56104
|
+
case D.DONCHIAN:
|
|
56105
|
+
l = {
|
|
56106
|
+
...Ie,
|
|
56107
|
+
nonce: Date.now()
|
|
56108
|
+
};
|
|
56109
|
+
break;
|
|
56110
|
+
case D.ENVELOPE:
|
|
56111
|
+
l = {
|
|
56112
|
+
...Le,
|
|
56113
|
+
nonce: Date.now()
|
|
56114
|
+
};
|
|
56115
|
+
break;
|
|
56116
|
+
case D.VWAP:
|
|
56117
|
+
l = {
|
|
56118
|
+
...He,
|
|
56119
|
+
nonce: Date.now()
|
|
56120
|
+
};
|
|
56121
|
+
break;
|
|
56122
|
+
case D.HEATMAP:
|
|
56123
|
+
l = {
|
|
56124
|
+
...Ke,
|
|
56125
|
+
nonce: Date.now()
|
|
56126
|
+
};
|
|
56127
|
+
break;
|
|
56128
|
+
case D.MARKETPROFILE:
|
|
56129
|
+
l = {
|
|
56130
|
+
...Oe,
|
|
56131
|
+
nonce: Date.now()
|
|
56132
|
+
};
|
|
56133
|
+
break;
|
|
56134
|
+
}
|
|
56135
|
+
l && (this.setState({
|
|
56136
|
+
selectedMainChartIndicator: l
|
|
56137
|
+
}), this.chart && this.currentSeries && this.chartLayerRef.current && this.chartLayerRef.current.handleMainChartIndicatorChange && this.chartLayerRef.current.handleMainChartIndicatorChange(l));
|
|
56138
|
+
}
|
|
56139
|
+
});
|
|
56140
|
+
}, this.initializeSubChartIndicators = (s) => {
|
|
56141
|
+
this.setState({
|
|
56142
|
+
selectedSubChartIndicators: []
|
|
56143
|
+
}), this.chartLayerRef.current && this.state.selectedSubChartIndicators.forEach((o) => {
|
|
56144
|
+
this.chartLayerRef.current?.handleRemoveSubChartIndicator && this.chartLayerRef.current.handleRemoveSubChartIndicator(o);
|
|
56145
|
+
});
|
|
56146
|
+
const n = [];
|
|
56147
|
+
s.forEach((o) => {
|
|
56148
|
+
const l = o.toUpperCase();
|
|
56149
|
+
Object.values(N).includes(l) && (n.push(l), this.chartLayerRef.current && this.handleExternalSelectedSubChartIndicator(l));
|
|
56150
|
+
}), this.setState({
|
|
56151
|
+
selectedSubChartIndicators: n
|
|
56152
|
+
});
|
|
56153
|
+
}, this.handleAiMobileMouseMove = (s) => {
|
|
56071
56154
|
if (!this.isDraggingAiMobilePanel) return;
|
|
56072
56155
|
const n = this.candleViewRef.current;
|
|
56073
56156
|
if (!n) return;
|
|
@@ -56578,13 +56661,17 @@ class ql extends rt.Component {
|
|
|
56578
56661
|
currentScriptType: Nt.None,
|
|
56579
56662
|
currentScriptMarkId: "",
|
|
56580
56663
|
isIncrement: !1
|
|
56581
|
-
}, this.chartEventManager = new
|
|
56664
|
+
}, this.chartEventManager = new Gi(), this.aiManager = new bl();
|
|
56582
56665
|
}
|
|
56583
56666
|
// ======================================== life cycle start ========================================
|
|
56584
56667
|
componentDidMount() {
|
|
56585
56668
|
this.chart || (this.setState({ isDataLoading: !0 }), this.loadDataAsync(() => {
|
|
56586
56669
|
setTimeout(() => {
|
|
56587
|
-
this.initializeChart()
|
|
56670
|
+
this.initializeChart(), this.props.mainChartIndicators && this.props.mainChartIndicators.length > 0 && setTimeout(() => {
|
|
56671
|
+
this.initializeMainChartIndicators(this.props.mainChartIndicators || []);
|
|
56672
|
+
}, 100), this.props.subChartIndicators && this.props.subChartIndicators.length > 0 && setTimeout(() => {
|
|
56673
|
+
this.initializeSubChartIndicators(this.props.subChartIndicators || []);
|
|
56674
|
+
}, 150);
|
|
56588
56675
|
}, 50);
|
|
56589
56676
|
}), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("mousemove", this.handleTerminalMouseMove), document.addEventListener("mouseup", this.handleTerminalMouseUp), document.addEventListener("mousemove", this.handleAiMobileMouseMove), document.addEventListener("mouseup", this.handleAiMobileMouseUp), document.addEventListener("touchstart", this.handleClickOutside, !0));
|
|
56590
56677
|
}
|
|
@@ -56608,7 +56695,15 @@ class ql extends rt.Component {
|
|
|
56608
56695
|
}));
|
|
56609
56696
|
return;
|
|
56610
56697
|
}
|
|
56611
|
-
t.
|
|
56698
|
+
t.mainChartIndicators !== this.props.mainChartIndicators && (this.props.mainChartIndicators ? this.initializeMainChartIndicators(this.props.mainChartIndicators) : (this.setState({
|
|
56699
|
+
selectedMainChartIndicator: null
|
|
56700
|
+
}), this.chartLayerRef.current && Object.values(D).forEach((r) => {
|
|
56701
|
+
this.chartLayerRef.current?.handleRemoveIndicator && this.chartLayerRef.current.handleRemoveIndicator(r);
|
|
56702
|
+
}))), t.subChartIndicators !== this.props.subChartIndicators && (this.props.subChartIndicators ? this.initializeSubChartIndicators(this.props.subChartIndicators) : (this.setState({
|
|
56703
|
+
selectedSubChartIndicators: []
|
|
56704
|
+
}), this.chartLayerRef.current && this.state.selectedSubChartIndicators.forEach((r) => {
|
|
56705
|
+
this.chartLayerRef.current?.handleRemoveSubChartIndicator && this.chartLayerRef.current.handleRemoveSubChartIndicator(r);
|
|
56706
|
+
}))), t.markData !== this.props.markData && this.props.markData && this.setState({
|
|
56612
56707
|
markData: this.props.markData
|
|
56613
56708
|
}), t.terminal !== this.props.terminal && this.props.terminal && this.setState({
|
|
56614
56709
|
terminal: this.props.terminal
|
|
@@ -56798,7 +56893,7 @@ class ql extends rt.Component {
|
|
|
56798
56893
|
this.currentSeries && Hr(this.currentSeries, t);
|
|
56799
56894
|
}
|
|
56800
56895
|
getThemeConfig(t) {
|
|
56801
|
-
return t === "light" ? Kr :
|
|
56896
|
+
return t === "light" ? Kr : Qi;
|
|
56802
56897
|
}
|
|
56803
56898
|
getI18nConfig(t) {
|
|
56804
56899
|
return t === "en" ? ot : el;
|