@babylonjs/core 7.51.1 → 7.51.2

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 (313) hide show
  1. package/Animations/animation.js +2 -1
  2. package/Animations/animation.js.map +1 -1
  3. package/Buffers/bufferUtils.d.ts +7 -5
  4. package/Buffers/bufferUtils.js +13 -9
  5. package/Buffers/bufferUtils.js.map +1 -1
  6. package/Engines/abstractEngine.js +2 -2
  7. package/Engines/abstractEngine.js.map +1 -1
  8. package/Engines/constants.d.ts +32 -0
  9. package/Engines/constants.js +33 -0
  10. package/Engines/constants.js.map +1 -1
  11. package/Engines/webgpuEngine.js +6 -3
  12. package/Engines/webgpuEngine.js.map +1 -1
  13. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.d.ts +148 -465
  14. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +394 -691
  15. package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
  16. package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.d.ts +142 -0
  17. package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.js +342 -0
  18. package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.js.map +1 -0
  19. package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.d.ts +107 -0
  20. package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js +130 -0
  21. package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js.map +1 -0
  22. package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.d.ts +77 -0
  23. package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.js +139 -0
  24. package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.js.map +1 -0
  25. package/FlowGraph/Blocks/Data/Math/index.d.ts +3 -0
  26. package/FlowGraph/Blocks/Data/Math/index.js +3 -0
  27. package/FlowGraph/Blocks/Data/Math/index.js.map +1 -1
  28. package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.d.ts +85 -0
  29. package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.js +133 -0
  30. package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.js.map +1 -0
  31. package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.d.ts +49 -0
  32. package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.js +71 -0
  33. package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.js.map +1 -0
  34. package/FlowGraph/Blocks/Data/Transformers/index.d.ts +2 -0
  35. package/FlowGraph/Blocks/Data/Transformers/index.js +3 -0
  36. package/FlowGraph/Blocks/Data/Transformers/index.js.map +1 -0
  37. package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.d.ts +39 -0
  38. package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.js +46 -0
  39. package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.js.map +1 -0
  40. package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.d.ts +35 -0
  41. package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.js +34 -0
  42. package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.js.map +1 -0
  43. package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.d.ts +20 -0
  44. package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.js +25 -0
  45. package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.js.map +1 -0
  46. package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.d.ts +34 -0
  47. package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.js +35 -0
  48. package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.js.map +1 -0
  49. package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.d.ts +39 -0
  50. package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.js +42 -0
  51. package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.js.map +1 -0
  52. package/FlowGraph/Blocks/Data/Utils/index.d.ts +5 -0
  53. package/FlowGraph/Blocks/Data/Utils/index.js +6 -0
  54. package/FlowGraph/Blocks/Data/Utils/index.js.map +1 -0
  55. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +0 -1
  56. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js +3 -2
  57. package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js.map +1 -1
  58. package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.d.ts +1 -1
  59. package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.js +4 -4
  60. package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.js.map +1 -1
  61. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +6 -3
  62. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js +12 -6
  63. package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js.map +1 -1
  64. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +0 -2
  65. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js +2 -3
  66. package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js.map +1 -1
  67. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +5 -4
  68. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js +5 -4
  69. package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js.map +1 -1
  70. package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.d.ts +62 -0
  71. package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.js +41 -0
  72. package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.js.map +1 -0
  73. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.d.ts +38 -33
  74. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js +42 -25
  75. package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js.map +1 -1
  76. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +11 -16
  77. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js +9 -17
  78. package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js.map +1 -1
  79. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.d.ts +1 -1
  80. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js +1 -1
  81. package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js.map +1 -1
  82. package/FlowGraph/Blocks/Data/{flowGraphCoordinateTransformBlock.d.ts → flowGraphTransformCoordinatesSystemBlock.d.ts} +1 -2
  83. package/FlowGraph/Blocks/Data/{flowGraphCoordinateTransformBlock.js → flowGraphTransformCoordinatesSystemBlock.js} +4 -5
  84. package/FlowGraph/Blocks/Data/flowGraphTransformCoordinatesSystemBlock.js.map +1 -0
  85. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +1 -1
  86. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js +1 -1
  87. package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js.map +1 -1
  88. package/FlowGraph/Blocks/Data/index.d.ts +7 -3
  89. package/FlowGraph/Blocks/Data/index.js +9 -4
  90. package/FlowGraph/Blocks/Data/index.js.map +1 -1
  91. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +45 -24
  92. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js +45 -51
  93. package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js.map +1 -1
  94. package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.d.ts +61 -0
  95. package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.js +39 -0
  96. package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.js.map +1 -0
  97. package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.d.ts +61 -0
  98. package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.js +40 -0
  99. package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.js.map +1 -0
  100. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +12 -14
  101. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +19 -26
  102. package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
  103. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +6 -12
  104. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js +13 -24
  105. package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js.map +1 -1
  106. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +31 -7
  107. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js +22 -20
  108. package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js.map +1 -1
  109. package/FlowGraph/Blocks/{Execution → Event}/flowGraphSendCustomEventBlock.d.ts +12 -7
  110. package/FlowGraph/Blocks/Event/flowGraphSendCustomEventBlock.js +39 -0
  111. package/FlowGraph/Blocks/Event/flowGraphSendCustomEventBlock.js.map +1 -0
  112. package/FlowGraph/Blocks/Event/index.d.ts +3 -0
  113. package/FlowGraph/Blocks/Event/index.js +3 -0
  114. package/FlowGraph/Blocks/Event/index.js.map +1 -1
  115. package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.d.ts +44 -0
  116. package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.js +46 -0
  117. package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.js.map +1 -0
  118. package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.d.ts +60 -0
  119. package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.js +93 -0
  120. package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.js.map +1 -0
  121. package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.d.ts +82 -0
  122. package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js +105 -0
  123. package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js.map +1 -0
  124. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +2 -2
  125. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js +2 -2
  126. package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js.map +1 -1
  127. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +40 -42
  128. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js +116 -50
  129. package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js.map +1 -1
  130. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +12 -4
  131. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js +86 -8
  132. package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js.map +1 -1
  133. package/FlowGraph/Blocks/Execution/Animation/index.d.ts +3 -0
  134. package/FlowGraph/Blocks/Execution/Animation/index.js +3 -0
  135. package/FlowGraph/Blocks/Execution/Animation/index.js.map +1 -1
  136. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +1 -2
  137. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js +3 -4
  138. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js.map +1 -1
  139. package/FlowGraph/Blocks/Execution/{Audio/flowGraphStopAudioBlock.d.ts → ControlFlow/flowGraphCancelDelayBlock.d.ts} +6 -8
  140. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCancelDelayBlock.js +31 -0
  141. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCancelDelayBlock.js.map +1 -0
  142. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +2 -2
  143. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js +5 -5
  144. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js.map +1 -1
  145. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +0 -1
  146. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js +2 -3
  147. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js.map +1 -1
  148. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +5 -10
  149. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js +11 -15
  150. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js.map +1 -1
  151. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +11 -3
  152. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js +5 -6
  153. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js.map +1 -1
  154. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +27 -7
  155. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js +28 -30
  156. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js.map +1 -1
  157. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +13 -16
  158. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js +50 -52
  159. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js.map +1 -1
  160. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.d.ts +8 -9
  161. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js +26 -13
  162. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js.map +1 -1
  163. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.d.ts +32 -0
  164. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.js +84 -0
  165. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.js.map +1 -0
  166. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +20 -6
  167. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js +55 -16
  168. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js.map +1 -1
  169. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +3 -4
  170. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js +36 -13
  171. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js.map +1 -1
  172. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +13 -5
  173. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js +22 -17
  174. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js.map +1 -1
  175. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +12 -16
  176. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js +21 -21
  177. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js.map +1 -1
  178. package/FlowGraph/Blocks/Execution/ControlFlow/index.d.ts +2 -1
  179. package/FlowGraph/Blocks/Execution/ControlFlow/index.js +2 -1
  180. package/FlowGraph/Blocks/Execution/ControlFlow/index.js.map +1 -1
  181. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.d.ts +4 -5
  182. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js +13 -8
  183. package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js.map +1 -1
  184. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +33 -36
  185. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +42 -26
  186. package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
  187. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +10 -25
  188. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js +38 -24
  189. package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js.map +1 -1
  190. package/FlowGraph/Blocks/Execution/index.d.ts +0 -3
  191. package/FlowGraph/Blocks/Execution/index.js +0 -3
  192. package/FlowGraph/Blocks/Execution/index.js.map +1 -1
  193. package/FlowGraph/Blocks/flowGraphBlockFactory.d.ts +16 -0
  194. package/FlowGraph/Blocks/flowGraphBlockFactory.js +292 -0
  195. package/FlowGraph/Blocks/flowGraphBlockFactory.js.map +1 -0
  196. package/FlowGraph/Blocks/flowGraphBlockNames.d.ts +145 -0
  197. package/FlowGraph/Blocks/flowGraphBlockNames.js +147 -0
  198. package/FlowGraph/Blocks/flowGraphBlockNames.js.map +1 -0
  199. package/FlowGraph/Blocks/index.d.ts +2 -0
  200. package/FlowGraph/Blocks/index.js +2 -0
  201. package/FlowGraph/Blocks/index.js.map +1 -1
  202. package/FlowGraph/{flowGraphInteger.d.ts → CustomTypes/flowGraphInteger.d.ts} +2 -3
  203. package/FlowGraph/{flowGraphInteger.js → CustomTypes/flowGraphInteger.js} +4 -5
  204. package/FlowGraph/CustomTypes/flowGraphInteger.js.map +1 -0
  205. package/FlowGraph/CustomTypes/flowGraphMatrix.d.ts +196 -0
  206. package/FlowGraph/CustomTypes/flowGraphMatrix.js +272 -0
  207. package/FlowGraph/CustomTypes/flowGraphMatrix.js.map +1 -0
  208. package/FlowGraph/CustomTypes/index.d.ts +2 -0
  209. package/FlowGraph/CustomTypes/index.js +3 -0
  210. package/FlowGraph/CustomTypes/index.js.map +1 -0
  211. package/FlowGraph/flowGraph.d.ts +29 -34
  212. package/FlowGraph/flowGraph.js +120 -104
  213. package/FlowGraph/flowGraph.js.map +1 -1
  214. package/FlowGraph/flowGraphAssetsContext.d.ts +29 -0
  215. package/FlowGraph/flowGraphAssetsContext.js +52 -0
  216. package/FlowGraph/flowGraphAssetsContext.js.map +1 -0
  217. package/FlowGraph/flowGraphAsyncExecutionBlock.d.ts +15 -8
  218. package/FlowGraph/flowGraphAsyncExecutionBlock.js +25 -5
  219. package/FlowGraph/flowGraphAsyncExecutionBlock.js.map +1 -1
  220. package/FlowGraph/flowGraphBlock.d.ts +22 -15
  221. package/FlowGraph/flowGraphBlock.js +31 -52
  222. package/FlowGraph/flowGraphBlock.js.map +1 -1
  223. package/FlowGraph/flowGraphConnection.d.ts +13 -12
  224. package/FlowGraph/flowGraphConnection.js +31 -16
  225. package/FlowGraph/flowGraphConnection.js.map +1 -1
  226. package/FlowGraph/flowGraphContext.d.ts +89 -13
  227. package/FlowGraph/flowGraphContext.js +210 -23
  228. package/FlowGraph/flowGraphContext.js.map +1 -1
  229. package/FlowGraph/flowGraphCoordinator.d.ts +4 -10
  230. package/FlowGraph/flowGraphCoordinator.js +4 -16
  231. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  232. package/FlowGraph/flowGraphDataConnection.d.ts +52 -14
  233. package/FlowGraph/flowGraphDataConnection.js +73 -26
  234. package/FlowGraph/flowGraphDataConnection.js.map +1 -1
  235. package/FlowGraph/flowGraphEventBlock.d.ts +17 -1
  236. package/FlowGraph/flowGraphEventBlock.js +13 -2
  237. package/FlowGraph/flowGraphEventBlock.js.map +1 -1
  238. package/FlowGraph/flowGraphEventType.d.ts +16 -0
  239. package/FlowGraph/flowGraphEventType.js +18 -0
  240. package/FlowGraph/flowGraphEventType.js.map +1 -0
  241. package/FlowGraph/flowGraphExecutionBlock.d.ts +11 -1
  242. package/FlowGraph/flowGraphExecutionBlock.js +21 -2
  243. package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
  244. package/FlowGraph/flowGraphExecutionBlockWithOutSignal.d.ts +2 -2
  245. package/FlowGraph/flowGraphExecutionBlockWithOutSignal.js +0 -1
  246. package/FlowGraph/flowGraphExecutionBlockWithOutSignal.js.map +1 -1
  247. package/FlowGraph/flowGraphLogger.d.ts +60 -0
  248. package/FlowGraph/flowGraphLogger.js +53 -0
  249. package/FlowGraph/flowGraphLogger.js.map +1 -0
  250. package/FlowGraph/flowGraphParser.d.ts +85 -0
  251. package/FlowGraph/flowGraphParser.js +271 -0
  252. package/FlowGraph/flowGraphParser.js.map +1 -0
  253. package/FlowGraph/flowGraphPathConverter.d.ts +1 -1
  254. package/FlowGraph/flowGraphPathConverter.js +3 -2
  255. package/FlowGraph/flowGraphPathConverter.js.map +1 -1
  256. package/FlowGraph/flowGraphPathConverterComponent.d.ts +8 -1
  257. package/FlowGraph/flowGraphPathConverterComponent.js +18 -2
  258. package/FlowGraph/flowGraphPathConverterComponent.js.map +1 -1
  259. package/FlowGraph/flowGraphRichTypes.d.ts +51 -9
  260. package/FlowGraph/flowGraphRichTypes.js +160 -50
  261. package/FlowGraph/flowGraphRichTypes.js.map +1 -1
  262. package/FlowGraph/flowGraphSceneEventCoordinator.d.ts +45 -0
  263. package/FlowGraph/flowGraphSceneEventCoordinator.js +77 -0
  264. package/FlowGraph/flowGraphSceneEventCoordinator.js.map +1 -0
  265. package/FlowGraph/flowGraphSignalConnection.d.ts +8 -5
  266. package/FlowGraph/flowGraphSignalConnection.js +26 -9
  267. package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
  268. package/FlowGraph/index.d.ts +6 -1
  269. package/FlowGraph/index.js +7 -1
  270. package/FlowGraph/index.js.map +1 -1
  271. package/FlowGraph/serialization.d.ts +5 -2
  272. package/FlowGraph/serialization.js +94 -22
  273. package/FlowGraph/serialization.js.map +1 -1
  274. package/FlowGraph/typeDefinitions.d.ts +74 -12
  275. package/FlowGraph/typeDefinitions.js.map +1 -1
  276. package/FlowGraph/utils.d.ts +47 -0
  277. package/FlowGraph/utils.js +55 -0
  278. package/FlowGraph/utils.js.map +1 -1
  279. package/Maths/math.path.js +3 -0
  280. package/Maths/math.path.js.map +1 -1
  281. package/Meshes/geometry.d.ts +2 -1
  282. package/Meshes/geometry.js +8 -2
  283. package/Meshes/geometry.js.map +1 -1
  284. package/Meshes/mesh.d.ts +2 -1
  285. package/Meshes/mesh.js +3 -2
  286. package/Meshes/mesh.js.map +1 -1
  287. package/ObjectModel/objectModelInterfaces.d.ts +2 -2
  288. package/ObjectModel/objectModelInterfaces.js.map +1 -1
  289. package/package.json +1 -1
  290. package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.d.ts +0 -24
  291. package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js +0 -39
  292. package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js.map +0 -1
  293. package/FlowGraph/Blocks/Data/Logic/index.d.ts +0 -1
  294. package/FlowGraph/Blocks/Data/Logic/index.js +0 -2
  295. package/FlowGraph/Blocks/Data/Logic/index.js.map +0 -1
  296. package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js.map +0 -1
  297. package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.d.ts +0 -19
  298. package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js +0 -26
  299. package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js.map +0 -1
  300. package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js +0 -25
  301. package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js.map +0 -1
  302. package/FlowGraph/Blocks/Execution/Audio/index.d.ts +0 -2
  303. package/FlowGraph/Blocks/Execution/Audio/index.js +0 -3
  304. package/FlowGraph/Blocks/Execution/Audio/index.js.map +0 -1
  305. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.d.ts +0 -31
  306. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js +0 -69
  307. package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js.map +0 -1
  308. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +0 -38
  309. package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +0 -1
  310. package/FlowGraph/flowGraphContextLogger.d.ts +0 -9
  311. package/FlowGraph/flowGraphContextLogger.js +0 -14
  312. package/FlowGraph/flowGraphContextLogger.js.map +0 -1
  313. package/FlowGraph/flowGraphInteger.js.map +0 -1
