@tsparticles/confetti 4.1.0 → 4.1.1
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.1.
|
|
20
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
93
|
+
confetti.version = "4.1.1";
|
|
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.1.
|
|
5
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
95
|
+
confetti.version = "4.1.1";
|
|
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.1.
|
|
20
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
93
|
+
confetti.version = "4.1.1";
|
|
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.1.
|
|
5
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
95
|
+
confetti.version = "4.1.1";
|
|
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.1.
|
|
20
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
93
|
+
confetti.version = "4.1.1";
|
|
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.1.
|
|
5
|
+
engine.checkVersion("4.1.1");
|
|
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.1.
|
|
95
|
+
confetti.version = "4.1.1";
|
|
96
96
|
globalThis.confetti = confetti;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/confetti",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
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.1.
|
|
109
|
-
"@tsparticles/engine": "4.1.
|
|
110
|
-
"@tsparticles/plugin-emitters": "4.1.
|
|
111
|
-
"@tsparticles/plugin-motion": "4.1.
|
|
112
|
-
"@tsparticles/shape-cards": "4.1.
|
|
113
|
-
"@tsparticles/shape-emoji": "4.1.
|
|
114
|
-
"@tsparticles/shape-heart": "4.1.
|
|
115
|
-
"@tsparticles/shape-image": "4.1.
|
|
116
|
-
"@tsparticles/shape-polygon": "4.1.
|
|
117
|
-
"@tsparticles/shape-square": "4.1.
|
|
118
|
-
"@tsparticles/shape-star": "4.1.
|
|
119
|
-
"@tsparticles/updater-life": "4.1.
|
|
120
|
-
"@tsparticles/updater-roll": "4.1.
|
|
121
|
-
"@tsparticles/updater-rotate": "4.1.
|
|
122
|
-
"@tsparticles/updater-tilt": "4.1.
|
|
123
|
-
"@tsparticles/updater-wobble": "4.1.
|
|
108
|
+
"@tsparticles/basic": "4.1.1",
|
|
109
|
+
"@tsparticles/engine": "4.1.1",
|
|
110
|
+
"@tsparticles/plugin-emitters": "4.1.1",
|
|
111
|
+
"@tsparticles/plugin-motion": "4.1.1",
|
|
112
|
+
"@tsparticles/shape-cards": "4.1.1",
|
|
113
|
+
"@tsparticles/shape-emoji": "4.1.1",
|
|
114
|
+
"@tsparticles/shape-heart": "4.1.1",
|
|
115
|
+
"@tsparticles/shape-image": "4.1.1",
|
|
116
|
+
"@tsparticles/shape-polygon": "4.1.1",
|
|
117
|
+
"@tsparticles/shape-square": "4.1.1",
|
|
118
|
+
"@tsparticles/shape-star": "4.1.1",
|
|
119
|
+
"@tsparticles/updater-life": "4.1.1",
|
|
120
|
+
"@tsparticles/updater-roll": "4.1.1",
|
|
121
|
+
"@tsparticles/updater-rotate": "4.1.1",
|
|
122
|
+
"@tsparticles/updater-tilt": "4.1.1",
|
|
123
|
+
"@tsparticles/updater-wobble": "4.1.1"
|
|
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.1.
|
|
2
|
+
/* tsParticles v4.1.1 */
|
|
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.1.
|
|
1121
|
+
return "4.1.1";
|
|
1122
1122
|
}
|
|
1123
1123
|
addEventListener(type, listener) {
|
|
1124
1124
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2975,7 +2975,7 @@
|
|
|
2975
2975
|
}
|
|
2976
2976
|
|
|
2977
2977
|
async function loadBlendPlugin(engine) {
|
|
2978
|
-
engine.checkVersion("4.1.
|
|
2978
|
+
engine.checkVersion("4.1.1");
|
|
2979
2979
|
await engine.pluginManager.register(e => {
|
|
2980
2980
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2981
2981
|
});
|
|
@@ -3012,7 +3012,7 @@
|
|
|
3012
3012
|
}
|
|
3013
3013
|
|
|
3014
3014
|
async function loadCircleShape(engine) {
|
|
3015
|
-
engine.checkVersion("4.1.
|
|
3015
|
+
engine.checkVersion("4.1.1");
|
|
3016
3016
|
await engine.pluginManager.register(e => {
|
|
3017
3017
|
e.pluginManager.addShape(["circle"], () => {
|
|
3018
3018
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -3060,7 +3060,7 @@
|
|
|
3060
3060
|
}
|
|
3061
3061
|
|
|
3062
3062
|
async function loadHexColorPlugin(engine) {
|
|
3063
|
-
engine.checkVersion("4.1.
|
|
3063
|
+
engine.checkVersion("4.1.1");
|
|
3064
3064
|
await engine.pluginManager.register(e => {
|
|
3065
3065
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
3066
3066
|
});
|
|
@@ -3113,7 +3113,7 @@
|
|
|
3113
3113
|
}
|
|
3114
3114
|
|
|
3115
3115
|
async function loadHslColorPlugin(engine) {
|
|
3116
|
-
engine.checkVersion("4.1.
|
|
3116
|
+
engine.checkVersion("4.1.1");
|
|
3117
3117
|
await engine.pluginManager.register(e => {
|
|
3118
3118
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3119
3119
|
});
|
|
@@ -3137,7 +3137,7 @@
|
|
|
3137
3137
|
}
|
|
3138
3138
|
|
|
3139
3139
|
async function loadMovePlugin(engine) {
|
|
3140
|
-
engine.checkVersion("4.1.
|
|
3140
|
+
engine.checkVersion("4.1.1");
|
|
3141
3141
|
await engine.pluginManager.register(e => {
|
|
3142
3142
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3143
3143
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3244,7 +3244,7 @@
|
|
|
3244
3244
|
}
|
|
3245
3245
|
|
|
3246
3246
|
async function loadOpacityUpdater(engine) {
|
|
3247
|
-
engine.checkVersion("4.1.
|
|
3247
|
+
engine.checkVersion("4.1.1");
|
|
3248
3248
|
await engine.pluginManager.register(e => {
|
|
3249
3249
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3250
3250
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3591,7 +3591,7 @@
|
|
|
3591
3591
|
}
|
|
3592
3592
|
|
|
3593
3593
|
async function loadOutModesUpdater(engine) {
|
|
3594
|
-
engine.checkVersion("4.1.
|
|
3594
|
+
engine.checkVersion("4.1.1");
|
|
3595
3595
|
await engine.pluginManager.register(e => {
|
|
3596
3596
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3597
3597
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3662,7 +3662,7 @@
|
|
|
3662
3662
|
}
|
|
3663
3663
|
|
|
3664
3664
|
async function loadPaintUpdater(engine) {
|
|
3665
|
-
engine.checkVersion("4.1.
|
|
3665
|
+
engine.checkVersion("4.1.1");
|
|
3666
3666
|
await engine.pluginManager.register(e => {
|
|
3667
3667
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3668
3668
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3717,7 +3717,7 @@
|
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
3719
|
async function loadRgbColorPlugin(engine) {
|
|
3720
|
-
engine.checkVersion("4.1.
|
|
3720
|
+
engine.checkVersion("4.1.1");
|
|
3721
3721
|
await engine.pluginManager.register(e => {
|
|
3722
3722
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3723
3723
|
});
|
|
@@ -3816,7 +3816,7 @@
|
|
|
3816
3816
|
}
|
|
3817
3817
|
|
|
3818
3818
|
async function loadSizeUpdater(engine) {
|
|
3819
|
-
engine.checkVersion("4.1.
|
|
3819
|
+
engine.checkVersion("4.1.1");
|
|
3820
3820
|
await engine.pluginManager.register(e => {
|
|
3821
3821
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3822
3822
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3825,7 +3825,7 @@
|
|
|
3825
3825
|
}
|
|
3826
3826
|
|
|
3827
3827
|
async function loadBasic(engine) {
|
|
3828
|
-
engine.checkVersion("4.1.
|
|
3828
|
+
engine.checkVersion("4.1.1");
|
|
3829
3829
|
await engine.pluginManager.register(async (e) => {
|
|
3830
3830
|
await Promise.all([
|
|
3831
3831
|
loadBlendPlugin(e),
|
|
@@ -4125,7 +4125,7 @@
|
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
4127
|
async function loadClubsSuitShape(engine) {
|
|
4128
|
-
engine.checkVersion("4.1.
|
|
4128
|
+
engine.checkVersion("4.1.1");
|
|
4129
4129
|
await engine.pluginManager.register(e => {
|
|
4130
4130
|
e.pluginManager.addShape(["club", "clubs"], () => Promise.resolve(new ClubDrawer()));
|
|
4131
4131
|
});
|
|
@@ -4139,7 +4139,7 @@
|
|
|
4139
4139
|
}
|
|
4140
4140
|
|
|
4141
4141
|
async function loadDiamondsSuitShape(engine) {
|
|
4142
|
-
engine.checkVersion("4.1.
|
|
4142
|
+
engine.checkVersion("4.1.1");
|
|
4143
4143
|
await engine.pluginManager.register(e => {
|
|
4144
4144
|
e.pluginManager.addShape(["diamond", "diamonds"], () => Promise.resolve(new DiamondDrawer()));
|
|
4145
4145
|
});
|
|
@@ -4153,7 +4153,7 @@
|
|
|
4153
4153
|
};
|
|
4154
4154
|
|
|
4155
4155
|
async function loadHeartsSuitShape(engine) {
|
|
4156
|
-
engine.checkVersion("4.1.
|
|
4156
|
+
engine.checkVersion("4.1.1");
|
|
4157
4157
|
await engine.pluginManager.register(e => {
|
|
4158
4158
|
e.pluginManager.addShape(["heart", "hearts"], () => Promise.resolve(new HeartDrawer$1()));
|
|
4159
4159
|
});
|
|
@@ -4167,14 +4167,14 @@
|
|
|
4167
4167
|
}
|
|
4168
4168
|
|
|
4169
4169
|
async function loadSpadesSuitShape(engine) {
|
|
4170
|
-
engine.checkVersion("4.1.
|
|
4170
|
+
engine.checkVersion("4.1.1");
|
|
4171
4171
|
await engine.pluginManager.register(e => {
|
|
4172
4172
|
e.pluginManager.addShape(["spade", "spades"], () => Promise.resolve(new SpadeDrawer()));
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
4175
|
|
|
4176
4176
|
async function loadCardSuitsShape(engine) {
|
|
4177
|
-
engine.checkVersion("4.1.
|
|
4177
|
+
engine.checkVersion("4.1.1");
|
|
4178
4178
|
await Promise.all([
|
|
4179
4179
|
loadClubsSuitShape(engine),
|
|
4180
4180
|
loadDiamondsSuitShape(engine),
|
|
@@ -4451,7 +4451,7 @@
|
|
|
4451
4451
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
4452
4452
|
|
|
4453
4453
|
async function loadEmittersPluginSimple(engine) {
|
|
4454
|
-
engine.checkVersion("4.1.
|
|
4454
|
+
engine.checkVersion("4.1.1");
|
|
4455
4455
|
await engine.pluginManager.register(async (e) => {
|
|
4456
4456
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
4457
4457
|
await addEmittersShapesManager(e);
|
|
@@ -4553,7 +4553,7 @@
|
|
|
4553
4553
|
}
|
|
4554
4554
|
|
|
4555
4555
|
async function loadEmojiShape(engine) {
|
|
4556
|
-
engine.checkVersion("4.1.
|
|
4556
|
+
engine.checkVersion("4.1.1");
|
|
4557
4557
|
await engine.pluginManager.register(e => {
|
|
4558
4558
|
e.pluginManager.addShape(validTypes, () => Promise.resolve(new EmojiDrawer()));
|
|
4559
4559
|
});
|
|
@@ -4579,7 +4579,7 @@
|
|
|
4579
4579
|
}
|
|
4580
4580
|
|
|
4581
4581
|
async function loadHeartShape(engine) {
|
|
4582
|
-
engine.checkVersion("4.1.
|
|
4582
|
+
engine.checkVersion("4.1.1");
|
|
4583
4583
|
await engine.pluginManager.register(e => {
|
|
4584
4584
|
e.pluginManager.addShape(["heart"], () => Promise.resolve(new HeartDrawer()));
|
|
4585
4585
|
});
|
|
@@ -5404,7 +5404,7 @@
|
|
|
5404
5404
|
};
|
|
5405
5405
|
}
|
|
5406
5406
|
async function loadImageShape(engine) {
|
|
5407
|
-
engine.checkVersion("4.1.
|
|
5407
|
+
engine.checkVersion("4.1.1");
|
|
5408
5408
|
await engine.pluginManager.register(e => {
|
|
5409
5409
|
addLoadImageToEngine(e);
|
|
5410
5410
|
e.pluginManager.addPlugin(new ImagePreloaderPlugin(e));
|
|
@@ -5571,7 +5571,7 @@
|
|
|
5571
5571
|
}
|
|
5572
5572
|
|
|
5573
5573
|
async function loadLifeUpdater(engine) {
|
|
5574
|
-
engine.checkVersion("4.1.
|
|
5574
|
+
engine.checkVersion("4.1.1");
|
|
5575
5575
|
await engine.pluginManager.register(e => {
|
|
5576
5576
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
5577
5577
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -5639,7 +5639,7 @@
|
|
|
5639
5639
|
}
|
|
5640
5640
|
|
|
5641
5641
|
async function loadMotionPlugin(engine) {
|
|
5642
|
-
engine.checkVersion("4.1.
|
|
5642
|
+
engine.checkVersion("4.1.1");
|
|
5643
5643
|
await engine.pluginManager.register(e => {
|
|
5644
5644
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
5645
5645
|
});
|
|
@@ -5724,19 +5724,19 @@
|
|
|
5724
5724
|
}
|
|
5725
5725
|
|
|
5726
5726
|
async function loadGenericPolygonShape(engine) {
|
|
5727
|
-
engine.checkVersion("4.1.
|
|
5727
|
+
engine.checkVersion("4.1.1");
|
|
5728
5728
|
await engine.pluginManager.register(e => {
|
|
5729
5729
|
e.pluginManager.addShape(["polygon"], () => Promise.resolve(new PolygonDrawer()));
|
|
5730
5730
|
});
|
|
5731
5731
|
}
|
|
5732
5732
|
async function loadTriangleShape(engine) {
|
|
5733
|
-
engine.checkVersion("4.1.
|
|
5733
|
+
engine.checkVersion("4.1.1");
|
|
5734
5734
|
await engine.pluginManager.register(e => {
|
|
5735
5735
|
e.pluginManager.addShape(["triangle"], () => Promise.resolve(new TriangleDrawer()));
|
|
5736
5736
|
});
|
|
5737
5737
|
}
|
|
5738
5738
|
async function loadPolygonShape(engine) {
|
|
5739
|
-
engine.checkVersion("4.1.
|
|
5739
|
+
engine.checkVersion("4.1.1");
|
|
5740
5740
|
await Promise.all([
|
|
5741
5741
|
loadGenericPolygonShape(engine),
|
|
5742
5742
|
loadTriangleShape(engine),
|
|
@@ -5894,7 +5894,7 @@
|
|
|
5894
5894
|
}
|
|
5895
5895
|
|
|
5896
5896
|
async function loadRollUpdater(engine) {
|
|
5897
|
-
engine.checkVersion("4.1.
|
|
5897
|
+
engine.checkVersion("4.1.1");
|
|
5898
5898
|
await engine.pluginManager.register(e => {
|
|
5899
5899
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
5900
5900
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -6028,7 +6028,7 @@
|
|
|
6028
6028
|
}
|
|
6029
6029
|
|
|
6030
6030
|
async function loadRotateUpdater(engine) {
|
|
6031
|
-
engine.checkVersion("4.1.
|
|
6031
|
+
engine.checkVersion("4.1.1");
|
|
6032
6032
|
await engine.pluginManager.register(e => {
|
|
6033
6033
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
6034
6034
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -6052,7 +6052,7 @@
|
|
|
6052
6052
|
}
|
|
6053
6053
|
|
|
6054
6054
|
async function loadSquareShape(engine) {
|
|
6055
|
-
engine.checkVersion("4.1.
|
|
6055
|
+
engine.checkVersion("4.1.1");
|
|
6056
6056
|
await engine.pluginManager.register(e => {
|
|
6057
6057
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
6058
6058
|
});
|
|
@@ -6086,7 +6086,7 @@
|
|
|
6086
6086
|
}
|
|
6087
6087
|
|
|
6088
6088
|
async function loadStarShape(engine) {
|
|
6089
|
-
engine.checkVersion("4.1.
|
|
6089
|
+
engine.checkVersion("4.1.1");
|
|
6090
6090
|
await engine.pluginManager.register(e => {
|
|
6091
6091
|
e.pluginManager.addShape(["star"], () => Promise.resolve(new StarDrawer()));
|
|
6092
6092
|
});
|
|
@@ -6223,7 +6223,7 @@
|
|
|
6223
6223
|
}
|
|
6224
6224
|
|
|
6225
6225
|
async function loadTiltUpdater(engine) {
|
|
6226
|
-
engine.checkVersion("4.1.
|
|
6226
|
+
engine.checkVersion("4.1.1");
|
|
6227
6227
|
await engine.pluginManager.register(e => {
|
|
6228
6228
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
6229
6229
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -6345,7 +6345,7 @@
|
|
|
6345
6345
|
}
|
|
6346
6346
|
|
|
6347
6347
|
async function loadWobbleUpdater(engine) {
|
|
6348
|
-
engine.checkVersion("4.1.
|
|
6348
|
+
engine.checkVersion("4.1.1");
|
|
6349
6349
|
await engine.pluginManager.register(e => {
|
|
6350
6350
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6351
6351
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -6772,7 +6772,7 @@
|
|
|
6772
6772
|
|
|
6773
6773
|
let initPromise = null;
|
|
6774
6774
|
async function doInitPlugins(engine) {
|
|
6775
|
-
engine.checkVersion("4.1.
|
|
6775
|
+
engine.checkVersion("4.1.1");
|
|
6776
6776
|
await engine.pluginManager.register(async (e) => {
|
|
6777
6777
|
await Promise.all([
|
|
6778
6778
|
loadBasic(e),
|
|
@@ -6845,7 +6845,7 @@
|
|
|
6845
6845
|
confetti.init = async () => {
|
|
6846
6846
|
await initPlugins(tsParticles);
|
|
6847
6847
|
};
|
|
6848
|
-
confetti.version = "4.1.
|
|
6848
|
+
confetti.version = "4.1.1";
|
|
6849
6849
|
globalThis.confetti = confetti;
|
|
6850
6850
|
|
|
6851
6851
|
const globalObject = globalThis;
|