[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:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -23,6 +23,12 @@
|
|||||||
"implementation": "TelemetryCapability.js",
|
"implementation": "TelemetryCapability.js",
|
||||||
"depends": [ "$injector", "$q", "$log" ]
|
"depends": [ "$injector", "$q", "$log" ]
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
|
"key": "telemetryFormatter",
|
||||||
|
"implementation": "TelemetryFormatter.js"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user