Skip to content

Commit

Permalink
Fixed linting issues introduced with storybook update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomktjemsland committed Feb 27, 2024
1 parent 5d68405 commit a0121f6
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/plots/area-plot.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { area } from 'd3-shape';
import Plot from './plot';
import { PlotData, AreaPlotOptions } from './interfaces';
import { AreaPlotOptions } from './interfaces';
import { Scale } from '../common/interfaces';

/**
* Area plot
*/
export default class AreaPlot extends Plot<AreaPlotOptions> {

/**
* Renders area plot to canvas context
* @param ctx canvas context instance
Expand Down
3 changes: 1 addition & 2 deletions src/plots/dot-plot.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Plot from './plot';
import { Scale } from '../common/interfaces';
import { PlotData, DotPlotOptions } from './interfaces';
import { DotPlotOptions } from './interfaces';
import { ScaleHelper } from '../utils';

/**
* Dot plot
*/
export default class DotPlot extends Plot<DotPlotOptions> {

/**
* Renders dot plot to canvas context
*/
Expand Down
2 changes: 1 addition & 1 deletion src/plots/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ export interface DifferentialPlotOptions extends PlotOptions {

}

export type AnyPlotOptions = PlotOptions | LinePlotOptions | DotPlotOptions | AreaPlotOptions | DifferentialPlotOptions ;
export type AnyPlotOptions = PlotOptions | LinePlotOptions | DotPlotOptions | AreaPlotOptions | DifferentialPlotOptions;
1 change: 0 additions & 1 deletion src/plots/line-plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { PlotData, LinePlotOptions } from './interfaces';
* Line plot
*/
export default class LinePlot extends Plot<LinePlotOptions> {

/**
* Renders line plot to canvas context
*/
Expand Down
1 change: 0 additions & 1 deletion src/plots/line-step-plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import stepCustom from './generators/step-custom';
* Line-step plot
*/
export default class LineStepPlot extends Plot<LinePlotOptions> {

/**
* Renders line-step plot to canvas context
*/
Expand Down
2 changes: 1 addition & 1 deletion src/tracks/canvas-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TrackOptions, OnMountEvent, OnUpdateEvent } from './interfaces';
/**
* Base track for tracks that renders to a canvas context
*/
export default class CanvasTrack<TrackOptions> extends Track<TrackOptions> {
export default class CanvasTrack<TOptions extends TrackOptions> extends Track<TOptions> {
ctx: CanvasRenderingContext2D;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/tracks/svg-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { OnMountEvent, OnUpdateEvent, TrackOptions } from './interfaces';
/**
* Base track for tracks that renders SVG content
*/
export default abstract class SvgTrack<TrackOptions> extends Track<TrackOptions> {
export default abstract class SvgTrack<TOptions extends TrackOptions> extends Track<TOptions> {
protected plotGroup: D3Selection;

/**
Expand Down

0 comments on commit a0121f6

Please sign in to comment.