@tsparticles/preset-confetti-falling 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) :
|
|
@@ -292,6 +292,9 @@
|
|
|
292
292
|
})(PixelMode || (PixelMode = {}));
|
|
293
293
|
|
|
294
294
|
const minRadius = 0;
|
|
295
|
+
function isForbiddenKey(key) {
|
|
296
|
+
return key === "__proto__" || key === "constructor" || key === "prototype";
|
|
297
|
+
}
|
|
295
298
|
function hasMatchMedia() {
|
|
296
299
|
return typeof matchMedia !== "undefined";
|
|
297
300
|
}
|
|
@@ -367,7 +370,7 @@
|
|
|
367
370
|
if (!hasNested) {
|
|
368
371
|
const sourceDict = source, destDict = destination;
|
|
369
372
|
for (const key of sourceKeys) {
|
|
370
|
-
if (key
|
|
373
|
+
if (isForbiddenKey(key)) {
|
|
371
374
|
continue;
|
|
372
375
|
}
|
|
373
376
|
const v = sourceDict[key];
|
|
@@ -378,7 +381,7 @@
|
|
|
378
381
|
continue;
|
|
379
382
|
}
|
|
380
383
|
for (const key of sourceKeys) {
|
|
381
|
-
if (key
|
|
384
|
+
if (isForbiddenKey(key)) {
|
|
382
385
|
continue;
|
|
383
386
|
}
|
|
384
387
|
const sourceDict = source, destDict = destination, value = sourceDict[key];
|
|
@@ -794,7 +797,7 @@
|
|
|
794
797
|
return this.#domArray;
|
|
795
798
|
}
|
|
796
799
|
get version() {
|
|
797
|
-
return "4.3.
|
|
800
|
+
return "4.3.2";
|
|
798
801
|
}
|
|
799
802
|
addEventListener(type, listener) {
|
|
800
803
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2098,7 +2101,7 @@
|
|
|
2098
2101
|
}
|
|
2099
2102
|
|
|
2100
2103
|
async function loadBlendPlugin(engine) {
|
|
2101
|
-
engine.checkVersion("4.3.
|
|
2104
|
+
engine.checkVersion("4.3.2");
|
|
2102
2105
|
await engine.pluginManager.register(e => {
|
|
2103
2106
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2104
2107
|
});
|
|
@@ -2135,7 +2138,7 @@
|
|
|
2135
2138
|
}
|
|
2136
2139
|
|
|
2137
2140
|
async function loadCircleShape(engine) {
|
|
2138
|
-
engine.checkVersion("4.3.
|
|
2141
|
+
engine.checkVersion("4.3.2");
|
|
2139
2142
|
await engine.pluginManager.register(e => {
|
|
2140
2143
|
e.pluginManager.addShape(["circle"], () => {
|
|
2141
2144
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2183,7 +2186,7 @@
|
|
|
2183
2186
|
}
|
|
2184
2187
|
|
|
2185
2188
|
async function loadHexColorPlugin(engine) {
|
|
2186
|
-
engine.checkVersion("4.3.
|
|
2189
|
+
engine.checkVersion("4.3.2");
|
|
2187
2190
|
await engine.pluginManager.register(e => {
|
|
2188
2191
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2189
2192
|
});
|
|
@@ -2236,7 +2239,7 @@
|
|
|
2236
2239
|
}
|
|
2237
2240
|
|
|
2238
2241
|
async function loadHslColorPlugin(engine) {
|
|
2239
|
-
engine.checkVersion("4.3.
|
|
2242
|
+
engine.checkVersion("4.3.2");
|
|
2240
2243
|
await engine.pluginManager.register(e => {
|
|
2241
2244
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2242
2245
|
});
|
|
@@ -2260,7 +2263,7 @@
|
|
|
2260
2263
|
}
|
|
2261
2264
|
|
|
2262
2265
|
async function loadMovePlugin(engine) {
|
|
2263
|
-
engine.checkVersion("4.3.
|
|
2266
|
+
engine.checkVersion("4.3.2");
|
|
2264
2267
|
await engine.pluginManager.register(e => {
|
|
2265
2268
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2266
2269
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -2476,7 +2479,7 @@
|
|
|
2476
2479
|
}
|
|
2477
2480
|
|
|
2478
2481
|
async function loadOpacityUpdater(engine) {
|
|
2479
|
-
engine.checkVersion("4.3.
|
|
2482
|
+
engine.checkVersion("4.3.2");
|
|
2480
2483
|
await engine.pluginManager.register(e => {
|
|
2481
2484
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
2482
2485
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -2821,7 +2824,7 @@
|
|
|
2821
2824
|
}
|
|
2822
2825
|
|
|
2823
2826
|
async function loadOutModesUpdater(engine) {
|
|
2824
|
-
engine.checkVersion("4.3.
|
|
2827
|
+
engine.checkVersion("4.3.2");
|
|
2825
2828
|
await engine.pluginManager.register(e => {
|
|
2826
2829
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
2827
2830
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -2892,7 +2895,7 @@
|
|
|
2892
2895
|
}
|
|
2893
2896
|
|
|
2894
2897
|
async function loadPaintUpdater(engine) {
|
|
2895
|
-
engine.checkVersion("4.3.
|
|
2898
|
+
engine.checkVersion("4.3.2");
|
|
2896
2899
|
await engine.pluginManager.register(e => {
|
|
2897
2900
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
2898
2901
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -2947,7 +2950,7 @@
|
|
|
2947
2950
|
}
|
|
2948
2951
|
|
|
2949
2952
|
async function loadRgbColorPlugin(engine) {
|
|
2950
|
-
engine.checkVersion("4.3.
|
|
2953
|
+
engine.checkVersion("4.3.2");
|
|
2951
2954
|
await engine.pluginManager.register(e => {
|
|
2952
2955
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
2953
2956
|
});
|
|
@@ -3032,7 +3035,7 @@
|
|
|
3032
3035
|
}
|
|
3033
3036
|
|
|
3034
3037
|
async function loadSizeUpdater(engine) {
|
|
3035
|
-
engine.checkVersion("4.3.
|
|
3038
|
+
engine.checkVersion("4.3.2");
|
|
3036
3039
|
await engine.pluginManager.register(e => {
|
|
3037
3040
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3038
3041
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3041,7 +3044,7 @@
|
|
|
3041
3044
|
}
|
|
3042
3045
|
|
|
3043
3046
|
async function loadBasic(engine) {
|
|
3044
|
-
engine.checkVersion("4.3.
|
|
3047
|
+
engine.checkVersion("4.3.2");
|
|
3045
3048
|
await engine.pluginManager.register(async (e) => {
|
|
3046
3049
|
await Promise.all([
|
|
3047
3050
|
loadBlendPlugin(e),
|
|
@@ -3134,7 +3137,7 @@
|
|
|
3134
3137
|
}
|
|
3135
3138
|
|
|
3136
3139
|
async function loadMotionPlugin(engine) {
|
|
3137
|
-
engine.checkVersion("4.3.
|
|
3140
|
+
engine.checkVersion("4.3.2");
|
|
3138
3141
|
await engine.pluginManager.register(e => {
|
|
3139
3142
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
3140
3143
|
});
|
|
@@ -3267,7 +3270,7 @@
|
|
|
3267
3270
|
}
|
|
3268
3271
|
|
|
3269
3272
|
async function loadRollUpdater(engine) {
|
|
3270
|
-
engine.checkVersion("4.3.
|
|
3273
|
+
engine.checkVersion("4.3.2");
|
|
3271
3274
|
await engine.pluginManager.register(e => {
|
|
3272
3275
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
3273
3276
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -3373,7 +3376,7 @@
|
|
|
3373
3376
|
}
|
|
3374
3377
|
|
|
3375
3378
|
async function loadRotateUpdater(engine) {
|
|
3376
|
-
engine.checkVersion("4.3.
|
|
3379
|
+
engine.checkVersion("4.3.2");
|
|
3377
3380
|
await engine.pluginManager.register(e => {
|
|
3378
3381
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
3379
3382
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -3397,7 +3400,7 @@
|
|
|
3397
3400
|
}
|
|
3398
3401
|
|
|
3399
3402
|
async function loadSquareShape(engine) {
|
|
3400
|
-
engine.checkVersion("4.3.
|
|
3403
|
+
engine.checkVersion("4.3.2");
|
|
3401
3404
|
await engine.pluginManager.register(e => {
|
|
3402
3405
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
3403
3406
|
});
|
|
@@ -3506,7 +3509,7 @@
|
|
|
3506
3509
|
}
|
|
3507
3510
|
|
|
3508
3511
|
async function loadTiltUpdater(engine) {
|
|
3509
|
-
engine.checkVersion("4.3.
|
|
3512
|
+
engine.checkVersion("4.3.2");
|
|
3510
3513
|
await engine.pluginManager.register(e => {
|
|
3511
3514
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
3512
3515
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -3608,7 +3611,7 @@
|
|
|
3608
3611
|
}
|
|
3609
3612
|
|
|
3610
3613
|
async function loadWobbleUpdater(engine) {
|
|
3611
|
-
engine.checkVersion("4.3.
|
|
3614
|
+
engine.checkVersion("4.3.2");
|
|
3612
3615
|
await engine.pluginManager.register(e => {
|
|
3613
3616
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
3614
3617
|
return Promise.resolve(new WobbleUpdater(container));
|