-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc-knob.d.ts
75 lines (69 loc) · 1.59 KB
/
rc-knob.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// rc-knob.d.ts
declare module "rc-knob" {
import { ReactNode, FC } from "react";
interface KnobProps {
min?: number;
max?: number;
value?: number;
angleOffset?: number;
angleRange?: number;
size?: number;
steps?: number;
snap?: boolean;
ariaValueText?: string;
ariaLabelledBy?: string;
onChange?: (value: number) => void;
className?: string;
children?: ReactNode;
}
interface PointerProps {
width?: number;
height?: number;
angleOffset?: number;
angleRange?: number;
percentage?: number;
radius?: number;
center?: number;
type?: "rect" | "circle";
color?: string;
className?: string;
}
interface ScaleProps {
angleRange?: number;
steps?: number;
type?: "rect" | "circle";
radius?: number;
tickWidth?: number;
tickHeight?: number;
angleOffset?: number;
center?: number;
color?: string;
activeColor?: string;
className?: string;
activeClassName?: string;
fn?: (props: any) => ReactNode;
percentage?: number;
}
interface ArcProps {
color?: string;
background?: string;
percentage?: number;
angleOffset?: number;
angleRange?: number;
radius?: number;
arcWidth?: number;
center?: number;
}
interface ValueProps {
value?: number;
size?: number;
decimalPlace?: number;
className?: string;
marginBottom?: number;
}
export const Knob: FC<KnobProps>;
export const Pointer: FC<PointerProps>;
export const Scale: FC<ScaleProps>;
export const Arc: FC<ArcProps>;
export const Value: FC<ValueProps>;
}