From b801eb222c274bafd1cf5bcb2ce4f94ad1a5ee47 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 27 Jun 2019 20:03:08 +0200 Subject: [PATCH] formatting --- BollingerBands.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/BollingerBands.js b/BollingerBands.js index 250cb7b44..3b264b564 100644 --- a/BollingerBands.js +++ b/BollingerBands.js @@ -1,5 +1,4 @@ -function newAAMastersPlottersBollingerBandsBollingerBands () -{ +function newAAMastersPlottersBollingerBandsBollingerBands() { const MODULE_NAME = "Bands Plotter"; const ERROR_LOG = true; @@ -18,11 +17,11 @@ setTimePeriod: setTimePeriod, setDatetime: setDatetime, draw: draw, - recalculateScale: recalculateScale, + recalculateScale: recalculateScale, /* Events declared outside the plotter. */ - onDailyFileLoaded: onDailyFileLoaded, + onDailyFileLoaded: onDailyFileLoaded, // Secondary functions and properties. @@ -536,7 +535,7 @@ if (userPositionDate >= band.begin && userPositionDate <= band.end) { /* highlight the current band */ browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.TITANIUM_YELLOW + ', 0.05)'; // Current band accroding to time - } + } if ( bandPoint1.x < viewPort.visibleArea.topLeft.x + 50 @@ -563,7 +562,7 @@ browserCanvasContext.closePath(); browserCanvasContext.strokeStyle = 'rgba(' + UI_COLOR.PATINATED_TURQUOISE + ', 1)'; - + if (userPositionDate >= band.begin && userPositionDate <= band.end) { /* highlight the current band */ @@ -581,9 +580,10 @@ }; thisObject.container.eventHandler.raiseEvent("Current Band Changed", currentBand); - } - + } + browserCanvasContext.lineWidth = 0.2; + browserCanvasContext.setLineDash([0, 0]) browserCanvasContext.stroke(); @@ -607,8 +607,9 @@ /* highlight the current band */ browserCanvasContext.strokeStyle = 'rgba(' + UI_COLOR.TITANIUM_YELLOW + ', 1)'; // Current band accroding to time } - + browserCanvasContext.lineWidth = 0.2; + browserCanvasContext.setLineDash([0, 0]) browserCanvasContext.stroke(); } } @@ -660,3 +661,4 @@ } } +