@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.
- package/Animations/animation.js +2 -1
- package/Animations/animation.js.map +1 -1
- package/Buffers/bufferUtils.d.ts +7 -5
- package/Buffers/bufferUtils.js +13 -9
- package/Buffers/bufferUtils.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/constants.d.ts +32 -0
- package/Engines/constants.js +33 -0
- package/Engines/constants.js.map +1 -1
- package/Engines/webgpuEngine.js +6 -3
- package/Engines/webgpuEngine.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.d.ts +148 -465
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +394 -691
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.d.ts +142 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.js +342 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.js.map +1 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.d.ts +107 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js +130 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.js.map +1 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.d.ts +77 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.js +139 -0
- package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.js.map +1 -0
- package/FlowGraph/Blocks/Data/Math/index.d.ts +3 -0
- package/FlowGraph/Blocks/Data/Math/index.js +3 -0
- package/FlowGraph/Blocks/Data/Math/index.js.map +1 -1
- package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.d.ts +85 -0
- package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.js +133 -0
- package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.d.ts +49 -0
- package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.js +71 -0
- package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.js.map +1 -0
- package/FlowGraph/Blocks/Data/Transformers/index.d.ts +2 -0
- package/FlowGraph/Blocks/Data/Transformers/index.js +3 -0
- package/FlowGraph/Blocks/Data/Transformers/index.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.d.ts +39 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.js +46 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.d.ts +35 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.js +34 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.d.ts +20 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.js +25 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.d.ts +34 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.js +35 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.d.ts +39 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.js +42 -0
- package/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/Utils/index.d.ts +5 -0
- package/FlowGraph/Blocks/Data/Utils/index.js +6 -0
- package/FlowGraph/Blocks/Data/Utils/index.js.map +1 -0
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +0 -1
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js +3 -2
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.js +4 -4
- package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +6 -3
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js +12 -6
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +0 -2
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js +2 -3
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +5 -4
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js +5 -4
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.d.ts +62 -0
- package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.js +41 -0
- package/FlowGraph/Blocks/Data/flowGraphGetAssetBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.d.ts +38 -33
- package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js +42 -25
- package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +11 -16
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js +9 -17
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js +1 -1
- package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/{flowGraphCoordinateTransformBlock.d.ts → flowGraphTransformCoordinatesSystemBlock.d.ts} +1 -2
- package/FlowGraph/Blocks/Data/{flowGraphCoordinateTransformBlock.js → flowGraphTransformCoordinatesSystemBlock.js} +4 -5
- package/FlowGraph/Blocks/Data/flowGraphTransformCoordinatesSystemBlock.js.map +1 -0
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js +1 -1
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Data/index.d.ts +7 -3
- package/FlowGraph/Blocks/Data/index.js +9 -4
- package/FlowGraph/Blocks/Data/index.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +45 -24
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js +45 -51
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.d.ts +61 -0
- package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.js +39 -0
- package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.js.map +1 -0
- package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.d.ts +61 -0
- package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.js +40 -0
- package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.js.map +1 -0
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +12 -14
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js +19 -26
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +6 -12
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js +13 -24
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +31 -7
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js +22 -20
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.js.map +1 -1
- package/FlowGraph/Blocks/{Execution → Event}/flowGraphSendCustomEventBlock.d.ts +12 -7
- package/FlowGraph/Blocks/Event/flowGraphSendCustomEventBlock.js +39 -0
- package/FlowGraph/Blocks/Event/flowGraphSendCustomEventBlock.js.map +1 -0
- package/FlowGraph/Blocks/Event/index.d.ts +3 -0
- package/FlowGraph/Blocks/Event/index.js +3 -0
- package/FlowGraph/Blocks/Event/index.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.d.ts +44 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.js +46 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphBezierCurveEasingBlock.js.map +1 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.d.ts +60 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.js +93 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphEasingBlock.js.map +1 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.d.ts +82 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js +105 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js.map +1 -0
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +2 -2
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js +2 -2
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +40 -42
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js +116 -50
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +12 -4
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js +86 -8
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/index.d.ts +3 -0
- package/FlowGraph/Blocks/Execution/Animation/index.js +3 -0
- package/FlowGraph/Blocks/Execution/Animation/index.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +1 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js +3 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/{Audio/flowGraphStopAudioBlock.d.ts → ControlFlow/flowGraphCancelDelayBlock.d.ts} +6 -8
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCancelDelayBlock.js +31 -0
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCancelDelayBlock.js.map +1 -0
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +2 -2
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +0 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js +2 -3
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +5 -10
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js +11 -15
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +11 -3
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js +5 -6
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +27 -7
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js +28 -30
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +13 -16
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js +50 -52
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.d.ts +8 -9
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js +26 -13
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.d.ts +32 -0
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.js +84 -0
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.js.map +1 -0
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +20 -6
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js +55 -16
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +3 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js +36 -13
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +13 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js +22 -17
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +12 -16
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js +21 -21
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/index.d.ts +2 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/index.js +2 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/index.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.d.ts +4 -5
- package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js +13 -8
- package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.d.ts +33 -36
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js +42 -26
- package/FlowGraph/Blocks/Execution/flowGraphSetPropertyBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +10 -25
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js +38 -24
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/index.d.ts +0 -3
- package/FlowGraph/Blocks/Execution/index.js +0 -3
- package/FlowGraph/Blocks/Execution/index.js.map +1 -1
- package/FlowGraph/Blocks/flowGraphBlockFactory.d.ts +16 -0
- package/FlowGraph/Blocks/flowGraphBlockFactory.js +292 -0
- package/FlowGraph/Blocks/flowGraphBlockFactory.js.map +1 -0
- package/FlowGraph/Blocks/flowGraphBlockNames.d.ts +145 -0
- package/FlowGraph/Blocks/flowGraphBlockNames.js +147 -0
- package/FlowGraph/Blocks/flowGraphBlockNames.js.map +1 -0
- package/FlowGraph/Blocks/index.d.ts +2 -0
- package/FlowGraph/Blocks/index.js +2 -0
- package/FlowGraph/Blocks/index.js.map +1 -1
- package/FlowGraph/{flowGraphInteger.d.ts → CustomTypes/flowGraphInteger.d.ts} +2 -3
- package/FlowGraph/{flowGraphInteger.js → CustomTypes/flowGraphInteger.js} +4 -5
- package/FlowGraph/CustomTypes/flowGraphInteger.js.map +1 -0
- package/FlowGraph/CustomTypes/flowGraphMatrix.d.ts +196 -0
- package/FlowGraph/CustomTypes/flowGraphMatrix.js +272 -0
- package/FlowGraph/CustomTypes/flowGraphMatrix.js.map +1 -0
- package/FlowGraph/CustomTypes/index.d.ts +2 -0
- package/FlowGraph/CustomTypes/index.js +3 -0
- package/FlowGraph/CustomTypes/index.js.map +1 -0
- package/FlowGraph/flowGraph.d.ts +29 -34
- package/FlowGraph/flowGraph.js +120 -104
- package/FlowGraph/flowGraph.js.map +1 -1
- package/FlowGraph/flowGraphAssetsContext.d.ts +29 -0
- package/FlowGraph/flowGraphAssetsContext.js +52 -0
- package/FlowGraph/flowGraphAssetsContext.js.map +1 -0
- package/FlowGraph/flowGraphAsyncExecutionBlock.d.ts +15 -8
- package/FlowGraph/flowGraphAsyncExecutionBlock.js +25 -5
- package/FlowGraph/flowGraphAsyncExecutionBlock.js.map +1 -1
- package/FlowGraph/flowGraphBlock.d.ts +22 -15
- package/FlowGraph/flowGraphBlock.js +31 -52
- package/FlowGraph/flowGraphBlock.js.map +1 -1
- package/FlowGraph/flowGraphConnection.d.ts +13 -12
- package/FlowGraph/flowGraphConnection.js +31 -16
- package/FlowGraph/flowGraphConnection.js.map +1 -1
- package/FlowGraph/flowGraphContext.d.ts +89 -13
- package/FlowGraph/flowGraphContext.js +210 -23
- package/FlowGraph/flowGraphContext.js.map +1 -1
- package/FlowGraph/flowGraphCoordinator.d.ts +4 -10
- package/FlowGraph/flowGraphCoordinator.js +4 -16
- package/FlowGraph/flowGraphCoordinator.js.map +1 -1
- package/FlowGraph/flowGraphDataConnection.d.ts +52 -14
- package/FlowGraph/flowGraphDataConnection.js +73 -26
- package/FlowGraph/flowGraphDataConnection.js.map +1 -1
- package/FlowGraph/flowGraphEventBlock.d.ts +17 -1
- package/FlowGraph/flowGraphEventBlock.js +13 -2
- package/FlowGraph/flowGraphEventBlock.js.map +1 -1
- package/FlowGraph/flowGraphEventType.d.ts +16 -0
- package/FlowGraph/flowGraphEventType.js +18 -0
- package/FlowGraph/flowGraphEventType.js.map +1 -0
- package/FlowGraph/flowGraphExecutionBlock.d.ts +11 -1
- package/FlowGraph/flowGraphExecutionBlock.js +21 -2
- package/FlowGraph/flowGraphExecutionBlock.js.map +1 -1
- package/FlowGraph/flowGraphExecutionBlockWithOutSignal.d.ts +2 -2
- package/FlowGraph/flowGraphExecutionBlockWithOutSignal.js +0 -1
- package/FlowGraph/flowGraphExecutionBlockWithOutSignal.js.map +1 -1
- package/FlowGraph/flowGraphLogger.d.ts +60 -0
- package/FlowGraph/flowGraphLogger.js +53 -0
- package/FlowGraph/flowGraphLogger.js.map +1 -0
- package/FlowGraph/flowGraphParser.d.ts +85 -0
- package/FlowGraph/flowGraphParser.js +271 -0
- package/FlowGraph/flowGraphParser.js.map +1 -0
- package/FlowGraph/flowGraphPathConverter.d.ts +1 -1
- package/FlowGraph/flowGraphPathConverter.js +3 -2
- package/FlowGraph/flowGraphPathConverter.js.map +1 -1
- package/FlowGraph/flowGraphPathConverterComponent.d.ts +8 -1
- package/FlowGraph/flowGraphPathConverterComponent.js +18 -2
- package/FlowGraph/flowGraphPathConverterComponent.js.map +1 -1
- package/FlowGraph/flowGraphRichTypes.d.ts +51 -9
- package/FlowGraph/flowGraphRichTypes.js +160 -50
- package/FlowGraph/flowGraphRichTypes.js.map +1 -1
- package/FlowGraph/flowGraphSceneEventCoordinator.d.ts +45 -0
- package/FlowGraph/flowGraphSceneEventCoordinator.js +77 -0
- package/FlowGraph/flowGraphSceneEventCoordinator.js.map +1 -0
- package/FlowGraph/flowGraphSignalConnection.d.ts +8 -5
- package/FlowGraph/flowGraphSignalConnection.js +26 -9
- package/FlowGraph/flowGraphSignalConnection.js.map +1 -1
- package/FlowGraph/index.d.ts +6 -1
- package/FlowGraph/index.js +7 -1
- package/FlowGraph/index.js.map +1 -1
- package/FlowGraph/serialization.d.ts +5 -2
- package/FlowGraph/serialization.js +94 -22
- package/FlowGraph/serialization.js.map +1 -1
- package/FlowGraph/typeDefinitions.d.ts +74 -12
- package/FlowGraph/typeDefinitions.js.map +1 -1
- package/FlowGraph/utils.d.ts +47 -0
- package/FlowGraph/utils.js +55 -0
- package/FlowGraph/utils.js.map +1 -1
- package/Maths/math.path.js +3 -0
- package/Maths/math.path.js.map +1 -1
- package/Meshes/geometry.d.ts +2 -1
- package/Meshes/geometry.js +8 -2
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/mesh.d.ts +2 -1
- package/Meshes/mesh.js +3 -2
- package/Meshes/mesh.js.map +1 -1
- package/ObjectModel/objectModelInterfaces.d.ts +2 -2
- package/ObjectModel/objectModelInterfaces.js.map +1 -1
- package/package.json +1 -1
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.d.ts +0 -24
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js +0 -39
- package/FlowGraph/Blocks/Data/Logic/flowGraphLogicBlocks.js.map +0 -1
- package/FlowGraph/Blocks/Data/Logic/index.d.ts +0 -1
- package/FlowGraph/Blocks/Data/Logic/index.js +0 -2
- package/FlowGraph/Blocks/Data/Logic/index.js.map +0 -1
- package/FlowGraph/Blocks/Data/flowGraphCoordinateTransformBlock.js.map +0 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.d.ts +0 -19
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js +0 -26
- package/FlowGraph/Blocks/Execution/Audio/flowGraphPlayAudioBlock.js.map +0 -1
- package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js +0 -25
- package/FlowGraph/Blocks/Execution/Audio/flowGraphStopAudioBlock.js.map +0 -1
- package/FlowGraph/Blocks/Execution/Audio/index.d.ts +0 -2
- package/FlowGraph/Blocks/Execution/Audio/index.js +0 -3
- package/FlowGraph/Blocks/Execution/Audio/index.js.map +0 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.d.ts +0 -31
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js +0 -69
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js.map +0 -1
- package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js +0 -38
- package/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js.map +0 -1
- package/FlowGraph/flowGraphContextLogger.d.ts +0 -9
- package/FlowGraph/flowGraphContextLogger.js +0 -14
- package/FlowGraph/flowGraphContextLogger.js.map +0 -1
- package/FlowGraph/flowGraphInteger.js.map +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FlowGraphUnaryOperationBlock } from "../flowGraphUnaryOperationBlock.js";
|
|
2
|
+
import { RichTypeBoolean, RichTypeFlowGraphInteger, RichTypeNumber } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
|
+
import { FlowGraphInteger } from "../../../CustomTypes/flowGraphInteger.js";
|
|
5
|
+
/**
|
|
6
|
+
* A block that converts a boolean to a float.
|
|
7
|
+
*/
|
|
8
|
+
export class FlowGraphBooleanToFloat extends FlowGraphUnaryOperationBlock {
|
|
9
|
+
constructor(config) {
|
|
10
|
+
super(RichTypeBoolean, RichTypeNumber, (a) => +a, "FlowGraphBooleanToFloat" /* FlowGraphBlockNames.BooleanToFloat */, config);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
RegisterClass("FlowGraphBooleanToFloat" /* FlowGraphBlockNames.BooleanToFloat */, FlowGraphBooleanToFloat);
|
|
14
|
+
/**
|
|
15
|
+
* A block that converts a boolean to an integer
|
|
16
|
+
*/
|
|
17
|
+
export class FlowGraphBooleanToInt extends FlowGraphUnaryOperationBlock {
|
|
18
|
+
constructor(config) {
|
|
19
|
+
super(RichTypeBoolean, RichTypeFlowGraphInteger, (a) => FlowGraphInteger.FromValue(+a), "FlowGraphBooleanToInt" /* FlowGraphBlockNames.BooleanToInt */, config);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
RegisterClass("FlowGraphBooleanToInt" /* FlowGraphBlockNames.BooleanToInt */, FlowGraphBooleanToInt);
|
|
23
|
+
/**
|
|
24
|
+
* A block that converts a float to a boolean.
|
|
25
|
+
*/
|
|
26
|
+
export class FlowGraphFloatToBoolean extends FlowGraphUnaryOperationBlock {
|
|
27
|
+
constructor(config) {
|
|
28
|
+
super(RichTypeNumber, RichTypeBoolean, (a) => !!a, "FlowGraphFloatToBoolean" /* FlowGraphBlockNames.FloatToBoolean */, config);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
RegisterClass("FlowGraphFloatToBoolean" /* FlowGraphBlockNames.FloatToBoolean */, FlowGraphFloatToBoolean);
|
|
32
|
+
/**
|
|
33
|
+
* A block that converts an integer to a boolean.
|
|
34
|
+
*/
|
|
35
|
+
export class FlowGraphIntToBoolean extends FlowGraphUnaryOperationBlock {
|
|
36
|
+
constructor(config) {
|
|
37
|
+
super(RichTypeFlowGraphInteger, RichTypeBoolean, (a) => !!a.value, "FlowGraphIntToBoolean" /* FlowGraphBlockNames.IntToBoolean */, config);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
RegisterClass("FlowGraphIntToBoolean" /* FlowGraphBlockNames.IntToBoolean */, FlowGraphIntToBoolean);
|
|
41
|
+
/**
|
|
42
|
+
* A block that converts an integer to a float.
|
|
43
|
+
*/
|
|
44
|
+
export class FlowGraphIntToFloat extends FlowGraphUnaryOperationBlock {
|
|
45
|
+
constructor(config) {
|
|
46
|
+
super(RichTypeFlowGraphInteger, RichTypeNumber, (a) => a.value, "FlowGraphIntToFloat" /* FlowGraphBlockNames.IntToFloat */, config);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
RegisterClass("FlowGraphIntToFloat" /* FlowGraphBlockNames.IntToFloat */, FlowGraphIntToFloat);
|
|
50
|
+
/**
|
|
51
|
+
* A block that converts a float to an integer.
|
|
52
|
+
*/
|
|
53
|
+
export class FlowGraphFloatToInt extends FlowGraphUnaryOperationBlock {
|
|
54
|
+
constructor(config) {
|
|
55
|
+
super(RichTypeNumber, RichTypeFlowGraphInteger, (a) => {
|
|
56
|
+
const roundingMode = config?.roundingMode;
|
|
57
|
+
switch (roundingMode) {
|
|
58
|
+
case "floor":
|
|
59
|
+
return FlowGraphInteger.FromValue(Math.floor(a));
|
|
60
|
+
case "ceil":
|
|
61
|
+
return FlowGraphInteger.FromValue(Math.ceil(a));
|
|
62
|
+
case "round":
|
|
63
|
+
return FlowGraphInteger.FromValue(Math.round(a));
|
|
64
|
+
default:
|
|
65
|
+
return FlowGraphInteger.FromValue(a);
|
|
66
|
+
}
|
|
67
|
+
}, "FlowGraphFloatToInt" /* FlowGraphBlockNames.FloatToInt */, config);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
RegisterClass("FlowGraphFloatToInt" /* FlowGraphBlockNames.FloatToInt */, FlowGraphFloatToInt);
|
|
71
|
+
//# sourceMappingURL=flowGraphTypeToTypeBlocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphTypeToTypeBlocks.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,cAAc,EAAE,uCAA0C;AAE9G,OAAO,EAAE,aAAa,EAAE,sCAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,iDAAoD;AAE/E;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,4BAA6C;IACtF,YAAY,MAAqC;QAC7C,KAAK,CAAC,eAAe,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,sEAAsC,MAAM,CAAC,CAAC;IAClG,CAAC;CACJ;AAED,aAAa,qEAAqC,uBAAuB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,4BAAuD;IAC9F,YAAY,MAAqC;QAC7C,KAAK,CAAC,eAAe,EAAE,wBAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,kEAAoC,MAAM,CAAC,CAAC;IACtI,CAAC;CACJ;AAED,aAAa,iEAAmC,qBAAqB,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,4BAA6C;IACtF,YAAY,MAAqC;QAC7C,KAAK,CAAC,cAAc,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,sEAAsC,MAAM,CAAC,CAAC;IACnG,CAAC;CACJ;AAED,aAAa,qEAAqC,uBAAuB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,4BAAuD;IAC9F,YAAY,MAAqC;QAC7C,KAAK,CAAC,wBAAwB,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,kEAAoC,MAAM,CAAC,CAAC;IACjH,CAAC;CACJ;AAED,aAAa,iEAAmC,qBAAqB,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,4BAAsD;IAC3F,YAAY,MAAqC;QAC7C,KAAK,CAAC,wBAAwB,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,8DAAkC,MAAM,CAAC,CAAC;IAC5G,CAAC;CACJ;AAED,aAAa,6DAAiC,mBAAmB,CAAC,CAAC;AAYnE;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,4BAAsD;IAC3F,YAAY,MAA0C;QAClD,KAAK,CACD,cAAc,EACd,wBAAwB,EACxB,CAAC,CAAC,EAAE,EAAE;YACF,MAAM,YAAY,GAAG,MAAM,EAAE,YAAY,CAAC;YAC1C,QAAQ,YAAY,EAAE,CAAC;gBACnB,KAAK,OAAO;oBACR,OAAO,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrD,KAAK,MAAM;oBACP,OAAO,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpD,KAAK,OAAO;oBACR,OAAO,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrD;oBACI,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC7C,CAAC;QACL,CAAC,8DAED,MAAM,CACT,CAAC;IACN,CAAC;CACJ;AAED,aAAa,6DAAiC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport { FlowGraphUnaryOperationBlock } from \"../flowGraphUnaryOperationBlock\";\nimport { RichTypeBoolean, RichTypeFlowGraphInteger, RichTypeNumber } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\nimport { RegisterClass } from \"core/Misc/typeStore\";\nimport { FlowGraphInteger } from \"core/FlowGraph/CustomTypes/flowGraphInteger\";\n\n/**\n * A block that converts a boolean to a float.\n */\nexport class FlowGraphBooleanToFloat extends FlowGraphUnaryOperationBlock<boolean, number> {\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(RichTypeBoolean, RichTypeNumber, (a) => +a, FlowGraphBlockNames.BooleanToFloat, config);\n }\n}\n\nRegisterClass(FlowGraphBlockNames.BooleanToFloat, FlowGraphBooleanToFloat);\n\n/**\n * A block that converts a boolean to an integer\n */\nexport class FlowGraphBooleanToInt extends FlowGraphUnaryOperationBlock<boolean, FlowGraphInteger> {\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(RichTypeBoolean, RichTypeFlowGraphInteger, (a) => FlowGraphInteger.FromValue(+a), FlowGraphBlockNames.BooleanToInt, config);\n }\n}\n\nRegisterClass(FlowGraphBlockNames.BooleanToInt, FlowGraphBooleanToInt);\n\n/**\n * A block that converts a float to a boolean.\n */\nexport class FlowGraphFloatToBoolean extends FlowGraphUnaryOperationBlock<number, boolean> {\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(RichTypeNumber, RichTypeBoolean, (a) => !!a, FlowGraphBlockNames.FloatToBoolean, config);\n }\n}\n\nRegisterClass(FlowGraphBlockNames.FloatToBoolean, FlowGraphFloatToBoolean);\n\n/**\n * A block that converts an integer to a boolean.\n */\nexport class FlowGraphIntToBoolean extends FlowGraphUnaryOperationBlock<FlowGraphInteger, boolean> {\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(RichTypeFlowGraphInteger, RichTypeBoolean, (a) => !!a.value, FlowGraphBlockNames.IntToBoolean, config);\n }\n}\n\nRegisterClass(FlowGraphBlockNames.IntToBoolean, FlowGraphIntToBoolean);\n\n/**\n * A block that converts an integer to a float.\n */\nexport class FlowGraphIntToFloat extends FlowGraphUnaryOperationBlock<FlowGraphInteger, number> {\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(RichTypeFlowGraphInteger, RichTypeNumber, (a) => a.value, FlowGraphBlockNames.IntToFloat, config);\n }\n}\n\nRegisterClass(FlowGraphBlockNames.IntToFloat, FlowGraphIntToFloat);\n\n/**\n * Configuration for the float to int block.\n */\nexport interface IFlowGraphFloatToIntConfiguration extends IFlowGraphBlockConfiguration {\n /**\n * The rounding mode to use.\n * if not defined, it will use the FlowGraphInteger default rounding ( a | 0 )\n */\n roundingMode?: \"floor\" | \"ceil\" | \"round\";\n}\n/**\n * A block that converts a float to an integer.\n */\nexport class FlowGraphFloatToInt extends FlowGraphUnaryOperationBlock<number, FlowGraphInteger> {\n constructor(config?: IFlowGraphFloatToIntConfiguration) {\n super(\n RichTypeNumber,\n RichTypeFlowGraphInteger,\n (a) => {\n const roundingMode = config?.roundingMode;\n switch (roundingMode) {\n case \"floor\":\n return FlowGraphInteger.FromValue(Math.floor(a));\n case \"ceil\":\n return FlowGraphInteger.FromValue(Math.ceil(a));\n case \"round\":\n return FlowGraphInteger.FromValue(Math.round(a));\n default:\n return FlowGraphInteger.FromValue(a);\n }\n },\n FlowGraphBlockNames.FloatToInt,\n config\n );\n }\n}\n\nRegisterClass(FlowGraphBlockNames.FloatToInt, FlowGraphFloatToInt);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from \"./flowGraphJsonPointerParserBlock\";\nexport * from \"./flowGraphTypeToTypeBlocks\";\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
3
|
+
import type { FlowGraphContext } from "../../../flowGraphContext.js";
|
|
4
|
+
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
|
|
5
|
+
import type { FlowGraphNumber } from "../../../utils.js";
|
|
6
|
+
import type { Nullable } from "../../../../types.js";
|
|
7
|
+
/**
|
|
8
|
+
* This simple Util block takes an array as input and selects a single element from it.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FlowGraphArrayIndexBlock<T = any> extends FlowGraphBlock {
|
|
11
|
+
config: IFlowGraphBlockConfiguration;
|
|
12
|
+
/**
|
|
13
|
+
* Input connection: The array to select from.
|
|
14
|
+
*/
|
|
15
|
+
readonly array: FlowGraphDataConnection<T[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Input connection: The index to select.
|
|
18
|
+
*/
|
|
19
|
+
readonly index: FlowGraphDataConnection<FlowGraphNumber>;
|
|
20
|
+
/**
|
|
21
|
+
* Output connection: The selected element.
|
|
22
|
+
*/
|
|
23
|
+
readonly value: FlowGraphDataConnection<Nullable<T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Construct a FlowGraphArrayIndexBlock.
|
|
26
|
+
* @param config construction parameters
|
|
27
|
+
*/
|
|
28
|
+
constructor(config: IFlowGraphBlockConfiguration);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
_updateOutputs(context: FlowGraphContext): void;
|
|
33
|
+
/**
|
|
34
|
+
* Serializes this block
|
|
35
|
+
* @param serializationObject the object to serialize to
|
|
36
|
+
*/
|
|
37
|
+
serialize(serializationObject?: any): void;
|
|
38
|
+
getClassName(): string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { RichTypeAny } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
|
+
import { FlowGraphInteger } from "../../../CustomTypes/flowGraphInteger.js";
|
|
5
|
+
import { getNumericValue } from "../../../utils.js";
|
|
6
|
+
/**
|
|
7
|
+
* This simple Util block takes an array as input and selects a single element from it.
|
|
8
|
+
*/
|
|
9
|
+
export class FlowGraphArrayIndexBlock extends FlowGraphBlock {
|
|
10
|
+
/**
|
|
11
|
+
* Construct a FlowGraphArrayIndexBlock.
|
|
12
|
+
* @param config construction parameters
|
|
13
|
+
*/
|
|
14
|
+
constructor(config) {
|
|
15
|
+
super(config);
|
|
16
|
+
this.config = config;
|
|
17
|
+
this.array = this.registerDataInput("array", RichTypeAny);
|
|
18
|
+
this.index = this.registerDataInput("index", RichTypeAny, new FlowGraphInteger(-1));
|
|
19
|
+
this.value = this.registerDataOutput("value", RichTypeAny);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
_updateOutputs(context) {
|
|
25
|
+
const array = this.array.getValue(context);
|
|
26
|
+
const index = getNumericValue(this.index.getValue(context));
|
|
27
|
+
if (array && index >= 0 && index < array.length) {
|
|
28
|
+
this.value.setValue(array[index], context);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this.value.setValue(null, context);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Serializes this block
|
|
36
|
+
* @param serializationObject the object to serialize to
|
|
37
|
+
*/
|
|
38
|
+
serialize(serializationObject) {
|
|
39
|
+
super.serialize(serializationObject);
|
|
40
|
+
}
|
|
41
|
+
getClassName() {
|
|
42
|
+
return "FlowGraphArrayIndexBlock" /* FlowGraphBlockNames.ArrayIndex */;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
RegisterClass("FlowGraphArrayIndexBlock" /* FlowGraphBlockNames.ArrayIndex */, FlowGraphArrayIndexBlock);
|
|
46
|
+
//# sourceMappingURL=flowGraphArrayIndexBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphArrayIndexBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/flowGraphArrayIndexBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,mCAAsC;AAG/D,OAAO,EAAE,WAAW,EAAE,uCAA0C;AAEhE,OAAO,EAAE,aAAa,EAAE,sCAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,iDAAoD;AAE/E,OAAO,EAAE,eAAe,EAAE,0BAA6B;AAGvD;;GAEG;AACH,MAAM,OAAO,wBAAkC,SAAQ,cAAc;IAgBjE;;;OAGG;IACH,YAA4B,MAAoC;QAC5D,KAAK,CAAC,MAAM,CAAC,CAAC;QADU,WAAM,GAAN,MAAM,CAA8B;QAG5D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACa,cAAc,CAAC,OAAyB;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5D,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC9C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;IAED;;;OAGG;IACa,SAAS,CAAC,mBAAyB;QAC/C,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IACzC,CAAC;IAEe,YAAY;QACxB,uEAAsC;IAC1C,CAAC;CACJ;AAED,aAAa,kEAAiC,wBAAwB,CAAC,CAAC","sourcesContent":["import type { IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\nimport { RichTypeAny } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\nimport { RegisterClass } from \"core/Misc/typeStore\";\nimport { FlowGraphInteger } from \"core/FlowGraph/CustomTypes/flowGraphInteger\";\nimport type { FlowGraphNumber } from \"core/FlowGraph/utils\";\nimport { getNumericValue } from \"core/FlowGraph/utils\";\nimport type { Nullable } from \"core/types\";\n\n/**\n * This simple Util block takes an array as input and selects a single element from it.\n */\nexport class FlowGraphArrayIndexBlock<T = any> extends FlowGraphBlock {\n /**\n * Input connection: The array to select from.\n */\n public readonly array: FlowGraphDataConnection<T[]>;\n\n /**\n * Input connection: The index to select.\n */\n public readonly index: FlowGraphDataConnection<FlowGraphNumber>;\n\n /**\n * Output connection: The selected element.\n */\n public readonly value: FlowGraphDataConnection<Nullable<T>>;\n\n /**\n * Construct a FlowGraphArrayIndexBlock.\n * @param config construction parameters\n */\n constructor(public override config: IFlowGraphBlockConfiguration) {\n super(config);\n\n this.array = this.registerDataInput(\"array\", RichTypeAny);\n this.index = this.registerDataInput(\"index\", RichTypeAny, new FlowGraphInteger(-1));\n this.value = this.registerDataOutput(\"value\", RichTypeAny);\n }\n\n /**\n * @internal\n */\n public override _updateOutputs(context: FlowGraphContext): void {\n const array = this.array.getValue(context);\n const index = getNumericValue(this.index.getValue(context));\n if (array && index >= 0 && index < array.length) {\n this.value.setValue(array[index], context);\n } else {\n this.value.setValue(null, context);\n }\n }\n\n /**\n * Serializes this block\n * @param serializationObject the object to serialize to\n */\n public override serialize(serializationObject?: any): void {\n super.serialize(serializationObject);\n }\n\n public override getClassName(): string {\n return FlowGraphBlockNames.ArrayIndex;\n }\n}\n\nRegisterClass(FlowGraphBlockNames.ArrayIndex, FlowGraphArrayIndexBlock);\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
3
|
+
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
|
|
4
|
+
import type { FlowGraphContext } from "../../../flowGraphContext.js";
|
|
5
|
+
export type CodeExecutionFunction = (value: any, context: FlowGraphContext) => any;
|
|
6
|
+
/**
|
|
7
|
+
* This block takes in a function that is defined OUTSIDE of the flow graph and executes it.
|
|
8
|
+
* The function can be a normal function or an async function.
|
|
9
|
+
* The function's arguments will be the value of the input connection as the first variable, and the flow graph context as the second variable.
|
|
10
|
+
*/
|
|
11
|
+
export declare class FlowGraphCodeExecutionBlock extends FlowGraphBlock {
|
|
12
|
+
config: IFlowGraphBlockConfiguration;
|
|
13
|
+
/**
|
|
14
|
+
* Input connection: The function to execute.
|
|
15
|
+
*/
|
|
16
|
+
readonly executionFunction: FlowGraphDataConnection<CodeExecutionFunction>;
|
|
17
|
+
/**
|
|
18
|
+
* Input connection: The value to pass to the function.
|
|
19
|
+
*/
|
|
20
|
+
readonly value: FlowGraphDataConnection<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Output connection: The result of the function.
|
|
23
|
+
*/
|
|
24
|
+
readonly result: FlowGraphDataConnection<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Construct a FlowGraphCodeExecutionBlock.
|
|
27
|
+
* @param config construction parameters
|
|
28
|
+
*/
|
|
29
|
+
constructor(config: IFlowGraphBlockConfiguration);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
_updateOutputs(context: FlowGraphContext): void;
|
|
34
|
+
getClassName(): string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { RichTypeAny } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This block takes in a function that is defined OUTSIDE of the flow graph and executes it.
|
|
5
|
+
* The function can be a normal function or an async function.
|
|
6
|
+
* The function's arguments will be the value of the input connection as the first variable, and the flow graph context as the second variable.
|
|
7
|
+
*/
|
|
8
|
+
export class FlowGraphCodeExecutionBlock extends FlowGraphBlock {
|
|
9
|
+
/**
|
|
10
|
+
* Construct a FlowGraphCodeExecutionBlock.
|
|
11
|
+
* @param config construction parameters
|
|
12
|
+
*/
|
|
13
|
+
constructor(config) {
|
|
14
|
+
super(config);
|
|
15
|
+
this.config = config;
|
|
16
|
+
this.executionFunction = this.registerDataInput("function", RichTypeAny);
|
|
17
|
+
this.value = this.registerDataInput("value", RichTypeAny);
|
|
18
|
+
this.result = this.registerDataOutput("result", RichTypeAny);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
_updateOutputs(context) {
|
|
24
|
+
const func = this.executionFunction.getValue(context);
|
|
25
|
+
const value = this.value.getValue(context);
|
|
26
|
+
if (func) {
|
|
27
|
+
this.result.setValue(func(value, context), context);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
getClassName() {
|
|
31
|
+
return "FlowGraphCodeExecutionBlock" /* FlowGraphBlockNames.CodeExecution */;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=flowGraphCodeExecutionBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphCodeExecutionBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/flowGraphCodeExecutionBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,mCAAsC;AAE/D,OAAO,EAAE,WAAW,EAAE,uCAA0C;AAMhE;;;;GAIG;AACH,MAAM,OAAO,2BAA4B,SAAQ,cAAc;IAgB3D;;;OAGG;IACH,YAA4B,MAAoC;QAC5D,KAAK,CAAC,MAAM,CAAC,CAAC;QADU,WAAM,GAAN,MAAM,CAA8B;QAG5D,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACa,cAAc,CAAC,OAAyB;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC3C,IAAI,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;QACxD,CAAC;IACL,CAAC;IAEe,YAAY;QACxB,6EAAyC;IAC7C,CAAC;CACJ","sourcesContent":["import type { IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\nimport { RichTypeAny } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\n\nexport type CodeExecutionFunction = (value: any, context: FlowGraphContext) => any;\n\n/**\n * This block takes in a function that is defined OUTSIDE of the flow graph and executes it.\n * The function can be a normal function or an async function.\n * The function's arguments will be the value of the input connection as the first variable, and the flow graph context as the second variable.\n */\nexport class FlowGraphCodeExecutionBlock extends FlowGraphBlock {\n /**\n * Input connection: The function to execute.\n */\n public readonly executionFunction: FlowGraphDataConnection<CodeExecutionFunction>;\n\n /**\n * Input connection: The value to pass to the function.\n */\n public readonly value: FlowGraphDataConnection<any>;\n\n /**\n * Output connection: The result of the function.\n */\n public readonly result: FlowGraphDataConnection<any>;\n\n /**\n * Construct a FlowGraphCodeExecutionBlock.\n * @param config construction parameters\n */\n constructor(public override config: IFlowGraphBlockConfiguration) {\n super(config);\n\n this.executionFunction = this.registerDataInput(\"function\", RichTypeAny);\n this.value = this.registerDataInput(\"value\", RichTypeAny);\n this.result = this.registerDataOutput(\"result\", RichTypeAny);\n }\n\n /**\n * @internal\n */\n public override _updateOutputs(context: FlowGraphContext): void {\n const func = this.executionFunction.getValue(context);\n const value = this.value.getValue(context);\n if (func) {\n this.result.setValue(func(value, context), context);\n }\n }\n\n public override getClassName(): string {\n return FlowGraphBlockNames.CodeExecution;\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FlowGraphBlock, type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
|
|
2
|
+
import type { FlowGraphContext } from "../../../flowGraphContext.js";
|
|
3
|
+
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
|
|
4
|
+
/**
|
|
5
|
+
* A block that outputs elements from the context
|
|
6
|
+
*/
|
|
7
|
+
export declare class FlowGraphContextBlock extends FlowGraphBlock {
|
|
8
|
+
/**
|
|
9
|
+
* Output connection: The user variables from the context
|
|
10
|
+
*/
|
|
11
|
+
readonly userVariables: FlowGraphDataConnection<FlowGraphContext["userVariables"]>;
|
|
12
|
+
/**
|
|
13
|
+
* Output connection: The execution id from the context
|
|
14
|
+
*/
|
|
15
|
+
readonly executionId: FlowGraphDataConnection<FlowGraphContext["executionId"]>;
|
|
16
|
+
constructor(config?: IFlowGraphBlockConfiguration);
|
|
17
|
+
_updateOutputs(context: FlowGraphContext): void;
|
|
18
|
+
serialize(serializationObject?: any): void;
|
|
19
|
+
getClassName(): string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { RichTypeAny, RichTypeNumber } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
|
+
/**
|
|
5
|
+
* A block that outputs elements from the context
|
|
6
|
+
*/
|
|
7
|
+
export class FlowGraphContextBlock extends FlowGraphBlock {
|
|
8
|
+
constructor(config) {
|
|
9
|
+
super(config);
|
|
10
|
+
this.userVariables = this.registerDataOutput("userVariables", RichTypeAny);
|
|
11
|
+
this.executionId = this.registerDataOutput("executionId", RichTypeNumber);
|
|
12
|
+
}
|
|
13
|
+
_updateOutputs(context) {
|
|
14
|
+
this.userVariables.setValue(context.userVariables, context);
|
|
15
|
+
this.executionId.setValue(context.executionId, context);
|
|
16
|
+
}
|
|
17
|
+
serialize(serializationObject) {
|
|
18
|
+
super.serialize(serializationObject);
|
|
19
|
+
}
|
|
20
|
+
getClassName() {
|
|
21
|
+
return "FlowGraphContextBlock" /* FlowGraphBlockNames.Context */;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
RegisterClass("FlowGraphContextBlock" /* FlowGraphBlockNames.Context */, FlowGraphContextBlock);
|
|
25
|
+
//# sourceMappingURL=flowGraphContextBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphContextBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/flowGraphContextBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,mCAAsC;AAGlG,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,uCAA0C;AAEhF,OAAO,EAAE,aAAa,EAAE,sCAA4B;AAEpD;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IAWrD,YAAY,MAAqC;QAC7C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;QAC3E,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAC9E,CAAC;IAEe,cAAc,CAAC,OAAyB;QACpD,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAC5D,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEe,SAAS,CAAC,mBAAyB;QAC/C,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IACzC,CAAC;IAEe,YAAY;QACxB,iEAAmC;IACvC,CAAC;CACJ;AAED,aAAa,4DAA8B,qBAAqB,CAAC,CAAC","sourcesContent":["import { FlowGraphBlock, type IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\nimport { RichTypeAny, RichTypeNumber } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\nimport { RegisterClass } from \"core/Misc/typeStore\";\n\n/**\n * A block that outputs elements from the context\n */\nexport class FlowGraphContextBlock extends FlowGraphBlock {\n /**\n * Output connection: The user variables from the context\n */\n public readonly userVariables: FlowGraphDataConnection<FlowGraphContext[\"userVariables\"]>;\n\n /**\n * Output connection: The execution id from the context\n */\n public readonly executionId: FlowGraphDataConnection<FlowGraphContext[\"executionId\"]>;\n\n constructor(config?: IFlowGraphBlockConfiguration) {\n super(config);\n\n this.userVariables = this.registerDataOutput(\"userVariables\", RichTypeAny);\n this.executionId = this.registerDataOutput(\"executionId\", RichTypeNumber);\n }\n\n public override _updateOutputs(context: FlowGraphContext): void {\n this.userVariables.setValue(context.userVariables, context);\n this.executionId.setValue(context.executionId, context);\n }\n\n public override serialize(serializationObject?: any): void {\n super.serialize(serializationObject);\n }\n\n public override getClassName(): string {\n return FlowGraphBlockNames.Context;\n }\n}\n\nRegisterClass(FlowGraphBlockNames.Context, FlowGraphContextBlock);\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
3
|
+
import type { FlowGraphContext } from "../../../flowGraphContext.js";
|
|
4
|
+
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
|
|
5
|
+
/**
|
|
6
|
+
* A flow graph block that takes a function name, an object and an optional context as inputs and calls the function on the object.
|
|
7
|
+
*/
|
|
8
|
+
export declare class FlowGraphFunctionReferenceBlock extends FlowGraphBlock {
|
|
9
|
+
/**
|
|
10
|
+
* Input: The function name.
|
|
11
|
+
*/
|
|
12
|
+
readonly functionName: FlowGraphDataConnection<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Input: The object to get the function from.
|
|
15
|
+
* This can be a constructed class or a collection of stand-alone functions.
|
|
16
|
+
*/
|
|
17
|
+
readonly object: FlowGraphDataConnection<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Input: The context to call the function with.
|
|
20
|
+
* This is optional. If not provided, the function will be bound to null.
|
|
21
|
+
*/
|
|
22
|
+
readonly context: FlowGraphDataConnection<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Output: The function referenced by functionName from the object, bound to the context.
|
|
25
|
+
*/
|
|
26
|
+
readonly output: FlowGraphDataConnection<Function>;
|
|
27
|
+
constructor(
|
|
28
|
+
/**
|
|
29
|
+
* the configuration of the block
|
|
30
|
+
*/
|
|
31
|
+
config?: IFlowGraphBlockConfiguration);
|
|
32
|
+
_updateOutputs(context: FlowGraphContext): void;
|
|
33
|
+
getClassName(): string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { RichTypeAny, RichTypeString } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
|
+
/**
|
|
5
|
+
* A flow graph block that takes a function name, an object and an optional context as inputs and calls the function on the object.
|
|
6
|
+
*/
|
|
7
|
+
export class FlowGraphFunctionReferenceBlock extends FlowGraphBlock {
|
|
8
|
+
constructor(
|
|
9
|
+
/**
|
|
10
|
+
* the configuration of the block
|
|
11
|
+
*/
|
|
12
|
+
config) {
|
|
13
|
+
super(config);
|
|
14
|
+
this.functionName = this.registerDataInput("functionName", RichTypeString);
|
|
15
|
+
this.object = this.registerDataInput("object", RichTypeAny);
|
|
16
|
+
this.context = this.registerDataInput("context", RichTypeAny, null);
|
|
17
|
+
this.output = this.registerDataOutput("output", RichTypeAny);
|
|
18
|
+
}
|
|
19
|
+
_updateOutputs(context) {
|
|
20
|
+
const functionName = this.functionName.getValue(context);
|
|
21
|
+
const object = this.object.getValue(context);
|
|
22
|
+
const contextValue = this.context.getValue(context);
|
|
23
|
+
if (object && functionName) {
|
|
24
|
+
const func = object[functionName];
|
|
25
|
+
if (func && typeof func === "function") {
|
|
26
|
+
this.output.setValue(func.bind(contextValue), context);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
getClassName() {
|
|
31
|
+
return "FlowGraphFunctionReference" /* FlowGraphBlockNames.FunctionReference */;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
RegisterClass("FlowGraphFunctionReference" /* FlowGraphBlockNames.FunctionReference */, FlowGraphFunctionReferenceBlock);
|
|
35
|
+
//# sourceMappingURL=flowGraphFunctionReferenceBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphFunctionReferenceBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/flowGraphFunctionReferenceBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,mCAAsC;AAG/D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,uCAA0C;AAChF,OAAO,EAAE,aAAa,EAAE,sCAA4B;AAGpD;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,cAAc;IAoB/D;IACI;;OAEG;IACH,MAAqC;QAErC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;QAC3E,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QACpE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACjE,CAAC;IAEe,cAAc,CAAC,OAAyB;QACpD,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,MAAM,IAAI,YAAY,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;YAClC,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,CAAC;gBACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;YAC3D,CAAC;QACL,CAAC;IACL,CAAC;IAEe,YAAY;QACxB,gFAA6C;IACjD,CAAC;CACJ;AAED,aAAa,2EAAwC,+BAA+B,CAAC,CAAC","sourcesContent":["import type { IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\nimport { RichTypeAny, RichTypeString } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { RegisterClass } from \"core/Misc/typeStore\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\n\n/**\n * A flow graph block that takes a function name, an object and an optional context as inputs and calls the function on the object.\n */\nexport class FlowGraphFunctionReferenceBlock extends FlowGraphBlock {\n /**\n * Input: The function name.\n */\n public readonly functionName: FlowGraphDataConnection<string>;\n /**\n * Input: The object to get the function from.\n * This can be a constructed class or a collection of stand-alone functions.\n */\n public readonly object: FlowGraphDataConnection<any>;\n /**\n * Input: The context to call the function with.\n * This is optional. If not provided, the function will be bound to null.\n */\n public readonly context: FlowGraphDataConnection<any>;\n /**\n * Output: The function referenced by functionName from the object, bound to the context.\n */\n public readonly output: FlowGraphDataConnection<Function>;\n\n constructor(\n /**\n * the configuration of the block\n */\n config?: IFlowGraphBlockConfiguration\n ) {\n super(config);\n this.functionName = this.registerDataInput(\"functionName\", RichTypeString);\n this.object = this.registerDataInput(\"object\", RichTypeAny);\n this.context = this.registerDataInput(\"context\", RichTypeAny, null);\n this.output = this.registerDataOutput(\"output\", RichTypeAny);\n }\n\n public override _updateOutputs(context: FlowGraphContext) {\n const functionName = this.functionName.getValue(context);\n const object = this.object.getValue(context);\n const contextValue = this.context.getValue(context);\n if (object && functionName) {\n const func = object[functionName];\n if (func && typeof func === \"function\") {\n this.output.setValue(func.bind(contextValue), context);\n }\n }\n }\n\n public override getClassName(): string {\n return FlowGraphBlockNames.FunctionReference;\n }\n}\n\nRegisterClass(FlowGraphBlockNames.FunctionReference, FlowGraphFunctionReferenceBlock);\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
3
|
+
import type { FlowGraphContext } from "../../../flowGraphContext.js";
|
|
4
|
+
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
|
|
5
|
+
import { FlowGraphInteger } from "../../../CustomTypes/flowGraphInteger.js";
|
|
6
|
+
/**
|
|
7
|
+
* This block takes an object as input and an array and returns the index of the object in the array.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FlowGraphIndexOfBlock<T = any> extends FlowGraphBlock {
|
|
10
|
+
config: IFlowGraphBlockConfiguration;
|
|
11
|
+
/**
|
|
12
|
+
* Input connection: The object to find in the array.
|
|
13
|
+
*/
|
|
14
|
+
readonly object: FlowGraphDataConnection<T>;
|
|
15
|
+
/**
|
|
16
|
+
* Input connection: The array to search in.
|
|
17
|
+
*/
|
|
18
|
+
readonly array: FlowGraphDataConnection<T[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Output connection: The index of the object in the array.
|
|
21
|
+
* -1 if not found!
|
|
22
|
+
*/
|
|
23
|
+
readonly index: FlowGraphDataConnection<FlowGraphInteger>;
|
|
24
|
+
/**
|
|
25
|
+
* Construct a FlowGraphIndexOfBlock.
|
|
26
|
+
* @param config construction parameters
|
|
27
|
+
*/
|
|
28
|
+
constructor(config: IFlowGraphBlockConfiguration);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
_updateOutputs(context: FlowGraphContext): void;
|
|
33
|
+
/**
|
|
34
|
+
* Serializes this block
|
|
35
|
+
* @param serializationObject the object to serialize to
|
|
36
|
+
*/
|
|
37
|
+
serialize(serializationObject?: any): void;
|
|
38
|
+
getClassName(): string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FlowGraphBlock } from "../../../flowGraphBlock.js";
|
|
2
|
+
import { RichTypeAny, RichTypeFlowGraphInteger } from "../../../flowGraphRichTypes.js";
|
|
3
|
+
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
|
+
import { FlowGraphInteger } from "../../../CustomTypes/flowGraphInteger.js";
|
|
5
|
+
/**
|
|
6
|
+
* This block takes an object as input and an array and returns the index of the object in the array.
|
|
7
|
+
*/
|
|
8
|
+
export class FlowGraphIndexOfBlock extends FlowGraphBlock {
|
|
9
|
+
/**
|
|
10
|
+
* Construct a FlowGraphIndexOfBlock.
|
|
11
|
+
* @param config construction parameters
|
|
12
|
+
*/
|
|
13
|
+
constructor(config) {
|
|
14
|
+
super(config);
|
|
15
|
+
this.config = config;
|
|
16
|
+
this.object = this.registerDataInput("object", RichTypeAny);
|
|
17
|
+
this.array = this.registerDataInput("array", RichTypeAny);
|
|
18
|
+
this.index = this.registerDataOutput("index", RichTypeFlowGraphInteger, new FlowGraphInteger(-1));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
_updateOutputs(context) {
|
|
24
|
+
const object = this.object.getValue(context);
|
|
25
|
+
const array = this.array.getValue(context);
|
|
26
|
+
if (array) {
|
|
27
|
+
this.index.setValue(new FlowGraphInteger(array.indexOf(object)), context);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Serializes this block
|
|
32
|
+
* @param serializationObject the object to serialize to
|
|
33
|
+
*/
|
|
34
|
+
serialize(serializationObject) {
|
|
35
|
+
super.serialize(serializationObject);
|
|
36
|
+
}
|
|
37
|
+
getClassName() {
|
|
38
|
+
return "FlowGraphIndexOfBlock" /* FlowGraphBlockNames.IndexOf */;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
RegisterClass("FlowGraphIndexOfBlock" /* FlowGraphBlockNames.IndexOf */, FlowGraphIndexOfBlock);
|
|
42
|
+
//# sourceMappingURL=flowGraphIndexOfBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowGraphIndexOfBlock.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/flowGraphIndexOfBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,mCAAsC;AAG/D,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,uCAA0C;AAE1F,OAAO,EAAE,aAAa,EAAE,sCAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,iDAAoD;AAE/E;;GAEG;AACH,MAAM,OAAO,qBAA+B,SAAQ,cAAc;IAiB9D;;;OAGG;IACH,YAA4B,MAAoC;QAC5D,KAAK,CAAC,MAAM,CAAC,CAAC;QADU,WAAM,GAAN,MAAM,CAA8B;QAG5D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,EAAE,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACa,cAAc,CAAC,OAAyB;QACpD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC3C,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IAED;;;OAGG;IACa,SAAS,CAAC,mBAAyB;QAC/C,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IACzC,CAAC;IAEe,YAAY;QACxB,iEAAmC;IACvC,CAAC;CACJ;AAED,aAAa,4DAA8B,qBAAqB,CAAC,CAAC","sourcesContent":["import type { IFlowGraphBlockConfiguration } from \"core/FlowGraph/flowGraphBlock\";\nimport { FlowGraphBlock } from \"core/FlowGraph/flowGraphBlock\";\nimport type { FlowGraphContext } from \"core/FlowGraph/flowGraphContext\";\nimport type { FlowGraphDataConnection } from \"core/FlowGraph/flowGraphDataConnection\";\nimport { RichTypeAny, RichTypeFlowGraphInteger } from \"core/FlowGraph/flowGraphRichTypes\";\nimport { FlowGraphBlockNames } from \"../../flowGraphBlockNames\";\nimport { RegisterClass } from \"core/Misc/typeStore\";\nimport { FlowGraphInteger } from \"core/FlowGraph/CustomTypes/flowGraphInteger\";\n\n/**\n * This block takes an object as input and an array and returns the index of the object in the array.\n */\nexport class FlowGraphIndexOfBlock<T = any> extends FlowGraphBlock {\n /**\n * Input connection: The object to find in the array.\n */\n public readonly object: FlowGraphDataConnection<T>;\n\n /**\n * Input connection: The array to search in.\n */\n public readonly array: FlowGraphDataConnection<T[]>;\n\n /**\n * Output connection: The index of the object in the array.\n * -1 if not found!\n */\n public readonly index: FlowGraphDataConnection<FlowGraphInteger>;\n\n /**\n * Construct a FlowGraphIndexOfBlock.\n * @param config construction parameters\n */\n constructor(public override config: IFlowGraphBlockConfiguration) {\n super(config);\n\n this.object = this.registerDataInput(\"object\", RichTypeAny);\n this.array = this.registerDataInput(\"array\", RichTypeAny);\n this.index = this.registerDataOutput(\"index\", RichTypeFlowGraphInteger, new FlowGraphInteger(-1));\n }\n\n /**\n * @internal\n */\n public override _updateOutputs(context: FlowGraphContext): void {\n const object = this.object.getValue(context);\n const array = this.array.getValue(context);\n if (array) {\n this.index.setValue(new FlowGraphInteger(array.indexOf(object)), context);\n }\n }\n\n /**\n * Serializes this block\n * @param serializationObject the object to serialize to\n */\n public override serialize(serializationObject?: any): void {\n super.serialize(serializationObject);\n }\n\n public override getClassName(): string {\n return FlowGraphBlockNames.IndexOf;\n }\n}\n\nRegisterClass(FlowGraphBlockNames.IndexOf, FlowGraphIndexOfBlock);\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./flowGraphContextBlock.js";
|
|
2
|
+
export * from "./flowGraphArrayIndexBlock.js";
|
|
3
|
+
export * from "./flowGraphCodeExecutionBlock.js";
|
|
4
|
+
export * from "./flowGraphIndexOfBlock.js";
|
|
5
|
+
export * from "./flowGraphFunctionReferenceBlock.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../dev/core/src/FlowGraph/Blocks/Data/Utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC","sourcesContent":["export * from \"./flowGraphContextBlock\";\nexport * from \"./flowGraphArrayIndexBlock\";\nexport * from \"./flowGraphCodeExecutionBlock\";\nexport * from \"./flowGraphIndexOfBlock\";\nexport * from \"./flowGraphFunctionReferenceBlock\";\n"]}
|
|
@@ -4,7 +4,6 @@ import type { FlowGraphContext } from "../../flowGraphContext";
|
|
|
4
4
|
import type { IFlowGraphBlockConfiguration } from "../../flowGraphBlock";
|
|
5
5
|
import { FlowGraphCachedOperationBlock } from "./flowGraphCachedOperationBlock";
|
|
6
6
|
/**
|
|
7
|
-
* @experimental
|
|
8
7
|
* The base block for all binary operation blocks. Receives an input of type
|
|
9
8
|
* LeftT, one of type RightT, and outputs a value of type ResultT.
|
|
10
9
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FlowGraphCachedOperationBlock } from "./flowGraphCachedOperationBlock.js";
|
|
2
2
|
/**
|
|
3
|
-
* @experimental
|
|
4
3
|
* The base block for all binary operation blocks. Receives an input of type
|
|
5
4
|
* LeftT, one of type RightT, and outputs a value of type ResultT.
|
|
6
5
|
*/
|
|
@@ -18,7 +17,9 @@ export class FlowGraphBinaryOperationBlock extends FlowGraphCachedOperationBlock
|
|
|
18
17
|
* @returns the result of the operation
|
|
19
18
|
*/
|
|
20
19
|
_doOperation(context) {
|
|
21
|
-
|
|
20
|
+
const a = this.a.getValue(context);
|
|
21
|
+
const b = this.b.getValue(context);
|
|
22
|
+
return this._operation(a, b);
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Gets the class name of this block
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowGraphBinaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF
|
|
1
|
+
{"version":3,"file":"flowGraphBinaryOperationBlock.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF;;;GAGG;AACH,MAAM,OAAO,6BAAsD,SAAQ,6BAAsC;IAU7G,YACI,YAA6B,EAC7B,aAA+B,EAC/B,cAAiC,EACzB,UAAmD,EACnD,UAAkB,EAC1B,MAAqC;QAErC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAJtB,eAAU,GAAV,UAAU,CAAyC;QACnD,eAAU,GAAV,UAAU,CAAQ;QAI1B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QACnD,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACa,YAAY,CAAC,OAAyB;QAClD,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAED;;;OAGG;IACa,YAAY;QACxB,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 * The base block for all binary operation blocks. Receives an input of type\r\n * LeftT, one of type RightT, and outputs a value of type ResultT.\r\n */\r\nexport class FlowGraphBinaryOperationBlock<LeftT, RightT, ResultT> extends FlowGraphCachedOperationBlock<ResultT> {\r\n /**\r\n * First input of this block\r\n */\r\n a: FlowGraphDataConnection<LeftT>;\r\n /**\r\n * Second input of this block\r\n */\r\n b: FlowGraphDataConnection<RightT>;\r\n\r\n constructor(\r\n leftRichType: RichType<LeftT>,\r\n rightRichType: RichType<RightT>,\r\n resultRichType: RichType<ResultT>,\r\n private _operation: (left: LeftT, right: RightT) => ResultT,\r\n private _className: string,\r\n config?: IFlowGraphBlockConfiguration\r\n ) {\r\n super(resultRichType, config);\r\n this.a = this.registerDataInput(\"a\", leftRichType);\r\n this.b = this.registerDataInput(\"b\", rightRichType);\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 const a = this.a.getValue(context);\r\n const b = this.b.getValue(context);\r\n return this._operation(a, b);\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 override getClassName(): string {\r\n return this._className;\r\n }\r\n}\r\n"]}
|
|
@@ -4,7 +4,7 @@ import type { FlowGraphContext } from "../../flowGraphContext";
|
|
|
4
4
|
import type { FlowGraphDataConnection } from "../../flowGraphDataConnection";
|
|
5
5
|
import type { RichType } from "../../flowGraphRichTypes";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* A block that will cache the result of an operation and deliver it as an output.
|
|
8
8
|
*/
|
|
9
9
|
export declare abstract class FlowGraphCachedOperationBlock<OutputT> extends FlowGraphBlock {
|
|
10
10
|
/**
|
|
@@ -2,7 +2,7 @@ import { FlowGraphBlock } from "../../flowGraphBlock.js";
|
|
|
2
2
|
const cacheName = "cachedOperationValue";
|
|
3
3
|
const cacheExecIdName = "cachedExecutionId";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* A block that will cache the result of an operation and deliver it as an output.
|
|
6
6
|
*/
|
|
7
7
|
export class FlowGraphCachedOperationBlock extends FlowGraphBlock {
|
|
8
8
|
constructor(outputRichType, config) {
|
|
@@ -10,9 +10,9 @@ export class FlowGraphCachedOperationBlock extends FlowGraphBlock {
|
|
|
10
10
|
this.value = this.registerDataOutput("value", outputRichType);
|
|
11
11
|
}
|
|
12
12
|
_updateOutputs(context) {
|
|
13
|
-
const cachedExecutionId = context._getExecutionVariable(this, cacheExecIdName);
|
|
14
|
-
const cachedValue = context._getExecutionVariable(this, cacheName);
|
|
15
|
-
if (cachedValue !== undefined && cachedExecutionId === context.executionId) {
|
|
13
|
+
const cachedExecutionId = context._getExecutionVariable(this, cacheExecIdName, -1);
|
|
14
|
+
const cachedValue = context._getExecutionVariable(this, cacheName, null);
|
|
15
|
+
if (cachedValue !== undefined && cachedValue !== null && cachedExecutionId === context.executionId) {
|
|
16
16
|
this.value.setValue(cachedValue, context);
|
|
17
17
|
}
|
|
18
18
|
else {
|