@woosh/meep-engine 2.34.4 → 2.34.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ async function decode_png(png_bytes) {
23
23
  width,
24
24
  height,
25
25
  itemSize: uint_channels.itemSize,
26
- bitDepth: uint_channels.bitDepth
26
+ bitDepth: png.bitDepth
27
27
  });
28
28
  });
29
29
  }
@@ -24,6 +24,7 @@ export class ThreadedImageDecoder extends Codec {
24
24
  }
25
25
 
26
26
  async decode(data) {
27
- return await this.worker.request('decode', [data.buffer]);
27
+ const result = await this.worker.request('decode', [data.buffer]);
28
+ return result;
28
29
  }
29
30
  }
@@ -397,7 +397,6 @@ PNG.prototype.getUint8Data = function () {
397
397
 
398
398
  return {
399
399
  data,
400
- itemSize,
401
- bitDepth: this.bitDepth
400
+ itemSize
402
401
  };
403
402
  };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.34.4",
8
+ "version": "2.34.5",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",
@@ -309,6 +309,10 @@ async function main(engine) {
309
309
 
310
310
  await EngineHarness.buildTerrain({ engine });
311
311
 
312
+ const image = await engine.assetManager.promise("diffuseMap1.png", 'image');
313
+
314
+ console.log(image.create());
315
+
312
316
  const vMain = new EmptyView({ classList: ['ui-texture-testing-tool-view'] });
313
317
 
314
318
  vMain.css({