UNPKG

polygonjs-engine

Version:

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

54 lines (53 loc) 2.78 kB
/** * Can be triggered when nodes have cooked or to cook specific nodes. * * */ import { TypedEventNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class NodeCookEventParamsConfig extends NodeParamsConfig { /** @param mask to select which nodes this will cook or listen to */ mask: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>; /** @param forces cook of nodes mentioned in the mask param */ force: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; /** @param defines if the nodes should cook one after the other or in parallel */ cookMode: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param batch size */ batchSize: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; sep: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.SEPARATOR>; /** @param updates the list of nodes from the mask parameter. This can be useful if nodes are added or removed from the scene */ updateResolve: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BUTTON>; /** @param prints the list of nodes the mask resolves to to the console. Useful for debugging */ printResolve: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BUTTON>; } export declare class NodeCookEventNode extends TypedEventNode<NodeCookEventParamsConfig> { params_config: NodeCookEventParamsConfig; static type(): Readonly<'nodeCook'>; static readonly INPUT_TRIGGER = "trigger"; static readonly OUTPUT_FIRST_NODE = "first"; static readonly OUTPUT_EACH_NODE = "each"; static readonly OUTPUT_ALL_NODES = "all"; private _resolved_nodes; initializeNode(): void; trigger(): void; cook(): void; private process_event_trigger; private _cook_nodes_with_mode; private _cook_nodes_all_together; private _cook_nodes_batch; private _cook_nodes; private _cook_node; static PARAM_CALLBACK_update_resolved_nodes(node: NodeCookEventNode): void; private _update_resolved_nodes; private _dispatched_first_node_cooked; private _dispatched_all_nodes_cooked; private _cook_state_by_node_id; private _reset; private _all_nodes_have_cooked; private _on_node_cook_complete_bound; private _on_node_cook_complete; static PARAM_CALLBACK_update_resolve(node: NodeCookEventNode): void; static PARAM_CALLBACK_print_resolve(node: NodeCookEventNode): void; private print_resolve; } export {};