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">
15 lines (12 loc) • 365 B
JavaScript
import { DOMAdapter } from '../../../../../environment/adapter.mjs';
;
let context;
function getTestContext() {
if (!context || context?.isContextLost()) {
const canvas = DOMAdapter.get().createCanvas();
context = canvas.getContext("webgl", {});
}
return context;
}
export { getTestContext };
//# sourceMappingURL=getTestContext.mjs.map