RendererConfig
Defined in: renderer/src/types.ts:27
Configuration for the renderer plugin.
Properties
Section titled “Properties”backgroundColor?
Section titled “backgroundColor?”
optionalbackgroundColor?:number
Defined in: renderer/src/types.ts:37
Background color as a hex number.
canvas?
Section titled “canvas?”
optionalcanvas?:HTMLCanvasElement
Defined in: renderer/src/types.ts:39
Existing canvas element to use.
container?
Section titled “container?”
optionalcontainer?:HTMLElement
Defined in: renderer/src/types.ts:41
Container element — canvas will be auto-appended here.
height
Section titled “height”height:
number
Defined in: renderer/src/types.ts:31
Canvas height in physical pixels.
optionalpixi?:Record<string,unknown>
Defined in: renderer/src/types.ts:45
Additional PixiJS Application options.
resolution?
Section titled “resolution?”
optionalresolution?:number
Defined in: renderer/src/types.ts:43
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:35
Game coordinate height (default: height).
virtualWidth?
Section titled “virtualWidth?”
optionalvirtualWidth?:number
Defined in: renderer/src/types.ts:33
Game coordinate width (default: width).
width:
number
Defined in: renderer/src/types.ts:29
Canvas width in physical pixels.