mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 00:23:01 +00:00
[Time Conductor] Consistently throttle broadcast
Consistently throttle broadcast of bounds to minimize redundant broadcasts, nasa/openmctweb#229
This commit is contained in:
@ -103,7 +103,7 @@ define(
|
|||||||
var newDomain = conductor.domain(value);
|
var newDomain = conductor.domain(value);
|
||||||
conductorScope.parameters.format =
|
conductorScope.parameters.format =
|
||||||
newDomain && newDomain.format;
|
newDomain && newDomain.format;
|
||||||
repScope.$broadcast('telemetry:display:bounds', bounds());
|
broadcastBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
// telemetry domain metadata -> option for a select control
|
// telemetry domain metadata -> option for a select control
|
||||||
@ -141,7 +141,7 @@ define(
|
|||||||
conductorScope
|
conductorScope
|
||||||
.$watch('ngModel.domain', updateDomain);
|
.$watch('ngModel.domain', updateDomain);
|
||||||
|
|
||||||
repScope.$on('telemetry:view', updateConductorInner);
|
repScope.$on('telemetry:view', broadcastBounds);
|
||||||
};
|
};
|
||||||
|
|
||||||
ConductorRepresenter.prototype.conductorScope = function (s) {
|
ConductorRepresenter.prototype.conductorScope = function (s) {
|
||||||
|
Reference in New Issue
Block a user