[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:
Victor Woeltjen
2014-12-11 19:33:09 -08:00
parent 9c1d72f917
commit 188e98a78b
4 changed files with 18 additions and 10 deletions

View File

@ -37,12 +37,10 @@ define(
function plotTelemetry(prepared) {
// Fit to the boundaries of the data, but don't
// override any user-initiated pan-zoom changes.
panZoomStackGroup.getPanZoomStacks().forEach(function (stack) {
stack.setBasePanZoom(
prepared.getOrigin(),
prepared.getDimensions()
);
});
panZoomStackGroup.setBasePanZoom(
prepared.getOrigin(),
prepared.getDimensions()
);
subplots.forEach(function (subplot, index) {
plotTelemetryTo(subplot, prepared, index);