UNPKG

@tsparticles/plugin-polygon-mask

Version:

tsParticles polygon mask plugin

12 lines (11 loc) 620 B
import type { Container, Engine, IPlugin, RecursivePartial } from "@tsparticles/engine"; import type { IPolygonMaskOptions, PolygonMaskOptions } from "./types.js"; import { PolygonMaskInstance } from "./PolygonMaskInstance.js"; export declare class PolygonMaskPlugin implements IPlugin { readonly id: string; private readonly _engine; constructor(engine: Engine); getPlugin(container: Container): Promise<PolygonMaskInstance>; loadOptions(options: PolygonMaskOptions, source?: RecursivePartial<IPolygonMaskOptions>): void; needsPlugin(options?: RecursivePartial<IPolygonMaskOptions>): boolean; }