-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
constants.js
47 lines (42 loc) · 1013 Bytes
/
constants.js
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
/**
* A {@link ElementComponent} that contains child {@link ElementComponent}s.
*
* @type {string}
* @category User Interface
*/
export const ELEMENTTYPE_GROUP = 'group';
/**
* A {@link ElementComponent} that displays an image.
*
* @type {string}
* @category User Interface
*/
export const ELEMENTTYPE_IMAGE = 'image';
/**
* A {@link ElementComponent} that displays text.
*
* @type {string}
* @category User Interface
*/
export const ELEMENTTYPE_TEXT = 'text';
/**
* Fit the content exactly to Element's bounding box.
*
* @type {string}
* @category User Interface
*/
export const FITMODE_STRETCH = 'stretch';
/**
* Fit the content within the Element's bounding box while preserving its Aspect Ratio.
*
* @type {string}
* @category User Interface
*/
export const FITMODE_CONTAIN = 'contain';
/**
* Fit the content to cover the entire Element's bounding box while preserving its Aspect Ratio.
*
* @type {string}
* @category User Interface
*/
export const FITMODE_COVER = 'cover';