"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParticlesDensity = void 0; class ParticlesDensity { constructor() { this.enable = false; this.width = 1920; this.height = 1080; } get area() { return this.width; } set area(value) { this.width = value; } get factor() { return this.height; } set factor(value) { this.height = value; } get value_area() { return this.area; } set value_area(value) { this.area = value; } load(data) { var _a, _b, _c; if (!data) { return; } if (data.enable !== undefined) { this.enable = data.enable; } const width = (_b = (_a = data.width) !== null && _a !== void 0 ? _a : data.area) !== null && _b !== void 0 ? _b : data.value_area; if (width !== undefined) { this.width = width; } const height = (_c = data.height) !== null && _c !== void 0 ? _c : data.factor; if (height !== undefined) { this.height = height; } } } exports.ParticlesDensity = ParticlesDensity;