tsparticles
Version:
Full-featured tsParticles bundle — create stunning particle, confetti and fireworks animations with all official plugins and presets included. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inf
53 lines (47 loc) • 5.96 kB
JavaScript
(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);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
(function (g) {
/* tsParticles v4.5.3 */
g.__tsParticlesInternals = g.__tsParticlesInternals || {};
g.__tsParticlesInternals.bundles = g.__tsParticlesInternals.bundles || {};
(function (exports, pluginAbsorbers, updaterDestroy, pluginEmitters, pluginEmittersShapeCircle, pluginEmittersShapeSquare, interactionExternalDrag, interactionExternalTrail, updaterRoll, slim, shapeText, updaterTilt, updaterTwinkle, updaterWobble) {
'use strict';
async function loadFull(engine) {
engine.checkVersion("4.5.3");
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;
})(g.__tsParticlesInternals.bundles.full = g.__tsParticlesInternals.bundles.full || {}, g.__tsParticlesInternals.plugins.absorbers, g.__tsParticlesInternals.updaters.destroy, g.__tsParticlesInternals.plugins.emitters, g.__tsParticlesInternals.plugins.emittersShapes.circle, g.__tsParticlesInternals.plugins.emittersShapes.square, g.__tsParticlesInternals.interactions.externalDrag, g.__tsParticlesInternals.interactions.externalTrail, g.__tsParticlesInternals.updaters.roll, g.__tsParticlesInternals.bundles.slim, g.__tsParticlesInternals.shapes.text, g.__tsParticlesInternals.updaters.tilt, g.__tsParticlesInternals.updaters.twinkle, g.__tsParticlesInternals.updaters.wobble);
})(typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : self);
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 || {};
}