charts-core 1.1.14 → 1.1.15
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/charts-core.js
CHANGED
|
@@ -4126,12 +4126,12 @@ class Gr {
|
|
|
4126
4126
|
}), this.subscribeWithLogging("update_color_scheme", (t) => {
|
|
4127
4127
|
this._model.colorScheme.update(t), this._view.mainCanvas.background = this._model.colorScheme.bg, this._view.renderAll(this._model);
|
|
4128
4128
|
}), this.subscribeWithLogging("open_trade_label_tooltip", ({ trade: t, x: e, y: s }) => {
|
|
4129
|
-
this._model.trade.setActiveTrade(t.tradeType, t.candle.open_time.getTime()), this._view.trade.renderAll(this._model), this._view.trade.labelTooltip.updateContent(t.trades), this._view.trade.labelTooltip.setState({
|
|
4129
|
+
this._model.trade.setActiveTrade(t.tradeType, t.candle.open_time.getTime()), this._view.trade.renderAll(this._model), this._model.config.trade.showLabelButtons && (this._view.trade.labelTooltip.updateContent(t.trades), this._view.trade.labelTooltip.setState({
|
|
4130
4130
|
isShow: !0,
|
|
4131
4131
|
x: e,
|
|
4132
4132
|
y: s,
|
|
4133
4133
|
parent: this._model.layout.area
|
|
4134
|
-
});
|
|
4134
|
+
}));
|
|
4135
4135
|
}), this.subscribeWithLogging("close_trade_label_tooltip", () => {
|
|
4136
4136
|
this._model.trade.setActiveTrade(null), this._view.trade.renderAll(this._model), this._view.trade.labelTooltip.setState({ isShow: !1 });
|
|
4137
4137
|
}), this.subscribeWithLogging("hover_nodata_candle", ({ x: t, y: e }) => {
|
|
@@ -4635,7 +4635,7 @@ class ca {
|
|
|
4635
4635
|
this._hitManager.dispatchMouseMove(a, o);
|
|
4636
4636
|
}
|
|
4637
4637
|
const { x: e, y: s } = this.getMouseRelative(t), n = this._hitManager.hitTestAll(e, s);
|
|
4638
|
-
(r = n[0]) != null && r.type && (n[0].type === "area" ? this._view.mainCanvas.node.style.cursor = "crosshair" : n[0].type === "trade-label" ? this._view.mainCanvas.node.style.cursor = "pointer" : n[0].type === "x-axis" ? this._view.mainCanvas.node.style.cursor = "ew-resize" : n[0].type === "y-axis" ? this._view.mainCanvas.node.style.cursor = "ns-resize" : this._view.mainCanvas.node.style.cursor = "default");
|
|
4638
|
+
(r = n[0]) != null && r.type && (n[0].type === "area" ? this._view.mainCanvas.node.style.cursor = "crosshair" : n[0].type === "trade-label" ? this._model.config.trade.showLabelButtons && (this._view.mainCanvas.node.style.cursor = "pointer") : n[0].type === "x-axis" ? this._view.mainCanvas.node.style.cursor = "ew-resize" : n[0].type === "y-axis" ? this._view.mainCanvas.node.style.cursor = "ns-resize" : this._view.mainCanvas.node.style.cursor = "default");
|
|
4639
4639
|
}
|
|
4640
4640
|
onWheel(t) {
|
|
4641
4641
|
t.preventDefault(), this._hitManager.dispatchWheel(t.offsetX, t.offsetY, t.deltaX, t.deltaY, t.deltaZ);
|