@babylonjs/core 6.39.0 → 6.40.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 (609) hide show
  1. package/Actions/action.js +3 -1
  2. package/Actions/action.js.map +1 -1
  3. package/Actions/condition.js +1 -0
  4. package/Actions/condition.js.map +1 -1
  5. package/Actions/directActions.d.ts +2 -2
  6. package/Actions/directActions.js +2 -2
  7. package/Actions/directActions.js.map +1 -1
  8. package/Animations/pathCursor.js +1 -0
  9. package/Animations/pathCursor.js.map +1 -1
  10. package/Animations/runtimeAnimation.js +1 -1
  11. package/Animations/runtimeAnimation.js.map +1 -1
  12. package/Audio/audioEngine.js +5 -0
  13. package/Audio/audioEngine.js.map +1 -1
  14. package/Behaviors/Cameras/autoRotationBehavior.d.ts +3 -0
  15. package/Behaviors/Cameras/autoRotationBehavior.js +3 -0
  16. package/Behaviors/Cameras/autoRotationBehavior.js.map +1 -1
  17. package/Behaviors/Meshes/pointerDragBehavior.d.ts +1 -0
  18. package/Behaviors/Meshes/pointerDragBehavior.js +2 -0
  19. package/Behaviors/Meshes/pointerDragBehavior.js.map +1 -1
  20. package/Bones/bone.d.ts +2 -0
  21. package/Bones/bone.js +2 -0
  22. package/Bones/bone.js.map +1 -1
  23. package/Cameras/Inputs/BaseCameraPointersInput.d.ts +2 -2
  24. package/Cameras/Inputs/BaseCameraPointersInput.js +2 -2
  25. package/Cameras/Inputs/BaseCameraPointersInput.js.map +1 -1
  26. package/Cameras/Inputs/arcRotateCameraPointersInput.d.ts +9 -9
  27. package/Cameras/Inputs/arcRotateCameraPointersInput.js +9 -9
  28. package/Cameras/Inputs/arcRotateCameraPointersInput.js.map +1 -1
  29. package/Cameras/Inputs/followCameraKeyboardMoveInput.d.ts +3 -0
  30. package/Cameras/Inputs/followCameraKeyboardMoveInput.js +3 -0
  31. package/Cameras/Inputs/followCameraKeyboardMoveInput.js.map +1 -1
  32. package/Cameras/arcRotateCamera.d.ts +2 -0
  33. package/Cameras/arcRotateCamera.js +2 -0
  34. package/Cameras/arcRotateCamera.js.map +1 -1
  35. package/Cameras/camera.d.ts +2 -0
  36. package/Cameras/camera.js +4 -0
  37. package/Cameras/camera.js.map +1 -1
  38. package/Cameras/followCamera.d.ts +1 -0
  39. package/Cameras/followCamera.js +1 -0
  40. package/Cameras/followCamera.js.map +1 -1
  41. package/Debug/debugLayer.d.ts +4 -1
  42. package/Debug/debugLayer.js +4 -1
  43. package/Debug/debugLayer.js.map +1 -1
  44. package/Debug/physicsViewer.d.ts +1 -0
  45. package/Debug/physicsViewer.js +1 -0
  46. package/Debug/physicsViewer.js.map +1 -1
  47. package/Decorators/nodeDecorator.d.ts +5 -4
  48. package/Decorators/nodeDecorator.js +5 -4
  49. package/Decorators/nodeDecorator.js.map +1 -1
  50. package/DeviceInput/eventFactory.d.ts +2 -0
  51. package/DeviceInput/eventFactory.js +3 -0
  52. package/DeviceInput/eventFactory.js.map +1 -1
  53. package/DeviceInput/webDeviceInputSystem.js +3 -0
  54. package/DeviceInput/webDeviceInputSystem.js.map +1 -1
  55. package/Engines/Extensions/engine.multiview.js +2 -0
  56. package/Engines/Extensions/engine.multiview.js.map +1 -1
  57. package/Engines/Native/nativeDataStream.d.ts +32 -0
  58. package/Engines/Native/nativeDataStream.js +32 -0
  59. package/Engines/Native/nativeDataStream.js.map +1 -1
  60. package/Engines/Native/nativePipelineContext.d.ts +0 -3
  61. package/Engines/Native/nativePipelineContext.js +0 -3
  62. package/Engines/Native/nativePipelineContext.js.map +1 -1
  63. package/Engines/WebGL/webGLPipelineContext.d.ts +0 -3
  64. package/Engines/WebGL/webGLPipelineContext.js +0 -3
  65. package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
  66. package/Engines/WebGPU/Extensions/engine.readTexture.js +1 -0
  67. package/Engines/WebGPU/Extensions/engine.readTexture.js.map +1 -1
  68. package/Engines/WebGPU/webgpuCacheBindGroups.d.ts +1 -0
  69. package/Engines/WebGPU/webgpuCacheBindGroups.js +1 -0
  70. package/Engines/WebGPU/webgpuCacheBindGroups.js.map +1 -1
  71. package/Engines/WebGPU/webgpuCacheRenderPipeline.js +3 -0
  72. package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
  73. package/Engines/WebGPU/webgpuPipelineContext.d.ts +0 -3
  74. package/Engines/WebGPU/webgpuPipelineContext.js +0 -3
  75. package/Engines/WebGPU/webgpuPipelineContext.js.map +1 -1
  76. package/Engines/WebGPU/webgpuShaderProcessingContext.js +1 -0
  77. package/Engines/WebGPU/webgpuShaderProcessingContext.js.map +1 -1
  78. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.d.ts +1 -1
  79. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js +11 -2
  80. package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js.map +1 -1
  81. package/Engines/WebGPU/webgpuTextureHelper.js +22 -0
  82. package/Engines/WebGPU/webgpuTextureHelper.js.map +1 -1
  83. package/Engines/WebGPU/webgpuTextureManager.js +2 -1
  84. package/Engines/WebGPU/webgpuTextureManager.js.map +1 -1
  85. package/Engines/engine.js +1 -0
  86. package/Engines/engine.js.map +1 -1
  87. package/Engines/nativeEngine.d.ts +4 -0
  88. package/Engines/nativeEngine.js +5 -0
  89. package/Engines/nativeEngine.js.map +1 -1
  90. package/Engines/thinEngine.js +7 -2
  91. package/Engines/thinEngine.js.map +1 -1
  92. package/Engines/webgpuEngine.d.ts +1 -1
  93. package/Engines/webgpuEngine.js +17 -1
  94. package/Engines/webgpuEngine.js.map +1 -1
  95. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.d.ts +207 -2
  96. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +207 -6
  97. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
  98. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +15 -0
  99. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js +9 -0
  100. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js.map +1 -1
  101. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +4 -0
  102. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js +4 -0
  103. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js.map +1 -1
  104. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +17 -1
  105. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js +14 -1
  106. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js.map +1 -1
  107. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +9 -0
  108. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js +9 -0
  109. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js.map +1 -1
  110. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.d.ts +5 -0
  111. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js +5 -0
  112. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js.map +1 -1
  113. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.d.ts +16 -1
  114. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js +13 -1
  115. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js.map +1 -1
  116. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +12 -1
  117. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js +12 -1
  118. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js.map +1 -1
  119. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.d.ts +18 -0
  120. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js +9 -0
  121. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js.map +1 -1
  122. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +12 -0
  123. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js +9 -0
  124. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js.map +1 -1
  125. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +15 -1
  126. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js +12 -1
  127. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js.map +1 -1
  128. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +18 -2
  129. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +15 -4
  130. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
  131. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +6 -0
  132. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js +6 -0
  133. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js.map +1 -1
  134. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +6 -0
  135. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js +6 -0
  136. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js.map +1 -1
  137. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +5 -2
  138. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js +4 -1
  139. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js.map +1 -1
  140. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +15 -1
  141. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js +12 -1
  142. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js.map +1 -1
  143. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +4 -1
  144. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js +3 -0
  145. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js.map +1 -1
  146. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +3 -0
  147. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js +3 -0
  148. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js.map +1 -1
  149. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +3 -0
  150. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js +3 -0
  151. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js.map +1 -1
  152. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +3 -0
  153. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js +3 -0
  154. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js.map +1 -1
  155. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +14 -1
  156. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js +11 -1
  157. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js.map +1 -1
  158. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +3 -0
  159. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js +3 -0
  160. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js.map +1 -1
  161. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +3 -0
  162. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js +3 -0
  163. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js.map +1 -1
  164. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +15 -2
  165. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js +12 -4
  166. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js.map +1 -1
  167. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.d.ts +14 -2
  168. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js +11 -4
  169. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js.map +1 -1
  170. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +15 -2
  171. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js +12 -4
  172. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js.map +1 -1
  173. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +3 -0
  174. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js +3 -0
  175. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js.map +1 -1
  176. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.d.ts +6 -0
  177. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js +6 -0
  178. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js.map +1 -1
  179. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +15 -2
  180. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js +12 -3
  181. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js.map +1 -1
  182. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +18 -1
  183. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js +15 -1
  184. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js.map +1 -1
  185. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.d.ts +6 -0
  186. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js +6 -0
  187. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js.map +1 -1
  188. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.d.ts +14 -2
  189. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +11 -4
  190. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +1 -1
  191. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +15 -1
  192. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +12 -1
  193. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
  194. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +14 -1
  195. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js +11 -1
  196. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js.map +1 -1
  197. package/FlowGraph/flowGraph.d.ts +16 -8
  198. package/FlowGraph/flowGraph.js +13 -8
  199. package/FlowGraph/flowGraph.js.map +1 -1
  200. package/FlowGraph/flowGraphBlock.d.ts +54 -5
  201. package/FlowGraph/flowGraphBlock.js +50 -11
  202. package/FlowGraph/flowGraphBlock.js.map +1 -1
  203. package/FlowGraph/flowGraphConnection.d.ts +10 -6
  204. package/FlowGraph/flowGraphConnection.js +10 -6
  205. package/FlowGraph/flowGraphConnection.js.map +1 -1
  206. package/FlowGraph/flowGraphContext.d.ts +10 -8
  207. package/FlowGraph/flowGraphContext.js +10 -8
  208. package/FlowGraph/flowGraphContext.js.map +1 -1
  209. package/FlowGraph/flowGraphCoordinator.d.ts +27 -1
  210. package/FlowGraph/flowGraphCoordinator.js +18 -2
  211. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  212. package/FlowGraph/flowGraphDataConnection.d.ts +26 -1
  213. package/FlowGraph/flowGraphDataConnection.js +23 -1
  214. package/FlowGraph/flowGraphDataConnection.js.map +1 -1
  215. package/FlowGraph/flowGraphExecutionBlock.d.ts +27 -1
  216. package/FlowGraph/flowGraphExecutionBlock.js +22 -4
  217. package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
  218. package/FlowGraph/flowGraphRichTypes.d.ts +24 -1
  219. package/FlowGraph/flowGraphRichTypes.js +18 -1
  220. package/FlowGraph/flowGraphRichTypes.js.map +1 -1
  221. package/FlowGraph/flowGraphSignalConnection.d.ts +2 -0
  222. package/FlowGraph/flowGraphSignalConnection.js +2 -0
  223. package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
  224. package/Gamepads/gamepad.d.ts +2 -2
  225. package/Gamepads/gamepad.js +2 -2
  226. package/Gamepads/gamepad.js.map +1 -1
  227. package/Gamepads/gamepadSceneComponent.js +2 -0
  228. package/Gamepads/gamepadSceneComponent.js.map +1 -1
  229. package/Gizmos/axisScaleGizmo.d.ts +2 -0
  230. package/Gizmos/axisScaleGizmo.js +2 -0
  231. package/Gizmos/axisScaleGizmo.js.map +1 -1
  232. package/Gizmos/boundingBoxGizmo.d.ts +19 -0
  233. package/Gizmos/boundingBoxGizmo.js +36 -15
  234. package/Gizmos/boundingBoxGizmo.js.map +1 -1
  235. package/Gizmos/cameraGizmo.js +1 -0
  236. package/Gizmos/cameraGizmo.js.map +1 -1
  237. package/Gizmos/gizmo.js +1 -0
  238. package/Gizmos/gizmo.js.map +1 -1
  239. package/Gizmos/gizmoManager.d.ts +18 -0
  240. package/Gizmos/gizmoManager.js +34 -0
  241. package/Gizmos/gizmoManager.js.map +1 -1
  242. package/Gizmos/lightGizmo.d.ts +1 -0
  243. package/Gizmos/lightGizmo.js +1 -0
  244. package/Gizmos/lightGizmo.js.map +1 -1
  245. package/Gizmos/planeRotationGizmo.d.ts +2 -0
  246. package/Gizmos/planeRotationGizmo.js +2 -0
  247. package/Gizmos/planeRotationGizmo.js.map +1 -1
  248. package/Gizmos/positionGizmo.d.ts +11 -0
  249. package/Gizmos/positionGizmo.js +19 -0
  250. package/Gizmos/positionGizmo.js.map +1 -1
  251. package/Gizmos/rotationGizmo.d.ts +14 -0
  252. package/Gizmos/rotationGizmo.js +14 -0
  253. package/Gizmos/rotationGizmo.js.map +1 -1
  254. package/Gizmos/scaleGizmo.d.ts +18 -1
  255. package/Gizmos/scaleGizmo.js +19 -1
  256. package/Gizmos/scaleGizmo.js.map +1 -1
  257. package/Helpers/environmentHelper.d.ts +4 -2
  258. package/Helpers/environmentHelper.js +4 -2
  259. package/Helpers/environmentHelper.js.map +1 -1
  260. package/Layers/effectLayer.d.ts +1 -0
  261. package/Layers/effectLayer.js +1 -0
  262. package/Layers/effectLayer.js.map +1 -1
  263. package/Layers/glowLayer.d.ts +3 -1
  264. package/Layers/glowLayer.js +3 -1
  265. package/Layers/glowLayer.js.map +1 -1
  266. package/Layers/highlightLayer.d.ts +3 -2
  267. package/Layers/highlightLayer.js +3 -2
  268. package/Layers/highlightLayer.js.map +1 -1
  269. package/Lights/light.d.ts +1 -1
  270. package/Lights/light.js +1 -1
  271. package/Lights/light.js.map +1 -1
  272. package/Loading/sceneLoader.js +4 -0
  273. package/Loading/sceneLoader.js.map +1 -1
  274. package/Materials/Background/backgroundMaterial.d.ts +2 -2
  275. package/Materials/Background/backgroundMaterial.js +2 -2
  276. package/Materials/Background/backgroundMaterial.js.map +1 -1
  277. package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +72 -0
  278. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +230 -0
  279. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -0
  280. package/Materials/GreasedLine/greasedLinePluginMaterial.d.ts +0 -1
  281. package/Materials/GreasedLine/greasedLinePluginMaterial.js +0 -1
  282. package/Materials/GreasedLine/greasedLinePluginMaterial.js.map +1 -1
  283. package/Materials/GreasedLine/greasedLineSimpleMaterial.d.ts +0 -1
  284. package/Materials/GreasedLine/greasedLineSimpleMaterial.js +0 -1
  285. package/Materials/GreasedLine/greasedLineSimpleMaterial.js.map +1 -1
  286. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.d.ts +2 -1
  287. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +1 -1
  288. package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
  289. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js +1 -0
  290. package/Materials/Node/Blocks/Fragment/fragCoordBlock.js.map +1 -1
  291. package/Materials/Node/Blocks/Fragment/frontFacingBlock.js +1 -0
  292. package/Materials/Node/Blocks/Fragment/frontFacingBlock.js.map +1 -1
  293. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js +1 -0
  294. package/Materials/Node/Blocks/Fragment/screenSizeBlock.js.map +1 -1
  295. package/Materials/Node/Blocks/Teleport/teleportInBlock.d.ts +3 -1
  296. package/Materials/Node/Blocks/Teleport/teleportInBlock.js +3 -1
  297. package/Materials/Node/Blocks/Teleport/teleportInBlock.js.map +1 -1
  298. package/Materials/Node/Blocks/triPlanarBlock.d.ts +1 -0
  299. package/Materials/Node/Blocks/triPlanarBlock.js +1 -0
  300. package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
  301. package/Materials/Node/Blocks/worleyNoise3DBlock.d.ts +2 -0
  302. package/Materials/Node/Blocks/worleyNoise3DBlock.js +2 -0
  303. package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
  304. package/Materials/Node/nodeMaterial.d.ts +10 -3
  305. package/Materials/Node/nodeMaterial.js +14 -3
  306. package/Materials/Node/nodeMaterial.js.map +1 -1
  307. package/Materials/Node/nodeMaterialBlock.d.ts +3 -1
  308. package/Materials/Node/nodeMaterialBlock.js +4 -1
  309. package/Materials/Node/nodeMaterialBlock.js.map +1 -1
  310. package/Materials/Node/nodeMaterialBlockConnectionPoint.js +1 -0
  311. package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
  312. package/Materials/Node/nodeMaterialBuildStateSharedData.js +1 -0
  313. package/Materials/Node/nodeMaterialBuildStateSharedData.js.map +1 -1
  314. package/Materials/PBR/pbrBaseMaterial.d.ts +7 -6
  315. package/Materials/PBR/pbrBaseMaterial.js +7 -6
  316. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  317. package/Materials/PBR/pbrMaterial.d.ts +2 -1
  318. package/Materials/PBR/pbrMaterial.js +2 -1
  319. package/Materials/PBR/pbrMaterial.js.map +1 -1
  320. package/Materials/PBR/pbrMetallicRoughnessMaterial.d.ts +4 -1
  321. package/Materials/PBR/pbrMetallicRoughnessMaterial.js +4 -1
  322. package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
  323. package/Materials/PBR/pbrSpecularGlossinessMaterial.d.ts +4 -1
  324. package/Materials/PBR/pbrSpecularGlossinessMaterial.js +4 -1
  325. package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
  326. package/Materials/Textures/Loaders/envTextureLoader.js +1 -0
  327. package/Materials/Textures/Loaders/envTextureLoader.js.map +1 -1
  328. package/Materials/Textures/Loaders/hdrTextureLoader.js +1 -0
  329. package/Materials/Textures/Loaders/hdrTextureLoader.js.map +1 -1
  330. package/Materials/Textures/Loaders/tgaTextureLoader.js +1 -0
  331. package/Materials/Textures/Loaders/tgaTextureLoader.js.map +1 -1
  332. package/Materials/Textures/Packer/packer.d.ts +0 -1
  333. package/Materials/Textures/Packer/packer.js +0 -1
  334. package/Materials/Textures/Packer/packer.js.map +1 -1
  335. package/Materials/Textures/colorGradingTexture.d.ts +4 -1
  336. package/Materials/Textures/colorGradingTexture.js +4 -1
  337. package/Materials/Textures/colorGradingTexture.js.map +1 -1
  338. package/Materials/Textures/equiRectangularCubeTexture.d.ts +1 -0
  339. package/Materials/Textures/equiRectangularCubeTexture.js +1 -0
  340. package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
  341. package/Materials/Textures/hdrCubeTexture.d.ts +3 -2
  342. package/Materials/Textures/hdrCubeTexture.js +3 -2
  343. package/Materials/Textures/hdrCubeTexture.js.map +1 -1
  344. package/Materials/Textures/htmlElementTexture.d.ts +1 -1
  345. package/Materials/Textures/htmlElementTexture.js +1 -1
  346. package/Materials/Textures/htmlElementTexture.js.map +1 -1
  347. package/Materials/index.d.ts +1 -0
  348. package/Materials/index.js +1 -0
  349. package/Materials/index.js.map +1 -1
  350. package/Materials/material.d.ts +1 -0
  351. package/Materials/material.decalMapConfiguration.d.ts +0 -5
  352. package/Materials/material.decalMapConfiguration.js +5 -5
  353. package/Materials/material.decalMapConfiguration.js.map +1 -1
  354. package/Materials/material.js +1 -0
  355. package/Materials/material.js.map +1 -1
  356. package/Materials/materialHelper.d.ts +1 -1
  357. package/Materials/materialHelper.js +4 -3
  358. package/Materials/materialHelper.js.map +1 -1
  359. package/Materials/materialPluginManager.js +1 -0
  360. package/Materials/materialPluginManager.js.map +1 -1
  361. package/Materials/standardMaterial.d.ts +2 -2
  362. package/Materials/standardMaterial.js +2 -2
  363. package/Materials/standardMaterial.js.map +1 -1
  364. package/Materials/uniformBuffer.js +2 -1
  365. package/Materials/uniformBuffer.js.map +1 -1
  366. package/Maths/math.path.d.ts +2 -1
  367. package/Maths/math.path.js +2 -1
  368. package/Maths/math.path.js.map +1 -1
  369. package/Maths/math.vector.d.ts +11 -4
  370. package/Maths/math.vector.js +11 -4
  371. package/Maths/math.vector.js.map +1 -1
  372. package/Meshes/Builders/hemisphereBuilder.js +1 -0
  373. package/Meshes/Builders/hemisphereBuilder.js.map +1 -1
  374. package/Meshes/Builders/textBuilder.d.ts +26 -5
  375. package/Meshes/Builders/textBuilder.js +26 -5
  376. package/Meshes/Builders/textBuilder.js.map +1 -1
  377. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +84 -0
  378. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +288 -0
  379. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -0
  380. package/Meshes/GreasedLine/greasedLineRibbonMesh.js +7 -0
  381. package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -1
  382. package/Meshes/Node/Blocks/geometryCurveBlock.d.ts +92 -0
  383. package/Meshes/Node/Blocks/geometryCurveBlock.js +292 -0
  384. package/Meshes/Node/Blocks/geometryCurveBlock.js.map +1 -0
  385. package/Meshes/Node/Blocks/noiseBlock.d.ts +5 -3
  386. package/Meshes/Node/Blocks/noiseBlock.js +5 -3
  387. package/Meshes/Node/Blocks/noiseBlock.js.map +1 -1
  388. package/Meshes/Node/index.d.ts +1 -0
  389. package/Meshes/Node/index.js +1 -0
  390. package/Meshes/Node/index.js.map +1 -1
  391. package/Meshes/Node/nodeGeometry.d.ts +6 -2
  392. package/Meshes/Node/nodeGeometry.js +7 -2
  393. package/Meshes/Node/nodeGeometry.js.map +1 -1
  394. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +1 -0
  395. package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
  396. package/Meshes/Node/nodeGeometryBuildState.js +1 -0
  397. package/Meshes/Node/nodeGeometryBuildState.js.map +1 -1
  398. package/Meshes/abstractMesh.d.ts +1 -0
  399. package/Meshes/abstractMesh.js +3 -0
  400. package/Meshes/abstractMesh.js.map +1 -1
  401. package/Meshes/csg.d.ts +7 -1
  402. package/Meshes/csg.js +9 -1
  403. package/Meshes/csg.js.map +1 -1
  404. package/Meshes/index.d.ts +1 -0
  405. package/Meshes/index.js +1 -0
  406. package/Meshes/index.js.map +1 -1
  407. package/Meshes/instancedMesh.d.ts +7 -3
  408. package/Meshes/instancedMesh.js +7 -3
  409. package/Meshes/instancedMesh.js.map +1 -1
  410. package/Meshes/linesMesh.d.ts +3 -2
  411. package/Meshes/linesMesh.js +3 -2
  412. package/Meshes/linesMesh.js.map +1 -1
  413. package/Meshes/mesh.d.ts +1 -0
  414. package/Meshes/mesh.js +1 -0
  415. package/Meshes/mesh.js.map +1 -1
  416. package/Meshes/mesh.vertexData.d.ts +0 -145
  417. package/Meshes/mesh.vertexData.js +0 -145
  418. package/Meshes/mesh.vertexData.js.map +1 -1
  419. package/Meshes/transformNode.d.ts +1 -1
  420. package/Meshes/transformNode.js +1 -1
  421. package/Meshes/transformNode.js.map +1 -1
  422. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +1 -0
  423. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js +1 -0
  424. package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.js.map +1 -1
  425. package/Misc/HighDynamicRange/hdr.js +7 -0
  426. package/Misc/HighDynamicRange/hdr.js.map +1 -1
  427. package/Misc/HighDynamicRange/panoramaToCubemap.js +2 -0
  428. package/Misc/HighDynamicRange/panoramaToCubemap.js.map +1 -1
  429. package/Misc/assetsManager.d.ts +3 -0
  430. package/Misc/assetsManager.js +3 -0
  431. package/Misc/assetsManager.js.map +1 -1
  432. package/Misc/basis.js +1 -0
  433. package/Misc/basis.js.map +1 -1
  434. package/Misc/decorators.d.ts +1 -0
  435. package/Misc/decorators.js +2 -1
  436. package/Misc/decorators.js.map +1 -1
  437. package/Misc/fileTools.js +2 -0
  438. package/Misc/fileTools.js.map +1 -1
  439. package/Misc/filesInput.d.ts +7 -2
  440. package/Misc/filesInput.js +7 -2
  441. package/Misc/filesInput.js.map +1 -1
  442. package/Misc/greasedLineTools.d.ts +1 -0
  443. package/Misc/greasedLineTools.js +1 -0
  444. package/Misc/greasedLineTools.js.map +1 -1
  445. package/Misc/textureTools.d.ts +2 -0
  446. package/Misc/textureTools.js +2 -0
  447. package/Misc/textureTools.js.map +1 -1
  448. package/Misc/timer.d.ts +2 -1
  449. package/Misc/timer.js +1 -0
  450. package/Misc/timer.js.map +1 -1
  451. package/Misc/tools.d.ts +2 -2
  452. package/Misc/tools.js +6 -2
  453. package/Misc/tools.js.map +1 -1
  454. package/Misc/videoRecorder.js +4 -0
  455. package/Misc/videoRecorder.js.map +1 -1
  456. package/Misc/webRequest.js +1 -1
  457. package/Misc/webRequest.js.map +1 -1
  458. package/Morph/morphTargetManager.d.ts +11 -0
  459. package/Morph/morphTargetManager.js +22 -2
  460. package/Morph/morphTargetManager.js.map +1 -1
  461. package/Particles/EmitterTypes/customParticleEmitter.js +10 -2
  462. package/Particles/EmitterTypes/customParticleEmitter.js.map +1 -1
  463. package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +3 -1
  464. package/Particles/EmitterTypes/cylinderParticleEmitter.js +7 -1
  465. package/Particles/EmitterTypes/cylinderParticleEmitter.js.map +1 -1
  466. package/Particles/IParticleSystem.d.ts +2 -2
  467. package/Particles/IParticleSystem.js.map +1 -1
  468. package/Particles/gpuParticleSystem.js +1 -0
  469. package/Particles/gpuParticleSystem.js.map +1 -1
  470. package/Particles/particleSystem.d.ts +1 -2
  471. package/Particles/particleSystem.js +5 -1
  472. package/Particles/particleSystem.js.map +1 -1
  473. package/Particles/solidParticleSystem.d.ts +1 -1
  474. package/Particles/solidParticleSystem.js +1 -1
  475. package/Particles/solidParticleSystem.js.map +1 -1
  476. package/Physics/physicsHelper.d.ts +1 -0
  477. package/Physics/physicsHelper.js +1 -0
  478. package/Physics/physicsHelper.js.map +1 -1
  479. package/Physics/v1/Plugins/ammoJSPlugin.d.ts +5 -0
  480. package/Physics/v1/Plugins/ammoJSPlugin.js +6 -0
  481. package/Physics/v1/Plugins/ammoJSPlugin.js.map +1 -1
  482. package/Physics/v1/physicsEngine.d.ts +2 -0
  483. package/Physics/v1/physicsEngine.js +2 -0
  484. package/Physics/v1/physicsEngine.js.map +1 -1
  485. package/Physics/v1/physicsImpostor.d.ts +0 -1
  486. package/Physics/v1/physicsImpostor.js +0 -1
  487. package/Physics/v1/physicsImpostor.js.map +1 -1
  488. package/Physics/v2/IPhysicsEnginePlugin.d.ts +1 -0
  489. package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
  490. package/Physics/v2/Plugins/havokPlugin.d.ts +12 -6
  491. package/Physics/v2/Plugins/havokPlugin.js +38 -6
  492. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  493. package/Physics/v2/physicsBody.d.ts +8 -0
  494. package/Physics/v2/physicsBody.js +18 -4
  495. package/Physics/v2/physicsBody.js.map +1 -1
  496. package/Physics/v2/physicsConstraint.d.ts +0 -2
  497. package/Physics/v2/physicsConstraint.js +0 -2
  498. package/Physics/v2/physicsConstraint.js.map +1 -1
  499. package/Physics/v2/physicsEngine.d.ts +1 -2
  500. package/Physics/v2/physicsEngine.js +2 -2
  501. package/Physics/v2/physicsEngine.js.map +1 -1
  502. package/Physics/v2/physicsShape.d.ts +2 -0
  503. package/Physics/v2/physicsShape.js +5 -0
  504. package/Physics/v2/physicsShape.js.map +1 -1
  505. package/PostProcesses/motionBlurPostProcess.d.ts +1 -0
  506. package/PostProcesses/motionBlurPostProcess.js +1 -0
  507. package/PostProcesses/motionBlurPostProcess.js.map +1 -1
  508. package/PostProcesses/postProcess.d.ts +0 -1
  509. package/PostProcesses/postProcess.js +0 -1
  510. package/PostProcesses/postProcess.js.map +1 -1
  511. package/Rendering/depthRendererSceneComponent.js +1 -0
  512. package/Rendering/depthRendererSceneComponent.js.map +1 -1
  513. package/Rendering/fluidRenderer/fluidRenderingObject.d.ts +1 -1
  514. package/Rendering/fluidRenderer/fluidRenderingObject.js +1 -1
  515. package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
  516. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.d.ts +1 -1
  517. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js +1 -1
  518. package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.js.map +1 -1
  519. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.d.ts +1 -1
  520. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js +1 -1
  521. package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.js.map +1 -1
  522. package/Rendering/geometryBufferRenderer.d.ts +2 -2
  523. package/Rendering/geometryBufferRenderer.js +2 -2
  524. package/Rendering/geometryBufferRenderer.js.map +1 -1
  525. package/Rendering/index.d.ts +0 -1
  526. package/Rendering/index.js +0 -1
  527. package/Rendering/index.js.map +1 -1
  528. package/Rendering/renderingGroup.d.ts +0 -1
  529. package/Rendering/renderingGroup.js +3 -4
  530. package/Rendering/renderingGroup.js.map +1 -1
  531. package/Rendering/renderingManager.d.ts +1 -1
  532. package/Rendering/renderingManager.js +1 -1
  533. package/Rendering/renderingManager.js.map +1 -1
  534. package/Rendering/subSurfaceConfiguration.d.ts +1 -0
  535. package/Rendering/subSurfaceConfiguration.js +1 -0
  536. package/Rendering/subSurfaceConfiguration.js.map +1 -1
  537. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.d.ts +7 -0
  538. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js +13 -0
  539. package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.js.map +1 -0
  540. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.d.ts +5 -0
  541. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js +10 -0
  542. package/Shaders/ShadersInclude/gaussianSplattingVertexDeclaration.js.map +1 -0
  543. package/Shaders/ShadersInclude/morphTargetsVertex.js +8 -5
  544. package/Shaders/ShadersInclude/morphTargetsVertex.js.map +1 -1
  545. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  546. package/Shaders/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  547. package/Shaders/gaussianSplatting.fragment.d.ts +11 -0
  548. package/Shaders/gaussianSplatting.fragment.js +27 -0
  549. package/Shaders/gaussianSplatting.fragment.js.map +1 -0
  550. package/Shaders/gaussianSplatting.vertex.d.ts +13 -0
  551. package/Shaders/gaussianSplatting.vertex.js +49 -0
  552. package/Shaders/gaussianSplatting.vertex.js.map +1 -0
  553. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js +5 -1
  554. package/ShadersWGSL/ShadersInclude/morphTargetsVertex.js.map +1 -1
  555. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js +2 -0
  556. package/ShadersWGSL/ShadersInclude/morphTargetsVertexDeclaration.js.map +1 -1
  557. package/XR/features/WebXRAbstractFeature.d.ts +3 -1
  558. package/XR/features/WebXRAbstractFeature.js +20 -4
  559. package/XR/features/WebXRAbstractFeature.js.map +1 -1
  560. package/XR/features/WebXRAnchorSystem.d.ts +1 -0
  561. package/XR/features/WebXRAnchorSystem.js +1 -0
  562. package/XR/features/WebXRAnchorSystem.js.map +1 -1
  563. package/XR/features/WebXRControllerTeleportation.js +9 -2
  564. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  565. package/XR/features/WebXREyeTracking.js +1 -1
  566. package/XR/features/WebXREyeTracking.js.map +1 -1
  567. package/XR/features/WebXRHandTracking.d.ts +4 -1
  568. package/XR/features/WebXRHandTracking.js +18 -4
  569. package/XR/features/WebXRHandTracking.js.map +1 -1
  570. package/XR/features/WebXRHitTest.js +1 -1
  571. package/XR/features/WebXRHitTest.js.map +1 -1
  572. package/XR/features/WebXRNearInteraction.d.ts +6 -3
  573. package/XR/features/WebXRNearInteraction.js +9 -4
  574. package/XR/features/WebXRNearInteraction.js.map +1 -1
  575. package/XR/features/WebXRPlaneDetector.d.ts +2 -0
  576. package/XR/features/WebXRPlaneDetector.js +2 -0
  577. package/XR/features/WebXRPlaneDetector.js.map +1 -1
  578. package/XR/features/WebXRRawCameraAccess.d.ts +2 -0
  579. package/XR/features/WebXRRawCameraAccess.js +2 -0
  580. package/XR/features/WebXRRawCameraAccess.js.map +1 -1
  581. package/XR/motionController/webXROculusTouchMotionController.d.ts +1 -0
  582. package/XR/motionController/webXROculusTouchMotionController.js +1 -0
  583. package/XR/motionController/webXROculusTouchMotionController.js.map +1 -1
  584. package/XR/webXRCamera.d.ts +2 -0
  585. package/XR/webXRCamera.js +8 -6
  586. package/XR/webXRCamera.js.map +1 -1
  587. package/XR/webXRExperienceHelper.js +1 -0
  588. package/XR/webXRExperienceHelper.js.map +1 -1
  589. package/XR/webXRInput.js +1 -1
  590. package/XR/webXRInput.js.map +1 -1
  591. package/XR/webXRInputSource.d.ts +3 -1
  592. package/XR/webXRInputSource.js +6 -3
  593. package/XR/webXRInputSource.js.map +1 -1
  594. package/XR/webXRSessionManager.d.ts +13 -0
  595. package/XR/webXRSessionManager.js +21 -1
  596. package/XR/webXRSessionManager.js.map +1 -1
  597. package/assetContainer.d.ts +4 -1
  598. package/assetContainer.js +4 -1
  599. package/assetContainer.js.map +1 -1
  600. package/package.json +1 -1
  601. package/scene.d.ts +1 -0
  602. package/scene.js +11 -0
  603. package/scene.js.map +1 -1
  604. package/Rendering/GaussianSplatting/gaussianSplatting.d.ts +0 -81
  605. package/Rendering/GaussianSplatting/gaussianSplatting.js +0 -400
  606. package/Rendering/GaussianSplatting/gaussianSplatting.js.map +0 -1
  607. package/Rendering/GaussianSplatting/index.d.ts +0 -1
  608. package/Rendering/GaussianSplatting/index.js +0 -2
  609. package/Rendering/GaussianSplatting/index.js.map +0 -1
