mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Telemetry] Refactor plot to use TelemetryFormatter
Refactor plot view to use an injected telemetry formatter, instead of explicitly including moment. WTD-599.
This commit is contained in:
@ -8,9 +8,10 @@ define(
|
||||
"./elements/PlotPreparer",
|
||||
"./elements/PlotPalette",
|
||||
"./elements/PlotAxis",
|
||||
"./modes/PlotModeOptions"
|
||||
"./modes/PlotModeOptions",
|
||||
"./SubPlotFactory"
|
||||
],
|
||||
function (PlotPreparer, PlotPalette, PlotAxis, PlotModeOptions) {
|
||||
function (PlotPreparer, PlotPalette, PlotAxis, PlotModeOptions, SubPlotFactory) {
|
||||
"use strict";
|
||||
|
||||
var AXIS_DEFAULTS = [
|
||||
@ -29,8 +30,9 @@ define(
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function PlotController($scope) {
|
||||
var modeOptions = new PlotModeOptions([]),
|
||||
function PlotController($scope, telemetryFormatter) {
|
||||
var subPlotFactory = new SubPlotFactory(telemetryFormatter),
|
||||
modeOptions = new PlotModeOptions([], subPlotFactory),
|
||||
subplots = [],
|
||||
domainOffset;
|
||||
|
||||
|
Reference in New Issue
Block a user