Skip to content
Snippets Groups Projects
Commit 679aa04d authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Merge branch 'plotly' into 'main'

Plotly

See merge request !236
parents 452840d5 3bb9466c
No related branches found
No related tags found
1 merge request!236Plotly
Pipeline #504492 passed with warnings
import {PlotData} from 'plotly.js'; import {PlotData, PlotMarker, ScatterLine} from 'plotly.js';
import {PlotlyConfig} from './plotly-config.model'; import {PlotlyConfig} from './plotly-config.model';
import {PlotlyLayout} from './plotly-layout.model'; import {PlotlyLayout} from './plotly-layout.model';
...@@ -8,7 +8,7 @@ import {PlotlyLayout} from './plotly-layout.model'; ...@@ -8,7 +8,7 @@ import {PlotlyLayout} from './plotly-layout.model';
*/ */
export interface PlotlyPlot { export interface PlotlyPlot {
/** Plot data */ /** Plot data */
data: Partial<PlotData>[]; data: Partial<NshmpPlotData>[];
/** Plot id */ /** Plot id */
id: string; id: string;
/** Plotly config */ /** Plotly config */
...@@ -27,3 +27,22 @@ export interface PlotlyPlot { ...@@ -27,3 +27,22 @@ export interface PlotlyPlot {
*/ */
panelBreakpoint?: number; panelBreakpoint?: number;
} }
export interface NshmpPlotData extends PlotData {
line: Partial<NshmpScatterLine>;
marker: Partial<NshmpPlotMarker>;
}
export interface NshmpScatterLine extends ScatterLine {
/** Width when line is selected */
widthSelected: number;
/** Line width when in mobile screen */
widthMobile: number;
}
export interface NshmpPlotMarker extends PlotMarker {
/** Size when line is selected */
sizeSelected: number;
/** Size when in mobile screen */
sizeMobile: number;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment