UNPKG

@fluritheme/fluri

Version:

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

36 lines • 1.24 kB
import type { Particle, Surface, WeatherConfig, WeatherPlugin } from '../types.js'; export declare class CanvasRenderer { private doc; private scope?; private host; private canvases; private contexts; width: number; height: number; private dpr; private bitmapWidth; private bitmapHeight; private mountedScope; private mountDirty; private scopeEligible; private maxDPR; private ignored; private lastIgnoreRefresh; private texture; private allowGlow; private contactShadows; private contrast; private paleSnow; private contourCache; constructor(doc: Document, onTextureError?: (error: Error) => void, onAppearanceChange?: () => void, scope?: HTMLElement | undefined); get textureStatus(): import("./Texture.js").TextureStatus; resize(maxDPR: number): void; clear(): void; render(particles: readonly Particle[], surfaces: readonly Surface[], config: WeatherConfig, time: number, plugins: readonly WeatherPlugin[], actorDraw: (ctx: CanvasRenderingContext2D, time: number) => void): void; private particle; private snow; private maskBodies; private debug; destroy(): void; } //# sourceMappingURL=CanvasRenderer.d.ts.map