Classes
Interface Definitions
-
Application options supplied to the init method.
Properties:
Name Type Default Description autoStartboolean trueAutomatically 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 the renderer to.
sharedTickerboolean falseSet
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.Example
import { Application } from 'pixi.js'; const app = new Application(); await app.init({ autoStart: false, resizeTo: window, sharedTicker: true, }); -
Application options for the ResizePlugin.
Properties:
Name Type Attributes Default Description resizeToWindow | HTMLElement <optional>
windowElement to automatically resize the renderer to.
-
Application options for the TickerPluginOptions.
Properties:
Name Type Attributes Default Description autoStartboolean <optional>
trueAutomatically 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>
falseSet
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.