@onerjs/core 8.44.4 → 8.44.6

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.
Files changed (40) hide show
  1. package/Bones/skeleton.d.ts +6 -0
  2. package/Bones/skeleton.js +10 -0
  3. package/Bones/skeleton.js.map +1 -1
  4. package/Engines/Extensions/engine.rawTexture.js +2 -2
  5. package/Engines/Extensions/engine.rawTexture.js.map +1 -1
  6. package/Engines/abstractEngine.js +19 -9
  7. package/Engines/abstractEngine.js.map +1 -1
  8. package/Engines/thinEngine.js.map +1 -1
  9. package/FlowGraph/flowGraphCoordinator.js +5 -1
  10. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  11. package/FlowGraph/serialization.js +0 -1
  12. package/FlowGraph/serialization.js.map +1 -1
  13. package/Materials/Textures/equiRectangularCubeTexture.d.ts +5 -0
  14. package/Materials/Textures/equiRectangularCubeTexture.js +19 -0
  15. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  16. package/Materials/materialHelper.functions.js +3 -0
  17. package/Materials/materialHelper.functions.js.map +1 -1
  18. package/Meshes/abstractMesh.js +9 -0
  19. package/Meshes/abstractMesh.js.map +1 -1
  20. package/Meshes/mesh.js +12 -8
  21. package/Meshes/mesh.js.map +1 -1
  22. package/Misc/tools.js +1 -1
  23. package/Misc/tools.js.map +1 -1
  24. package/Particles/solidParticleSystem.d.ts +1 -0
  25. package/Particles/solidParticleSystem.js +32 -2
  26. package/Particles/solidParticleSystem.js.map +1 -1
  27. package/Physics/v2/Plugins/havokPlugin.d.ts +5 -3
  28. package/Physics/v2/Plugins/havokPlugin.js +9 -5
  29. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  30. package/Physics/v2/physicsBody.d.ts +5 -3
  31. package/Physics/v2/physicsBody.js +7 -5
  32. package/Physics/v2/physicsBody.js.map +1 -1
  33. package/Rendering/boundingBoxRenderer.js +9 -4
  34. package/Rendering/boundingBoxRenderer.js.map +1 -1
  35. package/Rendering/edgesRenderer.js +7 -4
  36. package/Rendering/edgesRenderer.js.map +1 -1
  37. package/package.json +1 -1
  38. package/Meshes/Compression/test/integration/draco.test.d.ts +0 -1
  39. package/Meshes/Compression/test/integration/draco.test.js +0 -30
  40. package/Meshes/Compression/test/integration/draco.test.js.map +0 -1
@@ -684,21 +684,31 @@ export class AbstractEngine {
684
684
  }, loaderOptions);
685
685
  };
686
686
  if (!buffer) {
687
- this._loadFile(url, (data) => {
688
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
689
- callbackAsync(new Uint8Array(data));
687
+ this._loadFile(url, async (data) => {
688
+ try {
689
+ await callbackAsync(new Uint8Array(data));
690
+ }
691
+ catch (reason) {
692
+ onInternalError("Failed to parse texture data", reason);
693
+ }
690
694
  }, undefined, scene ? scene.offlineProvider : undefined, true, (request, exception) => {
691
695
  onInternalError("Unable to load " + (request ? request.responseURL : url, exception));
692
696
  });
693
697
  }
694
698
  else {
699
+ const processBufferAsync = async (data) => {
700
+ try {
701
+ await callbackAsync(data);
702
+ }
703
+ catch (reason) {
704
+ onInternalError("Failed to parse texture data", reason);
705
+ }
706
+ };
695
707
  if (buffer instanceof ArrayBuffer) {
696
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
697
- callbackAsync(new Uint8Array(buffer));
708
+ void processBufferAsync(new Uint8Array(buffer));
698
709
  }
699
710
  else if (ArrayBuffer.isView(buffer)) {
700
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
701
- callbackAsync(buffer);
711
+ void processBufferAsync(buffer);
702
712
  }
703
713
  else {
704
714
  if (onError) {
@@ -802,13 +812,13 @@ export class AbstractEngine {
802
812
  */
803
813
  // Not mixed with Version for tooling purpose.
804
814
  static get NpmPackage() {
805
- return "babylonjs@8.56.0";
815
+ return "babylonjs@8.56.2";
806
816
  }
807
817
  /**
808
818
  * Returns the current version of the framework
809
819
  */
810
820
  static get Version() {
811
- return "8.56.0";
821
+ return "8.56.2";
812
822
  }
813
823
  /**
814
824
  * Gets the HTML canvas attached with the current webGL context