UNPKG

902 BTypeScriptView Raw
1import type { Container } from "../Core/Container";
2import type { IDelta } from "../Core/Interfaces/IDelta";
3import type { Particle } from "../Core/Particle";
4export type ShapeDrawerDrawFunction = (context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void;
5export type ShapeDrawerInitFunction = (container: Container) => Promise<void>;
6export type ShapeDrawerParticleInitFunction = (container: Container, particle: Particle) => void;
7export type ShapeDrawerAfterEffectFunction = (context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta, pixelRatio: number) => void;
8export type ShapeDrawerDestroyFunction = (container: Container) => void;
9export type ShapeDrawerSidesCountFunction = (particle: Particle) => number;
10export type ShapeDrawerLoadFunction = (particle: Particle) => void;