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:
@ -22,14 +22,14 @@ define(
|
||||
* @param {PlotPanZoomStack} panZoomStack the stack of pan-zoom
|
||||
* states which is applicable to this sub-plot
|
||||
*/
|
||||
function SubPlot(telemetryObjects, panZoomStack) {
|
||||
function SubPlot(telemetryObjects, panZoomStack, telemetryFormatter) {
|
||||
// We are used from a template often, so maintain
|
||||
// state in local variables to allow for fast look-up,
|
||||
// as is normal for controllers.
|
||||
var draw = {},
|
||||
rangeTicks = [],
|
||||
domainTicks = [],
|
||||
formatter = new PlotFormatter(),
|
||||
formatter = telemetryFormatter,
|
||||
domainOffset,
|
||||
mousePosition,
|
||||
marqueeStart,
|
||||
|
Reference in New Issue
Block a user