binbot-charts 0.2.25 → 0.2.28
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.
|
@@ -95,7 +95,7 @@ function TVChartContainer(_ref) {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
} else {
|
|
98
|
-
if (orderLines && orderLines.length > 0) {
|
|
98
|
+
if (widgetState && orderLines && orderLines.length > 0) {
|
|
99
99
|
orderLines.forEach(order => {
|
|
100
100
|
const lineStyle = order.lineStyle || 0;
|
|
101
101
|
let chartOrderLine = widgetState.chart().createOrderLine().setText(order.text).setTooltip(order.tooltip).setQuantity(order.quantity).setQuantityFont("inherit 14px Arial").setQuantityBackgroundColor(order.color).setQuantityBorderColor(order.color).setLineStyle(lineStyle).setLineLength(25).setLineColor(order.color).setBodyFont("inherit 14px Arial").setBodyBorderColor(order.color).setBodyTextColor(order.color).setPrice(order.price); // set custom id easier search
|
|
@@ -145,7 +145,7 @@ class Datafeed {
|
|
|
145
145
|
this.timescaleMarks.forEach(mark => {
|
|
146
146
|
let time = new Date(mark.time * 1000);
|
|
147
147
|
time.setHours(1, 0, 0, 0);
|
|
148
|
-
const roundFloor = time.getTime()
|
|
148
|
+
const roundFloor = time.getTime();
|
|
149
149
|
mark.time = roundFloor;
|
|
150
150
|
timescaleMarks.push(mark);
|
|
151
151
|
});
|
package/package.json
CHANGED