mirror of
https://github.com/nasa/openmct.git
synced 2025-05-21 17:57:39 +00:00
[Time Controller] Allow datum retrieval from histories
WTD-1515
This commit is contained in:
parent
760f4b818f
commit
351181d38e
@ -79,8 +79,7 @@ define(
|
||||
|
||||
/**
|
||||
* Change the request duration.
|
||||
* @param {object|number} request the duration of historical
|
||||
* data to look at; or, the request to issue
|
||||
* @param {TelemetryRequest} request the request to issue
|
||||
* @param {Function} [callback] a callback that will be
|
||||
* invoked as new data becomes available, with the
|
||||
* domain object for which new data is available.
|
||||
@ -107,6 +106,12 @@ define(
|
||||
.then(issueRequests);
|
||||
};
|
||||
|
||||
self.getDatum = function (telemetryObject, series, index) {
|
||||
return arguments.length > 1 ?
|
||||
subscription.getDatum(telemetryObject) :
|
||||
subscription.makeDatum(telemetryObject, series, index);
|
||||
};
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -239,6 +239,10 @@ define(
|
||||
|
||||
initialize();
|
||||
this.unlistenToMutation = addMutationListener();
|
||||
|
||||
// Expose makeDatum for TelemetryHandler to use, but not
|
||||
// as part of public API
|
||||
this.makeDatum = makeDatum;
|
||||
}
|
||||
|
||||
TelemetrySubscription.prototype.unsubscribeAll = function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user