UNPKG

polygonjs-engine

Version:

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

36 lines (35 loc) 1.51 kB
/** * Starts and pauses animations * * */ import { TypedEventNode } from './_Base'; import { EventContext } from '../../scene/utils/events/_BaseEventsController'; export declare enum AnimationEventOutput { START = "start", COMPLETE = "completed" } import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class AnimationEventParamsConfig extends NodeParamsConfig { /** @parm animation node */ animation: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.NODE_PATH>; /** @parm presses to play the animation */ play: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BUTTON>; /** @parm presses to pause the animation */ pause: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BUTTON>; } export declare class AnimationEventNode extends TypedEventNode<AnimationEventParamsConfig> { params_config: AnimationEventParamsConfig; static type(): string; private _timeline_builder; private _timeline; initializeNode(): void; process_event(event_context: EventContext<Event>): void; static PARAM_CALLBACK_play(node: AnimationEventNode): void; static PARAM_CALLBACK_pause(node: AnimationEventNode): void; private _play; private _pause; trigger_animation_started(event_context: EventContext<Event>): void; trigger_animation_completed(event_context: EventContext<Event>): void; } export {};