Merged versions for PixiJS 4 and 5.
This commit is contained in:
+8
-3
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user