src/View.js
function(element, mode) {
		var style = element.style;
		switch(mode) {
			case DOMMode.FULLSCREEN:
				style.position = "fixed";
				style.left = "0px";
				style.top = "0px";
				style.width = '100%';
				style.height = '100%';
				break;
			case DOMMode.CONTAINER:
				style.position = "absolute";
				style.left = "0px";
				style.top = "0px";
				style.width = this.canvasContainer.clientWidth + 'px';
				style.height = this.canvasContainer.clientHeight + 'px';
				break;
			default:
		}
	}
function(element, mode) {
		var style = element.style;
		switch(mode) {
			case DOMMode.FULLSCREEN:
				style.position = "fixed";
				style.left = "0px";
				style.top = "0px";
				style.width = '100%';
				style.height = '100%';
				break;
			case DOMMode.CONTAINER:
				style.position = "absolute";
				style.left = "0px";
				style.top = "0px";
				style.width = this.canvasContainer.clientWidth + 'px';
				style.height = this.canvasContainer.clientHeight + 'px';
				break;
			default:
		}
	}
function ( element , mode ) { var style = element . style ; switch ( mode ) { case DOMMode . FULLSCREEN : style . position = "fixed" ; style . left = "0px" ; style . top = "0px" ; style . width = '100%' ; style . height = '100%' ; break ; case DOMMode . CONTAINER : style . position = "absolute" ; style . left = "0px" ; style . top = "0px" ; style . width = this . canvasContainer . clientWidth + 'px' ; style . height = this . canvasContainer . clientHeight + 'px' ; break ; default : } }
sets the DOM Mode, which controls the css rules of the canvas element
@param {String} mode string, enumerated in DOMMode
sets the DOM Mode which controls the css rules of the canvas element