26 lines
734 B
JavaScript
26 lines
734 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.LinksShadow = void 0;
|
|
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
class LinksShadow {
|
|
constructor() {
|
|
this.blur = 5;
|
|
this.color = new tsparticles_engine_1.OptionsColor();
|
|
this.color.value = "#000";
|
|
this.enable = false;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.blur !== undefined) {
|
|
this.blur = data.blur;
|
|
}
|
|
this.color = tsparticles_engine_1.OptionsColor.create(this.color, data.color);
|
|
if (data.enable !== undefined) {
|
|
this.enable = data.enable;
|
|
}
|
|
}
|
|
}
|
|
exports.LinksShadow = LinksShadow;
|