tsparticles-slim
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.
59 lines (58 loc) • 4.74 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadSlim = void 0;
const tsparticles_particles_js_1 = require("tsparticles-particles.js");
const tsparticles_basic_1 = require("tsparticles-basic");
const tsparticles_plugin_easing_quad_1 = require("tsparticles-plugin-easing-quad");
const tsparticles_interaction_external_attract_1 = require("tsparticles-interaction-external-attract");
const tsparticles_interaction_external_bounce_1 = require("tsparticles-interaction-external-bounce");
const tsparticles_interaction_external_bubble_1 = require("tsparticles-interaction-external-bubble");
const tsparticles_interaction_external_connect_1 = require("tsparticles-interaction-external-connect");
const tsparticles_interaction_external_grab_1 = require("tsparticles-interaction-external-grab");
const tsparticles_interaction_external_pause_1 = require("tsparticles-interaction-external-pause");
const tsparticles_interaction_external_push_1 = require("tsparticles-interaction-external-push");
const tsparticles_interaction_external_remove_1 = require("tsparticles-interaction-external-remove");
const tsparticles_interaction_external_repulse_1 = require("tsparticles-interaction-external-repulse");
const tsparticles_interaction_external_slow_1 = require("tsparticles-interaction-external-slow");
const tsparticles_shape_image_1 = require("tsparticles-shape-image");
const tsparticles_updater_life_1 = require("tsparticles-updater-life");
const tsparticles_shape_line_1 = require("tsparticles-shape-line");
const tsparticles_move_parallax_1 = require("tsparticles-move-parallax");
const tsparticles_interaction_particles_attract_1 = require("tsparticles-interaction-particles-attract");
const tsparticles_interaction_particles_collisions_1 = require("tsparticles-interaction-particles-collisions");
const tsparticles_interaction_particles_links_1 = require("tsparticles-interaction-particles-links");
const tsparticles_shape_polygon_1 = require("tsparticles-shape-polygon");
const tsparticles_updater_rotate_1 = require("tsparticles-updater-rotate");
const tsparticles_shape_square_1 = require("tsparticles-shape-square");
const tsparticles_shape_star_1 = require("tsparticles-shape-star");
const tsparticles_updater_stroke_color_1 = require("tsparticles-updater-stroke-color");
const tsparticles_shape_text_1 = require("tsparticles-shape-text");
async function loadSlim(engine, refresh = true) {
(0, tsparticles_particles_js_1.initPjs)(engine);
await (0, tsparticles_move_parallax_1.loadParallaxMover)(engine, false);
await (0, tsparticles_interaction_external_attract_1.loadExternalAttractInteraction)(engine, false);
await (0, tsparticles_interaction_external_bounce_1.loadExternalBounceInteraction)(engine, false);
await (0, tsparticles_interaction_external_bubble_1.loadExternalBubbleInteraction)(engine, false);
await (0, tsparticles_interaction_external_connect_1.loadExternalConnectInteraction)(engine, false);
await (0, tsparticles_interaction_external_grab_1.loadExternalGrabInteraction)(engine, false);
await (0, tsparticles_interaction_external_pause_1.loadExternalPauseInteraction)(engine, false);
await (0, tsparticles_interaction_external_push_1.loadExternalPushInteraction)(engine, false);
await (0, tsparticles_interaction_external_remove_1.loadExternalRemoveInteraction)(engine, false);
await (0, tsparticles_interaction_external_repulse_1.loadExternalRepulseInteraction)(engine, false);
await (0, tsparticles_interaction_external_slow_1.loadExternalSlowInteraction)(engine, false);
await (0, tsparticles_interaction_particles_attract_1.loadParticlesAttractInteraction)(engine, false);
await (0, tsparticles_interaction_particles_collisions_1.loadParticlesCollisionsInteraction)(engine, false);
await (0, tsparticles_interaction_particles_links_1.loadParticlesLinksInteraction)(engine, false);
await (0, tsparticles_plugin_easing_quad_1.loadEasingQuadPlugin)();
await (0, tsparticles_shape_image_1.loadImageShape)(engine, false);
await (0, tsparticles_shape_line_1.loadLineShape)(engine, false);
await (0, tsparticles_shape_polygon_1.loadPolygonShape)(engine, false);
await (0, tsparticles_shape_square_1.loadSquareShape)(engine, false);
await (0, tsparticles_shape_star_1.loadStarShape)(engine, false);
await (0, tsparticles_shape_text_1.loadTextShape)(engine, false);
await (0, tsparticles_updater_life_1.loadLifeUpdater)(engine, false);
await (0, tsparticles_updater_rotate_1.loadRotateUpdater)(engine, false);
await (0, tsparticles_updater_stroke_color_1.loadStrokeColorUpdater)(engine, false);
await (0, tsparticles_basic_1.loadBasic)(engine, refresh);
}
exports.loadSlim = loadSlim;