19 lines
594 B
JavaScript
19 lines
594 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ParticlesBounce = void 0;
|
|
const ParticlesBounceFactor_1 = require("./ParticlesBounceFactor");
|
|
class ParticlesBounce {
|
|
constructor() {
|
|
this.horizontal = new ParticlesBounceFactor_1.ParticlesBounceFactor();
|
|
this.vertical = new ParticlesBounceFactor_1.ParticlesBounceFactor();
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
this.horizontal.load(data.horizontal);
|
|
this.vertical.load(data.vertical);
|
|
}
|
|
}
|
|
exports.ParticlesBounce = ParticlesBounce;
|