binbot-charts 0.2.37 → 0.2.40

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.
@@ -57,6 +57,8 @@ function TVChartContainer(_ref) {
57
57
  if (prevStates && prevStates.timescaleMarks !== timescaleMarks) {
58
58
  initializeChart();
59
59
  }
60
+
61
+ console.log(timescaleMarks);
60
62
  }, [orderLines, timescaleMarks]);
61
63
 
62
64
  const initializeChart = () => {
@@ -140,15 +140,7 @@ class Datafeed {
140
140
  getTimescaleMarks(symbolInfo, from, to, onDataCallback, resolution) {
141
141
  if (this.timescaleMarks.length > 0) {
142
142
  let timescaleMarks = [];
143
- this.timescaleMarks.forEach(mark => {
144
- let time = new Date(mark.time * 1000);
145
- time.setMinutes(0);
146
- time.setSeconds(0);
147
- time.setMilliseconds(0);
148
- const roundFloor = time.getTime() / 1000;
149
- mark.time = roundFloor;
150
- timescaleMarks.push(mark);
151
- });
143
+ this.timescaleMarks.forEach(mark => timescaleMarks.push(mark));
152
144
  onDataCallback(timescaleMarks);
153
145
  }
154
146
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.37",
2
+ "version": "0.2.40",
3
3
  "name": "binbot-charts",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",