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.

12 lines (11 loc) • 333 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initEngine = initEngine; const Engine_js_1 = require("./Core/Engine.js"); function initEngine() { const existing = globalThis.tsParticles; if (existing?.pluginManager) { return existing; } return new Engine_js_1.Engine(); }