diff options
Diffstat (limited to 'src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js')
-rw-r--r-- | src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js b/src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js index 577463815..e34bb59d2 100644 --- a/src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js +++ b/src/plugins/plot/overlayPlot/OverlayPlotViewProvider.js @@ -1,5 +1,5 @@ /***************************************************************************** - * Open MCT, Copyright (c) 2014-2021, United States Government + * Open MCT, Copyright (c) 2014-2022, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * @@ -65,9 +65,16 @@ export default function OverlayPlotViewProvider(openmct) { } }; }, - template: '<plot :options="options"></plot>' + template: '<plot ref="plotComponent" :options="options"></plot>' }); }, + getViewContext() { + if (!component) { + return {}; + } + + return component.$refs.plotComponent.getViewContext(); + }, destroy: function () { component.$destroy(); component = undefined; |