UNPKG

@tsparticles/engine

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.

19 lines (18 loc) • 815 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParticlesNumber = void 0; const OptionLoader_js_1 = require("../../../../Utils/OptionLoader.js"); const ParticlesDensity_js_1 = require("./ParticlesDensity.js"); const ParticlesNumberLimit_js_1 = require("./ParticlesNumberLimit.js"); const OptionsUtils_js_1 = require("../../../../Utils/OptionsUtils.js"); class ParticlesNumber extends OptionLoader_js_1.OptionLoader { density = new ParticlesDensity_js_1.ParticlesDensity(); limit = new ParticlesNumberLimit_js_1.ParticlesNumberLimit(); value = 0; doLoad(data) { this.density.load(data.density); this.limit.load(data.limit); (0, OptionsUtils_js_1.loadProperty)(this, "value", data.value); } } exports.ParticlesNumber = ParticlesNumber;