UNPKG

@polygonjs/polygonjs

Version:

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

42 lines (41 loc) 2.11 kB
/** * shows controls to play, reset and seek an animation setup * */ import { TypedAnimNode } from './_Base'; import { TimelineBuilder } from '../../../core/animation/TimelineBuilder'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { AnimType } from '../../poly/registers/nodes/types/Anim'; declare class PlayAnimParamsConfig extends NodeParamsConfig { /** @param play the animations */ play: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BUTTON>; /** @param pause the animations */ pause: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BUTTON>; /** @param reset the animations */ reset: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BUTTON>; /** @param sets if the animations created can be stopped when a new animation in generated on the same property */ stoppable: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param toggle to see debug infos printed in the console */ debug: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param seek */ seek: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; } export declare class PlayAnimNode extends TypedAnimNode<PlayAnimParamsConfig> { paramsConfig: PlayAnimParamsConfig; gsap: typeof gsap | undefined; static type(): AnimType; initializeNode(): void; cook(inputContents: TimelineBuilder[]): void; private _timeline; timelineBuilder(inputIndex: number): Promise<TimelineBuilder | undefined>; private _playFromInput; play(): Promise<void>; reset(): Promise<void>; pause(): Promise<void>; seek(): Promise<void>; static PARAM_CALLBACK_play(node: PlayAnimNode): void; static PARAM_CALLBACK_pause(node: PlayAnimNode): void; static PARAM_CALLBACK_reset(node: PlayAnimNode): void; static PARAM_CALLBACK_seek(node: PlayAnimNode): void; } export {};