forked from playcanvas/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
35 lines (35 loc) · 1.13 KB
/
constants.js
File metadata and controls
35 lines (35 loc) · 1.13 KB
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
/**
* @constant
* @type {string}
* @name FILLMODE_NONE
* @description When resizing the window the size of the canvas will not change.
*/
export const FILLMODE_NONE = 'NONE';
/**
* @constant
* @type {string}
* @name FILLMODE_FILL_WINDOW
* @description When resizing the window the size of the canvas will change to fill the window exactly.
*/
export const FILLMODE_FILL_WINDOW = 'FILL_WINDOW';
/**
* @constant
* @type {string}
* @name FILLMODE_KEEP_ASPECT
* @description When resizing the window the size of the canvas will change to fill the window as best it can, while maintaining the same aspect ratio.
*/
export const FILLMODE_KEEP_ASPECT = 'KEEP_ASPECT';
/**
* @constant
* @type {string}
* @name RESOLUTION_AUTO
* @description When the canvas is resized the resolution of the canvas will change to match the size of the canvas.
*/
export const RESOLUTION_AUTO = 'AUTO';
/**
* @constant
* @type {string}
* @name RESOLUTION_FIXED
* @description When the canvas is resized the resolution of the canvas will remain at the same value and the output will just be scaled to fit the canvas.
*/
export const RESOLUTION_FIXED = 'FIXED';