Skip to content

Commit

Permalink
move customPaneView into internal interface
Browse files Browse the repository at this point in the history
  • Loading branch information
illetid committed Nov 6, 2024
1 parent 8c74fdc commit 1258a4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/model/series/series-def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export interface SeriesDefinition<T extends SeriesType> {
* Default series options.
*/
readonly defaultOptions: SeriesStyleOptionsMap[T];
/**
* Custom pane view (optional).
*/
readonly customPaneView?: ICustomSeriesPaneView<unknown>;
}

export const isSeriesDefinition = <T extends SeriesType>(value: unknown): value is SeriesDefinitionInternal<T> => {
Expand All @@ -33,4 +29,5 @@ export const isSeriesDefinition = <T extends SeriesType>(value: unknown): value

export interface SeriesDefinitionInternal<T extends SeriesType> extends SeriesDefinition<T> {
createPaneView: (series: ISeries<T>, model: IChartModelBase, customPaneView?: ICustomSeriesPaneView<unknown>) => IUpdatablePaneView;
customPaneView?: ICustomSeriesPaneView<unknown>;
}

0 comments on commit 1258a4b

Please sign in to comment.