@tsparticles/fireworks 4.1.2 → 4.1.3
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/browser/fireworks.js +2 -2
- package/browser/fireworks.lazy.js +2 -2
- package/cjs/fireworks.js +2 -2
- package/cjs/fireworks.lazy.js +2 -2
- package/esm/fireworks.js +2 -2
- package/esm/fireworks.lazy.js +2 -2
- package/package.json +12 -12
- package/report.html +1 -1
- package/tsparticles.fireworks.bundle.js +39 -33
- package/tsparticles.fireworks.bundle.min.js +1 -1
- package/tsparticles.fireworks.js +3 -3
- package/tsparticles.fireworks.min.js +1 -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
|
-
/* tsParticles v4.1.
|
|
2
|
+
/* tsParticles v4.1.3 */
|
|
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) :
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
return this.#domArray;
|
|
1119
1119
|
}
|
|
1120
1120
|
get version() {
|
|
1121
|
-
return "4.1.
|
|
1121
|
+
return "4.1.3";
|
|
1122
1122
|
}
|
|
1123
1123
|
addEventListener(type, listener) {
|
|
1124
1124
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -3280,7 +3280,7 @@
|
|
|
3280
3280
|
}
|
|
3281
3281
|
|
|
3282
3282
|
async function loadBlendPlugin(engine) {
|
|
3283
|
-
engine.checkVersion("4.1.
|
|
3283
|
+
engine.checkVersion("4.1.3");
|
|
3284
3284
|
await engine.pluginManager.register(e => {
|
|
3285
3285
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
3286
3286
|
});
|
|
@@ -3317,7 +3317,7 @@
|
|
|
3317
3317
|
}
|
|
3318
3318
|
|
|
3319
3319
|
async function loadCircleShape(engine) {
|
|
3320
|
-
engine.checkVersion("4.1.
|
|
3320
|
+
engine.checkVersion("4.1.3");
|
|
3321
3321
|
await engine.pluginManager.register(e => {
|
|
3322
3322
|
e.pluginManager.addShape(["circle"], () => {
|
|
3323
3323
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -3365,7 +3365,7 @@
|
|
|
3365
3365
|
}
|
|
3366
3366
|
|
|
3367
3367
|
async function loadHexColorPlugin(engine) {
|
|
3368
|
-
engine.checkVersion("4.1.
|
|
3368
|
+
engine.checkVersion("4.1.3");
|
|
3369
3369
|
await engine.pluginManager.register(e => {
|
|
3370
3370
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
3371
3371
|
});
|
|
@@ -3418,7 +3418,7 @@
|
|
|
3418
3418
|
}
|
|
3419
3419
|
|
|
3420
3420
|
async function loadHslColorPlugin(engine) {
|
|
3421
|
-
engine.checkVersion("4.1.
|
|
3421
|
+
engine.checkVersion("4.1.3");
|
|
3422
3422
|
await engine.pluginManager.register(e => {
|
|
3423
3423
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3424
3424
|
});
|
|
@@ -3442,7 +3442,7 @@
|
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
3444
|
async function loadMovePlugin(engine) {
|
|
3445
|
-
engine.checkVersion("4.1.
|
|
3445
|
+
engine.checkVersion("4.1.3");
|
|
3446
3446
|
await engine.pluginManager.register(e => {
|
|
3447
3447
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3448
3448
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3549,7 +3549,7 @@
|
|
|
3549
3549
|
}
|
|
3550
3550
|
|
|
3551
3551
|
async function loadOpacityUpdater(engine) {
|
|
3552
|
-
engine.checkVersion("4.1.
|
|
3552
|
+
engine.checkVersion("4.1.3");
|
|
3553
3553
|
await engine.pluginManager.register(e => {
|
|
3554
3554
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3555
3555
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3896,7 +3896,7 @@
|
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
3898
|
async function loadOutModesUpdater(engine) {
|
|
3899
|
-
engine.checkVersion("4.1.
|
|
3899
|
+
engine.checkVersion("4.1.3");
|
|
3900
3900
|
await engine.pluginManager.register(e => {
|
|
3901
3901
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3902
3902
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3967,7 +3967,7 @@
|
|
|
3967
3967
|
}
|
|
3968
3968
|
|
|
3969
3969
|
async function loadPaintUpdater(engine) {
|
|
3970
|
-
engine.checkVersion("4.1.
|
|
3970
|
+
engine.checkVersion("4.1.3");
|
|
3971
3971
|
await engine.pluginManager.register(e => {
|
|
3972
3972
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3973
3973
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -4022,7 +4022,7 @@
|
|
|
4022
4022
|
}
|
|
4023
4023
|
|
|
4024
4024
|
async function loadRgbColorPlugin(engine) {
|
|
4025
|
-
engine.checkVersion("4.1.
|
|
4025
|
+
engine.checkVersion("4.1.3");
|
|
4026
4026
|
await engine.pluginManager.register(e => {
|
|
4027
4027
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
4028
4028
|
});
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
}
|
|
4122
4122
|
|
|
4123
4123
|
async function loadSizeUpdater(engine) {
|
|
4124
|
-
engine.checkVersion("4.1.
|
|
4124
|
+
engine.checkVersion("4.1.3");
|
|
4125
4125
|
await engine.pluginManager.register(e => {
|
|
4126
4126
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
4127
4127
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -4130,7 +4130,7 @@
|
|
|
4130
4130
|
}
|
|
4131
4131
|
|
|
4132
4132
|
async function loadBasic(engine) {
|
|
4133
|
-
engine.checkVersion("4.1.
|
|
4133
|
+
engine.checkVersion("4.1.3");
|
|
4134
4134
|
await engine.pluginManager.register(async (e) => {
|
|
4135
4135
|
await Promise.all([
|
|
4136
4136
|
loadBlendPlugin(e),
|
|
@@ -4502,7 +4502,7 @@
|
|
|
4502
4502
|
}
|
|
4503
4503
|
|
|
4504
4504
|
async function loadDestroyUpdater(engine) {
|
|
4505
|
-
engine.checkVersion("4.1.
|
|
4505
|
+
engine.checkVersion("4.1.3");
|
|
4506
4506
|
await engine.pluginManager.register(e => {
|
|
4507
4507
|
e.pluginManager.addParticleUpdater("destroy", container => {
|
|
4508
4508
|
return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
|
|
@@ -4795,7 +4795,7 @@
|
|
|
4795
4795
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
4796
4796
|
|
|
4797
4797
|
async function loadEmittersPluginSimple(engine) {
|
|
4798
|
-
engine.checkVersion("4.1.
|
|
4798
|
+
engine.checkVersion("4.1.3");
|
|
4799
4799
|
await engine.pluginManager.register(async (e) => {
|
|
4800
4800
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
4801
4801
|
await addEmittersShapesManager(e);
|
|
@@ -4883,7 +4883,7 @@
|
|
|
4883
4883
|
}
|
|
4884
4884
|
|
|
4885
4885
|
async function loadEmittersShapeSquare(engine) {
|
|
4886
|
-
engine.checkVersion("4.1.
|
|
4886
|
+
engine.checkVersion("4.1.3");
|
|
4887
4887
|
await engine.pluginManager.register((e) => {
|
|
4888
4888
|
ensureEmittersPluginLoaded(e);
|
|
4889
4889
|
e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
|
|
@@ -5049,7 +5049,7 @@
|
|
|
5049
5049
|
}
|
|
5050
5050
|
|
|
5051
5051
|
async function loadLifeUpdater(engine) {
|
|
5052
|
-
engine.checkVersion("4.1.
|
|
5052
|
+
engine.checkVersion("4.1.3");
|
|
5053
5053
|
await engine.pluginManager.register(e => {
|
|
5054
5054
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
5055
5055
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -5075,7 +5075,7 @@
|
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
5077
5077
|
async function loadLineShape(engine) {
|
|
5078
|
-
engine.checkVersion("4.1.
|
|
5078
|
+
engine.checkVersion("4.1.3");
|
|
5079
5079
|
await engine.pluginManager.register(e => {
|
|
5080
5080
|
e.pluginManager.addShape(["line"], () => Promise.resolve(new LineDrawer()));
|
|
5081
5081
|
});
|
|
@@ -5207,7 +5207,7 @@
|
|
|
5207
5207
|
}
|
|
5208
5208
|
|
|
5209
5209
|
async function loadRotateUpdater(engine) {
|
|
5210
|
-
engine.checkVersion("4.1.
|
|
5210
|
+
engine.checkVersion("4.1.3");
|
|
5211
5211
|
await engine.pluginManager.register(e => {
|
|
5212
5212
|
e.pluginManager.addParticleUpdater("rotate", container => {
|
|
5213
5213
|
return Promise.resolve(new RotateUpdater(container));
|
|
@@ -5588,7 +5588,7 @@
|
|
|
5588
5588
|
}
|
|
5589
5589
|
|
|
5590
5590
|
async function loadSoundsPlugin(engine) {
|
|
5591
|
-
engine.checkVersion("4.1.
|
|
5591
|
+
engine.checkVersion("4.1.3");
|
|
5592
5592
|
await engine.pluginManager.register(e => {
|
|
5593
5593
|
e.pluginManager.addPlugin(new SoundsPlugin(e));
|
|
5594
5594
|
});
|
|
@@ -5596,7 +5596,7 @@
|
|
|
5596
5596
|
|
|
5597
5597
|
let initPromise = null;
|
|
5598
5598
|
async function doInitPlugins(engine) {
|
|
5599
|
-
engine.checkVersion("4.1.
|
|
5599
|
+
engine.checkVersion("4.1.3");
|
|
5600
5600
|
await engine.pluginManager.register(async (e) => {
|
|
5601
5601
|
const loadEmittersForFireworks = async (e) => {
|
|
5602
5602
|
await loadEmittersPluginSimple(e);
|
|
@@ -5643,7 +5643,7 @@
|
|
|
5643
5643
|
fireworks.init = async () => {
|
|
5644
5644
|
await initPlugins(tsParticles);
|
|
5645
5645
|
};
|
|
5646
|
-
fireworks.version = "4.1.
|
|
5646
|
+
fireworks.version = "4.1.3";
|
|
5647
5647
|
globalThis.fireworks = fireworks;
|
|
5648
5648
|
|
|
5649
5649
|
const globalObject = globalThis;
|
|
@@ -6566,19 +6566,25 @@
|
|
|
6566
6566
|
this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
|
|
6567
6567
|
const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
|
|
6568
6568
|
if (overrideOptions) {
|
|
6569
|
-
if (overrideOptions.effect
|
|
6570
|
-
const overrideEffectType = overrideOptions.effect.type
|
|
6571
|
-
if (effect) {
|
|
6572
|
-
|
|
6573
|
-
|
|
6569
|
+
if (overrideOptions.effect) {
|
|
6570
|
+
const overrideEffectType = overrideOptions.effect.type;
|
|
6571
|
+
if (overrideEffectType && overrideEffectType !== this.effect) {
|
|
6572
|
+
const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
|
|
6573
|
+
if (effect) {
|
|
6574
|
+
this.effect = effect;
|
|
6575
|
+
}
|
|
6574
6576
|
}
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6577
|
+
effectOptions.load(overrideOptions.effect);
|
|
6578
|
+
}
|
|
6579
|
+
if (overrideOptions.shape) {
|
|
6580
|
+
const overrideShapeType = overrideOptions.shape.type;
|
|
6581
|
+
if (overrideShapeType && overrideShapeType !== this.shape) {
|
|
6582
|
+
const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
|
|
6583
|
+
if (shape) {
|
|
6584
|
+
this.shape = shape;
|
|
6585
|
+
}
|
|
6581
6586
|
}
|
|
6587
|
+
shapeOptions.load(overrideOptions.shape);
|
|
6582
6588
|
}
|
|
6583
6589
|
}
|
|
6584
6590
|
if (this.effect === randomColorValue) {
|