Adjustments for Pixi.JS 5.0.

This commit is contained in:
2019-04-30 12:18:36 +02:00
parent b07d76ce1d
commit 06aec0308d
6 changed files with 44043 additions and 42043 deletions
+11 -11
View File
@@ -100,16 +100,15 @@ export default class PIXIApp extends PIXI.Application {
}
super({
view: view,
width: width,
height: height,
transparent: transparent,
antialias: antialias,
resolution: resolution,
autoResize: autoResize,
backgroundColor: backgroundColor,
roundPixels: roundPixels,
forceCanvas: forceCanvas
view,
width,
height,
transparent,
antialias,
resolution,
autoResize,
backgroundColor,
forceCanvas
})
this.width = width
@@ -121,7 +120,8 @@ export default class PIXIApp extends PIXI.Application {
this.orient = null
this.originalMapPositionToPoint = null
this.monkeyPatchMapping = monkeyPatchMapping
PIXI.Graphics.CURVES.adaptive = adaptive
PIXI.settings.ROUND_PIXELS = roundPixels
PIXI.GRAPHICS_CURVES.adaptive = adaptive
this.graphql = graphql
if (fullScreen || autoResize) {
console.log('App is in fullScreen mode or autoResize mode')