@@ -7,7 +7,11 @@ import { defaultValueSerializationFunction } from "../../serialization.js";
7
7
  * Block that returns a constant value.
8
8
  */
9
9
  export class FlowGraphConstantBlock extends FlowGraphBlock {
10
- constructor(config) {
10
+ constructor(
11
+ /**
12
+ * the configuration of the block
13
+ */
14
+ config) {
11
15
  super(config);
12
16
  this.config = config;
13
17
  this.output = this.registerDataOutput("output", getRichTypeFromValue(config.value));
@@ -15,9 +19,18 @@ export class FlowGraphConstantBlock extends FlowGraphBlock {
15
19
  _updateOutputs(context) {
16
20
  this.output.setValue(this.config.value, context);
17
21
  }
22
+ /**
23
+ * Gets the class name of this block
24
+ * @returns the class name
25
+ */
18
26
  getClassName() {
19
27
  return "FGConstantBlock";
20
28
  }
29
+ /**
30
+ * Serializes this block
31
+ * @param serializationObject the object to serialize to
32
+ * @param valueSerializeFunction the function to use to serialize the value
33
+ */
21
34
  serialize(serializationObject = {}, valueSerializeFunction = defaultValueSerializationFunction) {
22
35
  super.serialize(serializationObject);
23
36
  valueSerializeFunction("value", this.config.value, serializationObject.config);
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphConstantBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphConstantBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gCAAsC;AAG/D,OAAO,EAAE,oBAAoB,EAAE,oCAA0C;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iCAAiC,EAAE,+BAAqC;AAWjF;;;GAGG;AACH,MAAM,OAAO,sBAA0B,SAAQ,cAAc;IAMzD,YAAmB,MAA+C;QAC9D,KAAK,CAAC,MAAM,CAAC,CAAC;QADC,WAAM,GAAN,MAAM,CAAyC;QAG9D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACxF,CAAC;IAEM,cAAc,CAAC,OAAyB;QAC3C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAEM,YAAY;QACf,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAEM,SAAS,CAAC,sBAA2B,EAAE,EAAE,yBAAqF,iCAAiC;QAClK,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACnF,CAAC;CACJ;AACD,aAAa,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC","sourcesContent":["import { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\r\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\r\nimport { getRichTypeFromValue } from \"core/FlowGraph/flowGraphRichTypes\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport { defaultValueSerializationFunction } from \"core/FlowGraph/serialization\";\r\n/**\r\n * @experimental\r\n * Configuration for a constant block.\r\n */\r\nexport interface IFlowGraphConstantBlockConfiguration<T> extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The value of the constant.\r\n */\r\n value: T;\r\n}\r\n/**\r\n * @experimental\r\n * Block that returns a constant value.\r\n */\r\nexport class FlowGraphConstantBlock<T> extends FlowGraphBlock {\r\n /**\r\n * Output connection: The constant value.\r\n */\r\n public readonly output: FlowGraphDataConnection<T>;\r\n\r\n constructor(public config: IFlowGraphConstantBlockConfiguration<T>) {\r\n super(config);\r\n\r\n this.output = this.registerDataOutput(\"output\", getRichTypeFromValue(config.value));\r\n }\r\n\r\n public _updateOutputs(context: FlowGraphContext): void {\r\n this.output.setValue(this.config.value, context);\r\n }\r\n\r\n public getClassName(): string {\r\n return \"FGConstantBlock\";\r\n }\r\n\r\n public serialize(serializationObject: any = {}, valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction) {\r\n super.serialize(serializationObject);\r\n valueSerializeFunction(\"value\", this.config.value, serializationObject.config);\r\n }\r\n}\r\nRegisterClass(\"FGConstantBlock\", FlowGraphConstantBlock);\r\n"]}
1
+ {"version":3,"file":"flowGraphConstantBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphConstantBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gCAAsC;AAG/D,OAAO,EAAE,oBAAoB,EAAE,oCAA0C;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iCAAiC,EAAE,+BAAqC;AAWjF;;;GAGG;AACH,MAAM,OAAO,sBAA0B,SAAQ,cAAc;IAMzD;IACI;;OAEG;IACI,MAA+C;QAEtD,KAAK,CAAC,MAAM,CAAC,CAAC;QAFP,WAAM,GAAN,MAAM,CAAyC;QAItD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACxF,CAAC;IAEM,cAAc,CAAC,OAAyB;QAC3C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,sBAA2B,EAAE,EAAE,yBAAqF,iCAAiC;QAClK,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACnF,CAAC;CACJ;AACD,aAAa,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC","sourcesContent":["import { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\r\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\r\nimport { getRichTypeFromValue } from \"core/FlowGraph/flowGraphRichTypes\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport { defaultValueSerializationFunction } from \"core/FlowGraph/serialization\";\r\n/**\r\n * @experimental\r\n * Configuration for a constant block.\r\n */\r\nexport interface IFlowGraphConstantBlockConfiguration<T> extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The value of the constant.\r\n */\r\n value: T;\r\n}\r\n/**\r\n * @experimental\r\n * Block that returns a constant value.\r\n */\r\nexport class FlowGraphConstantBlock<T> extends FlowGraphBlock {\r\n /**\r\n * Output connection: The constant value.\r\n */\r\n public readonly output: FlowGraphDataConnection<T>;\r\n\r\n constructor(\r\n /**\r\n * the configuration of the block\r\n */\r\n public config: IFlowGraphConstantBlockConfiguration<T>\r\n ) {\r\n super(config);\r\n\r\n this.output = this.registerDataOutput(\"output\", getRichTypeFromValue(config.value));\r\n }\r\n\r\n public _updateOutputs(context: FlowGraphContext): void {\r\n this.output.setValue(this.config.value, context);\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return \"FGConstantBlock\";\r\n }\r\n\r\n /**\r\n * Serializes this block\r\n * @param serializationObject the object to serialize to\r\n * @param valueSerializeFunction the function to use to serialize the value\r\n */\r\n public serialize(serializationObject: any = {}, valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction) {\r\n super.serialize(serializationObject);\r\n valueSerializeFunction(\"value\", this.config.value, serializationObject.config);\r\n }\r\n}\r\nRegisterClass(\"FGConstantBlock\", FlowGraphConstantBlock);\r\n"]}
@@ -10,6 +10,15 @@ export declare class FlowGraphConstantOperationBlock<ResultT> extends FlowGraphC
10
10
  private _operation;
11
11
  private _className;
12
12
  constructor(richType: RichType<ResultT>, _operation: () => ResultT, _className: string, config?: IFlowGraphBlockConfiguration);
13
+ /**
14
+ * the operation performed by this block
15
+ * @param _context the graph context
16
+ * @returns the result of the operation
17
+ */
13
18
  _doOperation(_context: FlowGraphContext): ResultT;
19
+ /**
20
+ * Gets the class name of this block
21
+ * @returns the class name
22
+ */
14
23
  getClassName(): string;
15
24
  }
@@ -9,9 +9,18 @@ export class FlowGraphConstantOperationBlock extends FlowGraphCachedOperationBlo
9
9
  this._operation = _operation;
10
10
  this._className = _className;
11
11
  }
12
+ /**
13
+ * the operation performed by this block
14
+ * @param _context the graph context
15
+ * @returns the result of the operation
16
+ */
12
17
  _doOperation(_context) {
13
18
  return this._operation();
14
19
  }
20
+ /**
21
+ * Gets the class name of this block
22
+ * @returns the class name
23
+ */
15
24
  getClassName() {
16
25
  return this._className;
17
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphConstantOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF;;;GAGG;AACH,MAAM,OAAO,+BAAyC,SAAQ,6BAAsC;IAChG,YACI,QAA2B,EACnB,UAAyB,EACzB,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAJhB,eAAU,GAAV,UAAU,CAAe;QACzB,eAAU,GAAV,UAAU,CAAQ;IAI9B,CAAC;IAEe,YAAY,CAAC,QAA0B;QACnD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n/**\r\n * @experimental\r\n * Block that outputs a value of type ResultT, resulting of an operation with no inputs.\r\n */\r\nexport class FlowGraphConstantOperationBlock<ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n constructor(\r\n richType: RichType<ResultT>,\r\n private _operation: () => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(richType, config);\r\n }\r\n\r\n public override _doOperation(_context: FlowGraphContext): ResultT {\r\n return this._operation();\r\n }\r\n\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"flowGraphConstantOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF;;;GAGG;AACH,MAAM,OAAO,+BAAyC,SAAQ,6BAAsC;IAChG,YACI,QAA2B,EACnB,UAAyB,EACzB,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAJhB,eAAU,GAAV,UAAU,CAAe;QACzB,eAAU,GAAV,UAAU,CAAQ;IAI9B,CAAC;IAED;;;;OAIG;IACa,YAAY,CAAC,QAA0B;QACnD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n/**\r\n * @experimental\r\n * Block that outputs a value of type ResultT, resulting of an operation with no inputs.\r\n */\r\nexport class FlowGraphConstantOperationBlock<ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n constructor(\r\n richType: RichType<ResultT>,\r\n private _operation: () => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(richType, config);\r\n }\r\n\r\n /**\r\n * the operation performed by this block\r\n * @param _context the graph context\r\n * @returns the result of the operation\r\n */\r\n public override _doOperation(_context: FlowGraphContext): ResultT {\r\n return this._operation();\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
@@ -27,8 +27,13 @@ export declare class FlowGraphCoordinateTransformBlock extends FlowGraphBlock {
27
27
  readonly outputCoordinates: FlowGraphDataConnection<Vector3>;
28
28
  /**
29
29
  * Creates a new FlowGraphCoordinateTransformBlock
30
+ * @param config optional configuration for this block
30
31
  */
31
32
  constructor(config?: IFlowGraphBlockConfiguration);
32
33
  _updateOutputs(_context: FlowGraphContext): void;
34
+ /**
35
+ * Gets the class name of this block
36
+ * @returns the class name
37
+ */
33
38
  getClassName(): string;
34
39
  }
@@ -9,6 +9,7 @@ import { RegisterClass } from "../../../Misc/typeStore.js";
9
9
  export class FlowGraphCoordinateTransformBlock extends FlowGraphBlock {
10
10
  /**
11
11
  * Creates a new FlowGraphCoordinateTransformBlock
12
+ * @param config optional configuration for this block
12
13
  */
13
14
  constructor(config) {
14
15
  super(config);
@@ -34,6 +35,10 @@ export class FlowGraphCoordinateTransformBlock extends FlowGraphBlock {
34
35
  const outputCoordinatesValue = this.outputCoordinates.getValue(_context);
35
36
  Vector3.TransformCoordinatesToRef(inputCoordinatesValue, sourceToDestination, outputCoordinatesValue);
36
37
  }
38
+ /**
39
+ * Gets the class name of this block
40
+ * @returns the class name
41
+ */
37
42
  getClassName() {
38
43
  return "FGCoordinateTransformBlock";
39
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphCoordinateTransformBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD;;;GAGG;AACH,MAAM,OAAO,iCAAkC,SAAQ,cAAc;IAkBjE;;OAEG;IACH,YAAY,MAAqC;QAC7C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACxE,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;QAClF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;QACpF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;IAC3F,CAAC;IAEM,cAAc,CAAC,QAA0B;QAC5C,MAAM,iBAAiB,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzE,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEvE,qDAAqD;QACrD,MAAM,WAAW,GAAG,iBAAiB,CAAC,cAAc,EAAE,CAAC;QACvD,0DAA0D;QAC1D,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,cAAc,EAAE,CAAC;QACjE,MAAM,uBAAuB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QAChF,0DAA0D;QAC1D,uBAAuB,CAAC,MAAM,EAAE,CAAC;QAEjC,MAAM,mBAAmB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACjD,0EAA0E;QAC1E,uBAAuB,CAAC,aAAa,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;QACxE,MAAM,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEzE,OAAO,CAAC,yBAAyB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,sBAAsB,CAAC,CAAC;IAC1G,CAAC;IAEM,YAAY;QACf,OAAO,4BAA4B,CAAC;IACxC,CAAC;CACJ;AACD,aAAa,CAAC,4BAA4B,EAAE,iCAAiC,CAAC,CAAC","sourcesContent":["import { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport { RichTypeAny, RichTypeVector3 } from \"../../flowGraphRichTypes\";\r\nimport { TmpVectors, Vector3 } from \"../../../Maths/math.vector\";\r\nimport type { TransformNode } from \"../../../Meshes/transformNode\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\n/**\r\n * @experimental\r\n * This blocks transforms a vector from one coordinate system to another.\r\n */\r\nexport class FlowGraphCoordinateTransformBlock extends FlowGraphBlock {\r\n /**\r\n * Input connection: The source coordinate system.\r\n */\r\n public readonly sourceSystem: FlowGraphDataConnection<TransformNode>;\r\n /**\r\n * Input connection: The destination coordinate system.\r\n */\r\n public readonly destinationSystem: FlowGraphDataConnection<TransformNode>;\r\n /**\r\n * Input connection: The coordinates to transform.\r\n */\r\n public readonly inputCoordinates: FlowGraphDataConnection<Vector3>;\r\n /**\r\n * Output connection: The transformed coordinates.\r\n */\r\n public readonly outputCoordinates: FlowGraphDataConnection<Vector3>;\r\n\r\n /**\r\n * Creates a new FlowGraphCoordinateTransformBlock\r\n */\r\n constructor(config?: IFlowGraphBlockConfiguration) {\r\n super(config);\r\n\r\n this.sourceSystem = this.registerDataInput(\"sourceSystem\", RichTypeAny);\r\n this.destinationSystem = this.registerDataInput(\"destinationSystem\", RichTypeAny);\r\n this.inputCoordinates = this.registerDataInput(\"inputCoordinates\", RichTypeVector3);\r\n this.outputCoordinates = this.registerDataOutput(\"outputCoordinates\", RichTypeVector3);\r\n }\r\n\r\n public _updateOutputs(_context: FlowGraphContext): void {\r\n const sourceSystemValue = this.sourceSystem.getValue(_context);\r\n const destinationSystemValue = this.destinationSystem.getValue(_context);\r\n const inputCoordinatesValue = this.inputCoordinates.getValue(_context);\r\n\r\n // takes coordinates from source space to world space\r\n const sourceWorld = sourceSystemValue.getWorldMatrix();\r\n // takes coordinates from destination space to world space\r\n const destinationWorld = destinationSystemValue.getWorldMatrix();\r\n const destinationWorldInverse = TmpVectors.Matrix[0].copyFrom(destinationWorld);\r\n // takes coordinates from world space to destination space\r\n destinationWorldInverse.invert();\r\n\r\n const sourceToDestination = TmpVectors.Matrix[1];\r\n // takes coordinates from source space to world space to destination space\r\n destinationWorldInverse.multiplyToRef(sourceWorld, sourceToDestination);\r\n const outputCoordinatesValue = this.outputCoordinates.getValue(_context);\r\n\r\n Vector3.TransformCoordinatesToRef(inputCoordinatesValue, sourceToDestination, outputCoordinatesValue);\r\n }\r\n\r\n public getClassName(): string {\r\n return \"FGCoordinateTransformBlock\";\r\n }\r\n}\r\nRegisterClass(\"FGCoordinateTransformBlock\", FlowGraphCoordinateTransformBlock);\r\n"]}
1
+ {"version":3,"file":"flowGraphCoordinateTransformBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD;;;GAGG;AACH,MAAM,OAAO,iCAAkC,SAAQ,cAAc;IAkBjE;;;OAGG;IACH,YAAY,MAAqC;QAC7C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACxE,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;QAClF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;QACpF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;IAC3F,CAAC;IAEM,cAAc,CAAC,QAA0B;QAC5C,MAAM,iBAAiB,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzE,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEvE,qDAAqD;QACrD,MAAM,WAAW,GAAG,iBAAiB,CAAC,cAAc,EAAE,CAAC;QACvD,0DAA0D;QAC1D,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,cAAc,EAAE,CAAC;QACjE,MAAM,uBAAuB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QAChF,0DAA0D;QAC1D,uBAAuB,CAAC,MAAM,EAAE,CAAC;QAEjC,MAAM,mBAAmB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACjD,0EAA0E;QAC1E,uBAAuB,CAAC,aAAa,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;QACxE,MAAM,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEzE,OAAO,CAAC,yBAAyB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,sBAAsB,CAAC,CAAC;IAC1G,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,4BAA4B,CAAC;IACxC,CAAC;CACJ;AACD,aAAa,CAAC,4BAA4B,EAAE,iCAAiC,CAAC,CAAC","sourcesContent":["import { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport { RichTypeAny, RichTypeVector3 } from \"../../flowGraphRichTypes\";\r\nimport { TmpVectors, Vector3 } from \"../../../Maths/math.vector\";\r\nimport type { TransformNode } from \"../../../Meshes/transformNode\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\n/**\r\n * @experimental\r\n * This blocks transforms a vector from one coordinate system to another.\r\n */\r\nexport class FlowGraphCoordinateTransformBlock extends FlowGraphBlock {\r\n /**\r\n * Input connection: The source coordinate system.\r\n */\r\n public readonly sourceSystem: FlowGraphDataConnection<TransformNode>;\r\n /**\r\n * Input connection: The destination coordinate system.\r\n */\r\n public readonly destinationSystem: FlowGraphDataConnection<TransformNode>;\r\n /**\r\n * Input connection: The coordinates to transform.\r\n */\r\n public readonly inputCoordinates: FlowGraphDataConnection<Vector3>;\r\n /**\r\n * Output connection: The transformed coordinates.\r\n */\r\n public readonly outputCoordinates: FlowGraphDataConnection<Vector3>;\r\n\r\n /**\r\n * Creates a new FlowGraphCoordinateTransformBlock\r\n * @param config optional configuration for this block\r\n */\r\n constructor(config?: IFlowGraphBlockConfiguration) {\r\n super(config);\r\n\r\n this.sourceSystem = this.registerDataInput(\"sourceSystem\", RichTypeAny);\r\n this.destinationSystem = this.registerDataInput(\"destinationSystem\", RichTypeAny);\r\n this.inputCoordinates = this.registerDataInput(\"inputCoordinates\", RichTypeVector3);\r\n this.outputCoordinates = this.registerDataOutput(\"outputCoordinates\", RichTypeVector3);\r\n }\r\n\r\n public _updateOutputs(_context: FlowGraphContext): void {\r\n const sourceSystemValue = this.sourceSystem.getValue(_context);\r\n const destinationSystemValue = this.destinationSystem.getValue(_context);\r\n const inputCoordinatesValue = this.inputCoordinates.getValue(_context);\r\n\r\n // takes coordinates from source space to world space\r\n const sourceWorld = sourceSystemValue.getWorldMatrix();\r\n // takes coordinates from destination space to world space\r\n const destinationWorld = destinationSystemValue.getWorldMatrix();\r\n const destinationWorldInverse = TmpVectors.Matrix[0].copyFrom(destinationWorld);\r\n // takes coordinates from world space to destination space\r\n destinationWorldInverse.invert();\r\n\r\n const sourceToDestination = TmpVectors.Matrix[1];\r\n // takes coordinates from source space to world space to destination space\r\n destinationWorldInverse.multiplyToRef(sourceWorld, sourceToDestination);\r\n const outputCoordinatesValue = this.outputCoordinates.getValue(_context);\r\n\r\n Vector3.TransformCoordinatesToRef(inputCoordinatesValue, sourceToDestination, outputCoordinatesValue);\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return \"FGCoordinateTransformBlock\";\r\n }\r\n}\r\nRegisterClass(\"FGCoordinateTransformBlock\", FlowGraphCoordinateTransformBlock);\r\n"]}
@@ -22,6 +22,9 @@ export interface IFlowGraphGetPropertyBlockConfiguration extends IFlowGraphBlock
22
22
  * @experimental
23
23
  */
24
24
  export declare class FlowGraphGetPropertyBlock extends FlowGraphBlock {
25
+ /**
26
+ * the configuration of the block
27
+ */
25
28
  config: IFlowGraphGetPropertyBlockConfiguration;
26
29
  /**
27
30
  * Output connection: The value of the property.
@@ -31,9 +34,21 @@ export declare class FlowGraphGetPropertyBlock extends FlowGraphBlock {
31
34
  * The component with the templated inputs for the provided path.
32
35
  */
33
36
  readonly templateComponent: FlowGraphPathConverterComponent;
34
- constructor(config: IFlowGraphGetPropertyBlockConfiguration);
37
+ constructor(
38
+ /**
39
+ * the configuration of the block
40
+ */
41
+ config: IFlowGraphGetPropertyBlockConfiguration);
35
42
  _updateOutputs(context: FlowGraphContext): void;
43
+ /**
44
+ * Gets the class name of this block
45
+ * @returns the class name
46
+ */
36
47
  getClassName(): string;
48
+ /**
49
+ * Serializes this block
50
+ * @param serializationObject the object to serialize to
51
+ */
37
52
  serialize(serializationObject?: any): void;
38
53
  /**
39
54
  * Class name of the block.
@@ -6,7 +6,11 @@ import { FlowGraphPathConverterComponent } from "../../flowGraphPathConverterCom
6
6
  * @experimental
7
7
  */
8
8
  export class FlowGraphGetPropertyBlock extends FlowGraphBlock {
9
- constructor(config) {
9
+ constructor(
10
+ /**
11
+ * the configuration of the block
12
+ */
13
+ config) {
10
14
  super(config);
11
15
  this.config = config;
12
16
  this.value = this.registerDataOutput("value", RichTypeAny);
@@ -17,9 +21,17 @@ export class FlowGraphGetPropertyBlock extends FlowGraphBlock {
17
21
  const value = accessorContainer.info.get(accessorContainer.object);
18
22
  this.value.setValue(value, context);
19
23
  }
24
+ /**
25
+ * Gets the class name of this block
26
+ * @returns the class name
27
+ */
20
28
  getClassName() {
21
29
  return FlowGraphGetPropertyBlock.ClassName;
22
30
  }
31
+ /**
32
+ * Serializes this block
33
+ * @param serializationObject the object to serialize to
34
+ */
23
35
  serialize(serializationObject = {}) {
24
36
  super.serialize(serializationObject);
25
37
  serializationObject.config.path = this.config.path;
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphGetPropertyBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAiBxF;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,cAAc;IAUzD,YAA0B,MAA+C;QACrE,KAAK,CAAC,MAAM,CAAC,CAAC;QADQ,WAAM,GAAN,MAAM,CAAyC;QAErE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC3D,IAAI,CAAC,iBAAiB,GAAG,IAAI,+BAA+B,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;IAEM,cAAc,CAAC,OAAyB;QAC3C,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACjG,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAEM,YAAY;QACf,OAAO,yBAAyB,CAAC,SAAS,CAAC;IAC/C,CAAC;IAEM,SAAS,CAAC,sBAA2B,EAAE;QAC1C,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,mBAAmB,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IACvD,CAAC;;AAED;;GAEG;AACW,mCAAS,GAAG,oBAAoB,CAAC;AAEnD,aAAa,CAAC,yBAAyB,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport { RichTypeAny } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { IPathToObjectConverter } from \"../../../ObjectModel/objectModelInterfaces\";\r\nimport { FlowGraphPathConverterComponent } from \"../../flowGraphPathConverterComponent\";\r\nimport type { IObjectAccessor } from \"../../typeDefinitions\";\r\n\r\n/**\r\n * @experimental\r\n */\r\nexport interface IFlowGraphGetPropertyBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The complete path to the property that will be set\r\n */\r\n path: string;\r\n /**\r\n * The path converter to use to convert the path to an object accessor.\r\n */\r\n pathConverter: IPathToObjectConverter<IObjectAccessor>;\r\n}\r\n\r\n/**\r\n * @experimental\r\n */\r\nexport class FlowGraphGetPropertyBlock extends FlowGraphBlock {\r\n /**\r\n * Output connection: The value of the property.\r\n */\r\n public readonly value: FlowGraphDataConnection<any>;\r\n /**\r\n * The component with the templated inputs for the provided path.\r\n */\r\n public readonly templateComponent: FlowGraphPathConverterComponent;\r\n\r\n public constructor(public config: IFlowGraphGetPropertyBlockConfiguration) {\r\n super(config);\r\n this.value = this.registerDataOutput(\"value\", RichTypeAny);\r\n this.templateComponent = new FlowGraphPathConverterComponent(config.path, this);\r\n }\r\n\r\n public _updateOutputs(context: FlowGraphContext) {\r\n const accessorContainer = this.templateComponent.getAccessor(this.config.pathConverter, context);\r\n const value = accessorContainer.info.get(accessorContainer.object);\r\n this.value.setValue(value, context);\r\n }\r\n\r\n public getClassName(): string {\r\n return FlowGraphGetPropertyBlock.ClassName;\r\n }\r\n\r\n public serialize(serializationObject: any = {}) {\r\n super.serialize(serializationObject);\r\n serializationObject.config.path = this.config.path;\r\n }\r\n\r\n /**\r\n * Class name of the block.\r\n */\r\n public static ClassName = \"FGGetPropertyBlock\";\r\n}\r\nRegisterClass(FlowGraphGetPropertyBlock.ClassName, FlowGraphGetPropertyBlock);\r\n"]}
1
+ {"version":3,"file":"flowGraphGetPropertyBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAiBxF;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,cAAc;IAUzD;IACI;;OAEG;IACI,MAA+C;QAEtD,KAAK,CAAC,MAAM,CAAC,CAAC;QAFP,WAAM,GAAN,MAAM,CAAyC;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC3D,IAAI,CAAC,iBAAiB,GAAG,IAAI,+BAA+B,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;IAEM,cAAc,CAAC,OAAyB;QAC3C,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACjG,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,yBAAyB,CAAC,SAAS,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,sBAA2B,EAAE;QAC1C,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,mBAAmB,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IACvD,CAAC;;AAED;;GAEG;AACW,mCAAS,GAAG,oBAAoB,CAAC;AAEnD,aAAa,CAAC,yBAAyB,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport { RichTypeAny } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { IPathToObjectConverter } from \"../../../ObjectModel/objectModelInterfaces\";\r\nimport { FlowGraphPathConverterComponent } from \"../../flowGraphPathConverterComponent\";\r\nimport type { IObjectAccessor } from \"../../typeDefinitions\";\r\n\r\n/**\r\n * @experimental\r\n */\r\nexport interface IFlowGraphGetPropertyBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The complete path to the property that will be set\r\n */\r\n path: string;\r\n /**\r\n * The path converter to use to convert the path to an object accessor.\r\n */\r\n pathConverter: IPathToObjectConverter<IObjectAccessor>;\r\n}\r\n\r\n/**\r\n * @experimental\r\n */\r\nexport class FlowGraphGetPropertyBlock extends FlowGraphBlock {\r\n /**\r\n * Output connection: The value of the property.\r\n */\r\n public readonly value: FlowGraphDataConnection<any>;\r\n /**\r\n * The component with the templated inputs for the provided path.\r\n */\r\n public readonly templateComponent: FlowGraphPathConverterComponent;\r\n\r\n public constructor(\r\n /**\r\n * the configuration of the block\r\n */\r\n public config: IFlowGraphGetPropertyBlockConfiguration\r\n ) {\r\n super(config);\r\n this.value = this.registerDataOutput(\"value\", RichTypeAny);\r\n this.templateComponent = new FlowGraphPathConverterComponent(config.path, this);\r\n }\r\n\r\n public _updateOutputs(context: FlowGraphContext) {\r\n const accessorContainer = this.templateComponent.getAccessor(this.config.pathConverter, context);\r\n const value = accessorContainer.info.get(accessorContainer.object);\r\n this.value.setValue(value, context);\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return FlowGraphGetPropertyBlock.ClassName;\r\n }\r\n\r\n /**\r\n * Serializes this block\r\n * @param serializationObject the object to serialize to\r\n */\r\n public serialize(serializationObject: any = {}) {\r\n super.serialize(serializationObject);\r\n serializationObject.config.path = this.config.path;\r\n }\r\n\r\n /**\r\n * Class name of the block.\r\n */\r\n public static ClassName = \"FGGetPropertyBlock\";\r\n}\r\nRegisterClass(FlowGraphGetPropertyBlock.ClassName, FlowGraphGetPropertyBlock);\r\n"]}
@@ -24,14 +24,25 @@ export declare class FlowGraphGetVariableBlock<T> extends FlowGraphBlock {
24
24
  readonly output: FlowGraphDataConnection<T>;
25
25
  /**
26
26
  * Construct a FlowGraphGetVariableBlock.
27
- * @param params optional construction parameters
27
+ * @param config construction parameters
28
28
  */
29
29
  constructor(config: IFlowGraphGetVariableBlockConfiguration);
30
30
  /**
31
31
  * @internal
32
32
  */
33
33
  _updateOutputs(context: FlowGraphContext): void;
34
+ /**
35
+ * Gets the class name of this block
36
+ * @returns the class name
37
+ */
34
38
  getClassName(): string;
39
+ /**
40
+ * Serializes this block
41
+ * @param serializationObject the object to serialize to
42
+ */
35
43
  serialize(serializationObject?: any): void;
44
+ /**
45
+ * Class name of the block.
46
+ */
36
47
  static ClassName: string;
37
48
  }
@@ -8,7 +8,7 @@ import { RegisterClass } from "../../../Misc/typeStore.js";
8
8
  export class FlowGraphGetVariableBlock extends FlowGraphBlock {
9
9
  /**
10
10
  * Construct a FlowGraphGetVariableBlock.
11
- * @param params optional construction parameters
11
+ * @param config construction parameters
12
12
  */
13
13
  constructor(config) {
14
14
  super(config);
@@ -25,14 +25,25 @@ export class FlowGraphGetVariableBlock extends FlowGraphBlock {
25
25
  this.output.setValue(context.getVariable(variableNameValue), context);
26
26
  }
27
27
  }
28
+ /**
29
+ * Gets the class name of this block
30
+ * @returns the class name
31
+ */
28
32
  getClassName() {
29
33
  return FlowGraphGetVariableBlock.ClassName;
30
34
  }
35
+ /**
36
+ * Serializes this block
37
+ * @param serializationObject the object to serialize to
38
+ */
31
39
  serialize(serializationObject) {
32
40
  super.serialize(serializationObject);
33
41
  serializationObject.config.variableName = this.config.variableName;
34
42
  }
35
43
  }
44
+ /**
45
+ * Class name of the block.
46
+ */
36
47
  FlowGraphGetVariableBlock.ClassName = "FGGetVariableBlock";
37
48
  RegisterClass(FlowGraphGetVariableBlock.ClassName, FlowGraphGetVariableBlock);
38
49
  //# sourceMappingURL=flowGraphGetVariableBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphGetVariableBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAaxD;;;GAGG;AACH,MAAM,OAAO,yBAA6B,SAAQ,cAAc;IAM5D;;;OAGG;IACH,YAAmB,MAA+C;QAC9D,KAAK,CAAC,MAAM,CAAC,CAAC;QADC,WAAM,GAAN,MAAM,CAAyC;QAG9D,8DAA8D;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,OAAyB;QAC3C,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;QACnD,IAAI,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE;YACxC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;SACzE;IACL,CAAC;IAEM,YAAY;QACf,OAAO,yBAAyB,CAAC,SAAS,CAAC;IAC/C,CAAC;IAEM,SAAS,CAAC,mBAAyB;QACtC,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,mBAAmB,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;IACvE,CAAC;;AAEa,mCAAS,GAAG,oBAAoB,CAAC;AAEnD,aAAa,CAAC,yBAAyB,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport { RichTypeAny } from \"../../flowGraphRichTypes\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\n\r\n/**\r\n * @experimental\r\n * The configuration of the FlowGraphGetVariableBlock.\r\n */\r\nexport interface IFlowGraphGetVariableBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The name of the variable to get.\r\n */\r\n variableName: string;\r\n}\r\n\r\n/**\r\n * A block that gets the value of a variable.\r\n * @experimental\r\n */\r\nexport class FlowGraphGetVariableBlock<T> extends FlowGraphBlock {\r\n /**\r\n * Output connection: The value of the variable.\r\n */\r\n public readonly output: FlowGraphDataConnection<T>;\r\n\r\n /**\r\n * Construct a FlowGraphGetVariableBlock.\r\n * @param params optional construction parameters\r\n */\r\n constructor(public config: IFlowGraphGetVariableBlockConfiguration) {\r\n super(config);\r\n\r\n // The output connection has to have the name of the variable.\r\n this.output = this.registerDataOutput(config.variableName, RichTypeAny);\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _updateOutputs(context: FlowGraphContext): void {\r\n const variableNameValue = this.config.variableName;\r\n if (context.hasVariable(variableNameValue)) {\r\n this.output.setValue(context.getVariable(variableNameValue), context);\r\n }\r\n }\r\n\r\n public getClassName(): string {\r\n return FlowGraphGetVariableBlock.ClassName;\r\n }\r\n\r\n public serialize(serializationObject?: any): void {\r\n super.serialize(serializationObject);\r\n serializationObject.config.variableName = this.config.variableName;\r\n }\r\n\r\n public static ClassName = \"FGGetVariableBlock\";\r\n}\r\nRegisterClass(FlowGraphGetVariableBlock.ClassName, FlowGraphGetVariableBlock);\r\n"]}
1
+ {"version":3,"file":"flowGraphGetVariableBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAaxD;;;GAGG;AACH,MAAM,OAAO,yBAA6B,SAAQ,cAAc;IAM5D;;;OAGG;IACH,YAAmB,MAA+C;QAC9D,KAAK,CAAC,MAAM,CAAC,CAAC;QADC,WAAM,GAAN,MAAM,CAAyC;QAG9D,8DAA8D;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,OAAyB;QAC3C,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;QACnD,IAAI,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE;YACxC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;SACzE;IACL,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,yBAAyB,CAAC,SAAS,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,mBAAyB;QACtC,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrC,mBAAmB,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;IACvE,CAAC;;AAED;;GAEG;AACW,mCAAS,GAAG,oBAAoB,CAAC;AAEnD,aAAa,CAAC,yBAAyB,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphBlock } from \"../../flowGraphBlock\";\r\nimport type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport { RichTypeAny } from \"../../flowGraphRichTypes\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\n\r\n/**\r\n * @experimental\r\n * The configuration of the FlowGraphGetVariableBlock.\r\n */\r\nexport interface IFlowGraphGetVariableBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The name of the variable to get.\r\n */\r\n variableName: string;\r\n}\r\n\r\n/**\r\n * A block that gets the value of a variable.\r\n * @experimental\r\n */\r\nexport class FlowGraphGetVariableBlock<T> extends FlowGraphBlock {\r\n /**\r\n * Output connection: The value of the variable.\r\n */\r\n public readonly output: FlowGraphDataConnection<T>;\r\n\r\n /**\r\n * Construct a FlowGraphGetVariableBlock.\r\n * @param config construction parameters\r\n */\r\n constructor(public config: IFlowGraphGetVariableBlockConfiguration) {\r\n super(config);\r\n\r\n // The output connection has to have the name of the variable.\r\n this.output = this.registerDataOutput(config.variableName, RichTypeAny);\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _updateOutputs(context: FlowGraphContext): void {\r\n const variableNameValue = this.config.variableName;\r\n if (context.hasVariable(variableNameValue)) {\r\n this.output.setValue(context.getVariable(variableNameValue), context);\r\n }\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return FlowGraphGetVariableBlock.ClassName;\r\n }\r\n\r\n /**\r\n * Serializes this block\r\n * @param serializationObject the object to serialize to\r\n */\r\n public serialize(serializationObject?: any): void {\r\n super.serialize(serializationObject);\r\n serializationObject.config.variableName = this.config.variableName;\r\n }\r\n\r\n /**\r\n * Class name of the block.\r\n */\r\n public static ClassName = \"FGGetVariableBlock\";\r\n}\r\nRegisterClass(FlowGraphGetVariableBlock.ClassName, FlowGraphGetVariableBlock);\r\n"]}
@@ -10,10 +10,28 @@ import { FlowGraphCachedOperationBlock } from "./flowGraphCachedOperationBlock";
10
10
  export declare class FlowGraphTernaryOperationBlock<T1, T2, T3, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {
11
11
  private _operation;
12
12
  private _className;
13
+ /**
14
+ * First input of this block
15
+ */
13
16
  a: FlowGraphDataConnection<T1>;
17
+ /**
18
+ * Second input of this block
19
+ */
14
20
  b: FlowGraphDataConnection<T2>;
21
+ /**
22
+ * Third input of this block
23
+ */
15
24
  c: FlowGraphDataConnection<T3>;
16
25
  constructor(t1Type: RichType<T1>, t2Type: RichType<T2>, t3Type: RichType<T3>, resultRichType: RichType<ResultT>, _operation: (a: T1, b: T2, c: T3) => ResultT, _className: string, config?: IFlowGraphBlockConfiguration);
26
+ /**
27
+ * the operation performed by this block
28
+ * @param context the graph context
29
+ * @returns the result of the operation
30
+ */
17
31
  _doOperation(context: FlowGraphContext): ResultT;
32
+ /**
33
+ * Gets the class name of this block
34
+ * @returns the class name
35
+ */
18
36
  getClassName(): string;
19
37
  }
@@ -12,9 +12,18 @@ export class FlowGraphTernaryOperationBlock extends FlowGraphCachedOperationBloc
12
12
  this.b = this.registerDataInput("b", t2Type);
13
13
  this.c = this.registerDataInput("c", t3Type);
14
14
  }
15
+ /**
16
+ * the operation performed by this block
17
+ * @param context the graph context
18
+ * @returns the result of the operation
19
+ */
15
20
  _doOperation(context) {
16
21
  return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));
17
22
  }
23
+ /**
24
+ * Gets the class name of this block
25
+ * @returns the class name
26
+ */
18
27
  getClassName() {
19
28
  return this._className;
20
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphTernaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF;;;GAGG;AACH,MAAM,OAAO,8BAAoD,SAAQ,6BAAsC;IAK3G,YACI,MAAoB,EACpB,MAAoB,EACpB,MAAoB,EACpB,cAAiC,EACzB,UAA4C,EAC5C,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAJtB,eAAU,GAAV,UAAU,CAAkC;QAC5C,eAAU,GAAV,UAAU,CAAQ;QAI1B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAEe,YAAY,CAAC,OAAyB;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACzG,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n/**\r\n * @experimental\r\n * The base block for all ternary operation blocks.\r\n */\r\nexport class FlowGraphTernaryOperationBlock<T1, T2, T3, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n a: FlowGraphDataConnection<T1>;\r\n b: FlowGraphDataConnection<T2>;\r\n c: FlowGraphDataConnection<T3>;\r\n\r\n constructor(\r\n t1Type: RichType<T1>,\r\n t2Type: RichType<T2>,\r\n t3Type: RichType<T3>,\r\n resultRichType: RichType<ResultT>,\r\n private _operation: (a: T1, b: T2, c: T3) => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(resultRichType, config);\r\n this.a = this.registerDataInput(\"a\", t1Type);\r\n this.b = this.registerDataInput(\"b\", t2Type);\r\n this.c = this.registerDataInput(\"c\", t3Type);\r\n }\r\n\r\n public override _doOperation(context: FlowGraphContext): ResultT {\r\n return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));\r\n }\r\n\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"flowGraphTernaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF;;;GAGG;AACH,MAAM,OAAO,8BAAoD,SAAQ,6BAAsC;IAc3G,YACI,MAAoB,EACpB,MAAoB,EACpB,MAAoB,EACpB,cAAiC,EACzB,UAA4C,EAC5C,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAJtB,eAAU,GAAV,UAAU,CAAkC;QAC5C,eAAU,GAAV,UAAU,CAAQ;QAI1B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACa,YAAY,CAAC,OAAyB;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n/**\r\n * @experimental\r\n * The base block for all ternary operation blocks.\r\n */\r\nexport class FlowGraphTernaryOperationBlock<T1, T2, T3, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n /**\r\n * First input of this block\r\n */\r\n a: FlowGraphDataConnection<T1>;\r\n /**\r\n * Second input of this block\r\n */\r\n b: FlowGraphDataConnection<T2>;\r\n /**\r\n * Third input of this block\r\n */\r\n c: FlowGraphDataConnection<T3>;\r\n\r\n constructor(\r\n t1Type: RichType<T1>,\r\n t2Type: RichType<T2>,\r\n t3Type: RichType<T3>,\r\n resultRichType: RichType<ResultT>,\r\n private _operation: (a: T1, b: T2, c: T3) => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(resultRichType, config);\r\n this.a = this.registerDataInput(\"a\", t1Type);\r\n this.b = this.registerDataInput(\"b\", t2Type);\r\n this.c = this.registerDataInput(\"c\", t3Type);\r\n }\r\n\r\n /**\r\n * the operation performed by this block\r\n * @param context the graph context\r\n * @returns the result of the operation\r\n */\r\n public override _doOperation(context: FlowGraphContext): ResultT {\r\n return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
@@ -10,8 +10,20 @@ import { FlowGraphCachedOperationBlock } from "./flowGraphCachedOperationBlock";
10
10
  export declare class FlowGraphUnaryOperationBlock<InputT, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {
11
11
  private _operation;
12
12
  private _className;
13
+ /**
14
+ * the input of this block
15
+ */
13
16
  a: FlowGraphDataConnection<InputT>;
14
17
  constructor(inputRichType: RichType<InputT>, resultRichType: RichType<ResultT>, _operation: (input: InputT) => ResultT, _className: string, config?: IFlowGraphBlockConfiguration);
18
+ /**
19
+ * the operation performed by this block
20
+ * @param context the graph context
21
+ * @returns the result of the operation
22
+ */
15
23
  _doOperation(context: FlowGraphContext): ResultT;
24
+ /**
25
+ * Gets the class name of this block
26
+ * @returns the class name
27
+ */
16
28
  getClassName(): string;
17
29
  }
@@ -10,9 +10,18 @@ export class FlowGraphUnaryOperationBlock extends FlowGraphCachedOperationBlock
10
10
  this._className = _className;
11
11
  this.a = this.registerDataInput("a", inputRichType);
12
12
  }
13
+ /**
14
+ * the operation performed by this block
15
+ * @param context the graph context
16
+ * @returns the result of the operation
17
+ */
13
18
  _doOperation(context) {
14
19
  return this._operation(this.a.getValue(context));
15
20
  }
21
+ /**
22
+ * Gets the class name of this block
23
+ * @returns the class name
24
+ */
16
25
  getClassName() {
17
26
  return this._className;
18
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphUnaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;GAGG;AACH,MAAM,OAAO,4BAA8C,SAAQ,6BAAsC;IAGrG,YACI,aAA+B,EAC/B,cAAiC,EACzB,UAAsC,EACtC,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAJtB,eAAU,GAAV,UAAU,CAA4B;QACtC,eAAU,GAAV,UAAU,CAAQ;QAI1B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC;IACe,YAAY,CAAC,OAAyB;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n\r\n/**\r\n * @experimental\r\n * The base block for all unary operation blocks. Receives an input of type InputT, and outputs a value of type ResultT.\r\n */\r\nexport class FlowGraphUnaryOperationBlock<InputT, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n a: FlowGraphDataConnection<InputT>;\r\n\r\n constructor(\r\n inputRichType: RichType<InputT>,\r\n resultRichType: RichType<ResultT>,\r\n private _operation: (input: InputT) => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(resultRichType, config);\r\n this.a = this.registerDataInput(\"a\", inputRichType);\r\n }\r\n public override _doOperation(context: FlowGraphContext): ResultT {\r\n return this._operation(this.a.getValue(context));\r\n }\r\n\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"flowGraphUnaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;GAGG;AACH,MAAM,OAAO,4BAA8C,SAAQ,6BAAsC;IAMrG,YACI,aAA+B,EAC/B,cAAiC,EACzB,UAAsC,EACtC,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAJtB,eAAU,GAAV,UAAU,CAA4B;QACtC,eAAU,GAAV,UAAU,CAAQ;QAI1B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACa,YAAY,CAAC,OAAyB;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ","sourcesContent":["import type { FlowGraphDataConnection } from \"../../flowGraphDataConnection\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport type { RichType } from \"../../flowGraphRichTypes\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock\";\r\n\r\n/**\r\n * @experimental\r\n * The base block for all unary operation blocks. Receives an input of type InputT, and outputs a value of type ResultT.\r\n */\r\nexport class FlowGraphUnaryOperationBlock<InputT, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n /**\r\n * the input of this block\r\n */\r\n a: FlowGraphDataConnection<InputT>;\r\n\r\n constructor(\r\n inputRichType: RichType<InputT>,\r\n resultRichType: RichType<ResultT>,\r\n private _operation: (input: InputT) => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(resultRichType, config);\r\n this.a = this.registerDataInput(\"a\", inputRichType);\r\n }\r\n\r\n /**\r\n * the operation performed by this block\r\n * @param context the graph context\r\n * @returns the result of the operation\r\n */\r\n public override _doOperation(context: FlowGraphContext): ResultT {\r\n return this._operation(this.a.getValue(context));\r\n }\r\n\r\n /**\r\n * Gets the class name of this block\r\n * @returns the class name\r\n */\r\n public getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
@@ -22,8 +22,15 @@ export interface IFlowGraphMeshPickEventBlockConfiguration extends IFlowGraphBlo
22
22
  * A block that activates when a mesh is picked.
23
23
  */
24
24
  export declare class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {
25
+ /**
26
+ * the configuration of the block
27
+ */
25
28
  config: IFlowGraphMeshPickEventBlockConfiguration;
26
- constructor(config: IFlowGraphMeshPickEventBlockConfiguration);
29
+ constructor(
30
+ /**
31
+ * the configuration of the block
32
+ */
33
+ config: IFlowGraphMeshPickEventBlockConfiguration);
27
34
  _getReferencedMesh(): AbstractMesh;
28
35
  /**
29
36
  * @internal
@@ -34,7 +41,14 @@ export declare class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {
34
41
  * @internal
35
42
  */
36
43
  _cancelPendingTasks(context: FlowGraphContext): void;
44
+ /**
45
+ * @returns class name of the block.
46
+ */
37
47
  getClassName(): string;
48
+ /**
49
+ * Serializes the block to a JSON object.
50
+ * @param serializationObject the object to serialize to.
51
+ */
38
52
  serialize(serializationObject?: any): void;
39
53
  /**
40
54
  * Class name of the block.
@@ -8,7 +8,11 @@ import { _isADescendantOf } from "../../utils.js";
8
8
  * A block that activates when a mesh is picked.
9
9
  */
10
10
  export class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {
11
- constructor(config) {
11
+ constructor(
12
+ /**
13
+ * the configuration of the block
14
+ */
15
+ config) {
12
16
  super(config);
13
17
  this.config = config;
14
18
  }
@@ -58,9 +62,16 @@ export class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {
58
62
  context._deleteExecutionVariable(this, "meshPickObserver");
59
63
  context._deleteExecutionVariable(this, "meshDisposeObserver");
60
64
  }
65
+ /**
66
+ * @returns class name of the block.
67
+ */
61
68
  getClassName() {
62
69
  return FlowGraphMeshPickEventBlock.ClassName;
63
70
  }
71
+ /**
72
+ * Serializes the block to a JSON object.
73
+ * @param serializationObject the object to serialize to.
74
+ */
64
75
  serialize(serializationObject) {
65
76
  super.serialize(serializationObject);
66
77
  serializationObject.config.path = this.config.path;
@@ -1 +1 @@
1
- {"version":3,"file":"flowGraphMeshPickEventBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.ts"],"names":[],"mappings":"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","sourcesContent":["import { AbstractMesh } from \"../../../Meshes/abstractMesh\";\r\nimport { FlowGraphEventBlock } from \"../../flowGraphEventBlock\";\r\nimport { PointerEventTypes } from \"../../../Events/pointerEvents\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport { _isADescendantOf } from \"../../utils\";\r\nimport type { IPathToObjectConverter } from \"../../../ObjectModel/objectModelInterfaces\";\r\nimport type { IObjectAccessor } from \"../../typeDefinitions\";\r\n/**\r\n * @experimental\r\n */\r\nexport interface IFlowGraphMeshPickEventBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The path of the mesh to pick.\r\n */\r\n path: string;\r\n /**\r\n * The path converter to use to convert the path to an object accessor.\r\n */\r\n pathConverter: IPathToObjectConverter<IObjectAccessor>;\r\n}\r\n/**\r\n * @experimental\r\n * A block that activates when a mesh is picked.\r\n */\r\nexport class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {\r\n public constructor(public config: IFlowGraphMeshPickEventBlockConfiguration) {\r\n super(config);\r\n }\r\n\r\n public _getReferencedMesh(): AbstractMesh {\r\n const iAccessor = this.config.pathConverter.convert(this.config.path);\r\n\r\n const mesh = iAccessor.info.getObject(iAccessor.object) as AbstractMesh;\r\n if (!mesh || !(mesh instanceof AbstractMesh)) {\r\n throw new Error(\"Mesh pick event block requires a valid mesh\");\r\n }\r\n return mesh;\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _preparePendingTasks(context: FlowGraphContext): void {\r\n let pickObserver = context._getExecutionVariable(this, \"meshPickObserver\");\r\n if (!pickObserver) {\r\n const mesh = this._getReferencedMesh();\r\n context._setExecutionVariable(this, \"mesh\", mesh);\r\n pickObserver = mesh.getScene().onPointerObservable.add((pointerInfo) => {\r\n if (\r\n pointerInfo.type === PointerEventTypes.POINTERPICK &&\r\n pointerInfo.pickInfo?.pickedMesh &&\r\n (pointerInfo.pickInfo?.pickedMesh === mesh || _isADescendantOf(pointerInfo.pickInfo?.pickedMesh, mesh))\r\n ) {\r\n this._execute(context);\r\n }\r\n });\r\n const disposeObserver = mesh.onDisposeObservable.add(() => this._onDispose);\r\n context._setExecutionVariable(this, \"meshPickObserver\", pickObserver);\r\n context._setExecutionVariable(this, \"meshDisposeObserver\", disposeObserver);\r\n }\r\n }\r\n\r\n public _onDispose(context: FlowGraphContext) {\r\n this._cancelPendingTasks(context);\r\n context._removePendingBlock(this);\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _cancelPendingTasks(context: FlowGraphContext): void {\r\n const mesh = context._getExecutionVariable(this, \"mesh\");\r\n const pickObserver = context._getExecutionVariable(this, \"meshPickObserver\");\r\n const disposeObserver = context._getExecutionVariable(this, \"meshDisposeObserver\");\r\n\r\n mesh.getScene().onPointerObservable.remove(pickObserver);\r\n mesh.onDisposeObservable.remove(disposeObserver);\r\n\r\n context._deleteExecutionVariable(this, \"mesh\");\r\n context._deleteExecutionVariable(this, \"meshPickObserver\");\r\n context._deleteExecutionVariable(this, \"meshDisposeObserver\");\r\n }\r\n\r\n public getClassName(): string {\r\n return FlowGraphMeshPickEventBlock.ClassName;\r\n }\r\n\r\n public serialize(serializationObject?: any): void {\r\n super.serialize(serializationObject);\r\n serializationObject.config.path = this.config.path;\r\n }\r\n\r\n /**\r\n * Class name of the block.\r\n */\r\n public static ClassName = \"FGMeshPickEventBlock\";\r\n}\r\nRegisterClass(FlowGraphMeshPickEventBlock.ClassName, FlowGraphMeshPickEventBlock);\r\n"]}
1
+ {"version":3,"file":"flowGraphMeshPickEventBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.ts"],"names":[],"mappings":"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","sourcesContent":["import { AbstractMesh } from \"../../../Meshes/abstractMesh\";\r\nimport { FlowGraphEventBlock } from \"../../flowGraphEventBlock\";\r\nimport { PointerEventTypes } from \"../../../Events/pointerEvents\";\r\nimport type { FlowGraphContext } from \"../../flowGraphContext\";\r\nimport type { IFlowGraphBlockConfiguration } from \"../../flowGraphBlock\";\r\nimport { RegisterClass } from \"../../../Misc/typeStore\";\r\nimport { _isADescendantOf } from \"../../utils\";\r\nimport type { IPathToObjectConverter } from \"../../../ObjectModel/objectModelInterfaces\";\r\nimport type { IObjectAccessor } from \"../../typeDefinitions\";\r\n/**\r\n * @experimental\r\n */\r\nexport interface IFlowGraphMeshPickEventBlockConfiguration extends IFlowGraphBlockConfiguration {\r\n /**\r\n * The path of the mesh to pick.\r\n */\r\n path: string;\r\n /**\r\n * The path converter to use to convert the path to an object accessor.\r\n */\r\n pathConverter: IPathToObjectConverter<IObjectAccessor>;\r\n}\r\n/**\r\n * @experimental\r\n * A block that activates when a mesh is picked.\r\n */\r\nexport class FlowGraphMeshPickEventBlock extends FlowGraphEventBlock {\r\n public constructor(\r\n /**\r\n * the configuration of the block\r\n */\r\n public config: IFlowGraphMeshPickEventBlockConfiguration\r\n ) {\r\n super(config);\r\n }\r\n\r\n public _getReferencedMesh(): AbstractMesh {\r\n const iAccessor = this.config.pathConverter.convert(this.config.path);\r\n\r\n const mesh = iAccessor.info.getObject(iAccessor.object) as AbstractMesh;\r\n if (!mesh || !(mesh instanceof AbstractMesh)) {\r\n throw new Error(\"Mesh pick event block requires a valid mesh\");\r\n }\r\n return mesh;\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _preparePendingTasks(context: FlowGraphContext): void {\r\n let pickObserver = context._getExecutionVariable(this, \"meshPickObserver\");\r\n if (!pickObserver) {\r\n const mesh = this._getReferencedMesh();\r\n context._setExecutionVariable(this, \"mesh\", mesh);\r\n pickObserver = mesh.getScene().onPointerObservable.add((pointerInfo) => {\r\n if (\r\n pointerInfo.type === PointerEventTypes.POINTERPICK &&\r\n pointerInfo.pickInfo?.pickedMesh &&\r\n (pointerInfo.pickInfo?.pickedMesh === mesh || _isADescendantOf(pointerInfo.pickInfo?.pickedMesh, mesh))\r\n ) {\r\n this._execute(context);\r\n }\r\n });\r\n const disposeObserver = mesh.onDisposeObservable.add(() => this._onDispose);\r\n context._setExecutionVariable(this, \"meshPickObserver\", pickObserver);\r\n context._setExecutionVariable(this, \"meshDisposeObserver\", disposeObserver);\r\n }\r\n }\r\n\r\n public _onDispose(context: FlowGraphContext) {\r\n this._cancelPendingTasks(context);\r\n context._removePendingBlock(this);\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n public _cancelPendingTasks(context: FlowGraphContext): void {\r\n const mesh = context._getExecutionVariable(this, \"mesh\");\r\n const pickObserver = context._getExecutionVariable(this, \"meshPickObserver\");\r\n const disposeObserver = context._getExecutionVariable(this, \"meshDisposeObserver\");\r\n\r\n mesh.getScene().onPointerObservable.remove(pickObserver);\r\n mesh.onDisposeObservable.remove(disposeObserver);\r\n\r\n context._deleteExecutionVariable(this, \"mesh\");\r\n context._deleteExecutionVariable(this, \"meshPickObserver\");\r\n context._deleteExecutionVariable(this, \"meshDisposeObserver\");\r\n }\r\n\r\n /**\r\n * @returns class name of the block.\r\n */\r\n public getClassName(): string {\r\n return FlowGraphMeshPickEventBlock.ClassName;\r\n }\r\n\r\n /**\r\n * Serializes the block to a JSON object.\r\n * @param serializationObject the object to serialize to.\r\n */\r\n public serialize(serializationObject?: any): void {\r\n super.serialize(serializationObject);\r\n serializationObject.config.path = this.config.path;\r\n }\r\n\r\n /**\r\n * Class name of the block.\r\n */\r\n public static ClassName = \"FGMeshPickEventBlock\";\r\n}\r\nRegisterClass(FlowGraphMeshPickEventBlock.ClassName, FlowGraphMeshPickEventBlock);\r\n"]}
@@ -21,13 +21,29 @@ export interface IFlowGraphReceiveCustomEventBlockConfiguration extends IFlowGra
21
21
  * A block that receives a custom event. It saves the data sent in the eventData output.
22
22
  */
23
23
  export declare class FlowGraphReceiveCustomEventBlock extends FlowGraphEventBlock {
24
+ /**
25
+ * the configuration of the block
26
+ */
24
27
  config: IFlowGraphReceiveCustomEventBlockConfiguration;
25
28
  private _eventObserver;
26
- constructor(config: IFlowGraphReceiveCustomEventBlockConfiguration);
27
- configure(): void;
29
+ constructor(
30
+ /**
31
+ * the configuration of the block
32
+ */
33
+ config: IFlowGraphReceiveCustomEventBlockConfiguration);
28
34
  _preparePendingTasks(context: FlowGraphContext): void;
29
35
  _cancelPendingTasks(context: FlowGraphContext): void;
36
+ /**
37
+ * @returns class name of the block.
38
+ */
30
39
  getClassName(): string;
40
+ /**
41
+ * the class name of the block.
42
+ */
31
43
  static ClassName: string;
44
+ /**
45
+ * Serializes this block
46
+ * @param serializationObject the object to serialize to
47
+ */
32
48
  serialize(serializationObject?: any): void;
33
49
  }
@@ -7,12 +7,13 @@ import { RegisterClass } from "../../../Misc/typeStore.js";
7
7
  * A block that receives a custom event. It saves the data sent in the eventData output.
8
8
  */
9
9
  export class FlowGraphReceiveCustomEventBlock extends FlowGraphEventBlock {
10
- constructor(config) {
10
+ constructor(
11
+ /**
12
+ * the configuration of the block
13
+ */
14
+ config) {
11
15
  super(config);
12
16
  this.config = config;
13
- }
14
- configure() {
15
- super.configure();
16
17
  for (let i = 0; i < this.config.eventData.length; i++) {
17
18
  const dataName = this.config.eventData[i];
18
19
  this.registerDataOutput(dataName, RichTypeAny);
@@ -36,15 +37,25 @@ export class FlowGraphReceiveCustomEventBlock extends FlowGraphEventBlock {
36
37
  Tools.Warn(`FlowGraphReceiveCustomEventBlock: Missing observable for event ${this.config.eventId}`);
37
38
  }
38
39
  }
40
+ /**
41
+ * @returns class name of the block.
42
+ */
39
43
  getClassName() {
40
44
  return FlowGraphReceiveCustomEventBlock.ClassName;
41
45
  }
46
+ /**
47
+ * Serializes this block
48
+ * @param serializationObject the object to serialize to
49
+ */
42
50
  serialize(serializationObject) {
43
51
  super.serialize(serializationObject);
44
52
  serializationObject.eventId = this.config.eventId;
45
53
  serializationObject.eventData = this.config.eventData;
46
54
  }
47
55
  }
56
+ /**
57
+ * the class name of the block.
58
+ */
48
59
  FlowGraphReceiveCustomEventBlock.ClassName = "FGReceiveCustomEventBlock";
49
60
  RegisterClass(FlowGraphReceiveCustomEventBlock.ClassName, FlowGraphReceiveCustomEventBlock);
50
61
  //# sourceMappingURL=flowGraphReceiveCustomEventBlock.js.map