UNPKG

@tsparticles/interaction-external-remove

Version:

tsParticles remove external interaction

16 lines (15 loc) 360 B
import { isNull, setRangeValue } from "@tsparticles/engine"; export class Remove { constructor() { this.quantity = 2; } load(data) { if (isNull(data)) { return; } const quantity = data.quantity; if (quantity !== undefined) { this.quantity = setRangeValue(quantity); } } }