1 | import { Except } from 'type-fest';
|
2 | export type CoordType = 'rect' | 'polar';
|
3 |
|
4 | export interface CoordCommonProps<TCoordType extends CoordType> {
|
5 | |
6 |
|
7 |
|
8 | type: TCoordType;
|
9 | }
|
10 |
|
11 | export interface CoordRectProps extends CoordCommonProps<'rect'> {
|
12 | |
13 |
|
14 |
|
15 | transposed?: boolean;
|
16 | }
|
17 |
|
18 | export interface CoordPolarProps extends CoordCommonProps<'polar'> {
|
19 | |
20 |
|
21 |
|
22 | transposed?: boolean;
|
23 | |
24 |
|
25 |
|
26 | startAngle?: number;
|
27 |
|
28 | |
29 |
|
30 |
|
31 | endAngle?: number;
|
32 |
|
33 | |
34 |
|
35 |
|
36 | innerRadius?: number;
|
37 |
|
38 | |
39 |
|
40 |
|
41 | inner?: number;
|
42 |
|
43 | |
44 |
|
45 |
|
46 | radius?: number;
|
47 | }
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export type CoordProps =
|
53 | | CoordRectProps
|
54 | | CoordPolarProps
|
55 |
|
56 | | Except<CoordRectProps, 'type'>;
|