@tradecanvas/chart 1.54.0 → 1.54.1
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/Chart.d.ts +8 -1
- package/dist/Chart.d.ts.map +1 -1
- package/dist/LayoutSession-Breef1mg.cjs +2 -0
- package/dist/LayoutSession-Breef1mg.cjs.map +1 -0
- package/dist/{LayoutSession-DAqzoWkF.js → LayoutSession-C5aHWgk7.js} +353 -332
- package/dist/LayoutSession-C5aHWgk7.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/widget/ChartWidget.d.ts +2 -0
- package/dist/widget/ChartWidget.d.ts.map +1 -1
- package/dist/widget/index.cjs +2 -2
- package/dist/widget/index.cjs.map +1 -1
- package/dist/widget/index.js +12 -3
- package/dist/widget/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/LayoutSession-0NYa74h6.cjs +0 -2
- package/dist/LayoutSession-0NYa74h6.cjs.map +0 -1
- package/dist/LayoutSession-DAqzoWkF.js.map +0 -1
package/dist/widget/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, a as t, c as n, d as r, f as i, i as a, n as o, o as s, r as c, t as l } from "../LayoutSession-
|
|
1
|
+
import { O as e, a as t, c as n, d as r, f as i, i as a, n as o, o as s, r as c, t as l } from "../LayoutSession-C5aHWgk7.js";
|
|
2
2
|
import { a as u, c as d, i as f, n as p, o as m, r as h, s as ee, t as g } from "../i18n-DGsh8zmc.js";
|
|
3
3
|
import { CHART_STYLE_KEYS as _, CHART_TYPE_ICONS as v, DARK_THEME as y, DEFAULT_SIGNAL_STYLE as b, DEFAULT_TRADE_ZONE_STYLE as x, DEFAULT_TRADING_CONFIG as S, DRAWING_TOOL_ICONS as te, LIGHT_THEME as ne, PHI as re, PRICE_SOURCES as ie, SANS_FONT_FAMILY as ae, UI_ICONS as oe, barTimeUnit as se, formatPrice as ce, iconSvg as le, indicatorSource as ue, isTimeFrame as de, isValidTimeZone as fe, marketStatus as pe, offsetAt as me, parseIndicatorSource as he, phiStep as ge, readChartStyleOverrides as _e, readChartTypeOptions as ve, readIndicatorPlotStyles as ye, readNews as be, readQuote as xe, resampleBars as Se, sanitizeDrawingOptions as Ce, sanitizeDrawingStyle as we, stepDecimals as Te, symbolTimeZone as Ee, tickBarCount as De, timeParts as Oe, timeframeFollowsDays as ke, timeframeToMs as C, tzLabel as Ae, wallToUtc as je, zoneOffsetMinutes as Me, zonedDateFormatter as Ne } from "@tradecanvas/commons";
|
|
4
4
|
import { ChartStateManager as Pe, INDICATOR_CATEGORIES as Fe, INTERVAL_LIMITS as Ie, INTERVAL_UNITS as Le, MAX_ALERT_BARS as Re, MIN_ALERT_BARS as ze, RANGE_PRESETS as Be, ResamplingAdapter as Ve, SYMBOL_INDICATOR_IDS as He, indicatorCategory as Ue, indicatorValuePrecision as We, isSeriesPalette as Ge, plotColor as Ke, plotShown as qe, rangePresetStart as Je, servesTimeframe as Ye, sourceParam as Xe, withResampling as Ze } from "@tradecanvas/core";
|
|
@@ -11346,6 +11346,7 @@ var Ad = 4, jd = 1, Md = 7, Nd = 17, Pd = 3, Fd = 150, Id = 5e3, Ld = 8, Rd = 6e
|
|
|
11346
11346
|
lastHoverBar = null;
|
|
11347
11347
|
lastHoverPrevClose = null;
|
|
11348
11348
|
legendHoverIndex = null;
|
|
11349
|
+
pointerOnChart = !1;
|
|
11349
11350
|
favoritesStore = new Hl();
|
|
11350
11351
|
indicatorFavorites = new Hl("tcw:indicator-favorites");
|
|
11351
11352
|
indicatorDefaults = new fs();
|
|
@@ -11768,9 +11769,13 @@ var Ad = 4, jd = 1, Md = 7, Nd = 17, Pd = 3, Fd = 150, Id = 5e3, Ld = 8, Rd = 6e
|
|
|
11768
11769
|
offChartType: this.t("legend.offChartType")
|
|
11769
11770
|
}), this.legendMenu = new M(this.root, this.t("legend.more")), this.chart.on("crosshairMove", (e) => {
|
|
11770
11771
|
let t = e.payload;
|
|
11771
|
-
this.legendHoverIndex = typeof t.barIndex == "number" ? t.barIndex : null, this.scheduleLegend();
|
|
11772
|
+
this.pointerOnChart = !0, this.legendHoverIndex = typeof t.barIndex == "number" ? t.barIndex : null, this.scheduleLegend();
|
|
11772
11773
|
}), this.chart.on("crosshairLeave", () => {
|
|
11773
|
-
this.legendHoverIndex = null, this.scheduleLegend();
|
|
11774
|
+
this.pointerOnChart = !1, this.legendHoverIndex = null, this.scheduleLegend();
|
|
11775
|
+
}), this.chart.on("crosshairSync", (e) => {
|
|
11776
|
+
if (this.pointerOnChart) return;
|
|
11777
|
+
let t = e.payload;
|
|
11778
|
+
this.legendHoverIndex = t.bar && t.barIndex !== null ? t.barIndex : null, this.scheduleLegend();
|
|
11774
11779
|
});
|
|
11775
11780
|
for (let e of [
|
|
11776
11781
|
"indicatorUpdate",
|
|
@@ -11831,6 +11836,10 @@ var Ad = 4, jd = 1, Md = 7, Nd = 17, Pd = 3, Fd = 150, Id = 5e3, Ld = 8, Rd = 6e
|
|
|
11831
11836
|
}, this.t), this.chart.on("crosshairMove", (e) => {
|
|
11832
11837
|
let t = e.payload;
|
|
11833
11838
|
this.lastHoverIndex = typeof t.barIndex == "number" ? t.barIndex : null, this.lastHoverBar = t.bar ?? null, this.lastHoverPrevClose = typeof t.prevClose == "number" ? t.prevClose : null, this.dataWindow?.isOpen() && this.dataWindow.render(this.buildDataWindowModel());
|
|
11839
|
+
}), this.chart.on("crosshairSync", (e) => {
|
|
11840
|
+
if (this.pointerOnChart) return;
|
|
11841
|
+
let t = e.payload;
|
|
11842
|
+
this.lastHoverIndex = t.bar && t.barIndex !== null ? t.barIndex : null, this.lastHoverBar = t.bar ?? null, this.lastHoverPrevClose = typeof t.prevClose == "number" ? t.prevClose : null, this.dataWindow?.isOpen() && this.dataWindow.render(this.buildDataWindowModel());
|
|
11834
11843
|
});
|
|
11835
11844
|
let y = new qs(), b = new Js();
|
|
11836
11845
|
for (let [e, t] of Object.entries(b.all())) this.chart.setDrawingToolDefaults(e, t ?? null);
|