Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsparticles/confetti

Package Overview
Dependencies
Maintainers
2
Versions
19
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.0-beta.3 to 3.0.0-beta.4

28

browser/confetti.js

@@ -187,9 +187,11 @@ import { isSsr, isString, tsParticles, } from "@tsparticles/engine";

rotate: {
value: {
min: 0,
max: 360,
},
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
direction: "random",
animation: {
enable: true,
enable: actualOptions.flat,
speed: 60,

@@ -200,7 +202,9 @@ },

direction: "random",
enable: true,
value: {
min: 0,
max: 360,
},
enable: actualOptions.flat,
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
animation: {

@@ -216,3 +220,3 @@ enable: true,

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

@@ -225,3 +229,3 @@ min: 15,

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

@@ -228,0 +232,0 @@ min: -15,

@@ -21,2 +21,3 @@ import { deepExtend, isArray, } from "@tsparticles/engine";

this.disableForReducedMotion = true;
this.flat = false;
this.shapeOptions = {};

@@ -60,2 +61,5 @@ }

}
if (data.flat !== undefined) {
this.flat = data.flat;
}
if (data.gravity !== undefined) {

@@ -62,0 +66,0 @@ this.gravity = data.gravity;

@@ -190,9 +190,11 @@ "use strict";

rotate: {
value: {
min: 0,
max: 360,
},
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
direction: "random",
animation: {
enable: true,
enable: actualOptions.flat,
speed: 60,

@@ -203,7 +205,9 @@ },

direction: "random",
enable: true,
value: {
min: 0,
max: 360,
},
enable: actualOptions.flat,
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
animation: {

@@ -219,3 +223,3 @@ enable: true,

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

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

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

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

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

this.disableForReducedMotion = true;
this.flat = false;
this.shapeOptions = {};

@@ -63,2 +64,5 @@ }

}
if (data.flat !== undefined) {
this.flat = data.flat;
}
if (data.gravity !== undefined) {

@@ -65,0 +69,0 @@ this.gravity = data.gravity;

@@ -187,9 +187,11 @@ import { isSsr, isString, tsParticles, } from "@tsparticles/engine";

rotate: {
value: {
min: 0,
max: 360,
},
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
direction: "random",
animation: {
enable: true,
enable: actualOptions.flat,
speed: 60,

@@ -200,7 +202,9 @@ },

direction: "random",
enable: true,
value: {
min: 0,
max: 360,
},
enable: actualOptions.flat,
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
animation: {

@@ -216,3 +220,3 @@ enable: true,

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

@@ -225,3 +229,3 @@ min: 15,

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

@@ -228,0 +232,0 @@ min: -15,

@@ -21,2 +21,3 @@ import { deepExtend, isArray, } from "@tsparticles/engine";

this.disableForReducedMotion = true;
this.flat = false;
this.shapeOptions = {};

@@ -60,2 +61,5 @@ }

}
if (data.flat !== undefined) {
this.flat = data.flat;
}
if (data.gravity !== undefined) {

@@ -62,0 +66,0 @@ this.gravity = data.gravity;

{
"name": "@tsparticles/confetti",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"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.0-beta.3",
"@tsparticles/engine": "^3.0.0-beta.3",
"@tsparticles/plugin-emitters": "^3.0.0-beta.3",
"@tsparticles/plugin-motion": "^3.0.0-beta.3",
"@tsparticles/shape-cards": "^3.0.0-beta.3",
"@tsparticles/shape-heart": "^3.0.0-beta.3",
"@tsparticles/shape-image": "^3.0.0-beta.3",
"@tsparticles/shape-polygon": "^3.0.0-beta.3",
"@tsparticles/shape-square": "^3.0.0-beta.3",
"@tsparticles/shape-star": "^3.0.0-beta.3",
"@tsparticles/shape-text": "^3.0.0-beta.3",
"@tsparticles/updater-life": "^3.0.0-beta.3",
"@tsparticles/updater-roll": "^3.0.0-beta.3",
"@tsparticles/updater-rotate": "^3.0.0-beta.3",
"@tsparticles/updater-tilt": "^3.0.0-beta.3",
"@tsparticles/updater-wobble": "^3.0.0-beta.3"
"@tsparticles/basic": "^3.0.0-beta.4",
"@tsparticles/engine": "^3.0.0-beta.4",
"@tsparticles/plugin-emitters": "^3.0.0-beta.4",
"@tsparticles/plugin-motion": "^3.0.0-beta.4",
"@tsparticles/shape-cards": "^3.0.0-beta.4",
"@tsparticles/shape-heart": "^3.0.0-beta.4",
"@tsparticles/shape-image": "^3.0.0-beta.4",
"@tsparticles/shape-polygon": "^3.0.0-beta.4",
"@tsparticles/shape-square": "^3.0.0-beta.4",
"@tsparticles/shape-star": "^3.0.0-beta.4",
"@tsparticles/shape-text": "^3.0.0-beta.4",
"@tsparticles/updater-life": "^3.0.0-beta.4",
"@tsparticles/updater-roll": "^3.0.0-beta.4",
"@tsparticles/updater-rotate": "^3.0.0-beta.4",
"@tsparticles/updater-tilt": "^3.0.0-beta.4",
"@tsparticles/updater-wobble": "^3.0.0-beta.4"
},

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

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

[tsParticles](https://github.com/tsparticles/tsparticles) confetti bundle loads all the features necessary to create beautiful confetti effects with ease.
[tsParticles](https://github.com/tsparticles/tsparticles) confetti bundle loads all the features necessary to create
beautiful confetti effects with ease.

@@ -41,3 +42,4 @@ **Included Packages**

- One is a bundle file with all the scripts included in a single file
- One is a file including just the `confetti` function to load the tsParticles confetti bunddle, all dependencies must be
- One is a file including just the `confetti` function to load the tsParticles confetti bunddle, all dependencies must
be
included manually

@@ -62,9 +64,7 @@

````javascript
** Easiest Way **
```javascript
confetti()
````
confetti();
```

@@ -117,3 +117,4 @@ ** Async Way, best practice **

The `confetti` first parameter can be an id and the second parameter a single `options` object, or just the single options object without the id, which will be `confetti` by default. The `options` object has the following properties:
The `confetti` first parameter can be an id and the second parameter a single `options` object, or just the single
options object without the id, which will be `confetti` by default. The `options` object has the following properties:

@@ -128,2 +129,4 @@ - `count` _Integer (default: 50)_: The number of confetti to launch. More is always fun... but be cool, there's a lot of

the confetti will gain speed. Better yet, just never change it.
- `flat` _Boolean (default: false)_: Optionally turns off the tilt and wobble that three dimensional confetti would have
in the real world. Yeah, they look a little sad, but y'all asked for them, so don't blame me.
- `gravity` _Number (default: 1)_: How quickly the particles are pulled down: 1 is full gravity, 0.5 is half gravity,

@@ -137,3 +140,4 @@ etc., but there are no limits. You can even make particles go up if you'd like.

be used too, but it's deprecated)
- `position.x` _Number (default: 50)_: The `x` position on the page, with `0` being the left edge and `100` being the
- `position.x` _Number (default: 50)_: The `x` position on the page, with `0` being the left edge and `100` being
the
right edge.

@@ -164,2 +168,3 @@ - `position.y` _Number (default: 50)_: The `y` position on the page, with `0` being the top edge and `100` being the

And for those asking, yes you can paste your canvas-confetti code and migrate to tsParticles Confetti without changing a thing
And for those asking, yes you can paste your canvas-confetti code and migrate to tsParticles Confetti without changing a
thing

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

/*! tsParticles Confetti v3.0.0-beta.3 by Matteo Bruni */
/*! tsParticles Confetti v3.0.0-beta.4 by Matteo Bruni */

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

* How to use? : Check the GitHub README
* v3.0.0-beta.3
* v3.0.0-beta.4
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/move-base"), require("@tsparticles/shape-circle"), require("@tsparticles/updater-color"), require("@tsparticles/updater-opacity"), require("@tsparticles/updater-out-modes"), require("@tsparticles/updater-size"), 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/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-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(typeof define === 'function' && define.amd)
define(["@tsparticles/engine", "@tsparticles/move-base", "@tsparticles/shape-circle", "@tsparticles/updater-color", "@tsparticles/updater-opacity", "@tsparticles/updater-out-modes", "@tsparticles/updater-size", "@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/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-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);
else {
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/move-base"), require("@tsparticles/shape-circle"), require("@tsparticles/updater-color"), require("@tsparticles/updater-opacity"), require("@tsparticles/updater-out-modes"), require("@tsparticles/updater-size"), 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/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"], 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-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"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, (__WEBPACK_EXTERNAL_MODULE__533__, __WEBPACK_EXTERNAL_MODULE__619__, __WEBPACK_EXTERNAL_MODULE__163__, __WEBPACK_EXTERNAL_MODULE__501__, __WEBPACK_EXTERNAL_MODULE__686__, __WEBPACK_EXTERNAL_MODULE__290__, __WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__345__, __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__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__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__) => {
return /******/ (() => { // webpackBootstrap

@@ -24,13 +24,13 @@ /******/ "use strict";

/***/ 533:
/***/ 574:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__533__;
module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
/***/ }),
/***/ 619:
/***/ 533:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__619__;
module.exports = __WEBPACK_EXTERNAL_MODULE__533__;

@@ -53,16 +53,9 @@ /***/ }),

/***/ 345:
/***/ 686:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__345__;
module.exports = __WEBPACK_EXTERNAL_MODULE__686__;
/***/ }),
/***/ 163:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__163__;
/***/ }),
/***/ 12:

@@ -110,9 +103,2 @@ /***/ ((module) => {

/***/ 501:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__501__;
/***/ }),
/***/ 84:

@@ -125,16 +111,2 @@ /***/ ((module) => {

/***/ 686:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__686__;
/***/ }),
/***/ 290:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__290__;
/***/ }),
/***/ 734:

