@babylonjs/core 5.18.0 → 5.19.0

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 (55) hide show
  1. package/Debug/debugLayer.d.ts +36 -0
  2. package/Debug/debugLayer.js.map +1 -1
  3. package/Engines/Extensions/engine.query.js +5 -1
  4. package/Engines/Extensions/engine.query.js.map +1 -1
  5. package/Engines/Extensions/engine.transformFeedback.js +5 -1
  6. package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
  7. package/Engines/engine.d.ts +15 -242
  8. package/Engines/thinEngine.d.ts +1 -1
  9. package/Engines/thinEngine.js +7 -3
  10. package/Engines/thinEngine.js.map +1 -1
  11. package/Gizmos/axisDragGizmo.d.ts +20 -1
  12. package/Gizmos/axisDragGizmo.js.map +1 -1
  13. package/Gizmos/axisScaleGizmo.d.ts +26 -1
  14. package/Gizmos/axisScaleGizmo.js.map +1 -1
  15. package/Gizmos/boundingBoxGizmo.d.ts +71 -1
  16. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  17. package/Gizmos/cameraGizmo.d.ts +15 -1
  18. package/Gizmos/cameraGizmo.js.map +1 -1
  19. package/Gizmos/gizmoManager.d.ts +8 -8
  20. package/Gizmos/gizmoManager.js.map +1 -1
  21. package/Gizmos/lightGizmo.d.ts +13 -1
  22. package/Gizmos/lightGizmo.js.map +1 -1
  23. package/Gizmos/planeDragGizmo.d.ts +20 -1
  24. package/Gizmos/planeDragGizmo.js.map +1 -1
  25. package/Gizmos/planeRotationGizmo.d.ts +22 -1
  26. package/Gizmos/planeRotationGizmo.js.map +1 -1
  27. package/Gizmos/positionGizmo.d.ts +44 -10
  28. package/Gizmos/positionGizmo.js.map +1 -1
  29. package/Gizmos/rotationGizmo.d.ts +29 -6
  30. package/Gizmos/rotationGizmo.js.map +1 -1
  31. package/Gizmos/scaleGizmo.d.ts +34 -6
  32. package/Gizmos/scaleGizmo.js.map +1 -1
  33. package/Materials/Textures/renderTargetTexture.js +3 -0
  34. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  35. package/Materials/index.d.ts +1 -0
  36. package/Materials/index.js +1 -0
  37. package/Materials/index.js.map +1 -1
  38. package/Maths/math.vector.d.ts +16 -1
  39. package/Maths/math.vector.js +35 -2
  40. package/Maths/math.vector.js.map +1 -1
  41. package/Meshes/groundMesh.js +1 -1
  42. package/Meshes/groundMesh.js.map +1 -1
  43. package/Misc/assetsManager.d.ts +9 -0
  44. package/Misc/assetsManager.js +3 -1
  45. package/Misc/assetsManager.js.map +1 -1
  46. package/Misc/basis.js +7 -4
  47. package/Misc/basis.js.map +1 -1
  48. package/Misc/computePressure.d.ts +9 -3
  49. package/Misc/computePressure.js +13 -5
  50. package/Misc/computePressure.js.map +1 -1
  51. package/Physics/physicsImpostor.js +8 -2
  52. package/Physics/physicsImpostor.js.map +1 -1
  53. package/package.json +1 -1
  54. package/scene.js +5 -3
  55. package/scene.js.map +1 -1
@@ -409,7 +409,7 @@ var ThinEngine = /** @class */ (function () {
409
409
  */
410
410
  // Not mixed with Version for tooling purpose.
411
411
  get: function () {
412
- return "babylonjs@5.18.0";
412
+ return "babylonjs@5.19.0";
413
413
  },
414
414
  enumerable: false,
415
415
  configurable: true
@@ -419,7 +419,7 @@ var ThinEngine = /** @class */ (function () {
419
419
  * Returns the current version of the framework
420
420
  */
421
421
  get: function () {
422
- return "5.18.0";
422
+ return "5.19.0";
423
423
  },
424
424
  enumerable: false,
425
425
  configurable: true
@@ -854,6 +854,7 @@ var ThinEngine = /** @class */ (function () {
854
854
  }
855
855
  };
856
856
  ThinEngine.prototype._initGLContext = function () {
857
+ var _a;
857
858
  // Caps
858
859
  this._caps = {
859
860
  maxTexturesImageUnits: this._gl.getParameter(this._gl.MAX_TEXTURE_IMAGE_UNITS),
@@ -944,7 +945,7 @@ var ThinEngine = /** @class */ (function () {
944
945
  if (this._webGLVersion === 1) {
945
946
  this._gl.getQuery = this._caps.timerQuery.getQueryEXT.bind(this._caps.timerQuery);
946
947
  }
947
- this._caps.canUseTimestampForTimerQuery = this._gl.getQuery(this._caps.timerQuery.TIMESTAMP_EXT, this._caps.timerQuery.QUERY_COUNTER_BITS_EXT) > 0;
948
+ this._caps.canUseTimestampForTimerQuery = ((_a = this._gl.getQuery(this._caps.timerQuery.TIMESTAMP_EXT, this._caps.timerQuery.QUERY_COUNTER_BITS_EXT)) !== null && _a !== void 0 ? _a : 0) > 0;
948
949
  }
949
950
  this._caps.maxAnisotropy = this._caps.textureAnisotropicFilterExtension
950
951
  ? this._gl.getParameter(this._caps.textureAnisotropicFilterExtension.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
@@ -1918,6 +1919,9 @@ var ThinEngine = /** @class */ (function () {
1918
1919
  */
1919
1920
  ThinEngine.prototype.recordVertexArrayObject = function (vertexBuffers, indexBuffer, effect, overrideVertexBuffers) {
1920
1921
  var vao = this._gl.createVertexArray();
1922
+ if (!vao) {
1923
+ throw new Error("Unable to create VAO");
1924
+ }
1921
1925
  this._vaoRecordInProgress = true;
1922
1926
  this._gl.bindVertexArray(vao);
1923
1927
  this._mustWipeVertexAttributes = true;