import * as React from 'react'; import type { ScatterMarkerSlotProps, ScatterMarkerSlots } from "./ScatterMarker.types.mjs"; import type { DefaultizedScatterSeriesType, ScatterItemIdentifier } from "../models/seriesType/scatter.mjs"; import type { D3Scale } from "../models/axis.mjs"; import type { ColorGetter } from "../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs"; import type { ScatterSizeGetter } from "./seriesConfig/getMarkerSize.mjs"; import type { ScatterClasses } from "./scatterClasses.mjs"; import type { ChartsActivationEvent } from "../models/events.mjs"; /** * @deprecated The `Scatter` component is an internal implementation detail of `ScatterPlot` and will be removed from the public API in v10. Use `ScatterPlot` instead. */ export interface ScatterProps { /** * The scatter series to render. */ series: DefaultizedScatterSeriesType; /** * The scale of the x-axis. */ xScale: D3Scale; /** * The scale of the y-axis. */ yScale: D3Scale; /** * The color of the element. */ color: string; /** * Function to get the color of a scatter item given its data index. * The data index argument is optional. If not provided, the color for the entire series is returned. * If provided, the color for the specific scatter item is returned. */ colorGetter: ColorGetter<'scatter'>; /** * Function to get the marker size of a scatter item given its data index. */ sizeGetter: ScatterSizeGetter; /** * Callback fired when clicking on a scatter item. * @param {ChartsActivationEvent} event Event recorded on the `` element. * @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier. */ onItemClick?: (event: ChartsActivationEvent, scatterItemIdentifier: ScatterItemIdentifier) => void; /** * Override or extend the styles applied to the component. */ classes?: Partial; /** * Overridable component slots. * @default {} */ slots?: ScatterSlots; /** * The props used for each component slot. * @default {} */ slotProps?: ScatterSlotProps; } /** * @deprecated The `Scatter` component is an internal implementation detail of `ScatterPlot` and will be removed from the public API in v10. Use `ScatterPlot` instead. */ export interface ScatterSlots extends ScatterMarkerSlots {} /** * @deprecated The `Scatter` component is an internal implementation detail of `ScatterPlot` and will be removed from the public API in v10. Use `ScatterPlot` instead. */ export interface ScatterSlotProps extends ScatterMarkerSlotProps {} /** * @deprecated The `Scatter` component is an internal implementation detail of `ScatterPlot` and will be removed from the public API in v10. Use `ScatterPlot` instead. * * Demos: * * - [Scatter](https://mui.com/x/react-charts/scatter/) * - [Scatter demonstration](https://mui.com/x/react-charts/scatter-demo/) * * API: * * - [Scatter API](https://mui.com/x/api/charts/scatter/) */ declare function Scatter(props: ScatterProps): React.JSX.Element; declare namespace Scatter { var propTypes: any; } export { Scatter };