-
Notifications
You must be signed in to change notification settings - Fork 63
/
index.d.ts
52 lines (48 loc) · 1.32 KB
/
index.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
// Definitions by: Augusto Lopez <https://github.com/augustolopez>
import React from 'react';
declare module '@fseehawer/react-circular-slider' {
interface Continuous {
enabled: boolean;
clicks: number;
interval: number;
}
type KnobPosition = 'top' | 'right' | 'bottom' | 'left';
export interface CircularSliderProps {
label?: string;
width?: number;
direction?: number;
min?: number;
max?: number;
initialValue?: number;
knobColor?: string;
knobPosition?: KnobPosition | number;
knobSize?: number;
hideKnob?: boolean;
knobDraggable?: boolean;
labelColor?: string;
labelBottom?: boolean;
labelFontSize?: string;
valueFontSize?: string;
appendToValue?: string;
renderLabelValue?: any;
prependToValue?: string;
verticalOffset?: string;
hideLabelValue?: boolean;
progressLineCap?: string;
progressColorFrom?: string;
progressColorTo?: string;
useMouseAdditionalToTouch?: boolean;
progressSize?: number;
trackColor?: string;
trackSize?: number;
trackDraggable?: boolean;
data?: any[];
dataIndex?: number;
onChange?: Function;
children?: React.ReactNode;
isDragging?: Function;
continuous?: Continuous;
}
const CircularSlider: React.FC<CircularSliderProps>;
export default CircularSlider;
}