forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colorbrewer.d.ts
76 lines (68 loc) · 2.53 KB
/
colorbrewer.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
// Type definitions for colorbrewer v1.0.0
// Project: https://github.com/jeanlauliac/colorbrewer
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare var colorbrewer: ColorBrewer.Base;
declare module ColorBrewer {
interface ColorScheme {
[n: number]: string[];
}
interface EightColorScheme extends ColorScheme {
3: [string, string, string];
4: [string, string, string, string];
5: [string, string, string, string, string];
6: [string, string, string, string, string, string];
7: [string, string, string, string, string, string, string];
8: [string, string, string, string, string, string, string, string];
}
interface NineColorScheme extends EightColorScheme {
9: [string, string, string, string, string, string, string, string, string];
}
interface ElevenColorScheme extends NineColorScheme {
10: [string, string, string, string, string, string, string, string, string, string];
11: [string, string, string, string, string, string, string, string, string, string, string];
}
interface TwelveColorScheme extends ElevenColorScheme {
12: [string, string, string, string, string, string, string, string, string, string, string, string];
}
interface Base {
YlGn: NineColorScheme;
YlGnBu: NineColorScheme;
GnBu: NineColorScheme;
BuGn: NineColorScheme;
PuBuGn: NineColorScheme;
PuBu: NineColorScheme;
BuPu: NineColorScheme;
RdPu: NineColorScheme;
PuRd: NineColorScheme;
OrRd: NineColorScheme;
YlOrRd: NineColorScheme;
YlOrBr: NineColorScheme;
Purples: NineColorScheme;
Blues: NineColorScheme;
Greens: NineColorScheme;
Oranges: NineColorScheme;
Reds: NineColorScheme;
Greys: NineColorScheme;
PuOr: ElevenColorScheme;
BrBG: ElevenColorScheme;
PRGn: ElevenColorScheme;
PiYG: ElevenColorScheme;
RdBu: ElevenColorScheme;
RdGy: ElevenColorScheme;
RdYlBu: ElevenColorScheme;
Spectral: ElevenColorScheme;
RdYlGn: ElevenColorScheme;
Accent: EightColorScheme;
Dark2: EightColorScheme;
Paired: TwelveColorScheme;
Pastel1: NineColorScheme;
Pastel2: EightColorScheme;
Set1: NineColorScheme;
Set2: EightColorScheme;
Set3: TwelveColorScheme;
}
}
declare module 'colorbrewer' {
export = colorbrewer;
}