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

35 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.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;
});