mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[Plot] Move throttling out of plot
Move throttling associated with display bounds changes out of Plot.
This commit is contained in:
@ -66,7 +66,6 @@ define(
|
|||||||
cachedObjects = [],
|
cachedObjects = [],
|
||||||
updater,
|
updater,
|
||||||
lastBounds,
|
lastBounds,
|
||||||
throttledRequery,
|
|
||||||
handle;
|
handle;
|
||||||
|
|
||||||
// Populate the scope with axis information (specifically, options
|
// Populate the scope with axis information (specifically, options
|
||||||
@ -188,15 +187,10 @@ define(
|
|||||||
function changeDisplayBounds(event, bounds) {
|
function changeDisplayBounds(event, bounds) {
|
||||||
self.pending = true;
|
self.pending = true;
|
||||||
releaseSubscription();
|
releaseSubscription();
|
||||||
throttledRequery();
|
subscribe($scope.domainObject);
|
||||||
setBasePanZoom(bounds);
|
setBasePanZoom(bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reestablish/reissue request for telemetry
|
|
||||||
throttledRequery = throttle(function () {
|
|
||||||
subscribe($scope.domainObject);
|
|
||||||
}, 250);
|
|
||||||
|
|
||||||
this.modeOptions = new PlotModeOptions([], subPlotFactory);
|
this.modeOptions = new PlotModeOptions([], subPlotFactory);
|
||||||
this.updateValues = updateValues;
|
this.updateValues = updateValues;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user