-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
CheermoteDisplayInfo.ts
54 lines (47 loc) · 1.14 KB
/
CheermoteDisplayInfo.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
/**
* The type of background a cheermote is supposed to appear on.
*
* We will supply a fitting graphic that does not show any artifacts
* on the given type of background.
*/
export type CheermoteBackground = 'dark' | 'light';
/**
* The state of a cheermote, i.e. whether it's animated or not.
*/
export type CheermoteState = 'animated' | 'static';
/**
* The scale of the cheermote, which usually relates to the pixel density of the device in use.
*/
export type CheermoteScale = '1' | '1.5' | '2' | '3' | '4';
/**
* The format of the cheermote you want to request.
*/
export interface CheermoteFormat {
/**
* The desired background for the cheermote.
*/
background: CheermoteBackground;
/**
* The desired cheermote state.
*/
state: CheermoteState;
/**
* The desired cheermote scale.
*/
scale: CheermoteScale;
}
/**
* The details on how a cheermote should be displayed.
*/
export interface CheermoteDisplayInfo {
/**
* The URL of the image that should be shown.
*/
url: string;
/**
* The color that should be used to show the cheer amount.
*
* This is a hexadecimal color value, e.g. `#9c3ee8`.
*/
color: string;
}