@nativescript/canvas-phaser 2.0.0-webgpu.15 → 2.0.0-webgpu.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/phaser.js +7 -7
- package/phaser.js.map +1 -1
package/package.json
CHANGED
package/phaser.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@nativescript/canvas-polyfill';
|
|
2
2
|
function initPhaser() {
|
|
3
3
|
/* if ((global as any).Phaser) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const version = parseFloat((global as any).Phaser.VERSION);
|
|
5
|
+
if (!Number.isNaN(version) && version < 3) {
|
|
6
|
+
(global as any).PIXI = (global as any).window.PIXI = undefined;
|
|
7
|
+
(global as any).p2 = (global as any).window.p2 = undefined;
|
|
8
|
+
(global as any).window.Phaser = (global as any).Phaser = undefined;
|
|
9
|
+
}
|
|
10
|
+
}*/
|
|
11
11
|
global.window.Phaser = global.Phaser = global.Phaser || require('phaser');
|
|
12
12
|
return global.Phaser;
|
|
13
13
|
}
|
package/phaser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phaser.js","sourceRoot":"","sources":["../../../packages/canvas-phaser/phaser.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,SAAS,UAAU;
|
|
1
|
+
{"version":3,"file":"phaser.js","sourceRoot":"","sources":["../../../packages/canvas-phaser/phaser.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,SAAS,UAAU;IAClB;;;;;;;KAOI;IACH,MAAc,CAAC,MAAM,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrG,OAAQ,MAAc,CAAC,MAAM,CAAC;AAC/B,CAAC;AAED,eAAe,UAAU,EAAE,CAAC"}
|