@@ -147,6 +119,6 @@ /***/ ((module) => {

/***/ 2:
/***/ 59:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
module.exports = __WEBPACK_EXTERNAL_MODULE__59__;

@@ -259,2 +231,3 @@ /***/ }),

this.disableForReducedMotion = true;
this.flat = false;
this.shapeOptions = {};

@@ -298,2 +271,5 @@ }

}
if (data.flat !== undefined) {
this.flat = data.flat;
}
if (data.gravity !== undefined) {

@@ -358,32 +334,6 @@ this.gravity = data.gravity;

}
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/move-base","commonjs2":"@tsparticles/move-base","amd":"@tsparticles/move-base","root":"window"}
var move_base_root_window_ = __webpack_require__(619);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-circle","commonjs2":"@tsparticles/shape-circle","amd":"@tsparticles/shape-circle","root":"window"}
var shape_circle_root_window_ = __webpack_require__(163);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-color","commonjs2":"@tsparticles/updater-color","amd":"@tsparticles/updater-color","root":"window"}
var updater_color_root_window_ = __webpack_require__(501);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-opacity","commonjs2":"@tsparticles/updater-opacity","amd":"@tsparticles/updater-opacity","root":"window"}
var updater_opacity_root_window_ = __webpack_require__(686);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-out-modes","commonjs2":"@tsparticles/updater-out-modes","amd":"@tsparticles/updater-out-modes","root":"window"}
var updater_out_modes_root_window_ = __webpack_require__(290);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"}
var updater_size_root_window_ = __webpack_require__(2);
;// CONCATENATED MODULE: ../basic/dist/browser/index.js
async function loadBasic(engine, refresh = true) {
await (0,move_base_root_window_.loadBaseMover)(engine, false);
await (0,shape_circle_root_window_.loadCircleShape)(engine, false);
await (0,updater_color_root_window_.loadColorUpdater)(engine, false);
await (0,updater_opacity_root_window_.loadOpacityUpdater)(engine, false);
await (0,updater_out_modes_root_window_.loadOutModesUpdater)(engine, false);
await (0,updater_size_root_window_.loadSizeUpdater)(engine, false);
await engine.refresh(refresh);
}
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
var basic_root_window_ = __webpack_require__(574);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-cards","commonjs2":"@tsparticles/shape-cards","amd":"@tsparticles/shape-cards","root":"window"}
var shape_cards_root_window_ = __webpack_require__(345);
var shape_cards_root_window_ = __webpack_require__(686);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}

