UNPKG

@tsparticles/all

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.

91 lines (90 loc) 4.88 kB
import { initPjs } from "@tsparticles/pjs"; import { loadArrowShape } from "@tsparticles/shape-arrow"; import { loadBubbleEffect } from "@tsparticles/effect-bubble"; import { loadCanvasMaskPlugin } from "@tsparticles/plugin-canvas-mask"; import { loadCardsShape } from "@tsparticles/shape-cards"; import { loadCogShape } from "@tsparticles/shape-cog"; import { loadCurlNoisePath } from "@tsparticles/path-curl-noise"; import { loadCurvesPath } from "@tsparticles/path-curves"; import { loadEasingBackPlugin } from "@tsparticles/plugin-easing-back"; import { loadEasingCircPlugin } from "@tsparticles/plugin-easing-circ"; import { loadEasingCubicPlugin } from "@tsparticles/plugin-easing-cubic"; import { loadEasingExpoPlugin } from "@tsparticles/plugin-easing-expo"; import { loadEasingLinearPlugin } from "@tsparticles/plugin-easing-linear"; import { loadEasingQuartPlugin } from "@tsparticles/plugin-easing-quart"; import { loadEasingQuintPlugin } from "@tsparticles/plugin-easing-quint"; import { loadEasingSinePlugin } from "@tsparticles/plugin-easing-sine"; import { loadEmittersShapeCanvas } from "@tsparticles/plugin-emitters-shape-canvas"; import { loadEmittersShapePath } from "@tsparticles/plugin-emitters-shape-path"; import { loadEmittersShapePolygon } from "@tsparticles/plugin-emitters-shape-polygon"; import { loadExportImagePlugin } from "@tsparticles/plugin-export-image"; import { loadExportJSONPlugin } from "@tsparticles/plugin-export-json"; import { loadExportVideoPlugin } from "@tsparticles/plugin-export-video"; import { loadExternalPopInteraction } from "@tsparticles/interaction-external-pop"; import { loadFull } from "tsparticles"; import { loadGradientUpdater } from "@tsparticles/updater-gradient"; import { loadHeartShape } from "@tsparticles/shape-heart"; import { loadHsvColorPlugin } from "@tsparticles/plugin-hsv-color"; import { loadInfectionPlugin } from "@tsparticles/plugin-infection"; import { loadLightInteraction } from "@tsparticles/interaction-light"; import { loadMotionPlugin } from "@tsparticles/plugin-motion"; import { loadOrbitUpdater } from "@tsparticles/updater-orbit"; import { loadParticlesRepulseInteraction } from "@tsparticles/interaction-particles-repulse"; import { loadPathShape } from "@tsparticles/shape-path"; import { loadPerlinNoisePath } from "@tsparticles/path-perlin-noise"; import { loadPolygonMaskPlugin } from "@tsparticles/plugin-polygon-mask"; import { loadPolygonPath } from "@tsparticles/path-polygon"; import { loadRoundedPolygonShape } from "@tsparticles/shape-rounded-polygon"; import { loadRoundedRectShape } from "@tsparticles/shape-rounded-rect"; import { loadSVGPath } from "@tsparticles/path-svg"; import { loadSimplexNoisePath } from "@tsparticles/path-simplex-noise"; import { loadSoundsPlugin } from "@tsparticles/plugin-sounds"; import { loadSpiralShape } from "@tsparticles/shape-spiral"; import { loadTrailEffect } from "@tsparticles/effect-trail"; export async function loadAll(engine, refresh = true) { initPjs(engine); await loadFull(engine, false); await loadHsvColorPlugin(); await loadEasingBackPlugin(); await loadEasingCircPlugin(); await loadEasingCubicPlugin(); await loadEasingExpoPlugin(); await loadEasingLinearPlugin(); await loadEasingQuartPlugin(); await loadEasingQuintPlugin(); await loadEasingSinePlugin(); await loadEmittersShapeCanvas(engine, false); await loadEmittersShapePath(engine, false); await loadEmittersShapePolygon(engine, false); await loadHsvColorPlugin(); await loadCanvasMaskPlugin(engine, false); await loadInfectionPlugin(engine, false); await loadMotionPlugin(engine, false); await loadPolygonMaskPlugin(engine, false); await loadSoundsPlugin(engine, false); await loadExportImagePlugin(engine, false); await loadExportJSONPlugin(engine, false); await loadExportVideoPlugin(engine, false); await loadExternalPopInteraction(engine, false); await loadLightInteraction(engine, false); await loadParticlesRepulseInteraction(engine, false); await loadGradientUpdater(engine, false); await loadOrbitUpdater(engine, false); await loadCurvesPath(engine, false); await loadCurlNoisePath(engine, false); await loadPerlinNoisePath(engine, false); await loadPolygonPath(engine, false); await loadSVGPath(engine, false); await loadSimplexNoisePath(engine, false); await loadBubbleEffect(engine, false); await loadArrowShape(engine, false); await loadCardsShape(engine, false); await loadCogShape(engine, false); await loadHeartShape(engine, false); await loadPathShape(engine, false); await loadRoundedPolygonShape(engine, false); await loadRoundedRectShape(engine, false); await loadSpiralShape(engine, false); await loadTrailEffect(engine, false); await engine.refresh(refresh); }