Refactoring
This commit is contained in:
1 parent
79bff38001
commit
a876a15e42
5 files changed
+9
-9
No files matched your search
+3
-3
@@ -1,5 +1,5 @@
|
||||
|
||||
function getSimulationParams () {
|
||||
function getUICurrentValues () {
|
||||
let dateAtScreenCorner = new Date(window.localStorage.getItem('Date @ Screen Corner'))
|
||||
let currentTimePeriod = JSON.parse(window.localStorage.getItem('Current Time Period'))
|
||||
|
||||
@@ -7,13 +7,13 @@ function getSimulationParams () {
|
||||
let timePeriodArray = timePeriodsMasterArray[currentTimePeriod.filePeriodIndex]
|
||||
let timePeriod = timePeriodArray[currentTimePeriod.timePeriodIndex][1]
|
||||
|
||||
let simulationParams = {
|
||||
let uiCurrentValues = {
|
||||
beginDatetime: dateAtScreenCorner,
|
||||
timePeriod: timePeriod,
|
||||
timestamp: (new Date()).valueOf()
|
||||
}
|
||||
|
||||
return simulationParams
|
||||
return uiCurrentValues
|
||||
}
|
||||
|
||||
function transformThisPoint (point, container) {
|
||||
|
||||
Reference in new issue
Block a user