@@ -403,155 +353,4 @@ var plugin_emitters_root_window_ = __webpack_require__(68);

var updater_roll_root_window_ = __webpack_require__(734);
;// CONCATENATED MODULE: ../../updaters/rotate/dist/browser/Options/Classes/RotateAnimation.js
class RotateAnimation {
constructor() {
this.enable = false;
this.speed = 0;
this.decay = 0;
this.sync = false;
}
load(data) {
if (!data) {
return;
}
if (data.enable !== undefined) {
this.enable = data.enable;
}
if (data.speed !== undefined) {
this.speed = (0,engine_root_window_.setRangeValue)(data.speed);
}
if (data.decay !== undefined) {
this.decay = (0,engine_root_window_.setRangeValue)(data.decay);
}
if (data.sync !== undefined) {
this.sync = data.sync;
}
}
}
;// CONCATENATED MODULE: ../../updaters/rotate/dist/browser/Options/Classes/Rotate.js
class Rotate extends engine_root_window_.ValueWithRandom {
constructor() {
super();
this.animation = new RotateAnimation();
this.direction = "clockwise";
this.path = false;
this.value = 0;
}
load(data) {
if (!data) {
return;
}
super.load(data);
if (data.direction !== undefined) {
this.direction = data.direction;
}
this.animation.load(data.animation);
if (data.path !== undefined) {
this.path = data.path;
}
}
}
;// CONCATENATED MODULE: ../../updaters/rotate/dist/browser/RotateUpdater.js
function updateRotate(particle, delta) {
const rotate = particle.rotate,
rotateOptions = particle.options.rotate;
if (!rotate || !rotateOptions) {
return;
}
const rotateAnimation = rotateOptions.animation,
speed = (rotate.velocity ?? 0) * delta.factor,
max = 2 * Math.PI,
decay = rotate.decay ?? 1;
if (!rotateAnimation.enable) {
return;
}
switch (rotate.status) {
case "increasing":
rotate.value += speed;
if (rotate.value > max) {
rotate.value -= max;
}
break;
case "decreasing":
default:
rotate.value -= speed;
if (rotate.value < 0) {
rotate.value += max;
}
break;
}
if (rotate.velocity && decay !== 1) {
rotate.velocity *= decay;
}
}
class RotateUpdater {
constructor(container) {
this.container = container;
}
init(particle) {
const rotateOptions = particle.options.rotate;
if (!rotateOptions) {
return;
}
particle.rotate = {
enable: rotateOptions.animation.enable,
value: (0,engine_root_window_.getRangeValue)(rotateOptions.value) * Math.PI / 180
};
particle.pathRotation = rotateOptions.path;
let rotateDirection = rotateOptions.direction;
if (rotateDirection === "random") {
const index = Math.floor((0,engine_root_window_.getRandom)() * 2);
rotateDirection = index > 0 ? "counter-clockwise" : "clockwise";
}
switch (rotateDirection) {
case "counter-clockwise":
case "counterClockwise":
particle.rotate.status = "decreasing";
break;
case "clockwise":
particle.rotate.status = "increasing";
break;
}
const rotateAnimation = rotateOptions.animation;
if (rotateAnimation.enable) {
particle.rotate.decay = 1 - (0,engine_root_window_.getRangeValue)(rotateAnimation.decay);
particle.rotate.velocity = (0,engine_root_window_.getRangeValue)(rotateAnimation.speed) / 360 * this.container.retina.reduceFactor;
if (!rotateAnimation.sync) {
particle.rotate.velocity *= (0,engine_root_window_.getRandom)();
}
}
particle.rotation = particle.rotate.value;
}
isEnabled(particle) {
const rotate = particle.options.rotate;
if (!rotate) {
return false;
}
return !particle.destroyed && !particle.spawning && rotate.animation.enable && !rotate.path;
}
loadOptions(options, ...sources) {
if (!options.rotate) {
options.rotate = new Rotate();
}
for (const source of sources) {
options.rotate.load(source?.rotate);
}
}
update(particle, delta) {
if (!this.isEnabled(particle)) {
return;
}
updateRotate(particle, delta);
particle.rotation = particle.rotate?.value ?? 0;
}
}
;// CONCATENATED MODULE: ../../updaters/rotate/dist/browser/index.js
async function loadRotateUpdater(engine, refresh = true) {
await engine.addParticleUpdater("rotate", container => new RotateUpdater(container), refresh);
}
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"}
var updater_rotate_root_window_ = __webpack_require__(59);
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"}

