@tsparticles/preset-triangles 4.0.0-beta.17 → 4.0.1
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.
|
|
2
|
+
/* Preset v4.0.1 */
|
|
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) :
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
return this._domArray;
|
|
1006
1006
|
}
|
|
1007
1007
|
get version() {
|
|
1008
|
-
return "4.0.
|
|
1008
|
+
return "4.0.1";
|
|
1009
1009
|
}
|
|
1010
1010
|
addEventListener(type, listener) {
|
|
1011
1011
|
this._eventDispatcher.addEventListener(type, listener);
|
|
@@ -2920,7 +2920,7 @@
|
|
|
2920
2920
|
}
|
|
2921
2921
|
|
|
2922
2922
|
async function loadCircleShape(engine) {
|
|
2923
|
-
engine.checkVersion("4.0.
|
|
2923
|
+
engine.checkVersion("4.0.1");
|
|
2924
2924
|
await engine.pluginManager.register(e => {
|
|
2925
2925
|
e.pluginManager.addShape(["circle"], () => {
|
|
2926
2926
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2968,7 +2968,7 @@
|
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
2970
|
async function loadHexColorPlugin(engine) {
|
|
2971
|
-
engine.checkVersion("4.0.
|
|
2971
|
+
engine.checkVersion("4.0.1");
|
|
2972
2972
|
await engine.pluginManager.register(e => {
|
|
2973
2973
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2974
2974
|
});
|
|
@@ -3021,7 +3021,7 @@
|
|
|
3021
3021
|
}
|
|
3022
3022
|
|
|
3023
3023
|
async function loadHslColorPlugin(engine) {
|
|
3024
|
-
engine.checkVersion("4.0.
|
|
3024
|
+
engine.checkVersion("4.0.1");
|
|
3025
3025
|
await engine.pluginManager.register(e => {
|
|
3026
3026
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3027
3027
|
});
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
}
|
|
3046
3046
|
|
|
3047
3047
|
async function loadMovePlugin(engine) {
|
|
3048
|
-
engine.checkVersion("4.0.
|
|
3048
|
+
engine.checkVersion("4.0.1");
|
|
3049
3049
|
await engine.pluginManager.register(e => {
|
|
3050
3050
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3051
3051
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
|
|
3108
3108
|
async function loadOpacityUpdater(engine) {
|
|
3109
|
-
engine.checkVersion("4.0.
|
|
3109
|
+
engine.checkVersion("4.0.1");
|
|
3110
3110
|
await engine.pluginManager.register(e => {
|
|
3111
3111
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3112
3112
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3458,7 +3458,7 @@
|
|
|
3458
3458
|
}
|
|
3459
3459
|
|
|
3460
3460
|
async function loadOutModesUpdater(engine) {
|
|
3461
|
-
engine.checkVersion("4.0.
|
|
3461
|
+
engine.checkVersion("4.0.1");
|
|
3462
3462
|
await engine.pluginManager.register(e => {
|
|
3463
3463
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3464
3464
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3529,7 +3529,7 @@
|
|
|
3529
3529
|
}
|
|
3530
3530
|
|
|
3531
3531
|
async function loadPaintUpdater(engine) {
|
|
3532
|
-
engine.checkVersion("4.0.
|
|
3532
|
+
engine.checkVersion("4.0.1");
|
|
3533
3533
|
await engine.pluginManager.register(e => {
|
|
3534
3534
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3535
3535
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3584,7 +3584,7 @@
|
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
3586
|
async function loadRgbColorPlugin(engine) {
|
|
3587
|
-
engine.checkVersion("4.0.
|
|
3587
|
+
engine.checkVersion("4.0.1");
|
|
3588
3588
|
await engine.pluginManager.register(e => {
|
|
3589
3589
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3590
3590
|
});
|
|
@@ -3627,7 +3627,7 @@
|
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
3629
|
async function loadSizeUpdater(engine) {
|
|
3630
|
-
engine.checkVersion("4.0.
|
|
3630
|
+
engine.checkVersion("4.0.1");
|
|
3631
3631
|
await engine.pluginManager.register(e => {
|
|
3632
3632
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3633
3633
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3636,7 +3636,7 @@
|
|
|
3636
3636
|
}
|
|
3637
3637
|
|
|
3638
3638
|
async function loadBasic(engine) {
|
|
3639
|
-
engine.checkVersion("4.0.
|
|
3639
|
+
engine.checkVersion("4.0.1");
|
|
3640
3640
|
await engine.pluginManager.register(async (e) => {
|
|
3641
3641
|
await Promise.all([
|
|
3642
3642
|
loadHexColorPlugin(e),
|
|
@@ -3873,7 +3873,7 @@
|
|
|
3873
3873
|
const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
|
|
3874
3874
|
|
|
3875
3875
|
async function loadInteractivityPlugin(engine) {
|
|
3876
|
-
engine.checkVersion("4.0.
|
|
3876
|
+
engine.checkVersion("4.0.1");
|
|
3877
3877
|
await engine.pluginManager.register(e => {
|
|
3878
3878
|
const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
|
|
3879
3879
|
interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
|
|
@@ -4199,7 +4199,7 @@
|
|
|
4199
4199
|
}
|
|
4200
4200
|
|
|
4201
4201
|
async function loadParticlesLinksInteraction(engine) {
|
|
4202
|
-
engine.checkVersion("4.0.
|
|
4202
|
+
engine.checkVersion("4.0.1");
|
|
4203
4203
|
await engine.pluginManager.register((e) => {
|
|
4204
4204
|
const pluginManager = e.pluginManager;
|
|
4205
4205
|
ensureInteractivityPluginLoaded(e);
|