[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:
Victor Woeltjen 2014-12-24 11:14:38 -08:00
parent fc0376296d
commit 74f2af1011
3 changed files with 11 additions and 3 deletions

View File

@ -86,7 +86,10 @@ define(
// Set up available modes (stacked/overlaid), based on the // Set up available modes (stacked/overlaid), based on the
// set of telemetry objects in this plot view. // set of telemetry objects in this plot view.
function setupModes(telemetryObjects) { function setupModes(telemetryObjects) {
modeOptions = new PlotModeOptions(telemetryObjects || []); modeOptions = new PlotModeOptions(
telemetryObjects || [],
subPlotFactory
);
} }
// Update all sub-plots // Update all sub-plots

View File

@ -3,10 +3,9 @@
define( define(
[ [
'./elements/PlotPosition', './elements/PlotPosition',
'./elements/PlotFormatter',
'./elements/PlotTickGenerator' './elements/PlotTickGenerator'
], ],
function (PlotPosition, PlotFormatter, PlotTickGenerator) { function (PlotPosition, PlotTickGenerator) {
"use strict"; "use strict";
var DOMAIN_TICKS = 5, var DOMAIN_TICKS = 5,

View File

@ -23,6 +23,12 @@
"implementation": "TelemetryCapability.js", "implementation": "TelemetryCapability.js",
"depends": [ "$injector", "$q", "$log" ] "depends": [ "$injector", "$q", "$log" ]
} }
],
"services": [
{
"key": "telemetryFormatter",
"implementation": "TelemetryFormatter.js"
}
] ]
} }
} }