import * as React from 'react'; import { PureComponent, ReactElement } from 'react'; import { Series } from 'victory-vendor/d3-shape'; import { Props as SectorProps } from '../shape/Sector'; import { ImplicitLabelListType } from '../component/LabelList'; import { BarPositionPosition } from '../util/ChartUtils'; import { LegendType, TooltipType, AnimationTiming, TickItem, PresentationAttributesAdaptChildEvent, AnimationDuration, ActiveShape, LayoutType, DataKey } from '../util/types'; import { BaseAxisWithScale } from '../state/selectors/axisSelectors'; import { ChartData } from '../state/chartDataSlice'; import { AxisId } from '../state/cartesianAxisSlice'; export type RadialBarDataItem = SectorProps & { value?: any; payload?: any; background?: SectorProps; }; type RadialBarBackground = ActiveShape; interface InternalRadialBarProps { className?: string; angleAxisId?: AxisId; radiusAxisId?: AxisId; startAngle?: number; endAngle?: number; shape?: ActiveShape; activeShape?: ActiveShape; dataKey: string | number | ((obj: any) => any); cornerRadius?: string | number; forceCornerRadius?: boolean; cornerIsExternal?: boolean; minPointSize?: number; /** * So in Bar, this can be a percent value - but that won't work in RadialBar. RadialBar: only numbers. */ barSize?: number; maxBarSize?: number; data?: ReadonlyArray; legendType?: LegendType; tooltipType?: TooltipType; hide?: boolean; label?: ImplicitLabelListType; stackId?: string | number; background?: RadialBarBackground; onAnimationStart?: () => void; onAnimationEnd?: () => void; isAnimationActive?: boolean; animationBegin?: number; animationDuration?: AnimationDuration; animationEasing?: AnimationTiming; } export type RadialBarProps = Omit, 'ref'> & InternalRadialBarProps; export declare function computeRadialBarDataItems({ displayedData, stackedData, dataStartIndex, stackedDomain, dataKey, baseValue, layout, radiusAxis, radiusAxisTicks, bandSize, pos, angleAxis, minPointSize, cx, cy, angleAxisTicks, cells, startAngle: rootStartAngle, endAngle: rootEndAngle, }: { displayedData: ChartData; stackedData: Series, DataKey> | undefined; dataStartIndex: number; stackedDomain: ReadonlyArray | null; dataKey: DataKey | undefined; baseValue: number | unknown; layout: LayoutType; radiusAxis: BaseAxisWithScale; radiusAxisTicks: ReadonlyArray | undefined; bandSize: number; pos: BarPositionPosition; angleAxis: BaseAxisWithScale; minPointSize: number | undefined; cx: number; cy: number; angleAxisTicks: ReadonlyArray | undefined; cells: ReadonlyArray | undefined; startAngle: number; endAngle: number; }): ReadonlyArray; export declare class RadialBar extends PureComponent { static displayName: string; static defaultProps: Partial; render(): React.JSX.Element; } export {};