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.

44 lines (43 loc) 1.45 kB
import { FlowGraphBlock } from "../../flowGraphBlock.js"; import type { FlowGraphContext } from "../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../flowGraphDataConnection.js"; import type { IFlowGraphBlockConfiguration } from "../../flowGraphBlock.js"; /** * Configuration for a constant block. */ export interface IFlowGraphConstantBlockConfiguration<T> extends IFlowGraphBlockConfiguration { /** * The value of the constant. */ value: T; } /** * Block that returns a constant value. */ export declare class FlowGraphConstantBlock<T> extends FlowGraphBlock { /** * the configuration of the block */ config: IFlowGraphConstantBlockConfiguration<T>; /** * Output connection: The constant value. */ readonly output: FlowGraphDataConnection<T>; constructor( /** * the configuration of the block */ config: IFlowGraphConstantBlockConfiguration<T>); _updateOutputs(context: FlowGraphContext): void; /** * Gets the class name of this block * @returns the class name */ getClassName(): string; /** * Serializes this block * @param serializationObject the object to serialize to * @param valueSerializeFunction the function to use to serialize the value */ serialize(serializationObject?: any, valueSerializeFunction?: (key: string, value: any, serializationObject: any) => any): void; }