UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

26 lines (22 loc) 528 B
'use strict'; var BrowserAdapter = require('../environment-browser/BrowserAdapter.js'); "use strict"; let currentAdapter = BrowserAdapter.BrowserAdapter; const DOMAdapter = { /** * Returns the current adapter. * @returns {environment.Adapter} The current adapter. */ get() { return currentAdapter; }, /** * Sets the current adapter. * @param adapter - The new adapter. */ set(adapter) { currentAdapter = adapter; } }; exports.DOMAdapter = DOMAdapter; //# sourceMappingURL=adapter.js.map