+ )}
-// useEffect(() => {
-// if (selectedTrain) {
-// const positions = selectedTrain.base.speeds.map((speed) => speed.position);
-// const newPositionsScaleDomain = getScaleDomainFromValues(positions);
-// setPositionScaleDomain({
-// initial: newPositionsScaleDomain,
-// current: newPositionsScaleDomain,
-// });
-// }
-// }, [selectedTrain]);
+ {/* SIMULATION: TIMELINE — TEMPORARILY DISABLED
+ {simulation.trains.length && (
+
+ )}
+ */}
-// return simulation.trains.length === 0 && !isUpdating ? null : (
-//
-// {/* SIMULATION : STICKY BAR */}
-//
-//
-//
-// {selectedTrain && }
-//
-//
-//
-//
-//
-//
+ {/* SIMULATION : SPACE TIME CHART */}
+ {spaceTimeData && selectedTrain && pathProperties && (
+
+
+
-// {/* SIMULATION: TIMELINE — TEMPORARILY DISABLED
-// {simulation.trains.length && (
-//
-// )}
-// */}
+
+
+ )}
-// {/* SIMULATION : SPACE TIME CHART */}
-//
-//
-//
+ {/* TRAIN : SPACE SPEED CHART */}
+ {selectedTrainRollingStock && trainSimulation && pathProperties && (
+
+ )}
-//
-//
-// {simulation.trains.length > 0 && (
-//
-// )}
-//
-//
-//
+ {/* TRAIN : CURVES & SLOPES */}
+ {trainSimulation.status === 'success' && pathProperties && (
+
+
+
+ setInitialHeightOfSpaceCurvesSlopesChart(heightOfSpaceCurvesSlopesChart)
+ }
+ onResize={(_e, _dir, _refToElement, delta) => {
+ setHeightOfSpaceCurvesSlopesChart(
+ initialHeightOfSpaceCurvesSlopesChart + delta.height
+ );
+ }}
+ >
+
+
+
+
+ )}
-// {/* TRAIN : SPACE SPEED CHART */}
-// {selectedTrain && (
-//
-// )}
+ {/* SIMULATION : MAP */}
+
-// {/* TRAIN : CURVES & SLOPES */}
-//
-//
-// {selectedTrain && (
-//
-// setInitialHeightOfSpaceCurvesSlopesChart(heightOfSpaceCurvesSlopesChart)
-// }
-// onResize={(_e, _dir, _refToElement, delta) => {
-// setHeightOfSpaceCurvesSlopesChart(
-// initialHeightOfSpaceCurvesSlopesChart + delta.height
-// );
-// }}
-// >
-//
-//
-// )}
-//
-//
-
-// {/* TRAIN : DRIVER TRAIN SCHEDULE */}
-// {selectedTrain && selectedTrainRollingStock && (
-//
-//
-//
-// )}
-
-// {/* SIMULATION : MAP */}
-//
-//
-// );
-// };
-
-const SimulationResultsV2 = () => null;
+ {/* TRAIN : DRIVER TRAIN SCHEDULE */}
+ {selectedTrain &&
+ trainSimulation.status === 'success' &&
+ pathProperties &&
+ selectedTrainRollingStock &&
+ infraId && (
+