UNPKG

@tsparticles/preset-links

Version:

tsParticles links preset

14 lines (13 loc) 638 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadLinksPreset = void 0; const basic_1 = require("@tsparticles/basic"); const interaction_particles_links_1 = require("@tsparticles/interaction-particles-links"); const options_js_1 = require("./options.js"); async function loadLinksPreset(engine, refresh = true) { await (0, basic_1.loadBasic)(engine, false); await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine, false); await engine.addPreset("links", options_js_1.options, false); await engine.refresh(refresh); } exports.loadLinksPreset = loadLinksPreset;