Fixed loader.js bug.
This commit is contained in:
parent
b69472640f
commit
735d947126
6
dist/iwmlib.pixi.js
vendored
6
dist/iwmlib.pixi.js
vendored
@ -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) {
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user