31 lines
907 B
JavaScript
31 lines
907 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BubbleDiv = void 0;
|
|
const BubbleBase_1 = require("./BubbleBase");
|
|
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
class BubbleDiv extends BubbleBase_1.BubbleBase {
|
|
constructor() {
|
|
super();
|
|
this.selectors = [];
|
|
}
|
|
get ids() {
|
|
return (0, tsparticles_engine_1.executeOnSingleOrMultiple)(this.selectors, (t) => t.replace("#", ""));
|
|
}
|
|
set ids(value) {
|
|
this.selectors = (0, tsparticles_engine_1.executeOnSingleOrMultiple)(value, (t) => `#${t}`);
|
|
}
|
|
load(data) {
|
|
super.load(data);
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.ids !== undefined) {
|
|
this.ids = data.ids;
|
|
}
|
|
if (data.selectors !== undefined) {
|
|
this.selectors = data.selectors;
|
|
}
|
|
}
|
|
}
|
|
exports.BubbleDiv = BubbleDiv;
|