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.

24 lines (23 loc) 963 B
import type { Particle } from "../Core/Particle"; import type { Range } from "./Range"; import type { Point } from "./Point"; import { Rectangle } from "./Rectangle"; import type { ICoordinates, IDimension } from "../Core/Interfaces"; import type { Container } from "../Core/Container"; export declare class QuadTree { readonly rectangle: Rectangle; readonly capacity: number; readonly points: Point[]; private northEast?; private northWest?; private southEast?; private southWest?; private divided; constructor(rectangle: Rectangle, capacity: number); subdivide(): void; insert(point: Point): boolean; queryCircle(position: ICoordinates, radius: number): Particle[]; queryCircleWarp(position: ICoordinates, radius: number, containerOrSize: Container | IDimension): Particle[]; queryRectangle(position: ICoordinates, size: IDimension): Particle[]; query(range: Range, found?: Particle[]): Particle[]; }