@babylonjs/core 5.22.1 → 5.24.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 (351) hide show
  1. package/Actions/abstractActionManager.d.ts +6 -6
  2. package/Actions/abstractActionManager.js +1 -1
  3. package/Actions/abstractActionManager.js.map +1 -1
  4. package/Actions/actionManager.d.ts +5 -5
  5. package/Actions/actionManager.js +5 -5
  6. package/Actions/actionManager.js.map +1 -1
  7. package/Animations/animatable.js +2 -1
  8. package/Animations/animatable.js.map +1 -1
  9. package/Animations/animation.js +137 -139
  10. package/Animations/animation.js.map +1 -1
  11. package/Animations/animationGroup.d.ts +3 -3
  12. package/Animations/animationGroup.js +3 -3
  13. package/Animations/animationGroup.js.map +1 -1
  14. package/Animations/runtimeAnimation.js +6 -7
  15. package/Animations/runtimeAnimation.js.map +1 -1
  16. package/Audio/audioSceneComponent.d.ts +1 -1
  17. package/Audio/audioSceneComponent.js.map +1 -1
  18. package/Audio/sound.d.ts +2 -1
  19. package/Audio/sound.js +21 -9
  20. package/Audio/sound.js.map +1 -1
  21. package/Behaviors/Cameras/autoRotationBehavior.d.ts +1 -1
  22. package/Behaviors/Cameras/autoRotationBehavior.js +1 -1
  23. package/Behaviors/Cameras/autoRotationBehavior.js.map +1 -1
  24. package/Behaviors/Cameras/bouncingBehavior.d.ts +1 -1
  25. package/Behaviors/Cameras/bouncingBehavior.js +1 -1
  26. package/Behaviors/Cameras/bouncingBehavior.js.map +1 -1
  27. package/Behaviors/Cameras/framingBehavior.d.ts +1 -1
  28. package/Behaviors/Cameras/framingBehavior.js +1 -1
  29. package/Behaviors/Cameras/framingBehavior.js.map +1 -1
  30. package/Bones/bone.d.ts +1 -1
  31. package/Bones/bone.js +1 -1
  32. package/Bones/bone.js.map +1 -1
  33. package/Bones/skeleton.d.ts +2 -2
  34. package/Bones/skeleton.js +11 -5
  35. package/Bones/skeleton.js.map +1 -1
  36. package/Cameras/Inputs/BaseCameraMouseWheelInput.js +3 -22
  37. package/Cameras/Inputs/BaseCameraMouseWheelInput.js.map +1 -1
  38. package/Cameras/Inputs/BaseCameraPointersInput.js +3 -3
  39. package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
  40. package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js +1 -11
  41. package/Cameras/Inputs/arcRotateCameraMouseWheelInput.js.map +1 -1
  42. package/Cameras/Inputs/flyCameraMouseInput.js +3 -3
  43. package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
  44. package/Cameras/Inputs/followCameraMouseWheelInput.js +1 -4
  45. package/Cameras/Inputs/followCameraMouseWheelInput.js.map +1 -1
  46. package/Cameras/Inputs/freeCameraMouseInput.js +3 -3
  47. package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
  48. package/Cameras/arcRotateCamera.d.ts +1 -1
  49. package/Cameras/arcRotateCamera.js +1 -1
  50. package/Cameras/arcRotateCamera.js.map +1 -1
  51. package/Cameras/camera.d.ts +2 -2
  52. package/Cameras/camera.js +2 -2
  53. package/Cameras/camera.js.map +1 -1
  54. package/Cameras/freeCamera.d.ts +1 -1
  55. package/Cameras/freeCamera.js +1 -1
  56. package/Cameras/freeCamera.js.map +1 -1
  57. package/Cameras/gamepadCamera.d.ts +1 -1
  58. package/Cameras/gamepadCamera.js +1 -1
  59. package/Cameras/gamepadCamera.js.map +1 -1
  60. package/Cameras/targetCamera.d.ts +1 -1
  61. package/Cameras/targetCamera.js +1 -1
  62. package/Cameras/targetCamera.js.map +1 -1
  63. package/Cameras/touchCamera.d.ts +1 -1
  64. package/Cameras/touchCamera.js +1 -1
  65. package/Cameras/touchCamera.js.map +1 -1
  66. package/Cameras/universalCamera.d.ts +1 -1
  67. package/Cameras/universalCamera.js +1 -1
  68. package/Cameras/universalCamera.js.map +1 -1
  69. package/Cameras/virtualJoysticksCamera.d.ts +1 -1
  70. package/Cameras/virtualJoysticksCamera.js +1 -1
  71. package/Cameras/virtualJoysticksCamera.js.map +1 -1
  72. package/Culling/boundingBox.d.ts +2 -2
  73. package/Culling/boundingBox.js +2 -2
  74. package/Culling/boundingBox.js.map +1 -1
  75. package/Culling/ray.d.ts +1 -1
  76. package/Culling/ray.js +1 -1
  77. package/Culling/ray.js.map +1 -1
  78. package/Debug/debugLayer.d.ts +1 -1
  79. package/Debug/debugLayer.js +1 -1
  80. package/Debug/debugLayer.js.map +1 -1
  81. package/DeviceInput/webDeviceInputSystem.js +20 -2
  82. package/DeviceInput/webDeviceInputSystem.js.map +1 -1
  83. package/Engines/Extensions/engine.multiRender.js +8 -10
  84. package/Engines/Extensions/engine.multiRender.js.map +1 -1
  85. package/Engines/Extensions/engine.query.d.ts +2 -2
  86. package/Engines/Extensions/engine.query.js.map +1 -1
  87. package/Engines/ICanvas.d.ts +11 -0
  88. package/Engines/ICanvas.js.map +1 -1
  89. package/Engines/WebGL/webGLPipelineContext.d.ts +29 -19
  90. package/Engines/WebGL/webGLPipelineContext.js +99 -311
  91. package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
  92. package/Engines/WebGL/webGLRenderTargetWrapper.js +1 -1
  93. package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
  94. package/Engines/engine.d.ts +2 -2
  95. package/Engines/engine.js +2 -2
  96. package/Engines/engine.js.map +1 -1
  97. package/Engines/nativeEngine.d.ts +2 -2
  98. package/Engines/nativeEngine.js +2 -2
  99. package/Engines/nativeEngine.js.map +1 -1
  100. package/Engines/renderTargetWrapper.d.ts +1 -0
  101. package/Engines/renderTargetWrapper.js +5 -2
  102. package/Engines/renderTargetWrapper.js.map +1 -1
  103. package/Engines/thinEngine.d.ts +6 -5
  104. package/Engines/thinEngine.js +11 -7
  105. package/Engines/thinEngine.js.map +1 -1
  106. package/Engines/webgpuEngine.js +4 -1
  107. package/Engines/webgpuEngine.js.map +1 -1
  108. package/Events/clipboardEvents.d.ts +1 -1
  109. package/Events/clipboardEvents.js +1 -1
  110. package/Events/clipboardEvents.js.map +1 -1
  111. package/Events/deviceInputEvents.d.ts +11 -4
  112. package/Events/deviceInputEvents.js.map +1 -1
  113. package/Gamepads/Controllers/windowsMotionController.d.ts +1 -1
  114. package/Gamepads/Controllers/windowsMotionController.js +1 -1
  115. package/Gamepads/Controllers/windowsMotionController.js.map +1 -1
  116. package/Gizmos/boundingBoxGizmo.d.ts +4 -0
  117. package/Gizmos/boundingBoxGizmo.js +6 -0
  118. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  119. package/Inputs/scene.inputManager.js +4 -4
  120. package/Inputs/scene.inputManager.js.map +1 -1
  121. package/Layers/effectLayer.d.ts +3 -3
  122. package/Layers/effectLayer.js +1 -1
  123. package/Layers/effectLayer.js.map +1 -1
  124. package/Layers/glowLayer.d.ts +3 -3
  125. package/Layers/glowLayer.js +2 -2
  126. package/Layers/glowLayer.js.map +1 -1
  127. package/Layers/highlightLayer.d.ts +3 -3
  128. package/Layers/highlightLayer.js +2 -2
  129. package/Layers/highlightLayer.js.map +1 -1
  130. package/Lights/directionalLight.d.ts +2 -2
  131. package/Lights/directionalLight.js +2 -2
  132. package/Lights/directionalLight.js.map +1 -1
  133. package/Lights/hemisphericLight.d.ts +3 -3
  134. package/Lights/hemisphericLight.js +3 -3
  135. package/Lights/hemisphericLight.js.map +1 -1
  136. package/Lights/light.d.ts +2 -2
  137. package/Lights/light.js +2 -2
  138. package/Lights/light.js.map +1 -1
  139. package/Lights/lightConstants.d.ts +1 -1
  140. package/Lights/lightConstants.js +1 -1
  141. package/Lights/lightConstants.js.map +1 -1
  142. package/Loading/Plugins/babylonFileLoader.js +3 -0
  143. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  144. package/Loading/sceneLoader.d.ts +1 -1
  145. package/Loading/sceneLoader.js.map +1 -1
  146. package/Materials/Background/backgroundMaterial.js +4 -0
  147. package/Materials/Background/backgroundMaterial.js.map +1 -1
  148. package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js +4 -1
  149. package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
  150. package/Materials/Node/nodeMaterial.d.ts +1 -1
  151. package/Materials/Node/nodeMaterial.js +5 -1
  152. package/Materials/Node/nodeMaterial.js.map +1 -1
  153. package/Materials/PBR/pbrBaseMaterial.js +4 -1
  154. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  155. package/Materials/Textures/Filtering/hdrFiltering.d.ts +1 -1
  156. package/Materials/Textures/Filtering/hdrFiltering.js +1 -1
  157. package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
  158. package/Materials/Textures/Procedurals/customProceduralTexture.d.ts +2 -1
  159. package/Materials/Textures/Procedurals/customProceduralTexture.js +9 -3
  160. package/Materials/Textures/Procedurals/customProceduralTexture.js.map +1 -1
  161. package/Materials/Textures/Procedurals/proceduralTexture.d.ts +9 -9
  162. package/Materials/Textures/Procedurals/proceduralTexture.js +9 -9
  163. package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
  164. package/Materials/Textures/colorGradingTexture.d.ts +1 -1
  165. package/Materials/Textures/colorGradingTexture.js +1 -1
  166. package/Materials/Textures/colorGradingTexture.js.map +1 -1
  167. package/Materials/Textures/cubeTexture.d.ts +2 -2
  168. package/Materials/Textures/cubeTexture.js +2 -2
  169. package/Materials/Textures/cubeTexture.js.map +1 -1
  170. package/Materials/Textures/rawCubeTexture.d.ts +1 -1
  171. package/Materials/Textures/rawCubeTexture.js +1 -1
  172. package/Materials/Textures/rawCubeTexture.js.map +1 -1
  173. package/Materials/Textures/renderTargetTexture.d.ts +3 -5
  174. package/Materials/Textures/renderTargetTexture.js +19 -19
  175. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  176. package/Materials/colorCurves.d.ts +3 -3
  177. package/Materials/colorCurves.js +3 -3
  178. package/Materials/colorCurves.js.map +1 -1
  179. package/Materials/effect.d.ts +27 -27
  180. package/Materials/effect.js +22 -288
  181. package/Materials/effect.js.map +1 -1
  182. package/Materials/fresnelParameters.d.ts +1 -1
  183. package/Materials/fresnelParameters.js +1 -1
  184. package/Materials/fresnelParameters.js.map +1 -1
  185. package/Materials/imageProcessingConfiguration.d.ts +4 -4
  186. package/Materials/imageProcessingConfiguration.js +4 -4
  187. package/Materials/imageProcessingConfiguration.js.map +1 -1
  188. package/Materials/shaderMaterial.d.ts +25 -25
  189. package/Materials/shaderMaterial.js +25 -25
  190. package/Materials/shaderMaterial.js.map +1 -1
  191. package/Materials/standardMaterial.js +4 -1
  192. package/Materials/standardMaterial.js.map +1 -1
  193. package/Maths/index.d.ts +1 -0
  194. package/Maths/index.js +1 -0
  195. package/Maths/index.js.map +1 -1
  196. package/Maths/math.functions.d.ts +2 -2
  197. package/Maths/math.functions.js +2 -2
  198. package/Maths/math.functions.js.map +1 -1
  199. package/Maths/math.polar.d.ts +77 -0
  200. package/Maths/math.polar.js +114 -0
  201. package/Maths/math.polar.js.map +1 -0
  202. package/Maths/math.scalar.d.ts +2 -2
  203. package/Maths/math.scalar.js +2 -2
  204. package/Maths/math.scalar.js.map +1 -1
  205. package/Maths/math.vector.d.ts +13 -12
  206. package/Maths/math.vector.js +13 -12
  207. package/Maths/math.vector.js.map +1 -1
  208. package/Meshes/abstractMesh.d.ts +1 -1
  209. package/Meshes/abstractMesh.js +13 -2
  210. package/Meshes/abstractMesh.js.map +1 -1
  211. package/Meshes/geometry.d.ts +3 -3
  212. package/Meshes/geometry.js +3 -3
  213. package/Meshes/geometry.js.map +1 -1
  214. package/Meshes/groundMesh.d.ts +5 -4
  215. package/Meshes/groundMesh.js +5 -4
  216. package/Meshes/groundMesh.js.map +1 -1
  217. package/Meshes/instancedMesh.d.ts +1 -1
  218. package/Meshes/instancedMesh.js +1 -1
  219. package/Meshes/instancedMesh.js.map +1 -1
  220. package/Meshes/mesh.d.ts +3 -3
  221. package/Meshes/mesh.js +7 -3
  222. package/Meshes/mesh.js.map +1 -1
  223. package/Meshes/subMesh.d.ts +1 -1
  224. package/Meshes/subMesh.js +1 -1
  225. package/Meshes/subMesh.js.map +1 -1
  226. package/Meshes/thinInstanceMesh.d.ts +1 -1
  227. package/Meshes/thinInstanceMesh.js.map +1 -1
  228. package/Meshes/transformNode.js +6 -0
  229. package/Meshes/transformNode.js.map +1 -1
  230. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +2 -2
  231. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +2 -2
  232. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
  233. package/Misc/HighDynamicRange/hdr.d.ts +3 -3
  234. package/Misc/HighDynamicRange/hdr.js +3 -3
  235. package/Misc/HighDynamicRange/hdr.js.map +1 -1
  236. package/Misc/HighDynamicRange/panoramaToCubemap.d.ts +1 -1
  237. package/Misc/HighDynamicRange/panoramaToCubemap.js +1 -1
  238. package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
  239. package/Misc/arrayTools.d.ts +13 -12
  240. package/Misc/arrayTools.js +70 -39
  241. package/Misc/arrayTools.js.map +1 -1
  242. package/Misc/assetsManager.d.ts +3 -3
  243. package/Misc/assetsManager.js +3 -3
  244. package/Misc/assetsManager.js.map +1 -1
  245. package/Misc/basis.js +17 -3
  246. package/Misc/basis.js.map +1 -1
  247. package/Misc/environmentTextureTools.d.ts +4 -4
  248. package/Misc/environmentTextureTools.js +5 -5
  249. package/Misc/environmentTextureTools.js.map +1 -1
  250. package/Misc/fileTools.d.ts +3 -3
  251. package/Misc/fileTools.js +19 -12
  252. package/Misc/fileTools.js.map +1 -1
  253. package/Misc/logger.js +1 -1
  254. package/Misc/logger.js.map +1 -1
  255. package/Misc/observable.d.ts +1 -1
  256. package/Misc/observable.js +1 -1
  257. package/Misc/observable.js.map +1 -1
  258. package/Misc/performanceMonitor.d.ts +3 -3
  259. package/Misc/performanceMonitor.js +3 -3
  260. package/Misc/performanceMonitor.js.map +1 -1
  261. package/Misc/rgbdTextureTools.d.ts +1 -1
  262. package/Misc/rgbdTextureTools.js +1 -1
  263. package/Misc/rgbdTextureTools.js.map +1 -1
  264. package/Misc/sceneOptimizer.d.ts +7 -7
  265. package/Misc/sceneOptimizer.js +7 -7
  266. package/Misc/sceneOptimizer.js.map +1 -1
  267. package/Misc/stringDictionary.d.ts +6 -6
  268. package/Misc/stringDictionary.js +6 -6
  269. package/Misc/stringDictionary.js.map +1 -1
  270. package/Misc/textureTools.d.ts +4 -4
  271. package/Misc/textureTools.js +4 -4
  272. package/Misc/textureTools.js.map +1 -1
  273. package/Misc/tools.d.ts +6 -6
  274. package/Misc/tools.js +6 -6
  275. package/Misc/tools.js.map +1 -1
  276. package/Misc/videoRecorder.d.ts +1 -1
  277. package/Misc/videoRecorder.js +1 -1
  278. package/Misc/videoRecorder.js.map +1 -1
  279. package/Offline/database.js +3 -3
  280. package/Offline/database.js.map +1 -1
  281. package/Particles/IParticleSystem.d.ts +1 -1
  282. package/Particles/IParticleSystem.js.map +1 -1
  283. package/Particles/gpuParticleSystem.d.ts +1 -1
  284. package/Particles/gpuParticleSystem.js +1 -1
  285. package/Particles/gpuParticleSystem.js.map +1 -1
  286. package/Particles/particleSystem.d.ts +1 -1
  287. package/Particles/particleSystem.js +1 -1
  288. package/Particles/particleSystem.js.map +1 -1
  289. package/Particles/solidParticleSystem.d.ts +4 -0
  290. package/Particles/solidParticleSystem.js +25 -3
  291. package/Particles/solidParticleSystem.js.map +1 -1
  292. package/Physics/Plugins/ammoJSPlugin.d.ts +1 -1
  293. package/Physics/Plugins/ammoJSPlugin.js +1 -1
  294. package/Physics/Plugins/ammoJSPlugin.js.map +1 -1
  295. package/Physics/Plugins/oimoJSPlugin.js +1 -1
  296. package/Physics/Plugins/oimoJSPlugin.js.map +1 -1
  297. package/Physics/physicsEngineComponent.d.ts +1 -1
  298. package/Physics/physicsEngineComponent.js +1 -1
  299. package/Physics/physicsEngineComponent.js.map +1 -1
  300. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +3 -3
  301. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
  302. package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js +1 -2
  303. package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
  304. package/PostProcesses/blurPostProcess.d.ts +3 -3
  305. package/PostProcesses/blurPostProcess.js +3 -3
  306. package/PostProcesses/blurPostProcess.js.map +1 -1
  307. package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +3 -3
  308. package/PostProcesses/volumetricLightScatteringPostProcess.js +3 -3
  309. package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
  310. package/Rendering/depthPeelingRenderer.d.ts +1 -0
  311. package/Rendering/depthPeelingRenderer.js +32 -5
  312. package/Rendering/depthPeelingRenderer.js.map +1 -1
  313. package/Rendering/edgesRenderer.d.ts +2 -2
  314. package/Rendering/edgesRenderer.js +1 -1
  315. package/Rendering/edgesRenderer.js.map +1 -1
  316. package/Rendering/geometryBufferRenderer.d.ts +4 -2
  317. package/Rendering/geometryBufferRenderer.js +5 -3
  318. package/Rendering/geometryBufferRenderer.js.map +1 -1
  319. package/Rendering/geometryBufferRendererSceneComponent.d.ts +2 -1
  320. package/Rendering/geometryBufferRendererSceneComponent.js +3 -2
  321. package/Rendering/geometryBufferRendererSceneComponent.js.map +1 -1
  322. package/Rendering/prePassRenderer.d.ts +11 -3
  323. package/Rendering/prePassRenderer.js +18 -3
  324. package/Rendering/prePassRenderer.js.map +1 -1
  325. package/Rendering/subSurfaceConfiguration.d.ts +2 -2
  326. package/Rendering/subSurfaceConfiguration.js +2 -2
  327. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  328. package/Sprites/spriteSceneComponent.js +4 -1
  329. package/Sprites/spriteSceneComponent.js.map +1 -1
  330. package/XR/features/WebXRControllerTeleportation.d.ts +4 -0
  331. package/XR/features/WebXRControllerTeleportation.js +24 -19
  332. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  333. package/XR/motionController/webXRAbstractMotionController.d.ts +2 -2
  334. package/XR/motionController/webXRAbstractMotionController.js +2 -2
  335. package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
  336. package/XR/motionController/webXRControllerComponent.d.ts +1 -1
  337. package/XR/motionController/webXRControllerComponent.js +1 -1
  338. package/XR/motionController/webXRControllerComponent.js.map +1 -1
  339. package/XR/motionController/webXRMotionControllerManager.d.ts +3 -3
  340. package/XR/motionController/webXRMotionControllerManager.js +3 -3
  341. package/XR/motionController/webXRMotionControllerManager.js.map +1 -1
  342. package/node.d.ts +4 -4
  343. package/node.js +3 -3
  344. package/node.js.map +1 -1
  345. package/package.json +1 -1
  346. package/readme.md +0 -4
  347. package/scene.d.ts +80 -63
  348. package/scene.js +92 -46
  349. package/scene.js.map +1 -1
  350. package/sceneComponent.d.ts +1 -1
  351. package/sceneComponent.js.map +1 -1
