@tsparticles/engine
Version:
Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
20 lines (19 loc) • 699 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParticlesBounce = void 0;
const ParticlesBounceFactor_js_1 = require("./ParticlesBounceFactor.js");
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
class ParticlesBounce {
constructor() {
this.horizontal = new ParticlesBounceFactor_js_1.ParticlesBounceFactor();
this.vertical = new ParticlesBounceFactor_js_1.ParticlesBounceFactor();
}
load(data) {
if ((0, TypeUtils_js_1.isNull)(data)) {
return;
}
this.horizontal.load(data.horizontal);
this.vertical.load(data.vertical);
}
}
exports.ParticlesBounce = ParticlesBounce;