UNPKG

tsparticles

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.

49 lines (48 loc) 2.46 kB
import { loadAngleUpdater } from "./Updaters/Angle"; import { loadCircleShape } from "./Shapes/Circle"; import { loadColorUpdater } from "./Updaters/Color"; import { loadExternalAttractInteraction } from "./Interactions/External/Attract"; import { loadExternalBounceInteraction } from "./Interactions/External/Bounce"; import { loadExternalBubbleInteraction } from "./Interactions/External/Bubble"; import { loadExternalConnectInteraction } from "./Interactions/External/Connect"; import { loadExternalGrabInteraction } from "./Interactions/External/Grab"; import { loadExternalRepulseInteraction } from "./Interactions/External/Repulse"; import { loadImageShape } from "./Shapes/Image"; import { loadLifeUpdater } from "./Updaters/Life"; import { loadLineShape } from "./Shapes/Line"; import { loadOpacityUpdater } from "./Updaters/Opacity"; import { loadOutModesUpdater } from "./Updaters/OutModes"; import { loadParticlesAttractInteraction } from "./Interactions/Particles/Attract"; import { loadParticlesCollisionsInteraction } from "./Interactions/Particles/Collisions"; import { loadParticlesLinksInteraction } from "./Interactions/Particles/Links"; import { loadPolygonShape } from "./Shapes/Polygon"; import { loadSizeUpdater } from "./Updaters/Size"; import { loadSquareShape } from "./Shapes/Square"; import { loadStarShape } from "./Shapes/Star"; import { loadStrokeColorUpdater } from "./Updaters/StrokeColor"; import { loadTextShape } from "./Shapes/Text"; export async function loadSlim(engine) { await loadExternalAttractInteraction(engine); await loadExternalBounceInteraction(engine); await loadExternalBubbleInteraction(engine); await loadExternalConnectInteraction(engine); await loadExternalGrabInteraction(engine); await loadExternalRepulseInteraction(engine); await loadParticlesAttractInteraction(engine); await loadParticlesCollisionsInteraction(engine); await loadParticlesLinksInteraction(engine); await loadCircleShape(engine); await loadImageShape(engine); await loadLineShape(engine); await loadPolygonShape(engine); await loadSquareShape(engine); await loadStarShape(engine); await loadTextShape(engine); await loadLifeUpdater(engine); await loadOpacityUpdater(engine); await loadSizeUpdater(engine); await loadAngleUpdater(engine); await loadColorUpdater(engine); await loadStrokeColorUpdater(engine); await loadOutModesUpdater(engine); }