package/scene.d.ts CHANGED
@@ -30,7 +30,6 @@ import type { LoadFileError, RequestFileError, ReadFileError } from "./Misc/file
30
30
  import type { IClipPlanesHolder } from "./Misc/interfaces/iClipPlanesHolder";
31
31
  import type { IPointerEvent } from "./Events/deviceInputEvents";
32
32
  import type { IComputePressureData } from "./Misc/computePressure";
33
- import type { INotifyArrayChangeType } from "./Misc/arrayTools";
34
33
  declare type Ray = import("./Culling/ray").Ray;
35
34
  declare type TrianglePickingPredicate = import("./Culling/ray").TrianglePickingPredicate;
36
35
  declare type Animation = import("./Animations/animation").Animation;
@@ -85,6 +84,17 @@ export interface SceneOptions {
85
84
  /** Defines if the creation of the scene should impact the engine (Eg. UtilityLayer's scene) */
86
85
  virtual?: boolean;
87
86
  }
87
+ /**
88
+ * Define how the scene should favor performance over ease of use
89
+ */
90
+ export declare enum ScenePerformancePriority {
91
+ /** Default mode. No change. Performance will be treated as less important than backward compatibility */
92
+ BackwardCompatible = 0,
93
+ /** Some performance options will be turned on trying to strike a balance between perf and ease of use */
94
+ Intermediate = 1,
95
+ /** Performance will be top priority */
96
+ Aggressive = 2
97
+ }
88
98
  /**
89
99
  * Represents a scene to be rendered by the engine.
90
100
  * @see https://doc.babylonjs.com/features/scene
@@ -182,6 +192,12 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
182
192
  * No setter as we it is a shared configuration, you can set the values instead.
183
193
  */
