2023-02-17 11:06:01 +01:00

25 lines
812 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DestroyBounds = void 0;
const tsparticles_engine_1 = require("tsparticles-engine");
class DestroyBounds {
load(data) {
if (!data) {
return;
}
if (data.bottom !== undefined) {
this.bottom = (0, tsparticles_engine_1.setRangeValue)(data.bottom);
}
if (data.left !== undefined) {
this.left = (0, tsparticles_engine_1.setRangeValue)(data.left);
}
if (data.right !== undefined) {
this.right = (0, tsparticles_engine_1.setRangeValue)(data.right);
}
if (data.top !== undefined) {
this.top = (0, tsparticles_engine_1.setRangeValue)(data.top);
}
}
}
exports.DestroyBounds = DestroyBounds;