Socket
Socket
Sign inDemoInstall

@tsparticles/confetti

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/confetti - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

12

browser/confetti.js

@@ -6,2 +6,3 @@ import { isSsr, isString, tsParticles, } from "@tsparticles/engine";

import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
import { loadEmojiShape } from "@tsparticles/shape-emoji";
import { loadHeartShape } from "@tsparticles/shape-heart";

@@ -16,3 +17,2 @@ import { loadImageShape } from "@tsparticles/shape-image";

import { loadStarShape } from "@tsparticles/shape-star";
import { loadTextShape } from "@tsparticles/shape-text";
import { loadTiltUpdater } from "@tsparticles/updater-tilt";

@@ -47,3 +47,3 @@ import { loadWobbleUpdater } from "@tsparticles/updater-wobble";

await loadStarShape(engine, false);
await loadTextShape(engine, false);
await loadEmojiShape(engine, false);
await loadRotateUpdater(engine, false);

@@ -198,3 +198,3 @@ await loadLifeUpdater(engine, false);

animation: {
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: 60,

@@ -205,3 +205,3 @@ },

direction: "random",
enable: actualOptions.flat,
enable: !actualOptions.flat,
value: actualOptions.flat

@@ -223,3 +223,3 @@ ? 0

},
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -232,3 +232,3 @@ min: 15,

distance: 30,
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -235,0 +235,0 @@ min: -15,

@@ -9,2 +9,3 @@ "use strict";

const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
const shape_emoji_1 = require("@tsparticles/shape-emoji");
const shape_heart_1 = require("@tsparticles/shape-heart");

@@ -19,3 +20,2 @@ const shape_image_1 = require("@tsparticles/shape-image");

const shape_star_1 = require("@tsparticles/shape-star");
const shape_text_1 = require("@tsparticles/shape-text");
const updater_tilt_1 = require("@tsparticles/updater-tilt");

@@ -50,3 +50,3 @@ const updater_wobble_1 = require("@tsparticles/updater-wobble");

await (0, shape_star_1.loadStarShape)(engine, false);
await (0, shape_text_1.loadTextShape)(engine, false);
await (0, shape_emoji_1.loadEmojiShape)(engine, false);
await (0, updater_rotate_1.loadRotateUpdater)(engine, false);

@@ -201,3 +201,3 @@ await (0, updater_life_1.loadLifeUpdater)(engine, false);

animation: {
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: 60,

@@ -208,3 +208,3 @@ },

direction: "random",
enable: actualOptions.flat,
enable: !actualOptions.flat,
value: actualOptions.flat

@@ -226,3 +226,3 @@ ? 0

},
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -235,3 +235,3 @@ min: 15,

distance: 30,
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -238,0 +238,0 @@ min: -15,

@@ -6,2 +6,3 @@ import { isSsr, isString, tsParticles, } from "@tsparticles/engine";

import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
import { loadEmojiShape } from "@tsparticles/shape-emoji";
import { loadHeartShape } from "@tsparticles/shape-heart";

@@ -16,3 +17,2 @@ import { loadImageShape } from "@tsparticles/shape-image";

import { loadStarShape } from "@tsparticles/shape-star";
import { loadTextShape } from "@tsparticles/shape-text";
import { loadTiltUpdater } from "@tsparticles/updater-tilt";

@@ -47,3 +47,3 @@ import { loadWobbleUpdater } from "@tsparticles/updater-wobble";

await loadStarShape(engine, false);
await loadTextShape(engine, false);
await loadEmojiShape(engine, false);
await loadRotateUpdater(engine, false);

@@ -198,3 +198,3 @@ await loadLifeUpdater(engine, false);

animation: {
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: 60,

@@ -205,3 +205,3 @@ },

direction: "random",
enable: actualOptions.flat,
enable: !actualOptions.flat,
value: actualOptions.flat

@@ -223,3 +223,3 @@ ? 0

},
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -232,3 +232,3 @@ min: 15,

