UNPKG

@tsparticles/path-polygon

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