mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Plot] Update stacked plots immediately
When changes to pan-zoom bounds are made in one subplot, this will effect the pan-zoom bounds of other subplots. Ensure this occurs immediately. WTD-625.
This commit is contained in:
@ -90,6 +90,10 @@ define(
|
||||
modeOptions.getModeHandler().plotTelemetry(prepared);
|
||||
}
|
||||
|
||||
function updateSubplot(subplot) {
|
||||
subplot.update();
|
||||
}
|
||||
|
||||
function setupModes(telemetryObjects) {
|
||||
modeOptions = new PlotModeOptions(telemetryObjects || []);
|
||||
}
|
||||
@ -159,6 +163,14 @@ define(
|
||||
*/
|
||||
getSubPlots: function () {
|
||||
return modeOptions.getModeHandler().getSubPlots();
|
||||
},
|
||||
/**
|
||||
* Explicitly update all plots.
|
||||
*/
|
||||
update: function () {
|
||||
modeOptions.getModeHandler()
|
||||
.getSubPlots()
|
||||
.forEach(updateSubplot);
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user