tsparticles
Version:
Easily create highly customizable particle 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.
22 lines (21 loc) • 539 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Destroy = void 0;
const Enums_1 = require("../../../../Enums");
const Split_1 = require("./Split");
class Destroy {
constructor() {
this.mode = Enums_1.DestroyMode.none;
this.split = new Split_1.Split();
}
load(data) {
if (!data) {
return;
}
if (data.mode !== undefined) {
this.mode = data.mode;
}
this.split.load(data.split);
}
}
exports.Destroy = Destroy;