UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

40 lines (39 loc) 1.32 kB
import type { FlowGraphContext } from "../../flowGraphContext.js"; import { FlowGraphBlock } from "../../flowGraphBlock.js"; import type { FlowGraphDataConnection } from "../../flowGraphDataConnection.js"; import type { IFlowGraphBlockConfiguration } from "../../flowGraphBlock.js"; /** * Block that returns a value based on a condition. */ export declare class FlowGraphConditionalDataBlock<T> extends FlowGraphBlock { /** * Input connection: The condition to check. */ readonly condition: FlowGraphDataConnection<boolean>; /** * Input connection: The value to return if the condition is true. */ readonly onTrue: FlowGraphDataConnection<T>; /** * Input connection: The value to return if the condition is false. */ readonly onFalse: FlowGraphDataConnection<T>; /** * Output connection: The value that was returned. */ readonly output: FlowGraphDataConnection<T>; /** * Creates a new instance of the block * @param config optional configuration for this block */ constructor(config?: IFlowGraphBlockConfiguration); /** * @internal */ _updateOutputs(context: FlowGraphContext): void; /** * Gets the class name of this block * @returns the class name */ getClassName(): string; }