@tsparticles/preset-confetti 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/README.md +1 -1
- package/browser/bundle.js +3 -2
- package/cjs/bundle.js +3 -2
- package/esm/bundle.js +3 -2
- package/package.json +12 -12
- package/report.html +1 -1
- package/tsparticles.preset.confetti.bundle.js +22 -22
- package/tsparticles.preset.confetti.bundle.min.js +1 -1
- package/tsparticles.preset.confetti.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) :
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
return this.#domArray;
|
|
1019
1019
|
}
|
|
1020
1020
|
get version() {
|
|
1021
|
-
return "4.1.
|
|
1021
|
+
return "4.1.2";
|
|
1022
1022
|
}
|
|
1023
1023
|
addEventListener(type, listener) {
|
|
1024
1024
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2811,7 +2811,7 @@
|
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
2813
2813
|
async function loadBlendPlugin(engine) {
|
|
2814
|
-
engine.checkVersion("4.1.
|
|
2814
|
+
engine.checkVersion("4.1.2");
|
|
2815
2815
|
await engine.pluginManager.register(e => {
|
|
2816
2816
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2817
2817
|
});
|
|
@@ -2848,7 +2848,7 @@
|
|
|
2848
2848
|
}
|
|
2849
2849
|
|
|
2850
2850
|
async function loadCircleShape(engine) {
|
|
2851
|
-
engine.checkVersion("4.1.
|
|
2851
|
+
engine.checkVersion("4.1.2");
|
|
2852
2852
|
await engine.pluginManager.register(e => {
|
|
2853
2853
|
e.pluginManager.addShape(["circle"], () => {
|
|
2854
2854
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2896,7 +2896,7 @@
|
|
|
2896
2896
|
}
|
|
2897
2897
|
|
|
2898
2898
|
async function loadHexColorPlugin(engine) {
|
|
2899
|
-
engine.checkVersion("4.1.
|
|
2899
|
+
engine.checkVersion("4.1.2");
|
|
2900
2900
|
await engine.pluginManager.register(e => {
|
|
2901
2901
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2902
2902
|
});
|
|
@@ -2949,7 +2949,7 @@
|
|
|
2949
2949
|
}
|
|
2950
2950
|
|
|
2951
2951
|
async function loadHslColorPlugin(engine) {
|
|
2952
|
-
engine.checkVersion("4.1.
|
|
2952
|
+
engine.checkVersion("4.1.2");
|
|
2953
2953
|
await engine.pluginManager.register(e => {
|
|
2954
2954
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2955
2955
|
});
|
|
@@ -2973,7 +2973,7 @@
|
|
|
2973
2973
|
}
|
|
2974
2974
|
|
|
2975
2975
|
async function loadMovePlugin(engine) {
|
|
2976
|
-
engine.checkVersion("4.1.
|
|
2976
|
+
engine.checkVersion("4.1.2");
|
|
2977
2977
|
await engine.pluginManager.register(e => {
|
|
2978
2978
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2979
2979
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3080,7 +3080,7 @@
|
|
|
3080
3080
|
}
|
|
3081
3081
|
|
|
3082
3082
|
async function loadOpacityUpdater(engine) {
|
|
3083
|
-
engine.checkVersion("4.1.
|
|
3083
|
+
engine.checkVersion("4.1.2");
|
|
3084
3084
|
await engine.pluginManager.register(e => {
|
|
3085
3085
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3086
3086
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3427,7 +3427,7 @@
|
|
|
3427
3427
|
}
|
|
3428
3428
|
|
|
3429
3429
|
async function loadOutModesUpdater(engine) {
|
|
3430
|
-
engine.checkVersion("4.1.
|
|
3430
|
+
engine.checkVersion("4.1.2");
|
|
3431
3431
|
await engine.pluginManager.register(e => {
|
|
3432
3432
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3433
3433
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3498,7 +3498,7 @@
|
|
|
3498
3498
|
}
|
|
3499
3499
|
|
|
3500
3500
|
async function loadPaintUpdater(engine) {
|
|
3501
|
-
engine.checkVersion("4.1.
|
|
3501
|
+
engine.checkVersion("4.1.2");
|
|
3502
3502
|
await engine.pluginManager.register(e => {
|
|
3503
3503
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3504
3504
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3553,7 +3553,7 @@
|
|
|
3553
3553
|
}
|
|
3554
3554
|
|
|
3555
3555
|
async function loadRgbColorPlugin(engine) {
|
|
3556
|
-
engine.checkVersion("4.1.
|
|
3556
|
+
engine.checkVersion("4.1.2");
|
|
3557
3557
|
await engine.pluginManager.register(e => {
|
|
3558
3558
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3559
3559
|
});
|
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
}
|
|
3653
3653
|
|
|
3654
3654
|
async function loadSizeUpdater(engine) {
|
|
3655
|
-
engine.checkVersion("4.1.
|
|
3655
|
+
engine.checkVersion("4.1.2");
|
|
3656
3656
|
await engine.pluginManager.register(e => {
|
|
3657
3657
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3658
3658
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3661,7 +3661,7 @@
|
|
|
3661
3661
|
}
|
|
3662
3662
|
|
|
3663
3663
|
async function loadBasic(engine) {
|
|
3664
|
-
engine.checkVersion("4.1.
|
|
3664
|
+
engine.checkVersion("4.1.2");
|
|
3665
3665
|
await engine.pluginManager.register(async (e) => {
|
|
3666
3666
|
await Promise.all([
|
|
3667
3667
|
loadBlendPlugin(e),
|
|
@@ -3976,7 +3976,7 @@
|
|
|
3976
3976
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3977
3977
|
|
|
3978
3978
|
async function loadEmittersPluginSimple(engine) {
|
|
3979
|
-
engine.checkVersion("4.1.
|
|
3979
|
+
engine.checkVersion("4.1.2");
|
|
3980
3980
|
await engine.pluginManager.register(async (e) => {
|
|
3981
3981
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3982
3982
|
await addEmittersShapesManager(e);
|
|
@@ -4143,7 +4143,7 @@
|
|
|
4143
4143
|
}
|
|
4144
4144
|
|
|
4145
4145
|
async function loadLifeUpdater(engine) {
|
|
4146
|
-
engine.checkVersion("4.1.
|
|
4146
|
+
engine.checkVersion("4.1.2");
|
|
4147
4147
|
await engine.pluginManager.register(e => {
|
|
4148
4148
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
4149
4149
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -4211,7 +4211,7 @@
|
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
4213
|
async function loadMotionPlugin(engine) {
|
|
4214
|
-
engine.checkVersion("4.1.
|
|
4214
|
+
engine.checkVersion("4.1.2");
|
|
4215
4215
|
await engine.pluginManager.register(e => {
|
|
4216
4216
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
4217
4217
|
});
|
|
@@ -4368,7 +4368,7 @@
|
|
|
4368
4368
|
}
|
|
4369
4369
|
|
|
4370
4370
|
async function loadRollUpdater(engine) {
|
|
4371
|
-
engine.checkVersion("4.1.
|
|
4371
|
+
engine.checkVersion("4.1.2");
|
|
4372
4372
|
await engine.pluginManager.register(e => {
|
|
4373
4373
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
4374
4374
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -4502,7 +4502,7 @@
|
|
|
4502
4502
|
}
|
|
4503
4503
|
|
|
4504
4504
|
async function loadRotateUpdater(engine) {
|
|
4505
|
-
engine.checkVersion("4.1.
|
|
4505
|
+
engine.checkVersion("4.1.2");
|
|
4506
4506
|
await engine.pluginManager.register(e => {
|
|
4507
4507
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
4508
4508
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -4526,7 +4526,7 @@
|
|
|
4526
4526
|
}
|
|
4527
4527
|
|
|
4528
4528
|
async function loadSquareShape(engine) {
|
|
4529
|
-
engine.checkVersion("4.1.
|
|
4529
|
+
engine.checkVersion("4.1.2");
|
|
4530
4530
|
await engine.pluginManager.register(e => {
|
|
4531
4531
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
4532
4532
|
});
|
|
@@ -4663,7 +4663,7 @@
|
|
|
4663
4663
|
}
|
|
4664
4664
|
|
|
4665
4665
|
async function loadTiltUpdater(engine) {
|
|
4666
|
-
engine.checkVersion("4.1.
|
|
4666
|
+
engine.checkVersion("4.1.2");
|
|
4667
4667
|
await engine.pluginManager.register(e => {
|
|
4668
4668
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
4669
4669
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -4785,7 +4785,7 @@
|
|
|
4785
4785
|
}
|
|
4786
4786
|
|
|
4787
4787
|
async function loadWobbleUpdater(engine) {
|
|
4788
|
-
engine.checkVersion("4.1.
|
|
4788
|
+
engine.checkVersion("4.1.2");
|
|
4789
4789
|
await engine.pluginManager.register(e => {
|
|
4790
4790
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
4791
4791
|
return Promise.resolve(new WobbleUpdater(container));
|
|
@@ -4943,8 +4943,8 @@
|
|
|
4943
4943
|
}
|
|
4944
4944
|
|
|
4945
4945
|
const globalObject = globalThis;
|
|
4946
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4947
4946
|
globalObject.loadConfettiPreset = loadConfettiPreset;
|
|
4947
|
+
globalObject.tsParticles = tsParticles;
|
|
4948
4948
|
|
|
4949
4949
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4950
4950
|
function setTransformValue(factor, newFactor, key) {
|