distance: 30,
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -235,0 +235,0 @@ min: -15,

{
"name": "@tsparticles/confetti",
"version": "3.0.1",
"version": "3.0.2",
"description": "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.",

@@ -102,18 +102,18 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/basic": "^3.0.1",
"@tsparticles/engine": "^3.0.1",
"@tsparticles/plugin-emitters": "^3.0.1",
"@tsparticles/plugin-motion": "^3.0.1",
"@tsparticles/shape-cards": "^3.0.1",
"@tsparticles/shape-heart": "^3.0.1",
"@tsparticles/shape-image": "^3.0.1",
"@tsparticles/shape-polygon": "^3.0.1",
"@tsparticles/shape-square": "^3.0.1",
"@tsparticles/shape-star": "^3.0.1",
"@tsparticles/shape-text": "^3.0.1",
"@tsparticles/updater-life": "^3.0.1",
"@tsparticles/updater-roll": "^3.0.1",
"@tsparticles/updater-rotate": "^3.0.1",
"@tsparticles/updater-tilt": "^3.0.1",
"@tsparticles/updater-wobble": "^3.0.1"
"@tsparticles/basic": "^3.0.2",
"@tsparticles/engine": "^3.0.2",
"@tsparticles/plugin-emitters": "^3.0.2",
"@tsparticles/plugin-motion": "^3.0.2",
"@tsparticles/shape-cards": "^3.0.2",
"@tsparticles/shape-emoji": "^3.0.2",
"@tsparticles/shape-heart": "^3.0.2",
"@tsparticles/shape-image": "^3.0.2",
"@tsparticles/shape-polygon": "^3.0.2",
"@tsparticles/shape-square": "^3.0.2",
"@tsparticles/shape-star": "^3.0.2",
"@tsparticles/updater-life": "^3.0.2",
"@tsparticles/updater-roll": "^3.0.2",
"@tsparticles/updater-rotate": "^3.0.2",
"@tsparticles/updater-tilt": "^3.0.2",
"@tsparticles/updater-wobble": "^3.0.2"
},

