From 4ed61945b827284798bf26d7f9e44aded7678cea Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 1 Mar 2018 14:05:33 +0100 Subject: [PATCH] layer status removed --- .vs/Plotters-Candles-Volumes/v15/.suo | Bin 10752 -> 19968 bytes Candles.js | 23 ++--------------------- Volumes.js | 26 ++------------------------ 3 files changed, 4 insertions(+), 45 deletions(-) diff --git a/.vs/Plotters-Candles-Volumes/v15/.suo b/.vs/Plotters-Candles-Volumes/v15/.suo index 51a2547756da9175b500b46077c3fd69ea2a4cf2..848191cfc14820c2eac1d0b6fd7cff9042082b56 100644 GIT binary patch delta 2330 zcmcIlUuaup6u;l?O_nA1=1-HRNt&eXl5{B)Sxvik-QtoZcBOxohB{E0Vk>)?Le>6} zwi`549~Ae{-s6*0*oF^22&2mo*@F(IAUd$(tBRm6BKl-tBJ2E}+uqW&>6kD-_;K$& z-}%1peCM3s@0Ok_t%#*#LRn4U7P>Ml8mU!j)_zX)zxUkg_aZD|(7g4$I7$`kDZ1_I z)FX;)m1$w$pn4xeh66w8q7wIX;p0=mYb2=wxVKy!O0Q$qkB>$m00e<1fbAhXBR~{r z23mkt-~bQ<)>n(uMp#Y`%enS^<_``_#Z;!A7OV?m0C6pDi%G$h1u$dkeF7g793=)D zd9cGhJUN8@c;5%u06Sm>8~}CLT9i0mmWvrn0#C&9vd{x@VW-wW1lCE& zzv%XyCb$M1AoevXBhoZ$FQ}XbF2k1j7**`2G@-%9Io+}!rCGV5@)LnVC z4o-X-(@_s7H0N5gal)!>?hC?675AdhXx39u`SP4((?_UO@!S^mI(yUf6%v?3oY~e1G%YS>n7MkF4a9PbsJ*m*$ zhGCV<#eQ4%CZ#;*e_LD+DYCMJ3HmY8?>U2fXQdHoT$+|LnN{C9~ zyu}4qiA1PJkNE5#ao%}YL5BmBiFCR~r77tZ=_Rav5j#9arAR@WfE#-T3gb^QE^B-&SiFb-HeUyT8Z80THGOubR`z6IweudM!kugp9^A+ zHoR~%=XV~q5mIW`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5p~5%2A#AE{FMll*hzLTkQ#WgEX%+P?uyY&g;Y diff --git a/Candles.js b/Candles.js index 87116675d..947459486 100644 --- a/Candles.js +++ b/Candles.js @@ -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(); diff --git a/Volumes.js b/Volumes.js index 912dfc7c4..9edbc1813 100644 --- a/Volumes.js +++ b/Volumes.js @@ -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();