@pixi/react
Version:
Write PixiJS applications using React declarative style.
1 lines • 847 B
Source Map (JSON)
{"version":3,"file":"queueForUnmount.mjs","sources":["../../src/helpers/queueForUnmount.ts"],"sourcesContent":["import { roots } from '../core/roots';\nimport { store } from '../store';\nimport { unmountRoot } from './unmountRoot';\n\nexport function queueForUnmount(canvas: HTMLCanvasElement)\n{\n const root = roots.get(canvas);\n\n if (root)\n {\n if (root.applicationState.isInitialised)\n {\n unmountRoot(root);\n }\n else\n {\n store.unmountQueue.add(root);\n }\n }\n}\n"],"names":[],"mappings":";;;;;AAIO,SAAS,gBAAgB,MAChC,EAAA;AACI,EAAM,MAAA,IAAA,GAAO,KAAM,CAAA,GAAA,CAAI,MAAM,CAAA;AAE7B,EAAA,IAAI,IACJ,EAAA;AACI,IAAI,IAAA,IAAA,CAAK,iBAAiB,aAC1B,EAAA;AACI,MAAA,WAAA,CAAY,IAAI,CAAA;AAAA,KAGpB,MAAA;AACI,MAAM,KAAA,CAAA,YAAA,CAAa,IAAI,IAAI,CAAA;AAAA;AAC/B;AAER;;;;"}