diff --git a/libs/plotly/plotly-plot.model.ts b/libs/plotly/plotly-plot.model.ts index 1699cc8141e033cbc8918f0cb77ff2a94be2114f..89de8656e5504f67fed9eabf45d7b53afc4d0ea4 100644 --- a/libs/plotly/plotly-plot.model.ts +++ b/libs/plotly/plotly-plot.model.ts @@ -1,4 +1,4 @@ -import {PlotData} from 'plotly.js'; +import {PlotData, PlotMarker, ScatterLine} from 'plotly.js'; import {PlotlyConfig} from './plotly-config.model'; import {PlotlyLayout} from './plotly-layout.model'; @@ -8,7 +8,7 @@ import {PlotlyLayout} from './plotly-layout.model'; */ export interface PlotlyPlot { /** Plot data */ - data: Partial<PlotData>[]; + data: Partial<NshmpPlotData>[]; /** Plot id */ id: string; /** Plotly config */ @@ -27,3 +27,22 @@ export interface PlotlyPlot { */ 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; +}