@tsparticles/confetti 4.0.3 → 4.0.5
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/browser/confetti.js +2 -2
- package/browser/confetti.lazy.js +2 -2
- package/cjs/confetti.js +2 -2
- package/cjs/confetti.lazy.js +2 -2
- package/esm/confetti.js +2 -2
- package/esm/confetti.lazy.js +2 -2
- package/package.json +17 -17
- package/tsparticles.confetti.bundle.js +35 -35
- package/tsparticles.confetti.bundle.min.js +1 -1
- package/tsparticles.confetti.js +3 -3
- package/tsparticles.confetti.min.js +1 -1
package/browser/confetti.js
CHANGED
|
@@ -17,7 +17,7 @@ import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
|
|
|
17
17
|
import { setConfetti } from "./utils.js";
|
|
18
18
|
let initPromise = null;
|
|
19
19
|
async function doInitPlugins(engine) {
|
|
20
|
-
engine.checkVersion("4.0.
|
|
20
|
+
engine.checkVersion("4.0.5");
|
|
21
21
|
await engine.pluginManager.register(async (e) => {
|
|
22
22
|
await Promise.all([
|
|
23
23
|
loadBasic(e),
|
|
@@ -90,5 +90,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
90
90
|
confetti.init = async () => {
|
|
91
91
|
await initPlugins(tsParticles);
|
|
92
92
|
};
|
|
93
|
-
confetti.version = "4.0.
|
|
93
|
+
confetti.version = "4.0.5";
|
|
94
94
|
globalThis.confetti = confetti;
|
package/browser/confetti.lazy.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { setConfetti } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0.
|
|
5
|
+
engine.checkVersion("4.0.5");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadCardSuitsShape }, { loadEmojiShape }, { loadHeartShape }, { loadImageShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadRotateUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadTiltUpdater }, { loadWobbleUpdater },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -92,5 +92,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
92
92
|
confetti.init = async () => {
|
|
93
93
|
await initPlugins(tsParticles);
|
|
94
94
|
};
|
|
95
|
-
confetti.version = "4.0.
|
|
95
|
+
confetti.version = "4.0.5";
|
|
96
96
|
globalThis.confetti = confetti;
|
package/cjs/confetti.js
CHANGED
|
@@ -17,7 +17,7 @@ import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
|
|
|
17
17
|
import { setConfetti } from "./utils.js";
|
|
18
18
|
let initPromise = null;
|
|
19
19
|
async function doInitPlugins(engine) {
|
|
20
|
-
engine.checkVersion("4.0.
|
|
20
|
+
engine.checkVersion("4.0.5");
|
|
21
21
|
await engine.pluginManager.register(async (e) => {
|
|
22
22
|
await Promise.all([
|
|
23
23
|
loadBasic(e),
|
|
@@ -90,5 +90,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
90
90
|
confetti.init = async () => {
|
|
91
91
|
await initPlugins(tsParticles);
|
|
92
92
|
};
|
|
93
|
-
confetti.version = "4.0.
|
|
93
|
+
confetti.version = "4.0.5";
|
|
94
94
|
globalThis.confetti = confetti;
|
package/cjs/confetti.lazy.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { setConfetti } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0.
|
|
5
|
+
engine.checkVersion("4.0.5");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadCardSuitsShape }, { loadEmojiShape }, { loadHeartShape }, { loadImageShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadRotateUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadTiltUpdater }, { loadWobbleUpdater },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -92,5 +92,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
92
92
|
confetti.init = async () => {
|
|
93
93
|
await initPlugins(tsParticles);
|
|
94
94
|
};
|
|
95
|
-
confetti.version = "4.0.
|
|
95
|
+
confetti.version = "4.0.5";
|
|
96
96
|
globalThis.confetti = confetti;
|
package/esm/confetti.js
CHANGED
|
@@ -17,7 +17,7 @@ import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
|
|
|
17
17
|
import { setConfetti } from "./utils.js";
|
|
18
18
|
let initPromise = null;
|
|
19
19
|
async function doInitPlugins(engine) {
|
|
20
|
-
engine.checkVersion("4.0.
|
|
20
|
+
engine.checkVersion("4.0.5");
|
|
21
21
|
await engine.pluginManager.register(async (e) => {
|
|
22
22
|
await Promise.all([
|
|
23
23
|
loadBasic(e),
|
|
@@ -90,5 +90,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
90
90
|
confetti.init = async () => {
|
|
91
91
|
await initPlugins(tsParticles);
|
|
92
92
|
};
|
|
93
|
-
confetti.version = "4.0.
|
|
93
|
+
confetti.version = "4.0.5";
|
|
94
94
|
globalThis.confetti = confetti;
|
package/esm/confetti.lazy.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { setConfetti } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0.
|
|
5
|
+
engine.checkVersion("4.0.5");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadMotionPlugin }, { loadCardSuitsShape }, { loadEmojiShape }, { loadHeartShape }, { loadImageShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadRotateUpdater }, { loadLifeUpdater }, { loadRollUpdater }, { loadTiltUpdater }, { loadWobbleUpdater },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -92,5 +92,5 @@ confetti.create = async (canvas, options = {}) => {
|
|
|
92
92
|
confetti.init = async () => {
|
|
93
93
|
await initPlugins(tsParticles);
|
|
94
94
|
};
|
|
95
|
-
confetti.version = "4.0.
|
|
95
|
+
confetti.version = "4.0.5";
|
|
96
96
|
globalThis.confetti = confetti;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/confetti",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
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.",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -105,22 +105,22 @@
|
|
|
105
105
|
"./package.json": "./package.json"
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@tsparticles/basic": "4.0.
|
|
109
|
-
"@tsparticles/engine": "4.0.
|
|
110
|
-
"@tsparticles/plugin-emitters": "4.0.
|
|
111
|
-
"@tsparticles/plugin-motion": "4.0.
|
|
112
|
-
"@tsparticles/shape-cards": "4.0.
|
|
113
|
-
"@tsparticles/shape-emoji": "4.0.
|
|
114
|
-
"@tsparticles/shape-heart": "4.0.
|
|
115
|
-
"@tsparticles/shape-image": "4.0.
|
|
116
|
-
"@tsparticles/shape-polygon": "4.0.
|
|
117
|
-
"@tsparticles/shape-square": "4.0.
|
|
118
|
-
"@tsparticles/shape-star": "4.0.
|
|
119
|
-
"@tsparticles/updater-life": "4.0.
|
|
120
|
-
"@tsparticles/updater-roll": "4.0.
|
|
121
|
-
"@tsparticles/updater-rotate": "4.0.
|
|
122
|
-
"@tsparticles/updater-tilt": "4.0.
|
|
123
|
-
"@tsparticles/updater-wobble": "4.0.
|
|
108
|
+
"@tsparticles/basic": "4.0.5",
|
|
109
|
+
"@tsparticles/engine": "4.0.5",
|
|
110
|
+
"@tsparticles/plugin-emitters": "4.0.5",
|
|
111
|
+
"@tsparticles/plugin-motion": "4.0.5",
|
|
112
|
+
"@tsparticles/shape-cards": "4.0.5",
|
|
113
|
+
"@tsparticles/shape-emoji": "4.0.5",
|
|
114
|
+
"@tsparticles/shape-heart": "4.0.5",
|
|
115
|
+
"@tsparticles/shape-image": "4.0.5",
|
|
116
|
+
"@tsparticles/shape-polygon": "4.0.5",
|
|
117
|
+
"@tsparticles/shape-square": "4.0.5",
|
|
118
|
+
"@tsparticles/shape-star": "4.0.5",
|
|
119
|
+
"@tsparticles/updater-life": "4.0.5",
|
|
120
|
+
"@tsparticles/updater-roll": "4.0.5",
|
|
121
|
+
"@tsparticles/updater-rotate": "4.0.5",
|
|
122
|
+
"@tsparticles/updater-tilt": "4.0.5",
|
|
123
|
+
"@tsparticles/updater-wobble": "4.0.5"
|
|
124
124
|
},
|
|
125
125
|
"publishConfig": {
|
|
126
126
|
"access": "public"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
|
-
/* tsParticles v4.0.
|
|
2
|
+
/* tsParticles v4.0.5 */
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
5
5
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
return this._domArray;
|
|
1119
1119
|
}
|
|
1120
1120
|
get version() {
|
|
1121
|
-
return "4.0.
|
|
1121
|
+
return "4.0.5";
|
|
1122
1122
|
}
|
|
1123
1123
|
addEventListener(type, listener) {
|
|
1124
1124
|
this._eventDispatcher.addEventListener(type, listener);
|
|
@@ -3055,7 +3055,7 @@
|
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
3057
|
async function loadBlendPlugin(engine) {
|
|
3058
|
-
engine.checkVersion("4.0.
|
|
3058
|
+
engine.checkVersion("4.0.5");
|
|
3059
3059
|
await engine.pluginManager.register(e => {
|
|
3060
3060
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
3061
3061
|
});
|
|
@@ -3092,7 +3092,7 @@
|
|
|
3092
3092
|
}
|
|
3093
3093
|
|
|
3094
3094
|
async function loadCircleShape(engine) {
|
|
3095
|
-
engine.checkVersion("4.0.
|
|
3095
|
+
engine.checkVersion("4.0.5");
|
|
3096
3096
|
await engine.pluginManager.register(e => {
|
|
3097
3097
|
e.pluginManager.addShape(["circle"], () => {
|
|
3098
3098
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -3140,7 +3140,7 @@
|
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
3142
|
async function loadHexColorPlugin(engine) {
|
|
3143
|
-
engine.checkVersion("4.0.
|
|
3143
|
+
engine.checkVersion("4.0.5");
|
|
3144
3144
|
await engine.pluginManager.register(e => {
|
|
3145
3145
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
3146
3146
|
});
|
|
@@ -3193,7 +3193,7 @@
|
|
|
3193
3193
|
}
|
|
3194
3194
|
|
|
3195
3195
|
async function loadHslColorPlugin(engine) {
|
|
3196
|
-
engine.checkVersion("4.0.
|
|
3196
|
+
engine.checkVersion("4.0.5");
|
|
3197
3197
|
await engine.pluginManager.register(e => {
|
|
3198
3198
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3199
3199
|
});
|
|
@@ -3217,7 +3217,7 @@
|
|
|
3217
3217
|
}
|
|
3218
3218
|
|
|
3219
3219
|
async function loadMovePlugin(engine) {
|
|
3220
|
-
engine.checkVersion("4.0.
|
|
3220
|
+
engine.checkVersion("4.0.5");
|
|
3221
3221
|
await engine.pluginManager.register(e => {
|
|
3222
3222
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3223
3223
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3278,7 +3278,7 @@
|
|
|
3278
3278
|
}
|
|
3279
3279
|
|
|
3280
3280
|
async function loadOpacityUpdater(engine) {
|
|
3281
|
-
engine.checkVersion("4.0.
|
|
3281
|
+
engine.checkVersion("4.0.5");
|
|
3282
3282
|
await engine.pluginManager.register(e => {
|
|
3283
3283
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3284
3284
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3630,7 +3630,7 @@
|
|
|
3630
3630
|
}
|
|
3631
3631
|
|
|
3632
3632
|
async function loadOutModesUpdater(engine) {
|
|
3633
|
-
engine.checkVersion("4.0.
|
|
3633
|
+
engine.checkVersion("4.0.5");
|
|
3634
3634
|
await engine.pluginManager.register(e => {
|
|
3635
3635
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3636
3636
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3701,7 +3701,7 @@
|
|
|
3701
3701
|
}
|
|
3702
3702
|
|
|
3703
3703
|
async function loadPaintUpdater(engine) {
|
|
3704
|
-
engine.checkVersion("4.0.
|
|
3704
|
+
engine.checkVersion("4.0.5");
|
|
3705
3705
|
await engine.pluginManager.register(e => {
|
|
3706
3706
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3707
3707
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3756,7 +3756,7 @@
|
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
3758
|
async function loadRgbColorPlugin(engine) {
|
|
3759
|
-
engine.checkVersion("4.0.
|
|
3759
|
+
engine.checkVersion("4.0.5");
|
|
3760
3760
|
await engine.pluginManager.register(e => {
|
|
3761
3761
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3762
3762
|
});
|
|
@@ -3799,7 +3799,7 @@
|
|
|
3799
3799
|
}
|
|
3800
3800
|
|
|
3801
3801
|
async function loadSizeUpdater(engine) {
|
|
3802
|
-
engine.checkVersion("4.0.
|
|
3802
|
+
engine.checkVersion("4.0.5");
|
|
3803
3803
|
await engine.pluginManager.register(e => {
|
|
3804
3804
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3805
3805
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3808,7 +3808,7 @@
|
|
|
3808
3808
|
}
|
|
3809
3809
|
|
|
3810
3810
|
async function loadBasic(engine) {
|
|
3811
|
-
engine.checkVersion("4.0.
|
|
3811
|
+
engine.checkVersion("4.0.5");
|
|
3812
3812
|
await engine.pluginManager.register(async (e) => {
|
|
3813
3813
|
await Promise.all([
|
|
3814
3814
|
loadBlendPlugin(e),
|
|
@@ -4108,7 +4108,7 @@
|
|
|
4108
4108
|
}
|
|
4109
4109
|
|
|
4110
4110
|
async function loadClubsSuitShape(engine) {
|
|
4111
|
-
engine.checkVersion("4.0.
|
|
4111
|
+
engine.checkVersion("4.0.5");
|
|
4112
4112
|
await engine.pluginManager.register(e => {
|
|
4113
4113
|
e.pluginManager.addShape(["club", "clubs"], () => Promise.resolve(new ClubDrawer()));
|
|
4114
4114
|
});
|
|
@@ -4122,7 +4122,7 @@
|
|
|
4122
4122
|
}
|
|
4123
4123
|
|
|
4124
4124
|
async function loadDiamondsSuitShape(engine) {
|
|
4125
|
-
engine.checkVersion("4.0.
|
|
4125
|
+
engine.checkVersion("4.0.5");
|
|
4126
4126
|
await engine.pluginManager.register(e => {
|
|
4127
4127
|
e.pluginManager.addShape(["diamond", "diamonds"], () => Promise.resolve(new DiamondDrawer()));
|
|
4128
4128
|
});
|
|
@@ -4136,7 +4136,7 @@
|
|
|
4136
4136
|
};
|
|
4137
4137
|
|
|
4138
4138
|
async function loadHeartsSuitShape(engine) {
|
|
4139
|
-
engine.checkVersion("4.0.
|
|
4139
|
+
engine.checkVersion("4.0.5");
|
|
4140
4140
|
await engine.pluginManager.register(e => {
|
|
4141
4141
|
e.pluginManager.addShape(["heart", "hearts"], () => Promise.resolve(new HeartDrawer$1()));
|
|
4142
4142
|
});
|
|
@@ -4150,14 +4150,14 @@
|
|
|
4150
4150
|
}
|
|
4151
4151
|
|
|
4152
4152
|
async function loadSpadesSuitShape(engine) {
|
|
4153
|
-
engine.checkVersion("4.0.
|
|
4153
|
+
engine.checkVersion("4.0.5");
|
|
4154
4154
|
await engine.pluginManager.register(e => {
|
|
4155
4155
|
e.pluginManager.addShape(["spade", "spades"], () => Promise.resolve(new SpadeDrawer()));
|
|
4156
4156
|
});
|
|
4157
4157
|
}
|
|
4158
4158
|
|
|
4159
4159
|
async function loadCardSuitsShape(engine) {
|
|
4160
|
-
engine.checkVersion("4.0.
|
|
4160
|
+
engine.checkVersion("4.0.5");
|
|
4161
4161
|
await Promise.all([
|
|
4162
4162
|
loadClubsSuitShape(engine),
|
|
4163
4163
|
loadDiamondsSuitShape(engine),
|
|
@@ -4434,7 +4434,7 @@
|
|
|
4434
4434
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
4435
4435
|
|
|
4436
4436
|
async function loadEmittersPluginSimple(engine) {
|
|
4437
|
-
engine.checkVersion("4.0.
|
|
4437
|
+
engine.checkVersion("4.0.5");
|
|
4438
4438
|
await engine.pluginManager.register(async (e) => {
|
|
4439
4439
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
4440
4440
|
await addEmittersShapesManager(e);
|
|
@@ -4536,7 +4536,7 @@
|
|
|
4536
4536
|
}
|
|
4537
4537
|
|
|
4538
4538
|
async function loadEmojiShape(engine) {
|
|
4539
|
-
engine.checkVersion("4.0.
|
|
4539
|
+
engine.checkVersion("4.0.5");
|
|
4540
4540
|
await engine.pluginManager.register(e => {
|
|
4541
4541
|
e.pluginManager.addShape(validTypes, () => Promise.resolve(new EmojiDrawer()));
|
|
4542
4542
|
});
|
|
@@ -4562,7 +4562,7 @@
|
|
|
4562
4562
|
}
|
|
4563
4563
|
|
|
4564
4564
|
async function loadHeartShape(engine) {
|
|
4565
|
-
engine.checkVersion("4.0.
|
|
4565
|
+
engine.checkVersion("4.0.5");
|
|
4566
4566
|
await engine.pluginManager.register(e => {
|
|
4567
4567
|
e.pluginManager.addShape(["heart"], () => Promise.resolve(new HeartDrawer()));
|
|
4568
4568
|
});
|
|
@@ -5387,7 +5387,7 @@
|
|
|
5387
5387
|
};
|
|
5388
5388
|
}
|
|
5389
5389
|
async function loadImageShape(engine) {
|
|
5390
|
-
engine.checkVersion("4.0.
|
|
5390
|
+
engine.checkVersion("4.0.5");
|
|
5391
5391
|
await engine.pluginManager.register(e => {
|
|
5392
5392
|
addLoadImageToEngine(e);
|
|
5393
5393
|
e.pluginManager.addPlugin(new ImagePreloaderPlugin(e));
|
|
@@ -5554,7 +5554,7 @@
|
|
|
5554
5554
|
}
|
|
5555
5555
|
|
|
5556
5556
|
async function loadLifeUpdater(engine) {
|
|
5557
|
-
engine.checkVersion("4.0.
|
|
5557
|
+
engine.checkVersion("4.0.5");
|
|
5558
5558
|
await engine.pluginManager.register(e => {
|
|
5559
5559
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
5560
5560
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -5622,7 +5622,7 @@
|
|
|
5622
5622
|
}
|
|
5623
5623
|
|
|
5624
5624
|
async function loadMotionPlugin(engine) {
|
|
5625
|
-
engine.checkVersion("4.0.
|
|
5625
|
+
engine.checkVersion("4.0.5");
|
|
5626
5626
|
await engine.pluginManager.register(e => {
|
|
5627
5627
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
5628
5628
|
});
|
|
@@ -5707,19 +5707,19 @@
|
|
|
5707
5707
|
}
|
|
5708
5708
|
|
|
5709
5709
|
async function loadGenericPolygonShape(engine) {
|
|
5710
|
-
engine.checkVersion("4.0.
|
|
5710
|
+
engine.checkVersion("4.0.5");
|
|
5711
5711
|
await engine.pluginManager.register(e => {
|
|
5712
5712
|
e.pluginManager.addShape(["polygon"], () => Promise.resolve(new PolygonDrawer()));
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
5715
5715
|
async function loadTriangleShape(engine) {
|
|
5716
|
-
engine.checkVersion("4.0.
|
|
5716
|
+
engine.checkVersion("4.0.5");
|
|
5717
5717
|
await engine.pluginManager.register(e => {
|
|
5718
5718
|
e.pluginManager.addShape(["triangle"], () => Promise.resolve(new TriangleDrawer()));
|
|
5719
5719
|
});
|
|
5720
5720
|
}
|
|
5721
5721
|
async function loadPolygonShape(engine) {
|
|
5722
|
-
engine.checkVersion("4.0.
|
|
5722
|
+
engine.checkVersion("4.0.5");
|
|
5723
5723
|
await Promise.all([
|
|
5724
5724
|
loadGenericPolygonShape(engine),
|
|
5725
5725
|
loadTriangleShape(engine),
|
|
@@ -5877,7 +5877,7 @@
|
|
|
5877
5877
|
}
|
|
5878
5878
|
|
|
5879
5879
|
async function loadRollUpdater(engine) {
|
|
5880
|
-
engine.checkVersion("4.0.
|
|
5880
|
+
engine.checkVersion("4.0.5");
|
|
5881
5881
|
await engine.pluginManager.register(e => {
|
|
5882
5882
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
5883
5883
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -6011,7 +6011,7 @@
|
|
|
6011
6011
|
}
|
|
6012
6012
|
|
|
6013
6013
|
async function loadRotateUpdater(engine) {
|
|
6014
|
-
engine.checkVersion("4.0.
|
|
6014
|
+
engine.checkVersion("4.0.5");
|
|
6015
6015
|
await engine.pluginManager.register(e => {
|
|
6016
6016
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
6017
6017
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -6035,7 +6035,7 @@
|
|
|
6035
6035
|
}
|
|
6036
6036
|
|
|
6037
6037
|
async function loadSquareShape(engine) {
|
|
6038
|
-
engine.checkVersion("4.0.
|
|
6038
|
+
engine.checkVersion("4.0.5");
|
|
6039
6039
|
await engine.pluginManager.register(e => {
|
|
6040
6040
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
6041
6041
|
});
|
|
@@ -6069,7 +6069,7 @@
|
|
|
6069
6069
|
}
|
|
6070
6070
|
|
|
6071
6071
|
async function loadStarShape(engine) {
|
|
6072
|
-
engine.checkVersion("4.0.
|
|
6072
|
+
engine.checkVersion("4.0.5");
|
|
6073
6073
|
await engine.pluginManager.register(e => {
|
|
6074
6074
|
e.pluginManager.addShape(["star"], () => Promise.resolve(new StarDrawer()));
|
|
6075
6075
|
});
|
|
@@ -6206,7 +6206,7 @@
|
|
|
6206
6206
|
}
|
|
6207
6207
|
|
|
6208
6208
|
async function loadTiltUpdater(engine) {
|
|
6209
|
-
engine.checkVersion("4.0.
|
|
6209
|
+
engine.checkVersion("4.0.5");
|
|
6210
6210
|
await engine.pluginManager.register(e => {
|
|
6211
6211
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
6212
6212
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -6328,7 +6328,7 @@
|
|
|
6328
6328
|
}
|
|
6329
6329
|
|
|
6330
6330
|
async function loadWobbleUpdater(engine) {
|
|
6331
|
-
engine.checkVersion("4.0.
|
|
6331
|
+
engine.checkVersion("4.0.5");
|
|
6332
6332
|
await engine.pluginManager.register(e => {
|
|
6333
6333
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6334
6334
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -6755,7 +6755,7 @@
|
|
|
6755
6755
|
|
|
6756
6756
|
let initPromise = null;
|
|
6757
6757
|
async function doInitPlugins(engine) {
|
|
6758
|
-
engine.checkVersion("4.0.
|
|
6758
|
+
engine.checkVersion("4.0.5");
|
|
6759
6759
|
await engine.pluginManager.register(async (e) => {
|
|
6760
6760
|
await Promise.all([
|
|
6761
6761
|
loadBasic(e),
|
|
@@ -6828,7 +6828,7 @@
|
|
|
6828
6828
|
confetti.init = async () => {
|
|
6829
6829
|
await initPlugins(tsParticles);
|
|
6830
6830
|
};
|
|
6831
|
-
confetti.version = "4.0.
|
|
6831
|
+
confetti.version = "4.0.5";
|
|
6832
6832
|
globalThis.confetti = confetti;
|
|
6833
6833
|
|
|
6834
6834
|
const globalObject = globalThis;
|