@tsparticles/confetti 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/browser/confetti.js +6 -6
- package/cjs/confetti.js +6 -6
- package/esm/confetti.js +6 -6
- package/package.json +17 -17
- package/report.html +2 -2
- package/tsparticles.confetti.bundle.js +128 -96
- package/tsparticles.confetti.bundle.min.js +1 -1
- package/tsparticles.confetti.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.confetti.js +19 -19
- package/tsparticles.confetti.min.js +1 -1
- package/tsparticles.confetti.min.js.LICENSE.txt +1 -1
- package/umd/confetti.js +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Confetti v3.0.
|
|
1
|
+
/*! tsParticles Confetti v3.0.3 by Matteo Bruni */
|
package/tsparticles.confetti.js
CHANGED
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v3.0.
|
|
7
|
+
* v3.0.3
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
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/
|
|
11
|
+
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"));
|
|
12
12
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
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/
|
|
13
|
+
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);
|
|
14
14
|
else {
|
|
15
|
-
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/
|
|
15
|
+
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"]);
|
|
16
16
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
17
|
}
|
|
18
|
-
})(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__,
|
|
18
|
+
})(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__) => {
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ "use strict";
|
|
21
21
|
/******/ var __webpack_modules__ = ({
|
|
@@ -55,6 +55,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__686__;
|
|
|
55
55
|
|
|
56
56
|
/***/ }),
|
|
57
57
|
|
|
58
|
+
/***/ 151:
|
|
59
|
+
/***/ ((module) => {
|
|
60
|
+
|
|
61
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__151__;
|
|
62
|
+
|
|
63
|
+
/***/ }),
|
|
64
|
+
|
|
58
65
|
/***/ 12:
|
|
59
66
|
/***/ ((module) => {
|
|
60
67
|
|
|
@@ -90,13 +97,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__960__;
|
|
|
90
97
|
|
|
91
98
|
/***/ }),
|
|
92
99
|
|
|
93
|
-
/***/ 727:
|
|
94
|
-
/***/ ((module) => {
|
|
95
|
-
|
|
96
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__727__;
|
|
97
|
-
|
|
98
|
-
/***/ }),
|
|
99
|
-
|
|
100
100
|
/***/ 84:
|
|
101
101
|
/***/ ((module) => {
|
|
102
102
|
|
|
@@ -329,6 +329,8 @@ var basic_root_window_ = __webpack_require__(574);
|
|
|
329
329
|
var shape_cards_root_window_ = __webpack_require__(686);
|
|
330
330
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
|
|
331
331
|
var plugin_emitters_root_window_ = __webpack_require__(68);
|
|
332
|
+
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-emoji","commonjs2":"@tsparticles/shape-emoji","amd":"@tsparticles/shape-emoji","root":"window"}
|
|
333
|
+
var shape_emoji_root_window_ = __webpack_require__(151);
|
|
332
334
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-heart","commonjs2":"@tsparticles/shape-heart","amd":"@tsparticles/shape-heart","root":"window"}
|
|
333
335
|
var shape_heart_root_window_ = __webpack_require__(12);
|
|
334
336
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-image","commonjs2":"@tsparticles/shape-image","amd":"@tsparticles/shape-image","root":"window"}
|
|
@@ -347,8 +349,6 @@ var updater_rotate_root_window_ = __webpack_require__(59);
|
|
|
347
349
|
var shape_square_root_window_ = __webpack_require__(652);
|
|
348
350
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-star","commonjs2":"@tsparticles/shape-star","amd":"@tsparticles/shape-star","root":"window"}
|
|
349
351
|
var shape_star_root_window_ = __webpack_require__(960);
|
|
350
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-text","commonjs2":"@tsparticles/shape-text","amd":"@tsparticles/shape-text","root":"window"}
|
|
351
|
-
var shape_text_root_window_ = __webpack_require__(727);
|
|
352
352
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"}
|
|
353
353
|
var updater_tilt_root_window_ = __webpack_require__(448);
|
|
354
354
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"}
|
|
@@ -398,7 +398,7 @@ async function initPlugins(engine) {
|
|
|
398
398
|
await (0,shape_polygon_root_window_.loadPolygonShape)(engine, false);
|
|
399
399
|
await (0,shape_square_root_window_.loadSquareShape)(engine, false);
|
|
400
400
|
await (0,shape_star_root_window_.loadStarShape)(engine, false);
|
|
401
|
-
await (0,
|
|
401
|
+
await (0,shape_emoji_root_window_.loadEmojiShape)(engine, false);
|
|
402
402
|
await (0,updater_rotate_root_window_.loadRotateUpdater)(engine, false);
|
|
403
403
|
await (0,updater_life_root_window_.loadLifeUpdater)(engine, false);
|
|
404
404
|
await (0,updater_roll_root_window_.loadRollUpdater)(engine, false);
|
|
@@ -553,13 +553,13 @@ async function setConfetti(params) {
|
|
|
553
553
|
},
|
|
554
554
|
direction: "random",
|
|
555
555
|
animation: {
|
|
556
|
-
enable: actualOptions.flat,
|
|
556
|
+
enable: !actualOptions.flat,
|
|
557
557
|
speed: 60
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
tilt: {
|
|
561
561
|
direction: "random",
|
|
562
|
-
enable: actualOptions.flat,
|
|
562
|
+
enable: !actualOptions.flat,
|
|
563
563
|
value: actualOptions.flat ? 0 : {
|
|
564
564
|
min: 0,
|
|
565
565
|
max: 360
|
|
@@ -574,7 +574,7 @@ async function setConfetti(params) {
|
|
|
574
574
|
enable: true,
|
|
575
575
|
value: 25
|
|
576
576
|
},
|
|
577
|
-
enable: actualOptions.flat,
|
|
577
|
+
enable: !actualOptions.flat,
|
|
578
578
|
speed: {
|
|
579
579
|
min: 15,
|
|
580
580
|
max: 25
|
|
@@ -582,7 +582,7 @@ async function setConfetti(params) {
|
|
|
582
582
|
},
|
|
583
583
|
wobble: {
|
|
584
584
|
distance: 30,
|
|
585
|
-
enable: actualOptions.flat,
|
|
585
|
+
enable: !actualOptions.flat,
|
|
586
586
|
speed: {
|
|
587
587
|
min: -15,
|
|
588
588
|
max: 15
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.confetti.min.js.LICENSE.txt */
|
|
2
|
-
!function(t
|
|
2
|
+
!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 @@
|
|
|
1
|
-
/*! tsParticles Confetti v3.0.
|
|
1
|
+
/*! tsParticles Confetti v3.0.3 by Matteo Bruni */
|
package/umd/confetti.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
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/
|
|
7
|
+
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);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
const basic_1 = require("@tsparticles/basic");
|
|
16
16
|
const shape_cards_1 = require("@tsparticles/shape-cards");
|
|
17
17
|
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
18
|
+
const shape_emoji_1 = require("@tsparticles/shape-emoji");
|
|
18
19
|
const shape_heart_1 = require("@tsparticles/shape-heart");
|
|
19
20
|
const shape_image_1 = require("@tsparticles/shape-image");
|
|
20
21
|
const updater_life_1 = require("@tsparticles/updater-life");
|
|
@@ -24,7 +25,6 @@
|
|
|
24
25
|
const updater_rotate_1 = require("@tsparticles/updater-rotate");
|
|
25
26
|
const shape_square_1 = require("@tsparticles/shape-square");
|
|
26
27
|
const shape_star_1 = require("@tsparticles/shape-star");
|
|
27
|
-
const shape_text_1 = require("@tsparticles/shape-text");
|
|
28
28
|
const updater_tilt_1 = require("@tsparticles/updater-tilt");
|
|
29
29
|
const updater_wobble_1 = require("@tsparticles/updater-wobble");
|
|
30
30
|
let initialized = false;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
await (0, shape_polygon_1.loadPolygonShape)(engine, false);
|
|
55
55
|
await (0, shape_square_1.loadSquareShape)(engine, false);
|
|
56
56
|
await (0, shape_star_1.loadStarShape)(engine, false);
|
|
57
|
-
await (0,
|
|
57
|
+
await (0, shape_emoji_1.loadEmojiShape)(engine, false);
|
|
58
58
|
await (0, updater_rotate_1.loadRotateUpdater)(engine, false);
|
|
59
59
|
await (0, updater_life_1.loadLifeUpdater)(engine, false);
|
|
60
60
|
await (0, updater_roll_1.loadRollUpdater)(engine, false);
|
|
@@ -204,13 +204,13 @@
|
|
|
204
204
|
},
|
|
205
205
|
direction: "random",
|
|
206
206
|
animation: {
|
|
207
|
-
enable: actualOptions.flat,
|
|
207
|
+
enable: !actualOptions.flat,
|
|
208
208
|
speed: 60,
|
|
209
209
|
},
|
|
210
210
|
},
|
|
211
211
|
tilt: {
|
|
212
212
|
direction: "random",
|
|
213
|
-
enable: actualOptions.flat,
|
|
213
|
+
enable: !actualOptions.flat,
|
|
214
214
|
value: actualOptions.flat
|
|
215
215
|
? 0
|
|
216
216
|
: {
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
enable: true,
|
|
228
228
|
value: 25,
|
|
229
229
|
},
|
|
230
|
-
enable: actualOptions.flat,
|
|
230
|
+
enable: !actualOptions.flat,
|
|
231
231
|
speed: {
|
|
232
232
|
min: 15,
|
|
233
233
|
max: 25,
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
wobble: {
|
|
237
237
|
distance: 30,
|
|
238
|
-
enable: actualOptions.flat,
|
|
238
|
+
enable: !actualOptions.flat,
|
|
239
239
|
speed: {
|
|
240
240
|
min: -15,
|
|
241
241
|
max: 15,
|