184
194
  get imageProcessingConfiguration(): ImageProcessingConfiguration;
195
+ private _performancePriority;
196
+ /**
197
+ * Gets or sets a value indicating how to treat performance relatively to ease of use and backward compatibility
198
+ */
199
+ get performancePriority(): ScenePerformancePriority;
200
+ set performancePriority(value: ScenePerformancePriority);
185
201
  private _forceWireframe;
186
202
  /**
187
203
  * Gets or sets a boolean indicating if all rendering must be done in wireframe
@@ -462,7 +478,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
462
478
  /**
463
479
  * An event triggered when the activeCameras property is updated
464
480
  */
465
- onActiveCamerasChanged: Observable<INotifyArrayChangeType<import("./Cameras/camera").Camera>>;
481
+ onActiveCamerasChanged: Observable<Scene>;
466
482
  /**
467
483
  * This Observable will be triggered before rendering each renderingGroup of each rendered camera.
468
484
  * The RenderingGroupInfo class contains all the information about the context in which the observable is called
@@ -562,7 +578,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
562
578
  * @param effect The effect to be bound
563
579
  * @param variableName name of the shader variable that will hold the eye position
564
580
  * @param isVector3 true to indicates that variableName is a Vector3 and not a Vector4
565
- * @return the computed eye position
581
+ * @returns the computed eye position
566
582
  */
