@tradecanvas/chart 1.74.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chart.d.ts +2 -1
- package/dist/Chart.d.ts.map +1 -1
- package/dist/LayoutSession-Di5_gC6i.cjs +2 -0
- package/dist/LayoutSession-Di5_gC6i.cjs.map +1 -0
- package/dist/{LayoutSession-DbJAOYso.js → LayoutSession-k8eo2c64.js} +8 -6
- package/dist/LayoutSession-k8eo2c64.js.map +1 -0
- package/dist/WidgetDrawingSettings-B_mi8DUh.cjs +2 -0
- package/dist/WidgetDrawingSettings-B_mi8DUh.cjs.map +1 -0
- package/dist/{WidgetDrawingSettings-BeW8fX7r.js → WidgetDrawingSettings-CJsNm1Bf.js} +78 -79
- package/dist/WidgetDrawingSettings-CJsNm1Bf.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/widget/ChartWidget.d.ts.map +1 -1
- package/dist/widget/WidgetSelectionToolbar.d.ts.map +1 -1
- package/dist/widget/drawingSettingsTabs.d.ts.map +1 -1
- package/dist/widget/drawingText.d.ts +1 -1
- package/dist/widget/drawingText.d.ts.map +1 -1
- package/dist/widget/index.cjs +3 -3
- package/dist/widget/index.cjs.map +1 -1
- package/dist/widget/index.js +989 -988
- package/dist/widget/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/LayoutSession-DbJAOYso.js.map +0 -1
- package/dist/LayoutSession-WcHEheSo.cjs +0 -2
- package/dist/LayoutSession-WcHEheSo.cjs.map +0 -1
- package/dist/WidgetDrawingSettings-BeW8fX7r.js.map +0 -1
- package/dist/WidgetDrawingSettings-Cyl2u_u8.cjs +0 -2
- package/dist/WidgetDrawingSettings-Cyl2u_u8.cjs.map +0 -1
|
@@ -2138,7 +2138,7 @@ var yi = .08, bi = 20, xi = 8, Si = 10, Ci = {
|
|
|
2138
2138
|
ArrowUp: [0, -1],
|
|
2139
2139
|
ArrowDown: [0, 1]
|
|
2140
2140
|
}, wi = new Set(["horizontalLine", "crossLine"]), Ti = new Set(["verticalLine", "crossLine"]), Ei = class {
|
|
2141
|
-
static version = "1.
|
|
2141
|
+
static version = "1.76.0";
|
|
2142
2142
|
engine;
|
|
2143
2143
|
viewport;
|
|
2144
2144
|
series = new Rn((e) => this.sessionKeep(e), (e) => this.followLiveChange(e));
|
|
@@ -2327,7 +2327,7 @@ var yi = .08, bi = 20, xi = 8, Si = 10, Ci = {
|
|
|
2327
2327
|
oldestTime: () => (this.replaySession ? this.series.liveBars() : this.series.bars())[0]?.time ?? null,
|
|
2328
2328
|
prepend: (e) => this.prependBars(e),
|
|
2329
2329
|
emit: (e) => this.eventBus.emit("historyLoad", e)
|
|
2330
|
-
}), this.themeManager = new hr(t.theme), this.themeManager.setChartType(this.options.chartType ?? "candlestick"), this.applyStyle(_r(t), "host", !1), this.layoutManager = new br(), this.indicatorEngine = new Ve(), this.panes = new Kn(this.layoutManager, this.indicatorEngine, (e) => this.crosshairHandler.setReportBounds(e)), this.indicatorPanes = new Xn(this.indicatorEngine, this.layoutManager, {
|
|
2330
|
+
}), this.themeManager = new hr(t.theme), this.themeManager.setChartType(this.options.chartType ?? "candlestick"), this.applyStyle(_r(t), "host", !1), this.container.style.backgroundColor || (this.container.style.backgroundColor = this.themeManager.getTheme().background, this.lastBackground = this.themeManager.getTheme().background), this.layoutManager = new br(), this.indicatorEngine = new Ve(), this.panes = new Kn(this.layoutManager, this.indicatorEngine, (e) => this.crosshairHandler.setReportBounds(e)), this.indicatorPanes = new Xn(this.indicatorEngine, this.layoutManager, {
|
|
2331
2331
|
passStyle: (e, t) => this.panes.passStyle(e, t),
|
|
2332
2332
|
renamePane: (e, t) => this.renamePane(e, t),
|
|
2333
2333
|
invalidateScales: () => this.panes.invalidateScales()
|
|
@@ -4771,7 +4771,9 @@ var yi = .08, bi = 20, xi = 8, Si = 10, Ci = {
|
|
|
4771
4771
|
let { x: r, y: c } = this.drawingManager.anchorPoint(t.type, e, n);
|
|
4772
4772
|
i = Math.min(i, r), a = Math.max(a, r), o = Math.min(o, c), s = Math.max(s, c);
|
|
4773
4773
|
}
|
|
4774
|
-
|
|
4774
|
+
if (wi.has(t.type) ? [i, a] = [r.x, r.x + r.width] : t.type === "horizontalRay" && (a = r.x + r.width), Ti.has(t.type) && ([o, s] = [r.y, r.y + r.height]), a < r.x || i > r.x + r.width || s < r.y || o > r.y + r.height) return null;
|
|
4775
|
+
let c = this.drawingManager.drawnExtent(e);
|
|
4776
|
+
return c && (i = Math.min(i, c.x), a = Math.max(a, c.x + c.width), o = Math.min(o, c.y), s = Math.max(s, c.y + c.height)), i = Math.max(i, r.x), a = Math.min(a, r.x + r.width), o = Math.max(o, r.y), s = Math.min(s, r.y + r.height), i <= a && o <= s ? {
|
|
4775
4777
|
x: i,
|
|
4776
4778
|
y: o,
|
|
4777
4779
|
width: a - i,
|
|
@@ -5255,8 +5257,8 @@ function Di(e, t, n) {
|
|
|
5255
5257
|
}
|
|
5256
5258
|
var Oi = 300;
|
|
5257
5259
|
function ki(e) {
|
|
5258
|
-
let t = {}, n = e.
|
|
5259
|
-
|
|
5260
|
+
let t = {}, n = (e) => typeof e == "string" && e.trim() !== "" && e.length <= Oi && !/[;{}<>\\]|\/\*/.test(e);
|
|
5261
|
+
n(e.family) && (t.family = e.family), n(e.textFamily) && (t.textFamily = e.textFamily);
|
|
5260
5262
|
for (let n of [
|
|
5261
5263
|
"sizeSmall",
|
|
5262
5264
|
"sizeMedium",
|
|
@@ -5890,4 +5892,4 @@ var Sa = class {
|
|
|
5890
5892
|
//#endregion
|
|
5891
5893
|
export { fr as C, jn as D, z as E, hr as S, In as T, Nr as _, ga as a, G as b, Ei as c, ni as d, ri as f, Mr as g, Pr as h, _a as i, gi as l, Fr as m, va as n, ua as o, Ir as p, ya as r, ea as s, Sa as t, hi as u, Ar as v, ur as w, br as x, jr as y };
|
|
5892
5894
|
|
|
5893
|
-
//# sourceMappingURL=LayoutSession-
|
|
5895
|
+
//# sourceMappingURL=LayoutSession-k8eo2c64.js.map
|