@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.
32 lines (31 loc) • 901 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DivEvent = void 0;
const DivType_js_1 = require("../../../../Enums/Types/DivType.js");
const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js");
class DivEvent {
constructor() {
this.selectors = [];
this.enable = false;
this.mode = [];
this.type = DivType_js_1.DivType.circle;
}
load(data) {
if ((0, TypeUtils_js_1.isNull)(data)) {
return;
}
if (data.selectors !== undefined) {
this.selectors = data.selectors;
}
if (data.enable !== undefined) {
this.enable = data.enable;
}
if (data.mode !== undefined) {
this.mode = data.mode;
}
if (data.type !== undefined) {
this.type = data.type;
}
}
}
exports.DivEvent = DivEvent;