Classes
Interface Definitions
-
Application options supplied to the applications init method.
Properties:
Name Type Default Description autoStartboolean true Automatically starts the rendering after the construction. Note: Setting this parameter to
falsedoes NOT stop the shared ticker even if you setoptions.sharedTickertotruein case that it is already started. Stop it by your own.resizeToWindow | HTMLElement Element to automatically resize stage to.
sharedTickerboolean false Set
trueto useTicker.shared,falseto create new ticker. If set tofalse, you cannot register a handler to occur before anything that runs on the shared ticker. The system ticker will always run before both the shared ticker and the app ticker. -
Any plugin that's usable for Application should contain these methods.
Example
import { ApplicationPlugin } from 'pixi.js'; class MyPlugin implements ApplicationPlugin { static init(options) { // do something with options } static destroy() { // destruction code here } } -
Options for the resize plugin
Properties:
Name Type Attributes Default Description resizeToWindow | HTMLElement <optional>
window Element to automatically resize stage to.
-
Application options for ticker plugin.
Properties:
Name Type Attributes Default Description autoStartboolean <optional>
true Automatically starts the rendering after the construction. Note: Setting this parameter to
falsedoes NOT stop the shared ticker even if you setoptions.sharedTickertotruein case that it is already started. Stop it by your own.sharedTickerboolean <optional>
false Set
trueto useTicker.shared,falseto create new ticker. If set tofalse, you cannot register a handler to occur before anything that runs on the shared ticker. The system ticker will always run before both the shared ticker and the app ticker.