mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 03:16:41 +00:00
[Plot] Update domain format
...on change in user's domain selection.
This commit is contained in:
parent
d60bf94501
commit
b30e72081c
@ -209,8 +209,15 @@ define(
|
|||||||
subscribe($scope.domainObject);
|
subscribe($scope.domainObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateDomainFormat() {
|
||||||
|
var domainAxis = $scope.axes[0];
|
||||||
|
plotTelemetryFormatter
|
||||||
|
.setDomainFormat(domainAxis.active.format);
|
||||||
|
}
|
||||||
|
|
||||||
function domainRequery(newDomain) {
|
function domainRequery(newDomain) {
|
||||||
if (newDomain !== lastDomain) {
|
if (newDomain !== lastDomain) {
|
||||||
|
updateDomainFormat();
|
||||||
requery();
|
requery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -226,17 +233,11 @@ define(
|
|||||||
var domainAxis = $scope.axes[0];
|
var domainAxis = $scope.axes[0];
|
||||||
|
|
||||||
domainAxis.chooseOption(bounds.domain);
|
domainAxis.chooseOption(bounds.domain);
|
||||||
plotTelemetryFormatter
|
updateDomainFormat();
|
||||||
.setDomainFormat(domainAxis.active.format);
|
|
||||||
setBasePanZoom(bounds);
|
setBasePanZoom(bounds);
|
||||||
requery();
|
requery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function updateDomainFormat(format) {
|
|
||||||
plotTelemetryFormatter.setDomainFormat(format);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.modeOptions = new PlotModeOptions([], subPlotFactory);
|
this.modeOptions = new PlotModeOptions([], subPlotFactory);
|
||||||
this.updateValues = updateValues;
|
this.updateValues = updateValues;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user