Merged versions for PixiJS 4 and 5.

This commit is contained in:
2019-05-14 11:54:25 +02:00
parent 06aec0308d
commit 08a9dbdf1d
11 changed files with 41128 additions and 42522 deletions
+40480 -42090
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+8 -3
View File
@@ -3796,7 +3796,8 @@
resolution,
autoResize,
backgroundColor,
forceCanvas
forceCanvas,
roundPixels // not needed for PixiJS >= 5
});
this.width = width;
@@ -3808,8 +3809,12 @@
this.orient = null;
this.originalMapPositionToPoint = null;
this.monkeyPatchMapping = monkeyPatchMapping;
PIXI.settings.ROUND_PIXELS = roundPixels;
PIXI.GRAPHICS_CURVES.adaptive = adaptive;
if (parseInt(PIXI.VERSION) >= 5) {
PIXI.settings.ROUND_PIXELS = roundPixels;
PIXI.GRAPHICS_CURVES.adaptive = adaptive;
} else {
PIXI.Graphics.CURVES.adaptive = adaptive;
}
this.graphql = graphql;
if (fullScreen || autoResize) {
console.log('App is in fullScreen mode or autoResize mode');