UNPKG

recharts

Version:
29 lines (28 loc) 1.21 kB
import { TooltipIndex } from '../state/tooltipSlice'; import { ChartCoordinate, TooltipEventType } from '../util/types'; import { TooltipTrigger } from '../chart/types'; import { ActiveLabel } from './types'; /** * Will receive synchronisation events from other charts. * * Reads syncMethod from state and decides how to synchronise the tooltip based on that. * * @returns void */ export declare function useSynchronisedEventsFromOtherCharts(): void; /** * Will send events to other charts. * If syncId is undefined, no events will be sent. * * This ignores the syncMethod, because that is set and computed on the receiving end. * * @param tooltipEventType from Tooltip * @param trigger from Tooltip * @param activeCoordinate from state * @param activeLabel from state * @param activeIndex from state * @param isTooltipActive from state * @returns void */ export declare function useTooltipChartSynchronisation(tooltipEventType: TooltipEventType | undefined, trigger: TooltipTrigger, activeCoordinate: ChartCoordinate | undefined, activeLabel: ActiveLabel, activeIndex: TooltipIndex | undefined, isTooltipActive: boolean): void; export declare function useBrushChartSynchronisation(): void;