Class FlowGraphCodeExecutionBlock
Hierarchy (View Summary)
- WebXRSpatialLayerType
- FlowGraphCodeExecutionBlock
Index
Constructors
constructor
-
new FlowGraphCodeExecutionBlock(
config: IFlowGraphBlockConfiguration,
): FlowGraphCodeExecutionBlockConstruct a FlowGraphCodeExecutionBlock.
Parameters
- config: IFlowGraphBlockConfiguration
construction parameters
Returns FlowGraphCodeExecutionBlock
- config: IFlowGraphBlockConfiguration
Properties
config
config: IFlowGraphBlockConfiguration
construction parameters
Readonlyexecution Function
Input connection: The function to execute.
Readonlyresult
result: FlowGraphDataConnection<any>
Output connection: The result of the function.
Readonlyvalue
value: FlowGraphDataConnection<any>
Input connection: The value to pass to the function.
This block takes in a function that is defined OUTSIDE of the flow graph and executes it. The function can be a normal function or an async function. 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.