tsparticles
Version:
Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.
17 lines (16 loc) • 764 B
TypeScript
import type { ShapeType } from "../../../../Enums/ShapeType";
import type { IImageShape } from "./IImageShape";
import type { ICharacterShape } from "./ICharacterShape";
import type { IPolygonShape } from "./IPolygonShape";
import type { IStroke } from "../IStroke";
import type { IOptionLoader } from "../../IOptionLoader";
import type { SingleOrMultiple } from "../../../../Types/SingleOrMultiple";
import { ShapeData } from "../../../../Types/ShapeData";
export interface IShape extends IOptionLoader<IShape> {
type: SingleOrMultiple<ShapeType | string>;
stroke: SingleOrMultiple<IStroke>;
polygon: SingleOrMultiple<IPolygonShape>;
character: SingleOrMultiple<ICharacterShape>;
image: SingleOrMultiple<IImageShape>;
custom: ShapeData;
}