UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

31 lines (29 loc) 979 B
/** * When resizing the window the size of the canvas will not change. * * @type {string} */ var FILLMODE_NONE = 'NONE'; /** * When resizing the window the size of the canvas will change to fill the window exactly. * * @type {string} */ var 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} */ var 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} */ var 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} */ var RESOLUTION_FIXED = 'FIXED'; export { FILLMODE_FILL_WINDOW, FILLMODE_KEEP_ASPECT, FILLMODE_NONE, RESOLUTION_AUTO, RESOLUTION_FIXED };