UNPKG

tsparticles

Version:

Easily create highly customizable particle 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.

35 lines (34 loc) 2.3 kB
(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-plugin-absorbers", "tsparticles-updater-destroy", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-updater-twinkle", "tsparticles-updater-wobble"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadFull = void 0; const tsparticles_plugin_absorbers_1 = require("tsparticles-plugin-absorbers"); const tsparticles_updater_destroy_1 = require("tsparticles-updater-destroy"); const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters"); const tsparticles_interaction_external_trail_1 = require("tsparticles-interaction-external-trail"); const tsparticles_updater_roll_1 = require("tsparticles-updater-roll"); const tsparticles_slim_1 = require("tsparticles-slim"); const tsparticles_updater_tilt_1 = require("tsparticles-updater-tilt"); const tsparticles_updater_twinkle_1 = require("tsparticles-updater-twinkle"); const tsparticles_updater_wobble_1 = require("tsparticles-updater-wobble"); async function loadFull(engine, refresh = true) { await (0, tsparticles_updater_destroy_1.loadDestroyUpdater)(engine, false); await (0, tsparticles_updater_roll_1.loadRollUpdater)(engine, false); await (0, tsparticles_updater_tilt_1.loadTiltUpdater)(engine, false); await (0, tsparticles_updater_twinkle_1.loadTwinkleUpdater)(engine, false); await (0, tsparticles_updater_wobble_1.loadWobbleUpdater)(engine, false); await (0, tsparticles_interaction_external_trail_1.loadExternalTrailInteraction)(engine, false); await (0, tsparticles_plugin_absorbers_1.loadAbsorbersPlugin)(engine, false); await (0, tsparticles_plugin_emitters_1.loadEmittersPlugin)(engine, false); await (0, tsparticles_slim_1.loadSlim)(engine, refresh); } exports.loadFull = loadFull; });