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.

52 lines (47 loc) 7.37 kB
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this); /* tsParticles v4.1.0 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/plugin-absorbers'), require('@tsparticles/updater-destroy'), require('@tsparticles/plugin-emitters'), require('@tsparticles/plugin-emitters-shape-circle'), require('@tsparticles/plugin-emitters-shape-square'), require('@tsparticles/interaction-external-drag'), require('@tsparticles/interaction-external-trail'), require('@tsparticles/updater-roll'), require('@tsparticles/slim'), require('@tsparticles/shape-text'), require('@tsparticles/updater-tilt'), require('@tsparticles/updater-twinkle'), require('@tsparticles/updater-wobble')) : typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/plugin-absorbers', '@tsparticles/updater-destroy', '@tsparticles/plugin-emitters', '@tsparticles/plugin-emitters-shape-circle', '@tsparticles/plugin-emitters-shape-square', '@tsparticles/interaction-external-drag', '@tsparticles/interaction-external-trail', '@tsparticles/updater-roll', '@tsparticles/slim', '@tsparticles/shape-text', '@tsparticles/updater-tilt', '@tsparticles/updater-twinkle', '@tsparticles/updater-wobble'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.bundles = global.__tsParticlesInternals.bundles || {}, global.__tsParticlesInternals.bundles.full = global.__tsParticlesInternals.bundles.full || {}), global.__tsParticlesInternals.plugins.absorbers, global.__tsParticlesInternals.updaters.destroy, global.__tsParticlesInternals.plugins.emitters, global.__tsParticlesInternals.plugins.emittersShapes.circle, global.__tsParticlesInternals.plugins.emittersShapes.square, global.__tsParticlesInternals.interactions.externalDrag, global.__tsParticlesInternals.interactions.externalTrail, global.__tsParticlesInternals.updaters.roll, global.__tsParticlesInternals.bundles.slim, global.__tsParticlesInternals.shapes.text, global.__tsParticlesInternals.updaters.tilt, global.__tsParticlesInternals.updaters.twinkle, global.__tsParticlesInternals.updaters.wobble)); })(this, (function (exports, pluginAbsorbers, updaterDestroy, pluginEmitters, pluginEmittersShapeCircle, pluginEmittersShapeSquare, interactionExternalDrag, interactionExternalTrail, updaterRoll, slim, shapeText, updaterTilt, updaterTwinkle, updaterWobble) { 'use strict'; async function loadFull(engine) { engine.checkVersion("4.1.0"); await engine.pluginManager.register(async (e) => { const loadEmittersPluginBundle = async (e) => { await pluginEmitters.loadEmittersPlugin(e); await Promise.all([ pluginEmittersShapeCircle.loadEmittersShapeCircle(e), pluginEmittersShapeSquare.loadEmittersShapeSquare(e), ]); }, loadInteractivityForFull = async (e) => { await slim.loadSlim(e); await Promise.all([ interactionExternalDrag.loadExternalDragInteraction(e), interactionExternalTrail.loadExternalTrailInteraction(e), pluginAbsorbers.loadAbsorbersPlugin(e), loadEmittersPluginBundle(e), ]); }; await Promise.all([ loadInteractivityForFull(e), updaterDestroy.loadDestroyUpdater(e), updaterRoll.loadRollUpdater(e), updaterTilt.loadTiltUpdater(e), updaterTwinkle.loadTwinkleUpdater(e), updaterWobble.loadWobbleUpdater(e), shapeText.loadTextShape(e), ]); }); } const globalObject = globalThis; globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {}; globalObject.loadFull = loadFull; exports.loadFull = loadFull; })); Object.assign(globalThis.window || globalThis, { loadFull: (globalThis.__tsParticlesInternals.bundles.full || {}).loadFull }); globalThis.__tsParticlesInternals = globalThis.__tsParticlesInternals || {}; if (!globalThis.__tsParticlesInternals.engine || !globalThis.__tsParticlesInternals.engine.tsParticles) { globalThis.__tsParticlesInternals.engine = globalThis.__tsParticlesInternals.bundles.full || {}; } delete (globalThis.window || globalThis).tsparticlesInternalExports;