realm-loader-npm
Version:
A comprehensive collection of 14 beautiful circle animations with performance optimization, presets, themes, and React/Vue components
43 lines • 1.69 kB
TypeScript
import { AnimationConfig, AnimationType } from './types';
export interface AnimationPreset {
name: string;
description: string;
config: AnimationConfig;
category: 'loading' | 'decorative' | 'scientific' | 'artistic' | 'minimal';
tags: string[];
}
export interface Theme {
name: string;
description: string;
colors: {
primary: string;
secondary: string;
accent: string;
background: string;
};
opacity: number;
speed: number;
}
export declare class AnimationPresets {
private static presets;
private static themes;
private static initializePresets;
private static initializeThemes;
static getPreset(name: string): AnimationPreset | undefined;
static getAllPresets(): AnimationPreset[];
static getPresetsByCategory(category: string): AnimationPreset[];
static getPresetsByTag(tag: string): AnimationPreset[];
static getTheme(name: string): Theme | undefined;
static getAllThemes(): Theme[];
static applyThemeToConfig(config: AnimationConfig, themeName: string): AnimationConfig;
static applyPresetToConfig(config: AnimationConfig, presetName: string): AnimationConfig;
static getRecommendedPreset(animationType: AnimationType, useCase: string): string | null;
static createCustomPreset(name: string, description: string, config: AnimationConfig, category: string, tags: string[]): void;
static createCustomTheme(name: string, description: string, colors: {
primary: string;
secondary: string;
accent: string;
background: string;
}, opacity: number, speed: number): void;
}
//# sourceMappingURL=AnimationPresets.d.ts.map