Implements
Members
Whether CSS dimensions of canvas view should be resized to screen dimensions automatically.
element PIXI.ICanvas
The canvas element that everything is drawn to.
The resolution / device pixel ratio of the renderer.
- Default Value:
- PIXI.settings.RESOLUTION
screen PIXI.Rectangle
Measurements of the screen. (0, 0, screenWidth, screenHeight).
Its safe to use as filterArea or hitArea for the whole stage.
Methods
Destroys this System and optionally removes the canvas from the dom.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
removeView |
boolean |
<optional> |
false |
Whether to remove the canvas from the DOM. |
initiates the view system
Name | Type | Description |
---|---|---|
options |
PIXI.ViewOptions |
the options for the view |
Resizes the screen and canvas to the specified dimensions.
Name | Type | Description |
---|---|---|
desiredScreenWidth |
number |
The new width of the screen. |
desiredScreenHeight |
number |
The new height of the screen. |