@tsparticles/preset-triangles 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 +5 -5
- package/report.html +1 -1
- package/tsparticles.preset.triangles.bundle.js +16 -16
- package/tsparticles.preset.triangles.bundle.min.js +1 -1
- package/tsparticles.preset.triangles.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) :
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
return this.#domArray;
|
|
1006
1006
|
}
|
|
1007
1007
|
get version() {
|
|
1008
|
-
return "4.1.
|
|
1008
|
+
return "4.1.2";
|
|
1009
1009
|
}
|
|
1010
1010
|
addEventListener(type, listener) {
|
|
1011
1011
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2855,7 +2855,7 @@
|
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
2857
|
async function loadBlendPlugin(engine) {
|
|
2858
|
-
engine.checkVersion("4.1.
|
|
2858
|
+
engine.checkVersion("4.1.2");
|
|
2859
2859
|
await engine.pluginManager.register(e => {
|
|
2860
2860
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2861
2861
|
});
|
|
@@ -2892,7 +2892,7 @@
|
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
2894
|
async function loadCircleShape(engine) {
|
|
2895
|
-
engine.checkVersion("4.1.
|
|
2895
|
+
engine.checkVersion("4.1.2");
|
|
2896
2896
|
await engine.pluginManager.register(e => {
|
|
2897
2897
|
e.pluginManager.addShape(["circle"], () => {
|
|
2898
2898
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2940,7 +2940,7 @@
|
|
|
2940
2940
|
}
|
|
2941
2941
|
|
|
2942
2942
|
async function loadHexColorPlugin(engine) {
|
|
2943
|
-
engine.checkVersion("4.1.
|
|
2943
|
+
engine.checkVersion("4.1.2");
|
|
2944
2944
|
await engine.pluginManager.register(e => {
|
|
2945
2945
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2946
2946
|
});
|
|
@@ -2993,7 +2993,7 @@
|
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
2995
|
async function loadHslColorPlugin(engine) {
|
|
2996
|
-
engine.checkVersion("4.1.
|
|
2996
|
+
engine.checkVersion("4.1.2");
|
|
2997
2997
|
await engine.pluginManager.register(e => {
|
|
2998
2998
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2999
2999
|
});
|
|
@@ -3017,7 +3017,7 @@
|
|
|
3017
3017
|
}
|
|
3018
3018
|
|
|
3019
3019
|
async function loadMovePlugin(engine) {
|
|
3020
|
-
engine.checkVersion("4.1.
|
|
3020
|
+
engine.checkVersion("4.1.2");
|
|
3021
3021
|
await engine.pluginManager.register(e => {
|
|
3022
3022
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3023
3023
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3124,7 +3124,7 @@
|
|
|
3124
3124
|
}
|
|
3125
3125
|
|
|
3126
3126
|
async function loadOpacityUpdater(engine) {
|
|
3127
|
-
engine.checkVersion("4.1.
|
|
3127
|
+
engine.checkVersion("4.1.2");
|
|
3128
3128
|
await engine.pluginManager.register(e => {
|
|
3129
3129
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3130
3130
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3471,7 +3471,7 @@
|
|
|
3471
3471
|
}
|
|
3472
3472
|
|
|
3473
3473
|
async function loadOutModesUpdater(engine) {
|
|
3474
|
-
engine.checkVersion("4.1.
|
|
3474
|
+
engine.checkVersion("4.1.2");
|
|
3475
3475
|
await engine.pluginManager.register(e => {
|
|
3476
3476
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3477
3477
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3542,7 +3542,7 @@
|
|
|
3542
3542
|
}
|
|
3543
3543
|
|
|
3544
3544
|
async function loadPaintUpdater(engine) {
|
|
3545
|
-
engine.checkVersion("4.1.
|
|
3545
|
+
engine.checkVersion("4.1.2");
|
|
3546
3546
|
await engine.pluginManager.register(e => {
|
|
3547
3547
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3548
3548
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3597,7 +3597,7 @@
|
|
|
3597
3597
|
}
|
|
3598
3598
|
|
|
3599
3599
|
async function loadRgbColorPlugin(engine) {
|
|
3600
|
-
engine.checkVersion("4.1.
|
|
3600
|
+
engine.checkVersion("4.1.2");
|
|
3601
3601
|
await engine.pluginManager.register(e => {
|
|
3602
3602
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3603
3603
|
});
|
|
@@ -3696,7 +3696,7 @@
|
|
|
3696
3696
|
}
|
|
3697
3697
|
|
|
3698
3698
|
async function loadSizeUpdater(engine) {
|
|
3699
|
-
engine.checkVersion("4.1.
|
|
3699
|
+
engine.checkVersion("4.1.2");
|
|
3700
3700
|
await engine.pluginManager.register(e => {
|
|
3701
3701
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3702
3702
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3705,7 +3705,7 @@
|
|
|
3705
3705
|
}
|
|
3706
3706
|
|
|
3707
3707
|
async function loadBasic(engine) {
|
|
3708
|
-
engine.checkVersion("4.1.
|
|
3708
|
+
engine.checkVersion("4.1.2");
|
|
3709
3709
|
await engine.pluginManager.register(async (e) => {
|
|
3710
3710
|
await Promise.all([
|
|
3711
3711
|
loadBlendPlugin(e),
|
|
@@ -3943,7 +3943,7 @@
|
|
|
3943
3943
|
const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
|
|
3944
3944
|
|
|
3945
3945
|
async function loadInteractivityPlugin(engine) {
|
|
3946
|
-
engine.checkVersion("4.1.
|
|
3946
|
+
engine.checkVersion("4.1.2");
|
|
3947
3947
|
await engine.pluginManager.register(e => {
|
|
3948
3948
|
const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
|
|
3949
3949
|
interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
|
|
@@ -4269,7 +4269,7 @@
|
|
|
4269
4269
|
}
|
|
4270
4270
|
|
|
4271
4271
|
async function loadParticlesLinksInteraction(engine) {
|
|
4272
|
-
engine.checkVersion("4.1.
|
|
4272
|
+
engine.checkVersion("4.1.2");
|
|
4273
4273
|
await engine.pluginManager.register((e) => {
|
|
4274
4274
|
const pluginManager = e.pluginManager;
|
|
4275
4275
|
ensureInteractivityPluginLoaded(e);
|
|
@@ -4332,8 +4332,8 @@
|
|
|
4332
4332
|
}
|
|
4333
4333
|
|
|
4334
4334
|
const globalObject = globalThis;
|
|
4335
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4336
4335
|
globalObject.loadTrianglesPreset = loadTrianglesPreset;
|
|
4336
|
+
globalObject.tsParticles = tsParticles;
|
|
4337
4337
|
|
|
4338
4338
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4339
4339
|
function setTransformValue(factor, newFactor, key) {
|