@babylonjs/core 5.0.0-beta.4 → 5.0.0-beta.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.
Files changed (431) hide show
  1. package/Audio/sound.js +3 -1
  2. package/Audio/sound.js.map +1 -1
  3. package/Behaviors/Meshes/baseSixDofDragBehavior.js +29 -26
  4. package/Behaviors/Meshes/baseSixDofDragBehavior.js.map +1 -1
  5. package/Behaviors/Meshes/pointerDragBehavior.js +2 -0
  6. package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
  7. package/Bones/bone.d.ts +2 -1
  8. package/Bones/bone.js +28 -18
  9. package/Bones/bone.js.map +1 -1
  10. package/Bones/skeleton.js +3 -3
  11. package/Bones/skeleton.js.map +1 -1
  12. package/Buffers/buffer.js +2 -2
  13. package/Buffers/buffer.js.map +1 -1
  14. package/Cameras/Inputs/freeCameraTouchInput.js +2 -4
  15. package/Cameras/Inputs/freeCameraTouchInput.js.map +1 -1
  16. package/Cameras/camera.js +1 -1
  17. package/Cameras/camera.js.map +1 -1
  18. package/Compute/computeEffect.js +2 -2
  19. package/Compute/computeEffect.js.map +1 -1
  20. package/Debug/debugLayer.js +1 -1
  21. package/Debug/debugLayer.js.map +1 -1
  22. package/DeviceInput/Helpers/eventFactory.js +1 -1
  23. package/DeviceInput/Helpers/eventFactory.js.map +1 -1
  24. package/DeviceInput/InputDevices/deviceEnums.d.ts +52 -1
  25. package/DeviceInput/InputDevices/deviceEnums.js +52 -0
  26. package/DeviceInput/InputDevices/deviceEnums.js.map +1 -1
  27. package/DeviceInput/InputDevices/deviceTypes.d.ts +2 -2
  28. package/DeviceInput/InputDevices/deviceTypes.js.map +1 -1
  29. package/DeviceInput/InputDevices/internalDeviceSourceManager.js +1 -0
  30. package/DeviceInput/InputDevices/internalDeviceSourceManager.js.map +1 -1
  31. package/DeviceInput/InputDevices/webDeviceInputSystem.js +22 -18
  32. package/DeviceInput/InputDevices/webDeviceInputSystem.js.map +1 -1
  33. package/Engines/Extensions/engine.cubeTexture.js +1 -1
  34. package/Engines/Extensions/engine.cubeTexture.js.map +1 -1
  35. package/Engines/Extensions/engine.multiview.d.ts +5 -0
  36. package/Engines/Extensions/engine.multiview.js +4 -1
  37. package/Engines/Extensions/engine.multiview.js.map +1 -1
  38. package/Engines/Native/nativeInterfaces.d.ts +1 -0
  39. package/Engines/Native/nativeInterfaces.js.map +1 -1
  40. package/Engines/Processors/Expressions/shaderDefineExpression.js +1 -1
  41. package/Engines/Processors/Expressions/shaderDefineExpression.js.map +1 -1
  42. package/Engines/Processors/shaderCodeInliner.js +13 -13
  43. package/Engines/Processors/shaderCodeInliner.js.map +1 -1
  44. package/Engines/WebGPU/webgpuCacheBindGroups.js +9 -9
  45. package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
  46. package/Engines/WebGPU/webgpuCacheRenderPipeline.js +1 -1
  47. package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
  48. package/Engines/WebGPU/webgpuComputeContext.js +1 -1
  49. package/Engines/WebGPU/webgpuComputeContext.js.map +1 -1
  50. package/Engines/WebGPU/webgpuShaderProcessorsGLSL.js +13 -13
  51. package/Engines/WebGPU/webgpuShaderProcessorsGLSL.js.map +1 -1
  52. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js +30 -30
  53. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js.map +1 -1
  54. package/Engines/WebGPU/webgpuTextureHelper.js +4 -4
  55. package/Engines/WebGPU/webgpuTextureHelper.js.map +1 -1
  56. package/Engines/engine.d.ts +1 -1
  57. package/Engines/engine.js +1 -1
  58. package/Engines/engine.js.map +1 -1
  59. package/Engines/nativeEngine.d.ts +1 -0
  60. package/Engines/nativeEngine.js +36 -11
  61. package/Engines/nativeEngine.js.map +1 -1
  62. package/Engines/nullEngine.js +1 -1
  63. package/Engines/nullEngine.js.map +1 -1
  64. package/Engines/thinEngine.js +8 -8
  65. package/Engines/thinEngine.js.map +1 -1
  66. package/Engines/webgpuEngine.js +4 -4
  67. package/Engines/webgpuEngine.js.map +1 -1
  68. package/Gamepads/Controllers/daydreamController.js +1 -1
  69. package/Gamepads/Controllers/daydreamController.js.map +1 -1
  70. package/Gamepads/gamepadManager.js +1 -1
  71. package/Gamepads/gamepadManager.js.map +1 -1
  72. package/Gizmos/gizmoManager.d.ts +2 -0
  73. package/Gizmos/gizmoManager.js +28 -24
  74. package/Gizmos/gizmoManager.js.map +1 -1
  75. package/Instrumentation/sceneInstrumentation.js +2 -2
  76. package/Instrumentation/sceneInstrumentation.js.map +1 -1
  77. package/Layers/layer.d.ts +2 -2
  78. package/Layers/layer.js.map +1 -1
  79. package/Lights/Shadows/cascadedShadowGenerator.js +2 -2
  80. package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
  81. package/Lights/Shadows/shadowGenerator.js +2 -2
  82. package/Lights/Shadows/shadowGenerator.js.map +1 -1
  83. package/Loading/Plugins/babylonFileLoader.js +78 -27
  84. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  85. package/Loading/loadingScreen.js +8 -8
  86. package/Loading/loadingScreen.js.map +1 -1
  87. package/Loading/sceneLoader.js +3 -3
  88. package/Loading/sceneLoader.js.map +1 -1
  89. package/Materials/Node/Blocks/Dual/clipPlanesBlock.d.ts +37 -0
  90. package/Materials/Node/Blocks/Dual/clipPlanesBlock.js +117 -0
  91. package/Materials/Node/Blocks/Dual/clipPlanesBlock.js.map +1 -0
  92. package/Materials/Node/Blocks/Dual/currentScreenBlock.js +12 -12
  93. package/Materials/Node/Blocks/Dual/currentScreenBlock.js.map +1 -1
  94. package/Materials/Node/Blocks/Dual/fogBlock.js +5 -5
  95. package/Materials/Node/Blocks/Dual/fogBlock.js.map +1 -1
  96. package/Materials/Node/Blocks/Dual/imageSourceBlock.js +11 -11
  97. package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
  98. package/Materials/Node/Blocks/Dual/index.d.ts +1 -0
  99. package/Materials/Node/Blocks/Dual/index.js +1 -0
  100. package/Materials/Node/Blocks/Dual/index.js.map +1 -1
  101. package/Materials/Node/Blocks/Dual/lightBlock.js +10 -10
  102. package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
  103. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +26 -26
  104. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
  105. package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js +1 -1
  106. package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js.map +1 -1
  107. package/Materials/Node/Blocks/Dual/sceneDepthBlock.js +7 -7
  108. package/Materials/Node/Blocks/Dual/sceneDepthBlock.js.map +1 -1
  109. package/Materials/Node/Blocks/Dual/textureBlock.js +30 -30
  110. package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
  111. package/Materials/Node/Blocks/Fragment/derivativeBlock.js +2 -2
  112. package/Materials/Node/Blocks/Fragment/derivativeBlock.js.map +1 -1
  113. package/Materials/Node/Blocks/Fragment/discardBlock.js +1 -1
  114. package/Materials/Node/Blocks/Fragment/discardBlock.js.map +1 -1
  115. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js +1 -1
  116. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js.map +1 -1
  117. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +10 -10
  118. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
  119. package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js +7 -7
  120. package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js.map +1 -1
  121. package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js +12 -12
  122. package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
  123. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js +1 -1
  124. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js.map +1 -1
  125. package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js +7 -7
  126. package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js.map +1 -1
  127. package/Materials/Node/Blocks/Fragment/twirlBlock.js +4 -4
  128. package/Materials/Node/Blocks/Fragment/twirlBlock.js.map +1 -1
  129. package/Materials/Node/Blocks/Input/inputBlock.d.ts +2 -1
  130. package/Materials/Node/Blocks/Input/inputBlock.js +29 -24
  131. package/Materials/Node/Blocks/Input/inputBlock.js.map +1 -1
  132. package/Materials/Node/Blocks/PBR/anisotropyBlock.js +5 -5
  133. package/Materials/Node/Blocks/PBR/anisotropyBlock.js.map +1 -1
  134. package/Materials/Node/Blocks/PBR/clearCoatBlock.js +5 -5
  135. package/Materials/Node/Blocks/PBR/clearCoatBlock.js.map +1 -1
  136. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +33 -33
  137. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
  138. package/Materials/Node/Blocks/PBR/reflectionBlock.js +11 -11
  139. package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
  140. package/Materials/Node/Blocks/PBR/refractionBlock.js +11 -11
  141. package/Materials/Node/Blocks/PBR/refractionBlock.js.map +1 -1
  142. package/Materials/Node/Blocks/PBR/sheenBlock.js +3 -3
  143. package/Materials/Node/Blocks/PBR/sheenBlock.js.map +1 -1
  144. package/Materials/Node/Blocks/PBR/subSurfaceBlock.js +1 -1
  145. package/Materials/Node/Blocks/PBR/subSurfaceBlock.js.map +1 -1
  146. package/Materials/Node/Blocks/Particle/particleBlendMultiplyBlock.js +1 -1
  147. package/Materials/Node/Blocks/Particle/particleBlendMultiplyBlock.js.map +1 -1
  148. package/Materials/Node/Blocks/Particle/particleRampGradientBlock.js +1 -1
  149. package/Materials/Node/Blocks/Particle/particleRampGradientBlock.js.map +1 -1
  150. package/Materials/Node/Blocks/Particle/particleTextureBlock.js +7 -7
  151. package/Materials/Node/Blocks/Particle/particleTextureBlock.js.map +1 -1
  152. package/Materials/Node/Blocks/Vertex/bonesBlock.js +3 -3
  153. package/Materials/Node/Blocks/Vertex/bonesBlock.js.map +1 -1
  154. package/Materials/Node/Blocks/Vertex/instancesBlock.js +3 -3
  155. package/Materials/Node/Blocks/Vertex/instancesBlock.js.map +1 -1
  156. package/Materials/Node/Blocks/Vertex/lightInformationBlock.js +5 -5
  157. package/Materials/Node/Blocks/Vertex/lightInformationBlock.js.map +1 -1
  158. package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js +16 -16
  159. package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js.map +1 -1
  160. package/Materials/Node/Blocks/Vertex/vertexOutputBlock.js +1 -1
  161. package/Materials/Node/Blocks/Vertex/vertexOutputBlock.js.map +1 -1
  162. package/Materials/Node/Blocks/addBlock.js +1 -1
  163. package/Materials/Node/Blocks/addBlock.js.map +1 -1
  164. package/Materials/Node/Blocks/arcTan2Block.js +1 -1
  165. package/Materials/Node/Blocks/arcTan2Block.js.map +1 -1
  166. package/Materials/Node/Blocks/clampBlock.js +3 -3
  167. package/Materials/Node/Blocks/clampBlock.js.map +1 -1
  168. package/Materials/Node/Blocks/cloudBlock.js +7 -7
  169. package/Materials/Node/Blocks/cloudBlock.js.map +1 -1
  170. package/Materials/Node/Blocks/colorMergerBlock.js +8 -8
  171. package/Materials/Node/Blocks/colorMergerBlock.js.map +1 -1
  172. package/Materials/Node/Blocks/colorSplitterBlock.js +5 -5
  173. package/Materials/Node/Blocks/colorSplitterBlock.js.map +1 -1
  174. package/Materials/Node/Blocks/conditionalBlock.js +10 -10
  175. package/Materials/Node/Blocks/conditionalBlock.js.map +1 -1
  176. package/Materials/Node/Blocks/crossBlock.js +1 -1
  177. package/Materials/Node/Blocks/crossBlock.js.map +1 -1
  178. package/Materials/Node/Blocks/customBlock.js +1 -1
  179. package/Materials/Node/Blocks/customBlock.js.map +1 -1
  180. package/Materials/Node/Blocks/desaturateBlock.js +4 -4
  181. package/Materials/Node/Blocks/desaturateBlock.js.map +1 -1
  182. package/Materials/Node/Blocks/distanceBlock.js +1 -1
  183. package/Materials/Node/Blocks/distanceBlock.js.map +1 -1
  184. package/Materials/Node/Blocks/divideBlock.js +1 -1
  185. package/Materials/Node/Blocks/divideBlock.js.map +1 -1
  186. package/Materials/Node/Blocks/dotBlock.js +1 -1
  187. package/Materials/Node/Blocks/dotBlock.js.map +1 -1
  188. package/Materials/Node/Blocks/elbowBlock.d.ts +27 -0
  189. package/Materials/Node/Blocks/elbowBlock.js +60 -0
  190. package/Materials/Node/Blocks/elbowBlock.js.map +1 -0
  191. package/Materials/Node/Blocks/fresnelBlock.js +2 -2
  192. package/Materials/Node/Blocks/fresnelBlock.js.map +1 -1
  193. package/Materials/Node/Blocks/gradientBlock.js +8 -8
  194. package/Materials/Node/Blocks/gradientBlock.js.map +1 -1
  195. package/Materials/Node/Blocks/index.d.ts +1 -0
  196. package/Materials/Node/Blocks/index.js +1 -0
  197. package/Materials/Node/Blocks/index.js.map +1 -1
  198. package/Materials/Node/Blocks/lengthBlock.js +1 -1
  199. package/Materials/Node/Blocks/lengthBlock.js.map +1 -1
  200. package/Materials/Node/Blocks/lerpBlock.js +1 -1
  201. package/Materials/Node/Blocks/lerpBlock.js.map +1 -1
  202. package/Materials/Node/Blocks/matrixBuilderBlock.js +1 -1
  203. package/Materials/Node/Blocks/matrixBuilderBlock.js.map +1 -1
  204. package/Materials/Node/Blocks/maxBlock.js +1 -1
  205. package/Materials/Node/Blocks/maxBlock.js.map +1 -1
  206. package/Materials/Node/Blocks/minBlock.js +1 -1
  207. package/Materials/Node/Blocks/minBlock.js.map +1 -1
  208. package/Materials/Node/Blocks/modBlock.js +1 -1
  209. package/Materials/Node/Blocks/modBlock.js.map +1 -1
  210. package/Materials/Node/Blocks/multiplyBlock.js +1 -1
  211. package/Materials/Node/Blocks/multiplyBlock.js.map +1 -1
  212. package/Materials/Node/Blocks/nLerpBlock.js +1 -1
  213. package/Materials/Node/Blocks/nLerpBlock.js.map +1 -1
  214. package/Materials/Node/Blocks/negateBlock.js +1 -1
  215. package/Materials/Node/Blocks/negateBlock.js.map +1 -1
  216. package/Materials/Node/Blocks/normalBlendBlock.js +5 -5
  217. package/Materials/Node/Blocks/normalBlendBlock.js.map +1 -1
  218. package/Materials/Node/Blocks/normalizeBlock.js +1 -1
  219. package/Materials/Node/Blocks/normalizeBlock.js.map +1 -1
  220. package/Materials/Node/Blocks/oneMinusBlock.js +1 -1
  221. package/Materials/Node/Blocks/oneMinusBlock.js.map +1 -1
  222. package/Materials/Node/Blocks/posterizeBlock.js +1 -1
  223. package/Materials/Node/Blocks/posterizeBlock.js.map +1 -1
  224. package/Materials/Node/Blocks/powBlock.js +1 -1
  225. package/Materials/Node/Blocks/powBlock.js.map +1 -1
  226. package/Materials/Node/Blocks/randomNumberBlock.js +2 -2
  227. package/Materials/Node/Blocks/randomNumberBlock.js.map +1 -1
  228. package/Materials/Node/Blocks/reciprocalBlock.js +1 -1
  229. package/Materials/Node/Blocks/reciprocalBlock.js.map +1 -1
  230. package/Materials/Node/Blocks/reflectBlock.js +1 -1
  231. package/Materials/Node/Blocks/reflectBlock.js.map +1 -1
  232. package/Materials/Node/Blocks/refractBlock.js +1 -1
  233. package/Materials/Node/Blocks/refractBlock.js.map +1 -1
  234. package/Materials/Node/Blocks/remapBlock.js +3 -3
  235. package/Materials/Node/Blocks/remapBlock.js.map +1 -1
  236. package/Materials/Node/Blocks/replaceColorBlock.js +3 -3
  237. package/Materials/Node/Blocks/replaceColorBlock.js.map +1 -1
  238. package/Materials/Node/Blocks/rotate2dBlock.js +1 -1
  239. package/Materials/Node/Blocks/rotate2dBlock.js.map +1 -1
  240. package/Materials/Node/Blocks/scaleBlock.js +1 -1
  241. package/Materials/Node/Blocks/scaleBlock.js.map +1 -1
  242. package/Materials/Node/Blocks/simplexPerlin3DBlock.js +1 -1
  243. package/Materials/Node/Blocks/simplexPerlin3DBlock.js.map +1 -1
  244. package/Materials/Node/Blocks/smoothStepBlock.js +1 -1
  245. package/Materials/Node/Blocks/smoothStepBlock.js.map +1 -1
  246. package/Materials/Node/Blocks/stepBlock.js +1 -1
  247. package/Materials/Node/Blocks/stepBlock.js.map +1 -1
  248. package/Materials/Node/Blocks/subtractBlock.js +1 -1
  249. package/Materials/Node/Blocks/subtractBlock.js.map +1 -1
  250. package/Materials/Node/Blocks/transformBlock.js +13 -13
  251. package/Materials/Node/Blocks/transformBlock.js.map +1 -1
  252. package/Materials/Node/Blocks/trigonometryBlock.js +2 -2
  253. package/Materials/Node/Blocks/trigonometryBlock.js.map +1 -1
  254. package/Materials/Node/Blocks/vectorMergerBlock.js +22 -22
  255. package/Materials/Node/Blocks/vectorMergerBlock.js.map +1 -1
  256. package/Materials/Node/Blocks/vectorSplitterBlock.js +8 -8
  257. package/Materials/Node/Blocks/vectorSplitterBlock.js.map +1 -1
  258. package/Materials/Node/Blocks/viewDirectionBlock.js +1 -1
  259. package/Materials/Node/Blocks/viewDirectionBlock.js.map +1 -1
  260. package/Materials/Node/Blocks/voronoiNoiseBlock.js +5 -5
  261. package/Materials/Node/Blocks/voronoiNoiseBlock.js.map +1 -1
  262. package/Materials/Node/Blocks/waveBlock.js +3 -3
  263. package/Materials/Node/Blocks/waveBlock.js.map +1 -1
  264. package/Materials/Node/Blocks/worleyNoise3DBlock.js +5 -5
  265. package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
  266. package/Materials/Node/Enums/nodeMaterialSystemValues.d.ts +3 -1
  267. package/Materials/Node/Enums/nodeMaterialSystemValues.js +2 -0
  268. package/Materials/Node/Enums/nodeMaterialSystemValues.js.map +1 -1
  269. package/Materials/Node/nodeMaterial.d.ts +4 -0
  270. package/Materials/Node/nodeMaterial.js +20 -10
  271. package/Materials/Node/nodeMaterial.js.map +1 -1
  272. package/Materials/Node/nodeMaterialBlock.js +12 -12
  273. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  274. package/Materials/Node/nodeMaterialBuildState.js +24 -24
  275. package/Materials/Node/nodeMaterialBuildState.js.map +1 -1
  276. package/Materials/Node/nodeMaterialBuildStateSharedData.js +1 -1
  277. package/Materials/Node/nodeMaterialBuildStateSharedData.js.map +1 -1
  278. package/Materials/PBR/pbrBaseMaterial.js +2 -2
  279. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  280. package/Materials/PBR/pbrMaterial.js +1 -2
  281. package/Materials/PBR/pbrMaterial.js.map +1 -1
  282. package/Materials/Textures/Loaders/ktxTextureLoader.js +1 -1
  283. package/Materials/Textures/Loaders/ktxTextureLoader.js.map +1 -1
  284. package/Materials/Textures/MultiviewRenderTarget.d.ts +1 -0
  285. package/Materials/Textures/MultiviewRenderTarget.js +10 -2
  286. package/Materials/Textures/MultiviewRenderTarget.js.map +1 -1
  287. package/Materials/Textures/Procedurals/proceduralTexture.js +1 -1
  288. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  289. package/Materials/Textures/equiRectangularCubeTexture.js +1 -1
  290. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  291. package/Materials/Textures/mirrorTexture.js +2 -2
  292. package/Materials/Textures/mirrorTexture.js.map +1 -1
  293. package/Materials/Textures/renderTargetTexture.js +2 -2
  294. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  295. package/Materials/Textures/videoTexture.js +1 -0
  296. package/Materials/Textures/videoTexture.js.map +1 -1
  297. package/Materials/effect.js +3 -3
  298. package/Materials/effect.js.map +1 -1
  299. package/Materials/material.d.ts +2 -0
  300. package/Materials/material.js +4 -1
  301. package/Materials/material.js.map +1 -1
  302. package/Materials/materialHelper.js +1 -1
  303. package/Materials/materialHelper.js.map +1 -1
  304. package/Materials/materialPluginManager.js +3 -3
  305. package/Materials/materialPluginManager.js.map +1 -1
  306. package/Materials/multiMaterial.d.ts +2 -0
  307. package/Materials/multiMaterial.js +12 -10
  308. package/Materials/multiMaterial.js.map +1 -1
  309. package/Materials/shaderMaterial.js +1 -1
  310. package/Materials/shaderMaterial.js.map +1 -1
  311. package/Materials/shadowDepthWrapper.js +1 -1
  312. package/Materials/shadowDepthWrapper.js.map +1 -1
  313. package/Materials/standardMaterial.d.ts +0 -5
  314. package/Materials/standardMaterial.js +1 -10
  315. package/Materials/standardMaterial.js.map +1 -1
  316. package/Maths/math.size.js +1 -1
  317. package/Maths/math.size.js.map +1 -1
  318. package/Maths/math.vector.js +4 -4
  319. package/Maths/math.vector.js.map +1 -1
  320. package/Meshes/Builders/cylinderBuilder.d.ts +1 -1
  321. package/Meshes/Builders/cylinderBuilder.js +1 -1
  322. package/Meshes/Builders/cylinderBuilder.js.map +1 -1
  323. package/Meshes/Builders/linesBuilder.js.map +1 -1
  324. package/Meshes/Compression/dracoCompression.d.ts +3 -0
  325. package/Meshes/Compression/dracoCompression.js +23 -7
  326. package/Meshes/Compression/dracoCompression.js.map +1 -1
  327. package/Meshes/abstractMesh.d.ts +2 -0
  328. package/Meshes/abstractMesh.js +2 -0
  329. package/Meshes/abstractMesh.js.map +1 -1
  330. package/Meshes/mesh.js +8 -6
  331. package/Meshes/mesh.js.map +1 -1
  332. package/Meshes/mesh.lts.d.ts +1 -1
  333. package/Meshes/mesh.lts.js.map +1 -1
  334. package/Meshes/mesh.vertexData.d.ts +1 -1
  335. package/Meshes/mesh.vertexData.js +2 -2
  336. package/Meshes/mesh.vertexData.js.map +1 -1
  337. package/Misc/PerformanceViewer/performanceViewerCollector.js +6 -6
  338. package/Misc/PerformanceViewer/performanceViewerCollector.js.map +1 -1
  339. package/Misc/assetsManager.d.ts +1 -0
  340. package/Misc/assetsManager.js +13 -0
  341. package/Misc/assetsManager.js.map +1 -1
  342. package/Misc/basis.js +1 -1
  343. package/Misc/basis.js.map +1 -1
  344. package/Misc/devTools.js +1 -1
  345. package/Misc/devTools.js.map +1 -1
  346. package/Misc/environmentTextureTools.js +2 -2
  347. package/Misc/environmentTextureTools.js.map +1 -1
  348. package/Misc/fileTools.js +3 -3
  349. package/Misc/fileTools.js.map +1 -1
  350. package/Misc/khronosTextureContainer2.js +4 -3
  351. package/Misc/khronosTextureContainer2.js.map +1 -1
  352. package/Misc/reflector.js +6 -6
  353. package/Misc/reflector.js.map +1 -1
  354. package/Misc/tools.js +15 -13
  355. package/Misc/tools.js.map +1 -1
  356. package/Misc/uniqueIdGenerator.js +1 -1
  357. package/Misc/uniqueIdGenerator.js.map +1 -1
  358. package/Offline/database.js +1 -1
  359. package/Offline/database.js.map +1 -1
  360. package/Particles/baseParticleSystem.d.ts +4 -1
  361. package/Particles/baseParticleSystem.js +20 -5
  362. package/Particles/baseParticleSystem.js.map +1 -1
  363. package/Particles/particleHelper.js +2 -2
  364. package/Particles/particleHelper.js.map +1 -1
  365. package/Physics/Plugins/ammoJSPlugin.js +4 -4
  366. package/Physics/Plugins/ammoJSPlugin.js.map +1 -1
  367. package/Physics/physicsImpostor.d.ts +2 -2
  368. package/Physics/physicsImpostor.js.map +1 -1
  369. package/PostProcesses/blurPostProcess.js +5 -5
  370. package/PostProcesses/blurPostProcess.js.map +1 -1
  371. package/PostProcesses/imageProcessingPostProcess.js +1 -1
  372. package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
  373. package/PostProcesses/postProcess.js +1 -1
  374. package/PostProcesses/postProcess.js.map +1 -1
  375. package/PostProcesses/postProcessManager.js +2 -2
  376. package/PostProcesses/postProcessManager.js.map +1 -1
  377. package/Probes/reflectionProbe.js +2 -2
  378. package/Probes/reflectionProbe.js.map +1 -1
  379. package/Rendering/depthPeelingRenderer.js +3 -3
  380. package/Rendering/depthPeelingRenderer.js.map +1 -1
  381. package/Rendering/geometryBufferRenderer.js +8 -8
  382. package/Rendering/geometryBufferRenderer.js.map +1 -1
  383. package/Rendering/outlineRenderer.js +1 -1
  384. package/Rendering/outlineRenderer.js.map +1 -1
  385. package/Rendering/utilityLayerRenderer.js +4 -0
  386. package/Rendering/utilityLayerRenderer.js.map +1 -1
  387. package/Shaders/ShadersInclude/prePassVertex.js +1 -1
  388. package/Shaders/ShadersInclude/prePassVertex.js.map +1 -1
  389. package/ShadersWGSL/gpuUpdateParticles.compute.js +1 -1
  390. package/ShadersWGSL/gpuUpdateParticles.compute.js.map +1 -1
  391. package/Sprites/spriteManager.js +5 -6
  392. package/Sprites/spriteManager.js.map +1 -1
  393. package/Sprites/spriteMap.js +2 -2
  394. package/Sprites/spriteMap.js.map +1 -1
  395. package/Sprites/spriteRenderer.js +1 -1
  396. package/Sprites/spriteRenderer.js.map +1 -1
  397. package/XR/features/WebXRDOMOverlay.js +1 -1
  398. package/XR/features/WebXRDOMOverlay.js.map +1 -1
  399. package/XR/features/WebXRHandTracking.js +27 -27
  400. package/XR/features/WebXRHandTracking.js.map +1 -1
  401. package/XR/features/WebXRImageTracking.js +2 -2
  402. package/XR/features/WebXRImageTracking.js.map +1 -1
  403. package/XR/features/WebXRLayers.d.ts +28 -5
  404. package/XR/features/WebXRLayers.js +54 -20
  405. package/XR/features/WebXRLayers.js.map +1 -1
  406. package/XR/features/WebXRNearInteraction.d.ts +35 -3
  407. package/XR/features/WebXRNearInteraction.js +201 -40
  408. package/XR/features/WebXRNearInteraction.js.map +1 -1
  409. package/XR/motionController/webXRAbstractMotionController.js +1 -1
  410. package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
  411. package/XR/motionController/webXRMotionControllerManager.js +2 -2
  412. package/XR/motionController/webXRMotionControllerManager.js.map +1 -1
  413. package/XR/motionController/webXRProfiledMotionController.js +1 -1
  414. package/XR/motionController/webXRProfiledMotionController.js.map +1 -1
  415. package/XR/webXRCamera.js +17 -4
  416. package/XR/webXRCamera.js.map +1 -1
  417. package/XR/webXREnterExitUI.js +2 -2
  418. package/XR/webXREnterExitUI.js.map +1 -1
  419. package/XR/webXRFeaturesManager.js +6 -6
  420. package/XR/webXRFeaturesManager.js.map +1 -1
  421. package/XR/webXRInputSource.js +3 -3
  422. package/XR/webXRInputSource.js.map +1 -1
  423. package/XR/webXRRenderTargetTextureProvider.d.ts +3 -2
  424. package/XR/webXRRenderTargetTextureProvider.js +37 -18
  425. package/XR/webXRRenderTargetTextureProvider.js.map +1 -1
  426. package/node.d.ts +1 -1
  427. package/node.js.map +1 -1
  428. package/package.json +7 -1
  429. package/scene.d.ts +3 -1
  430. package/scene.js +28 -4
  431. package/scene.js.map +1 -1
