@tsparticles/basic
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.
26 lines (25 loc) • 1.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadBasic = loadBasic;
const move_base_1 = require("@tsparticles/move-base");
const shape_circle_1 = require("@tsparticles/shape-circle");
const updater_color_1 = require("@tsparticles/updater-color");
const plugin_hex_color_1 = require("@tsparticles/plugin-hex-color");
const plugin_hsl_color_1 = require("@tsparticles/plugin-hsl-color");
const updater_opacity_1 = require("@tsparticles/updater-opacity");
const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
const plugin_rgb_color_1 = require("@tsparticles/plugin-rgb-color");
const updater_size_1 = require("@tsparticles/updater-size");
async function loadBasic(engine, refresh = true) {
engine.checkVersion("3.9.0");
await (0, plugin_hex_color_1.loadHexColorPlugin)(engine, false);
await (0, plugin_hsl_color_1.loadHslColorPlugin)(engine, false);
await (0, plugin_rgb_color_1.loadRgbColorPlugin)(engine, false);
await (0, move_base_1.loadBaseMover)(engine, false);
await (0, shape_circle_1.loadCircleShape)(engine, false);
await (0, updater_color_1.loadColorUpdater)(engine, false);
await (0, updater_opacity_1.loadOpacityUpdater)(engine, false);
await (0, updater_out_modes_1.loadOutModesUpdater)(engine, false);
await (0, updater_size_1.loadSizeUpdater)(engine, false);
await engine.refresh(refresh);
}