@@ -1,834 +1,517 @@
1
1
  import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock";
2
+ import { FlowGraphTypes } from "../../../flowGraphRichTypes";
2
3
  import { FlowGraphBinaryOperationBlock } from "../flowGraphBinaryOperationBlock";
3
4
  import { FlowGraphConstantOperationBlock } from "../flowGraphConstantOperationBlock";
4
- import { Matrix, Vector2, Vector3 } from "../../../../Maths/math.vector";
5
5
  import { FlowGraphUnaryOperationBlock } from "../flowGraphUnaryOperationBlock";
6
6
  import { FlowGraphTernaryOperationBlock } from "../flowGraphTernaryOperationBlock";
7
- import { FlowGraphInteger } from "../../../flowGraphInteger";
7
+ import { FlowGraphInteger } from "../../../CustomTypes/flowGraphInteger";
8
+ import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
9
+ import type { FlowGraphMathOperationType, FlowGraphNumber } from "../../../utils.js";
8
10
  /**
9
- * @experimental
10
- * Polymorphic add block.
11
+ * A configuration interface for math blocks
11
12
  */
12
- export declare class FlowGraphAddBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
13
- constructor(config?: IFlowGraphBlockConfiguration);
14
- private _polymorphicAdd;
13
+ export interface IFlowGraphMathBlockConfiguration extends IFlowGraphBlockConfiguration {
15
14
  /**
16
- * the class name of the block.
15
+ * If true, the multiplication is done per component.
16
+ * This is the behavior in glTF interactivity.
17
17
  */
18
- static ClassName: string;
18
+ useMatrixPerComponent?: boolean;
19
+ /**
20
+ * The type of the variable.
21
+ */
22
+ type?: FlowGraphTypes;
19
23
  }
