UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

27 lines (26 loc) 1.06 kB
/** * Sets a limit to how many events can be processed. * * */ import { TypedEventNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { EventContext } from '../../../core/event/EventContextType'; declare class LimitEventParamsConfig extends NodeParamsConfig { /** @param max number of events that can be processed */ maxCount: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; /** @param resets the count */ reset: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BUTTON>; } export declare class LimitEventNode extends TypedEventNode<LimitEventParamsConfig> { paramsConfig: LimitEventParamsConfig; static type(): string; private _processCount; private _lastDispatched; initializeNode(): void; processEvent(eventContext: EventContext<Event>): void; private processEventTrigger; private processEventReset; static PARAM_CALLBACK_reset(node: LimitEventNode): void; } export {};