Adjustments for Pixi.JS 5.0.
This commit is contained in:
+11
-11
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user