ReadonlyautoWhether CSS dimensions of canvas view should be resized to screen dimensions automatically.
ReadonlybackgroundBackground color, alpha and clear behavior
ReadonlyeventsReadonlyextractReadonlyheightthe height of the screen
Readonlylastthe last object rendered by the renderer. Useful for other plugins like interaction managers
OptionalmultisampleThe number of MSAA samples of the renderer.
ReadonlyoptionsThe options passed in to create a new instance of the renderer.
ReadonlypluginsCollection of plugins
ReadonlyprepareReadonlyrendererWhen logging Pixi to the console, this is the name we will show
ReadonlyrenderingFlag if we are rendering to the screen vs renderTexture
The resolution / device pixel ratio of the renderer.
Readonlyrunnersa collection of runners defined by the user
ReadonlyscreenMeasurements of the screen. (0, 0, screenWidth, screenHeight). Its safe to use as filterArea or hitArea for the whole stage.
ReadonlytypeThe type of the renderer.
ReadonlyviewThe canvas element that everything is drawn to.
Readonlywidththe 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
OptionalremoveView: 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.
Optionaloptions: 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.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyRemove all listeners, or those of the specified event.
Optionalevent: string | symbolRemove the listeners of a given event.
Optionalfn: (...args: any[]) => voidOptionalcontext: anyOptionalonce: booleanOptionaloptions: IRendererRenderOptions
Standard Interface for a Pixi renderer.
Memberof
PIXI