@tsparticles/slim 4.0.0-beta.12 → 4.0.0-beta.16

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.
Files changed (181) hide show
  1. package/README.md +2 -0
  2. package/browser/browser.js +5 -0
  3. package/browser/bundle.js +4 -0
  4. package/browser/index.js +29 -30
  5. package/browser/index.lazy.js +67 -0
  6. package/cjs/browser.js +5 -0
  7. package/cjs/bundle.js +4 -0
  8. package/cjs/index.js +29 -30
  9. package/cjs/index.lazy.js +67 -0
  10. package/esm/browser.js +5 -0
  11. package/esm/bundle.js +4 -0
  12. package/esm/index.js +29 -30
  13. package/esm/index.lazy.js +67 -0
  14. package/package.json +36 -29
  15. package/report.html +4949 -94
  16. package/tsparticles.slim.bundle.js +11093 -967
  17. package/tsparticles.slim.bundle.min.js +1 -2
  18. package/tsparticles.slim.js +61 -412
  19. package/tsparticles.slim.min.js +1 -1
  20. package/types/browser.d.ts +1 -0
  21. package/types/index.lazy.d.ts +2 -0
  22. package/1005.min.js +0 -1
  23. package/1069.min.js +0 -1
  24. package/1212.min.js +0 -1
  25. package/1349.min.js +0 -1
  26. package/1415.min.js +0 -1
  27. package/1482.min.js +0 -1
  28. package/1708.min.js +0 -1
  29. package/1722.min.js +0 -1
  30. package/1753.min.js +0 -1
  31. package/1794.min.js +0 -1
  32. package/183.min.js +0 -1
  33. package/1979.min.js +0 -1
  34. package/2152.min.js +0 -1
  35. package/2181.min.js +0 -1
  36. package/2318.min.js +0 -1
  37. package/240.min.js +0 -1
  38. package/2410.min.js +0 -1
  39. package/2459.min.js +0 -1
  40. package/2630.min.js +0 -1
  41. package/2641.min.js +0 -1
  42. package/2662.min.js +0 -1
  43. package/2748.min.js +0 -1
  44. package/2788.min.js +0 -1
  45. package/2951.min.js +0 -1
  46. package/302.min.js +0 -1
  47. package/3110.min.js +0 -1
  48. package/3371.min.js +0 -1
  49. package/3743.min.js +0 -1
  50. package/4068.min.js +0 -1
  51. package/4210.min.js +0 -1
  52. package/425.min.js +0 -1
  53. package/4319.min.js +0 -1
  54. package/4447.min.js +0 -1
  55. package/4586.min.js +0 -1
  56. package/4629.min.js +0 -1
  57. package/4657.min.js +0 -1
  58. package/4663.min.js +0 -1
  59. package/4807.min.js +0 -1
  60. package/4821.min.js +0 -1
  61. package/483.min.js +0 -1
  62. package/4874.min.js +0 -1
  63. package/5127.min.js +0 -1
  64. package/5252.min.js +0 -1
  65. package/5271.min.js +0 -1
  66. package/5841.min.js +0 -1
  67. package/5938.min.js +0 -1
  68. package/6179.min.js +0 -1
  69. package/6232.min.js +0 -1
  70. package/6242.min.js +0 -1
  71. package/6427.min.js +0 -1
  72. package/6470.min.js +0 -1
  73. package/6472.min.js +0 -1
  74. package/6623.min.js +0 -1
  75. package/6911.min.js +0 -1
  76. package/7089.min.js +0 -1
  77. package/7091.min.js +0 -1
  78. package/7155.min.js +0 -1
  79. package/716.min.js +0 -1
  80. package/7208.min.js +0 -1
  81. package/7335.min.js +0 -1
  82. package/7375.min.js +0 -1
  83. package/7646.min.js +0 -1
  84. package/7662.min.js +0 -1
  85. package/7752.min.js +0 -1
  86. package/779.min.js +0 -1
  87. package/7819.min.js +0 -1
  88. package/7857.min.js +0 -1
  89. package/8002.min.js +0 -1
  90. package/8093.min.js +0 -1
  91. package/8633.min.js +0 -1
  92. package/8759.min.js +0 -1
  93. package/8859.min.js +0 -1
  94. package/8935.min.js +0 -1
  95. package/904.min.js +0 -1
  96. package/9087.min.js +0 -1
  97. package/9204.min.js +0 -1
  98. package/9299.min.js +0 -1
  99. package/94.min.js +0 -1
  100. package/9408.min.js +0 -1
  101. package/9439.min.js +0 -1
  102. package/basic_dist_browser_index_js.js +0 -30
  103. package/engine_dist_browser_Core_Container_js.js +0 -100
  104. package/interactions_external_attract_dist_browser_Attractor_js.js +0 -140
  105. package/interactions_external_attract_dist_browser_index_js.js +0 -40
  106. package/interactions_external_bounce_dist_browser_Bouncer_js.js +0 -140
  107. package/interactions_external_bounce_dist_browser_index_js.js +0 -40
  108. package/interactions_external_bubble_dist_browser_Bubbler_js.js +0 -150
  109. package/interactions_external_bubble_dist_browser_index_js.js +0 -60
  110. package/interactions_external_connect_dist_browser_Connector_js.js +0 -160
  111. package/interactions_external_connect_dist_browser_index_js.js +0 -50
  112. package/interactions_external_destroy_dist_browser_Destroyer_js.js +0 -140
  113. package/interactions_external_destroy_dist_browser_index_js.js +0 -40
  114. package/interactions_external_grab_dist_browser_Grabber_js.js +0 -160
  115. package/interactions_external_grab_dist_browser_index_js.js +0 -50
  116. package/interactions_external_parallax_dist_browser_Parallaxer_js.js +0 -130
  117. package/interactions_external_parallax_dist_browser_index_js.js +0 -40
  118. package/interactions_external_pause_dist_browser_Pauser_js.js +0 -130
  119. package/interactions_external_pause_dist_browser_index_js.js +0 -30
  120. package/interactions_external_push_dist_browser_Pusher_js.js +0 -130
  121. package/interactions_external_push_dist_browser_index_js.js +0 -40
  122. package/interactions_external_remove_dist_browser_Remover_js.js +0 -130
  123. package/interactions_external_remove_dist_browser_index_js.js +0 -40
  124. package/interactions_external_repulse_dist_browser_Repulser_js.js +0 -130
  125. package/interactions_external_repulse_dist_browser_index_js.js +0 -60
  126. package/interactions_external_slow_dist_browser_Slower_js.js +0 -130
  127. package/interactions_external_slow_dist_browser_index_js.js +0 -40
  128. package/interactions_particles_attract_dist_browser_Attractor_js.js +0 -140
  129. package/interactions_particles_attract_dist_browser_index_js.js +0 -30
  130. package/interactions_particles_collisions_dist_browser_Collider_js.js +0 -210
  131. package/interactions_particles_collisions_dist_browser_OverlapPluginInstance_js.js +0 -30
  132. package/interactions_particles_collisions_dist_browser_OverlapPlugin_js.js +0 -30
  133. package/interactions_particles_collisions_dist_browser_index_js.js +0 -30
  134. package/interactions_particles_links_dist_browser_LinkInstance_js.js +0 -40
  135. package/interactions_particles_links_dist_browser_Linker_js.js +0 -140
  136. package/interactions_particles_links_dist_browser_LinksPlugin_js.js +0 -30
  137. package/interactions_particles_links_dist_browser_index_js.js +0 -60
  138. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
  139. package/plugins_colors_hex_dist_browser_index_js.js +0 -30
  140. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
  141. package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
  142. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
  143. package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
  144. package/plugins_easings_quad_dist_browser_easingsFunctions_js.js +0 -30
  145. package/plugins_easings_quad_dist_browser_index_js.js +0 -30
  146. package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +0 -50
  147. package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +0 -70
  148. package/plugins_interactivity_dist_browser_index_js.js +0 -120
  149. package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
  150. package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
  151. package/plugins_move_dist_browser_index_js.js +0 -30
  152. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
  153. package/shapes_circle_dist_browser_index_js.js +0 -30
  154. package/shapes_emoji_dist_browser_EmojiDrawer_js.js +0 -50
  155. package/shapes_emoji_dist_browser_index_js.js +0 -40
  156. package/shapes_image_dist_browser_GifUtils_Utils_js.js +0 -70
  157. package/shapes_image_dist_browser_ImageDrawer_js.js +0 -30
  158. package/shapes_image_dist_browser_ImagePreloaderInstance_js.js +0 -30
  159. package/shapes_image_dist_browser_ImagePreloader_js.js +0 -40
  160. package/shapes_image_dist_browser_index_js.js +0 -40
  161. package/shapes_line_dist_browser_LineDrawer_js.js +0 -40
  162. package/shapes_line_dist_browser_index_js.js +0 -30
  163. package/shapes_polygon_dist_browser_PolygonDrawer_js.js +0 -50
  164. package/shapes_polygon_dist_browser_TriangleDrawer_js.js +0 -50
  165. package/shapes_polygon_dist_browser_index_js.js +0 -30
  166. package/shapes_square_dist_browser_SquareDrawer_js.js +0 -40
  167. package/shapes_square_dist_browser_index_js.js +0 -30
  168. package/shapes_star_dist_browser_StarDrawer_js.js +0 -40
  169. package/shapes_star_dist_browser_index_js.js +0 -30
  170. package/updaters_life_dist_browser_LifeUpdater_js.js +0 -70
  171. package/updaters_life_dist_browser_index_js.js +0 -30
  172. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  173. package/updaters_opacity_dist_browser_index_js.js +0 -30
  174. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
  175. package/updaters_outModes_dist_browser_index_js.js +0 -30
  176. package/updaters_paint_dist_browser_PaintUpdater_js.js +0 -30
  177. package/updaters_paint_dist_browser_index_js.js +0 -30
  178. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  179. package/updaters_rotate_dist_browser_index_js.js +0 -30
  180. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  181. package/updaters_size_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)
