Move config to app level

This commit is contained in:
Julia Friesel
2018-08-21 14:26:13 +02:00
parent dcd0883bef
commit 7a1ef388d3
5 changed files with 6 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
const config = {
chartHeight: 350,
columnWidth: 25,
temperatureScale: {
low: 35,
high: 38,
min: 34,
max: 40,
units: 0.1
}
}
const margin = 3
config.columnMiddle = config.columnWidth / 2,
config.dateRowY = config.chartHeight - 15 - margin
config.cycleDayNumberRowY = config.chartHeight - margin
export default config