567
583
  bindEyePosition(effect: Nullable<Effect>, variableName?: string, isVector3?: boolean): Vector4;
568
584
  /**
@@ -674,6 +690,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
674
690
  set lightsEnabled(value: boolean);
675
691
  get lightsEnabled(): boolean;
676
692
  private _activeCameras;
693
+ private _unObserveActiveCameras;
677
694
  /** All of the active cameras added to this scene. */
678
695
  get activeCameras(): Nullable<Camera[]>;
679
696
  set activeCameras(cameras: Nullable<Camera[]>);
@@ -1179,7 +1196,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1179
1196
  * This function will check if the scene can be rendered (textures are loaded, shaders are compiled)
1180
1197
  * Delay loaded resources are not taking in account
1181
1198
  * @param checkRenderTargets true to also check that the meshes rendered as part of a render target are ready (default: true)
1182
- * @return true if all required resources are ready
1199
+ * @returns true if all required resources are ready
1183
1200
  */
1184
1201
  isReady(checkRenderTargets?: boolean): boolean;
1185
1202
  /** Resets all cached information relative to material (including effect and visibility) */
@@ -1474,7 +1491,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1474
1491
  /**
1475
1492
  * sets the active camera of the scene using its Id
1476
1493
  * @param id defines the camera's Id
1477
- * @return the new active camera or null if none found.
1494
+ * @returns the new active camera or null if none found.
1478
1495
  */
