mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 20:28:14 +00:00
[Plot] Add switcher for Stacked/Overlaid
Add switcher to handle changing between Stacked and Overlaid plots. WTD-625.
This commit is contained in:
36
platform/features/plot/src/modes/PlotModeOptions.js
Normal file
36
platform/features/plot/src/modes/PlotModeOptions.js
Normal file
@ -0,0 +1,36 @@
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
[],
|
||||
function (PlotOverlayMode, PlotStackedMode) {
|
||||
"use strict";
|
||||
|
||||
var STACKED = {
|
||||
key: "stacked",
|
||||
name: "Stacked",
|
||||
glyph: "8"
|
||||
},
|
||||
OVERLAID = {
|
||||
key: "overlaid",
|
||||
name: "Overlaid",
|
||||
glyph: "6"
|
||||
};
|
||||
|
||||
function PlotModeOptions(telemetryObjects) {
|
||||
var options = telemetryObjects.length > 1 ?
|
||||
[ STACKED, OVERLAID ] : [ OVERLAID, STACKED ];
|
||||
|
||||
|
||||
return {
|
||||
getModeOptions: function () {
|
||||
return options;
|
||||
},
|
||||
getMode: function (option) {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return PlotModeOptions;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user