UNPKG

@tsparticles/interaction-external-bounce

Version:

tsParticles bounce external interaction

15 lines (14 loc) 302 B
import { isNull } from "@tsparticles/engine"; export class Bounce { constructor() { this.distance = 200; } load(data) { if (isNull(data)) { return; } if (data.distance !== undefined) { this.distance = data.distance; } } }