@tsparticles/preset-confetti-explosions 4.0.0-beta.17 → 4.0.0
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.0
|
|
2
|
+
/* Preset v4.0.0 */
|
|
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.0
|
|
1021
|
+
return "4.0.0";
|
|
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.0
|
|
2879
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
2927
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
2980
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3004
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3065
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3417
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3488
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3543
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3586
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3595
|
+
engine.checkVersion("4.0.0");
|
|
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.0
|
|
3909
|
+
engine.checkVersion("4.0.0");
|
|
3910
3910
|
await engine.pluginManager.register(async (e) => {
|
|
3911
3911
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3912
3912
|
await addEmittersShapesManager(e);
|
|
@@ -3974,7 +3974,7 @@
|
|
|
3974
3974
|
}
|
|
3975
3975
|
|
|
3976
3976
|
async function loadMotionPlugin(engine) {
|
|
3977
|
-
engine.checkVersion("4.0.0
|
|
3977
|
+
engine.checkVersion("4.0.0");
|
|
3978
3978
|
await engine.pluginManager.register(e => {
|
|
3979
3979
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
3980
3980
|
});
|
|
@@ -4131,7 +4131,7 @@
|
|
|
4131
4131
|
}
|
|
4132
4132
|
|
|
4133
4133
|
async function loadRollUpdater(engine) {
|
|
4134
|
-
engine.checkVersion("4.0.0
|
|
4134
|
+
engine.checkVersion("4.0.0");
|
|
4135
4135
|
await engine.pluginManager.register(e => {
|
|
4136
4136
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
4137
4137
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -4265,7 +4265,7 @@
|
|
|
4265
4265
|
}
|
|
4266
4266
|
|
|
4267
4267
|
async function loadRotateUpdater(engine) {
|
|
4268
|
-
engine.checkVersion("4.0.0
|
|
4268
|
+
engine.checkVersion("4.0.0");
|
|
4269
4269
|
await engine.pluginManager.register(e => {
|
|
4270
4270
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
4271
4271
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -4289,7 +4289,7 @@
|
|
|
4289
4289
|
}
|
|
4290
4290
|
|
|
4291
4291
|
async function loadSquareShape(engine) {
|
|
4292
|
-
engine.checkVersion("4.0.0
|
|
4292
|
+
engine.checkVersion("4.0.0");
|
|
4293
4293
|
await engine.pluginManager.register(e => {
|
|
4294
4294
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
4295
4295
|
});
|
|
@@ -4426,7 +4426,7 @@
|
|
|
4426
4426
|
}
|
|
4427
4427
|
|
|
4428
4428
|
async function loadTiltUpdater(engine) {
|
|
4429
|
-
engine.checkVersion("4.0.0
|
|
4429
|
+
engine.checkVersion("4.0.0");
|
|
4430
4430
|
await engine.pluginManager.register(e => {
|
|
4431
4431
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
4432
4432
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -4548,7 +4548,7 @@
|
|
|
4548
4548
|
}
|
|
4549
4549
|
|
|
4550
4550
|
async function loadWobbleUpdater(engine) {
|
|
4551
|
-
engine.checkVersion("4.0.0
|
|
4551
|
+
engine.checkVersion("4.0.0");
|
|
4552
4552
|
await engine.pluginManager.register(e => {
|
|
4553
4553
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
4554
4554
|
return Promise.resolve(new WobbleUpdater(container));
|