-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
star-rating.d.ts
130 lines (130 loc) · 3.09 KB
/
star-rating.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import { StarRatingConfig, starRatingColor, starRatingDirection, starRatingLabelPosition, starRatingSizes, starRatingSpeed, starRatingStarSpace, starRatingStarTypes } from '../interfaces/star-rating-config.interface';
import { StarRatingConfigService } from './star-rating-config.service';
export declare class StarRating {
protected config: StarRatingConfig;
classEmpty: string;
classHalf: string;
classFilled: string;
pathEmpty: string;
pathHalf: string;
pathFilled: string;
color: starRatingColor;
stars: Array<number>;
ratingAsInteger: number;
halfStarVisible: boolean;
rating: number;
/**
* showHalfStars
*/
protected _showHalfStars: boolean;
showHalfStars: boolean;
/**
* getColor
*/
getColor: (rating: number, numOfStars: number, staticColor?: starRatingColor) => starRatingColor;
/**
* getHalfStarVisible
*/
getHalfStarVisible: (rating: number) => boolean;
/**
* id property to identify the DOM element
*/
protected _id: string;
id: string;
/**
* focus
*/
protected _focus: boolean;
focus: boolean;
/**
* labelText
*/
protected _labelText: string;
labelText: string;
/**
* labelPosition
*/
protected _labelPosition: starRatingLabelPosition;
labelPosition: starRatingLabelPosition;
/**
* labelVisible
*/
protected _labelVisible: boolean;
labelVisible: boolean;
/**
* hoverEnabled
*/
protected _hoverEnabled: boolean;
hoverEnabled: boolean;
/**
* staticColor
*/
protected _staticColor: starRatingColor;
staticColor: starRatingColor;
/**
* direction
*/
protected _direction: starRatingDirection;
direction: starRatingDirection;
/**
* numOfStars
*/
protected _numOfStars: number;
numOfStars: number;
/**
* hoverRating
*/
protected _hoverRating: number;
hoverRating: number;
/**
* speed
*/
protected _speed: starRatingSpeed;
speed: starRatingSpeed;
/**
* size
*/
protected _size: starRatingSizes;
size: starRatingSizes;
/**
* starType
*/
protected _starType: starRatingStarTypes;
starType: starRatingStarTypes;
/**
* space
*/
protected _space: starRatingStarSpace;
space: starRatingStarSpace;
/**
* readOnly
*/
protected _readOnly: boolean;
readOnly: boolean;
/**
* disabled
*/
protected _disabled: boolean;
disabled: boolean;
private _step;
step: number;
/**
* rating
*/
protected _rating: number;
/**
* setRating
* I use a setter function instead of a set method to enable overrides for this function.
* @param value
*/
setRating(value: number): void;
constructor(config: StarRatingConfigService);
svgVisible(): boolean;
interactionPossible(): boolean;
setColor(useHoverValue?: boolean): void;
setHalfStarVisible(): void;
getComponentClassNames(): string;
increment(): void;
decrement(): void;
reset(): void;
}