@tsparticles/preset-confetti-falling 4.1.0 → 4.1.2
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/bundle.js +3 -2
- package/cjs/bundle.js +3 -2
- package/esm/bundle.js +3 -2
- package/package.json +10 -10
- package/report.html +1 -1
- package/tsparticles.preset.confettiFalling.bundle.js +20 -20
- package/tsparticles.preset.confettiFalling.bundle.min.js +1 -1
- package/tsparticles.preset.confettiFalling.js +1 -1
- package/types/bundle.d.ts +2 -1
|
@@ -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.1.
|
|
2
|
+
/* Preset v4.1.2 */
|
|
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) :
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
return this.#domArray;
|
|
1003
1003
|
}
|
|
1004
1004
|
get version() {
|
|
1005
|
-
return "4.1.
|
|
1005
|
+
return "4.1.2";
|
|
1006
1006
|
}
|
|
1007
1007
|
addEventListener(type, listener) {
|
|
1008
1008
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2795,7 +2795,7 @@
|
|
|
2795
2795
|
}
|
|
2796
2796
|
|
|
2797
2797
|
async function loadBlendPlugin(engine) {
|
|
2798
|
-
engine.checkVersion("4.1.
|
|
2798
|
+
engine.checkVersion("4.1.2");
|
|
2799
2799
|
await engine.pluginManager.register(e => {
|
|
2800
2800
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2801
2801
|
});
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
}
|
|
2833
2833
|
|
|
2834
2834
|
async function loadCircleShape(engine) {
|
|
2835
|
-
engine.checkVersion("4.1.
|
|
2835
|
+
engine.checkVersion("4.1.2");
|
|
2836
2836
|
await engine.pluginManager.register(e => {
|
|
2837
2837
|
e.pluginManager.addShape(["circle"], () => {
|
|
2838
2838
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2880,7 +2880,7 @@
|
|
|
2880
2880
|
}
|
|
2881
2881
|
|
|
2882
2882
|
async function loadHexColorPlugin(engine) {
|
|
2883
|
-
engine.checkVersion("4.1.
|
|
2883
|
+
engine.checkVersion("4.1.2");
|
|
2884
2884
|
await engine.pluginManager.register(e => {
|
|
2885
2885
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2886
2886
|
});
|
|
@@ -2933,7 +2933,7 @@
|
|
|
2933
2933
|
}
|
|
2934
2934
|
|
|
2935
2935
|
async function loadHslColorPlugin(engine) {
|
|
2936
|
-
engine.checkVersion("4.1.
|
|
2936
|
+
engine.checkVersion("4.1.2");
|
|
2937
2937
|
await engine.pluginManager.register(e => {
|
|
2938
2938
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2939
2939
|
});
|
|
@@ -2957,7 +2957,7 @@
|
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
2959
2959
|
async function loadMovePlugin(engine) {
|
|
2960
|
-
engine.checkVersion("4.1.
|
|
2960
|
+
engine.checkVersion("4.1.2");
|
|
2961
2961
|
await engine.pluginManager.register(e => {
|
|
2962
2962
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2963
2963
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
}
|
|
3065
3065
|
|
|
3066
3066
|
async function loadOpacityUpdater(engine) {
|
|
3067
|
-
engine.checkVersion("4.1.
|
|
3067
|
+
engine.checkVersion("4.1.2");
|
|
3068
3068
|
await engine.pluginManager.register(e => {
|
|
3069
3069
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3070
3070
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3411,7 +3411,7 @@
|
|
|
3411
3411
|
}
|
|
3412
3412
|
|
|
3413
3413
|
async function loadOutModesUpdater(engine) {
|
|
3414
|
-
engine.checkVersion("4.1.
|
|
3414
|
+
engine.checkVersion("4.1.2");
|
|
3415
3415
|
await engine.pluginManager.register(e => {
|
|
3416
3416
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3417
3417
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3482,7 +3482,7 @@
|
|
|
3482
3482
|
}
|
|
3483
3483
|
|
|
3484
3484
|
async function loadPaintUpdater(engine) {
|
|
3485
|
-
engine.checkVersion("4.1.
|
|
3485
|
+
engine.checkVersion("4.1.2");
|
|
3486
3486
|
await engine.pluginManager.register(e => {
|
|
3487
3487
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3488
3488
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3537,7 +3537,7 @@
|
|
|
3537
3537
|
}
|
|
3538
3538
|
|
|
3539
3539
|
async function loadRgbColorPlugin(engine) {
|
|
3540
|
-
engine.checkVersion("4.1.
|
|
3540
|
+
engine.checkVersion("4.1.2");
|
|
3541
3541
|
await engine.pluginManager.register(e => {
|
|
3542
3542
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3543
3543
|
});
|
|
@@ -3636,7 +3636,7 @@
|
|
|
3636
3636
|
}
|
|
3637
3637
|
|
|
3638
3638
|
async function loadSizeUpdater(engine) {
|
|
3639
|
-
engine.checkVersion("4.1.
|
|
3639
|
+
engine.checkVersion("4.1.2");
|
|
3640
3640
|
await engine.pluginManager.register(e => {
|
|
3641
3641
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3642
3642
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3645,7 +3645,7 @@
|
|
|
3645
3645
|
}
|
|
3646
3646
|
|
|
3647
3647
|
async function loadBasic(engine) {
|
|
3648
|
-
engine.checkVersion("4.1.
|
|
3648
|
+
engine.checkVersion("4.1.2");
|
|
3649
3649
|
await engine.pluginManager.register(async (e) => {
|
|
3650
3650
|
await Promise.all([
|
|
3651
3651
|
loadBlendPlugin(e),
|
|
@@ -3752,7 +3752,7 @@
|
|
|
3752
3752
|
}
|
|
3753
3753
|
|
|
3754
3754
|
async function loadMotionPlugin(engine) {
|
|
3755
|
-
engine.checkVersion("4.1.
|
|
3755
|
+
engine.checkVersion("4.1.2");
|
|
3756
3756
|
await engine.pluginManager.register(e => {
|
|
3757
3757
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
3758
3758
|
});
|
|
@@ -3909,7 +3909,7 @@
|
|
|
3909
3909
|
}
|
|
3910
3910
|
|
|
3911
3911
|
async function loadRollUpdater(engine) {
|
|
3912
|
-
engine.checkVersion("4.1.
|
|
3912
|
+
engine.checkVersion("4.1.2");
|
|
3913
3913
|
await engine.pluginManager.register(e => {
|
|
3914
3914
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
3915
3915
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -4043,7 +4043,7 @@
|
|
|
4043
4043
|
}
|
|
4044
4044
|
|
|
4045
4045
|
async function loadRotateUpdater(engine) {
|
|
4046
|
-
engine.checkVersion("4.1.
|
|
4046
|
+
engine.checkVersion("4.1.2");
|
|
4047
4047
|
await engine.pluginManager.register(e => {
|
|
4048
4048
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
4049
4049
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -4067,7 +4067,7 @@
|
|
|
4067
4067
|
}
|
|
4068
4068
|
|
|
4069
4069
|
async function loadSquareShape(engine) {
|
|
4070
|
-
engine.checkVersion("4.1.
|
|
4070
|
+
engine.checkVersion("4.1.2");
|
|
4071
4071
|
await engine.pluginManager.register(e => {
|
|
4072
4072
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
4073
4073
|
});
|
|
@@ -4204,7 +4204,7 @@
|
|
|
4204
4204
|
}
|
|
4205
4205
|
|
|
4206
4206
|
async function loadTiltUpdater(engine) {
|
|
4207
|
-
engine.checkVersion("4.1.
|
|
4207
|
+
engine.checkVersion("4.1.2");
|
|
4208
4208
|
await engine.pluginManager.register(e => {
|
|
4209
4209
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
4210
4210
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -4326,7 +4326,7 @@
|
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
4328
4328
|
async function loadWobbleUpdater(engine) {
|
|
4329
|
-
engine.checkVersion("4.1.
|
|
4329
|
+
engine.checkVersion("4.1.2");
|
|
4330
4330
|
await engine.pluginManager.register(e => {
|
|
4331
4331
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
4332
4332
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -4442,8 +4442,8 @@
|
|
|
4442
4442
|
}
|
|
4443
4443
|
|
|
4444
4444
|
const globalObject = globalThis;
|
|
4445
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4446
4445
|
globalObject.loadConfettiFallingPreset = loadConfettiFallingPreset;
|
|
4446
|
+
globalObject.tsParticles = tsParticles;
|
|
4447
4447
|
|
|
4448
4448
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4449
4449
|
function setTransformValue(factor, newFactor, key) {
|