/** * Defines the Snow component * Author: Callan Heard */ import { OnInit } from '@angular/core'; import * as i0 from "@angular/core"; /** Details stored for each animated snowflake */ declare type Flake = { coords: number; lefr: number; pos: number; posX: number; posY: number; size: number; sink: number; style: { top: string; left: string; fontSize: string; }; }; /** * ❄❄ * Adds a snow falling animation overlay to the page * Based on: https://www.cssscript.com/minimalist-falling-snow-effect-with-pure-javascript-snow-js/ * ❄❄ */ export declare class SnowComponent implements OnInit { /** Snowflake rate of top-position increase */ static speed: number; /** * Refresh rate to update flake positions * TODO: Convert this to FPS and improve smoothing */ static refresh: number; /** Current right margin of page set by _resize */ private _right; /** Current bottom margin of page set by _resize */ private _bottom; /** Array of snowflake details to calculate animations and apply to elements */ flakes: Flake[]; /** ❄❄ Number of snowflakes to render ❄❄ */ amount: number; /** Snowflake minimum size */ min: number; /** Snowflake maximum size */ max: number; /** HTML entity to use to display snowflake */ entity: string; /** Initialise snowflakes and begin animating */ ngOnInit(): void; /** Generate random number based on given range */ static randomise(range_: number): number; /** Update right and bottom margins on window resize */ private _resize; /** Perform single frame update of snowflake positions */ private _move; static ɵfac: i0.ɵɵFactoryDef; static ɵcmp: i0.ɵɵComponentDefWithMeta; } export {}; //# sourceMappingURL=snow.component.d.ts.map