You set up an application element:
g_Pixi = new PIXI.Application(width, height, { backgroundColor: 0x000000 });
document.getElementById(strCanvasDiv).appendChild(g_Pixi.view);
'width' and 'height' are the dimensions of the canvas with id strCanvasDiv..
Question 1: in the object, should I send the canvas in the 'view' element? Ie,
g_Pixi = new PIXI.Application(width, height, { view: document.getElementById(strCanvasDiv), backgroundColor: 0x000000 });
But then the user decides he wants to change the dimensions of the screen (which in my code will change the dimensions of the canvas). For example, he could modify the window or even change landscape to portrait.
Question 2: What do I do to change the dimensions of the renderer to the new dimensions of the canvas so it all works still?