mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +00:00
[Time Conductor] Change method name
Prefer simpler method names for public API.
This commit is contained in:
parent
4ced6c44a6
commit
ff1fd26efc
@ -73,7 +73,7 @@ define(
|
||||
repScope.$broadcast('telemetry:query:bounds', bounds(
|
||||
conductor.queryStart(),
|
||||
conductor.queryEnd(),
|
||||
conductor.activeDomain()
|
||||
conductor.domain()
|
||||
));
|
||||
}
|
||||
|
||||
@ -83,16 +83,16 @@ define(
|
||||
repScope.$broadcast('telemetry:display:bounds', bounds(
|
||||
conductor.displayStart(),
|
||||
conductor.displayEnd(),
|
||||
conductor.activeDomain()
|
||||
conductor.domain()
|
||||
));
|
||||
}
|
||||
|
||||
function updateDomain(value) {
|
||||
conductor.activeDomain(value);
|
||||
conductor.domain(value);
|
||||
repScope.$broadcast('telemetry:display:bounds', bounds(
|
||||
conductor.displayStart(),
|
||||
conductor.displayEnd(),
|
||||
conductor.activeDomain()
|
||||
conductor.domain()
|
||||
));
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ define(
|
||||
};
|
||||
conductorScope.ngModel.options =
|
||||
conductor.domainOptions().map(makeOption);
|
||||
conductorScope.ngModel.domain = conductor.activeDomain();
|
||||
conductorScope.ngModel.domain = conductor.domain();
|
||||
|
||||
conductorScope
|
||||
.$watch('ngModel.conductor.outer.start', updateConductorOuter);
|
||||
|
@ -72,7 +72,7 @@ define(
|
||||
var conductor = this.conductorService.getConductor(),
|
||||
start = conductor.displayStart(),
|
||||
end = conductor.displayEnd(),
|
||||
domain = conductor.activeDomain();
|
||||
domain = conductor.domain();
|
||||
|
||||
function amendRequest(request) {
|
||||
request = request || {};
|
||||
|
@ -39,7 +39,7 @@ define(
|
||||
*/
|
||||
function ConductorTelemetrySeries(series, conductor) {
|
||||
var max = series.getPointCount() - 1,
|
||||
domain = conductor.activeDomain();
|
||||
domain = conductor.domain();
|
||||
|
||||
function binSearch(min, max, value) {
|
||||
var mid = Math.floor((min + max) / 2);
|
||||
|
@ -44,7 +44,7 @@ define(
|
||||
this.inner = { start: start, end: end };
|
||||
this.outer = { start: start, end: end };
|
||||
this.domains = domains;
|
||||
this.domain = domains[0].key;
|
||||
this.activeDomain = domains[0].key;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -110,7 +110,7 @@ define(
|
||||
* @param {string} [key] the key identifying the domain choice
|
||||
* @returns {TelemetryDomain} the active telemetry domain
|
||||
*/
|
||||
TimeConductor.prototype.activeDomain = function (key) {
|
||||
TimeConductor.prototype.domain = function (key) {
|
||||
function matchesKey(domain) {
|
||||
return domain.key === key;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user