1479
1496
  setActiveCameraById(id: string): Nullable<Camera>;
1480
1497
  /**
@@ -1486,44 +1503,44 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1486
1503
  /**
1487
1504
  * get an animation group using its name
1488
1505
  * @param name defines the material's name
1489
- * @return the animation group or null if none found.
1506
+ * @returns the animation group or null if none found.
1490
1507
  */
1491
1508
  getAnimationGroupByName(name: string): Nullable<AnimationGroup>;
1492
1509
  /**
1493
1510
  * Get a material using its unique id
1494
1511
  * @param uniqueId defines the material's unique id
1495
- * @return the material or null if none found.
1512
+ * @returns the material or null if none found.
1496
1513
  */
1497
1514
  getMaterialByUniqueID(uniqueId: number): Nullable<Material>;
1498
1515
  /**
1499
1516
  * get a material using its id
1500
1517
  * @param id defines the material's Id
1501
- * @return the material or null if none found.
1518
+ * @returns the material or null if none found.
1502
1519
  */
1503
1520
  getMaterialById(id: string): Nullable<Material>;
1504
1521
  /**
1505
1522
  * Gets a the last added material using a given id
1506
1523
  * @param id defines the material's Id
1507
1524
  * @param allowMultiMaterials determines whether multimaterials should be considered
1508
- * @return the last material with the given id or null if none found.
1525
+ * @returns the last material with the given id or null if none found.
1509
1526
  */
1510
1527
  getLastMaterialById(id: string, allowMultiMaterials?: boolean): Nullable<Material>;
1511
1528
  /**
1512
1529
  * Gets a material using its name
1513
1530
  * @param name defines the material's name
1514
- * @return the material or null if none found.
1531
+ * @returns the material or null if none found.
1515
1532
  */
1516
1533
  getMaterialByName(name: string): Nullable<Material>;
1517
1534
  /**
1518
1535
  * Get a texture using its unique id
1519
1536
  * @param uniqueId defines the texture's unique id
1520
- * @return the texture or null if none found.
1537
+ * @returns the texture or null if none found.
1521
1538
  */
1522
1539
  getTextureByUniqueId(uniqueId: number): Nullable<BaseTexture>;
1523
1540
  /**
1524
1541
  * Gets a texture using its name
1525
1542
  * @param name defines the texture's name
1526
- * @return the texture or null if none found.
1543
+ * @returns the texture or null if none found.
1527
1544
  */
1528
1545
  getTextureByName(name: string): Nullable<BaseTexture>;
1529
1546
  /**
@@ -1541,49 +1558,49 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1541
1558
  /**
1542
1559
  * Gets a camera using its name
1543
1560
  * @param name defines the camera's name
1544
- * @return the camera or null if none found.
1561
+ * @returns the camera or null if none found.
1545
1562
  */
1546
1563
  getCameraByName(name: string): Nullable<Camera>;
1547
1564
  /**
1548
1565
  * Gets a bone using its Id
1549
1566
  * @param id defines the bone's Id
1550
- * @return the bone or null if not found
1567
+ * @returns the bone or null if not found
1551
1568
  */
1552
1569
  getBoneById(id: string): Nullable<Bone>;
1553
1570
  /**
1554
1571
  * Gets a bone using its id
1555
1572
  * @param name defines the bone's name
1556
- * @return the bone or null if not found
1573
+ * @returns the bone or null if not found
1557
1574
  */
1558
1575
  getBoneByName(name: string): Nullable<Bone>;
1559
1576
  /**
1560
1577
  * Gets a light node using its name
1561
1578
  * @param name defines the the light's name
1562
- * @return the light or null if none found.
1579
+ * @returns the light or null if none found.
1563
1580
  */
1564
1581
  getLightByName(name: string): Nullable<Light>;
1565
1582
  /**
1566
1583
  * Gets a light node using its Id
1567
1584
  * @param id defines the light's Id
1568
- * @return the light or null if none found.
1585
+ * @returns the light or null if none found.
1569
1586
  */
