UNPKG

@fluritheme/fluri

Version:

Interactive snowfall for websites: DOM-aware snow accumulation, mouse interactions, snow physics, Canvas 2D rendering, and Christmas effects.

40 lines • 1.26 kB
import type { WeatherPlugin } from './types.js'; interface Attachment { enabled?: boolean | undefined; selector?: string | undefined; } export interface ChristmasOptions { lights?: boolean | (Attachment & { warmth?: number; spacing?: number; color?: string; twinkle?: boolean; }); garlands?: boolean | (Attachment & { color?: string; }); ornaments?: boolean | (Attachment & { maxCount?: number; palette?: string[]; }); gifts?: boolean | Attachment; candyCanes?: boolean | Attachment; wreath?: boolean | Attachment; icicles?: boolean | Attachment; sparkle?: boolean | Attachment; frost?: boolean | Attachment; palette?: string[]; plough?: boolean | (Attachment & { automatic?: boolean; interval?: number; idleDelay?: number; speed?: number; direction?: 'left' | 'right'; style?: 'classic' | 'minimal' | 'festive'; probability?: number; }); } /** All decorations require explicit attachment selectors. Never decorates host content automatically. */ export declare function christmasPack(input?: ChristmasOptions): WeatherPlugin; export {}; //# sourceMappingURL=christmas.d.ts.map