mirror of
https://github.com/nasa/openmct.git
synced 2025-01-11 23:42:41 +00:00
[Time Conductor] Remove unused watches from plot
This commit is contained in:
parent
b375ede217
commit
caee1f520f
@ -176,7 +176,6 @@ define(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Create a new subscription; telemetrySubscriber gets
|
// Create a new subscription; telemetrySubscriber gets
|
||||||
// to do the meaningful work here.
|
// to do the meaningful work here.
|
||||||
function subscribe(domainObject) {
|
function subscribe(domainObject) {
|
||||||
@ -207,6 +206,7 @@ define(
|
|||||||
// Respond to a display bounds change (requery for data)
|
// Respond to a display bounds change (requery for data)
|
||||||
function changeDisplayBounds(event, bounds) {
|
function changeDisplayBounds(event, bounds) {
|
||||||
var domainAxis = $scope.axes[0];
|
var domainAxis = $scope.axes[0];
|
||||||
|
|
||||||
domainAxis.chooseOption(bounds.domain);
|
domainAxis.chooseOption(bounds.domain);
|
||||||
plotTelemetryFormatter
|
plotTelemetryFormatter
|
||||||
.setDomainFormat(domainAxis.active.format);
|
.setDomainFormat(domainAxis.active.format);
|
||||||
@ -239,16 +239,9 @@ define(
|
|||||||
new PlotAxis("range", [], AXIS_DEFAULTS[1])
|
new PlotAxis("range", [], AXIS_DEFAULTS[1])
|
||||||
];
|
];
|
||||||
|
|
||||||
// Request new data whenever domain selection changes;
|
|
||||||
// ordering and bounding of data may change.
|
|
||||||
$scope.$watch("axes[0].active.key", replot);
|
|
||||||
|
|
||||||
// Subscribe to telemetry when a domain object becomes available
|
// Subscribe to telemetry when a domain object becomes available
|
||||||
$scope.$watch('domainObject', subscribe);
|
$scope.$watch('domainObject', subscribe);
|
||||||
|
|
||||||
// Reformat timestamps when needed
|
|
||||||
$scope.$watch('axes[0].active.format', updateDomainFormat);
|
|
||||||
|
|
||||||
// Respond to external bounds changes
|
// Respond to external bounds changes
|
||||||
$scope.$on("telemetry:display:bounds", changeDisplayBounds);
|
$scope.$on("telemetry:display:bounds", changeDisplayBounds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user