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.

29 lines (28 loc) 1.25 kB
import type { FlowGraphContext } from "../../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js"; import type { FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js"; import { FlowGraphExecutionBlockWithOutSignal } from "../../../flowGraphExecutionBlockWithOutSignal.js"; import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; /** * A block that throttles the execution of its output flow. */ export declare class FlowGraphThrottleBlock extends FlowGraphExecutionBlockWithOutSignal { /** * Input connection: The duration of the throttle, in seconds. */ readonly duration: FlowGraphDataConnection<number>; /** * Input connection: Resets the throttle. */ readonly reset: FlowGraphSignalConnection; /** * Output connection: The time remaining before the throttle is triggering again, in seconds. */ readonly lastRemainingTime: FlowGraphDataConnection<number>; constructor(config?: IFlowGraphBlockConfiguration); _execute(context: FlowGraphContext, callingSignal: FlowGraphSignalConnection): void; /** * @returns class name of the block. */ getClassName(): string; }