@@ -120,0 +120,0 @@ "publishConfig": {

@@ -18,2 +18,3 @@ [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)

- [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
- [@tsparticles/shape-emoji](https://github.com/tsparticles/tsparticles/tree/main/shapes/emoji)
- [@tsparticles/shape-heart](https://github.com/tsparticles/tsparticles/tree/main/shapes/heart)

@@ -24,3 +25,2 @@ - [@tsparticles/shape-image](https://github.com/tsparticles/tsparticles/tree/main/shapes/image)

- [@tsparticles/shape-star](https://github.com/tsparticles/tsparticles/tree/main/shapes/star)
- [@tsparticles/shape-text](https://github.com/tsparticles/tsparticles/tree/main/shapes/text)
- [@tsparticles/updater-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/color)

@@ -27,0 +27,0 @@ - [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)

@@ -1,1 +0,1 @@

/*! tsParticles Confetti v3.0.1 by Matteo Bruni */
/*! tsParticles Confetti v3.0.2 by Matteo Bruni */

@@ -7,14 +7,14 @@ /*!

* How to use? : Check the GitHub README
* v3.0.1
* v3.0.2
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-emitters"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-image"), require("@tsparticles/updater-life"), require("@tsparticles/plugin-motion"), require("@tsparticles/shape-polygon"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/shape-star"), require("@tsparticles/shape-text"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-wobble"));
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-emitters"), require("@tsparticles/shape-emoji"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-image"), require("@tsparticles/updater-life"), require("@tsparticles/plugin-motion"), require("@tsparticles/shape-polygon"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/shape-star"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-wobble"));
else if(typeof define === 'function' && define.amd)
define(["@tsparticles/engine", "@tsparticles/basic", "@tsparticles/shape-cards", "@tsparticles/plugin-emitters", "@tsparticles/shape-heart", "@tsparticles/shape-image", "@tsparticles/updater-life", "@tsparticles/plugin-motion", "@tsparticles/shape-polygon", "@tsparticles/updater-roll", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/shape-star", "@tsparticles/shape-text", "@tsparticles/updater-tilt", "@tsparticles/updater-wobble"], factory);
define(["@tsparticles/engine", "@tsparticles/basic", "@tsparticles/shape-cards", "@tsparticles/plugin-emitters", "@tsparticles/shape-emoji", "@tsparticles/shape-heart", "@tsparticles/shape-image", "@tsparticles/updater-life", "@tsparticles/plugin-motion", "@tsparticles/shape-polygon", "@tsparticles/updater-roll", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/shape-star", "@tsparticles/updater-tilt", "@tsparticles/updater-wobble"], factory);
else {
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-emitters"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-image"), require("@tsparticles/updater-life"), require("@tsparticles/plugin-motion"), require("@tsparticles/shape-polygon"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/shape-star"), require("@tsparticles/shape-text"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-emitters"), require("@tsparticles/shape-emoji"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-image"), require("@tsparticles/updater-life"), require("@tsparticles/plugin-motion"), require("@tsparticles/shape-polygon"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/shape-star"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, (__WEBPACK_EXTERNAL_MODULE__533__, __WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__686__, __WEBPACK_EXTERNAL_MODULE__68__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__885__, __WEBPACK_EXTERNAL_MODULE__84__, __WEBPACK_EXTERNAL_MODULE__82__, __WEBPACK_EXTERNAL_MODULE__907__, __WEBPACK_EXTERNAL_MODULE__734__, __WEBPACK_EXTERNAL_MODULE__59__, __WEBPACK_EXTERNAL_MODULE__652__, __WEBPACK_EXTERNAL_MODULE__960__, __WEBPACK_EXTERNAL_MODULE__727__, __WEBPACK_EXTERNAL_MODULE__448__, __WEBPACK_EXTERNAL_MODULE__83__) => {
})(this, (__WEBPACK_EXTERNAL_MODULE__533__, __WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__686__, __WEBPACK_EXTERNAL_MODULE__68__, __WEBPACK_EXTERNAL_MODULE__151__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__885__, __WEBPACK_EXTERNAL_MODULE__84__, __WEBPACK_EXTERNAL_MODULE__82__, __WEBPACK_EXTERNAL_MODULE__907__, __WEBPACK_EXTERNAL_MODULE__734__, __WEBPACK_EXTERNAL_MODULE__59__, __WEBPACK_EXTERNAL_MODULE__652__, __WEBPACK_EXTERNAL_MODULE__960__, __WEBPACK_EXTERNAL_MODULE__448__, __WEBPACK_EXTERNAL_MODULE__83__) => {
return /******/ (() => { // webpackBootstrap

@@ -59,2 +59,9 @@ /******/ "use strict";

/***/ 151:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__151__;
/***/ }),
/***/ 12:

@@ -95,9 +102,2 @@ /***/ ((module) => {

/***/ 727:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__727__;
/***/ }),
/***/ 84:

@@ -335,2 +335,4 @@ /***/ ((module) => {

var plugin_emitters_root_window_ = __webpack_require__(68);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-emoji","commonjs2":"@tsparticles/shape-emoji","amd":"@tsparticles/shape-emoji","root":"window"}
var shape_emoji_root_window_ = __webpack_require__(151);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-heart","commonjs2":"@tsparticles/shape-heart","amd":"@tsparticles/shape-heart","root":"window"}

@@ -354,4 +356,2 @@ var shape_heart_root_window_ = __webpack_require__(12);

var shape_star_root_window_ = __webpack_require__(960);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-text","commonjs2":"@tsparticles/shape-text","amd":"@tsparticles/shape-text","root":"window"}
var shape_text_root_window_ = __webpack_require__(727);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"}

@@ -406,3 +406,3 @@ var updater_tilt_root_window_ = __webpack_require__(448);

await (0,shape_star_root_window_.loadStarShape)(engine, false);
await (0,shape_text_root_window_.loadTextShape)(engine, false);
await (0,shape_emoji_root_window_.loadEmojiShape)(engine, false);
await (0,updater_rotate_root_window_.loadRotateUpdater)(engine, false);

@@ -562,3 +562,3 @@ await (0,updater_life_root_window_.loadLifeUpdater)(engine, false);

animation: {
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: 60

@@ -569,3 +569,3 @@ }

direction: "random",
enable: actualOptions.flat,
enable: !actualOptions.flat,
value: actualOptions.flat ? 0 : {

@@ -585,3 +585,3 @@ min: 0,

},
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -594,3 +594,3 @@ min: 15,

distance: 30,
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -597,0 +597,0 @@ min: -15,

/*! For license information please see tsparticles.confetti.min.js.LICENSE.txt */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-emitters"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/shape-text"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/basic","@tsparticles/shape-cards","@tsparticles/plugin-emitters","@tsparticles/shape-heart","@tsparticles/shape-image","@tsparticles/updater-life","@tsparticles/plugin-motion","@tsparticles/shape-polygon","@tsparticles/updater-roll","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/shape-star","@tsparticles/shape-text","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],e);else{var i="object"==typeof exports?e(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-emitters"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/shape-text"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble")):e(t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window,t.window);for(var a in i)("object"==typeof exports?exports:t)[a]=i[a]}}(this,((t,e,i,a,s,r,o,n,l,p,d,c,u,h,f,y)=>(()=>{"use strict";var v={574:t=>{t.exports=e},533:e=>{e.exports=t},68:t=>{t.exports=a},82:t=>{t.exports=n},686:t=>{t.exports=i},12:t=>{t.exports=s},885:t=>{t.exports=r},907:t=>{t.exports=l},652:t=>{t.exports=c},960:t=>{t.exports=u},727:t=>{t.exports=h},84:t=>{t.exports=o},734:t=>{t.exports=p},59:t=>{t.exports=d},448:t=>{t.exports=f},83:t=>{t.exports=y}},w={};function m(t){var e=w[t];if(void 0!==e)return e.exports;var i=w[t]={exports:{}};return v[t](i,i.exports,m),i.exports}m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var x={};return(()=>{m.r(x),m.d(x,{confetti:()=>P});var t=m(533);class e{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/100,y:this.position.y/100}}set origin(t){this.position.x=100*t.x,this.position.y=100*t.y}get particleCount(){return this.count}set particleCount(t){this.count=t}load(e){if(!e)return;void 0!==e.angle&&(this.angle=e.angle);const i=e.count??e.particleCount;void 0!==i&&(this.count=i),void 0!==e.spread&&(this.spread=e.spread),void 0!==e.startVelocity&&(this.startVelocity=e.startVelocity),void 0!==e.decay&&(this.decay=e.decay),void 0!==e.flat&&(this.flat=e.flat),void 0!==e.gravity&&(this.gravity=e.gravity),void 0!==e.drift&&(this.drift=e.drift),void 0!==e.ticks&&(this.ticks=e.ticks);const a=e.origin;a&&!e.position&&(e.position={x:void 0!==a.x?100*a.x:void 0,y:void 0!==a.y?100*a.y:void 0});const s=e.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==e.colors&&((0,t.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors);const r=e.shapeOptions;if(void 0!==r)for(const e in r){const i=r[e];i&&(this.shapeOptions[e]=(0,t.deepExtend)(this.shapeOptions[e]??{},i))}void 0!==e.shapes&&((0,t.isArray)(e.shapes)?this.shapes=[...e.shapes]:this.shapes=e.shapes),void 0!==e.scalar&&(this.scalar=e.scalar),void 0!==e.zIndex&&(this.zIndex=e.zIndex),void 0!==e.disableForReducedMotion&&(this.disableForReducedMotion=e.disableForReducedMotion)}}var i=m(574),a=m(686),s=m(68),r=m(12),o=m(885),n=m(84),l=m(82),p=m(907),d=m(734),c=m(59),u=m(652),h=m(960),f=m(727),y=m(448),v=m(83);let w=!1,g=!1;const b=new Map;async function q(t){if(!w){if(g)return new Promise((t=>{const e=setInterval((()=>{w&&(clearInterval(e),t())}),100)}));g=!0,await(0,s.loadEmittersPlugin)(t,!1),await(0,l.loadMotionPlugin)(t,!1),await(0,a.loadCardsShape)(t,!1),await(0,r.loadHeartShape)(t,!1),await(0,o.loadImageShape)(t,!1),await(0,p.loadPolygonShape)(t,!1),await(0,u.loadSquareShape)(t,!1),await(0,h.loadStarShape)(t,!1),await(0,f.loadTextShape)(t,!1),await(0,c.loadRotateUpdater)(t,!1),await(0,n.loadLifeUpdater)(t,!1),await(0,d.loadRollUpdater)(t,!1),await(0,y.loadTiltUpdater)(t,!1),await(0,v.loadWobbleUpdater)(t,!1),await(0,i.loadBasic)(t),g=!1,w=!0}}async function S(i){const a=new e;let s;a.load(i.options);const r=1e3*a.ticks/432e3;if(b.has(i.id)&&(s=b.get(i.id),s&&!s.destroyed)){const t=s;if(t.addEmitter)return void t.addEmitter({startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:r,startValue:"max",destroy:"min"}},size:{value:5*a.scalar},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},gravity:{acceleration:9.81*a.gravity},speed:3*a.startVelocity,decay:1-a.decay,direction:-a.angle}}})}const o={fullScreen:{enable:!i.canvas,zIndex:a.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:r,startValue:"max",destroy:"min"}},size:{value:5*a.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},enable:!0,gravity:{enable:!0,acceleration:9.81*a.gravity},speed:3*a.startVelocity,decay:1-a.decay,direction:-a.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:a.flat?0:{min:0,max:360},direction:"random",animation:{enable:a.flat,speed:60}},tilt:{direction:"random",enable:a.flat,value:a.flat?0:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:a.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:a.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:a.disableForReducedMotion},emitters:{name:"confetti",startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return s=await t.tsParticles.load({id:i.id,element:i.canvas,options:o}),b.set(i.id,s),s}async function P(e,i){let a,s;return await q(t.tsParticles),(0,t.isString)(e)?(s=e,a=i??{}):(s="confetti",a=e),S({id:s,options:a})}P.create=async(e,i)=>{if(!e)return P;await q(t.tsParticles);const a=e.getAttribute("id")||"confetti";return e.setAttribute("id",a),async(s,r)=>{let o,n;return(0,t.isString)(s)?(n=s,o=r??i):(n=a,o=s),S({id:n,canvas:e,options:o})}},P.version=t.tsParticles.version,(0,t.isSsr)()||(window.confetti=P)})(),x})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-emitters"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/basic","@tsparticles/shape-cards","@tsparticles/plugin-emitters","@tsparticles/shape-emoji","@tsparticles/shape-heart","@tsparticles/shape-image","@tsparticles/updater-life","@tsparticles/plugin-motion","@tsparticles/shape-polygon","@tsparticles/updater-roll","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/shape-star","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-emitters"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,((e,t,i,a,s,r,o,n,l,p,d,c,u,h,f,y)=>(()=>{"use strict";var v={574:e=>{e.exports=t},533:t=>{t.exports=e},68:e=>{e.exports=a},82:e=>{e.exports=l},686:e=>{e.exports=i},151:e=>{e.exports=s},12:e=>{e.exports=r},885:e=>{e.exports=o},907:e=>{e.exports=p},652:e=>{e.exports=u},960:e=>{e.exports=h},84:e=>{e.exports=n},734:e=>{e.exports=d},59:e=>{e.exports=c},448:e=>{e.exports=f},83:e=>{e.exports=y}},w={};function m(e){var t=w[e];if(void 0!==t)return t.exports;var i=w[e]={exports:{}};return v[e](i,i.exports,m),i.exports}m.d=(e,t)=>{for(var i in t)m.o(t,i)&&!m.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return(()=>{m.r(x),m.d(x,{confetti:()=>j});var e=m(533);class t{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/100,y:this.position.y/100}}set origin(e){this.position.x=100*e.x,this.position.y=100*e.y}get particleCount(){return this.count}set particleCount(e){this.count=e}load(t){if(!t)return;void 0!==t.angle&&(this.angle=t.angle);const i=t.count??t.particleCount;void 0!==i&&(this.count=i),void 0!==t.spread&&(this.spread=t.spread),void 0!==t.startVelocity&&(this.startVelocity=t.startVelocity),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.flat&&(this.flat=t.flat),void 0!==t.gravity&&(this.gravity=t.gravity),void 0!==t.drift&&(this.drift=t.drift),void 0!==t.ticks&&(this.ticks=t.ticks);const a=t.origin;a&&!t.position&&(t.position={x:void 0!==a.x?100*a.x:void 0,y:void 0!==a.y?100*a.y:void 0});const s=t.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==t.colors&&((0,e.isArray)(t.colors)?this.colors=[...t.colors]:this.colors=t.colors);const r=t.shapeOptions;if(void 0!==r)for(const t in r){const i=r[t];i&&(this.shapeOptions[t]=(0,e.deepExtend)(this.shapeOptions[t]??{},i))}void 0!==t.shapes&&((0,e.isArray)(t.shapes)?this.shapes=[...t.shapes]:this.shapes=t.shapes),void 0!==t.scalar&&(this.scalar=t.scalar),void 0!==t.zIndex&&(this.zIndex=t.zIndex),void 0!==t.disableForReducedMotion&&(this.disableForReducedMotion=t.disableForReducedMotion)}}var i=m(574),a=m(686),s=m(68),r=m(151),o=m(12),n=m(885),l=m(84),p=m(82),d=m(907),c=m(734),u=m(59),h=m(652),f=m(960),y=m(448),v=m(83);let w=!1,g=!1;const b=new Map;async function q(e){if(!w){if(g)return new Promise((e=>{const t=setInterval((()=>{w&&(clearInterval(t),e())}),100)}));g=!0,await(0,s.loadEmittersPlugin)(e,!1),await(0,p.loadMotionPlugin)(e,!1),await(0,a.loadCardsShape)(e,!1),await(0,o.loadHeartShape)(e,!1),await(0,n.loadImageShape)(e,!1),await(0,d.loadPolygonShape)(e,!1),await(0,h.loadSquareShape)(e,!1),await(0,f.loadStarShape)(e,!1),await(0,r.loadEmojiShape)(e,!1),await(0,u.loadRotateUpdater)(e,!1),await(0,l.loadLifeUpdater)(e,!1),await(0,c.loadRollUpdater)(e,!1),await(0,y.loadTiltUpdater)(e,!1),await(0,v.loadWobbleUpdater)(e,!1),await(0,i.loadBasic)(e),g=!1,w=!0}}async function S(i){const a=new t;let s;a.load(i.options);const r=1e3*a.ticks/432e3;if(b.has(i.id)&&(s=b.get(i.id),s&&!s.destroyed)){const e=s;if(e.addEmitter)return void e.addEmitter({startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:r,startValue:"max",destroy:"min"}},size:{value:5*a.scalar},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},gravity:{acceleration:9.81*a.gravity},speed:3*a.startVelocity,decay:1-a.decay,direction:-a.angle}}})}const o={fullScreen:{enable:!i.canvas,zIndex:a.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:r,startValue:"max",destroy:"min"}},size:{value:5*a.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},enable:!0,gravity:{enable:!0,acceleration:9.81*a.gravity},speed:3*a.startVelocity,decay:1-a.decay,direction:-a.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:a.flat?0:{min:0,max:360},direction:"random",animation:{enable:!a.flat,speed:60}},tilt:{direction:"random",enable:!a.flat,value:a.flat?0:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!a.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!a.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:a.disableForReducedMotion},emitters:{name:"confetti",startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return s=await e.tsParticles.load({id:i.id,element:i.canvas,options:o}),b.set(i.id,s),s}async function j(t,i){let a,s;return await q(e.tsParticles),(0,e.isString)(t)?(s=t,a=i??{}):(s="confetti",a=t),S({id:s,options:a})}j.create=async(t,i)=>{if(!t)return j;await q(e.tsParticles);const a=t.getAttribute("id")||"confetti";return t.setAttribute("id",a),async(s,r)=>{let o,n;return(0,e.isString)(s)?(n=s,o=r??i):(n=a,o=s),S({id:n,canvas:t,options:o})}},j.version=e.tsParticles.version,(0,e.isSsr)()||(window.confetti=j)})(),x})()));

@@ -1,1 +0,1 @@

/*! tsParticles Confetti v3.0.1 by Matteo Bruni */
/*! tsParticles Confetti v3.0.2 by Matteo Bruni */

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@tsparticles/engine", "./ConfettiOptions.js", "@tsparticles/basic", "@tsparticles/shape-cards", "@tsparticles/plugin-emitters", "@tsparticles/shape-heart", "@tsparticles/shape-image", "@tsparticles/updater-life", "@tsparticles/plugin-motion", "@tsparticles/shape-polygon", "@tsparticles/updater-roll", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/shape-star", "@tsparticles/shape-text", "@tsparticles/updater-tilt", "@tsparticles/updater-wobble"], factory);
define(["require", "exports", "@tsparticles/engine", "./ConfettiOptions.js", "@tsparticles/basic", "@tsparticles/shape-cards", "@tsparticles/plugin-emitters", "@tsparticles/shape-emoji", "@tsparticles/shape-heart", "@tsparticles/shape-image", "@tsparticles/updater-life", "@tsparticles/plugin-motion", "@tsparticles/shape-polygon", "@tsparticles/updater-roll", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/shape-star", "@tsparticles/updater-tilt", "@tsparticles/updater-wobble"], factory);
}

@@ -19,2 +19,3 @@ })(function (require, exports) {

const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
const shape_emoji_1 = require("@tsparticles/shape-emoji");
const shape_heart_1 = require("@tsparticles/shape-heart");

@@ -29,3 +30,2 @@ const shape_image_1 = require("@tsparticles/shape-image");

const shape_star_1 = require("@tsparticles/shape-star");
const shape_text_1 = require("@tsparticles/shape-text");
const updater_tilt_1 = require("@tsparticles/updater-tilt");

@@ -60,3 +60,3 @@ const updater_wobble_1 = require("@tsparticles/updater-wobble");

await (0, shape_star_1.loadStarShape)(engine, false);
await (0, shape_text_1.loadTextShape)(engine, false);
await (0, shape_emoji_1.loadEmojiShape)(engine, false);
await (0, updater_rotate_1.loadRotateUpdater)(engine, false);

@@ -211,3 +211,3 @@ await (0, updater_life_1.loadLifeUpdater)(engine, false);

animation: {
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: 60,

@@ -218,3 +218,3 @@ },

direction: "random",
enable: actualOptions.flat,
enable: !actualOptions.flat,
value: actualOptions.flat

@@ -236,3 +236,3 @@ ? 0

},
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -245,3 +245,3 @@ min: 15,

distance: 30,
enable: actualOptions.flat,
enable: !actualOptions.flat,
speed: {

@@ -248,0 +248,0 @@ min: -15,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc