Merge remote-tracking branch 'origin/open1223' into open-1338
Resolve merge conflicts due to whitespace changes.
This commit is contained in:
@@ -29,10 +29,11 @@ define(
|
||||
"./elements/PlotUpdater",
|
||||
"./elements/PlotPalette",
|
||||
"./elements/PlotAxis",
|
||||
"./elements/PlotLimitTracker",
|
||||
"./modes/PlotModeOptions",
|
||||
"./SubPlotFactory"
|
||||
],
|
||||
function (PlotUpdater, PlotPalette, PlotAxis, PlotModeOptions, SubPlotFactory) {
|
||||
function (PlotUpdater, PlotPalette, PlotAxis, PlotLimitTracker, PlotModeOptions, SubPlotFactory) {
|
||||
"use strict";
|
||||
|
||||
var AXIS_DEFAULTS = [
|
||||
@@ -62,6 +63,7 @@ define(
|
||||
modeOptions = new PlotModeOptions([], subPlotFactory),
|
||||
subplots = [],
|
||||
cachedObjects = [],
|
||||
limitTracker,
|
||||
updater,
|
||||
handle,
|
||||
scheduleUpdate,
|
||||
@@ -108,6 +110,10 @@ define(
|
||||
($scope.axes[1].active || {}).key,
|
||||
PLOT_FIXED_DURATION
|
||||
);
|
||||
limitTracker = new PlotLimitTracker(
|
||||
handle,
|
||||
($scope.axes[1].active || {}).key
|
||||
);
|
||||
}
|
||||
|
||||
// Handle new telemetry data in this plot
|
||||
@@ -119,6 +125,9 @@ define(
|
||||
updater.update();
|
||||
modeOptions.getModeHandler().plotTelemetry(updater);
|
||||
}
|
||||
if (limitTracker) {
|
||||
limitTracker.update();
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -238,6 +247,15 @@ define(
|
||||
getSubPlots: function () {
|
||||
return modeOptions.getModeHandler().getSubPlots();
|
||||
},
|
||||
/**
|
||||
* Get the CSS class to apply to the legend for this domain
|
||||
* object; this will reflect limit state.
|
||||
* @returns {string} the CSS class
|
||||
*/
|
||||
getLegendClass: function (telemetryObject) {
|
||||
return limitTracker &&
|
||||
limitTracker.getLegendClass(telemetryObject);
|
||||
},
|
||||
/**
|
||||
* Explicitly update all plots.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user