tsparticles
Version:
Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.
23 lines (22 loc) • 1.22 kB
TypeScript
import type { IShape } from "../../../../Interfaces/Options/Particles/Shape/IShape";
import { ShapeType } from "../../../../Enums/ShapeType";
import type { IImageShape } from "../../../../Interfaces/Options/Particles/Shape/IImageShape";
import type { ICharacterShape } from "../../../../Interfaces/Options/Particles/Shape/ICharacterShape";
import type { IPolygonShape } from "../../../../Interfaces/Options/Particles/Shape/IPolygonShape";
import type { IStroke } from "../../../../Interfaces/Options/Particles/IStroke";
import type { RecursivePartial } from "../../../../Types/RecursivePartial";
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
import { ShapeData } from "../../../../Types/ShapeData";
export declare class Shape implements IShape {
get images(): IImageShape[];
set images(value: IImageShape[]);
get stroke(): SingleOrMultiple<IStroke>;
set stroke(value: SingleOrMultiple<IStroke>);
character: SingleOrMultiple<ICharacterShape>;
image: SingleOrMultiple<IImageShape>;
polygon: SingleOrMultiple<IPolygonShape>;
type: SingleOrMultiple<ShapeType | string>;
custom: ShapeData;
constructor();
load(data?: RecursivePartial<IShape>): void;
}