The DOMAdapter is a singleton that allows PixiJS to perform DOM operations, such as creating a canvas.
This allows PixiJS to be used in any environment, such as a web browser, Web Worker, or Node.js.
It uses the Adapter interface to abstract away the differences between these environments
and uses the BrowserAdapter by default.
It has two methods: get():Adapter and set(adapter: Adapter).
The DOMAdapter is a singleton that allows PixiJS to perform DOM operations, such as creating a canvas. This allows PixiJS to be used in any environment, such as a web browser, Web Worker, or Node.js. It uses the Adapter interface to abstract away the differences between these environments and uses the BrowserAdapter by default.
It has two methods:
get():Adapter
andset(adapter: Adapter)
.Defaults to the BrowserAdapter.