Fixed loader.js bug.

This commit is contained in:
Sebastian Kupke 2019-09-19 13:53:12 +02:00
parent b69472640f
commit 735d947126
2 changed files with 5 additions and 5 deletions

6
dist/iwmlib.pixi.js vendored
View File

@ -8916,8 +8916,8 @@
if (event.data.success) { if (event.data.success) {
let { url, col, row, buffer } = event.data; let { url, col, row, buffer } = event.data;
//console.log("WorkerTileLoader.loaded", url, buffer) //console.log("WorkerTileLoader.loaded", url, buffer)
let CompressedImage = PIXI.compressedTextures.CompressedImage; //let CompressedImage = PIXI.compressedTextures.CompressedImage
let compressed = CompressedImage.loadFromArrayBuffer(buffer, url); let compressed = PIXI.compressedTextures.loadFromArrayBuffer(buffer, url);
let base = new PIXI.BaseTexture(compressed); let base = new PIXI.BaseTexture(compressed);
let texture = new PIXI.Texture(base); let texture = new PIXI.Texture(base);
this._textureAvailable(url, col, row, texture); this._textureAvailable(url, col, row, texture);
@ -14604,7 +14604,7 @@
} }
tiltToLineWidth(value) { tiltToLineWidth(value) {
return 16 // Math.round(Math.abs(value / 10) + 1) return Math.round(Math.abs(value / 10) + 1)
} }
drawStroke(stroke) { drawStroke(stroke) {

View File

@ -324,8 +324,8 @@ export class WorkerTileLoader extends TileLoader {
if (event.data.success) { if (event.data.success) {
let { url, col, row, buffer } = event.data let { url, col, row, buffer } = event.data
//console.log("WorkerTileLoader.loaded", url, buffer) //console.log("WorkerTileLoader.loaded", url, buffer)
let CompressedImage = PIXI.compressedTextures.CompressedImage //let CompressedImage = PIXI.compressedTextures.CompressedImage
let compressed = CompressedImage.loadFromArrayBuffer(buffer, url) let compressed = PIXI.compressedTextures.loadFromArrayBuffer(buffer, url)
let base = new PIXI.BaseTexture(compressed) let base = new PIXI.BaseTexture(compressed)
let texture = new PIXI.Texture(base) let texture = new PIXI.Texture(base)
this._textureAvailable(url, col, row, texture) this._textureAvailable(url, col, row, texture)