RendererConfig
Defined in: renderer/src/types.ts:35
Configuration for the renderer plugin.
Properties
Section titled “Properties”backgroundColor?
Section titled “backgroundColor?”
optionalbackgroundColor?:number
Defined in: renderer/src/types.ts:45
Background color as a hex number.
canvas?
Section titled “canvas?”
optionalcanvas?:HTMLCanvasElement
Defined in: renderer/src/types.ts:47
Existing canvas element to use.
container?
Section titled “container?”
optionalcontainer?:HTMLElement
Defined in: renderer/src/types.ts:49
Container element — canvas will be auto-appended here.
optionalfit?:RendererFitOptions
Defined in: renderer/src/types.ts:60
Responsive fit. Defaults to { mode: "letterbox" } against the resolved
target (see RendererFitOptions.target), so the canvas is
responsive out of the box — override to change mode or pin to a specific
host. See RendererFitOptions.
height
Section titled “height”height:
number
Defined in: renderer/src/types.ts:39
Initial canvas height in CSS pixels before responsive fit takes over. Backing-store size is height × resolution.
optionalpixi?:Record<string,unknown>
Defined in: renderer/src/types.ts:53
Additional PixiJS Application options.
resolution?
Section titled “resolution?”
optionalresolution?:number
Defined in: renderer/src/types.ts:51
Device pixel ratio. Defaults to window.devicePixelRatio for crisp rendering on HiDPI displays. Set to 1 to disable.
virtualHeight?
Section titled “virtualHeight?”
optionalvirtualHeight?:number
Defined in: renderer/src/types.ts:43
Game coordinate height (default: height).
virtualWidth?
Section titled “virtualWidth?”
optionalvirtualWidth?:number
Defined in: renderer/src/types.ts:41
Game coordinate width (default: width).
width:
number
Defined in: renderer/src/types.ts:37
Initial canvas width in CSS pixels before responsive fit takes over. Backing-store size is width × resolution.