20
24
  /**
21
- * @experimental
22
25
  * Polymorphic add block.
23
26
  */
24
- export declare class FlowGraphSubtractBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
25
- constructor(config?: IFlowGraphBlockConfiguration);
27
+ export declare class FlowGraphAddBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
28
+ /**
29
+ * Construct a new add block.
30
+ * @param config optional configuration
31
+ */
32
+ constructor(config?: IFlowGraphMathBlockConfiguration);
26
33
  private _polymorphicAdd;
34
+ }
35
+ /**
36
+ * Polymorphic subtract block.
37
+ */
38
+ export declare class FlowGraphSubtractBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
27
39
  /**
28
- * the class name of the block.
40
+ * Construct a new subtract block.
41
+ * @param config optional configuration
29
42
  */
30
- static ClassName: string;
43
+ constructor(config?: IFlowGraphMathBlockConfiguration);
44
+ private _polymorphicSubtract;
31
45
  }
32
46
  /**
33
- * @experimental
34
47
  * Polymorphic multiply block.
35
- * In case of matrix, it is a component wise multiplication.
48
+ * In case of matrix, it is configurable whether the multiplication is done per component.
36
49
  */
37
- export declare class FlowGraphMultiplyBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
38
- constructor(config?: IFlowGraphBlockConfiguration);
50
+ export declare class FlowGraphMultiplyBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
51
+ constructor(config?: IFlowGraphMathBlockConfiguration);
39
52
  private _polymorphicMultiply;
40
- /**
41
- * the class name of the block.
42
- */
43
- static ClassName: string;
44
53
  }
45
54
  /**
46
- * @experimental
47
55
  * Polymorphic division block.
48
56
  */
49
- export declare class FlowGraphDivideBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
50
- constructor(config?: IFlowGraphBlockConfiguration);
51
- private _polymorphicDivide;
57
+ export declare class FlowGraphDivideBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
52
58
  /**
53
- * the class name of the block.
59
+ * Construct a new divide block.
60
+ * @param config - Optional configuration
54
61
  */
