@tsparticles/confetti 4.0.0 → 4.0.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 +34 -34
- 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.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.0.
|
|
93
|
+
confetti.version = "4.0.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.0.
|
|
5
|
+
engine.checkVersion("4.0.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.0.
|
|
95
|
+
confetti.version = "4.0.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.0.
|
|
20
|
+
engine.checkVersion("4.0.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.0.
|
|
93
|
+
confetti.version = "4.0.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.0.
|
|
5
|
+
engine.checkVersion("4.0.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.0.
|
|
95
|
+
confetti.version = "4.0.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.0.
|
|
20
|
+
engine.checkVersion("4.0.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.0.
|
|
93
|
+
confetti.version = "4.0.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.0.
|
|
5
|
+
engine.checkVersion("4.0.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.0.
|
|
95
|
+
confetti.version = "4.0.1";
|
|
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.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.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.1",
|
|
109
|
+
"@tsparticles/engine": "4.0.1",
|
|
110
|
+
"@tsparticles/plugin-emitters": "4.0.1",
|
|
111
|
+
"@tsparticles/plugin-motion": "4.0.1",
|
|
112
|
+
"@tsparticles/shape-cards": "4.0.1",
|
|
113
|
+
"@tsparticles/shape-emoji": "4.0.1",
|
|
114
|
+
"@tsparticles/shape-heart": "4.0.1",
|
|
115
|
+
"@tsparticles/shape-image": "4.0.1",
|
|
116
|
+
"@tsparticles/shape-polygon": "4.0.1",
|
|
117
|
+
"@tsparticles/shape-square": "4.0.1",
|
|
118
|
+
"@tsparticles/shape-star": "4.0.1",
|
|
119
|
+
"@tsparticles/updater-life": "4.0.1",
|
|
120
|
+
"@tsparticles/updater-roll": "4.0.1",
|
|
121
|
+
"@tsparticles/updater-rotate": "4.0.1",
|
|
122
|
+
"@tsparticles/updater-tilt": "4.0.1",
|
|
123
|
+
"@tsparticles/updater-wobble": "4.0.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.0.
|
|
2
|
+
/* tsParticles v4.0.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.0.
|
|
1121
|
+
return "4.0.1";
|
|
1122
1122
|
}
|
|
1123
1123
|
addEventListener(type, listener) {
|
|
1124
1124
|
this._eventDispatcher.addEventListener(type, listener);
|
|
@@ -3040,7 +3040,7 @@
|
|
|
3040
3040
|
}
|
|
3041
3041
|
|
|
3042
3042
|
async function loadCircleShape(engine) {
|
|
3043
|
-
engine.checkVersion("4.0.
|
|
3043
|
+
engine.checkVersion("4.0.1");
|
|
3044
3044
|
await engine.pluginManager.register(e => {
|
|
3045
3045
|
e.pluginManager.addShape(["circle"], () => {
|
|
3046
3046
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -3088,7 +3088,7 @@
|
|
|
3088
3088
|
}
|
|
3089
3089
|
|
|
3090
3090
|
async function loadHexColorPlugin(engine) {
|
|
3091
|
-
engine.checkVersion("4.0.
|
|
3091
|
+
engine.checkVersion("4.0.1");
|
|
3092
3092
|
await engine.pluginManager.register(e => {
|
|
3093
3093
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
3094
3094
|
});
|
|
@@ -3141,7 +3141,7 @@
|
|
|
3141
3141
|
}
|
|
3142
3142
|
|
|
3143
3143
|
async function loadHslColorPlugin(engine) {
|
|
3144
|
-
engine.checkVersion("4.0.
|
|
3144
|
+
engine.checkVersion("4.0.1");
|
|
3145
3145
|
await engine.pluginManager.register(e => {
|
|
3146
3146
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3147
3147
|
});
|
|
@@ -3165,7 +3165,7 @@
|
|
|
3165
3165
|
}
|
|
3166
3166
|
|
|
3167
3167
|
async function loadMovePlugin(engine) {
|
|
3168
|
-
engine.checkVersion("4.0.
|
|
3168
|
+
engine.checkVersion("4.0.1");
|
|
3169
3169
|
await engine.pluginManager.register(e => {
|
|
3170
3170
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3171
3171
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3226,7 +3226,7 @@
|
|
|
3226
3226
|
}
|
|
3227
3227
|
|
|
3228
3228
|
async function loadOpacityUpdater(engine) {
|
|
3229
|
-
engine.checkVersion("4.0.
|
|
3229
|
+
engine.checkVersion("4.0.1");
|
|
3230
3230
|
await engine.pluginManager.register(e => {
|
|
3231
3231
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3232
3232
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3578,7 +3578,7 @@
|
|
|
3578
3578
|
}
|
|
3579
3579
|
|
|
3580
3580
|
async function loadOutModesUpdater(engine) {
|
|
3581
|
-
engine.checkVersion("4.0.
|
|
3581
|
+
engine.checkVersion("4.0.1");
|
|
3582
3582
|
await engine.pluginManager.register(e => {
|
|
3583
3583
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3584
3584
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3649,7 +3649,7 @@
|
|
|
3649
3649
|
}
|
|
3650
3650
|
|
|
3651
3651
|
async function loadPaintUpdater(engine) {
|
|
3652
|
-
engine.checkVersion("4.0.
|
|
3652
|
+
engine.checkVersion("4.0.1");
|
|
3653
3653
|
await engine.pluginManager.register(e => {
|
|
3654
3654
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3655
3655
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3704,7 +3704,7 @@
|
|
|
3704
3704
|
}
|
|
3705
3705
|
|
|
3706
3706
|
async function loadRgbColorPlugin(engine) {
|
|
3707
|
-
engine.checkVersion("4.0.
|
|
3707
|
+
engine.checkVersion("4.0.1");
|
|
3708
3708
|
await engine.pluginManager.register(e => {
|
|
3709
3709
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3710
3710
|
});
|
|
@@ -3747,7 +3747,7 @@
|
|
|
3747
3747
|
}
|
|
3748
3748
|
|
|
3749
3749
|
async function loadSizeUpdater(engine) {
|
|
3750
|
-
engine.checkVersion("4.0.
|
|
3750
|
+
engine.checkVersion("4.0.1");
|
|
3751
3751
|
await engine.pluginManager.register(e => {
|
|
3752
3752
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3753
3753
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3756,7 +3756,7 @@
|
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
3758
|
async function loadBasic(engine) {
|
|
3759
|
-
engine.checkVersion("4.0.
|
|
3759
|
+
engine.checkVersion("4.0.1");
|
|
3760
3760
|
await engine.pluginManager.register(async (e) => {
|
|
3761
3761
|
await Promise.all([
|
|
3762
3762
|
loadHexColorPlugin(e),
|
|
@@ -4055,7 +4055,7 @@
|
|
|
4055
4055
|
}
|
|
4056
4056
|
|
|
4057
4057
|
async function loadClubsSuitShape(engine) {
|
|
4058
|
-
engine.checkVersion("4.0.
|
|
4058
|
+
engine.checkVersion("4.0.1");
|
|
4059
4059
|
await engine.pluginManager.register(e => {
|
|
4060
4060
|
e.pluginManager.addShape(["club", "clubs"], () => Promise.resolve(new ClubDrawer()));
|
|
4061
4061
|
});
|
|
@@ -4069,7 +4069,7 @@
|
|
|
4069
4069
|
}
|
|
4070
4070
|
|
|
4071
4071
|
async function loadDiamondsSuitShape(engine) {
|
|
4072
|
-
engine.checkVersion("4.0.
|
|
4072
|
+
engine.checkVersion("4.0.1");
|
|
4073
4073
|
await engine.pluginManager.register(e => {
|
|
4074
4074
|
e.pluginManager.addShape(["diamond", "diamonds"], () => Promise.resolve(new DiamondDrawer()));
|
|
4075
4075
|
});
|
|
@@ -4083,7 +4083,7 @@
|
|
|
4083
4083
|
};
|
|
4084
4084
|
|
|
4085
4085
|
async function loadHeartsSuitShape(engine) {
|
|
4086
|
-
engine.checkVersion("4.0.
|
|
4086
|
+
engine.checkVersion("4.0.1");
|
|
4087
4087
|
await engine.pluginManager.register(e => {
|
|
4088
4088
|
e.pluginManager.addShape(["heart", "hearts"], () => Promise.resolve(new HeartDrawer$1()));
|
|
4089
4089
|
});
|
|
@@ -4097,14 +4097,14 @@
|
|
|
4097
4097
|
}
|
|
4098
4098
|
|
|
4099
4099
|
async function loadSpadesSuitShape(engine) {
|
|
4100
|
-
engine.checkVersion("4.0.
|
|
4100
|
+
engine.checkVersion("4.0.1");
|
|
4101
4101
|
await engine.pluginManager.register(e => {
|
|
4102
4102
|
e.pluginManager.addShape(["spade", "spades"], () => Promise.resolve(new SpadeDrawer()));
|
|
4103
4103
|
});
|
|
4104
4104
|
}
|
|
4105
4105
|
|
|
4106
4106
|
async function loadCardSuitsShape(engine) {
|
|
4107
|
-
engine.checkVersion("4.0.
|
|
4107
|
+
engine.checkVersion("4.0.1");
|
|
4108
4108
|
await Promise.all([
|
|
4109
4109
|
loadClubsSuitShape(engine),
|
|
4110
4110
|
loadDiamondsSuitShape(engine),
|
|
@@ -4381,7 +4381,7 @@
|
|
|
4381
4381
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
4382
4382
|
|
|
4383
4383
|
async function loadEmittersPluginSimple(engine) {
|
|
4384
|
-
engine.checkVersion("4.0.
|
|
4384
|
+
engine.checkVersion("4.0.1");
|
|
4385
4385
|
await engine.pluginManager.register(async (e) => {
|
|
4386
4386
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
4387
4387
|
await addEmittersShapesManager(e);
|
|
@@ -4483,7 +4483,7 @@
|
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
4485
|
async function loadEmojiShape(engine) {
|
|
4486
|
-
engine.checkVersion("4.0.
|
|
4486
|
+
engine.checkVersion("4.0.1");
|
|
4487
4487
|
await engine.pluginManager.register(e => {
|
|
4488
4488
|
e.pluginManager.addShape(validTypes, () => Promise.resolve(new EmojiDrawer()));
|
|
4489
4489
|
});
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
}
|
|
4510
4510
|
|
|
4511
4511
|
async function loadHeartShape(engine) {
|
|
4512
|
-
engine.checkVersion("4.0.
|
|
4512
|
+
engine.checkVersion("4.0.1");
|
|
4513
4513
|
await engine.pluginManager.register(e => {
|
|
4514
4514
|
e.pluginManager.addShape(["heart"], () => Promise.resolve(new HeartDrawer()));
|
|
4515
4515
|
});
|
|
@@ -5334,7 +5334,7 @@
|
|
|
5334
5334
|
};
|
|
5335
5335
|
}
|
|
5336
5336
|
async function loadImageShape(engine) {
|
|
5337
|
-
engine.checkVersion("4.0.
|
|
5337
|
+
engine.checkVersion("4.0.1");
|
|
5338
5338
|
await engine.pluginManager.register(e => {
|
|
5339
5339
|
addLoadImageToEngine(e);
|
|
5340
5340
|
e.pluginManager.addPlugin(new ImagePreloaderPlugin(e));
|
|
@@ -5501,7 +5501,7 @@
|
|
|
5501
5501
|
}
|
|
5502
5502
|
|
|
5503
5503
|
async function loadLifeUpdater(engine) {
|
|
5504
|
-
engine.checkVersion("4.0.
|
|
5504
|
+
engine.checkVersion("4.0.1");
|
|
5505
5505
|
await engine.pluginManager.register(e => {
|
|
5506
5506
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
5507
5507
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -5569,7 +5569,7 @@
|
|
|
5569
5569
|
}
|
|
5570
5570
|
|
|
5571
5571
|
async function loadMotionPlugin(engine) {
|
|
5572
|
-
engine.checkVersion("4.0.
|
|
5572
|
+
engine.checkVersion("4.0.1");
|
|
5573
5573
|
await engine.pluginManager.register(e => {
|
|
5574
5574
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
5575
5575
|
});
|
|
@@ -5654,19 +5654,19 @@
|
|
|
5654
5654
|
}
|
|
5655
5655
|
|
|
5656
5656
|
async function loadGenericPolygonShape(engine) {
|
|
5657
|
-
engine.checkVersion("4.0.
|
|
5657
|
+
engine.checkVersion("4.0.1");
|
|
5658
5658
|
await engine.pluginManager.register(e => {
|
|
5659
5659
|
e.pluginManager.addShape(["polygon"], () => Promise.resolve(new PolygonDrawer()));
|
|
5660
5660
|
});
|
|
5661
5661
|
}
|
|
5662
5662
|
async function loadTriangleShape(engine) {
|
|
5663
|
-
engine.checkVersion("4.0.
|
|
5663
|
+
engine.checkVersion("4.0.1");
|
|
5664
5664
|
await engine.pluginManager.register(e => {
|
|
5665
5665
|
e.pluginManager.addShape(["triangle"], () => Promise.resolve(new TriangleDrawer()));
|
|
5666
5666
|
});
|
|
5667
5667
|
}
|
|
5668
5668
|
async function loadPolygonShape(engine) {
|
|
5669
|
-
engine.checkVersion("4.0.
|
|
5669
|
+
engine.checkVersion("4.0.1");
|
|
5670
5670
|
await Promise.all([
|
|
5671
5671
|
loadGenericPolygonShape(engine),
|
|
5672
5672
|
loadTriangleShape(engine),
|
|
@@ -5824,7 +5824,7 @@
|
|
|
5824
5824
|
}
|
|
5825
5825
|
|
|
5826
5826
|
async function loadRollUpdater(engine) {
|
|
5827
|
-
engine.checkVersion("4.0.
|
|
5827
|
+
engine.checkVersion("4.0.1");
|
|
5828
5828
|
await engine.pluginManager.register(e => {
|
|
5829
5829
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
5830
5830
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -5958,7 +5958,7 @@
|
|
|
5958
5958
|
}
|
|
5959
5959
|
|
|
5960
5960
|
async function loadRotateUpdater(engine) {
|
|
5961
|
-
engine.checkVersion("4.0.
|
|
5961
|
+
engine.checkVersion("4.0.1");
|
|
5962
5962
|
await engine.pluginManager.register(e => {
|
|
5963
5963
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
5964
5964
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -5982,7 +5982,7 @@
|
|
|
5982
5982
|
}
|
|
5983
5983
|
|
|
5984
5984
|
async function loadSquareShape(engine) {
|
|
5985
|
-
engine.checkVersion("4.0.
|
|
5985
|
+
engine.checkVersion("4.0.1");
|
|
5986
5986
|
await engine.pluginManager.register(e => {
|
|
5987
5987
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
5988
5988
|
});
|
|
@@ -6016,7 +6016,7 @@
|
|
|
6016
6016
|
}
|
|
6017
6017
|
|
|
6018
6018
|
async function loadStarShape(engine) {
|
|
6019
|
-
engine.checkVersion("4.0.
|
|
6019
|
+
engine.checkVersion("4.0.1");
|
|
6020
6020
|
await engine.pluginManager.register(e => {
|
|
6021
6021
|
e.pluginManager.addShape(["star"], () => Promise.resolve(new StarDrawer()));
|
|
6022
6022
|
});
|
|
@@ -6153,7 +6153,7 @@
|
|
|
6153
6153
|
}
|
|
6154
6154
|
|
|
6155
6155
|
async function loadTiltUpdater(engine) {
|
|
6156
|
-
engine.checkVersion("4.0.
|
|
6156
|
+
engine.checkVersion("4.0.1");
|
|
6157
6157
|
await engine.pluginManager.register(e => {
|
|
6158
6158
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
6159
6159
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -6275,7 +6275,7 @@
|
|
|
6275
6275
|
}
|
|
6276
6276
|
|
|
6277
6277
|
async function loadWobbleUpdater(engine) {
|
|
6278
|
-
engine.checkVersion("4.0.
|
|
6278
|
+
engine.checkVersion("4.0.1");
|
|
6279
6279
|
await engine.pluginManager.register(e => {
|
|
6280
6280
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
6281
6281
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -6702,7 +6702,7 @@
|
|
|
6702
6702
|
|
|
6703
6703
|
let initPromise = null;
|
|
6704
6704
|
async function doInitPlugins(engine) {
|
|
6705
|
-
engine.checkVersion("4.0.
|
|
6705
|
+
engine.checkVersion("4.0.1");
|
|
6706
6706
|
await engine.pluginManager.register(async (e) => {
|
|
6707
6707
|
await Promise.all([
|
|
6708
6708
|
loadBasic(e),
|
|
@@ -6775,7 +6775,7 @@
|
|
|
6775
6775
|
confetti.init = async () => {
|
|
6776
6776
|
await initPlugins(tsParticles);
|
|
6777
6777
|
};
|
|
6778
|
-
confetti.version = "4.0.
|
|
6778
|
+
confetti.version = "4.0.1";
|
|
6779
6779
|
globalThis.confetti = confetti;
|
|
6780
6780
|
|
|
6781
6781
|
const globalObject = globalThis;
|