@tsparticles/preset-hyperspace 4.1.0 → 4.1.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.
- package/README.md +1 -1
- package/browser/bundle.js +3 -2
- package/cjs/bundle.js +3 -2
- package/esm/bundle.js +3 -2
- package/package.json +7 -7
- package/report.html +1 -1
- package/tsparticles.preset.hyperspace.bundle.js +18 -18
- package/tsparticles.preset.hyperspace.bundle.min.js +1 -1
- package/tsparticles.preset.hyperspace.js +1 -1
- package/types/bundle.d.ts +2 -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
|
-
/* Preset v4.1.
|
|
2
|
+
/* Preset v4.1.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) :
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
return this.#domArray;
|
|
1013
1013
|
}
|
|
1014
1014
|
get version() {
|
|
1015
|
-
return "4.1.
|
|
1015
|
+
return "4.1.2";
|
|
1016
1016
|
}
|
|
1017
1017
|
addEventListener(type, listener) {
|
|
1018
1018
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
|
|
2807
2807
|
async function loadBlendPlugin(engine) {
|
|
2808
|
-
engine.checkVersion("4.1.
|
|
2808
|
+
engine.checkVersion("4.1.2");
|
|
2809
2809
|
await engine.pluginManager.register(e => {
|
|
2810
2810
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2811
2811
|
});
|
|
@@ -2842,7 +2842,7 @@
|
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
2844
2844
|
async function loadCircleShape(engine) {
|
|
2845
|
-
engine.checkVersion("4.1.
|
|
2845
|
+
engine.checkVersion("4.1.2");
|
|
2846
2846
|
await engine.pluginManager.register(e => {
|
|
2847
2847
|
e.pluginManager.addShape(["circle"], () => {
|
|
2848
2848
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2890,7 +2890,7 @@
|
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
async function loadHexColorPlugin(engine) {
|
|
2893
|
-
engine.checkVersion("4.1.
|
|
2893
|
+
engine.checkVersion("4.1.2");
|
|
2894
2894
|
await engine.pluginManager.register(e => {
|
|
2895
2895
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2896
2896
|
});
|
|
@@ -2943,7 +2943,7 @@
|
|
|
2943
2943
|
}
|
|
2944
2944
|
|
|
2945
2945
|
async function loadHslColorPlugin(engine) {
|
|
2946
|
-
engine.checkVersion("4.1.
|
|
2946
|
+
engine.checkVersion("4.1.2");
|
|
2947
2947
|
await engine.pluginManager.register(e => {
|
|
2948
2948
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2949
2949
|
});
|
|
@@ -2967,7 +2967,7 @@
|
|
|
2967
2967
|
}
|
|
2968
2968
|
|
|
2969
2969
|
async function loadMovePlugin(engine) {
|
|
2970
|
-
engine.checkVersion("4.1.
|
|
2970
|
+
engine.checkVersion("4.1.2");
|
|
2971
2971
|
await engine.pluginManager.register(e => {
|
|
2972
2972
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2973
2973
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
}
|
|
3075
3075
|
|
|
3076
3076
|
async function loadOpacityUpdater(engine) {
|
|
3077
|
-
engine.checkVersion("4.1.
|
|
3077
|
+
engine.checkVersion("4.1.2");
|
|
3078
3078
|
await engine.pluginManager.register(e => {
|
|
3079
3079
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3080
3080
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3421,7 +3421,7 @@
|
|
|
3421
3421
|
}
|
|
3422
3422
|
|
|
3423
3423
|
async function loadOutModesUpdater(engine) {
|
|
3424
|
-
engine.checkVersion("4.1.
|
|
3424
|
+
engine.checkVersion("4.1.2");
|
|
3425
3425
|
await engine.pluginManager.register(e => {
|
|
3426
3426
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3427
3427
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3492,7 +3492,7 @@
|
|
|
3492
3492
|
}
|
|
3493
3493
|
|
|
3494
3494
|
async function loadPaintUpdater(engine) {
|
|
3495
|
-
engine.checkVersion("4.1.
|
|
3495
|
+
engine.checkVersion("4.1.2");
|
|
3496
3496
|
await engine.pluginManager.register(e => {
|
|
3497
3497
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3498
3498
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3547,7 +3547,7 @@
|
|
|
3547
3547
|
}
|
|
3548
3548
|
|
|
3549
3549
|
async function loadRgbColorPlugin(engine) {
|
|
3550
|
-
engine.checkVersion("4.1.
|
|
3550
|
+
engine.checkVersion("4.1.2");
|
|
3551
3551
|
await engine.pluginManager.register(e => {
|
|
3552
3552
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3553
3553
|
});
|
|
@@ -3646,7 +3646,7 @@
|
|
|
3646
3646
|
}
|
|
3647
3647
|
|
|
3648
3648
|
async function loadSizeUpdater(engine) {
|
|
3649
|
-
engine.checkVersion("4.1.
|
|
3649
|
+
engine.checkVersion("4.1.2");
|
|
3650
3650
|
await engine.pluginManager.register(e => {
|
|
3651
3651
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3652
3652
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3655,7 +3655,7 @@
|
|
|
3655
3655
|
}
|
|
3656
3656
|
|
|
3657
3657
|
async function loadBasic(engine) {
|
|
3658
|
-
engine.checkVersion("4.1.
|
|
3658
|
+
engine.checkVersion("4.1.2");
|
|
3659
3659
|
await engine.pluginManager.register(async (e) => {
|
|
3660
3660
|
await Promise.all([
|
|
3661
3661
|
loadBlendPlugin(e),
|
|
@@ -3957,7 +3957,7 @@
|
|
|
3957
3957
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3958
3958
|
|
|
3959
3959
|
async function loadEmittersPluginSimple(engine) {
|
|
3960
|
-
engine.checkVersion("4.1.
|
|
3960
|
+
engine.checkVersion("4.1.2");
|
|
3961
3961
|
await engine.pluginManager.register(async (e) => {
|
|
3962
3962
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3963
3963
|
await addEmittersShapesManager(e);
|
|
@@ -4045,7 +4045,7 @@
|
|
|
4045
4045
|
}
|
|
4046
4046
|
|
|
4047
4047
|
async function loadEmittersShapeSquare(engine) {
|
|
4048
|
-
engine.checkVersion("4.1.
|
|
4048
|
+
engine.checkVersion("4.1.2");
|
|
4049
4049
|
await engine.pluginManager.register((e) => {
|
|
4050
4050
|
ensureEmittersPluginLoaded(e);
|
|
4051
4051
|
e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
|
|
@@ -4211,7 +4211,7 @@
|
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
4213
|
async function loadLifeUpdater(engine) {
|
|
4214
|
-
engine.checkVersion("4.1.
|
|
4214
|
+
engine.checkVersion("4.1.2");
|
|
4215
4215
|
await engine.pluginManager.register(e => {
|
|
4216
4216
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
4217
4217
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -4286,7 +4286,7 @@
|
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
4288
|
async function loadTrailPlugin(engine) {
|
|
4289
|
-
engine.checkVersion("4.1.
|
|
4289
|
+
engine.checkVersion("4.1.2");
|
|
4290
4290
|
await engine.pluginManager.register(e => {
|
|
4291
4291
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
4292
4292
|
});
|
|
@@ -4372,8 +4372,8 @@
|
|
|
4372
4372
|
}
|
|
4373
4373
|
|
|
4374
4374
|
const globalObject = globalThis;
|
|
4375
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4376
4375
|
globalObject.loadHyperspacePreset = loadHyperspacePreset;
|
|
4376
|
+
globalObject.tsParticles = tsParticles;
|
|
4377
4377
|
|
|
4378
4378
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4379
4379
|
function setTransformValue(factor, newFactor, key) {
|