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
46 lines (45 loc) • 2.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadFull = loadFull;
const plugin_absorbers_1 = require("@tsparticles/plugin-absorbers");
const updater_destroy_1 = require("@tsparticles/updater-destroy");
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
const plugin_emitters_shape_circle_1 = require("@tsparticles/plugin-emitters-shape-circle");
const plugin_emitters_shape_square_1 = require("@tsparticles/plugin-emitters-shape-square");
const interaction_external_drag_1 = require("@tsparticles/interaction-external-drag");
const interaction_external_trail_1 = require("@tsparticles/interaction-external-trail");
const updater_roll_1 = require("@tsparticles/updater-roll");
const slim_1 = require("@tsparticles/slim");
const shape_text_1 = require("@tsparticles/shape-text");
const updater_tilt_1 = require("@tsparticles/updater-tilt");
const updater_twinkle_1 = require("@tsparticles/updater-twinkle");
const updater_wobble_1 = require("@tsparticles/updater-wobble");
async function loadFull(engine) {
engine.checkVersion("4.6.0");
await engine.pluginManager.register(async (e) => {
const loadEmittersPluginBundle = async (e) => {
await (0, plugin_emitters_1.loadEmittersPlugin)(e);
await Promise.all([
(0, plugin_emitters_shape_circle_1.loadEmittersShapeCircle)(e),
(0, plugin_emitters_shape_square_1.loadEmittersShapeSquare)(e),
]);
}, loadInteractivityForFull = async (e) => {
await (0, slim_1.loadSlim)(e);
await Promise.all([
(0, interaction_external_drag_1.loadExternalDragInteraction)(e),
(0, interaction_external_trail_1.loadExternalTrailInteraction)(e),
(0, plugin_absorbers_1.loadAbsorbersPlugin)(e),
loadEmittersPluginBundle(e),
]);
};
await Promise.all([
loadInteractivityForFull(e),
(0, updater_destroy_1.loadDestroyUpdater)(e),
(0, updater_roll_1.loadRollUpdater)(e),
(0, updater_tilt_1.loadTiltUpdater)(e),
(0, updater_twinkle_1.loadTwinkleUpdater)(e),
(0, updater_wobble_1.loadWobbleUpdater)(e),
(0, shape_text_1.loadTextShape)(e),
]);
});
}