@tsparticles/plugin-emitters-shape-canvas
Version:
tsParticles emitters shape canvas plugin
16 lines (15 loc) • 730 B
TypeScript
import { type IOptionLoader, type IRgba, type RecursivePartial } from "@tsparticles/engine";
import type { IEmittersCanvasShapeOptions } from "../Interfaces/IEmittersCanvasShapeOptions.js";
import { PixelsOptions } from "./PixelsOptions.js";
import { TextOptions } from "./TextOptions.js";
export declare class EmittersCanvasShapeOptions implements IEmittersCanvasShapeOptions, IOptionLoader<IEmittersCanvasShapeOptions> {
element?: HTMLCanvasElement;
filter: string | ((pixel: IRgba) => boolean);
image?: HTMLImageElement;
pixels: PixelsOptions;
scale: number;
selector: string;
text: TextOptions;
constructor();
load(data?: RecursivePartial<IEmittersCanvasShapeOptions> | undefined): void;
}