@tsparticles/interaction-external-slow
Version:
tsParticles slow external interaction
23 lines (22 loc) • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Slow = void 0;
const engine_1 = require("@tsparticles/engine");
class Slow {
constructor() {
this.factor = 3;
this.radius = 200;
}
load(data) {
if ((0, engine_1.isNull)(data)) {
return;
}
if (data.factor !== undefined) {
this.factor = data.factor;
}
if (data.radius !== undefined) {
this.radius = data.radius;
}
}
}
exports.Slow = Slow;