@tsparticles/preset-firefly 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();
|
|
@@ -2470,7 +2473,7 @@
|
|
|
2470
2473
|
}
|
|
2471
2474
|
|
|
2472
2475
|
async function loadOpacityUpdater(engine) {
|
|
2473
|
-
engine.checkVersion("4.3.
|
|
2476
|
+
engine.checkVersion("4.3.2");
|
|
2474
2477
|
await engine.pluginManager.register(e => {
|
|
2475
2478
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
2476
2479
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -2815,7 +2818,7 @@
|
|
|
2815
2818
|
}
|
|
2816
2819
|
|
|
2817
2820
|
async function loadOutModesUpdater(engine) {
|
|
2818
|
-
engine.checkVersion("4.3.
|
|
2821
|
+
engine.checkVersion("4.3.2");
|
|
2819
2822
|
await engine.pluginManager.register(e => {
|
|
2820
2823
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
2821
2824
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -2886,7 +2889,7 @@
|
|
|
2886
2889
|
}
|
|
2887
2890
|
|
|
2888
2891
|
async function loadPaintUpdater(engine) {
|
|
2889
|
-
engine.checkVersion("4.3.
|
|
2892
|
+
engine.checkVersion("4.3.2");
|
|
2890
2893
|
await engine.pluginManager.register(e => {
|
|
2891
2894
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
2892
2895
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -2941,7 +2944,7 @@
|
|
|
2941
2944
|
}
|
|
2942
2945
|
|
|
2943
2946
|
async function loadRgbColorPlugin(engine) {
|
|
2944
|
-
engine.checkVersion("4.3.
|
|
2947
|
+
engine.checkVersion("4.3.2");
|
|
2945
2948
|
await engine.pluginManager.register(e => {
|
|
2946
2949
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
2947
2950
|
});
|
|
@@ -3026,7 +3029,7 @@
|
|
|
3026
3029
|
}
|
|
3027
3030
|
|
|
3028
3031
|
async function loadSizeUpdater(engine) {
|
|
3029
|
-
engine.checkVersion("4.3.
|
|
3032
|
+
engine.checkVersion("4.3.2");
|
|
3030
3033
|
await engine.pluginManager.register(e => {
|
|
3031
3034
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3032
3035
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3035,7 +3038,7 @@
|
|
|
3035
3038
|
}
|
|
3036
3039
|
|
|
3037
3040
|
async function loadBasic(engine) {
|
|
3038
|
-
engine.checkVersion("4.3.
|
|
3041
|
+
engine.checkVersion("4.3.2");
|
|
3039
3042
|
await engine.pluginManager.register(async (e) => {
|
|
3040
3043
|
await Promise.all([
|
|
3041
3044
|
loadBlendPlugin(e),
|
|
@@ -3236,7 +3239,7 @@
|
|
|
3236
3239
|
const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
|
|
3237
3240
|
|
|
3238
3241
|
async function loadInteractivityPlugin(engine) {
|
|
3239
|
-
engine.checkVersion("4.3.
|
|
3242
|
+
engine.checkVersion("4.3.2");
|
|
3240
3243
|
await engine.pluginManager.register(e => {
|
|
3241
3244
|
const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
|
|
3242
3245
|
interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
|
|
@@ -3433,7 +3436,7 @@
|
|
|
3433
3436
|
}
|
|
3434
3437
|
|
|
3435
3438
|
async function loadExternalTrailInteraction(engine) {
|
|
3436
|
-
engine.checkVersion("4.3.
|
|
3439
|
+
engine.checkVersion("4.3.2");
|
|
3437
3440
|
await engine.pluginManager.register((e) => {
|
|
3438
3441
|
ensureInteractivityPluginLoaded(e);
|
|
3439
3442
|
e.pluginManager.addInteractor?.("externalTrail", container => {
|
|
@@ -3579,7 +3582,7 @@
|
|
|
3579
3582
|
}
|
|
3580
3583
|
|
|
3581
3584
|
async function loadLifeUpdater(engine) {
|
|
3582
|
-
engine.checkVersion("4.3.
|
|
3585
|
+
engine.checkVersion("4.3.2");
|
|
3583
3586
|
await engine.pluginManager.register(e => {
|
|
3584
3587
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
3585
3588
|
return Promise.resolve(new LifeUpdater(container));
|