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