Readonly
autoWhether CSS dimensions of canvas view should be resized to screen dimensions automatically.
Readonly
backgroundBackground color, alpha and clear behavior
Readonly
eventsReadonly
extractReadonly
heightthe height of the screen
Readonly
lastthe last object rendered by the renderer. Useful for other plugins like interaction managers
Optional
multisampleThe number of MSAA samples of the renderer.
Readonly
optionsThe options passed in to create a new instance of the renderer.
Readonly
pluginsCollection of plugins
Readonly
prepareReadonly
rendererWhen logging Pixi to the console, this is the name we will show
Readonly
renderingFlag if we are rendering to the screen vs renderTexture
The resolution / device pixel ratio of the renderer.
Readonly
runnersa collection of runners defined by the user
Readonly
screenMeasurements of the screen. (0, 0, screenWidth, screenHeight). Its safe to use as filterArea or hitArea for the whole stage.
Readonly
typeThe type of the renderer.
Readonly
viewThe canvas element that everything is drawn to.
Readonly
widththe width of the screen
Create a bunch of runners based of a collection of ids
the runner ids to add
Add a new system to the renderer.
Return instance of renderer
destroy the all runners and systems. Its apps job to
Optional
removeView: booleanCalls each of the listeners registered for a given event.
A function that will run a runner and call the runners function but pass in different options to each system based on there name.
E.g. If you have two systems added called systemA
and systemB
you could call do the following:
system.emitWithCustomOptions(init, {
systemA: {...optionsForA},
systemB: {...optionsForB},
});
init
would be called on system A passing optionsForA
and on system B passing optionsForB
.
the runner to target
key value options for each system
Return an array listing the events for which the emitter has registered listeners.
Optional
options: IGenerateTextureOptionsReturn the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: string | symbolRemove the listeners of a given event.
Optional
fn: (...args: any[]) => voidOptional
context: anyOptional
once: booleanOptional
options: IRendererRenderOptions
Standard Interface for a Pixi renderer.
Memberof
PIXI