mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[Plot] Fix refactoring issues
Fix issues related to refactoring of view-level to subplot-level behavior, such that previous functionality is restored. This refactoring supports introduction of a stacked-plot mode, for WTD-625.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/*global define*/
|
/*global define*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
['elements/PlotPosition', 'elements/PlotFormatter', 'elements/PlotTickGenerator'],
|
['./elements/PlotPosition', './elements/PlotFormatter', './elements/PlotTickGenerator'],
|
||||||
function (PlotPosition, PlotFormatter, PlotTickGenerator) {
|
function (PlotPosition, PlotFormatter, PlotTickGenerator) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@ -191,6 +191,9 @@ define(
|
|||||||
updateDrawingBounds();
|
updateDrawingBounds();
|
||||||
updateMarqueeBox();
|
updateMarqueeBox();
|
||||||
updateTicks();
|
updateTicks();
|
||||||
|
},
|
||||||
|
setDomainOffset: function (value) {
|
||||||
|
domainOffset = value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*global define*/
|
/*global define*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
[],
|
["./PlotOverlayMode"],
|
||||||
function (PlotOverlayMode, PlotStackedMode) {
|
function (PlotOverlayMode, PlotStackedMode) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ define(
|
|||||||
key: "overlaid",
|
key: "overlaid",
|
||||||
name: "Overlaid",
|
name: "Overlaid",
|
||||||
glyph: "6",
|
glyph: "6",
|
||||||
factory: PlotStackedMode
|
factory: PlotOverlayMode
|
||||||
};
|
};
|
||||||
|
|
||||||
function PlotModeOptions(telemetryObjects) {
|
function PlotModeOptions(telemetryObjects) {
|
||||||
|
@ -22,7 +22,7 @@ define(
|
|||||||
// Track the domain offset, used to bias domain values
|
// Track the domain offset, used to bias domain values
|
||||||
// to minimize loss of precision when converted to 32-bit
|
// to minimize loss of precision when converted to 32-bit
|
||||||
// floating point values for display.
|
// floating point values for display.
|
||||||
domainOffset = prepared.getDomainOffset();
|
subplot.setDomainOffset(prepared.getDomainOffset());
|
||||||
|
|
||||||
// Draw the buffers. Select color by index.
|
// Draw the buffers. Select color by index.
|
||||||
subplot.getDrawingObject().lines = prepared.getBuffers().map(function (buf, i) {
|
subplot.getDrawingObject().lines = prepared.getBuffers().map(function (buf, i) {
|
||||||
|
Reference in New Issue
Block a user