@@ -16,7 +16,7 @@ var Size = /** @class */ (function () {
16
16
  * @returns a string with the Size width and height
17
17
  */
18
18
  Size.prototype.toString = function () {
19
- return "{W: " + this.width + ", H: " + this.height + "}";
19
+ return "{W: ".concat(this.width, ", H: ").concat(this.height, "}");
20
20
  };
21
21
  /**
22
22
  * "Size"
@@ -1 +1 @@
1
- {"version":3,"file":"math.size.js","sourceRoot":"","sources":["../../../sourceES6/core/Maths/math.size.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH;IAUI;;;;OAIG;IACH,cAAmB,KAAa,EAAE,MAAc;QAC5C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,uBAAQ,GAAf;QACI,OAAO,SAAO,IAAI,CAAC,KAAK,aAAQ,IAAI,CAAC,MAAM,MAAG,CAAC;IACnD,CAAC;IACD;;;OAGG;IACI,2BAAY,GAAnB;QACI,OAAO,MAAM,CAAC;IAClB,CAAC;IACD;;;OAGG;IACI,0BAAW,GAAlB;QACI,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QAC1B,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD;;;OAGG;IACI,uBAAQ,GAAf,UAAgB,GAAS;QACrB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC7B,CAAC;IACD;;;;;OAKG;IACI,6BAAc,GAArB,UAAsB,KAAa,EAAE,MAAc;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD;;;;;OAKG;IACI,kBAAG,GAAV,UAAW,KAAa,EAAE,MAAc;QACpC,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IACD;;;;;OAKG;IACI,+BAAgB,GAAvB,UAAwB,CAAS,EAAE,CAAS;QACxC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACrD,CAAC;IACD;;;OAGG;IACI,oBAAK,GAAZ;QACI,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD;;;;OAIG;IACI,qBAAM,GAAb,UAAc,KAAW;QACrB,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1E,CAAC;IAID,sBAAW,yBAAO;QAHlB;;WAEG;aACH;YACI,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QACpC,CAAC;;;OAAA;IACD;;;OAGG;IACW,SAAI,GAAlB;QACI,OAAO,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9B,CAAC;IACD;;;;OAIG;IACI,kBAAG,GAAV,UAAW,SAAe;QACtB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/E,OAAO,CAAC,CAAC;IACb,CAAC;IACD;;;;OAIG;IACI,uBAAQ,GAAf,UAAgB,SAAe;QAC3B,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/E,OAAO,CAAC,CAAC;IACb,CAAC;IACD;;;;;;OAMG;IACW,SAAI,GAAlB,UAAmB,KAAW,EAAE,GAAS,EAAE,MAAc;QACrD,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC;QAC3D,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;QAE9D,OAAO,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;IAEL,WAAC;AAAD,CAAC,AA/ID,IA+IC","sourcesContent":["\r\n/**\r\n * Interface for the size containing width and height\r\n */\r\nexport interface ISize {\r\n /**\r\n * Width\r\n */\r\n width: number;\r\n /**\r\n * Heighht\r\n */\r\n height: number;\r\n}\r\n\r\n/**\r\n * Size containing widht and height\r\n */\r\nexport class Size implements ISize {\r\n /**\r\n * Width\r\n */\r\n public width: number;\r\n /**\r\n * Height\r\n */\r\n public height: number;\r\n\r\n /**\r\n * Creates a Size object from the given width and height (floats).\r\n * @param width width of the new size\r\n * @param height height of the new size\r\n */\r\n public constructor(width: number, height: number) {\r\n this.width = width;\r\n this.height = height;\r\n }\r\n\r\n /**\r\n * Returns a string with the Size width and height\r\n * @returns a string with the Size width and height\r\n */\r\n public toString(): string {\r\n return `{W: ${this.width}, H: ${this.height}}`;\r\n }\r\n /**\r\n * \"Size\"\r\n * @returns the string \"Size\"\r\n */\r\n public getClassName(): string {\r\n return \"Size\";\r\n }\r\n /**\r\n * Returns the Size hash code.\r\n * @returns a hash code for a unique width and height\r\n */\r\n public getHashCode(): number {\r\n let hash = this.width | 0;\r\n hash = (hash * 397) ^ (this.height | 0);\r\n return hash;\r\n }\r\n /**\r\n * Updates the current size from the given one.\r\n * @param src the given size\r\n */\r\n public copyFrom(src: Size) {\r\n this.width = src.width;\r\n this.height = src.height;\r\n }\r\n /**\r\n * Updates in place the current Size from the given floats.\r\n * @param width width of the new size\r\n * @param height height of the new size\r\n * @returns the updated Size.\r\n */\r\n public copyFromFloats(width: number, height: number): Size {\r\n this.width = width;\r\n this.height = height;\r\n return this;\r\n }\r\n /**\r\n * Updates in place the current Size from the given floats.\r\n * @param width width to set\r\n * @param height height to set\r\n * @returns the updated Size.\r\n */\r\n public set(width: number, height: number): Size {\r\n return this.copyFromFloats(width, height);\r\n }\r\n /**\r\n * Multiplies the width and height by numbers\r\n * @param w factor to multiple the width by\r\n * @param h factor to multiple the height by\r\n * @returns a new Size set with the multiplication result of the current Size and the given floats.\r\n */\r\n public multiplyByFloats(w: number, h: number): Size {\r\n return new Size(this.width * w, this.height * h);\r\n }\r\n /**\r\n * Clones the size\r\n * @returns a new Size copied from the given one.\r\n */\r\n public clone(): Size {\r\n return new Size(this.width, this.height);\r\n }\r\n /**\r\n * True if the current Size and the given one width and height are strictly equal.\r\n * @param other the other size to compare against\r\n * @returns True if the current Size and the given one width and height are strictly equal.\r\n */\r\n public equals(other: Size): boolean {\r\n if (!other) {\r\n return false;\r\n }\r\n return (this.width === other.width) && (this.height === other.height);\r\n }\r\n /**\r\n * The surface of the Size : width * height (float).\r\n */\r\n public get surface(): number {\r\n return this.width * this.height;\r\n }\r\n /**\r\n * Create a new size of zero\r\n * @returns a new Size set to (0.0, 0.0)\r\n */\r\n public static Zero(): Size {\r\n return new Size(0.0, 0.0);\r\n }\r\n /**\r\n * Sums the width and height of two sizes\r\n * @param otherSize size to add to this size\r\n * @returns a new Size set as the addition result of the current Size and the given one.\r\n */\r\n public add(otherSize: Size): Size {\r\n let r = new Size(this.width + otherSize.width, this.height + otherSize.height);\r\n return r;\r\n }\r\n /**\r\n * Subtracts the width and height of two\r\n * @param otherSize size to subtract to this size\r\n * @returns a new Size set as the subtraction result of the given one from the current Size.\r\n */\r\n public subtract(otherSize: Size): Size {\r\n let r = new Size(this.width - otherSize.width, this.height - otherSize.height);\r\n return r;\r\n }\r\n /**\r\n * Creates a new Size set at the linear interpolation \"amount\" between \"start\" and \"end\"\r\n * @param start starting size to lerp between\r\n * @param end end size to lerp between\r\n * @param amount amount to lerp between the start and end values\r\n * @returns a new Size set at the linear interpolation \"amount\" between \"start\" and \"end\"\r\n */\r\n public static Lerp(start: Size, end: Size, amount: number): Size {\r\n var w = start.width + ((end.width - start.width) * amount);\r\n var h = start.height + ((end.height - start.height) * amount);\r\n\r\n return new Size(w, h);\r\n }\r\n\r\n}"]}
1
+ {"version":3,"file":"math.size.js","sourceRoot":"","sources":["../../../sourceES6/core/Maths/math.size.ts"],"names":[],"mappings":"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","sourcesContent":["\r\n/**\r\n * Interface for the size containing width and height\r\n */\r\nexport interface ISize {\r\n /**\r\n * Width\r\n */\r\n width: number;\r\n /**\r\n * Heighht\r\n */\r\n height: number;\r\n}\r\n\r\n/**\r\n * Size containing widht and height\r\n */\r\nexport class Size implements ISize {\r\n /**\r\n * Width\r\n */\r\n public width: number;\r\n /**\r\n * Height\r\n */\r\n public height: number;\r\n\r\n /**\r\n * Creates a Size object from the given width and height (floats).\r\n * @param width width of the new size\r\n * @param height height of the new size\r\n */\r\n public constructor(width: number, height: number) {\r\n this.width = width;\r\n this.height = height;\r\n }\r\n\r\n /**\r\n * Returns a string with the Size width and height\r\n * @returns a string with the Size width and height\r\n */\r\n public toString(): string {\r\n return `{W: ${this.width}, H: ${this.height}}`;\r\n }\r\n /**\r\n * \"Size\"\r\n * @returns the string \"Size\"\r\n */\r\n public getClassName(): string {\r\n return \"Size\";\r\n }\r\n /**\r\n * Returns the Size hash code.\r\n * @returns a hash code for a unique width and height\r\n */\r\n public getHashCode(): number {\r\n let hash = this.width | 0;\r\n hash = (hash * 397) ^ (this.height | 0);\r\n return hash;\r\n }\r\n /**\r\n * Updates the current size from the given one.\r\n * @param src the given size\r\n */\r\n public copyFrom(src: Size) {\r\n this.width = src.width;\r\n this.height = src.height;\r\n }\r\n /**\r\n * Updates in place the current Size from the given floats.\r\n * @param width width of the new size\r\n * @param height height of the new size\r\n * @returns the updated Size.\r\n */\r\n public copyFromFloats(width: number, height: number): Size {\r\n this.width = width;\r\n this.height = height;\r\n return this;\r\n }\r\n /**\r\n * Updates in place the current Size from the given floats.\r\n * @param width width to set\r\n * @param height height to set\r\n * @returns the updated Size.\r\n */\r\n public set(width: number, height: number): Size {\r\n return this.copyFromFloats(width, height);\r\n }\r\n /**\r\n * Multiplies the width and height by numbers\r\n * @param w factor to multiple the width by\r\n * @param h factor to multiple the height by\r\n * @returns a new Size set with the multiplication result of the current Size and the given floats.\r\n */\r\n public multiplyByFloats(w: number, h: number): Size {\r\n return new Size(this.width * w, this.height * h);\r\n }\r\n /**\r\n * Clones the size\r\n * @returns a new Size copied from the given one.\r\n */\r\n public clone(): Size {\r\n return new Size(this.width, this.height);\r\n }\r\n /**\r\n * True if the current Size and the given one width and height are strictly equal.\r\n * @param other the other size to compare against\r\n * @returns True if the current Size and the given one width and height are strictly equal.\r\n */\r\n public equals(other: Size): boolean {\r\n if (!other) {\r\n return false;\r\n }\r\n return (this.width === other.width) && (this.height === other.height);\r\n }\r\n /**\r\n * The surface of the Size : width * height (float).\r\n */\r\n public get surface(): number {\r\n return this.width * this.height;\r\n }\r\n /**\r\n * Create a new size of zero\r\n * @returns a new Size set to (0.0, 0.0)\r\n */\r\n public static Zero(): Size {\r\n return new Size(0.0, 0.0);\r\n }\r\n /**\r\n * Sums the width and height of two sizes\r\n * @param otherSize size to add to this size\r\n * @returns a new Size set as the addition result of the current Size and the given one.\r\n */\r\n public add(otherSize: Size): Size {\r\n let r = new Size(this.width + otherSize.width, this.height + otherSize.height);\r\n return r;\r\n }\r\n /**\r\n * Subtracts the width and height of two\r\n * @param otherSize size to subtract to this size\r\n * @returns a new Size set as the subtraction result of the given one from the current Size.\r\n */\r\n public subtract(otherSize: Size): Size {\r\n let r = new Size(this.width - otherSize.width, this.height - otherSize.height);\r\n return r;\r\n }\r\n /**\r\n * Creates a new Size set at the linear interpolation \"amount\" between \"start\" and \"end\"\r\n * @param start starting size to lerp between\r\n * @param end end size to lerp between\r\n * @param amount amount to lerp between the start and end values\r\n * @returns a new Size set at the linear interpolation \"amount\" between \"start\" and \"end\"\r\n */\r\n public static Lerp(start: Size, end: Size, amount: number): Size {\r\n var w = start.width + ((end.width - start.width) * amount);\r\n var h = start.height + ((end.height - start.height) * amount);\r\n\r\n return new Size(w, h);\r\n }\r\n\r\n}"]}
@@ -30,7 +30,7 @@ var Vector2 = /** @class */ (function () {
30
30
  * @returns a string with the Vector2 coordinates
31
31
  */
32
32
  Vector2.prototype.toString = function () {
33
- return "{X: " + this.x + " Y: " + this.y + "}";
33
+ return "{X: ".concat(this.x, " Y: ").concat(this.y, "}");
34
34
  };
35
35
  /**
36
36
  * Gets class name
@@ -737,7 +737,7 @@ var Vector3 = /** @class */ (function () {
737
737
  * @returns a string with the Vector3 coordinates.
738
738
  */
739
739
  Vector3.prototype.toString = function () {
740
- return "{X: " + this._x + " Y: " + this._y + " Z: " + this._z + "}";
740
+ return "{X: ".concat(this._x, " Y: ").concat(this._y, " Z: ").concat(this._z, "}");
741
741
  };
742
742
  /**
743
743
  * Gets the class name
@@ -2255,7 +2255,7 @@ var Vector4 = /** @class */ (function () {
2255
2255
  * @returns a string containing all the vector values
2256
2256
  */
2257
2257
  Vector4.prototype.toString = function () {
2258
- return "{X: " + this.x + " Y: " + this.y + " Z: " + this.z + " W: " + this.w + "}";
2258
+ return "{X: ".concat(this.x, " Y: ").concat(this.y, " Z: ").concat(this.z, " W: ").concat(this.w, "}");
2259
2259
  };
2260
2260
  /**
2261
2261
  * Returns the string "Vector4".
@@ -3058,7 +3058,7 @@ var Quaternion = /** @class */ (function () {
3058
3058
  * @returns a string with the Quaternion coordinates
3059
3059
  */
3060
3060
  Quaternion.prototype.toString = function () {
3061
- return "{X: " + this._x + " Y: " + this._y + " Z: " + this._z + " W: " + this._w + "}";
3061
+ return "{X: ".concat(this._x, " Y: ").concat(this._y, " Z: ").concat(this._z, " W: ").concat(this._w, "}");
3062
3062
  };
3063
3063
  /**
3064
3064
  * Gets the class name of the quaternion