UNPKG

tsparticles-engine

Version:

Easily create highly customizable particle, confetti and fireworks 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.

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