layerStatus removed

This commit is contained in:
Luis Fernando Molina committed 2018-03-01 14:12:13 +01:00
1 parent ba2bfbc913
commit 1fdf40f091
3 files changed
+3 -44

No files matched your search

Binary file not shown.
+2 -24
View File
@@ -9,11 +9,7 @@
getContainer: getContainer,
setTimePeriod: setTimePeriod,
setDatetime: setDatetime,
draw: draw,
// Secondary functions and properties.
onLayerStatusChanged: onLayerStatusChanged
draw: draw
};
/* this is part of the module template */
@@ -22,8 +18,6 @@
container.initialize();
thisObject.container = container;
let layerStatus = 'off'; // Since the moduleis a layer, it must handle the different possible layer status.
let plotArea = newPlotArea(); // Needed to be able to plot on the timeline, otherwise not.
let plotAreaFrame = newPlotArea(); // This chart uses this extra object.
@@ -42,7 +36,7 @@
return thisObject;
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, pLayerStatus, callBackFunction) {
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, callBackFunction) {
let cursorCacheInProgress = false;
let finaleStepsInProgress = false;
@@ -98,8 +92,6 @@
fileCursor = newFileCursor;
layerStatus = pLayerStatus;
recalculateScaleX();
recalculate();
recalculateScaleY();
@@ -119,8 +111,6 @@
function getContainer(point) {
if (layerStatus !== 'on') { return; }
let container;
/* First we check if this point is inside this space. */
@@ -202,8 +192,6 @@
function draw() {
if (layerStatus !== 'on') { return; }
this.container.frame.draw();
if (timePeriod < _1_HOUR_IN_MILISECONDS) {
@@ -223,8 +211,6 @@
function recalculate() {
if (layerStatus === 'off') { return; }
if (timePeriod >= _1_HOUR_IN_MILISECONDS) {
recalculateUsingMarketFiles();
@@ -735,14 +721,6 @@
}
}
function onLayerStatusChanged(eventData) {
if (eventData.layer === 'Mariam Trades Details') {
layerStatus = eventData.status;
}
}
function onZoomChanged(event) {
recalculateScaleX();
+1 -20
View File
@@ -9,12 +9,7 @@
getContainer: getContainer,
setTimePeriod: setTimePeriod,
setDatetime: setDatetime,
draw: draw,
// Secondary functions and properties.
currentCandle: undefined,
onLayerStatusChanged: onLayerStatusChanged
draw: draw
};
/* this is part of the module template */
@@ -23,8 +18,6 @@
container.initialize();
thisObject.container = container;
let layerStatus = 'off'; // Since the moduleis a layer, it must handle the different possible layer status.
let plotArea = newPlotArea(); // Needed to be able to plot on the timeline, otherwise not.
let timePeriod; // This will hold the current Time Period the user is at.
@@ -57,8 +50,6 @@
function getContainer(point) {
if (layerStatus !== 'on') { return; }
let container;
/* First we check if this point is inside this space. */
@@ -92,8 +83,6 @@
function draw() {
if (layerStatus !== 'on') { return; }
plotChart();
}
@@ -295,14 +284,6 @@
}
}
function onLayerStatusChanged(eventData) {
if (eventData.layer === 'Mariam Trades History') {
layerStatus = eventData.status;
}
}
function onZoomChanged(event) {
}