55
- static ClassName: string;
62
+ constructor(config?: IFlowGraphMathBlockConfiguration);
63
+ private _polymorphicDivide;
56
64
  }
57
65
  /**
58
- * @experimental
59
- * Random number between 0 and 1.
66
+ * Configuration interface for the random block.
60
67
  */
61
- export declare class FlowGraphRandomBlock extends FlowGraphConstantOperationBlock<number> {
62
- constructor(config?: IFlowGraphBlockConfiguration);
68
+ export interface IFlowGraphRandomBlockConfiguration extends IFlowGraphBlockConfiguration {
69
+ /**
70
+ * The minimum value. defaults to 0.
71
+ */
72
+ min?: number;
63
73
  /**
64
- * the class name of the block.
74
+ * The maximum value. defaults to 1.
65
75
  */
66
- static ClassName: string;
76
+ max?: number;
77
+ /**
78
+ * The seed for the random number generator for deterministic random values.
79
+ * If not set, Math.random() is used.
80
+ */
81
+ seed?: number;
67
82
  }
68
83
  /**
69
- * @experimental
70
- * Dot product block.
84
+ * Random number between min and max (defaults to 0 to 1)
85
+ *
86
+ * This node will cache the result for he same node reference. i.e., a Math.eq that references the SAME random node will always return true.
71
87
  */
72
- export declare class FlowGraphDotBlock extends FlowGraphBinaryOperationBlock<any, any, number> {
73
- constructor(config?: IFlowGraphBlockConfiguration);
74
- private _polymorphicDot;
88
+ export declare class FlowGraphRandomBlock extends FlowGraphConstantOperationBlock<FlowGraphMathOperationType> {
75
89
  /**
76
- * the class name of the block.
90
+ * The minimum value. defaults to 0.
77
91
  */
78
- static ClassName: string;
92
+ readonly min: FlowGraphDataConnection<number>;
93
+ /**
94
+ * The maximum value. defaults to 1.
95
+ */
96
+ readonly max: FlowGraphDataConnection<number>;
97
+ private _seed?;
98
+ /**
99
+ * Construct a new random block.
100
+ * @param config optional configuration
101
+ */
102
+ constructor(config?: IFlowGraphRandomBlockConfiguration);
103
+ private _isSeed;
104
+ private _getRandomValue;
105
+ private _random;
79
106
  }
80
107
  /**
81
- * @experimental
82
108
  * E constant.
83
109
  */
84
110
  export declare class FlowGraphEBlock extends FlowGraphConstantOperationBlock<number> {
85
111
  constructor(config?: IFlowGraphBlockConfiguration);
86
- /**
87
- * the class name of the block.
88
- */
89
- static ClassName: string;
90
112
  }
91
113
  /**
92
- * @experimental
93
114
  * Pi constant.
94
115
  */
95
116
  export declare class FlowGraphPiBlock extends FlowGraphConstantOperationBlock<number> {
96
117
  constructor(config?: IFlowGraphBlockConfiguration);
97
- /**
98
- * the class name of the block.
99
- */
100
- static ClassName: string;
101
118
  }
102
119
  /**
103
- * @experimental
104
120
  * Positive inf constant.
105
121
  */
106
122
  export declare class FlowGraphInfBlock extends FlowGraphConstantOperationBlock<number> {
107
123
  constructor(config?: IFlowGraphBlockConfiguration);
108
- /**
109
- * the class name of the block.
110
- */
111
- static ClassName: string;
112
124
  }
113
125
  /**
114
- * @experimental
115
126
  * NaN constant.
116
127
  */
117
128
  export declare class FlowGraphNaNBlock extends FlowGraphConstantOperationBlock<number> {
118
129
  constructor(config?: IFlowGraphBlockConfiguration);
119
- /**
120
- * the class name of the block.
121
- */
122
- static ClassName: string;
123
130
  }
124
131
  /**
125
- * @experimental
126
132
  * Absolute value block.
127
133
  */
128
- export declare class FlowGraphAbsBlock extends FlowGraphUnaryOperationBlock<any, any> {
134
+ export declare class FlowGraphAbsBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
129
135
  constructor(config?: IFlowGraphBlockConfiguration);
130
136
  private _polymorphicAbs;
131
- /**
132
- * the class name of the block.
133
- */
134
- static ClassName: string;
135
137
  }
136
138
  /**
137
- * @experimental
138
139
  * Sign block.
139
140
  */
140
- export declare class FlowGraphSignBlock extends FlowGraphUnaryOperationBlock<any, any> {
141
+ export declare class FlowGraphSignBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
141
142
  constructor(config?: IFlowGraphBlockConfiguration);
142
143
  private _polymorphicSign;
143
- /**
144
- * the class name of the block.
145
- */
146
- static ClassName: string;
147
144
  }
148
145
  /**
149
- * @experimental
150
146
  * Truncation block.
151
147
  */
152
- export declare class FlowGraphTruncBlock extends FlowGraphUnaryOperationBlock<any, any> {
148
+ export declare class FlowGraphTruncBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
153
149
  constructor(config?: IFlowGraphBlockConfiguration);
154
150
  private _polymorphicTrunc;
155
- /**
156
- * the class name of the block.
157
- */
158
- static ClassName: string;
159
151
  }
160
152
  /**
161
- * @experimental
162
153
  * Floor block.
163
154
  */
164
- export declare class FlowGraphFloorBlock extends FlowGraphUnaryOperationBlock<any, any> {
155
+ export declare class FlowGraphFloorBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
165
156
  constructor(config?: IFlowGraphBlockConfiguration);
166
157
  private _polymorphicFloor;
167
- /**
168
- * the class name of the block.
169
- */
170
- static ClassName: string;
171
158
  }
172
159
  /**
173
- * @experimental
174
160
  * Ceiling block.
175
161
  */
176
- export declare class FlowGraphCeilBlock extends FlowGraphUnaryOperationBlock<any, any> {
162
+ export declare class FlowGraphCeilBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
177
163
  constructor(config?: IFlowGraphBlockConfiguration);
178
164
  private _polymorphicCeiling;
165
+ }
166
+ /**
167
+ * Configuration for the round block.
168
+ */
169
+ export interface IFlowGraphRoundBlockConfiguration extends IFlowGraphBlockConfiguration {
179
170
  /**
180
- * the class name of the block.
171
+ * If true, the rounding is away from zero, even when negative. i.e. -7.5 goes to -8, and not -7 as Math.round does (it rounds up).
172
+ * This is the default when using glTF
181
173
  */
182
- static ClassName: string;
174
+ roundHalfAwayFromZero?: boolean;
183
175
  }
184
176
  /**
185
- * @experimental
186
- * Fract block.
177
+ * Round block.
187
178
  */
188
- export declare class FlowGraphFractBlock extends FlowGraphUnaryOperationBlock<any, any> {
179
+ export declare class FlowGraphRoundBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
180
+ constructor(config?: IFlowGraphRoundBlockConfiguration);
181
+ private _polymorphicRound;
182
+ }
183
+ /**
184
+ * A block that returns the fractional part of a number.
185
+ */
186
+ export declare class FlowGraphFractionBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
189
187
  constructor(config?: IFlowGraphBlockConfiguration);
190
- private _polymorphicFract;
191
- /**
192
- * the class name of the block.
193
- */
194
- static ClassName: string;
188
+ private _polymorphicFraction;
195
189
  }
196
190
  /**
197
- * @experimental
198
191
  * Negation block.
199
192
  */
200
- export declare class FlowGraphNegBlock extends FlowGraphUnaryOperationBlock<any, any> {
193
+ export declare class FlowGraphNegationBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
201
194
  /**
202
195
  * construct a new negation block.
203
196
  * @param config optional configuration
204
197
  */
205
198
  constructor(config?: IFlowGraphBlockConfiguration);
206
199
  private _polymorphicNeg;
207
- /**
208
- * the class name of the block.
209
- */
210
- static ClassName: string;
211
200
  }
212
201
  /**
213
- * @experimental
214
202
  * Remainder block.
215
203
  */
216
- export declare class FlowGraphRemainderBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
204
+ export declare class FlowGraphModuloBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
217
205
  constructor(config?: IFlowGraphBlockConfiguration);
218
206
  private _polymorphicRemainder;
219
- /**
220
- * the class name of the block.
221
- */
222
- static ClassName: string;
223
207
  }
