From 1fdf40f091fd5c290f275a96ca20defd511eaea7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 1 Mar 2018 14:12:13 +0100 Subject: [PATCH] layerStatus removed --- .vs/Plotters-Trading/v15/.suo | Bin 18944 -> 19968 bytes Details.js | 26 ++------------------------ History.js | 21 +-------------------- 3 files changed, 3 insertions(+), 44 deletions(-) diff --git a/.vs/Plotters-Trading/v15/.suo b/.vs/Plotters-Trading/v15/.suo index 90d935b8e6d664078bdaf12512958f535d524283..1616f7cdc0ef74eb823171a81cfba22ca4b99c19 100644 GIT binary patch delta 2317 zcmeHIOH5Ni6rCAfODV5~@@s*%U}-4}q3G5hO8zLiiapA&5qhR+&gA2n3jXPtED>tlMGyx;ldmlXh;L;6~oOI^iJ7?zIx#w1S$dyNY zrbBQe91?lv@7-6wU7G#O?Tj(S0^?$wH$hB(4$-13<0aVYV|0ztQm=w z0#=9}k%aR^gaKhh=n=^XC^qCvZk$X9e9$RLvu6i5{eoo6r|+~`-KprcAkq-&hzvv~ zA`3y(1n9BZVNxSD^)XgP}BO2je5aYPkzrF&{|b_#JC;X~9R>JbfyMuf^Y9axMM zhj$am*-`&QKaVMHW)7LGEkm1la9VaM3>X&xrtNu=pi&Gy!A@3l-VIudZ|h@MN3*3HQ&-2%upk>^A=b+V!Q}Kpk3Ap0TXR6MH|kO_lmX8<9&uzC zpK)5@&_f{61wKc4N+%m+*I7UAy^IVcpg8>IdJLmT!Xv)tL9HUPx6=#Gq70aGp3ALe z^ahO8Fe-)#R>rEa9O_vG-s@f7>8O%7A~JhJ!M=f^lK!E|n^>=uUBO;L&=XARuB$r} z918UgLfqBFx7!xo4hXx7Qs~BXT^fD9?NPW>60C6-Gpu-$c`Hm86l^)jv6~G>3jId9 z8jT%fYd3-W?wy3_+d;VK?#ZLq*G3^uNCQ;Ps|jO}?aakAx@ZX&du`(R1*#PWw~DGk z@%r>6?T7nSg0m<~PfcPqD0@e_VA*uDPBs8>tLJ~}+^FfCE^9_;WluUchB?XFFKc?x zoTz2aqRXXi+@v-KO6MjY>b%oH9dEO3sr>hb?kmD1^NKFRX636LB5hKY{tb?juWXm8 z@lo&Am~?6rh2_H&8{%(M#ZS7`qKIip?vUx3NQatzpQcdRF4R`ExxYk1RSyy*1qt?) z;(_K5G_Q64t(xECFXELmBl^ZGIFt!F_1?nN6*0;SCm;W`pM3KEIecoFfqJ_W{u%Wb D!a8~* delta 1607 zcmeHHOKVd>6wXX;Voc{Y&!%mf*tAVwn1Z#frjI}&v6iF~LJ>;cR6%heZcJ+*N^cRQ z;>O-1B2-XuEA){+5K$0xA)=eETnd7&l0^hl&q*>#aOcX610Q$hoNvy(bME(z_JnB< z+3pNy&CtQy8+RYgb)4Dz#C!%EHdy7WY#j1@-PDNd$FO2tGoQxU4+H!(&O1CfZAP>p zS`lqkLG}yjjB{pV7^w-T&tK64VdAGLmZH54Tj6Fpbh09B@~?h z!lwzJX2cPM1#uK%MHFds$P%E}@35@}MGvLfDOeOqVXRQ74Ao~NkPof1VOUh}>+Wfb z8}l+}4&dTIfmQcAL1(5$$Q<*)VpCGkm(Ul;u&D_b90~(Tn0AIiYm7qF8PRPqLA{|K zNhYLipDnbYL0VT_`uD2snV|PW1Z|;b#*N6hE)4`@QhvE4=izNcV!&lzn~*aZDclf~#3>ZVUUwI6an)wvf732h6))Y)!8Lg z(n;h-aEx6y&V8`rnIn+xn|v`GXZ9Q~4xLkO-|RVf^Zv`gcPpe4JFt-0_*Xwl7t$Rh zWs*Zxap(>-4XK=tQw@_{l0u42hE1de0~ChVYR-w5`bSEZEXcW&YRL*DKp8FhY1TsB zlcBPgGKGOSQyE<;WN(>7`y@-&vghhdGkA+UGB|6gw<@HaTFo>=2|?Ee`B~O7mF|yB XVI;u?8KB;CnRNJp@xO}yLdCxU;8Pk+ diff --git a/Details.js b/Details.js index ab0804398..5face1c38 100644 --- a/Details.js +++ b/Details.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 === 'Mariam Trades Details') { - layerStatus = eventData.status; - } - - } - function onZoomChanged(event) { recalculateScaleX(); diff --git a/History.js b/History.js index 318dc3d24..fd2ea69de 100644 --- a/History.js +++ b/History.js @@ -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) { }