@tsparticles/preset-confetti-cannon 4.3.0 → 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),
|
|
@@ -3272,7 +3275,7 @@
|
|
|
3272
3275
|
const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
|
|
3273
3276
|
|
|
3274
3277
|
async function loadInteractivityPlugin(engine) {
|
|
3275
|
-
engine.checkVersion("4.3.
|
|
3278
|
+
engine.checkVersion("4.3.2");
|
|
3276
3279
|
await engine.pluginManager.register(e => {
|
|
3277
3280
|
const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
|
|
3278
3281
|
interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
|
|
@@ -3451,7 +3454,7 @@
|
|
|
3451
3454
|
}
|
|
3452
3455
|
|
|
3453
3456
|
async function loadExternalCannonInteraction(engine) {
|
|
3454
|
-
engine.checkVersion("4.3.
|
|
3457
|
+
engine.checkVersion("4.3.2");
|
|
3455
3458
|
await engine.pluginManager.register((e) => {
|
|
3456
3459
|
ensureInteractivityPluginLoaded(e);
|
|
3457
3460
|
e.pluginManager.addInteractor?.("externalCannon", container => {
|
|
@@ -3597,7 +3600,7 @@
|
|
|
3597
3600
|
}
|
|
3598
3601
|
|
|
3599
3602
|
async function loadLifeUpdater(engine) {
|
|
3600
|
-
engine.checkVersion("4.3.
|
|
3603
|
+
engine.checkVersion("4.3.2");
|
|
3601
3604
|
await engine.pluginManager.register(e => {
|
|
3602
3605
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
3603
3606
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -3651,7 +3654,7 @@
|
|
|
3651
3654
|
}
|
|
3652
3655
|
|
|
3653
3656
|
async function loadMotionPlugin(engine) {
|
|
3654
|
-
engine.checkVersion("4.3.
|
|
3657
|
+
engine.checkVersion("4.3.2");
|
|
3655
3658
|
await engine.pluginManager.register(e => {
|
|
3656
3659
|
e.pluginManager.addPlugin(new MotionPlugin());
|
|
3657
3660
|
});
|
|
@@ -3784,7 +3787,7 @@
|
|
|
3784
3787
|
}
|
|
3785
3788
|
|
|
3786
3789
|
async function loadRollUpdater(engine) {
|
|
3787
|
-
engine.checkVersion("4.3.
|
|
3790
|
+
engine.checkVersion("4.3.2");
|
|
3788
3791
|
await engine.pluginManager.register(e => {
|
|
3789
3792
|
e.pluginManager.addParticleUpdater("roll", () => {
|
|
3790
3793
|
return Promise.resolve(new RollUpdater(e.pluginManager));
|
|
@@ -3890,7 +3893,7 @@
|
|
|
3890
3893
|
}
|
|
3891
3894
|
|
|
3892
3895
|
async function loadRotateUpdater(engine) {
|
|
3893
|
-
engine.checkVersion("4.3.
|
|
3896
|
+
engine.checkVersion("4.3.2");
|
|
3894
3897
|
await engine.pluginManager.register(e => {
|
|
3895
3898
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
3896
3899
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -3914,7 +3917,7 @@
|
|
|
3914
3917
|
}
|
|
3915
3918
|
|
|
3916
3919
|
async function loadSquareShape(engine) {
|
|
3917
|
-
engine.checkVersion("4.3.
|
|
3920
|
+
engine.checkVersion("4.3.2");
|
|
3918
3921
|
await engine.pluginManager.register(e => {
|
|
3919
3922
|
e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
|
|
3920
3923
|
});
|
|
@@ -4023,7 +4026,7 @@
|
|
|
4023
4026
|
}
|
|
4024
4027
|
|
|
4025
4028
|
async function loadTiltUpdater(engine) {
|
|
4026
|
-
engine.checkVersion("4.3.
|
|
4029
|
+
engine.checkVersion("4.3.2");
|
|
4027
4030
|
await engine.pluginManager.register(e => {
|
|
4028
4031
|
e.pluginManager.addParticleUpdater("tilt", container => {
|
|
4029
4032
|
return Promise.resolve(new TiltUpdater(container));
|
|
@@ -4125,7 +4128,7 @@
|
|
|
4125
4128
|
}
|
|
4126
4129
|
|
|
4127
4130
|
async function loadWobbleUpdater(engine) {
|
|
4128
|
-
engine.checkVersion("4.3.
|
|
4131
|
+
engine.checkVersion("4.3.2");
|
|
4129
4132
|
await engine.pluginManager.register(e => {
|
|
4130
4133
|
e.pluginManager.addParticleUpdater("wobble", container => {
|
|
4131
4134
|
return Promise.resolve(new WobbleUpdater(container));
|