mirror of
https://github.com/nasa/openmct.git
synced 2025-05-03 01:02:52 +00:00
* New view for plot underlays * Update to show markers from data * Add scatter plot x and y axes configuration * Add color properties for scatter plots * Add x and y axis min and max to work with underlays * Use request API for telemetry (telemetry collections bug) * Allow zero values * Add pan and zoom functionality * Glyphs and text changes for Scatter Plots IMPORTANT: ANY MERGE CONFLICTS WITH FONT FILES SHOULD OVERRIDE USING THIS COMMIT - DO NOT MERGE CHANGES! - Changed name to 'Scatter Plot', refined description; - New icon glyph and SVG bg for `icon-plot-scatter`, font-files updated; - More clarity added to underlay min/max form labels for clarity; * Glyphs and text changes for Scatter Plots - Add updated Icomoon file; * Inspector refinements for Scatter Plots - Consolidated Inspector section layout; - Improved ColorSwatch.vue code using <template> tags to allow less brittle CSS styling; - Improved Inspector CSS to remove overly specific selectors for `grid-row` elements; * Enable indeendent time conductor * Add button to remove scatter plot underlay * Adds tests for scatter plot * Modded look and icon of file remove button Co-authored-by: Nikhil <nikhil.k.mandlik@nasa.gov> Co-authored-by: Charles Hacskaylo <charlesh88@gmail.com> Co-authored-by: Andrew Henry <akhenry@gmail.com>
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
import { BAR_GRAPH_INSPECTOR_KEY, BAR_GRAPH_KEY } from '../BarGraphConstants';
|
|
import Vue from 'vue';
|
|
import BarGraphOptions from "./BarGraphOptions.vue";
|
|
|
|
export default function BarGraphInspectorViewProvider(openmct) {
|
|
return {
|
|
key: BAR_GRAPH_INSPECTOR_KEY,
|
|
name: 'Bar Graph Inspector View',
|
|
canView: function (selection) {
|
|
if (selection.length === 0 || selection[0].length === 0) {
|
|
return false;
|
|
}
|
|
|
|
let object = selection[0][0].context.item;
|
|
|
|
return object
|
|
&& object.type === BAR_GRAPH_KEY;
|
|
},
|
|
view: function (selection) {
|
|
let component;
|
|
|
|
return {
|
|
show: function (element) {
|
|
component = new Vue({
|
|
el: element,
|
|
components: {
|
|
BarGraphOptions
|
|
},
|
|
provide: {
|
|
openmct,
|
|
domainObject: selection[0][0].context.item
|
|
},
|
|
template: '<bar-graph-options></bar-graph-options>'
|
|
});
|
|
},
|
|
destroy: function () {
|
|
if (component) {
|
|
component.$destroy();
|
|
component = undefined;
|
|
}
|
|
}
|
|
};
|
|
},
|
|
priority: function () {
|
|
return 1;
|
|
}
|
|
};
|
|
}
|