@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
40 lines (34 loc) • 1.02 kB
JavaScript
/**
* When resizing the window the size of the canvas will not change.
*
* @type {string}
*/
const FILLMODE_NONE = 'NONE';
/**
* When resizing the window the size of the canvas will change to fill the window exactly.
*
* @type {string}
*/
const FILLMODE_FILL_WINDOW = 'FILL_WINDOW';
/**
* 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.
*
* @type {string}
*/
const FILLMODE_KEEP_ASPECT = 'KEEP_ASPECT';
/**
* When the canvas is resized the resolution of the canvas will change to match the size of the
* canvas.
*
* @type {string}
*/
const RESOLUTION_AUTO = 'AUTO';
/**
* 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.
*
* @type {string}
*/
const RESOLUTION_FIXED = 'FIXED';
export { FILLMODE_FILL_WINDOW, FILLMODE_KEEP_ASPECT, FILLMODE_NONE, RESOLUTION_AUTO, RESOLUTION_FIXED };