1570
1587
  getLightById(id: string): Nullable<Light>;
1571
1588
  /**
1572
1589
  * Gets a light node using its scene-generated unique Id
1573
1590
  * @param uniqueId defines the light's unique Id
1574
- * @return the light or null if none found.
1591
+ * @returns the light or null if none found.
1575
1592
  */
1576
1593
  getLightByUniqueId(uniqueId: number): Nullable<Light>;
1577
1594
  /**
1578
1595
  * Gets a particle system by Id
1579
1596
  * @param id defines the particle system Id
1580
- * @return the corresponding system or null if none found
1597
+ * @returns the corresponding system or null if none found
1581
1598
  */
1582
1599
  getParticleSystemById(id: string): Nullable<IParticleSystem>;
1583
1600
  /**
1584
1601
  * Gets a geometry using its Id
1585
1602
  * @param id defines the geometry's Id
1586
- * @return the geometry or null if none found.
1603
+ * @returns the geometry or null if none found.
1587
1604
  */
1588
1605
  getGeometryById(id: string): Nullable<Geometry>;
1589
1606
  private _getGeometryByUniqueId;
@@ -1591,13 +1608,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1591
1608
  * Add a new geometry to this scene
1592
1609
  * @param geometry defines the geometry to be added to the scene.
1593
1610
  * @param force defines if the geometry must be pushed even if a geometry with this id already exists
1594
- * @return a boolean defining if the geometry was added or not
1611
+ * @returns a boolean defining if the geometry was added or not
1595
1612
  */
1596
1613
  pushGeometry(geometry: Geometry, force?: boolean): boolean;
1597
1614
  /**
1598
1615
  * Removes an existing geometry
1599
1616
  * @param geometry defines the geometry to be removed from the scene
1600
- * @return a boolean defining if the geometry was removed or not
1617
+ * @returns a boolean defining if the geometry was removed or not
1601
1618
  */
1602
1619
  removeGeometry(geometry: Geometry): boolean;
1603
1620
  /**
@@ -1608,7 +1625,7 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1608
1625
  /**
1609
1626
  * Gets the first added mesh found of a given Id
1610
1627
  * @param id defines the Id to search for
1611
- * @return the mesh found or null if not found at all
1628
+ * @returns the mesh found or null if not found at all
1612
1629
  */
1613
1630
  getMeshById(id: string): Nullable<AbstractMesh>;
1614
1631
  /**
@@ -1620,13 +1637,13 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1620
1637
  /**
1621
1638
  * Gets the first added transform node found of a given Id
1622
1639
  * @param id defines the Id to search for
1623
- * @return the found transform node or null if not found at all.
1640
+ * @returns the found transform node or null if not found at all.
1624
1641
  */
1625
1642
  getTransformNodeById(id: string): Nullable<TransformNode>;
1626
1643
  /**
1627
1644
  * Gets a transform node with its auto-generated unique Id
1628
1645
  * @param uniqueId defines the unique Id to search for
1629
- * @return the found transform node or null if not found at all.
1646
+ * @returns the found transform node or null if not found at all.
1630
1647
  */
1631
1648
  getTransformNodeByUniqueId(uniqueId: number): Nullable<TransformNode>;
1632
1649
  /**
@@ -1638,91 +1655,91 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1638
1655
  /**
1639
1656
  * Gets a mesh with its auto-generated unique Id
1640
1657
  * @param uniqueId defines the unique Id to search for
1641
- * @return the found mesh or null if not found at all.
1658
+ * @returns the found mesh or null if not found at all.
1642
1659
  */
1643
1660
  getMeshByUniqueId(uniqueId: number): Nullable<AbstractMesh>;
1644
1661
  /**
1645
1662
  * Gets a the last added mesh using a given Id
1646
1663
  * @param id defines the Id to search for
1647
- * @return the found mesh or null if not found at all.
1664
+ * @returns the found mesh or null if not found at all.
1648
1665
  */
1649
1666
  getLastMeshById(id: string): Nullable<AbstractMesh>;
1650
1667
  /**
1651
1668
  * Gets a the last added node (Mesh, Camera, Light) using a given Id
1652
1669
  * @param id defines the Id to search for
1653
- * @return the found node or null if not found at all
1670
+ * @returns the found node or null if not found at all
1654
1671
  */
1655
1672
  getLastEntryById(id: string): Nullable<Node>;
1656
1673
  /**
1657
1674
  * Gets a node (Mesh, Camera, Light) using a given Id
1658
1675
  * @param id defines the Id to search for
1659
- * @return the found node or null if not found at all
1676
+ * @returns the found node or null if not found at all
1660
1677
  */
1661
1678
  getNodeById(id: string): Nullable<Node>;
1662
1679
  /**
1663
1680
  * Gets a node (Mesh, Camera, Light) using a given name
1664
1681
  * @param name defines the name to search for
1665
- * @return the found node or null if not found at all.
1682
+ * @returns the found node or null if not found at all.
1666
1683
  */
1667
1684
  getNodeByName(name: string): Nullable<Node>;
1668
1685
  /**
1669
1686
  * Gets a mesh using a given name
1670
1687
  * @param name defines the name to search for
1671
- * @return the found mesh or null if not found at all.
1688
+ * @returns the found mesh or null if not found at all.
1672
1689
  */
1673
1690
  getMeshByName(name: string): Nullable<AbstractMesh>;
1674
1691
  /**
1675
1692
  * Gets a transform node using a given name
1676
1693
  * @param name defines the name to search for
1677
- * @return the found transform node or null if not found at all.
1694
+ * @returns the found transform node or null if not found at all.
1678
1695
  */
1679
1696
  getTransformNodeByName(name: string): Nullable<TransformNode>;
1680
1697
  /**
1681
1698
  * Gets a skeleton using a given Id (if many are found, this function will pick the last one)
1682
1699
  * @param id defines the Id to search for
1683
- * @return the found skeleton or null if not found at all.
1700
+ * @returns the found skeleton or null if not found at all.
1684
1701
  */
