@@ -49,26 +49,35 @@ import {
4949 * @docid
5050 * @hidden
5151 */
52- export interface PointInteractionInfo {
53- /** @docid */
54- readonly target : basePointObject ;
52+ export interface PointInteractionInfo < TPoint extends basePointObject = basePointObject > {
53+ /**
54+ * @docid
55+ * @type object
56+ */
57+ readonly target : TPoint ;
5558}
5659
5760/**
5861 * @docid _viz_chart_components_base_chart_TooltipInfo
5962 * @hidden
6063 */
61- export interface TooltipInfo {
62- /** @docid _viz_chart_components_base_chart_TooltipInfo.target */
63- target ?: basePointObject | dxChartAnnotationConfig | any ;
64+ export interface TooltipInfo < TPoint extends basePointObject = basePointObject > {
65+ /**
66+ * @docid _viz_chart_components_base_chart_TooltipInfo.target
67+ * @type object
68+ */
69+ target ?: TPoint | dxChartAnnotationConfig | any ;
6470}
6571
6672/**
6773 * @namespace DevExpress.viz
6874 * @docid
6975 * @type object
7076 */
71- export interface BaseChartOptions < TComponent > extends BaseWidgetOptions < TComponent > {
77+ export interface BaseChartOptions <
78+ TComponent ,
79+ TPoint extends basePointObject = basePointObject ,
80+ > extends BaseWidgetOptions < TComponent > {
7281 /**
7382 * @docid
7483 * @type object
@@ -144,51 +153,56 @@ export interface BaseChartOptions<TComponent> extends BaseWidgetOptions<TCompone
144153 * @type_function_param 1 e:object
145154 * @type_function_param 1_field component:this
146155 * @type_function_param 1_field event:event
156+ * @type_function_param 1_field target:object
147157 * @notUsedInTheme
148158 * @action
149159 * @public
150160 */
151- onPointClick ?: ( ( e : NativeEventInfo < TComponent , MouseEvent | PointerEvent > & PointInteractionInfo ) => void ) | string ;
161+ onPointClick ?: ( ( e : NativeEventInfo < TComponent , MouseEvent | PointerEvent > & PointInteractionInfo < TPoint > ) => void ) | string ;
152162 /**
153163 * @docid
154164 * @type_function_param 1 e:object
155165 * @type_function_param 1_field component:object
156166 * @type_function_param 1_field element:object
167+ * @type_function_param 1_field target:object
157168 * @notUsedInTheme
158169 * @action
159170 * @public
160171 */
161- onPointHoverChanged ?: ( ( e : EventInfo < TComponent > & PointInteractionInfo ) => void ) ;
172+ onPointHoverChanged ?: ( ( e : EventInfo < TComponent > & PointInteractionInfo < TPoint > ) => void ) ;
162173 /**
163174 * @docid
164175 * @type_function_param 1 e:object
165176 * @type_function_param 1_field component:object
166177 * @type_function_param 1_field element:object
178+ * @type_function_param 1_field target:object
167179 * @notUsedInTheme
168180 * @action
169181 * @public
170182 */
171- onPointSelectionChanged ?: ( ( e : EventInfo < TComponent > & PointInteractionInfo ) => void ) ;
183+ onPointSelectionChanged ?: ( ( e : EventInfo < TComponent > & PointInteractionInfo < TPoint > ) => void ) ;
172184 /**
173185 * @docid
174186 * @default null
175187 * @type_function_param 1 e:object
176188 * @type_function_param 1_field component:this
189+ * @type_function_param 1_field target:object
177190 * @notUsedInTheme
178191 * @action
179192 * @public
180193 */
181- onTooltipHidden ?: ( ( e : EventInfo < TComponent > & TooltipInfo ) => void ) ;
194+ onTooltipHidden ?: ( ( e : EventInfo < TComponent > & TooltipInfo < TPoint > ) => void ) ;
182195 /**
183196 * @docid
184197 * @default null
185198 * @type_function_param 1 e:object
186199 * @type_function_param 1_field component:this
200+ * @type_function_param 1_field target:object
187201 * @notUsedInTheme
188202 * @action
189203 * @public
190204 */
191- onTooltipShown ?: ( ( e : EventInfo < TComponent > & TooltipInfo ) => void ) ;
205+ onTooltipShown ?: ( ( e : EventInfo < TComponent > & TooltipInfo < TPoint > ) => void ) ;
192206 /**
193207 * @docid
194208 * @default "Material"
0 commit comments