UNPKG

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