1685
1702
  getLastSkeletonById(id: string): Nullable<Skeleton>;
1686
1703
  /**
1687
1704
  * Gets a skeleton using a given auto generated unique id
1688
1705
  * @param uniqueId defines the unique id to search for
1689
- * @return the found skeleton or null if not found at all.
1706
+ * @returns the found skeleton or null if not found at all.
1690
1707
  */
1691
1708
  getSkeletonByUniqueId(uniqueId: number): Nullable<Skeleton>;
1692
1709
  /**
1693
1710
  * Gets a skeleton using a given id (if many are found, this function will pick the first one)
1694
1711
  * @param id defines the id to search for
1695
- * @return the found skeleton or null if not found at all.
1712
+ * @returns the found skeleton or null if not found at all.
1696
1713
  */
1697
1714
  getSkeletonById(id: string): Nullable<Skeleton>;
1698
1715
  /**
1699
1716
  * Gets a skeleton using a given name
1700
1717
  * @param name defines the name to search for
1701
- * @return the found skeleton or null if not found at all.
1718
+ * @returns the found skeleton or null if not found at all.
1702
1719
  */
1703
1720
  getSkeletonByName(name: string): Nullable<Skeleton>;
1704
1721
  /**
1705
1722
  * Gets a morph target manager using a given id (if many are found, this function will pick the last one)
1706
1723
  * @param id defines the id to search for
1707
- * @return the found morph target manager or null if not found at all.
1724
+ * @returns the found morph target manager or null if not found at all.
1708
1725
  */
1709
1726
  getMorphTargetManagerById(id: number): Nullable<MorphTargetManager>;
1710
1727
  /**
1711
1728
  * Gets a morph target using a given id (if many are found, this function will pick the first one)
1712
1729
  * @param id defines the id to search for
1713
- * @return the found morph target or null if not found at all.
1730
+ * @returns the found morph target or null if not found at all.
1714
1731
  */
1715
1732
  getMorphTargetById(id: string): Nullable<MorphTarget>;
1716
1733
  /**
1717
1734
  * Gets a morph target using a given name (if many are found, this function will pick the first one)
1718
1735
  * @param name defines the name to search for
1719
- * @return the found morph target or null if not found at all.
1736
+ * @returns the found morph target or null if not found at all.
1720
1737
  */
1721
1738
  getMorphTargetByName(name: string): Nullable<MorphTarget>;
1722
1739
  /**
1723
1740
  * Gets a post process using a given name (if many are found, this function will pick the first one)
1724
1741
  * @param name defines the name to search for
1725
- * @return the found post process or null if not found at all.
1742
+ * @returns the found post process or null if not found at all.
1726
1743
  */
1727
1744
  getPostProcessByName(name: string): Nullable<PostProcess>;
1728
1745
  /**
@@ -1741,26 +1758,26 @@ export declare class Scene extends AbstractScene implements IAnimatable, IClipPl
1741
1758
  * If you don't care and just want to get the data no matter what, use the more convenient getOrAddExternalDataWithFactory() method.
1742
1759
  * @param key the unique key that identifies the data
1743
1760
  * @param data the data object to associate to the key for this Engine instance
1744
- * @return true if no such key were already present and the data was added successfully, false otherwise
1761
+ * @returns true if no such key were already present and the data was added successfully, false otherwise
1745
1762
  */
1746
- addExternalData<T>(key: string, data: T): boolean;
1763
+ addExternalData<T extends Object>(key: string, data: T): boolean;
1747
1764
  /**
1748
1765
  * Get an externally attached data from its key
1749
1766
  * @param key the unique key that identifies the data
1750
- * @return the associated data, if present (can be null), or undefined if not present
1767
+ * @returns the associated data, if present (can be null), or undefined if not present
1751
1768
  */
1752
1769
  getExternalData<T>(key: string): Nullable<T>;
1753
1770
  /**
1754
1771
  * Get an externally attached data from its key, create it using a factory if it's not already present
1755
1772
  * @param key the unique key that identifies the data
1756
1773
  * @param factory the factory that will be called to create the instance if and only if it doesn't exists
1757
- * @return the associated data, can be null if the factory returned null.
1774
+ * @returns the associated data, can be null if the factory returned null.
1758
1775
  */
1759
- getOrAddExternalDataWithFactory<T>(key: string, factory: (k: string) => T): T;
1776
+ getOrAddExternalDataWithFactory<T extends Object>(key: string, factory: (k: string) => T): T;
1760
1777
  /**
1761
1778
  * Remove an externally attached data from the Engine instance
1762
1779
  * @param key the unique key that identifies the data
1763
- * @return true if the data was successfully removed, false if it doesn't exist
1780
+ * @returns true if the data was successfully removed, false if it doesn't exist
1764
1781
  */
1765
1782
  removeExternalData(key: string): boolean;
1766
1783
  private _evaluateSubMesh;
