@tsparticles/slim 4.0.0-beta.9 → 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.
- package/README.md +4 -2
- package/browser/browser.js +5 -0
- package/browser/bundle.js +4 -0
- package/browser/index.js +50 -49
- package/browser/index.lazy.js +67 -0
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +50 -49
- package/cjs/index.lazy.js +67 -0
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +50 -49
- package/esm/index.lazy.js +67 -0
- package/package.json +36 -28
- package/report.html +4949 -94
- package/tsparticles.slim.bundle.js +11360 -957
- package/tsparticles.slim.bundle.min.js +1 -2
- package/tsparticles.slim.js +61 -402
- package/tsparticles.slim.min.js +1 -1
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/1241.min.js +0 -1
- package/1521.min.js +0 -1
- package/1523.min.js +0 -1
- package/1581.min.js +0 -1
- package/1680.min.js +0 -1
- package/1684.min.js +0 -1
- package/1807.min.js +0 -1
- package/1879.min.js +0 -1
- package/1924.min.js +0 -1
- package/2049.min.js +0 -1
- package/2066.min.js +0 -1
- package/2127.min.js +0 -1
- package/2344.min.js +0 -1
- package/2575.min.js +0 -1
- package/2602.min.js +0 -1
- package/2631.min.js +0 -1
- package/2760.min.js +0 -1
- package/3047.min.js +0 -1
- package/3073.min.js +0 -1
- package/3443.min.js +0 -1
- package/3544.min.js +0 -1
- package/374.min.js +0 -1
- package/4067.min.js +0 -1
- package/4068.min.js +0 -1
- package/4077.min.js +0 -1
- package/4086.min.js +0 -1
- package/4153.min.js +0 -1
- package/4186.min.js +0 -1
- package/4217.min.js +0 -1
- package/4291.min.js +0 -1
- package/4427.min.js +0 -1
- package/4519.min.js +0 -1
- package/4568.min.js +0 -1
- package/4582.min.js +0 -1
- package/4626.min.js +0 -1
- package/4862.min.js +0 -1
- package/4912.min.js +0 -1
- package/5048.min.js +0 -1
- package/5162.min.js +0 -1
- package/5294.min.js +0 -1
- package/5406.min.js +0 -1
- package/541.min.js +0 -1
- package/5757.min.js +0 -1
- package/5936.min.js +0 -1
- package/6055.min.js +0 -1
- package/6099.min.js +0 -1
- package/6171.min.js +0 -1
- package/6192.min.js +0 -1
- package/6379.min.js +0 -1
- package/6420.min.js +0 -1
- package/6466.min.js +0 -1
- package/648.min.js +0 -1
- package/6549.min.js +0 -1
- package/6704.min.js +0 -1
- package/6715.min.js +0 -1
- package/6972.min.js +0 -1
- package/6996.min.js +0 -1
- package/7162.min.js +0 -1
- package/7175.min.js +0 -1
- package/7213.min.js +0 -1
- package/7316.min.js +0 -1
- package/7757.min.js +0 -1
- package/7775.min.js +0 -1
- package/7792.min.js +0 -1
- package/805.min.js +0 -1
- package/8331.min.js +0 -1
- package/8386.min.js +0 -1
- package/8459.min.js +0 -1
- package/8523.min.js +0 -1
- package/8607.min.js +0 -1
- package/8656.min.js +0 -1
- package/8855.min.js +0 -1
- package/9007.min.js +0 -1
- package/9154.min.js +0 -1
- package/9407.min.js +0 -1
- package/9434.min.js +0 -1
- package/9618.min.js +0 -1
- package/9674.min.js +0 -1
- package/9835.min.js +0 -1
- package/9907.min.js +0 -1
- package/basic_dist_browser_index_js.js +0 -30
- package/engine_dist_browser_Core_Container_js.js +0 -100
- package/interactions_external_attract_dist_browser_Attractor_js.js +0 -140
- package/interactions_external_attract_dist_browser_index_js.js +0 -40
- package/interactions_external_bounce_dist_browser_Bouncer_js.js +0 -140
- package/interactions_external_bounce_dist_browser_index_js.js +0 -40
- package/interactions_external_bubble_dist_browser_Bubbler_js.js +0 -150
- package/interactions_external_bubble_dist_browser_index_js.js +0 -60
- package/interactions_external_connect_dist_browser_Connector_js.js +0 -160
- package/interactions_external_connect_dist_browser_index_js.js +0 -50
- package/interactions_external_grab_dist_browser_Grabber_js.js +0 -160
- package/interactions_external_grab_dist_browser_index_js.js +0 -50
- package/interactions_external_parallax_dist_browser_Parallaxer_js.js +0 -130
- package/interactions_external_parallax_dist_browser_index_js.js +0 -40
- package/interactions_external_pause_dist_browser_Pauser_js.js +0 -130
- package/interactions_external_pause_dist_browser_index_js.js +0 -30
- package/interactions_external_push_dist_browser_Pusher_js.js +0 -130
- package/interactions_external_push_dist_browser_index_js.js +0 -40
- package/interactions_external_remove_dist_browser_Remover_js.js +0 -130
- package/interactions_external_remove_dist_browser_index_js.js +0 -40
- package/interactions_external_repulse_dist_browser_Repulser_js.js +0 -130
- package/interactions_external_repulse_dist_browser_index_js.js +0 -60
- package/interactions_external_slow_dist_browser_Slower_js.js +0 -130
- package/interactions_external_slow_dist_browser_index_js.js +0 -40
- package/interactions_particles_attract_dist_browser_Attractor_js.js +0 -140
- package/interactions_particles_attract_dist_browser_index_js.js +0 -30
- package/interactions_particles_collisions_dist_browser_Collider_js.js +0 -210
- package/interactions_particles_collisions_dist_browser_OverlapPluginInstance_js.js +0 -30
- package/interactions_particles_collisions_dist_browser_OverlapPlugin_js.js +0 -30
- package/interactions_particles_collisions_dist_browser_index_js.js +0 -30
- package/interactions_particles_links_dist_browser_LinkInstance_js.js +0 -40
- package/interactions_particles_links_dist_browser_Linker_js.js +0 -140
- package/interactions_particles_links_dist_browser_LinksPlugin_js.js +0 -30
- package/interactions_particles_links_dist_browser_index_js.js +0 -60
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
- package/plugins_colors_hex_dist_browser_index_js.js +0 -30
- package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
- package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
- package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
- package/plugins_easings_quad_dist_browser_easingsFunctions_js.js +0 -30
- package/plugins_easings_quad_dist_browser_index_js.js +0 -30
- package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +0 -50
- package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +0 -70
- package/plugins_interactivity_dist_browser_index_js.js +0 -120
- package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
- package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
- package/plugins_move_dist_browser_index_js.js +0 -30
- package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
- package/shapes_circle_dist_browser_index_js.js +0 -30
- package/shapes_emoji_dist_browser_EmojiDrawer_js.js +0 -50
- package/shapes_emoji_dist_browser_index_js.js +0 -40
- package/shapes_image_dist_browser_GifUtils_Utils_js.js +0 -70
- package/shapes_image_dist_browser_ImageDrawer_js.js +0 -30
- package/shapes_image_dist_browser_ImagePreloaderInstance_js.js +0 -30
- package/shapes_image_dist_browser_ImagePreloader_js.js +0 -40
- package/shapes_image_dist_browser_index_js.js +0 -40
- package/shapes_line_dist_browser_LineDrawer_js.js +0 -40
- package/shapes_line_dist_browser_index_js.js +0 -30
- package/shapes_polygon_dist_browser_PolygonDrawer_js.js +0 -50
- package/shapes_polygon_dist_browser_TriangleDrawer_js.js +0 -50
- package/shapes_polygon_dist_browser_index_js.js +0 -30
- package/shapes_square_dist_browser_SquareDrawer_js.js +0 -40
- package/shapes_square_dist_browser_index_js.js +0 -30
- package/shapes_star_dist_browser_StarDrawer_js.js +0 -40
- package/shapes_star_dist_browser_index_js.js +0 -30
- package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +0 -30
- package/updaters_fillColor_dist_browser_index_js.js +0 -30
- package/updaters_life_dist_browser_LifeUpdater_js.js +0 -70
- package/updaters_life_dist_browser_index_js.js +0 -30
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
- package/updaters_opacity_dist_browser_index_js.js +0 -30
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
- package/updaters_outModes_dist_browser_index_js.js +0 -30
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
- package/updaters_rotate_dist_browser_index_js.js +0 -30
- package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
- package/updaters_size_dist_browser_index_js.js +0 -30
- package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +0 -30
- package/updaters_strokeColor_dist_browser_index_js.js +0 -30
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ a `@tsparticles/engine` instance.
|
|
|
15
15
|
- [@tsparticles/interaction-external-bounce](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/bounce)
|
|
16
16
|
- [@tsparticles/interaction-external-bubble](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/bubble)
|
|
17
17
|
- [@tsparticles/interaction-external-connect](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/connect)
|
|
18
|
+
- [@tsparticles/interaction-external-destroy](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/destroy)
|
|
18
19
|
- [@tsparticles/interaction-external-grab](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/grab)
|
|
19
20
|
- [@tsparticles/interaction-external-parallax](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/parallax)
|
|
20
21
|
- [@tsparticles/interaction-external-pause](https://github.com/tsparticles/tsparticles/tree/main/interactions/external/pause)
|
|
@@ -35,7 +36,7 @@ a `@tsparticles/engine` instance.
|
|
|
35
36
|
- [@tsparticles/shape-emoji](https://github.com/tsparticles/tsparticles/tree/main/shapes/emoji)
|
|
36
37
|
- [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)
|
|
37
38
|
- [@tsparticles/updater-rotate](https://github.com/tsparticles/tsparticles/tree/main/updaters/rotate)
|
|
38
|
-
- [@tsparticles/updater-
|
|
39
|
+
- [@tsparticles/updater-paint](https://github.com/tsparticles/tsparticles/tree/main/updaters/paint)
|
|
39
40
|
|
|
40
41
|
## Dependency Graph
|
|
41
42
|
|
|
@@ -56,6 +57,7 @@ subgraph i [Interactions]
|
|
|
56
57
|
ieb[tsparticles/interaction-external-bounce]
|
|
57
58
|
iebu[tsparticles/interaction-external-bubble]
|
|
58
59
|
iec[tsparticles/interaction-external-connect]
|
|
60
|
+
ied[tsparticles/interaction-external-destroy]
|
|
59
61
|
ieg[tsparticles/interaction-external-grab]
|
|
60
62
|
iepa[tsparticles/interaction-external-parallax]
|
|
61
63
|
iepau[tsparticles/interaction-external-pause]
|
|
@@ -85,7 +87,7 @@ end
|
|
|
85
87
|
subgraph u [Updaters]
|
|
86
88
|
ul[tsparticles/updater-life]
|
|
87
89
|
ur[tsparticles/updater-rotate]
|
|
88
|
-
|
|
90
|
+
up[tsparticles/updater-paint]
|
|
89
91
|
end
|
|
90
92
|
|
|
91
93
|
bs --> bb
|
package/browser/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadSlim } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadSlim } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadSlim = loadSlim;
|
package/browser/index.js
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
2
|
+
import { loadEasingQuadPlugin } from "@tsparticles/plugin-easing-quad";
|
|
3
|
+
import { loadEmojiShape } from "@tsparticles/shape-emoji";
|
|
4
|
+
import { loadExternalAttractInteraction } from "@tsparticles/interaction-external-attract";
|
|
5
|
+
import { loadExternalBounceInteraction } from "@tsparticles/interaction-external-bounce";
|
|
6
|
+
import { loadExternalBubbleInteraction } from "@tsparticles/interaction-external-bubble";
|
|
7
|
+
import { loadExternalConnectInteraction } from "@tsparticles/interaction-external-connect";
|
|
8
|
+
import { loadExternalDestroyInteraction } from "@tsparticles/interaction-external-destroy";
|
|
9
|
+
import { loadExternalGrabInteraction } from "@tsparticles/interaction-external-grab";
|
|
10
|
+
import { loadExternalParallaxInteraction } from "@tsparticles/interaction-external-parallax";
|
|
11
|
+
import { loadExternalPauseInteraction } from "@tsparticles/interaction-external-pause";
|
|
12
|
+
import { loadExternalPushInteraction } from "@tsparticles/interaction-external-push";
|
|
13
|
+
import { loadExternalRemoveInteraction } from "@tsparticles/interaction-external-remove";
|
|
14
|
+
import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
|
|
15
|
+
import { loadExternalSlowInteraction } from "@tsparticles/interaction-external-slow";
|
|
16
|
+
import { loadImageShape } from "@tsparticles/shape-image";
|
|
17
|
+
import { loadInteractivityPlugin } from "@tsparticles/plugin-interactivity";
|
|
18
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
19
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
20
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
21
|
+
import { loadParticlesAttractInteraction } from "@tsparticles/interaction-particles-attract";
|
|
22
|
+
import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-particles-collisions";
|
|
23
|
+
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
24
|
+
import { loadPolygonShape } from "@tsparticles/shape-polygon";
|
|
25
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
26
|
+
import { loadSquareShape } from "@tsparticles/shape-square";
|
|
27
|
+
import { loadStarShape } from "@tsparticles/shape-star";
|
|
1
28
|
export async function loadSlim(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
29
|
+
engine.checkVersion("4.0.0");
|
|
3
30
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import("@tsparticles/shape-line"),
|
|
25
|
-
import("@tsparticles/shape-polygon"),
|
|
26
|
-
import("@tsparticles/shape-square"),
|
|
27
|
-
import("@tsparticles/shape-star"),
|
|
28
|
-
import("@tsparticles/updater-life"),
|
|
29
|
-
import("@tsparticles/updater-rotate"),
|
|
30
|
-
import("@tsparticles/updater-stroke-color"),
|
|
31
|
-
]);
|
|
31
|
+
const loadInteractivityForSlim = async (e) => {
|
|
32
|
+
await loadInteractivityPlugin(e);
|
|
33
|
+
await Promise.all([
|
|
34
|
+
loadExternalParallaxInteraction(e),
|
|
35
|
+
loadExternalAttractInteraction(e),
|
|
36
|
+
loadExternalBounceInteraction(e),
|
|
37
|
+
loadExternalBubbleInteraction(e),
|
|
38
|
+
loadExternalConnectInteraction(e),
|
|
39
|
+
loadExternalDestroyInteraction(e),
|
|
40
|
+
loadExternalGrabInteraction(e),
|
|
41
|
+
loadExternalPauseInteraction(e),
|
|
42
|
+
loadExternalPushInteraction(e),
|
|
43
|
+
loadExternalRemoveInteraction(e),
|
|
44
|
+
loadExternalRepulseInteraction(e),
|
|
45
|
+
loadExternalSlowInteraction(e),
|
|
46
|
+
loadParticlesAttractInteraction(e),
|
|
47
|
+
loadParticlesCollisionsInteraction(e),
|
|
48
|
+
loadParticlesLinksInteraction(e),
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
32
51
|
await Promise.all([
|
|
33
52
|
loadBasic(e),
|
|
34
|
-
(
|
|
35
|
-
await loadInteractivityPlugin(e);
|
|
36
|
-
await Promise.all([
|
|
37
|
-
loadExternalParallaxInteraction(e),
|
|
38
|
-
loadExternalAttractInteraction(e),
|
|
39
|
-
loadExternalBounceInteraction(e),
|
|
40
|
-
loadExternalBubbleInteraction(e),
|
|
41
|
-
loadExternalConnectInteraction(e),
|
|
42
|
-
loadExternalGrabInteraction(e),
|
|
43
|
-
loadExternalPauseInteraction(e),
|
|
44
|
-
loadExternalPushInteraction(e),
|
|
45
|
-
loadExternalRemoveInteraction(e),
|
|
46
|
-
loadExternalRepulseInteraction(e),
|
|
47
|
-
loadExternalSlowInteraction(e),
|
|
48
|
-
loadParticlesAttractInteraction(e),
|
|
49
|
-
loadParticlesCollisionsInteraction(e),
|
|
50
|
-
loadParticlesLinksInteraction(e),
|
|
51
|
-
]);
|
|
52
|
-
})(),
|
|
53
|
+
loadInteractivityForSlim(e),
|
|
53
54
|
loadEasingQuadPlugin(e),
|
|
54
55
|
loadEmojiShape(e),
|
|
55
56
|
loadImageShape(e),
|
|
@@ -58,8 +59,8 @@ export async function loadSlim(engine) {
|
|
|
58
59
|
loadSquareShape(e),
|
|
59
60
|
loadStarShape(e),
|
|
60
61
|
loadLifeUpdater(e),
|
|
62
|
+
loadPaintUpdater(e),
|
|
61
63
|
loadRotateUpdater(e),
|
|
62
|
-
loadStrokeColorUpdater(e),
|
|
63
64
|
]);
|
|
64
65
|
});
|
|
65
66
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export async function loadSlim(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadExternalParallaxInteraction }, { loadExternalAttractInteraction }, { loadExternalBounceInteraction }, { loadExternalBubbleInteraction }, { loadExternalConnectInteraction }, { loadExternalDestroyInteraction }, { loadExternalGrabInteraction }, { loadExternalPauseInteraction }, { loadExternalPushInteraction }, { loadExternalRemoveInteraction }, { loadExternalRepulseInteraction }, { loadExternalSlowInteraction }, { loadParticlesAttractInteraction }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction }, { loadEasingQuadPlugin }, { loadInteractivityPlugin }, { loadEmojiShape }, { loadImageShape }, { loadLineShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadLifeUpdater }, { loadPaintUpdater }, { loadRotateUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/interaction-external-parallax/lazy"),
|
|
7
|
+
import("@tsparticles/interaction-external-attract/lazy"),
|
|
8
|
+
import("@tsparticles/interaction-external-bounce/lazy"),
|
|
9
|
+
import("@tsparticles/interaction-external-bubble/lazy"),
|
|
10
|
+
import("@tsparticles/interaction-external-connect/lazy"),
|
|
11
|
+
import("@tsparticles/interaction-external-destroy/lazy"),
|
|
12
|
+
import("@tsparticles/interaction-external-grab/lazy"),
|
|
13
|
+
import("@tsparticles/interaction-external-pause/lazy"),
|
|
14
|
+
import("@tsparticles/interaction-external-push/lazy"),
|
|
15
|
+
import("@tsparticles/interaction-external-remove/lazy"),
|
|
16
|
+
import("@tsparticles/interaction-external-repulse/lazy"),
|
|
17
|
+
import("@tsparticles/interaction-external-slow/lazy"),
|
|
18
|
+
import("@tsparticles/interaction-particles-attract/lazy"),
|
|
19
|
+
import("@tsparticles/interaction-particles-collisions/lazy"),
|
|
20
|
+
import("@tsparticles/interaction-particles-links/lazy"),
|
|
21
|
+
import("@tsparticles/plugin-easing-quad/lazy"),
|
|
22
|
+
import("@tsparticles/plugin-interactivity/lazy"),
|
|
23
|
+
import("@tsparticles/shape-emoji/lazy"),
|
|
24
|
+
import("@tsparticles/shape-image/lazy"),
|
|
25
|
+
import("@tsparticles/shape-line/lazy"),
|
|
26
|
+
import("@tsparticles/shape-polygon/lazy"),
|
|
27
|
+
import("@tsparticles/shape-square/lazy"),
|
|
28
|
+
import("@tsparticles/shape-star/lazy"),
|
|
29
|
+
import("@tsparticles/updater-life/lazy"),
|
|
30
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
31
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
32
|
+
]), loadInteractivityForSlim = async (e) => {
|
|
33
|
+
await loadInteractivityPlugin(e);
|
|
34
|
+
await Promise.all([
|
|
35
|
+
loadExternalParallaxInteraction(e),
|
|
36
|
+
loadExternalAttractInteraction(e),
|
|
37
|
+
loadExternalBounceInteraction(e),
|
|
38
|
+
loadExternalBubbleInteraction(e),
|
|
39
|
+
loadExternalConnectInteraction(e),
|
|
40
|
+
loadExternalDestroyInteraction(e),
|
|
41
|
+
loadExternalGrabInteraction(e),
|
|
42
|
+
loadExternalPauseInteraction(e),
|
|
43
|
+
loadExternalPushInteraction(e),
|
|
44
|
+
loadExternalRemoveInteraction(e),
|
|
45
|
+
loadExternalRepulseInteraction(e),
|
|
46
|
+
loadExternalSlowInteraction(e),
|
|
47
|
+
loadParticlesAttractInteraction(e),
|
|
48
|
+
loadParticlesCollisionsInteraction(e),
|
|
49
|
+
loadParticlesLinksInteraction(e),
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
await Promise.all([
|
|
53
|
+
loadBasic(e),
|
|
54
|
+
loadInteractivityForSlim(e),
|
|
55
|
+
loadEasingQuadPlugin(e),
|
|
56
|
+
loadEmojiShape(e),
|
|
57
|
+
loadImageShape(e),
|
|
58
|
+
loadLineShape(e),
|
|
59
|
+
loadPolygonShape(e),
|
|
60
|
+
loadSquareShape(e),
|
|
61
|
+
loadStarShape(e),
|
|
62
|
+
loadLifeUpdater(e),
|
|
63
|
+
loadPaintUpdater(e),
|
|
64
|
+
loadRotateUpdater(e),
|
|
65
|
+
]);
|
|
66
|
+
});
|
|
67
|
+
}
|
package/cjs/browser.js
ADDED
package/cjs/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadSlim } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadSlim } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadSlim = loadSlim;
|
package/cjs/index.js
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
2
|
+
import { loadEasingQuadPlugin } from "@tsparticles/plugin-easing-quad";
|
|
3
|
+
import { loadEmojiShape } from "@tsparticles/shape-emoji";
|
|
4
|
+
import { loadExternalAttractInteraction } from "@tsparticles/interaction-external-attract";
|
|
5
|
+
import { loadExternalBounceInteraction } from "@tsparticles/interaction-external-bounce";
|
|
6
|
+
import { loadExternalBubbleInteraction } from "@tsparticles/interaction-external-bubble";
|
|
7
|
+
import { loadExternalConnectInteraction } from "@tsparticles/interaction-external-connect";
|
|
8
|
+
import { loadExternalDestroyInteraction } from "@tsparticles/interaction-external-destroy";
|
|
9
|
+
import { loadExternalGrabInteraction } from "@tsparticles/interaction-external-grab";
|
|
10
|
+
import { loadExternalParallaxInteraction } from "@tsparticles/interaction-external-parallax";
|
|
11
|
+
import { loadExternalPauseInteraction } from "@tsparticles/interaction-external-pause";
|
|
12
|
+
import { loadExternalPushInteraction } from "@tsparticles/interaction-external-push";
|
|
13
|
+
import { loadExternalRemoveInteraction } from "@tsparticles/interaction-external-remove";
|
|
14
|
+
import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
|
|
15
|
+
import { loadExternalSlowInteraction } from "@tsparticles/interaction-external-slow";
|
|
16
|
+
import { loadImageShape } from "@tsparticles/shape-image";
|
|
17
|
+
import { loadInteractivityPlugin } from "@tsparticles/plugin-interactivity";
|
|
18
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
19
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
20
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
21
|
+
import { loadParticlesAttractInteraction } from "@tsparticles/interaction-particles-attract";
|
|
22
|
+
import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-particles-collisions";
|
|
23
|
+
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
24
|
+
import { loadPolygonShape } from "@tsparticles/shape-polygon";
|
|
25
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
26
|
+
import { loadSquareShape } from "@tsparticles/shape-square";
|
|
27
|
+
import { loadStarShape } from "@tsparticles/shape-star";
|
|
1
28
|
export async function loadSlim(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
29
|
+
engine.checkVersion("4.0.0");
|
|
3
30
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import("@tsparticles/shape-line"),
|
|
25
|
-
import("@tsparticles/shape-polygon"),
|
|
26
|
-
import("@tsparticles/shape-square"),
|
|
27
|
-
import("@tsparticles/shape-star"),
|
|
28
|
-
import("@tsparticles/updater-life"),
|
|
29
|
-
import("@tsparticles/updater-rotate"),
|
|
30
|
-
import("@tsparticles/updater-stroke-color"),
|
|
31
|
-
]);
|
|
31
|
+
const loadInteractivityForSlim = async (e) => {
|
|
32
|
+
await loadInteractivityPlugin(e);
|
|
33
|
+
await Promise.all([
|
|
34
|
+
loadExternalParallaxInteraction(e),
|
|
35
|
+
loadExternalAttractInteraction(e),
|
|
36
|
+
loadExternalBounceInteraction(e),
|
|
37
|
+
loadExternalBubbleInteraction(e),
|
|
38
|
+
loadExternalConnectInteraction(e),
|
|
39
|
+
loadExternalDestroyInteraction(e),
|
|
40
|
+
loadExternalGrabInteraction(e),
|
|
41
|
+
loadExternalPauseInteraction(e),
|
|
42
|
+
loadExternalPushInteraction(e),
|
|
43
|
+
loadExternalRemoveInteraction(e),
|
|
44
|
+
loadExternalRepulseInteraction(e),
|
|
45
|
+
loadExternalSlowInteraction(e),
|
|
46
|
+
loadParticlesAttractInteraction(e),
|
|
47
|
+
loadParticlesCollisionsInteraction(e),
|
|
48
|
+
loadParticlesLinksInteraction(e),
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
32
51
|
await Promise.all([
|
|
33
52
|
loadBasic(e),
|
|
34
|
-
(
|
|
35
|
-
await loadInteractivityPlugin(e);
|
|
36
|
-
await Promise.all([
|
|
37
|
-
loadExternalParallaxInteraction(e),
|
|
38
|
-
loadExternalAttractInteraction(e),
|
|
39
|
-
loadExternalBounceInteraction(e),
|
|
40
|
-
loadExternalBubbleInteraction(e),
|
|
41
|
-
loadExternalConnectInteraction(e),
|
|
42
|
-
loadExternalGrabInteraction(e),
|
|
43
|
-
loadExternalPauseInteraction(e),
|
|
44
|
-
loadExternalPushInteraction(e),
|
|
45
|
-
loadExternalRemoveInteraction(e),
|
|
46
|
-
loadExternalRepulseInteraction(e),
|
|
47
|
-
loadExternalSlowInteraction(e),
|
|
48
|
-
loadParticlesAttractInteraction(e),
|
|
49
|
-
loadParticlesCollisionsInteraction(e),
|
|
50
|
-
loadParticlesLinksInteraction(e),
|
|
51
|
-
]);
|
|
52
|
-
})(),
|
|
53
|
+
loadInteractivityForSlim(e),
|
|
53
54
|
loadEasingQuadPlugin(e),
|
|
54
55
|
loadEmojiShape(e),
|
|
55
56
|
loadImageShape(e),
|
|
@@ -58,8 +59,8 @@ export async function loadSlim(engine) {
|
|
|
58
59
|
loadSquareShape(e),
|
|
59
60
|
loadStarShape(e),
|
|
60
61
|
loadLifeUpdater(e),
|
|
62
|
+
loadPaintUpdater(e),
|
|
61
63
|
loadRotateUpdater(e),
|
|
62
|
-
loadStrokeColorUpdater(e),
|
|
63
64
|
]);
|
|
64
65
|
});
|
|
65
66
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export async function loadSlim(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadExternalParallaxInteraction }, { loadExternalAttractInteraction }, { loadExternalBounceInteraction }, { loadExternalBubbleInteraction }, { loadExternalConnectInteraction }, { loadExternalDestroyInteraction }, { loadExternalGrabInteraction }, { loadExternalPauseInteraction }, { loadExternalPushInteraction }, { loadExternalRemoveInteraction }, { loadExternalRepulseInteraction }, { loadExternalSlowInteraction }, { loadParticlesAttractInteraction }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction }, { loadEasingQuadPlugin }, { loadInteractivityPlugin }, { loadEmojiShape }, { loadImageShape }, { loadLineShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadLifeUpdater }, { loadPaintUpdater }, { loadRotateUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/interaction-external-parallax/lazy"),
|
|
7
|
+
import("@tsparticles/interaction-external-attract/lazy"),
|
|
8
|
+
import("@tsparticles/interaction-external-bounce/lazy"),
|
|
9
|
+
import("@tsparticles/interaction-external-bubble/lazy"),
|
|
10
|
+
import("@tsparticles/interaction-external-connect/lazy"),
|
|
11
|
+
import("@tsparticles/interaction-external-destroy/lazy"),
|
|
12
|
+
import("@tsparticles/interaction-external-grab/lazy"),
|
|
13
|
+
import("@tsparticles/interaction-external-pause/lazy"),
|
|
14
|
+
import("@tsparticles/interaction-external-push/lazy"),
|
|
15
|
+
import("@tsparticles/interaction-external-remove/lazy"),
|
|
16
|
+
import("@tsparticles/interaction-external-repulse/lazy"),
|
|
17
|
+
import("@tsparticles/interaction-external-slow/lazy"),
|
|
18
|
+
import("@tsparticles/interaction-particles-attract/lazy"),
|
|
19
|
+
import("@tsparticles/interaction-particles-collisions/lazy"),
|
|
20
|
+
import("@tsparticles/interaction-particles-links/lazy"),
|
|
21
|
+
import("@tsparticles/plugin-easing-quad/lazy"),
|
|
22
|
+
import("@tsparticles/plugin-interactivity/lazy"),
|
|
23
|
+
import("@tsparticles/shape-emoji/lazy"),
|
|
24
|
+
import("@tsparticles/shape-image/lazy"),
|
|
25
|
+
import("@tsparticles/shape-line/lazy"),
|
|
26
|
+
import("@tsparticles/shape-polygon/lazy"),
|
|
27
|
+
import("@tsparticles/shape-square/lazy"),
|
|
28
|
+
import("@tsparticles/shape-star/lazy"),
|
|
29
|
+
import("@tsparticles/updater-life/lazy"),
|
|
30
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
31
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
32
|
+
]), loadInteractivityForSlim = async (e) => {
|
|
33
|
+
await loadInteractivityPlugin(e);
|
|
34
|
+
await Promise.all([
|
|
35
|
+
loadExternalParallaxInteraction(e),
|
|
36
|
+
loadExternalAttractInteraction(e),
|
|
37
|
+
loadExternalBounceInteraction(e),
|
|
38
|
+
loadExternalBubbleInteraction(e),
|
|
39
|
+
loadExternalConnectInteraction(e),
|
|
40
|
+
loadExternalDestroyInteraction(e),
|
|
41
|
+
loadExternalGrabInteraction(e),
|
|
42
|
+
loadExternalPauseInteraction(e),
|
|
43
|
+
loadExternalPushInteraction(e),
|
|
44
|
+
loadExternalRemoveInteraction(e),
|
|
45
|
+
loadExternalRepulseInteraction(e),
|
|
46
|
+
loadExternalSlowInteraction(e),
|
|
47
|
+
loadParticlesAttractInteraction(e),
|
|
48
|
+
loadParticlesCollisionsInteraction(e),
|
|
49
|
+
loadParticlesLinksInteraction(e),
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
await Promise.all([
|
|
53
|
+
loadBasic(e),
|
|
54
|
+
loadInteractivityForSlim(e),
|
|
55
|
+
loadEasingQuadPlugin(e),
|
|
56
|
+
loadEmojiShape(e),
|
|
57
|
+
loadImageShape(e),
|
|
58
|
+
loadLineShape(e),
|
|
59
|
+
loadPolygonShape(e),
|
|
60
|
+
loadSquareShape(e),
|
|
61
|
+
loadStarShape(e),
|
|
62
|
+
loadLifeUpdater(e),
|
|
63
|
+
loadPaintUpdater(e),
|
|
64
|
+
loadRotateUpdater(e),
|
|
65
|
+
]);
|
|
66
|
+
});
|
|
67
|
+
}
|
package/esm/browser.js
ADDED
package/esm/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadSlim } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadSlim } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadSlim = loadSlim;
|
package/esm/index.js
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
2
|
+
import { loadEasingQuadPlugin } from "@tsparticles/plugin-easing-quad";
|
|
3
|
+
import { loadEmojiShape } from "@tsparticles/shape-emoji";
|
|
4
|
+
import { loadExternalAttractInteraction } from "@tsparticles/interaction-external-attract";
|
|
5
|
+
import { loadExternalBounceInteraction } from "@tsparticles/interaction-external-bounce";
|
|
6
|
+
import { loadExternalBubbleInteraction } from "@tsparticles/interaction-external-bubble";
|
|
7
|
+
import { loadExternalConnectInteraction } from "@tsparticles/interaction-external-connect";
|
|
8
|
+
import { loadExternalDestroyInteraction } from "@tsparticles/interaction-external-destroy";
|
|
9
|
+
import { loadExternalGrabInteraction } from "@tsparticles/interaction-external-grab";
|
|
10
|
+
import { loadExternalParallaxInteraction } from "@tsparticles/interaction-external-parallax";
|
|
11
|
+
import { loadExternalPauseInteraction } from "@tsparticles/interaction-external-pause";
|
|
12
|
+
import { loadExternalPushInteraction } from "@tsparticles/interaction-external-push";
|
|
13
|
+
import { loadExternalRemoveInteraction } from "@tsparticles/interaction-external-remove";
|
|
14
|
+
import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
|
|
15
|
+
import { loadExternalSlowInteraction } from "@tsparticles/interaction-external-slow";
|
|
16
|
+
import { loadImageShape } from "@tsparticles/shape-image";
|
|
17
|
+
import { loadInteractivityPlugin } from "@tsparticles/plugin-interactivity";
|
|
18
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
19
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
20
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
21
|
+
import { loadParticlesAttractInteraction } from "@tsparticles/interaction-particles-attract";
|
|
22
|
+
import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-particles-collisions";
|
|
23
|
+
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
24
|
+
import { loadPolygonShape } from "@tsparticles/shape-polygon";
|
|
25
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
26
|
+
import { loadSquareShape } from "@tsparticles/shape-square";
|
|
27
|
+
import { loadStarShape } from "@tsparticles/shape-star";
|
|
1
28
|
export async function loadSlim(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
29
|
+
engine.checkVersion("4.0.0");
|
|
3
30
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import("@tsparticles/shape-line"),
|
|
25
|
-
import("@tsparticles/shape-polygon"),
|
|
26
|
-
import("@tsparticles/shape-square"),
|
|
27
|
-
import("@tsparticles/shape-star"),
|
|
28
|
-
import("@tsparticles/updater-life"),
|
|
29
|
-
import("@tsparticles/updater-rotate"),
|
|
30
|
-
import("@tsparticles/updater-stroke-color"),
|
|
31
|
-
]);
|
|
31
|
+
const loadInteractivityForSlim = async (e) => {
|
|
32
|
+
await loadInteractivityPlugin(e);
|
|
33
|
+
await Promise.all([
|
|
34
|
+
loadExternalParallaxInteraction(e),
|
|
35
|
+
loadExternalAttractInteraction(e),
|
|
36
|
+
loadExternalBounceInteraction(e),
|
|
37
|
+
loadExternalBubbleInteraction(e),
|
|
38
|
+
loadExternalConnectInteraction(e),
|
|
39
|
+
loadExternalDestroyInteraction(e),
|
|
40
|
+
loadExternalGrabInteraction(e),
|
|
41
|
+
loadExternalPauseInteraction(e),
|
|
42
|
+
loadExternalPushInteraction(e),
|
|
43
|
+
loadExternalRemoveInteraction(e),
|
|
44
|
+
loadExternalRepulseInteraction(e),
|
|
45
|
+
loadExternalSlowInteraction(e),
|
|
46
|
+
loadParticlesAttractInteraction(e),
|
|
47
|
+
loadParticlesCollisionsInteraction(e),
|
|
48
|
+
loadParticlesLinksInteraction(e),
|
|
49
|
+
]);
|
|
50
|
+
};
|
|
32
51
|
await Promise.all([
|
|
33
52
|
loadBasic(e),
|
|
34
|
-
(
|
|
35
|
-
await loadInteractivityPlugin(e);
|
|
36
|
-
await Promise.all([
|
|
37
|
-
loadExternalParallaxInteraction(e),
|
|
38
|
-
loadExternalAttractInteraction(e),
|
|
39
|
-
loadExternalBounceInteraction(e),
|
|
40
|
-
loadExternalBubbleInteraction(e),
|
|
41
|
-
loadExternalConnectInteraction(e),
|
|
42
|
-
loadExternalGrabInteraction(e),
|
|
43
|
-
loadExternalPauseInteraction(e),
|
|
44
|
-
loadExternalPushInteraction(e),
|
|
45
|
-
loadExternalRemoveInteraction(e),
|
|
46
|
-
loadExternalRepulseInteraction(e),
|
|
47
|
-
loadExternalSlowInteraction(e),
|
|
48
|
-
loadParticlesAttractInteraction(e),
|
|
49
|
-
loadParticlesCollisionsInteraction(e),
|
|
50
|
-
loadParticlesLinksInteraction(e),
|
|
51
|
-
]);
|
|
52
|
-
})(),
|
|
53
|
+
loadInteractivityForSlim(e),
|
|
53
54
|
loadEasingQuadPlugin(e),
|
|
54
55
|
loadEmojiShape(e),
|
|
55
56
|
loadImageShape(e),
|
|
@@ -58,8 +59,8 @@ export async function loadSlim(engine) {
|
|
|
58
59
|
loadSquareShape(e),
|
|
59
60
|
loadStarShape(e),
|
|
60
61
|
loadLifeUpdater(e),
|
|
62
|
+
loadPaintUpdater(e),
|
|
61
63
|
loadRotateUpdater(e),
|
|
62
|
-
loadStrokeColorUpdater(e),
|
|
63
64
|
]);
|
|
64
65
|
});
|
|
65
66
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export async function loadSlim(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadExternalParallaxInteraction }, { loadExternalAttractInteraction }, { loadExternalBounceInteraction }, { loadExternalBubbleInteraction }, { loadExternalConnectInteraction }, { loadExternalDestroyInteraction }, { loadExternalGrabInteraction }, { loadExternalPauseInteraction }, { loadExternalPushInteraction }, { loadExternalRemoveInteraction }, { loadExternalRepulseInteraction }, { loadExternalSlowInteraction }, { loadParticlesAttractInteraction }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction }, { loadEasingQuadPlugin }, { loadInteractivityPlugin }, { loadEmojiShape }, { loadImageShape }, { loadLineShape }, { loadPolygonShape }, { loadSquareShape }, { loadStarShape }, { loadLifeUpdater }, { loadPaintUpdater }, { loadRotateUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/interaction-external-parallax/lazy"),
|
|
7
|
+
import("@tsparticles/interaction-external-attract/lazy"),
|
|
8
|
+
import("@tsparticles/interaction-external-bounce/lazy"),
|
|
9
|
+
import("@tsparticles/interaction-external-bubble/lazy"),
|
|
10
|
+
import("@tsparticles/interaction-external-connect/lazy"),
|
|
11
|
+
import("@tsparticles/interaction-external-destroy/lazy"),
|
|
12
|
+
import("@tsparticles/interaction-external-grab/lazy"),
|
|
13
|
+
import("@tsparticles/interaction-external-pause/lazy"),
|
|
14
|
+
import("@tsparticles/interaction-external-push/lazy"),
|
|
15
|
+
import("@tsparticles/interaction-external-remove/lazy"),
|
|
16
|
+
import("@tsparticles/interaction-external-repulse/lazy"),
|
|
17
|
+
import("@tsparticles/interaction-external-slow/lazy"),
|
|
18
|
+
import("@tsparticles/interaction-particles-attract/lazy"),
|
|
19
|
+
import("@tsparticles/interaction-particles-collisions/lazy"),
|
|
20
|
+
import("@tsparticles/interaction-particles-links/lazy"),
|
|
21
|
+
import("@tsparticles/plugin-easing-quad/lazy"),
|
|
22
|
+
import("@tsparticles/plugin-interactivity/lazy"),
|
|
23
|
+
import("@tsparticles/shape-emoji/lazy"),
|
|
24
|
+
import("@tsparticles/shape-image/lazy"),
|
|
25
|
+
import("@tsparticles/shape-line/lazy"),
|
|
26
|
+
import("@tsparticles/shape-polygon/lazy"),
|
|
27
|
+
import("@tsparticles/shape-square/lazy"),
|
|
28
|
+
import("@tsparticles/shape-star/lazy"),
|
|
29
|
+
import("@tsparticles/updater-life/lazy"),
|
|
30
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
31
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
32
|
+
]), loadInteractivityForSlim = async (e) => {
|
|
33
|
+
await loadInteractivityPlugin(e);
|
|
34
|
+
await Promise.all([
|
|
35
|
+
loadExternalParallaxInteraction(e),
|
|
36
|
+
loadExternalAttractInteraction(e),
|
|
37
|
+
loadExternalBounceInteraction(e),
|
|
38
|
+
loadExternalBubbleInteraction(e),
|
|
39
|
+
loadExternalConnectInteraction(e),
|
|
40
|
+
loadExternalDestroyInteraction(e),
|
|
41
|
+
loadExternalGrabInteraction(e),
|
|
42
|
+
loadExternalPauseInteraction(e),
|
|
43
|
+
loadExternalPushInteraction(e),
|
|
44
|
+
loadExternalRemoveInteraction(e),
|
|
45
|
+
loadExternalRepulseInteraction(e),
|
|
46
|
+
loadExternalSlowInteraction(e),
|
|
47
|
+
loadParticlesAttractInteraction(e),
|
|
48
|
+
loadParticlesCollisionsInteraction(e),
|
|
49
|
+
loadParticlesLinksInteraction(e),
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
await Promise.all([
|
|
53
|
+
loadBasic(e),
|
|
54
|
+
loadInteractivityForSlim(e),
|
|
55
|
+
loadEasingQuadPlugin(e),
|
|
56
|
+
loadEmojiShape(e),
|
|
57
|
+
loadImageShape(e),
|
|
58
|
+
loadLineShape(e),
|
|
59
|
+
loadPolygonShape(e),
|
|
60
|
+
loadSquareShape(e),
|
|
61
|
+
loadStarShape(e),
|
|
62
|
+
loadLifeUpdater(e),
|
|
63
|
+
loadPaintUpdater(e),
|
|
64
|
+
loadRotateUpdater(e),
|
|
65
|
+
]);
|
|
66
|
+
});
|
|
67
|
+
}
|