mirror of
https://github.com/nasa/openmct.git
synced 2025-05-06 18:48:27 +00:00
[Time Conductor] Pass domain with events
This commit is contained in:
parent
928e31b548
commit
3d8aec2d01
@ -60,9 +60,9 @@ define(
|
|||||||
this.$compile = $compile;
|
this.$compile = $compile;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Combine start/end times into a single object
|
// Combine start/end times & domain into a single object
|
||||||
function bounds(start, end) {
|
function bounds(start, end, domain) {
|
||||||
return { start: start, end: end };
|
return { start: start, end: end, domain: domain };
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the time conductor from the scope
|
// Update the time conductor from the scope
|
||||||
@ -70,27 +70,30 @@ define(
|
|||||||
function updateConductorOuter() {
|
function updateConductorOuter() {
|
||||||
conductor.queryStart(conductorScope.ngModel.conductor.outer.start);
|
conductor.queryStart(conductorScope.ngModel.conductor.outer.start);
|
||||||
conductor.queryEnd(conductorScope.ngModel.conductor.outer.end);
|
conductor.queryEnd(conductorScope.ngModel.conductor.outer.end);
|
||||||
repScope.$broadcast(
|
repScope.$broadcast('telemetry:query:bounds', bounds(
|
||||||
'telemetry:query:bounds',
|
conductor.queryStart(),
|
||||||
bounds(conductor.queryStart(), conductor.queryEnd())
|
conductor.queryEnd(),
|
||||||
);
|
conductor.activeDomain()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateConductorInner() {
|
function updateConductorInner() {
|
||||||
conductor.displayStart(conductorScope.ngModel.conductor.inner.start);
|
conductor.displayStart(conductorScope.ngModel.conductor.inner.start);
|
||||||
conductor.displayEnd(conductorScope.ngModel.conductor.inner.end);
|
conductor.displayEnd(conductorScope.ngModel.conductor.inner.end);
|
||||||
repScope.$broadcast(
|
repScope.$broadcast('telemetry:display:bounds', bounds(
|
||||||
'telemetry:display:bounds',
|
conductor.displayStart(),
|
||||||
bounds(conductor.displayStart(), conductor.displayEnd())
|
conductor.displayEnd(),
|
||||||
);
|
conductor.activeDomain()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDomain(value) {
|
function updateDomain(value) {
|
||||||
conductor.activeDomain(value);
|
conductor.activeDomain(value);
|
||||||
repScope.$broadcast(
|
repScope.$broadcast('telemetry:display:bounds', bounds(
|
||||||
'telemetry:query:bounds',
|
conductor.displayStart(),
|
||||||
bounds(conductor.queryStart(), conductor.queryEnd())
|
conductor.displayEnd(),
|
||||||
);
|
conductor.activeDomain()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// telemetry domain metadata -> option for a select control
|
// telemetry domain metadata -> option for a select control
|
||||||
|
Loading…
x
Reference in New Issue
Block a user