Sending fitFunction to plotters
This commit is contained in:
1 parent
05630a98f9
commit
315c380d2f
2 files changed
+5
-1
No files matched your search
@@ -11,10 +11,11 @@ function newPlottersManager () {
|
||||
let datetime = NEW_SESSION_INITIAL_DATE
|
||||
|
||||
let thisObject = {
|
||||
fitFunction: undefined,
|
||||
container: undefined,
|
||||
setDatetime: setDatetime,
|
||||
setTimePeriod: setTimePeriod,
|
||||
positionAtDatetime: positionAtDatetime,
|
||||
container: undefined,
|
||||
draw: draw,
|
||||
getContainer: getContainer,
|
||||
initialize: initialize,
|
||||
@@ -180,6 +181,7 @@ function newPlottersManager () {
|
||||
let bot = ecosystem.getBot(devTeam, participant.bot)
|
||||
participant.profilePicture = bot.profilePicture
|
||||
}
|
||||
plotter.fitFunction = thisObject.fitFunction
|
||||
plotter.initialize(competition, storage, datetime, timePeriod, onPlotterInizialized)
|
||||
|
||||
function onPlotterInizialized (err) {
|
||||
@@ -350,6 +352,7 @@ function newPlottersManager () {
|
||||
plotter.container.connectToParent(thisObject.container, true, true, false, true, true, true)
|
||||
plotter.container.frame.position.x = thisObject.container.frame.width / 2 - plotter.container.frame.width / 2
|
||||
plotter.container.frame.position.y = thisObject.container.frame.height / 2 - plotter.container.frame.height / 2
|
||||
plotter.fitFunction = thisObject.fitFunction
|
||||
plotter.initialize(storage, exchange, market, datetime, timePeriod, onPlotterInizialized)
|
||||
|
||||
function onPlotterInizialized () {
|
||||
|
||||
@@ -132,6 +132,7 @@ function newTimelineChart () {
|
||||
plotterManager.container.frame.position.x = 0
|
||||
plotterManager.container.frame.position.y = 0
|
||||
|
||||
plotterManager.fitFunction = thisObject.fitFunction
|
||||
plotterManager.initialize(productsPanel, pExchange, pMarket, onPlotterManagerReady)
|
||||
|
||||
function onPlotterManagerReady (err) {
|
||||
|
||||
Reference in new issue
Block a user