From 652b6afbd14150b6cc5df93a5117dc31de90b635 Mon Sep 17 00:00:00 2001 From: Anton Vorobev Date: Wed, 6 Dec 2023 16:24:02 +0300 Subject: [PATCH] enhancement: remove-unused-hover-data --- src/chart/inputhandlers/hover-producer.component.ts | 2 +- src/chart/model/compare-series-hover.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/chart/inputhandlers/hover-producer.component.ts b/src/chart/inputhandlers/hover-producer.component.ts index 835c213f..f5cedcac 100644 --- a/src/chart/inputhandlers/hover-producer.component.ts +++ b/src/chart/inputhandlers/hover-producer.component.ts @@ -35,7 +35,7 @@ export interface HoverParts { export interface Hover extends BaseHover, HoverParts {} export interface HoverProducerPart { - getData(hover: BaseHover): T; + getData(hover: BaseHover): T | undefined; } export interface HoverProducerParts { diff --git a/src/chart/model/compare-series-hover.ts b/src/chart/model/compare-series-hover.ts index babd3881..e8042bf3 100644 --- a/src/chart/model/compare-series-hover.ts +++ b/src/chart/model/compare-series-hover.ts @@ -5,6 +5,7 @@ */ import { ChartModel } from '../components/chart/chart.model'; import { BaseHover, HoverProducerPart } from '../inputhandlers/hover-producer.component'; +import { MainCandleSeriesModel } from './main-candle-series.model'; export interface CompareSeriesHover { instrument: string; @@ -21,7 +22,14 @@ export class CompareSeriesHoverProducerPart implements HoverProducerPart