/** * An AnimTrack stores the curve data necessary to animate a set of target nodes. It can be linked * to the nodes it should animate using the {@link AnimComponent#assignAnimation} method. * * @category Animation */ export class AnimTrack { /** * This AnimTrack can be used as a placeholder track when creating a state graph before having all associated animation data available. * * @type {AnimTrack} */ static EMPTY: AnimTrack; /** * Create a new AnimTrack instance. * * @param {string} name - The track name. * @param {number} duration - The duration of the track in seconds. * @param {import('./anim-data.js').AnimData[]} inputs - List of curve key data. * @param {import('./anim-data.js').AnimData[]} outputs - List of curve value data. * @param {import('./anim-curve.js').AnimCurve[]} curves - The list of curves. * @param {AnimEvents} animEvents - A sequence of animation events. * @ignore */ constructor(name: string, duration: number, inputs: import("./anim-data.js").AnimData[], outputs: import("./anim-data.js").AnimData[], curves: import("./anim-curve.js").AnimCurve[], animEvents?: AnimEvents); _name: string; _duration: number; _inputs: import("./anim-data.js").AnimData[]; _outputs: import("./anim-data.js").AnimData[]; _curves: import("./anim-curve.js").AnimCurve[]; _animEvents: AnimEvents; /** * Gets the name of the AnimTrack. * * @type {string} */ get name(): string; /** * Gets the duration of the AnimTrack. * * @type {number} */ get duration(): number; /** * Gets the list of curve key data contained in the AnimTrack. * * @type {import('./anim-data.js').AnimData[]} */ get inputs(): import("./anim-data.js").AnimData[]; /** * Gets the list of curve values contained in the AnimTrack. * * @type {import('./anim-data.js').AnimData[]} */ get outputs(): import("./anim-data.js").AnimData[]; /** * Gets the list of curves contained in the AnimTrack. * * @type {import('./anim-curve.js').AnimCurve[]} */ get curves(): import("./anim-curve.js").AnimCurve[]; /** * Sets the animation events that will fire during the playback of this anim track. * * @type {AnimEvents} */ set events(animEvents: AnimEvents); /** * Gets the animation events that will fire during the playback of this anim track. * * @type {AnimEvents} */ get events(): AnimEvents; eval(time: any, snapshot: any): void; } import { AnimEvents } from './anim-events.js';