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.

31 lines (30 loc) • 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadBasic = loadBasic; const plugin_blend_1 = require("@tsparticles/plugin-blend"); const shape_circle_1 = require("@tsparticles/shape-circle"); const plugin_hex_color_1 = require("@tsparticles/plugin-hex-color"); const plugin_hsl_color_1 = require("@tsparticles/plugin-hsl-color"); const plugin_move_1 = require("@tsparticles/plugin-move"); const updater_opacity_1 = require("@tsparticles/updater-opacity"); const updater_out_modes_1 = require("@tsparticles/updater-out-modes"); const updater_paint_1 = require("@tsparticles/updater-paint"); const plugin_rgb_color_1 = require("@tsparticles/plugin-rgb-color"); const updater_size_1 = require("@tsparticles/updater-size"); async function loadBasic(engine) { engine.checkVersion("4.6.0"); await engine.pluginManager.register(async (e) => { await Promise.all([ (0, plugin_blend_1.loadBlendPlugin)(e), (0, plugin_hex_color_1.loadHexColorPlugin)(e), (0, plugin_hsl_color_1.loadHslColorPlugin)(e), (0, plugin_rgb_color_1.loadRgbColorPlugin)(e), (0, plugin_move_1.loadMovePlugin)(e), (0, shape_circle_1.loadCircleShape)(e), (0, updater_paint_1.loadPaintUpdater)(e), (0, updater_opacity_1.loadOpacityUpdater)(e), (0, updater_out_modes_1.loadOutModesUpdater)(e), (0, updater_size_1.loadSizeUpdater)(e), ]); }); }