@adobe/react-spectrum-charts
Version:
Declarative library for composing Spectrum visualizations in React.
16 lines • 1.04 kB
TypeScript
import { JSXElementConstructor, ReactElement } from 'react';
import { ScatterOptions } from '@spectrum-charts/vega-spec-builder';
import { ChartPopoverElement, ChartTooltipElement } from '../dialogs';
import { Children, MarkCallback } from '../util.types';
import { ScatterAnnotationElement, ScatterPathElement, TrendlineElement } from './supplemental';
type ScatterChildElement = ChartPopoverElement | ChartTooltipElement | ScatterAnnotationElement | ScatterPathElement | TrendlineElement;
export interface ScatterProps extends Omit<ScatterOptions, 'chartPopovers' | 'chartTooltips' | 'markType' | 'scatterPaths' | 'trendlines'> {
children?: Children<ScatterChildElement>;
/** Callback that will be run when a point/section is hovered */
onMouseOver?: MarkCallback;
/** Callback that will be run when a point/section is no longer hovered */
onMouseOut?: MarkCallback;
}
export type ScatterElement = ReactElement<ScatterProps, JSXElementConstructor<ScatterProps>>;
export {};
//# sourceMappingURL=scatter.types.d.ts.map