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
+8 -3
View File
@@ -108,7 +108,8 @@ export default class PIXIApp extends PIXI.Application {
resolution,
autoResize,
backgroundColor,
forceCanvas
forceCanvas,
roundPixels // not needed for PixiJS >= 5
})
this.width = width
@@ -120,8 +121,12 @@ export default class PIXIApp extends PIXI.Application {
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')