import { ApplyParams, TinoeNode } from '@tinoe/glc'; import { Animation, TRANSFORM_TYPE, LocusTransformOptions, InterpolationTransformOptions, InterpolationTransformOptionsWithEndValue, InterpolationTransformOptionsWithCSS } from './Animation'; import { BasePlugin } from '@tinoe/glb'; export * from './Animation'; export declare class AnimationManager extends BasePlugin> { private _scene; /** * Root animations - supply global animation controll ability */ private _animations; private _script; get animations(): Set; apply({ scene }: ApplyParams): void; /** * 销毁 */ destroy(): void; /** * 遍历所有的animation * @param fn * @returns */ forEach(fn: (animation: Animation) => void): void; /** * 一次性添加多个animations,使用同样的参数 * @param animations * @param options */ add(...animations: Animation[]): void; /** * 一次性添加多个animations,使用同样的参数 * @param animations * @param options */ remove(...animations: Animation[]): void; /** * 加入动画池,且replay * @param animations */ play(...animations: Animation[]): void; /** * 清除所有动画 */ clear(): void; /** * reset and play */ playAll(): void; /** * reset and play */ stopAll(): void; /** * 将所有动画根节点的play状态置为播放 */ resumeAll(): void; /** * 将所有动画根节点的play状态置为暂停 */ pauseAll(): void; /** * 将所有动画根节点跳到某一帧 */ jumpAll(frameTime: number): void; /** * update all animations and construct new animations which are not over yet * only once mode animation can be over * @param deltaTime - delta time between last update and this update */ update: (deltaTime: number) => void; /** * add once animation * @param clip animation clip * @param param1 * @returns */ private _transform; /** * 用轨迹方程的形式创建一次性平移动画 * @param node * @param options * @returns */ translateL(node: K, options: LocusTransformOptions): Animation; /** * 用关键帧的形式创建一次性平移动画 * @param node * @param options * @returns */ translateF(node: K, options: InterpolationTransformOptions): Animation; /** * 用终值的形式创建一次性平移动画 * @param node * @param options * @returns */ translateF(node: K, options: InterpolationTransformOptionsWithEndValue): Animation; /** * 用轨迹方程的形式创建一次性旋转动画 * @param node * @param options * @returns */ rotateL(node: K, options: LocusTransformOptions): Animation; /** * 用关键帧的形式创建一次性旋转动画 * @param node * @param options * @returns */ rotateF(node: K, options: InterpolationTransformOptions): Animation; /** * 用终值的形式创建一次性旋转动画 * @param node * @param options * @returns */ rotateF(node: K, options: InterpolationTransformOptionsWithEndValue): Animation; /** * 用轨迹方程的形式创建一次性缩放动画 * @param node * @param options * @returns */ scaleL(node: K, options: LocusTransformOptions): Animation; /** * 用关键帧的形式创建一次性缩放动画 * @param node * @param options * @returns */ scaleF(node: K, options: InterpolationTransformOptions): Animation; /** * 用终值的形式创建一次性缩放动画 * @param node * @param options * @returns */ scaleF(node: K, options: InterpolationTransformOptionsWithEndValue): Animation; animateF(node: K, options: InterpolationTransformOptionsWithCSS): Animation; }