tsparticles
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.
12 lines (11 loc) • 356 B
TypeScript
import type { ICoordinates, IDimension } from "../Interfaces";
import { Range } from "./Range";
/**
* @category Utils
*/
export declare class Rectangle extends Range {
readonly size: IDimension;
constructor(x: number, y: number, width: number, height: number);
contains(point: ICoordinates): boolean;
intersects(range: Range): boolean;
}