layer status removed

This commit is contained in:
Luis Fernando Molina committed 2018-03-01 14:05:33 +01:00
1 parent 99e66807ff
commit 4ed61945b8
3 files changed
+4 -45

No files matched your search

Binary file not shown.
+2 -21
View File
@@ -14,8 +14,7 @@
// Secondary functions and properties.
currentCandle: undefined,
positionAtDatetime: positionAtDatetime,
onLayerStatusChanged: onLayerStatusChanged
positionAtDatetime: positionAtDatetime
};
/* this is part of the module template */
@@ -24,8 +23,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.
@@ -45,7 +42,7 @@
return thisObject;
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, pLayerStatus, callBackFunction) {
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, callBackFunction) {
let cursorCacheInProgress = false;
let finaleStepsInProgress = false;
@@ -103,8 +100,6 @@
recalculateScale(); // With any of the market files we can calculate the scale.
layerStatus = pLayerStatus;
recalculate();
viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged);
@@ -122,8 +117,6 @@
function getContainer(point) {
if (layerStatus !== 'on') { return; }
let container;
/* First we check if this point is inside this space. */
@@ -267,8 +260,6 @@
function draw() {
if (layerStatus !== 'on') { return; }
this.container.frame.draw();
if (timePeriod < _1_HOUR_IN_MILISECONDS) {
@@ -286,8 +277,6 @@
function recalculate() {
if (layerStatus === 'off') { return; }
if (timePeriod >= _1_HOUR_IN_MILISECONDS) {
recalculateUsingMarketFiles();
@@ -673,14 +662,6 @@
}
}
function onLayerStatusChanged(eventData) {
if (eventData.layer === LAYER_CODE_NAME) {
layerStatus = eventData.status;
}
}
function onZoomChanged(event) {
recalculate();
+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 === 'Olivia Volumes') {
layerStatus = eventData.status;
}
}
function onZoomChanged(event) {
recalculateScaleX();