1 | import React, { PureComponent } from 'react';
|
2 | import { BaseAxisProps, TickItem, PresentationAttributesAdaptChildEvent } from '../util/types';
|
3 | export interface PolarAngleAxisProps extends BaseAxisProps {
|
4 | angleAxisId?: string | number;
|
5 | cx?: number;
|
6 | cy?: number;
|
7 | radius?: number;
|
8 | axisLineType?: 'polygon' | 'circle';
|
9 | ticks?: TickItem[];
|
10 | orientation?: 'inner' | 'outer';
|
11 | }
|
12 | export type Props = PresentationAttributesAdaptChildEvent<any, SVGTextElement> & PolarAngleAxisProps;
|
13 | export declare class PolarAngleAxis extends PureComponent<Props> {
|
14 | static displayName: string;
|
15 | static axisType: string;
|
16 | static defaultProps: {
|
17 | type: string;
|
18 | angleAxisId: number;
|
19 | scale: string;
|
20 | cx: number;
|
21 | cy: number;
|
22 | orientation: string;
|
23 | axisLine: boolean;
|
24 | tickLine: boolean;
|
25 | tickSize: number;
|
26 | tick: boolean;
|
27 | hide: boolean;
|
28 | allowDuplicatedCategory: boolean;
|
29 | };
|
30 | getTickLineCoord(data: TickItem): {
|
31 | x1: number;
|
32 | y1: number;
|
33 | x2: number;
|
34 | y2: number;
|
35 | };
|
36 | getTickTextAnchor(data: TickItem): string;
|
37 | renderAxisLine(): React.JSX.Element;
|
38 | static renderTickItem(option: PolarAngleAxisProps['tick'], props: any, value: string | number): React.JSX.Element;
|
39 | renderTicks(): React.JSX.Element;
|
40 | render(): React.JSX.Element;
|
41 | }
|