@tsparticles/preset-squares 3.0.1 → 3.0.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 +20 -116
- package/package.json +7 -7
- package/report.html +2 -2
- package/tsparticles.preset.squares.bundle.js +127 -107
- package/tsparticles.preset.squares.bundle.min.js +1 -1
- package/tsparticles.preset.squares.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.squares.js +5 -5
- package/tsparticles.preset.squares.min.js.LICENSE.txt +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v3.0.
|
|
7
|
+
* v3.0.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -61,7 +61,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
61
61
|
tsParticles: () => (/* reexport */ tsParticles)
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
64
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js
|
|
65
65
|
const generatedAttribute = "generated";
|
|
66
66
|
const mouseDownEvent = "pointerdown";
|
|
67
67
|
const mouseUpEvent = "pointerup";
|
|
@@ -76,7 +76,7 @@ const resizeEvent = "resize";
|
|
|
76
76
|
const visibilityChangeEvent = "visibilitychange";
|
|
77
77
|
const errorPrefix = "tsParticles - Error";
|
|
78
78
|
|
|
79
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
79
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Vector3d.js
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
class Vector3d {
|
|
@@ -182,7 +182,7 @@ class Vector3d {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
185
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Vector.js
|
|
186
186
|
|
|
187
187
|
class Vector_Vector extends Vector3d {
|
|
188
188
|
constructor(xOrCoords, y) {
|
|
@@ -199,7 +199,7 @@ class Vector_Vector extends Vector3d {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
202
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
let _random = Math.random;
|
|
@@ -337,7 +337,7 @@ function parseAlpha(input) {
|
|
|
337
337
|
return input ? (input.endsWith("%") ? parseFloat(input) / 100 : parseFloat(input)) : 1;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
340
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/Utils.js
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
const _logger = {
|
|
@@ -683,7 +683,7 @@ function isArray(arg) {
|
|
|
683
683
|
return Array.isArray(arg);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
686
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js
|
|
687
687
|
|
|
688
688
|
|
|
689
689
|
const randomColorValue = "random", midColorValue = "mid", colorManagers = new Map();
|
|
@@ -943,7 +943,7 @@ function setColorAnimation(colorValue, colorAnimation, reduceFactor) {
|
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
946
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js
|
|
947
947
|
|
|
948
948
|
function drawLine(context, begin, end) {
|
|
949
949
|
context.beginPath();
|
|
@@ -1090,7 +1090,7 @@ function alterHsl(color, type, value) {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1093
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Canvas.js
|
|
1094
1094
|
|
|
1095
1095
|
|
|
1096
1096
|
|
|
@@ -1520,7 +1520,7 @@ class Canvas {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
|
|
1523
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1523
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js
|
|
1524
1524
|
|
|
1525
1525
|
|
|
1526
1526
|
function manageListener(element, event, handler, add, options) {
|
|
@@ -1841,7 +1841,7 @@ class EventListeners {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1844
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js
|
|
1845
1845
|
|
|
1846
1846
|
class OptionsColor {
|
|
1847
1847
|
constructor() {
|
|
@@ -1868,7 +1868,7 @@ class OptionsColor {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1871
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js
|
|
1872
1872
|
|
|
1873
1873
|
class Background {
|
|
1874
1874
|
constructor() {
|
|
@@ -1905,7 +1905,7 @@ class Background {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1908
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js
|
|
1909
1909
|
|
|
1910
1910
|
class BackgroundMaskCover {
|
|
1911
1911
|
constructor() {
|
|
@@ -1926,7 +1926,7 @@ class BackgroundMaskCover {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1929
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js
|
|
1930
1930
|
|
|
1931
1931
|
|
|
1932
1932
|
class BackgroundMask {
|
|
@@ -1952,7 +1952,7 @@ class BackgroundMask {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
|
|
1955
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1955
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js
|
|
1956
1956
|
class FullScreen {
|
|
1957
1957
|
constructor() {
|
|
1958
1958
|
this.enable = true;
|
|
@@ -1971,7 +1971,7 @@ class FullScreen {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1974
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js
|
|
1975
1975
|
class ClickEvent {
|
|
1976
1976
|
constructor() {
|
|
1977
1977
|
this.enable = false;
|
|
@@ -1990,7 +1990,7 @@ class ClickEvent {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
1993
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js
|
|
1994
1994
|
class DivEvent {
|
|
1995
1995
|
constructor() {
|
|
1996
1996
|
this.selectors = [];
|
|
@@ -2017,7 +2017,7 @@ class DivEvent {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
2019
|
|
|
2020
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2020
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js
|
|
2021
2021
|
class Parallax {
|
|
2022
2022
|
constructor() {
|
|
2023
2023
|
this.enable = false;
|
|
@@ -2040,7 +2040,7 @@ class Parallax {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
2043
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2043
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js
|
|
2044
2044
|
|
|
2045
2045
|
class HoverEvent {
|
|
2046
2046
|
constructor() {
|
|
@@ -2062,7 +2062,7 @@ class HoverEvent {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
2064
|
|
|
2065
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2065
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js
|
|
2066
2066
|
class ResizeEvent {
|
|
2067
2067
|
constructor() {
|
|
2068
2068
|
this.delay = 0.5;
|
|
@@ -2081,7 +2081,7 @@ class ResizeEvent {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2084
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js
|
|
2085
2085
|
|
|
2086
2086
|
|
|
2087
2087
|
|
|
@@ -2112,7 +2112,7 @@ class Events {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2115
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js
|
|
2116
2116
|
class Modes {
|
|
2117
2117
|
constructor(engine, container) {
|
|
2118
2118
|
this._engine = engine;
|
|
@@ -2138,7 +2138,7 @@ class Modes {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2141
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js
|
|
2142
2142
|
|
|
2143
2143
|
|
|
2144
2144
|
class Interactivity {
|
|
@@ -2160,7 +2160,7 @@ class Interactivity {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
2162
|
|
|
2163
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2163
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js
|
|
2164
2164
|
|
|
2165
2165
|
class ManualParticle {
|
|
2166
2166
|
load(data) {
|
|
@@ -2180,7 +2180,7 @@ class ManualParticle {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2183
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js
|
|
2184
2184
|
|
|
2185
2185
|
class Responsive {
|
|
2186
2186
|
constructor() {
|
|
@@ -2209,7 +2209,7 @@ class Responsive {
|
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
2211
|
|
|
2212
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2212
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js
|
|
2213
2213
|
class ThemeDefault {
|
|
2214
2214
|
constructor() {
|
|
2215
2215
|
this.auto = false;
|
|
@@ -2232,7 +2232,7 @@ class ThemeDefault {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
2234
|
|
|
2235
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2235
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js
|
|
2236
2236
|
|
|
2237
2237
|
|
|
2238
2238
|
class Theme {
|
|
@@ -2254,7 +2254,7 @@ class Theme {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2257
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js
|
|
2258
2258
|
|
|
2259
2259
|
class AnimationOptions {
|
|
2260
2260
|
constructor() {
|
|
@@ -2309,7 +2309,7 @@ class RangedAnimationOptions extends AnimationOptions {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
|
|
2312
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2312
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js
|
|
2313
2313
|
|
|
2314
2314
|
|
|
2315
2315
|
class ColorAnimation extends AnimationOptions {
|
|
@@ -2329,7 +2329,7 @@ class ColorAnimation extends AnimationOptions {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
2331
|
|
|
2332
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2332
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js
|
|
2333
2333
|
|
|
2334
2334
|
class HslAnimation {
|
|
2335
2335
|
constructor() {
|
|
@@ -2347,7 +2347,7 @@ class HslAnimation {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2350
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js
|
|
2351
2351
|
|
|
2352
2352
|
|
|
2353
2353
|
|
|
@@ -2386,7 +2386,7 @@ class AnimatableColor extends OptionsColor {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2389
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js
|
|
2390
2390
|
class CollisionsAbsorb {
|
|
2391
2391
|
constructor() {
|
|
2392
2392
|
this.speed = 2;
|
|
@@ -2401,7 +2401,7 @@ class CollisionsAbsorb {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
}
|
|
2403
2403
|
|
|
2404
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2404
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js
|
|
2405
2405
|
class CollisionsOverlap {
|
|
2406
2406
|
constructor() {
|
|
2407
2407
|
this.enable = true;
|
|
@@ -2420,7 +2420,7 @@ class CollisionsOverlap {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
2422
|
|
|
2423
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2423
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js
|
|
2424
2424
|
|
|
2425
2425
|
|
|
2426
2426
|
class ValueWithRandom {
|
|
@@ -2462,7 +2462,7 @@ class RangedAnimationValueWithRandom extends AnimationValueWithRandom {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2465
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js
|
|
2466
2466
|
|
|
2467
2467
|
class ParticlesBounceFactor extends ValueWithRandom {
|
|
2468
2468
|
constructor() {
|
|
@@ -2471,7 +2471,7 @@ class ParticlesBounceFactor extends ValueWithRandom {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
|
|
2474
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2474
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js
|
|
2475
2475
|
|
|
2476
2476
|
class ParticlesBounce {
|
|
2477
2477
|
constructor() {
|
|
@@ -2487,7 +2487,7 @@ class ParticlesBounce {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
}
|
|
2489
2489
|
|
|
2490
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2490
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js
|
|
2491
2491
|
|
|
2492
2492
|
|
|
2493
2493
|
|
|
@@ -2520,7 +2520,7 @@ class Collisions {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2523
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js
|
|
2524
2524
|
|
|
2525
2525
|
class Effect {
|
|
2526
2526
|
constructor() {
|
|
@@ -2554,7 +2554,7 @@ class Effect {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2557
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js
|
|
2558
2558
|
|
|
2559
2559
|
class MoveAngle {
|
|
2560
2560
|
constructor() {
|
|
@@ -2574,7 +2574,7 @@ class MoveAngle {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
2576
|
|
|
2577
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2577
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js
|
|
2578
2578
|
|
|
2579
2579
|
class MoveAttract {
|
|
2580
2580
|
constructor() {
|
|
@@ -2608,7 +2608,7 @@ class MoveAttract {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
|
|
2611
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2611
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js
|
|
2612
2612
|
class MoveCenter {
|
|
2613
2613
|
constructor() {
|
|
2614
2614
|
this.x = 50;
|
|
@@ -2635,7 +2635,7 @@ class MoveCenter {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2638
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js
|
|
2639
2639
|
|
|
2640
2640
|
class MoveGravity {
|
|
2641
2641
|
constructor() {
|
|
@@ -2663,7 +2663,7 @@ class MoveGravity {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
|
|
2666
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2666
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js
|
|
2667
2667
|
|
|
2668
2668
|
|
|
2669
2669
|
class MovePath {
|
|
@@ -2691,7 +2691,7 @@ class MovePath {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2694
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js
|
|
2695
2695
|
|
|
2696
2696
|
class MoveTrailFill {
|
|
2697
2697
|
load(data) {
|
|
@@ -2707,7 +2707,7 @@ class MoveTrailFill {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
|
|
2710
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2710
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js
|
|
2711
2711
|
|
|
2712
2712
|
class MoveTrail {
|
|
2713
2713
|
constructor() {
|
|
@@ -2731,7 +2731,7 @@ class MoveTrail {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
2734
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2734
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js
|
|
2735
2735
|
class OutModes {
|
|
2736
2736
|
constructor() {
|
|
2737
2737
|
this.default = "out";
|
|
@@ -2750,7 +2750,7 @@ class OutModes {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
2752
|
|
|
2753
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2753
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js
|
|
2754
2754
|
|
|
2755
2755
|
|
|
2756
2756
|
class Spin {
|
|
@@ -2774,7 +2774,7 @@ class Spin {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
2776
|
|
|
2777
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2777
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js
|
|
2778
2778
|
|
|
2779
2779
|
|
|
2780
2780
|
|
|
@@ -2870,7 +2870,7 @@ class Move {
|
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
2872
2872
|
|
|
2873
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2873
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js
|
|
2874
2874
|
|
|
2875
2875
|
class OpacityAnimation extends RangedAnimationOptions {
|
|
2876
2876
|
constructor() {
|
|
@@ -2889,7 +2889,7 @@ class OpacityAnimation extends RangedAnimationOptions {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2892
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js
|
|
2893
2893
|
|
|
2894
2894
|
|
|
2895
2895
|
class Opacity extends RangedAnimationValueWithRandom {
|
|
@@ -2910,7 +2910,7 @@ class Opacity extends RangedAnimationValueWithRandom {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2913
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js
|
|
2914
2914
|
class ParticlesDensity {
|
|
2915
2915
|
constructor() {
|
|
2916
2916
|
this.enable = false;
|
|
@@ -2935,7 +2935,7 @@ class ParticlesDensity {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
|
|
2938
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2938
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js
|
|
2939
2939
|
class ParticlesNumberLimit {
|
|
2940
2940
|
constructor() {
|
|
2941
2941
|
this.mode = "delete";
|
|
@@ -2954,7 +2954,7 @@ class ParticlesNumberLimit {
|
|
|
2954
2954
|
}
|
|
2955
2955
|
}
|
|
2956
2956
|
|
|
2957
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2957
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js
|
|
2958
2958
|
|
|
2959
2959
|
|
|
2960
2960
|
class ParticlesNumber {
|
|
@@ -2975,7 +2975,7 @@ class ParticlesNumber {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
}
|
|
2977
2977
|
|
|
2978
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
2978
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js
|
|
2979
2979
|
|
|
2980
2980
|
class Shadow {
|
|
2981
2981
|
constructor() {
|
|
@@ -3011,7 +3011,7 @@ class Shadow {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
}
|
|
3013
3013
|
|
|
3014
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3014
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js
|
|
3015
3015
|
|
|
3016
3016
|
class Shape {
|
|
3017
3017
|
constructor() {
|
|
@@ -3045,7 +3045,7 @@ class Shape {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
}
|
|
3047
3047
|
|
|
3048
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3048
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js
|
|
3049
3049
|
|
|
3050
3050
|
class SizeAnimation extends RangedAnimationOptions {
|
|
3051
3051
|
constructor() {
|
|
@@ -3064,7 +3064,7 @@ class SizeAnimation extends RangedAnimationOptions {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
|
|
3067
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3067
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js
|
|
3068
3068
|
|
|
3069
3069
|
|
|
3070
3070
|
class Size extends RangedAnimationValueWithRandom {
|
|
@@ -3085,7 +3085,7 @@ class Size extends RangedAnimationValueWithRandom {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
|
|
3088
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3088
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js
|
|
3089
3089
|
|
|
3090
3090
|
|
|
3091
3091
|
class Stroke {
|
|
@@ -3108,7 +3108,7 @@ class Stroke {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
}
|
|
3110
3110
|
|
|
3111
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3111
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js
|
|
3112
3112
|
|
|
3113
3113
|
class ZIndex extends ValueWithRandom {
|
|
3114
3114
|
constructor() {
|
|
@@ -3134,7 +3134,7 @@ class ZIndex extends ValueWithRandom {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
3136
|
|
|
3137
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3137
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js
|
|
3138
3138
|
|
|
3139
3139
|
|
|
3140
3140
|
|
|
@@ -3229,7 +3229,7 @@ class ParticlesOptions {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
}
|
|
3231
3231
|
|
|
3232
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3232
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js
|
|
3233
3233
|
|
|
3234
3234
|
function loadOptions(options, ...sourceOptionsArr) {
|
|
3235
3235
|
for (const sourceOptions of sourceOptionsArr) {
|
|
@@ -3242,7 +3242,7 @@ function loadParticlesOptions(engine, container, ...sourceOptionsArr) {
|
|
|
3242
3242
|
return options;
|
|
3243
3243
|
}
|
|
3244
3244
|
|
|
3245
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3245
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js
|
|
3246
3246
|
|
|
3247
3247
|
|
|
3248
3248
|
|
|
@@ -3401,7 +3401,7 @@ class Options {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
3403
|
|
|
3404
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3404
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js
|
|
3405
3405
|
class InteractionManager {
|
|
3406
3406
|
constructor(engine, container) {
|
|
3407
3407
|
this.container = container;
|
|
@@ -3453,7 +3453,7 @@ class InteractionManager {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
|
|
3456
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3456
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Particle.js
|
|
3457
3457
|
|
|
3458
3458
|
|
|
3459
3459
|
|
|
@@ -3624,6 +3624,12 @@ class Particle {
|
|
|
3624
3624
|
updater.particleDestroyed && updater.particleDestroyed(this, override);
|
|
3625
3625
|
}
|
|
3626
3626
|
pathGenerator && pathGenerator.reset(this);
|
|
3627
|
+
this._engine.dispatchEvent("particleDestroyed", {
|
|
3628
|
+
container: this.container,
|
|
3629
|
+
data: {
|
|
3630
|
+
particle: this,
|
|
3631
|
+
},
|
|
3632
|
+
});
|
|
3627
3633
|
}
|
|
3628
3634
|
draw(delta) {
|
|
3629
3635
|
const container = this.container, canvas = container.canvas;
|
|
@@ -3794,7 +3800,7 @@ class Particle {
|
|
|
3794
3800
|
}
|
|
3795
3801
|
}
|
|
3796
3802
|
|
|
3797
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3803
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js
|
|
3798
3804
|
class Point {
|
|
3799
3805
|
constructor(position, particle) {
|
|
3800
3806
|
this.position = position;
|
|
@@ -3802,7 +3808,7 @@ class Point {
|
|
|
3802
3808
|
}
|
|
3803
3809
|
}
|
|
3804
3810
|
|
|
3805
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3811
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Range.js
|
|
3806
3812
|
class Range {
|
|
3807
3813
|
constructor(x, y) {
|
|
3808
3814
|
this.position = {
|
|
@@ -3812,7 +3818,7 @@ class Range {
|
|
|
3812
3818
|
}
|
|
3813
3819
|
}
|
|
3814
3820
|
|
|
3815
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3821
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Rectangle.js
|
|
3816
3822
|
|
|
3817
3823
|
|
|
3818
3824
|
class Rectangle extends Range {
|
|
@@ -3836,7 +3842,7 @@ class Rectangle extends Range {
|
|
|
3836
3842
|
}
|
|
3837
3843
|
}
|
|
3838
3844
|
|
|
3839
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3845
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/Circle.js
|
|
3840
3846
|
|
|
3841
3847
|
|
|
3842
3848
|
|
|
@@ -3865,7 +3871,7 @@ class Circle extends Range {
|
|
|
3865
3871
|
}
|
|
3866
3872
|
}
|
|
3867
3873
|
|
|
3868
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3874
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js
|
|
3869
3875
|
|
|
3870
3876
|
|
|
3871
3877
|
|
|
@@ -3925,7 +3931,7 @@ class QuadTree {
|
|
|
3925
3931
|
}
|
|
3926
3932
|
}
|
|
3927
3933
|
|
|
3928
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
3934
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Particles.js
|
|
3929
3935
|
|
|
3930
3936
|
|
|
3931
3937
|
|
|
@@ -3940,13 +3946,18 @@ const qTreeRectangle = (canvasSize) => {
|
|
|
3940
3946
|
};
|
|
3941
3947
|
class Particles {
|
|
3942
3948
|
constructor(engine, container) {
|
|
3949
|
+
this._addToPool = (...particles) => {
|
|
3950
|
+
for (const particle of particles) {
|
|
3951
|
+
this._pool.push(particle);
|
|
3952
|
+
}
|
|
3953
|
+
};
|
|
3943
3954
|
this._applyDensity = (options, manualCount, group) => {
|
|
3944
3955
|
const numberOptions = options.number;
|
|
3945
3956
|
if (!options.number.density?.enable) {
|
|
3946
3957
|
if (group === undefined) {
|
|
3947
3958
|
this._limit = numberOptions.limit.value;
|
|
3948
3959
|
}
|
|
3949
|
-
else {
|
|
3960
|
+
else if (numberOptions.limit) {
|
|
3950
3961
|
this._groupLimits.set(group, numberOptions.limit.value);
|
|
3951
3962
|
}
|
|
3952
3963
|
return;
|
|
@@ -4010,17 +4021,17 @@ class Particles {
|
|
|
4010
4021
|
if (!particle || particle.group !== group) {
|
|
4011
4022
|
return false;
|
|
4012
4023
|
}
|
|
4013
|
-
particle.destroy(override);
|
|
4014
4024
|
const zIdx = this._zArray.indexOf(particle);
|
|
4015
4025
|
this._array.splice(index, 1);
|
|
4016
4026
|
this._zArray.splice(zIdx, 1);
|
|
4017
|
-
|
|
4027
|
+
particle.destroy(override);
|
|
4018
4028
|
this._engine.dispatchEvent("particleRemoved", {
|
|
4019
4029
|
container: this._container,
|
|
4020
4030
|
data: {
|
|
4021
4031
|
particle,
|
|
4022
4032
|
},
|
|
4023
4033
|
});
|
|
4034
|
+
this._addToPool(particle);
|
|
4024
4035
|
return true;
|
|
4025
4036
|
};
|
|
4026
4037
|
this._engine = engine;
|
|
@@ -4208,7 +4219,15 @@ class Particles {
|
|
|
4208
4219
|
const checkDelete = (p) => !particlesToDelete.has(p);
|
|
4209
4220
|
this._array = this.filter(checkDelete);
|
|
4210
4221
|
this._zArray = this._zArray.filter(checkDelete);
|
|
4211
|
-
|
|
4222
|
+
for (const particle of particlesToDelete) {
|
|
4223
|
+
this._engine.dispatchEvent("particleRemoved", {
|
|
4224
|
+
container: this._container,
|
|
4225
|
+
data: {
|
|
4226
|
+
particle,
|
|
4227
|
+
},
|
|
4228
|
+
});
|
|
4229
|
+
}
|
|
4230
|
+
this._addToPool(...particlesToDelete);
|
|
4212
4231
|
}
|
|
4213
4232
|
await this._interactionManager.externalInteract(delta);
|
|
4214
4233
|
for (const particle of this._array) {
|
|
@@ -4229,7 +4248,7 @@ class Particles {
|
|
|
4229
4248
|
}
|
|
4230
4249
|
}
|
|
4231
4250
|
|
|
4232
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
4251
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Retina.js
|
|
4233
4252
|
|
|
4234
4253
|
|
|
4235
4254
|
class Retina {
|
|
@@ -4264,7 +4283,7 @@ class Retina {
|
|
|
4264
4283
|
}
|
|
4265
4284
|
}
|
|
4266
4285
|
|
|
4267
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
4286
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Container.js
|
|
4268
4287
|
|
|
4269
4288
|
|
|
4270
4289
|
|
|
@@ -4701,7 +4720,7 @@ class Container {
|
|
|
4701
4720
|
}
|
|
4702
4721
|
}
|
|
4703
4722
|
|
|
4704
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
4723
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js
|
|
4705
4724
|
class EventDispatcher {
|
|
4706
4725
|
constructor() {
|
|
4707
4726
|
this._listeners = new Map();
|
|
@@ -4748,7 +4767,7 @@ class EventDispatcher {
|
|
|
4748
4767
|
}
|
|
4749
4768
|
}
|
|
4750
4769
|
|
|
4751
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
4770
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Core/Engine.js
|
|
4752
4771
|
|
|
4753
4772
|
|
|
4754
4773
|
|
|
@@ -4802,7 +4821,7 @@ class Engine {
|
|
|
4802
4821
|
return res;
|
|
4803
4822
|
}
|
|
4804
4823
|
get version() {
|
|
4805
|
-
return "3.0.
|
|
4824
|
+
return "3.0.3";
|
|
4806
4825
|
}
|
|
4807
4826
|
addConfig(config) {
|
|
4808
4827
|
const name = config.name ?? "default";
|
|
@@ -4911,7 +4930,7 @@ class Engine {
|
|
|
4911
4930
|
this._initialized = true;
|
|
4912
4931
|
}
|
|
4913
4932
|
async load(params) {
|
|
4914
|
-
const id = params.id ?? `tsparticles${Math.floor(getRandom() * 10000)}`, { index, url } = params, options = url ? await getDataFromUrl({ fallback: params.options, url, index }) : params.options;
|
|
4933
|
+
const id = params.id ?? params.element?.id ?? `tsparticles${Math.floor(getRandom() * 10000)}`, { index, url } = params, options = url ? await getDataFromUrl({ fallback: params.options, url, index }) : params.options;
|
|
4915
4934
|
let domContainer = params.element ?? document.getElementById(id);
|
|
4916
4935
|
if (!domContainer) {
|
|
4917
4936
|
domContainer = document.createElement("div");
|
|
@@ -4994,7 +5013,7 @@ class Engine {
|
|
|
4994
5013
|
}
|
|
4995
5014
|
}
|
|
4996
5015
|
|
|
4997
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
5016
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/HslColorManager.js
|
|
4998
5017
|
|
|
4999
5018
|
|
|
5000
5019
|
class HslColorManager {
|
|
@@ -5034,7 +5053,7 @@ class HslColorManager {
|
|
|
5034
5053
|
}
|
|
5035
5054
|
}
|
|
5036
5055
|
|
|
5037
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
5056
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/Utils/RgbColorManager.js
|
|
5038
5057
|
|
|
5039
5058
|
class RgbColorManager {
|
|
5040
5059
|
constructor() {
|
|
@@ -5073,7 +5092,7 @@ class RgbColorManager {
|
|
|
5073
5092
|
}
|
|
5074
5093
|
}
|
|
5075
5094
|
|
|
5076
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
5095
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/init.js
|
|
5077
5096
|
|
|
5078
5097
|
|
|
5079
5098
|
|
|
@@ -5087,7 +5106,7 @@ function init() {
|
|
|
5087
5106
|
return engine;
|
|
5088
5107
|
}
|
|
5089
5108
|
|
|
5090
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
5109
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/exports.js
|
|
5091
5110
|
|
|
5092
5111
|
|
|
5093
5112
|
|
|
@@ -5177,7 +5196,7 @@ function init() {
|
|
|
5177
5196
|
|
|
5178
5197
|
|
|
5179
5198
|
|
|
5180
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.
|
|
5199
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+engine@3.0.3/node_modules/@tsparticles/engine/browser/index.js
|
|
5181
5200
|
|
|
5182
5201
|
|
|
5183
5202
|
const tsParticles = init();
|
|
@@ -5188,7 +5207,7 @@ if (!isSsr()) {
|
|
|
5188
5207
|
|
|
5189
5208
|
|
|
5190
5209
|
|
|
5191
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5210
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterLife.js
|
|
5192
5211
|
|
|
5193
5212
|
class EmitterLife {
|
|
5194
5213
|
constructor() {
|
|
@@ -5213,7 +5232,7 @@ class EmitterLife {
|
|
|
5213
5232
|
}
|
|
5214
5233
|
}
|
|
5215
5234
|
|
|
5216
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5235
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterRate.js
|
|
5217
5236
|
|
|
5218
5237
|
class EmitterRate {
|
|
5219
5238
|
constructor() {
|
|
@@ -5233,7 +5252,7 @@ class EmitterRate {
|
|
|
5233
5252
|
}
|
|
5234
5253
|
}
|
|
5235
5254
|
|
|
5236
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5255
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShapeReplace.js
|
|
5237
5256
|
class EmitterShapeReplace {
|
|
5238
5257
|
constructor() {
|
|
5239
5258
|
this.color = false;
|
|
@@ -5252,7 +5271,7 @@ class EmitterShapeReplace {
|
|
|
5252
5271
|
}
|
|
5253
5272
|
}
|
|
5254
5273
|
|
|
5255
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5274
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterShape.js
|
|
5256
5275
|
|
|
5257
5276
|
|
|
5258
5277
|
class EmitterShape {
|
|
@@ -5275,7 +5294,7 @@ class EmitterShape {
|
|
|
5275
5294
|
}
|
|
5276
5295
|
}
|
|
5277
5296
|
|
|
5278
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5297
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/EmitterSize.js
|
|
5279
5298
|
class EmitterSize {
|
|
5280
5299
|
constructor() {
|
|
5281
5300
|
this.mode = "percent";
|
|
@@ -5298,7 +5317,7 @@ class EmitterSize {
|
|
|
5298
5317
|
}
|
|
5299
5318
|
}
|
|
5300
5319
|
|
|
5301
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5320
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Options/Classes/Emitter.js
|
|
5302
5321
|
|
|
5303
5322
|
|
|
5304
5323
|
|
|
@@ -5361,7 +5380,7 @@ class Emitter {
|
|
|
5361
5380
|
}
|
|
5362
5381
|
}
|
|
5363
5382
|
|
|
5364
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5383
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/EmitterInstance.js
|
|
5365
5384
|
|
|
5366
5385
|
|
|
5367
5386
|
|
|
@@ -5540,6 +5559,7 @@ class EmitterInstance {
|
|
|
5540
5559
|
}
|
|
5541
5560
|
if (this._lifeCount > 0 || this._immortal) {
|
|
5542
5561
|
this.position = this._calcPosition();
|
|
5562
|
+
this._shape?.resize(this.position, this.size);
|
|
5543
5563
|
this._spawnDelay =
|
|
5544
5564
|
(NumberUtils_getRangeValue(this.options.life.delay ?? 0) * 1000) / this.container.retina.reduceFactor;
|
|
5545
5565
|
}
|
|
@@ -5661,7 +5681,7 @@ class EmitterInstance {
|
|
|
5661
5681
|
}
|
|
5662
5682
|
}
|
|
5663
5683
|
|
|
5664
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5684
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/Emitters.js
|
|
5665
5685
|
|
|
5666
5686
|
|
|
5667
5687
|
|
|
@@ -5787,7 +5807,7 @@ class Emitters {
|
|
|
5787
5807
|
}
|
|
5788
5808
|
}
|
|
5789
5809
|
|
|
5790
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5810
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js
|
|
5791
5811
|
const shapeGeneratorss = new Map();
|
|
5792
5812
|
class ShapeManager {
|
|
5793
5813
|
constructor(engine) {
|
|
@@ -5806,7 +5826,7 @@ class ShapeManager {
|
|
|
5806
5826
|
}
|
|
5807
5827
|
}
|
|
5808
5828
|
|
|
5809
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.
|
|
5829
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-emitters@3.0.3/node_modules/@tsparticles/plugin-emitters/browser/index.js
|
|
5810
5830
|
|
|
5811
5831
|
|
|
5812
5832
|
|
|
@@ -5917,7 +5937,7 @@ async function loadEmittersPlugin(engine, refresh = true) {
|
|
|
5917
5937
|
|
|
5918
5938
|
|
|
5919
5939
|
|
|
5920
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.
|
|
5940
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.3/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js
|
|
5921
5941
|
|
|
5922
5942
|
class RotateAnimation {
|
|
5923
5943
|
constructor() {
|
|
@@ -5945,7 +5965,7 @@ class RotateAnimation {
|
|
|
5945
5965
|
}
|
|
5946
5966
|
}
|
|
5947
5967
|
|
|
5948
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.
|
|
5968
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.3/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js
|
|
5949
5969
|
|
|
5950
5970
|
|
|
5951
5971
|
class Rotate extends ValueWithRandom {
|
|
@@ -5971,7 +5991,7 @@ class Rotate extends ValueWithRandom {
|
|
|
5971
5991
|
}
|
|
5972
5992
|
}
|
|
5973
5993
|
|
|
5974
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.
|
|
5994
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.3/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js
|
|
5975
5995
|
|
|
5976
5996
|
|
|
5977
5997
|
function updateRotate(particle, delta) {
|
|
@@ -6065,13 +6085,13 @@ class RotateUpdater {
|
|
|
6065
6085
|
}
|
|
6066
6086
|
}
|
|
6067
6087
|
|
|
6068
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.
|
|
6088
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.0.3/node_modules/@tsparticles/updater-rotate/browser/index.js
|
|
6069
6089
|
|
|
6070
6090
|
async function loadRotateUpdater(engine, refresh = true) {
|
|
6071
6091
|
await engine.addParticleUpdater("rotate", (container) => new RotateUpdater(container), refresh);
|
|
6072
6092
|
}
|
|
6073
6093
|
|
|
6074
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.
|
|
6094
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.3/node_modules/@tsparticles/updater-size/browser/Utils.js
|
|
6075
6095
|
|
|
6076
6096
|
function checkDestroy(particle, value, minValue, maxValue) {
|
|
6077
6097
|
switch (particle.options.size.animation.destroy) {
|
|
@@ -6139,7 +6159,7 @@ function updateSize(particle, delta) {
|
|
|
6139
6159
|
}
|
|
6140
6160
|
}
|
|
6141
6161
|
|
|
6142
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.
|
|
6162
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.3/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js
|
|
6143
6163
|
|
|
6144
6164
|
|
|
6145
6165
|
class SizeUpdater {
|
|
@@ -6172,13 +6192,13 @@ class SizeUpdater {
|
|
|
6172
6192
|
}
|
|
6173
6193
|
}
|
|
6174
6194
|
|
|
6175
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.
|
|
6195
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-size@3.0.3/node_modules/@tsparticles/updater-size/browser/index.js
|
|
6176
6196
|
|
|
6177
6197
|
async function loadSizeUpdater(engine, refresh = true) {
|
|
6178
6198
|
await engine.addParticleUpdater("size", () => new SizeUpdater(), refresh);
|
|
6179
6199
|
}
|
|
6180
6200
|
|
|
6181
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+shape-square@3.0.
|
|
6201
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+shape-square@3.0.3/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js
|
|
6182
6202
|
const fixFactor = Math.sqrt(2);
|
|
6183
6203
|
class SquareDrawer {
|
|
6184
6204
|
draw(data) {
|
|
@@ -6190,13 +6210,13 @@ class SquareDrawer {
|
|
|
6190
6210
|
}
|
|
6191
6211
|
}
|
|
6192
6212
|
|
|
6193
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+shape-square@3.0.
|
|
6213
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+shape-square@3.0.3/node_modules/@tsparticles/shape-square/browser/index.js
|
|
6194
6214
|
|
|
6195
6215
|
async function loadSquareShape(engine, refresh = true) {
|
|
6196
6216
|
await engine.addShape(["edge", "square"], new SquareDrawer(), refresh);
|
|
6197
6217
|
}
|
|
6198
6218
|
|
|
6199
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.
|
|
6219
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.3/node_modules/@tsparticles/updater-stroke-color/browser/Utils.js
|
|
6200
6220
|
|
|
6201
6221
|
function updateColorValue(delta, colorValue, valueAnimation, max, decrease) {
|
|
6202
6222
|
if (!colorValue ||
|
|
@@ -6261,7 +6281,7 @@ function updateStrokeColor(particle, delta) {
|
|
|
6261
6281
|
}
|
|
6262
6282
|
}
|
|
6263
6283
|
|
|
6264
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.
|
|
6284
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.3/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js
|
|
6265
6285
|
|
|
6266
6286
|
|
|
6267
6287
|
class StrokeColorUpdater {
|
|
@@ -6296,7 +6316,7 @@ class StrokeColorUpdater {
|
|
|
6296
6316
|
}
|
|
6297
6317
|
}
|
|
6298
6318
|
|
|
6299
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.
|
|
6319
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-stroke-color@3.0.3/node_modules/@tsparticles/updater-stroke-color/browser/index.js
|
|
6300
6320
|
|
|
6301
6321
|
async function loadStrokeColorUpdater(engine, refresh = true) {
|
|
6302
6322
|
await engine.addParticleUpdater("strokeColor", (container) => new StrokeColorUpdater(container), refresh);
|