@@ -613,3 +412,3 @@ var shape_square_root_window_ = __webpack_require__(652);

await (0,shape_text_root_window_.loadTextShape)(engine, false);
await loadRotateUpdater(engine, false);
await (0,updater_rotate_root_window_.loadRotateUpdater)(engine, false);
await (0,updater_life_root_window_.loadLifeUpdater)(engine, false);

@@ -619,3 +418,3 @@ await (0,updater_roll_root_window_.loadRollUpdater)(engine, false);

await (0,updater_wobble_root_window_.loadWobbleUpdater)(engine, false);
await loadBasic(engine);
await (0,basic_root_window_.loadBasic)(engine);
initializing = false;

@@ -763,3 +562,3 @@ initialized = true;

rotate: {
value: {
value: actualOptions.flat ? 0 : {
min: 0,

@@ -770,3 +569,3 @@ max: 360

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

@@ -777,4 +576,4 @@ }

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

@@ -793,3 +592,3 @@ max: 360

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

@@ -802,3 +601,3 @@ min: 15,

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

@@ -805,0 +604,0 @@ min: -15,

/*! For license information please see tsparticles.confetti.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/updater-size"),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/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/move-base","@tsparticles/shape-circle","@tsparticles/updater-color","@tsparticles/updater-opacity","@tsparticles/updater-out-modes","@tsparticles/updater-size","@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/shape-square","@tsparticles/shape-star","@tsparticles/shape-text","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/updater-size"),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/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/shape-text"),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,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,c,p,d,u,h,y,v,f,w,m,g)=>(()=>{"use strict";var x={533:t=>{t.exports=e},619:e=>{e.exports=t},68:e=>{e.exports=l},82:e=>{e.exports=u},345:e=>{e.exports=n},163:e=>{e.exports=i},12:e=>{e.exports=c},885:e=>{e.exports=p},907:e=>{e.exports=h},652:e=>{e.exports=v},960:e=>{e.exports=f},727:e=>{e.exports=w},501:e=>{e.exports=a},84:e=>{e.exports=d},686:e=>{e.exports=s},290:e=>{e.exports=r},734:e=>{e.exports=y},2:e=>{e.exports=o},448:e=>{e.exports=m},83:e=>{e.exports=g}},b={};function q(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return x[e](i,i.exports,q),i.exports}q.d=(e,t)=>{for(var i in t)q.o(t,i)&&!q.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},q.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),q.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var S={};return(()=>{q.r(S),q.d(S,{confetti:()=>I});var e=q(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.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.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=q(619),a=q(163),s=q(501),r=q(686),o=q(290),n=q(2);var l=q(345),c=q(68),p=q(12),d=q(885),u=q(84),h=q(82),y=q(907),v=q(734);class f{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,e.setRangeValue)(t.speed)),void 0!==t.decay&&(this.decay=(0,e.setRangeValue)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class w extends e.ValueWithRandom{constructor(){super(),this.animation=new f,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}class m{constructor(e){this.container=e}init(t){const i=t.options.rotate;if(!i)return;t.rotate={enable:i.animation.enable,value:(0,e.getRangeValue)(i.value)*Math.PI/180},t.pathRotation=i.path;let a=i.direction;if("random"===a){a=Math.floor(2*(0,e.getRandom)())>0?"counter-clockwise":"clockwise"}switch(a){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}const s=i.animation;s.enable&&(t.rotate.decay=1-(0,e.getRangeValue)(s.decay),t.rotate.velocity=(0,e.getRangeValue)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,e.getRandom)())),t.rotation=t.rotate.value}isEnabled(e){const t=e.options.rotate;return!!t&&(!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path)}loadOptions(e,...t){e.rotate||(e.rotate=new w);for(const i of t)e.rotate.load(i?.rotate)}update(e,t){this.isEnabled(e)&&(!function(e,t){const i=e.rotate,a=e.options.rotate;if(!i||!a)return;const s=a.animation,r=(i.velocity??0)*t.factor,o=2*Math.PI,n=i.decay??1;s.enable&&("increasing"===i.status?(i.value+=r,i.value>o&&(i.value-=o)):(i.value-=r,i.value<0&&(i.value+=o)),i.velocity&&1!==n&&(i.velocity*=n))}(e,t),e.rotation=e.rotate?.value??0)}}var g=q(652),x=q(960),b=q(727),R=q(448),M=q(83);let P=!1,k=!1;const z=new Map;async function O(e){if(!P){if(k)return new Promise((e=>{const t=setInterval((()=>{P&&(clearInterval(t),e())}),100)}));k=!0,await(0,c.loadEmittersPlugin)(e,!1),await(0,h.loadMotionPlugin)(e,!1),await(0,l.loadCardsShape)(e,!1),await(0,p.loadHeartShape)(e,!1),await(0,d.loadImageShape)(e,!1),await(0,y.loadPolygonShape)(e,!1),await(0,g.loadSquareShape)(e,!1),await(0,x.loadStarShape)(e,!1),await(0,b.loadTextShape)(e,!1),await async function(e,t=!0){await e.addParticleUpdater("rotate",(e=>new m(e)),t)}(e,!1),await(0,u.loadLifeUpdater)(e,!1),await(0,v.loadRollUpdater)(e,!1),await(0,R.loadTiltUpdater)(e,!1),await(0,M.loadWobbleUpdater)(e,!1),await async function(e,t=!0){await(0,i.loadBaseMover)(e,!1),await(0,a.loadCircleShape)(e,!1),await(0,s.loadColorUpdater)(e,!1),await(0,r.loadOpacityUpdater)(e,!1),await(0,o.loadOutModesUpdater)(e,!1),await(0,n.loadSizeUpdater)(e,!1),await e.refresh(t)}(e),k=!1,P=!0}}async function V(i){const a=new t;let s;a.load(i.options);const r=1e3*a.ticks/432e3;if(z.has(i.id)&&(s=z.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:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,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}),z.set(i.id,s),s}async function I(t,i){let a,s;return await O(e.tsParticles),(0,e.isString)(t)?(s=t,a=i??{}):(s="confetti",a=t),V({id:s,options:a})}I.create=async(t,i)=>{if(!t)return I;await O(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),V({id:n,canvas:t,options:o})}},I.version=e.tsParticles.version,(0,e.isSsr)()||(window.confetti=I)})(),S})()));
!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})()));

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

/*! tsParticles Confetti v3.0.0-beta.3 by Matteo Bruni */
/*! tsParticles Confetti v3.0.0-beta.4 by Matteo Bruni */

@@ -10,2 +10,3 @@ import { type ICoordinates, type IOptionLoader, type RecursivePartial, type ShapeData, type SingleOrMultiple } from "@tsparticles/engine";

drift: number;
flat: boolean;
gravity: number;

@@ -12,0 +13,0 @@ position: ICoordinates;

@@ -9,2 +9,3 @@ import type { ICoordinates, SingleOrMultiple } from "@tsparticles/engine";

drift: number;
flat: boolean;
gravity: number;

@@ -11,0 +12,0 @@ origin: ICoordinates;

@@ -199,9 +199,11 @@ (function (factory) {

rotate: {
value: {
min: 0,
max: 360,
},
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
direction: "random",
animation: {
enable: true,
enable: actualOptions.flat,
speed: 60,

@@ -212,7 +214,9 @@ },

direction: "random",
enable: true,
value: {
min: 0,
max: 360,
},
enable: actualOptions.flat,
value: actualOptions.flat
? 0
: {
min: 0,
max: 360,
},
animation: {

@@ -228,3 +232,3 @@ enable: true,

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

@@ -237,3 +241,3 @@ min: 15,

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

@@ -240,0 +244,0 @@ min: -15,

@@ -33,2 +33,3 @@ (function (factory) {

this.disableForReducedMotion = true;
this.flat = false;
this.shapeOptions = {};

@@ -72,2 +73,5 @@ }

}
if (data.flat !== undefined) {
this.flat = data.flat;
}
if (data.gravity !== undefined) {

@@ -74,0 +78,0 @@ this.gravity = data.gravity;

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