File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ export type IconKey =
22
22
| "snow"
23
23
| "wind" ;
24
24
25
+ export enum ICON {
26
+ CLEAR_DAY = "clear-day" ,
27
+ CLEAR_NIGHT = "clear-night" ,
28
+ CLOUDY = "cloudy" ,
29
+ FOG = "fog" ,
30
+ PARTLY_CLOUDY_DAY = "partly-cloudy-day" ,
31
+ PARTLY_CLOUDY_NIGHT = "partly-cloudy-night" ,
32
+ RAIN = "rain" ,
33
+ SLEET = "sleet" ,
34
+ SNOW = "snow" ,
35
+ WIND = "wind"
36
+ }
37
+
25
38
const iconDrawFunctionMap = new Map < IconKey , DrawFunction > ( [
26
39
[ "clear-day" , iconClearDay ] ,
27
40
[ "clear-night" , iconClearNight ] ,
Original file line number Diff line number Diff line change 1
1
export { Skycons } from "./skycons" ;
2
+ export { IconKey , ICON } from "./icons" ;
Original file line number Diff line number Diff line change 1
1
import { KEYFRAME } from "./constants" ;
2
2
import { DrawFunction } from "./DrawFunction" ;
3
- import { getIconDrawingFunctionByName , IconKey } from "./iconDrawFunctionMap " ;
3
+ import { getIconDrawingFunctionByName , IconKey } from "./icons " ;
4
4
5
5
export interface IConstructorOptions {
6
6
color : string ;
You can’t perform that action at this time.
0 commit comments