@@ -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]
@@ -0,0 +1,5 @@
1
+ import { loadSlim } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSlim = loadSlim;
5
+ export * from "./index.js";
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,35 +1,34 @@
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-beta.12");
29
+ engine.checkVersion("4.0.0-beta.16");
3
30
  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"),
6
- import("@tsparticles/interaction-external-parallax"),
7
- import("@tsparticles/interaction-external-attract"),
8
- import("@tsparticles/interaction-external-bounce"),
9
- import("@tsparticles/interaction-external-bubble"),
10
- import("@tsparticles/interaction-external-connect"),
11
- import("@tsparticles/interaction-external-destroy"),
12
- import("@tsparticles/interaction-external-grab"),
13
- import("@tsparticles/interaction-external-pause"),
14
- import("@tsparticles/interaction-external-push"),
15
- import("@tsparticles/interaction-external-remove"),
16
- import("@tsparticles/interaction-external-repulse"),
17
- import("@tsparticles/interaction-external-slow"),
18
- import("@tsparticles/interaction-particles-attract"),
19
- import("@tsparticles/interaction-particles-collisions"),
20
- import("@tsparticles/interaction-particles-links"),
21
- import("@tsparticles/plugin-easing-quad"),
22
- import("@tsparticles/plugin-interactivity"),
23
- import("@tsparticles/shape-emoji"),
24
- import("@tsparticles/shape-image"),
25
- import("@tsparticles/shape-line"),
26
- import("@tsparticles/shape-polygon"),
27
- import("@tsparticles/shape-square"),
28
- import("@tsparticles/shape-star"),
29
- import("@tsparticles/updater-life"),
30
- import("@tsparticles/updater-paint"),
31
- import("@tsparticles/updater-rotate"),
32
- ]), loadInteractivityForSlim = async (e) => {
31
+ const loadInteractivityForSlim = async (e) => {
33
32
  await loadInteractivityPlugin(e);
34
33
  await Promise.all([
35
34
  loadExternalParallaxInteraction(e),
@@ -0,0 +1,67 @@
1
+ export async function loadSlim(engine) {
2
+ engine.checkVersion("4.0.0-beta.16");
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
@@ -0,0 +1,5 @@
1
+ import { loadSlim } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSlim = loadSlim;
5
+ export * from "./index.js";
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,35 +1,34 @@
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-beta.12");
29
+ engine.checkVersion("4.0.0-beta.16");
3
30
  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"),
6
- import("@tsparticles/interaction-external-parallax"),
7
- import("@tsparticles/interaction-external-attract"),
8
- import("@tsparticles/interaction-external-bounce"),
9
- import("@tsparticles/interaction-external-bubble"),
10
- import("@tsparticles/interaction-external-connect"),
11
- import("@tsparticles/interaction-external-destroy"),
12
- import("@tsparticles/interaction-external-grab"),
13
- import("@tsparticles/interaction-external-pause"),
14
- import("@tsparticles/interaction-external-push"),
15
- import("@tsparticles/interaction-external-remove"),
16
- import("@tsparticles/interaction-external-repulse"),
17
- import("@tsparticles/interaction-external-slow"),
18
- import("@tsparticles/interaction-particles-attract"),
19
- import("@tsparticles/interaction-particles-collisions"),
20
- import("@tsparticles/interaction-particles-links"),
21
- import("@tsparticles/plugin-easing-quad"),
22
- import("@tsparticles/plugin-interactivity"),
23
- import("@tsparticles/shape-emoji"),
24
- import("@tsparticles/shape-image"),
25
- import("@tsparticles/shape-line"),
26
- import("@tsparticles/shape-polygon"),
27
- import("@tsparticles/shape-square"),
28
- import("@tsparticles/shape-star"),
29
- import("@tsparticles/updater-life"),
30
- import("@tsparticles/updater-paint"),
31
- import("@tsparticles/updater-rotate"),
32
- ]), loadInteractivityForSlim = async (e) => {
31
+ const loadInteractivityForSlim = async (e) => {
33
32
  await loadInteractivityPlugin(e);
34
33
  await Promise.all([
35
34
  loadExternalParallaxInteraction(e),
@@ -0,0 +1,67 @@
1
+ export async function loadSlim(engine) {
2
+ engine.checkVersion("4.0.0-beta.16");
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
@@ -0,0 +1,5 @@
1
+ import { loadSlim } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSlim = loadSlim;
5
+ export * from "./index.js";
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,35 +1,34 @@
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-beta.12");
29
+ engine.checkVersion("4.0.0-beta.16");
3
30
  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"),
6
- import("@tsparticles/interaction-external-parallax"),
7
- import("@tsparticles/interaction-external-attract"),
8
- import("@tsparticles/interaction-external-bounce"),
9
- import("@tsparticles/interaction-external-bubble"),
10
- import("@tsparticles/interaction-external-connect"),
11
- import("@tsparticles/interaction-external-destroy"),
12
- import("@tsparticles/interaction-external-grab"),
13
- import("@tsparticles/interaction-external-pause"),
14
- import("@tsparticles/interaction-external-push"),
15
- import("@tsparticles/interaction-external-remove"),
16
- import("@tsparticles/interaction-external-repulse"),
17
- import("@tsparticles/interaction-external-slow"),
18
- import("@tsparticles/interaction-particles-attract"),
19
- import("@tsparticles/interaction-particles-collisions"),
20
- import("@tsparticles/interaction-particles-links"),
21
- import("@tsparticles/plugin-easing-quad"),
22
- import("@tsparticles/plugin-interactivity"),
23
- import("@tsparticles/shape-emoji"),
24
- import("@tsparticles/shape-image"),
25
- import("@tsparticles/shape-line"),
26
- import("@tsparticles/shape-polygon"),
27
- import("@tsparticles/shape-square"),
28
- import("@tsparticles/shape-star"),
29
- import("@tsparticles/updater-life"),
30
- import("@tsparticles/updater-paint"),
31
- import("@tsparticles/updater-rotate"),
32
- ]), loadInteractivityForSlim = async (e) => {
31
+ const loadInteractivityForSlim = async (e) => {
33
32
  await loadInteractivityPlugin(e);
34
33
  await Promise.all([
35
34
  loadExternalParallaxInteraction(e),
@@ -0,0 +1,67 @@
1
+ export async function loadSlim(engine) {
2
+ engine.checkVersion("4.0.0-beta.16");
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/slim",
3
- "version": "4.0.0-beta.12",
3
+ "version": "4.0.0-beta.16",
4
4
  "description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -95,37 +95,44 @@
95
95
  "require": "./cjs/index.js",
96
96
  "default": "./esm/index.js"
97
97
  },
98
+ "./lazy": {
99
+ "types": "./types/index.lazy.d.ts",
100
+ "browser": "./browser/index.lazy.js",
101
+ "import": "./esm/index.lazy.js",
102
+ "require": "./cjs/index.lazy.js",
103
+ "default": "./esm/index.lazy.js"
104
+ },
98
105
  "./package.json": "./package.json"
99
106
  },
100
107
  "dependencies": {
101
- "@tsparticles/basic": "4.0.0-beta.12",
102
- "@tsparticles/engine": "4.0.0-beta.12",
103
- "@tsparticles/interaction-external-attract": "4.0.0-beta.12",
104
- "@tsparticles/interaction-external-bounce": "4.0.0-beta.12",
105
- "@tsparticles/interaction-external-bubble": "4.0.0-beta.12",
106
- "@tsparticles/interaction-external-connect": "4.0.0-beta.12",
107
- "@tsparticles/interaction-external-destroy": "4.0.0-beta.12",
108
- "@tsparticles/interaction-external-grab": "4.0.0-beta.12",
109
- "@tsparticles/interaction-external-parallax": "4.0.0-beta.12",
110
- "@tsparticles/interaction-external-pause": "4.0.0-beta.12",
111
- "@tsparticles/interaction-external-push": "4.0.0-beta.12",
112
- "@tsparticles/interaction-external-remove": "4.0.0-beta.12",
113
- "@tsparticles/interaction-external-repulse": "4.0.0-beta.12",
114
- "@tsparticles/interaction-external-slow": "4.0.0-beta.12",
115
- "@tsparticles/interaction-particles-attract": "4.0.0-beta.12",
116
- "@tsparticles/interaction-particles-collisions": "4.0.0-beta.12",
117
- "@tsparticles/interaction-particles-links": "4.0.0-beta.12",
118
- "@tsparticles/plugin-easing-quad": "4.0.0-beta.12",
119
- "@tsparticles/plugin-interactivity": "4.0.0-beta.12",
120
- "@tsparticles/shape-emoji": "4.0.0-beta.12",
121
- "@tsparticles/shape-image": "4.0.0-beta.12",
122
- "@tsparticles/shape-line": "4.0.0-beta.12",
123
- "@tsparticles/shape-polygon": "4.0.0-beta.12",
124
- "@tsparticles/shape-square": "4.0.0-beta.12",
125
- "@tsparticles/shape-star": "4.0.0-beta.12",
126
- "@tsparticles/updater-life": "4.0.0-beta.12",
127
- "@tsparticles/updater-paint": "4.0.0-beta.12",
128
- "@tsparticles/updater-rotate": "4.0.0-beta.12"
108
+ "@tsparticles/basic": "4.0.0-beta.16",
109
+ "@tsparticles/engine": "4.0.0-beta.16",
110
+ "@tsparticles/interaction-external-attract": "4.0.0-beta.16",
111
+ "@tsparticles/interaction-external-bounce": "4.0.0-beta.16",
112
+ "@tsparticles/interaction-external-bubble": "4.0.0-beta.16",
113
+ "@tsparticles/interaction-external-connect": "4.0.0-beta.16",
114
+ "@tsparticles/interaction-external-destroy": "4.0.0-beta.16",
115
+ "@tsparticles/interaction-external-grab": "4.0.0-beta.16",
116
+ "@tsparticles/interaction-external-parallax": "4.0.0-beta.16",
117
+ "@tsparticles/interaction-external-pause": "4.0.0-beta.16",
118
+ "@tsparticles/interaction-external-push": "4.0.0-beta.16",
119
+ "@tsparticles/interaction-external-remove": "4.0.0-beta.16",
120
+ "@tsparticles/interaction-external-repulse": "4.0.0-beta.16",
121
+ "@tsparticles/interaction-external-slow": "4.0.0-beta.16",
122
+ "@tsparticles/interaction-particles-attract": "4.0.0-beta.16",
123
+ "@tsparticles/interaction-particles-collisions": "4.0.0-beta.16",
124
+ "@tsparticles/interaction-particles-links": "4.0.0-beta.16",
125
+ "@tsparticles/plugin-easing-quad": "4.0.0-beta.16",
126
+ "@tsparticles/plugin-interactivity": "4.0.0-beta.16",
127
+ "@tsparticles/shape-emoji": "4.0.0-beta.16",
128
+ "@tsparticles/shape-image": "4.0.0-beta.16",
129
+ "@tsparticles/shape-line": "4.0.0-beta.16",
130
+ "@tsparticles/shape-polygon": "4.0.0-beta.16",
131
+ "@tsparticles/shape-square": "4.0.0-beta.16",
132
+ "@tsparticles/shape-star": "4.0.0-beta.16",
133
+ "@tsparticles/updater-life": "4.0.0-beta.16",
134
+ "@tsparticles/updater-paint": "4.0.0-beta.16",
135
+ "@tsparticles/updater-rotate": "4.0.0-beta.16"
129
136
  },
130
137
  "publishConfig": {
131
138
  "access": "public"