UNPKG

tsparticles

Version:

Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

30 lines (29 loc) 978 B
(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", "./LightArea", "./LightShadow"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Light = void 0; const LightArea_1 = require("./LightArea"); const LightShadow_1 = require("./LightShadow"); class Light { constructor() { this.area = new LightArea_1.LightArea(); this.shadow = new LightShadow_1.LightShadow(); } load(data) { if (data === undefined) { return; } this.area.load(data.area); this.shadow.load(data.shadow); } } exports.Light = Light; });