From e5ca65a9ee4feb497b16e96964091a6a25cc78f6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 29 Jan 2020 10:25:15 +0100 Subject: [PATCH] showPanles functionality implemented --- BollingerBandsPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BollingerBandsPanel.js b/BollingerBandsPanel.js index f60929056..169451809 100644 --- a/BollingerBandsPanel.js +++ b/BollingerBandsPanel.js @@ -5,6 +5,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () fitFunction: undefined, onRecordChange: onRecordChange, container: undefined, + isVisible: true, draw: draw, getContainer: getContainer, initialize: initialize, @@ -24,6 +25,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () thisObject.container.finalize() thisObject.container = undefined thisObject.fitFunction = undefined + thisObject.isVisible = undefined currentBand = undefined panelTabButton.finalize() @@ -46,7 +48,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () } function getContainer(point) { - + if (thisObject.isVisible !== true) { return } let container; container = panelTabButton.getContainer(point) @@ -76,7 +78,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () function draw() { - + if (thisObject.isVisible !== true) { return } thisObject.container.frame.draw(false, false, true, thisObject.fitFunction); plotCurrentBandInfo();