@@ -2157,28 +2174,28 @@ declare module "./scene" {
2157
2174
  /**
2158
2175
  * Sets the active camera of the scene using its Id
2159
2176
  * @param id defines the camera's Id
2160
- * @return the new active camera or null if none found.
2177
+ * @returns the new active camera or null if none found.
2161
2178
  * @deprecated Please use setActiveCameraById instead
2162
2179
  */
2163
2180
  setActiveCameraByID(id: string): Nullable<Camera>;
2164
2181
  /**
2165
2182
  * Get a material using its id
2166
2183
  * @param id defines the material's Id
2167
- * @return the material or null if none found.
2184
+ * @returns the material or null if none found.
2168
2185
  * @deprecated Please use getMaterialById instead
2169
2186
  */
2170
2187
  getMaterialByID(id: string): Nullable<Material>;
2171
2188
  /**
2172
2189
  * Gets a the last added material using a given id
2173
2190
  * @param id defines the material's Id
2174
- * @return the last material with the given id or null if none found.
2191
+ * @returns the last material with the given id or null if none found.
2175
2192
  * @deprecated Please use getLastMaterialById instead
2176
2193
  */
2177
2194
  getLastMaterialByID(id: string): Nullable<Material>;
2178
2195
  /**
2179
2196
  * Get a texture using its unique id
2180
2197
  * @param uniqueId defines the texture's unique id
2181
- * @return the texture or null if none found.
2198
+ * @returns the texture or null if none found.
2182
2199
  * @deprecated Please use getTextureByUniqueId instead
2183
2200
  */
2184
2201
  getTextureByUniqueID(uniqueId: number): Nullable<BaseTexture>;
@@ -2199,56 +2216,56 @@ declare module "./scene" {
2199
2216
  /**
2200
2217
  * Gets a bone using its Id
2201
2218
  * @param id defines the bone's Id
2202
- * @return the bone or null if not found
2219
+ * @returns the bone or null if not found
2203
2220
  * @deprecated Please use getBoneById instead
2204
2221
  */
2205
2222
  getBoneByID(id: string): Nullable<Bone>;
2206
2223
  /**
2207
2224
  * Gets a light node using its Id
2208
2225
  * @param id defines the light's Id
2209
- * @return the light or null if none found.
2226
+ * @returns the light or null if none found.
2210
2227
  * @deprecated Please use getLightById instead
2211
2228
  */
2212
2229
  getLightByID(id: string): Nullable<Light>;
2213
2230
  /**
2214
2231
  * Gets a light node using its scene-generated unique Id
2215
2232
  * @param uniqueId defines the light's unique Id
2216
- * @return the light or null if none found.
2233
+ * @returns the light or null if none found.
2217
2234
  * @deprecated Please use getLightByUniqueId instead
2218
2235
  */
2219
2236
  getLightByUniqueID(uniqueId: number): Nullable<Light>;
2220
2237
  /**
2221
2238
  * Gets a particle system by Id
2222
2239
  * @param id defines the particle system Id
2223
- * @return the corresponding system or null if none found
2240
+ * @returns the corresponding system or null if none found
2224
2241
  * @deprecated Please use getParticleSystemById instead
2225
2242
  */
2226
2243
  getParticleSystemByID(id: string): Nullable<IParticleSystem>;
2227
2244
  /**
2228
2245
  * Gets a geometry using its Id
2229
2246
  * @param id defines the geometry's Id
2230
- * @return the geometry or null if none found.
2247
+ * @returns the geometry or null if none found.
2231
2248
  * @deprecated Please use getGeometryById instead
2232
2249
  */
2233
2250
  getGeometryByID(id: string): Nullable<Geometry>;
2234
2251
  /**
2235
2252
  * Gets the first added mesh found of a given Id
2236
2253
  * @param id defines the Id to search for
2237
- * @return the mesh found or null if not found at all
2254
+ * @returns the mesh found or null if not found at all
2238
2255
  * @deprecated Please use getMeshById instead
2239
2256
  */
2240
2257
  getMeshByID(id: string): Nullable<AbstractMesh>;
2241
2258
  /**
2242
2259
  * Gets a mesh with its auto-generated unique Id
2243
2260
  * @param uniqueId defines the unique Id to search for
2244
- * @return the found mesh or null if not found at all.
2261
+ * @returns the found mesh or null if not found at all.
2245
2262
  * @deprecated Please use getMeshByUniqueId instead
2246
2263
  */
2247
2264
  getMeshByUniqueID(uniqueId: number): Nullable<AbstractMesh>;
2248
2265
  /**
2249
2266
  * Gets a the last added mesh using a given Id
2250
2267
  * @param id defines the Id to search for
2251
- * @return the found mesh or null if not found at all.
2268
+ * @returns the found mesh or null if not found at all.
2252
2269
  * @deprecated Please use getLastMeshById instead
2253
2270
  */
2254
2271
  getLastMeshByID(id: string): Nullable<AbstractMesh>;
@@ -2262,14 +2279,14 @@ declare module "./scene" {
2262
2279
  /**
2263
2280
  * Gets the first added transform node found of a given Id
2264
2281
  * @param id defines the Id to search for
2265
- * @return the found transform node or null if not found at all.
2282
+ * @returns the found transform node or null if not found at all.
2266
2283
  * @deprecated Please use getTransformNodeById instead
2267
2284
  */
2268
2285
  getTransformNodeByID(id: string): Nullable<TransformNode>;
2269
2286
  /**
2270
2287
  * Gets a transform node with its auto-generated unique Id
2271
2288
  * @param uniqueId defines the unique Id to search for
2272
- * @return the found transform node or null if not found at all.
2289
+ * @returns the found transform node or null if not found at all.
2273
2290
  * @deprecated Please use getTransformNodeByUniqueId instead
2274
2291
  */
2275
2292
  getTransformNodeByUniqueID(uniqueId: number): Nullable<TransformNode>;
@@ -2283,21 +2300,21 @@ declare module "./scene" {
2283
2300
  /**
2284
2301
  * Gets a node (Mesh, Camera, Light) using a given Id
2285
2302
  * @param id defines the Id to search for
2286
- * @return the found node or null if not found at all
2303
+ * @returns the found node or null if not found at all
2287
2304
  * @deprecated Please use getNodeById instead
2288
2305
  */
2289
2306
  getNodeByID(id: string): Nullable<Node>;
2290
2307
  /**
2291
2308
  * Gets a the last added node (Mesh, Camera, Light) using a given Id
2292
2309
  * @param id defines the Id to search for
2293
- * @return the found node or null if not found at all
2310
+ * @returns the found node or null if not found at all
2294
2311
  * @deprecated Please use getLastEntryById instead
2295
2312
  */
2296
2313
  getLastEntryByID(id: string): Nullable<Node>;
2297
2314
  /**
2298
2315
  * Gets a skeleton using a given Id (if many are found, this function will pick the last one)
2299
2316
  * @param id defines the Id to search for
2300
- * @return the found skeleton or null if not found at all.
2317
+ * @returns the found skeleton or null if not found at all.
2301
2318
  * @deprecated Please use getLastSkeletonById instead
2302
2319
  */
2303
2320
  getLastSkeletonByID(id: string): Nullable<Skeleton>;