From 312050b8be350891a327ea4708d7fa4a272dcf22 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 14 Feb 2020 20:51:25 +0100 Subject: [PATCH] Bug Fixed --- ChartingSpace/TimelineChart.js | 2 ++ Dashboard.js => PostLoader.js | 0 Spaces/ChartingSpace.js | 12 ++++++------ Spaces/DesignSpace.js | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) rename Dashboard.js => PostLoader.js (100%) diff --git a/ChartingSpace/TimelineChart.js b/ChartingSpace/TimelineChart.js index c92c946b6..4444579bb 100644 --- a/ChartingSpace/TimelineChart.js +++ b/ChartingSpace/TimelineChart.js @@ -239,6 +239,8 @@ function newTimelineChart () { timelineChartCoordinateSystem.max.x = timeMachineCoordinateSystem.max.x timelineChartCoordinateSystem.maxHeight = timeMachineCoordinateSystem.maxHeight timelineChartCoordinateSystem.maxWidth = timeMachineCoordinateSystem.maxWidth + timelineChartCoordinateSystem.autoMinXScale = timeMachineCoordinateSystem.autoMinXScale + timelineChartCoordinateSystem.autoMaxXScale = timeMachineCoordinateSystem.autoMaxXScale timelineChartCoordinateSystem.recalculateScale() } diff --git a/Dashboard.js b/PostLoader.js similarity index 100% rename from Dashboard.js rename to PostLoader.js diff --git a/Spaces/ChartingSpace.js b/Spaces/ChartingSpace.js index 81e30a962..be86e976b 100644 --- a/Spaces/ChartingSpace.js +++ b/Spaces/ChartingSpace.js @@ -265,12 +265,12 @@ function newChartingSpace () { if (thisObject.payload.node === undefined) { return } syncWithDesignerLoop = syncWithDesignerLoop + 0.00000000001 - if (thisObject.payload.node.clusters !== undefined) { - for (let i = 0; i < thisObject.payload.node.clusters.length; i++) { - let cluster = thisObject.payload.node.clusters[i] - if (cluster.timeMachines !== undefined) { - for (let j = 0; j < cluster.timeMachines.length; j++) { - let node = cluster.timeMachines[j] + if (thisObject.payload.node.dashboards !== undefined) { + for (let i = 0; i < thisObject.payload.node.dashboards.length; i++) { + let dashboard = thisObject.payload.node.dashboards[i] + if (dashboard.timeMachines !== undefined) { + for (let j = 0; j < dashboard.timeMachines.length; j++) { + let node = dashboard.timeMachines[j] let timeMachine = timeMachinesMap.get(node.id) if (timeMachine === undefined) { /* The time machine node is new, thus we need to initialize a new timeMachine */ diff --git a/Spaces/DesignSpace.js b/Spaces/DesignSpace.js index c2cba9767..77485025f 100644 --- a/Spaces/DesignSpace.js +++ b/Spaces/DesignSpace.js @@ -242,7 +242,7 @@ function newDesignSpace () { 'session-based-data', 'session-independent-data', 'session-reference', - 'cluster', + 'dashboard', 'toggle-auto-scale-manual', 'toggle-auto-scale-auto-min-max', 'toggle-auto-scale-auto-max',