UNPKG

tsparticles

Version:

Easily create highly customizable particle, confetti and fireworks 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.

23 lines (22 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadPlugin = void 0; const LinkInstance_1 = require("./LinkInstance"); class LinksPlugin { constructor() { this.id = "links"; } getPlugin(container) { return new LinkInstance_1.LinkInstance(container); } needsPlugin() { return true; } loadOptions() { } } async function loadPlugin(engine) { const plugin = new LinksPlugin(); await engine.addPlugin(plugin); } exports.loadPlugin = loadPlugin;