@tsparticles/preset-confetti 4.0.0-beta.17 → 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.
|
@@ -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
|
-
/* Preset v4.0.
|
|
2
|
+
/* Preset 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) :
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
return this._domArray;
|
|
1019
1019
|
}
|
|
1020
1020
|
get version() {
|
|
1021
|
-
return "4.0.
|
|
1021
|
+
return "4.0.1";
|
|
1022
1022
|
}
|
|
1023
1023
|
addEventListener(type, listener) {
|
|
1024
1024
|
this._eventDispatcher.addEventListener(type, listener);
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
}
|
|
2877
2877
|
|
|
2878
2878
|
async function loadCircleShape(engine) {
|
|
2879
|
-
engine.checkVersion("4.0.
|
|
2879
|
+
engine.checkVersion("4.0.1");
|
|
2880
2880
|
await engine.pluginManager.register(e => {
|
|
2881
2881
|
e.pluginManager.addShape(["circle"], () => {
|
|
2882
2882
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2924,7 +2924,7 @@
|
|
|
2924
2924
|
}
|
|
2925
2925
|
|
|
2926
2926
|
async function loadHexColorPlugin(engine) {
|
|
2927
|
-
engine.checkVersion("4.0.
|
|
2927
|
+
engine.checkVersion("4.0.1");
|
|
2928
2928
|
await engine.pluginManager.register(e => {
|
|
2929
2929
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2930
2930
|
});
|
|
@@ -2977,7 +2977,7 @@
|
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
2979
|
async function loadHslColorPlugin(engine) {
|
|
2980
|
-
engine.checkVersion("4.0.
|
|
2980
|
+
engine.checkVersion("4.0.1");
|
|
2981
2981
|
await engine.pluginManager.register(e => {
|
|
2982
2982
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2983
2983
|
});
|
|
@@ -3001,7 +3001,7 @@
|
|
|
3001
3001
|
}
|
|
3002
3002
|
|
|
3003
3003
|
async function loadMovePlugin(engine) {
|
|
3004
|
-
engine.checkVersion("4.0.
|
|
3004
|
+
engine.checkVersion("4.0.1");
|
|
3005
3005
|
await engine.pluginManager.register(e => {
|
|
3006
3006
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3007
3007
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3062,7 +3062,7 @@
|
|
|
3062
3062
|
}
|
|
3063
3063
|
|
|
3064
3064
|
async function loadOpacityUpdater(engine) {
|
|
3065
|
-
engine.checkVersion("4.0.
|
|
3065
|
+
engine.checkVersion("4.0.1");
|
|
3066
3066
|
await engine.pluginManager.register(e => {
|
|
3067
3067
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3068
3068
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3414,7 +3414,7 @@
|
|
|
3414
3414
|
}
|
|
3415
3415
|
|
|
3416
3416
|
async function loadOutModesUpdater(engine) {
|
|
3417
|
-
engine.checkVersion("4.0.
|
|
3417
|
+
engine.checkVersion("4.0.1");
|
|
3418
3418
|
await engine.pluginManager.register(e => {
|
|
3419
3419
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3420
3420
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3485,7 +3485,7 @@
|
|
|
3485
3485
|
}
|
|
3486
3486
|
|
|
3487
3487
|
async function loadPaintUpdater(engine) {
|
|
3488
|
-
engine.checkVersion("4.0.
|
|
3488
|
+
engine.checkVersion("4.0.1");
|
|
3489
3489
|
await engine.pluginManager.register(e => {
|
|
3490
3490
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3491
3491
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3540,7 +3540,7 @@
|
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
3542
|
async function loadRgbColorPlugin(engine) {
|
|
3543
|
-
engine.checkVersion("4.0.
|
|
3543
|
+
engine.checkVersion("4.0.1");
|
|
3544
3544
|
await engine.pluginManager.register(e => {
|
|
3545
3545
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3546
3546
|
});
|
|
@@ -3583,7 +3583,7 @@
|
|
|
3583
3583
|
}
|
|
3584
3584
|
|
|
3585
3585
|
async function loadSizeUpdater(engine) {
|
|
3586
|
-
engine.checkVersion("4.0.
|
|
3586
|
+
engine.checkVersion("4.0.1");
|
|
3587
3587
|
await engine.pluginManager.register(e => {
|
|
3588
3588
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3589
3589
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3592,7 +3592,7 @@
|
|
|
3592
3592
|
}
|
|
3593
3593
|
|
|
3594
3594
|
async function loadBasic(engine) {
|
|
3595
|
-
engine.checkVersion("4.0.
|
|
3595
|
+
engine.checkVersion("4.0.1");
|
|
3596
3596
|
await engine.pluginManager.register(async (e) => {
|
|
3597
3597
|
await Promise.all([
|
|
3598
3598
|
loadHexColorPlugin(e),
|
|
@@ -3906,7 +3906,7 @@
|
|
|
3906
3906
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3907
3907
|
|
|
3908
3908
|
async function loadEmittersPluginSimple(engine) {
|
|
3909
|
-
engine.checkVersion("4.0.
|
|
3909
|
+
engine.checkVersion("4.0.1");
|
|
3910
3910
|
await engine.pluginManager.register(async (e) => {
|
|
3911
3911
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3912
3912
|
await addEmittersShapesManager(e);
|
|
@@ -4073,7 +4073,7 @@
|
|
|
4073
4073
|
}
|
|
4074
4074
|
|
|
4075
4075
|
async function loadLifeUpdater(engine) {
|
|
4076
|
-
engine.checkVersion("4.0.
|
|
4076
|
+
engine.checkVersion("4.0.1");
|
|
4077
4077
|
await engine.pluginManager.register(e => {
|
|
4078
4078
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
4079
4079
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -4141,7 +4141,7 @@
|
|
|
4141
4141
|
}
|
|
4142
4142
|
|
|
4143
4143
|
async function loadMotionPlugin(engine) {
|
|
4144
|
-
engine.checkVersion("4.0.
|
|
4144
|
+
engine.checkVersion("4.0.1");
|
|
4145
4145
|
await engine.pluginManager.register(e => {
|
|
4146
4146
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
4147
4147
|
});
|
|
@@ -4298,7 +4298,7 @@
|
|
|
4298
4298
|
}
|
|
4299
4299
|
|
|
4300
4300
|
async function loadRollUpdater(engine) {
|
|
4301
|
-
engine.checkVersion("4.0.
|
|
4301
|
+
engine.checkVersion("4.0.1");
|
|
4302
4302
|
await engine.pluginManager.register(e => {
|
|
4303
4303
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
4304
4304
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -4432,7 +4432,7 @@
|
|
|
4432
4432
|
}
|
|
4433
4433
|
|
|
4434
4434
|
async function loadRotateUpdater(engine) {
|
|
4435
|
-
engine.checkVersion("4.0.
|
|
4435
|
+
engine.checkVersion("4.0.1");
|
|
4436
4436
|
await engine.pluginManager.register(e => {
|
|
4437
4437
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
4438
4438
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -4456,7 +4456,7 @@
|
|
|
4456
4456
|
}
|
|
4457
4457
|
|
|
4458
4458
|
async function loadSquareShape(engine) {
|
|
4459
|
-
engine.checkVersion("4.0.
|
|
4459
|
+
engine.checkVersion("4.0.1");
|
|
4460
4460
|
await engine.pluginManager.register(e => {
|
|
4461
4461
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
4462
4462
|
});
|
|
@@ -4593,7 +4593,7 @@
|
|
|
4593
4593
|
}
|
|
4594
4594
|
|
|
4595
4595
|
async function loadTiltUpdater(engine) {
|
|
4596
|
-
engine.checkVersion("4.0.
|
|
4596
|
+
engine.checkVersion("4.0.1");
|
|
4597
4597
|
await engine.pluginManager.register(e => {
|
|
4598
4598
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
4599
4599
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -4715,7 +4715,7 @@
|
|
|
4715
4715
|
}
|
|
4716
4716
|
|
|
4717
4717
|
async function loadWobbleUpdater(engine) {
|
|
4718
|
-
engine.checkVersion("4.0.
|
|
4718
|
+
engine.checkVersion("4.0.1");
|
|
4719
4719
|
await engine.pluginManager.register(e => {
|
|
4720
4720
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
4721
4721
|
return Promise.resolve(new WobbleUpdater(container));
|