UNPKG

tsparticles

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

12 lines (11 loc) 1.02 kB
import type { IParticle } from "../Core/Interfaces/IParticle"; import type { Container } from "../Core/Container"; import type { IDelta } from "../Core/Interfaces/IDelta"; import { Particle } from "../Core/Particle"; export declare type ShapeDrawerDrawFunction = (context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void; export declare type ShapeDrawerInitFunction = (container: Container) => Promise<void>; export declare type ShapeDrawerParticleInitFunction = (container: Container, particle: IParticle) => void; export declare type ShapeDrawerAfterEffectFunction = (context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void; export declare type ShapeDrawerDestroyFunction = (container: Container) => void; export declare type ShapeDrawerSidesCountFunction = (particle: IParticle) => number; export declare type ShapeDrawerLoadFunction = (particle: Particle) => void;