recharts
Version:
React charts
14 lines (13 loc) • 759 B
TypeScript
import { ListenerMiddlewareInstance } from '@reduxjs/toolkit';
import * as React from 'react';
import { RechartsRootState } from './store';
export declare const touchEventAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<React.TouchEvent<HTMLDivElement>, string>;
/**
* Creates the middleware that throttles touchmove events and turns them into tooltip updates.
*
* Each chart store must get its own instance, because the throttling state below belongs to one chart.
* If it were shared, a touch in one chart could cancel or replace the pending touch of another chart.
*
* @returns a new listener middleware with its own throttling state
*/
export declare function createTouchEventMiddleware(): ListenerMiddlewareInstance<RechartsRootState>;