UNPKG

@tsparticles/path-polygon

Version:
14 lines (13 loc) 598 B
import { type Container, type ICoordinates, type IMovePathGenerator, Vector } from "@tsparticles/engine"; import type { IPolygonPathOptions } from "./IPolygonPathOptions.js"; import type { PolygonPathParticle } from "./PolygonPathParticle.js"; export declare class PolygonPathGenerator implements IMovePathGenerator { dirsList: ICoordinates[]; readonly options: IPolygonPathOptions; constructor(); generate(p: PolygonPathParticle): Vector; init(container: Container): void; reset(particle: PolygonPathParticle): void; update(): void; private readonly _createDirs; }