224
208
  /**
225
- * @experimental
226
209
  * Min block.
227
210
  */
228
- export declare class FlowGraphMinBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
211
+ export declare class FlowGraphMinBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
229
212
  constructor(config?: IFlowGraphBlockConfiguration);
230
213
  private _polymorphicMin;
231
- /**
232
- * the class name of the block.
233
- */
234
- static ClassName: string;
235
214
  }
236
215
  /**
237
- * @experimental
238
216
  * Max block
239
217
  */
240
- export declare class FlowGraphMaxBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
218
+ export declare class FlowGraphMaxBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
241
219
  constructor(config?: IFlowGraphBlockConfiguration);
242
220
  private _polymorphicMax;
243
- /**
244
- * the class name of the block.
245
- */
246
- static ClassName: string;
247
221
  }
248
222
  /**
249
- * @experimental
250
223
  * Clamp block.
251
224
  */
252
- export declare class FlowGraphClampBlock extends FlowGraphTernaryOperationBlock<any, any, any, any> {
225
+ export declare class FlowGraphClampBlock extends FlowGraphTernaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
253
226
  constructor(config?: IFlowGraphBlockConfiguration);
254
227
  private _polymorphicClamp;
255
- /**
256
- * the class name of the block.
257
- */
258
- static ClassName: string;
259
228
  }
260
229
  /**
261
- * @experimental
262
230
  * Saturate block.
263
231
  */
264
- export declare class FlowGraphSaturateBlock extends FlowGraphUnaryOperationBlock<any, any> {
232
+ export declare class FlowGraphSaturateBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
265
233
  constructor(config?: IFlowGraphBlockConfiguration);
266
234
  private _polymorphicSaturate;
267
- /**
268
- * the class name of the block.
269
- */
270
- static ClassName: string;
271
235
  }
272
236
  /**
273
- * @experimental
274
237
  * Interpolate block.
275
238
  */
276
- export declare class FlowGraphInterpolateBlock extends FlowGraphTernaryOperationBlock<any, any, any, any> {
239
+ export declare class FlowGraphMathInterpolationBlock extends FlowGraphTernaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
277
240
  constructor(config?: IFlowGraphBlockConfiguration);
278
- private _interpolate;
279
241
  private _polymorphicInterpolate;
280
- /**
281
- * the class name of the block.
282
- */
283
- static ClassName: string;
284
242
  }
285
243
  /**
286
- * @experimental
287
244
  * Equals block.
288
245
  */
