From f49b61288d1ae626ae1c683a12d161be79487e2e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 3 May 2019 10:45:23 +0200 Subject: [PATCH] Adjusting look and feel --- TradingSimulationPanel.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/TradingSimulationPanel.js b/TradingSimulationPanel.js index a6fffcdf8..eefa746a1 100644 --- a/TradingSimulationPanel.js +++ b/TradingSimulationPanel.js @@ -299,9 +299,9 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation /* We draw the circle bar */ const DEFAULT_THICKNESS = 2; - const VALUE_THICKNESS = 4; + const VALUE_THICKNESS = 8; const VALUE_BG_THICKNESS = 1; - const BAR_RADIOUS = RADIOUS * 0.9; + const BAR_RADIOUS = RADIOUS * 0.85; let BAR_START_ANGLE = 0.9 * Math.PI; let BAR_END_ANGLE = 2.1 * Math.PI; @@ -398,7 +398,7 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation /* We put the params.VALUE in the middle */ - fontSize = 25; + fontSize = 22; browserCanvasContext.font = "bold " + fontSize + 'px ' + UI_FONT.PRIMARY @@ -411,7 +411,7 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation label = label.substring(0, 5); - xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 10; + xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 7; labelPoint = { x: centerPoint.x - xOffset, @@ -423,13 +423,13 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation /* We put the top label */ - fontSize = 15; + fontSize = 12; browserCanvasContext.font = "bold " + fontSize + 'px ' + UI_FONT.PRIMARY label = params.ASSET_LABEL; - xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 7; + xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 3; yOffset = 22 labelPoint = { @@ -442,13 +442,13 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation /* We put the bottom label */ - fontSize = 15; + fontSize = 12; browserCanvasContext.font = "bold " + fontSize + 'px ' + UI_FONT.PRIMARY label = params.ASSET_NAME; - xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 5; + xOffset = label.length / 2 * fontSize * FONT_ASPECT_RATIO + 3; yOffset = - 15 labelPoint = { @@ -477,3 +477,4 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation +