36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
(function (factory) {
|
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
var v = factory(require, exports);
|
|
if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === "function" && define.amd) {
|
|
define(["require", "exports", "tsparticles-engine"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"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;
|
|
});
|