@tsparticles/preset-hyperspace 4.0.0-beta.17 → 4.0.0
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.0.0
|
|
2
|
+
/* Preset v4.0.0 */
|
|
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.0.0
|
|
1015
|
+
return "4.0.0";
|
|
1016
1016
|
}
|
|
1017
1017
|
addEventListener(type, listener) {
|
|
1018
1018
|
this._eventDispatcher.addEventListener(type, listener);
|
|
@@ -2870,7 +2870,7 @@
|
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
2872
|
async function loadCircleShape(engine) {
|
|
2873
|
-
engine.checkVersion("4.0.0
|
|
2873
|
+
engine.checkVersion("4.0.0");
|
|
2874
2874
|
await engine.pluginManager.register(e => {
|
|
2875
2875
|
e.pluginManager.addShape(["circle"], () => {
|
|
2876
2876
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2918,7 +2918,7 @@
|
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
2920
|
async function loadHexColorPlugin(engine) {
|
|
2921
|
-
engine.checkVersion("4.0.0
|
|
2921
|
+
engine.checkVersion("4.0.0");
|
|
2922
2922
|
await engine.pluginManager.register(e => {
|
|
2923
2923
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2924
2924
|
});
|
|
@@ -2971,7 +2971,7 @@
|
|
|
2971
2971
|
}
|
|
2972
2972
|
|
|
2973
2973
|
async function loadHslColorPlugin(engine) {
|
|
2974
|
-
engine.checkVersion("4.0.0
|
|
2974
|
+
engine.checkVersion("4.0.0");
|
|
2975
2975
|
await engine.pluginManager.register(e => {
|
|
2976
2976
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2977
2977
|
});
|
|
@@ -2995,7 +2995,7 @@
|
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
2997
|
async function loadMovePlugin(engine) {
|
|
2998
|
-
engine.checkVersion("4.0.0
|
|
2998
|
+
engine.checkVersion("4.0.0");
|
|
2999
2999
|
await engine.pluginManager.register(e => {
|
|
3000
3000
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3001
3001
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3056,7 +3056,7 @@
|
|
|
3056
3056
|
}
|
|
3057
3057
|
|
|
3058
3058
|
async function loadOpacityUpdater(engine) {
|
|
3059
|
-
engine.checkVersion("4.0.0
|
|
3059
|
+
engine.checkVersion("4.0.0");
|
|
3060
3060
|
await engine.pluginManager.register(e => {
|
|
3061
3061
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3062
3062
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3408,7 +3408,7 @@
|
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
3410
|
async function loadOutModesUpdater(engine) {
|
|
3411
|
-
engine.checkVersion("4.0.0
|
|
3411
|
+
engine.checkVersion("4.0.0");
|
|
3412
3412
|
await engine.pluginManager.register(e => {
|
|
3413
3413
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3414
3414
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3479,7 +3479,7 @@
|
|
|
3479
3479
|
}
|
|
3480
3480
|
|
|
3481
3481
|
async function loadPaintUpdater(engine) {
|
|
3482
|
-
engine.checkVersion("4.0.0
|
|
3482
|
+
engine.checkVersion("4.0.0");
|
|
3483
3483
|
await engine.pluginManager.register(e => {
|
|
3484
3484
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3485
3485
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3534,7 +3534,7 @@
|
|
|
3534
3534
|
}
|
|
3535
3535
|
|
|
3536
3536
|
async function loadRgbColorPlugin(engine) {
|
|
3537
|
-
engine.checkVersion("4.0.0
|
|
3537
|
+
engine.checkVersion("4.0.0");
|
|
3538
3538
|
await engine.pluginManager.register(e => {
|
|
3539
3539
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3540
3540
|
});
|
|
@@ -3577,7 +3577,7 @@
|
|
|
3577
3577
|
}
|
|
3578
3578
|
|
|
3579
3579
|
async function loadSizeUpdater(engine) {
|
|
3580
|
-
engine.checkVersion("4.0.0
|
|
3580
|
+
engine.checkVersion("4.0.0");
|
|
3581
3581
|
await engine.pluginManager.register(e => {
|
|
3582
3582
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3583
3583
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3586,7 +3586,7 @@
|
|
|
3586
3586
|
}
|
|
3587
3587
|
|
|
3588
3588
|
async function loadBasic(engine) {
|
|
3589
|
-
engine.checkVersion("4.0.0
|
|
3589
|
+
engine.checkVersion("4.0.0");
|
|
3590
3590
|
await engine.pluginManager.register(async (e) => {
|
|
3591
3591
|
await Promise.all([
|
|
3592
3592
|
loadHexColorPlugin(e),
|
|
@@ -3887,7 +3887,7 @@
|
|
|
3887
3887
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3888
3888
|
|
|
3889
3889
|
async function loadEmittersPluginSimple(engine) {
|
|
3890
|
-
engine.checkVersion("4.0.0
|
|
3890
|
+
engine.checkVersion("4.0.0");
|
|
3891
3891
|
await engine.pluginManager.register(async (e) => {
|
|
3892
3892
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3893
3893
|
await addEmittersShapesManager(e);
|
|
@@ -3975,7 +3975,7 @@
|
|
|
3975
3975
|
}
|
|
3976
3976
|
|
|
3977
3977
|
async function loadEmittersShapeSquare(engine) {
|
|
3978
|
-
engine.checkVersion("4.0.0
|
|
3978
|
+
engine.checkVersion("4.0.0");
|
|
3979
3979
|
await engine.pluginManager.register((e) => {
|
|
3980
3980
|
ensureEmittersPluginLoaded(e);
|
|
3981
3981
|
e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
|
|
@@ -4141,7 +4141,7 @@
|
|
|
4141
4141
|
}
|
|
4142
4142
|
|
|
4143
4143
|
async function loadLifeUpdater(engine) {
|
|
4144
|
-
engine.checkVersion("4.0.0
|
|
4144
|
+
engine.checkVersion("4.0.0");
|
|
4145
4145
|
await engine.pluginManager.register(e => {
|
|
4146
4146
|
e.pluginManager.addParticleUpdater("life", container => {
|
|
4147
4147
|
return Promise.resolve(new LifeUpdater(container));
|
|
@@ -4216,7 +4216,7 @@
|
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
4218
|
async function loadTrailPlugin(engine) {
|
|
4219
|
-
engine.checkVersion("4.0.0
|
|
4219
|
+
engine.checkVersion("4.0.0");
|
|
4220
4220
|
await engine.pluginManager.register(e => {
|
|
4221
4221
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
4222
4222
|
});
|