@tsparticles/preset-confetti 4.3.1 → 4.3.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.
|
@@ -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.3.
|
|
2
|
+
/* Preset v4.3.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) :
|
|
@@ -305,6 +305,9 @@
|
|
|
305
305
|
})(PixelMode || (PixelMode = {}));
|
|
306
306
|
|
|
307
307
|
const minRadius = 0;
|
|
308
|
+
function isForbiddenKey(key) {
|
|
309
|
+
return key === "__proto__" || key === "constructor" || key === "prototype";
|
|
310
|
+
}
|
|
308
311
|
function hasMatchMedia() {
|
|
309
312
|
return typeof matchMedia !== "undefined";
|
|
310
313
|
}
|
|
@@ -380,7 +383,7 @@
|
|
|
380
383
|
if (!hasNested) {
|
|
381
384
|
const sourceDict = source, destDict = destination;
|
|
382
385
|
for (const key of sourceKeys) {
|
|
383
|
-
if (key
|
|
386
|
+
if (isForbiddenKey(key)) {
|
|
384
387
|
continue;
|
|
385
388
|
}
|
|
386
389
|
const v = sourceDict[key];
|
|
@@ -391,7 +394,7 @@
|
|
|
391
394
|
continue;
|
|
392
395
|
}
|
|
393
396
|
for (const key of sourceKeys) {
|
|
394
|
-
if (key
|
|
397
|
+
if (isForbiddenKey(key)) {
|
|
395
398
|
continue;
|
|
396
399
|
}
|
|
397
400
|
const sourceDict = source, destDict = destination, value = sourceDict[key];
|
|
@@ -807,7 +810,7 @@
|
|
|
807
810
|
return this.#domArray;
|
|
808
811
|
}
|
|
809
812
|
get version() {
|
|
810
|
-
return "4.3.
|
|
813
|
+
return "4.3.2";
|
|
811
814
|
}
|
|
812
815
|
addEventListener(type, listener) {
|
|
813
816
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2111,7 +2114,7 @@
|
|
|
2111
2114
|
}
|
|
2112
2115
|
|
|
2113
2116
|
async function loadBlendPlugin(engine) {
|
|
2114
|
-
engine.checkVersion("4.3.
|
|
2117
|
+
engine.checkVersion("4.3.2");
|
|
2115
2118
|
await engine.pluginManager.register(e => {
|
|
2116
2119
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2117
2120
|
});
|
|
@@ -2148,7 +2151,7 @@
|
|
|
2148
2151
|
}
|
|
2149
2152
|
|
|
2150
2153
|
async function loadCircleShape(engine) {
|
|
2151
|
-
engine.checkVersion("4.3.
|
|
2154
|
+
engine.checkVersion("4.3.2");
|
|
2152
2155
|
await engine.pluginManager.register(e => {
|
|
2153
2156
|
e.pluginManager.addShape(["circle"], () => {
|
|
2154
2157
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2196,7 +2199,7 @@
|
|
|
2196
2199
|
}
|
|
2197
2200
|
|
|
2198
2201
|
async function loadHexColorPlugin(engine) {
|
|
2199
|
-
engine.checkVersion("4.3.
|
|
2202
|
+
engine.checkVersion("4.3.2");
|
|
2200
2203
|
await engine.pluginManager.register(e => {
|
|
2201
2204
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2202
2205
|
});
|
|
@@ -2249,7 +2252,7 @@
|
|
|
2249
2252
|
}
|
|
2250
2253
|
|
|
2251
2254
|
async function loadHslColorPlugin(engine) {
|
|
2252
|
-
engine.checkVersion("4.3.
|
|
2255
|
+
engine.checkVersion("4.3.2");
|
|
2253
2256
|
await engine.pluginManager.register(e => {
|
|
2254
2257
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2255
2258
|
});
|
|
@@ -2273,7 +2276,7 @@
|
|
|
2273
2276
|
}
|
|
2274
2277
|
|
|
2275
2278
|
async function loadMovePlugin(engine) {
|
|
2276
|
-
engine.checkVersion("4.3.
|
|
2279
|
+
engine.checkVersion("4.3.2");
|
|
2277
2280
|
await engine.pluginManager.register(e => {
|
|
2278
2281
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2279
2282
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -2489,7 +2492,7 @@
|
|
|
2489
2492
|
}
|
|
2490
2493
|
|
|
2491
2494
|
async function loadOpacityUpdater(engine) {
|
|
2492
|
-
engine.checkVersion("4.3.
|
|
2495
|
+
engine.checkVersion("4.3.2");
|
|
2493
2496
|
await engine.pluginManager.register(e => {
|
|
2494
2497
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
2495
2498
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -2834,7 +2837,7 @@
|
|
|
2834
2837
|
}
|
|
2835
2838
|
|
|
2836
2839
|
async function loadOutModesUpdater(engine) {
|
|
2837
|
-
engine.checkVersion("4.3.
|
|
2840
|
+
engine.checkVersion("4.3.2");
|
|
2838
2841
|
await engine.pluginManager.register(e => {
|
|
2839
2842
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
2840
2843
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -2905,7 +2908,7 @@
|
|
|
2905
2908
|
}
|
|
2906
2909
|
|
|
2907
2910
|
async function loadPaintUpdater(engine) {
|
|
2908
|
-
engine.checkVersion("4.3.
|
|
2911
|
+
engine.checkVersion("4.3.2");
|
|
2909
2912
|
await engine.pluginManager.register(e => {
|
|
2910
2913
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
2911
2914
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -2960,7 +2963,7 @@
|
|
|
2960
2963
|
}
|
|
2961
2964
|
|
|
2962
2965
|
async function loadRgbColorPlugin(engine) {
|
|
2963
|
-
engine.checkVersion("4.3.
|
|
2966
|
+
engine.checkVersion("4.3.2");
|
|
2964
2967
|
await engine.pluginManager.register(e => {
|
|
2965
2968
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
2966
2969
|
});
|
|
@@ -3045,7 +3048,7 @@
|
|
|
3045
3048
|
}
|
|
3046
3049
|
|
|
3047
3050
|
async function loadSizeUpdater(engine) {
|
|
3048
|
-
engine.checkVersion("4.3.
|
|
3051
|
+
engine.checkVersion("4.3.2");
|
|
3049
3052
|
await engine.pluginManager.register(e => {
|
|
3050
3053
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3051
3054
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3054,7 +3057,7 @@
|
|
|
3054
3057
|
}
|
|
3055
3058
|
|
|
3056
3059
|
async function loadBasic(engine) {
|
|
3057
|
-
engine.checkVersion("4.3.
|
|
3060
|
+
engine.checkVersion("4.3.2");
|
|
3058
3061
|
await engine.pluginManager.register(async (e) => {
|
|
3059
3062
|
await Promise.all([
|
|
3060
3063
|
loadBlendPlugin(e),
|
|
@@ -3307,7 +3310,7 @@
|
|
|
3307
3310
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3308
3311
|
|
|
3309
3312
|
async function loadEmittersPluginSimple(engine) {
|
|
3310
|
-
engine.checkVersion("4.3.
|
|
3313
|
+
engine.checkVersion("4.3.2");
|
|
3311
3314
|
await engine.pluginManager.register(async (e) => {
|
|
3312
3315
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3313
3316
|
await addEmittersShapesManager(e);
|
|
@@ -3452,7 +3455,7 @@
|
|
|
3452
3455
|
}
|
|
3453
3456
|
|
|
3454
3457
|
async function loadLifeUpdater(engine) {
|
|
3455
|
-
engine.checkVersion("4.3.
|
|
3458
|
+
engine.checkVersion("4.3.2");
|
|
3456
3459
|
await engine.pluginManager.register(e => {
|
|
3457
3460
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
3458
3461
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -3506,7 +3509,7 @@
|
|
|
3506
3509
|
}
|
|
3507
3510
|
|
|
3508
3511
|
async function loadMotionPlugin(engine) {
|
|
3509
|
-
engine.checkVersion("4.3.
|
|
3512
|
+
engine.checkVersion("4.3.2");
|
|
3510
3513
|
await engine.pluginManager.register(e => {
|
|
3511
3514
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
3512
3515
|
});
|
|
@@ -3639,7 +3642,7 @@
|
|
|
3639
3642
|
}
|
|
3640
3643
|
|
|
3641
3644
|
async function loadRollUpdater(engine) {
|
|
3642
|
-
engine.checkVersion("4.3.
|
|
3645
|
+
engine.checkVersion("4.3.2");
|
|
3643
3646
|
await engine.pluginManager.register(e => {
|
|
3644
3647
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
3645
3648
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -3745,7 +3748,7 @@
|
|
|
3745
3748
|
}
|
|
3746
3749
|
|
|
3747
3750
|
async function loadRotateUpdater(engine) {
|
|
3748
|
-
engine.checkVersion("4.3.
|
|
3751
|
+
engine.checkVersion("4.3.2");
|
|
3749
3752
|
await engine.pluginManager.register(e => {
|
|
3750
3753
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
3751
3754
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -3769,7 +3772,7 @@
|
|
|
3769
3772
|
}
|
|
3770
3773
|
|
|
3771
3774
|
async function loadSquareShape(engine) {
|
|
3772
|
-
engine.checkVersion("4.3.
|
|
3775
|
+
engine.checkVersion("4.3.2");
|
|
3773
3776
|
await engine.pluginManager.register(e => {
|
|
3774
3777
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
3775
3778
|
});
|
|
@@ -3878,7 +3881,7 @@
|
|
|
3878
3881
|
}
|
|
3879
3882
|
|
|
3880
3883
|
async function loadTiltUpdater(engine) {
|
|
3881
|
-
engine.checkVersion("4.3.
|
|
3884
|
+
engine.checkVersion("4.3.2");
|
|
3882
3885
|
await engine.pluginManager.register(e => {
|
|
3883
3886
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
3884
3887
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -3980,7 +3983,7 @@
|
|
|
3980
3983
|
}
|
|
3981
3984
|
|
|
3982
3985
|
async function loadWobbleUpdater(engine) {
|
|
3983
|
-
engine.checkVersion("4.3.
|
|
3986
|
+
engine.checkVersion("4.3.2");
|
|
3984
3987
|
await engine.pluginManager.register(e => {
|
|
3985
3988
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
3986
3989
|
return Promise.resolve(new WobbleUpdater(container));
|