mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 09:28:52 +00:00
[Telemetry] Expose telemetryFormatter
Expose telemetryFormatter as a service; additionally, fix some structural issues to make sure this is passed around as needed among plot components. WTD-599.
This commit is contained in:
parent
fc0376296d
commit
74f2af1011
platform
@ -86,7 +86,10 @@ define(
|
||||
// Set up available modes (stacked/overlaid), based on the
|
||||
// set of telemetry objects in this plot view.
|
||||
function setupModes(telemetryObjects) {
|
||||
modeOptions = new PlotModeOptions(telemetryObjects || []);
|
||||
modeOptions = new PlotModeOptions(
|
||||
telemetryObjects || [],
|
||||
subPlotFactory
|
||||
);
|
||||
}
|
||||
|
||||
// Update all sub-plots
|
||||
|
@ -3,10 +3,9 @@
|
||||
define(
|
||||
[
|
||||
'./elements/PlotPosition',
|
||||
'./elements/PlotFormatter',
|
||||
'./elements/PlotTickGenerator'
|
||||
],
|
||||
function (PlotPosition, PlotFormatter, PlotTickGenerator) {
|
||||
function (PlotPosition, PlotTickGenerator) {
|
||||
"use strict";
|
||||
|
||||
var DOMAIN_TICKS = 5,
|
||||
|
@ -23,6 +23,12 @@
|
||||
"implementation": "TelemetryCapability.js",
|
||||
"depends": [ "$injector", "$q", "$log" ]
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
{
|
||||
"key": "telemetryFormatter",
|
||||
"implementation": "TelemetryFormatter.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user