UNPKG

tsparticles

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.

15 lines (14 loc) 327 B
const shapes = new Map(); export class ShapeManager { static addShape(name, drawer) { if (!ShapeManager.getShape(name)) { shapes.set(name, drawer); } } static getShape(name) { return shapes.get(name); } static getSupportedShapes() { return shapes.keys(); } }