Updated to PixiJS v5.

This commit is contained in:
2019-09-10 16:34:59 +02:00
parent a775126f9c
commit ebe0b1253f
29 changed files with 46482 additions and 67844 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ export class PIXITileLoader extends TileLoader {
constructor(tiles, compression) {
super(tiles)
this.destroyed = false
this.loader = new PIXI.loaders.Loader()
this.loader = new PIXI.Loader()
this.loader.on('load', this._onLoaded.bind(this))
this.loader.on('error', this._onError.bind(this))
if (compression) {
@@ -256,7 +256,7 @@ export class RequestTileLoader extends TileLoader {
}
xhr.send()
} else {
let texture = PIXI.Texture.fromImage('assets/image.png')
let texture = PIXI.Texture.from('assets/image.png')
this._textureAvailable(url, col, row, texture)
if (callback) callback()
}