UNPKG

@adobe/react-spectrum-charts

Version:

Declarative library for composing Spectrum visualizations in React.

14 lines 860 B
import { JSXElementConstructor, ReactElement } from 'react'; import { LineOptions } from '@spectrum-charts/vega-spec-builder'; import { ChartPopoverElement, ChartTooltipElement } from '../dialogs'; import { Children, MarkCallback } from '../util.types'; import { MetricRangeElement, TrendlineElement } from './supplemental'; type LineChildElement = ChartTooltipElement | ChartPopoverElement | MetricRangeElement | TrendlineElement; export interface LineProps extends Omit<LineOptions, 'chartPopovers' | 'chartTooltips' | 'hasOnClick' | 'markType' | 'metricRanges' | 'trendlines'> { children?: Children<LineChildElement>; /** Callback that will be run when a point/section is clicked */ onClick?: MarkCallback; } export type LineElement = ReactElement<LineProps, JSXElementConstructor<LineProps>>; export {}; //# sourceMappingURL=line.types.d.ts.map