UNPKG

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) 372 B
export class ClickEvent { constructor() { this.enable = false; this.mode = []; } load(data) { if (data !== undefined) { if (data.enable !== undefined) { this.enable = data.enable; } if (data.mode !== undefined) { this.mode = data.mode; } } } }