glassheart-ui-vanilla
Version:
GlassHeart UI - Vanilla JavaScript components
26 lines • 615 B
TypeScript
/**
* SVG 快取工具,用於優化 Liquid Glass 效能的 SVG 生成
*/
interface CacheKey {
width: number;
height: number;
radius: number;
depth: number;
strength: number;
chromaticAberration: number;
}
declare class SVGCache {
private cache;
private maxSize;
private maxAge;
private generateKey;
private isExpired;
private cleanup;
get(key: CacheKey): string | null;
set(key: CacheKey, url: string): void;
clear(): void;
size(): number;
}
export declare const svgCache: SVGCache;
export type { CacheKey };
//# sourceMappingURL=svgCache.d.ts.map