UNPKG

tsparticles

Version:

Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.

21 lines (20 loc) 488 B
export class Remove { constructor() { this.quantity = 2; } get particles_nb() { return this.quantity; } set particles_nb(value) { this.quantity = value; } load(data) { var _a; if (data !== undefined) { const quantity = (_a = data.quantity) !== null && _a !== void 0 ? _a : data.particles_nb; if (quantity !== undefined) { this.quantity = quantity; } } } }