UNPKG

recharts

Version:
17 lines (16 loc) • 868 B
import { Reducer } from '@reduxjs/toolkit'; import { LayoutType, Margin, Size } from '../util/types'; type ChartLayoutState = { layoutType: LayoutType; width: number; height: number; margin: Margin; /** * How much is the chart zoomed in. * Used for scaling the mouse coordinates to the chart coordinates. */ scale: number; }; export declare const setMargin: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<Margin>, "chartLayout/setMargin">, setLayout: import("@reduxjs/toolkit").ActionCreatorWithPayload<LayoutType, "chartLayout/setLayout">, setChartSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<Size, "chartLayout/setChartSize">, setScale: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "chartLayout/setScale">; export declare const chartLayoutReducer: Reducer<ChartLayoutState>; export {};