Breakpoints working!!!!
This commit is contained in:
1 parent
9010b3be5a
commit
d7fa90b2d8
11 files changed
+246
-118
No files matched your search
+11
-11
@@ -36,6 +36,7 @@
|
||||
let level;
|
||||
|
||||
let chartGrid;
|
||||
let breakpointsBar;
|
||||
|
||||
let initializationReady = false;
|
||||
|
||||
@@ -63,6 +64,8 @@
|
||||
exchangeId = exchange;
|
||||
|
||||
chartGrid = newChartGrid();
|
||||
breakpointsBar = newBreakpointsBar();
|
||||
breakpointsBar.initialize(container, timeLineCoordinateSystem);
|
||||
|
||||
recalculateScale();
|
||||
|
||||
@@ -748,6 +751,8 @@
|
||||
competitionPlotter.plotter.setDatetime(datetime);
|
||||
|
||||
}
|
||||
|
||||
breakpointsBar.setDatetime(pDatetime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -808,6 +813,8 @@
|
||||
|
||||
}
|
||||
|
||||
breakpointsBar.setDatetime(datetime);
|
||||
|
||||
thisObject.container.eventHandler.raiseEvent("Datetime Changed", datetime);
|
||||
|
||||
}
|
||||
@@ -818,18 +825,9 @@
|
||||
|
||||
let container;
|
||||
|
||||
/* First we check if this point is inside this space. */
|
||||
container = breakpointsBar.getContainer(point);
|
||||
|
||||
if (this.container.frame.isThisPointHere(point) === true) {
|
||||
|
||||
// return this.container; Currently there is a BUG in which if this is enabled the datetime of the control panel is not recalculated.
|
||||
|
||||
} else {
|
||||
|
||||
/* This point does not belong to this space. */
|
||||
|
||||
return undefined;
|
||||
}
|
||||
return container;
|
||||
|
||||
}
|
||||
|
||||
@@ -911,6 +909,8 @@
|
||||
let competitionPlotter = competitionPlotters[i];
|
||||
competitionPlotter.plotter.draw();
|
||||
}
|
||||
|
||||
breakpointsBar.draw();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user