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.

19 lines (18 loc) 797 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0; const PolygonDrawer_1 = require("./PolygonDrawer"); const TriangleDrawer_1 = require("./TriangleDrawer"); function loadGenericPolygonShape(tsParticles) { tsParticles.addShape("polygon", new PolygonDrawer_1.PolygonDrawer()); } exports.loadGenericPolygonShape = loadGenericPolygonShape; function loadTriangleShape(tsParticles) { tsParticles.addShape("triangle", new TriangleDrawer_1.TriangleDrawer()); } exports.loadTriangleShape = loadTriangleShape; function loadPolygonShape(tsParticles) { loadGenericPolygonShape(tsParticles); loadTriangleShape(tsParticles); } exports.loadPolygonShape = loadPolygonShape;