UNPKG

@tsparticles/basic

Version:

Basic tsParticles bundle — minimal core engine with only the essential features for fast, lightweight particle animations. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

28 lines (27 loc) 1.16 kB
import { loadBlendPlugin } from "@tsparticles/plugin-blend"; import { loadCircleShape } from "@tsparticles/shape-circle"; import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color"; import { loadHslColorPlugin } from "@tsparticles/plugin-hsl-color"; import { loadMovePlugin } from "@tsparticles/plugin-move"; import { loadOpacityUpdater } from "@tsparticles/updater-opacity"; import { loadOutModesUpdater } from "@tsparticles/updater-out-modes"; import { loadPaintUpdater } from "@tsparticles/updater-paint"; import { loadRgbColorPlugin } from "@tsparticles/plugin-rgb-color"; import { loadSizeUpdater } from "@tsparticles/updater-size"; export async function loadBasic(engine) { engine.checkVersion("4.2.1"); await engine.pluginManager.register(async (e) => { await Promise.all([ loadBlendPlugin(e), loadHexColorPlugin(e), loadHslColorPlugin(e), loadRgbColorPlugin(e), loadMovePlugin(e), loadCircleShape(e), loadPaintUpdater(e), loadOpacityUpdater(e), loadOutModesUpdater(e), loadSizeUpdater(e), ]); }); }