1 | import React, { ReactElement, SVGProps } from 'react';
|
2 | import { ContentType, Props as LabelProps, LabelPosition } from './Label';
|
3 | import { DataKey, ViewBox } from '../util/types';
|
4 | interface Data {
|
5 | value?: number | string | Array<number | string>;
|
6 | payload?: any;
|
7 | parentViewBox?: ViewBox;
|
8 | }
|
9 | interface LabelListProps<T extends Data> {
|
10 | id?: string;
|
11 | data?: Array<T>;
|
12 | valueAccessor?: Function;
|
13 | clockWise?: boolean;
|
14 | dataKey?: DataKey<Record<string, any>>;
|
15 | content?: ContentType;
|
16 | textBreakAll?: boolean;
|
17 | position?: LabelPosition;
|
18 | offset?: LabelProps['offset'];
|
19 | angle?: number;
|
20 | formatter?: Function;
|
21 | }
|
22 | export type Props<T extends Data> = SVGProps<SVGTextElement> & LabelListProps<T>;
|
23 | export type ImplicitLabelListType<T extends Data> = boolean | ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | Props<T>;
|
24 | export declare function LabelList<T extends Data>({ valueAccessor, ...restProps }: Props<T>): React.JSX.Element;
|
25 | export declare namespace LabelList {
|
26 | var displayName: string;
|
27 | var renderCallByParent: <T extends Data>(parentProps: {
|
28 | children?: React.ReactNode;
|
29 | label?: unknown;
|
30 | }, data: T[], checkPropsLabel?: boolean) => React.JSX.Element[];
|
31 | }
|
32 | export {};
|