UNPKG

@visactor/openinula-vchart

Version:

The openinula version of VChart 4.x

15 lines (14 loc) 695 B
import { PropsWithChildren, ReactNode } from 'openinula'; import { BaseComponentProps } from '../BaseComponent'; import type { ITooltipSpec, ITooltipActual, TooltipHandlerParams } from '@visactor/vchart'; export type TooltipProps = PropsWithChildren<ITooltipSpec & IReactTooltipProps & BaseComponentProps>; export interface ITooltipRenderProps { tooltipElement: HTMLElement; actualTooltip: ITooltipActual; params: TooltipHandlerParams; } export type TooltipRender = (tooltipElement: HTMLElement, actualTooltip: ITooltipActual, params: TooltipHandlerParams) => ReactNode; export interface IReactTooltipProps { tooltipRender?: TooltipRender; reserveDefaultTooltip?: boolean; }