Files
2026-08-16 14:58:47 +08:00

23 lines
747 B
TypeScript

/**
* Animation descriptor registry — the versioned, declarative animations both
* the app effect components and the video exporter interpret.
*/
import type { AnimationDescriptor } from './types';
import { spotlightV1 } from './spotlight';
import { laserV1 } from './laser';
export * from './types';
export { spotlightV1 } from './spotlight';
export { laserV1 } from './laser';
/** All shipped descriptors, keyed by their versioned id. */
export const DESCRIPTORS: Record<string, AnimationDescriptor> = {
'spotlight.v1': spotlightV1,
'laser.v1': laserV1,
};
/** Look up a descriptor by its versioned id (e.g. 'spotlight.v1'). */
export function getDescriptor(id: string): AnimationDescriptor | undefined {
return DESCRIPTORS[id];
}