@@ -25,7 +25,7 @@ import type Precision from './common/Precision'
2525import Action from './common/Action'
2626import { ActionType , type ActionCallback } from './common/Action'
2727import { formatValue , formatTimestampToString , formatBigNumber , formatThousands , formatFoldDecimal } from './common/utils/format'
28- import { getDefaultStyles , type Styles , type TooltipLegend } from './common/Styles'
28+ import { getDefaultStyles , type TooltipFeatureStyle , type Styles , type TooltipLegend } from './common/Styles'
2929import { isArray , isString , isValid , isNumber , isBoolean , isFunction , merge } from './common/utils/typeChecks'
3030import { createId } from './common/utils/id'
3131import { binarySearchNearest } from './common/utils/number'
@@ -38,7 +38,7 @@ import { classifyTimeWeightTicks, createTimeWeightTickList } from './common/Time
3838
3939import type { Options , CustomApi , ThousandsSeparator , DecimalFold } from './Options'
4040
41- import { IndicatorDataState , type IndicatorOverride , type IndicatorCreate , type IndicatorFilter } from './component/Indicator'
41+ import { IndicatorDataState , type IndicatorOverride , type IndicatorCreate , type IndicatorFilter , type Indicator } from './component/Indicator'
4242import type IndicatorImp from './component/Indicator'
4343import { IndicatorSeries } from './component/Indicator'
4444import { getIndicatorClass } from './extension/indicator/index'
@@ -64,10 +64,10 @@ const enum ScrollLimitRole {
6464 Distance
6565}
6666
67- export interface TooltipIcon {
67+ export interface TooltipFeatureInfo {
6868 paneId : string
69- indicatorName : string
70- iconId : string
69+ indicator : Nullable < Indicator >
70+ feature : TooltipFeatureStyle
7171}
7272
7373export interface ProgressOverlayInfo {
@@ -292,7 +292,7 @@ export default class StoreImp implements Store {
292292 /**
293293 * Active tooltip icon info
294294 */
295- private _activeTooltipIcon : Nullable < TooltipIcon > = null
295+ private _activeTooltipFeatureInfo : Nullable < TooltipFeatureInfo > = null
296296
297297 /**
298298 * Actions
@@ -947,12 +947,12 @@ export default class StoreImp implements Store {
947947 return this . _crosshair
948948 }
949949
950- setActiveTooltipIcon ( icon ?: TooltipIcon ) : void {
951- this . _activeTooltipIcon = icon ?? null
950+ setActiveTooltipFeatureInfo ( info ?: TooltipFeatureInfo ) : void {
951+ this . _activeTooltipFeatureInfo = info ?? null
952952 }
953953
954- getActiveTooltipIcon ( ) : Nullable < TooltipIcon > {
955- return this . _activeTooltipIcon
954+ getActiveTooltipFeatureInfo ( ) : Nullable < TooltipFeatureInfo > {
955+ return this . _activeTooltipFeatureInfo
956956 }
957957
958958 executeAction ( type : ActionType , data ?: unknown ) : void {
@@ -1447,7 +1447,7 @@ export default class StoreImp implements Store {
14471447 this . _timeWeightTickMap . clear ( )
14481448 this . _timeWeightTickList = [ ]
14491449 this . _crosshair = { }
1450- this . _activeTooltipIcon = null
1450+ this . _activeTooltipFeatureInfo = null
14511451 }
14521452
14531453 getChart ( ) : Chart {
0 commit comments