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.
32 lines (31 loc) • 893 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BubbleDiv = void 0;
const BubbleBase_1 = require("./BubbleBase");
class BubbleDiv extends BubbleBase_1.BubbleBase {
constructor() {
super();
this.selectors = [];
}
get ids() {
return this.selectors instanceof Array
? this.selectors.map((t) => t.replace("#", ""))
: this.selectors.replace("#", "");
}
set ids(value) {
this.selectors = value instanceof Array ? value.map((t) => `#${t}`) : `#${value}`;
}
load(data) {
super.load(data);
if (data === undefined) {
return;
}
if (data.ids !== undefined) {
this.ids = data.ids;
}
if (data.selectors !== undefined) {
this.selectors = data.selectors;
}
}
}
exports.BubbleDiv = BubbleDiv;
;