fixedResolution? | number | Fixed resolution instead of devicePixelRatio, capped at 16. maxResolution does not apply. | - | app.ts:10 |
inheritFilterResolution? | boolean | Pixi filters render at resolution 1 by default, which blurs everything behind a filter on high-DPR screens. When true (default), new filters inherit the renderer resolution. It sets the global Filter.defaultOptions.resolution, so it affects every Pixi app on the page. | - | app.ts:18 |
maxResolution? | number | Upper bound for the resolution when it follows devicePixelRatio. Default 3. | - | app.ts:8 |
onResize? | (width: number, height: number, resolution: number) => void | Called after every size or resolution change, with the size in CSS pixels and the resolution. | - | app.ts:12 |
parent | HTMLElement | Element the canvas is appended to and fills. Give it a size in CSS, or the canvas is 1x1. | - | app.ts:6 |
preference? | RendererPreference | RendererPreference[] | Which renderer Pixi tries first. Default 'webgl' (WebGL2). Pass 'webgpu' to use WebGPU where the browser has it. Pixi falls back to WebGL2 when it does not, and the app retries on WebGL2 when WebGPU is offered but fails to start (it logs a warning). On WebGPU the app loads the WGSL shader from pixi-silk/webgpu before it resolves, so SilkGraphics render on either. | Partial.preference | app.ts:31 |
touchAction? | string | CSS touch-action for the canvas. Pixi sets none, which blocks page scrolling on touch screens. The default pan-y pinch-zoom lets pages scroll while taps and hovers still reach Pixi. Use none for canvases that handle drags themselves. | - | app.ts:24 |