pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
9 lines (7 loc) • 321 B
JavaScript
;
function isRenderingToScreen(renderTarget) {
const resource = renderTarget.colorTexture.source.resource;
return globalThis.HTMLCanvasElement && resource instanceof HTMLCanvasElement && document.body.contains(resource);
}
export { isRenderingToScreen };
//# sourceMappingURL=isRenderingToScreen.mjs.map