UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

15 lines 1.14 kB
import type * as React from 'react'; import { type ChartsSurfaceProps } from "../ChartsSurface/index.js"; import { type ChartDataProviderProps } from "../ChartDataProvider/index.js"; import type { ChartContainerProps } from "./ChartContainer.js"; import { type ChartSeriesType } from "../models/seriesType/config.js"; import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js"; import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js"; export type UseChartContainerPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = { chartDataProviderProps: ChartDataProviderProps<TSeries, TSignatures>; chartsSurfaceProps: ChartsSurfaceProps & { ref: React.Ref<SVGSVGElement>; }; children: React.ReactNode; }; export declare const useChartContainerProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>) => UseChartContainerPropsReturnValue<TSeries, TSignatures>;