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.28 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"; /** * This block debounces the execution of a input, i.e. ensures that the input is only executed once every X times */ export declare class FlowGraphDebounceBlock extends FlowGraphExecutionBlockWithOutSignal { /** * Input: The number of times the input must be executed before the onDone signal is activated */ readonly count: FlowGraphDataConnection<number>; /** * Input: Resets the debounce counter */ readonly reset: FlowGraphSignalConnection; /** * Output: The current count of the debounce counter */ readonly currentCount: FlowGraphDataConnection<number>; constructor(config?: IFlowGraphBlockConfiguration); _execute(context: FlowGraphContext, callingSignal: FlowGraphSignalConnection): void; /** * @returns class name of the block. */ getClassName(): string; }