29 lines
812 B
JavaScript
29 lines
812 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.LinksTriangle = void 0;
|
|
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
class LinksTriangle {
|
|
constructor() {
|
|
this.enable = false;
|
|
this.frequency = 1;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.color !== undefined) {
|
|
this.color = tsparticles_engine_1.OptionsColor.create(this.color, data.color);
|
|
}
|
|
if (data.enable !== undefined) {
|
|
this.enable = data.enable;
|
|
}
|
|
if (data.frequency !== undefined) {
|
|
this.frequency = data.frequency;
|
|
}
|
|
if (data.opacity !== undefined) {
|
|
this.opacity = data.opacity;
|
|
}
|
|
}
|
|
}
|
|
exports.LinksTriangle = LinksTriangle;
|