289
- export declare class FlowGraphEqBlock extends FlowGraphBinaryOperationBlock<any, any, boolean> {
246
+ export declare class FlowGraphEqualityBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, boolean> {
290
247
  constructor(config?: IFlowGraphBlockConfiguration);
291
248
  private _polymorphicEq;
292
- /**
293
- * the class name of the block.
294
- */
295
- static ClassName: string;
296
249
  }
297
250
  /**
298
- * @experimental
299
251
  * Less than block.
300
252
  */
301
- export declare class FlowGraphLessThanBlock extends FlowGraphBinaryOperationBlock<any, any, boolean> {
253
+ export declare class FlowGraphLessThanBlock extends FlowGraphBinaryOperationBlock<FlowGraphNumber, FlowGraphNumber, boolean> {
302
254
  constructor(config?: IFlowGraphBlockConfiguration);
303
255
  private _polymorphicLessThan;
304
- /**
305
- * the class name of the block.
306
- */
307
- static ClassName: string;
308
256
  }
309
257
  /**
310
- * @experimental
311
258
  * Less than or equal block.
312
259
  */
313
- export declare class FlowGraphLessThanOrEqualBlock extends FlowGraphBinaryOperationBlock<any, any, boolean> {
260
+ export declare class FlowGraphLessThanOrEqualBlock extends FlowGraphBinaryOperationBlock<FlowGraphNumber, FlowGraphNumber, boolean> {
314
261
  constructor(config?: IFlowGraphBlockConfiguration);
315
262
  private _polymorphicLessThanOrEqual;
316
- /**
317
- * the class name of the block.
318
- */
319
- static ClassName: string;
320
263
  }
321
264
  /**
322
- * @experimental
323
265
  * Greater than block.
324
266
  */
325
- export declare class FlowGraphGreaterThanBlock extends FlowGraphBinaryOperationBlock<any, any, boolean> {
267
+ export declare class FlowGraphGreaterThanBlock extends FlowGraphBinaryOperationBlock<FlowGraphNumber, FlowGraphNumber, boolean> {
326
268
  constructor(config?: IFlowGraphBlockConfiguration);
327
269
  private _polymorphicGreaterThan;
328
- /**
329
- * the class name of the block.
330
- */
331
- static ClassName: string;
332
270
  }
333
271
  /**
334
- * @experimental
335
272
  * Greater than or equal block.
336
273
  */
337
- export declare class FlowGraphGreaterThanOrEqualBlock extends FlowGraphBinaryOperationBlock<any, any, boolean> {
274
+ export declare class FlowGraphGreaterThanOrEqualBlock extends FlowGraphBinaryOperationBlock<FlowGraphNumber, FlowGraphNumber, boolean> {
338
275
  constructor(config?: IFlowGraphBlockConfiguration);
339
276
  private _polymorphicGreaterThanOrEqual;
340
- /**
341
- * the class name of the block.
342
- */
343
- static ClassName: string;
344
277
  }
345
278
  /**
346
- * @experimental
347
279
  * Is NaN block.
348
280
  */
349
- export declare class FlowGraphIsNanBlock extends FlowGraphUnaryOperationBlock<any, boolean> {
281
+ export declare class FlowGraphIsNanBlock extends FlowGraphUnaryOperationBlock<FlowGraphNumber, boolean> {
350
282
  constructor(config?: IFlowGraphBlockConfiguration);
351
283
  private _polymorphicIsNan;
352
- /**
353
- * the class name of the block.
354
- */
355
- static ClassName: string;
356
284
  }
357
285
  /**
358
- * @experimental
359
286
  * Is Inf block.
360
287
  */
361
- export declare class FlowGraphIsInfBlock extends FlowGraphUnaryOperationBlock<any, boolean> {
288
+ export declare class FlowGraphIsInfinityBlock extends FlowGraphUnaryOperationBlock<FlowGraphNumber, boolean> {
362
289
  constructor(config?: IFlowGraphBlockConfiguration);
363
290
  private _polymorphicIsInf;
364
- /**
365
- * the class name of the block.
366
- */
367
- static ClassName: string;
368
291
  }
369
292
  /**
370
- * @experimental
371
293
  * Convert degrees to radians block.
372
294
  */
373
- export declare class FlowGraphDegToRadBlock extends FlowGraphUnaryOperationBlock<any, any> {
295
+ export declare class FlowGraphDegToRadBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
296
+ /**
297
+ * Constructs a new instance of the flow graph math block.
298
+ * @param config - Optional configuration for the flow graph block.
299
+ */
374
300
  constructor(config?: IFlowGraphBlockConfiguration);
375
301
  private _degToRad;
376
302
  private _polymorphicDegToRad;
377
- /**
378
- * the class name of the block.
379
- */
380
- static ClassName: string;
381
303
  }
382
304
  /**
383
- * @experimental
384
305
  * Convert radians to degrees block.
385
306
  */
386
- export declare class FlowGraphRadToDegBlock extends FlowGraphUnaryOperationBlock<any, any> {
307
+ export declare class FlowGraphRadToDegBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
387
308
  constructor(config?: IFlowGraphBlockConfiguration);
388
309
  private _radToDeg;
389
310
  private _polymorphicRadToDeg;
390
- /**
391
- * the class name of the block.
392
- */
393
- static ClassName: string;
394
311
  }
395
312
  /**
396
- * @experimental
397
313
  * Sin block.
398
314
  */
399
- export declare class FlowGraphSinBlock extends FlowGraphUnaryOperationBlock<any, any> {
315
+ export declare class FlowGraphSinBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
400
316
  constructor(config?: IFlowGraphBlockConfiguration);
401
317
  private _polymorphicSin;
402
- /**
403
- * the class name of the block.
404
- */
405
- static ClassName: string;
406
318
  }
407
319
  /**
408
- * @experimental
409
320
  * Cos block.
410
321
  */
411
- export declare class FlowGraphCosBlock extends FlowGraphUnaryOperationBlock<any, any> {
322
+ export declare class FlowGraphCosBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
412
323
  constructor(config?: IFlowGraphBlockConfiguration);
413
324
  private _polymorphicCos;
414
- /**
415
- * the class name of the block.
416
- */
417
- static ClassName: string;
418
325
  }
419
326
  /**
420
- * @experimental
421
327
  * Tan block.
422
328
  */
423
- export declare class FlowGraphTanBlock extends FlowGraphUnaryOperationBlock<any, any> {
329
+ export declare class FlowGraphTanBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
424
330
  constructor(config?: IFlowGraphBlockConfiguration);
425
331
  private _polymorphicTan;
426
- /**
427
- * the class name of the block.
428
- */
429
- static ClassName: string;
430
332
  }
431
333
  /**
432
- * @experimental
433
334
  * Arcsin block.
434
335
  */
435
- export declare class FlowGraphAsinBlock extends FlowGraphUnaryOperationBlock<any, any> {
336
+ export declare class FlowGraphAsinBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
436
337
  constructor(config?: IFlowGraphBlockConfiguration);
437
338
  private _polymorphicAsin;
438
- /**
439
- * the class name of the block.
440
- */
441
- static ClassName: string;
442
339
  }
443
340
  /**
444
- * @experimental
445
341
  * Arccos block.
446
342
  */
447
- export declare class FlowGraphAcosBlock extends FlowGraphUnaryOperationBlock<any, any> {
343
+ export declare class FlowGraphAcosBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
448
344
  constructor(config?: IFlowGraphBlockConfiguration);
449
345
  private _polymorphicAcos;
450
- /**
451
- * the class name of the block.
452
- */
453
- static ClassName: string;
454
346
  }
455
347
  /**
456
- * @experimental
457
348
  * Arctan block.
458
349
  */
459
- export declare class FlowGraphAtanBlock extends FlowGraphUnaryOperationBlock<any, any> {
350
+ export declare class FlowGraphAtanBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
460
351
  constructor(config?: IFlowGraphBlockConfiguration);
461
352
  private _polymorphicAtan;
462
- /**
463
- * the class name of the block.
464
- */
465
- static ClassName: string;
466
353
  }
467
354
  /**
468
- * @experimental
469
355
  * Arctan2 block.
470
356
  */
471
- export declare class FlowGraphAtan2Block extends FlowGraphBinaryOperationBlock<any, any, any> {
357
+ export declare class FlowGraphAtan2Block extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
472
358
  constructor(config?: IFlowGraphBlockConfiguration);
473
359
  private _polymorphicAtan2;
474
- /**
475
- * the class name of the block.
476
- */
477
- static ClassName: string;
478
360
  }
479
361
  /**
480
- * @experimental
481
362
  * Hyperbolic sin block.
482
363
  */
483
- export declare class FlowGraphSinhBlock extends FlowGraphUnaryOperationBlock<any, any> {
364
+ export declare class FlowGraphSinhBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
484
365
  constructor(config?: IFlowGraphBlockConfiguration);
485
366
  private _polymorphicSinh;
486
- /**
487
- * the class name of the block.
488
- */
489
- static ClassName: string;
490
367
  }
491
368
  /**
492
- * @experimental
493
369
  * Hyperbolic cos block.
494
370
  */
495
- export declare class FlowGraphCoshBlock extends FlowGraphUnaryOperationBlock<any, any> {
371
+ export declare class FlowGraphCoshBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
496
372
  constructor(config?: IFlowGraphBlockConfiguration);
497
373
  private _polymorphicCosh;
498
- /**
499
- * the class name of the block.
500
- */
501
- static ClassName: string;
502
374
  }
503
375
  /**
504
- * @experimental
505
376
  * Hyperbolic tan block.
506
377
  */
507
- export declare class FlowGraphTanhBlock extends FlowGraphUnaryOperationBlock<any, any> {
378
+ export declare class FlowGraphTanhBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
508
379
  constructor(config?: IFlowGraphBlockConfiguration);
509
380
  private _polymorphicTanh;
510
- /**
511
- * the class name of the block.
512
- */
513
- static ClassName: string;
514
381
  }
515
382
  /**
516
- * @experimental
517
383
  * Hyperbolic arcsin block.
518
384
  */
519
- export declare class FlowGraphAsinhBlock extends FlowGraphUnaryOperationBlock<any, any> {
385
+ export declare class FlowGraphAsinhBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
520
386
  constructor(config?: IFlowGraphBlockConfiguration);
521
387
  private _polymorphicAsinh;
522
- /**
523
- * the class name of the block.
524
- */
525
- static ClassName: string;
526
388
  }
527
389
  /**
528
- * @experimental
529
390
  * Hyperbolic arccos block.
530
391
  */
531
- export declare class FlowGraphAcoshBlock extends FlowGraphUnaryOperationBlock<any, any> {
392
+ export declare class FlowGraphAcoshBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
532
393
  constructor(config?: IFlowGraphBlockConfiguration);
533
394
  private _polymorphicAcosh;
534
- /**
535
- * the class name of the block.
536
- */
537
- static ClassName: string;
538
395
  }
539
396
  /**
540
- * @experimental
541
397
  * Hyperbolic arctan block.
542
398
  */
543
- export declare class FlowGraphAtanhBlock extends FlowGraphUnaryOperationBlock<any, any> {
399
+ export declare class FlowGraphAtanhBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
544
400
  constructor(config?: IFlowGraphBlockConfiguration);
545
401
  private _polymorphicAtanh;
546
- /**
547
- * the class name of the block.
548
- */
549
- static ClassName: string;
550
402
  }
551
403
  /**
552
- * @experimental
553
404
  * Exponential block.
554
405
  */
555
- export declare class FlowGraphExpBlock extends FlowGraphUnaryOperationBlock<any, any> {
406
+ export declare class FlowGraphExpBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
556
407
  constructor(config?: IFlowGraphBlockConfiguration);
557
408
  private _polymorphicExp;
558
- /**
559
- * the class name of the block.
560
- */
561
- static ClassName: string;
562
409
  }
563
410
  /**
564
- * @experimental
565
411
  * Logarithm block.
566
412
  */
567
- export declare class FlowGraphLogBlock extends FlowGraphUnaryOperationBlock<any, any> {
413
+ export declare class FlowGraphLogBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
568
414
  constructor(config?: IFlowGraphBlockConfiguration);
569
415
  private _polymorphicLog;
570
- /**
571
- * the class name of the block.
572
- */
573
- static ClassName: string;
574
416
  }
575
417
  /**
576
- * @experimental
577
418
  * Base 2 logarithm block.
578
419
  */
579
- export declare class FlowGraphLog2Block extends FlowGraphUnaryOperationBlock<any, any> {
420
+ export declare class FlowGraphLog2Block extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
580
421
  constructor(config?: IFlowGraphBlockConfiguration);
581
422
  private _polymorphicLog2;
582
- /**
583
- * the class name of the block.
584
- */
585
- static ClassName: string;
586
423
  }
587
424
  /**
588
- * @experimental
589
425
  * Base 10 logarithm block.
590
426
  */
591
- export declare class FlowGraphLog10Block extends FlowGraphUnaryOperationBlock<any, any> {
427
+ export declare class FlowGraphLog10Block extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
592
428
  constructor(config?: IFlowGraphBlockConfiguration);
593
429
  private _polymorphicLog10;
594
- /**
595
- * the class name of the block.
596
- */
597
- static ClassName: string;
598
430
  }
599
431
  /**
600
- * @experimental
601
432
  * Square root block.
602
433
  */
603
- export declare class FlowGraphSqrtBlock extends FlowGraphUnaryOperationBlock<any, any> {
434
+ export declare class FlowGraphSquareRootBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
604
435
  constructor(config?: IFlowGraphBlockConfiguration);
605
436
  private _polymorphicSqrt;
606
- /**
607
- * the class name of the block.
608
- */
609
- static ClassName: string;
610
437
  }
611
438
  /**
612
- * @experimental
613
439
  * Cube root block.
614
440
  */
615
- export declare class FlowGraphCubeRootBlock extends FlowGraphUnaryOperationBlock<any, any> {
441
+ export declare class FlowGraphCubeRootBlock extends FlowGraphUnaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType> {
616
442
  constructor(config?: IFlowGraphBlockConfiguration);
617
443
  private _polymorphicCubeRoot;
618
- /**
619
- * the class name of the block.
620
- */
621
- static ClassName: string;
622
444
  }
623
445
  /**
624
- * @experimental
625
446
  * Power block.
626
447
  */
627
- export declare class FlowGraphPowBlock extends FlowGraphBinaryOperationBlock<any, any, any> {
448
+ export declare class FlowGraphPowerBlock extends FlowGraphBinaryOperationBlock<FlowGraphMathOperationType, FlowGraphMathOperationType, FlowGraphMathOperationType> {
628
449
  constructor(config?: IFlowGraphBlockConfiguration);
629
450
  private _polymorphicPow;
630
- /**
631
- * the class name of the block.
632
- */
633
- static ClassName: string;
634
451
  }
635
452
  /**
636
- * @experimental
637
- * Vector length block.
453
+ * Configuration for bitwise operators
638
454
  */
639
- export declare class FlowGraphLengthBlock extends FlowGraphUnaryOperationBlock<any, number> {
640
- constructor(config?: IFlowGraphBlockConfiguration);
641
- private _polymorphicLength;
455
+ export interface IFlowGraphBitwiseBlockConfiguration extends IFlowGraphBlockConfiguration {
642
456
  /**
643
- * the class name of the block.
457
+ * The type of the values that will be operated on
458
+ * Defaults to FlowGraphInteger, but can be a number or boolean as well.
644
459
  */
645
- static ClassName: string;
460
+ valueType: FlowGraphTypes;
646
461
  }
462
+ type FlowGraphBitwiseTypes = FlowGraphInteger | FlowGraphNumber | boolean;
647
463
  /**
648
- * @experimental
649
- * Vector normalize block.
650
- */
651
- export declare class FlowGraphNormalizeBlock extends FlowGraphUnaryOperationBlock<any, any> {
652
- constructor(config?: IFlowGraphBlockConfiguration);
653
- private _polymorphicNormalize;
654
- /**
655
- * the class name of the block.
656
- */
657
- static ClassName: string;
658
- }
659
- /**
660
- * @experimental
661
- * Cross product block.
662
- */
663
- export declare class FlowGraphCrossBlock extends FlowGraphBinaryOperationBlock<Vector3, Vector3, Vector3> {
664
- constructor(config?: IFlowGraphBlockConfiguration);
665
- /**
666
- * the class name of the block.
667
- */
668
- static ClassName: string;
669
- }
670
- /**
671
- * @experimental
672
- * 2D rotation block.
673
- */
674
- export declare class FlowGraphRotate2DBlock extends FlowGraphBinaryOperationBlock<Vector2, number, Vector2> {
675
- constructor(config?: IFlowGraphBlockConfiguration);
676
- /**
677
- * the class name of the block.
678
- */
679
- static ClassName: string;
680
- }
681
- /**
682
- * @experimental
683
- * 3D rotation block.
684
- */
685
- export declare class FlowGraphRotate3DBlock extends FlowGraphTernaryOperationBlock<Vector3, Vector3, number, Vector3> {
686
- constructor(config?: IFlowGraphBlockConfiguration);
687
- /**
688
- * the class name of the block.
689
- */
690
- static ClassName: string;
691
- }
692
- /**
693
- * @experimental
694
- * Transposes a matrix.
695
- */
696
- export declare class FlowGraphTransposeBlock extends FlowGraphUnaryOperationBlock<Matrix, Matrix> {
697
- constructor(config?: IFlowGraphBlockConfiguration);
698
- /**
699
- * the class name of the block.
700
- */
701
- static ClassName: string;
702
- }
703
- /**
704
- * @experimental
705
- * Gets the determinant of a matrix.
706
- */
707
- export declare class FlowGraphDeterminantBlock extends FlowGraphUnaryOperationBlock<Matrix, number> {
708
- constructor(config?: IFlowGraphBlockConfiguration);
709
- /**
710
- * the class name of the block.
711
- */
712
- static ClassName: string;
713
- }
714
- /**
715
- * @experimental
716
- * Inverts a matrix.
717
- */
718
- export declare class FlowGraphInvertMatrixBlock extends FlowGraphUnaryOperationBlock<Matrix, Matrix> {
719
- constructor(config?: IFlowGraphBlockConfiguration);
720
- /**
721
- * the class name of the block.
722
- */
723
- static ClassName: string;
724
- }
725
- /**
726
- * @experimental
727
- * Multiplies two matrices.
728
- */
729
- export declare class FlowGraphMatMulBlock extends FlowGraphBinaryOperationBlock<Matrix, Matrix, Matrix> {
730
- constructor(config?: IFlowGraphBlockConfiguration);
731
- /**
732
- * the class name of the block.
733
- */
734
- static ClassName: string;
735
- }
736
- /**
737
- * @experimental
738
464
  * Bitwise NOT operation
739
465
  */
740
- export declare class FlowGraphBitwiseNotBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
741
- constructor(config?: IFlowGraphBlockConfiguration);
742
- /**
743
- * the class name of the block.
744
- */
745
- static ClassName: string;
466
+ export declare class FlowGraphBitwiseNotBlock extends FlowGraphUnaryOperationBlock<FlowGraphBitwiseTypes, FlowGraphBitwiseTypes> {
467
+ constructor(config?: IFlowGraphBitwiseBlockConfiguration);
746
468
  }
747
469
  /**
748
- * @experimental
749
470
  * Bitwise AND operation
750
471
  */
751
- export declare class FlowGraphBitwiseAndBlock extends FlowGraphBinaryOperationBlock<FlowGraphInteger, FlowGraphInteger, FlowGraphInteger> {
752
- constructor(config?: IFlowGraphBlockConfiguration);
753
- /**
754
- * the class name of the block.
755
- */
756
- static ClassName: string;
472
+ export declare class FlowGraphBitwiseAndBlock extends FlowGraphBinaryOperationBlock<FlowGraphBitwiseTypes, FlowGraphBitwiseTypes, FlowGraphBitwiseTypes> {
473
+ constructor(config?: IFlowGraphBitwiseBlockConfiguration);
757
474
  }
758
475
  /**
759
- * @experimental
760
476
  * Bitwise OR operation
761
477
  */
762
- export declare class FlowGraphBitwiseOrBlock extends FlowGraphBinaryOperationBlock<FlowGraphInteger, FlowGraphInteger, FlowGraphInteger> {
763
- constructor(config?: IFlowGraphBlockConfiguration);
764
- /**
765
- * the class name of the block.
766
- */
767
- static ClassName: string;
478
+ export declare class FlowGraphBitwiseOrBlock extends FlowGraphBinaryOperationBlock<FlowGraphBitwiseTypes, FlowGraphBitwiseTypes, FlowGraphBitwiseTypes> {
479
+ constructor(config?: IFlowGraphBitwiseBlockConfiguration);
768
480
  }
769
481
  /**
770
- * @experimental
771
482
  * Bitwise XOR operation
772
483
  */
773
- export declare class FlowGraphBitwiseXorBlock extends FlowGraphBinaryOperationBlock<FlowGraphInteger, FlowGraphInteger, FlowGraphInteger> {
484
+ export declare class FlowGraphBitwiseXorBlock extends FlowGraphBinaryOperationBlock<FlowGraphBitwiseTypes, FlowGraphBitwiseTypes, FlowGraphBitwiseTypes> {
774
485
  constructor(config?: IFlowGraphBlockConfiguration);
775
- /**
776
- * the class name of the block.
777
- */
778
- static ClassName: string;
779
486
  }
780
487
  /**
781
- * @experimental
782
488
  * Bitwise left shift operation
783
489
  */
784
490
  export declare class FlowGraphBitwiseLeftShiftBlock extends FlowGraphBinaryOperationBlock<FlowGraphInteger, FlowGraphInteger, FlowGraphInteger> {
785
491
  constructor(config?: IFlowGraphBlockConfiguration);
786
- /**
787
- * the class name of the block.
788
- */
789
- static ClassName: string;
790
492
  }
791
493
  /**
792
- * @experimental
793
494
  * Bitwise right shift operation
794
495
  */
795
496
  export declare class FlowGraphBitwiseRightShiftBlock extends FlowGraphBinaryOperationBlock<FlowGraphInteger, FlowGraphInteger, FlowGraphInteger> {
796
497
  constructor(config?: IFlowGraphBlockConfiguration);
797
- /**
798
- * the class name of the block.
799
- */
800
- static ClassName: string;
801
498
  }
802
499
  /**
803
- * @experimental
804
500
  * Count leading zeros operation
805
501
  */
806
- export declare class FlowGraphCountLeadingZerosBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
502
+ export declare class FlowGraphLeadingZerosBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
807
503
  constructor(config?: IFlowGraphBlockConfiguration);
808
- /**
809
- * the class name of the block.
810
- */
811
- static ClassName: string;
812
504
  }
813
505
  /**
814
- * @experimental
815
506
  * Count trailing zeros operation
816
507
  */
817
- export declare class FlowGraphCountTrailingZerosBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
508
+ export declare class FlowGraphTrailingZerosBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
818
509
  constructor(config?: IFlowGraphBlockConfiguration);
819
- /**
820
- * the class name of the block.
821
- */
822
- static ClassName: string;
823
510
  }
824
511
  /**
825
- * @experimental
826
512
  * Count one bits operation
827
513
  */
828
- export declare class FlowGraphCountOneBitsBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
514
+ export declare class FlowGraphOneBitsCounterBlock extends FlowGraphUnaryOperationBlock<FlowGraphInteger, FlowGraphInteger> {
829
515
  constructor(config?: IFlowGraphBlockConfiguration);
830
- /**
831
- * the class name of the block.
832
- */
833
- static ClassName: string;
834
516
  }
517
+ export {};