dune-react 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/README.md +49 -0
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/index.js +4 -0
  4. package/dist/_virtual/sha1.js +4 -0
  5. package/dist/_virtual/util.js +4 -0
  6. package/dist/components/index.d.ts +4 -0
  7. package/dist/components/ui-custom/background.d.ts +8 -0
  8. package/dist/components/ui-custom/background.js +51 -0
  9. package/dist/components/ui-custom/cover.d.ts +17 -0
  10. package/dist/components/ui-custom/cover.js +231 -0
  11. package/dist/components/ui-custom/sparkles.d.ts +13 -0
  12. package/dist/components/ui-custom/sparkles.js +418 -0
  13. package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +40 -0
  16. package/dist/node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js +50 -0
  17. package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
  18. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
  19. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
  20. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
  21. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
  22. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
  23. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
  24. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
  25. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
  26. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
  27. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
  28. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
  29. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
  30. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
  31. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
  32. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
  33. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
  34. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
  35. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
  36. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
  37. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
  38. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
  39. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
  40. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
  41. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
  42. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
  43. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
  44. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
  45. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
  46. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
  47. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
  48. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
  49. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
  50. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
  51. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
  52. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
  53. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
  54. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
  55. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
  56. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
  57. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
  58. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
  59. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
  60. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
  61. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
  62. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
  63. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
  64. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
  65. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
  66. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
  67. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
  68. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
  69. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
  70. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
  71. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
  72. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
  73. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
  74. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
  75. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
  76. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
  77. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
  78. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
  79. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
  80. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
  81. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
  82. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
  83. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
  84. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
  85. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
  86. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
  87. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
  88. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
  89. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
  90. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
  91. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
  92. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
  93. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
  94. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
  95. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
  96. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
  97. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
  98. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
  99. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
  100. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
  101. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
  102. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
  103. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
  104. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
  105. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
  106. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
  107. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
  108. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
  109. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
  110. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
  111. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
  112. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
  113. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
  114. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
  115. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
  116. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Options/Classes/Attract.js +38 -0
  117. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
  118. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
  119. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
  120. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Options/Classes/Bounce.js +17 -0
  121. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
  122. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
  123. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
  124. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
  125. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/Bubble.js +20 -0
  126. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleBase.js +39 -0
  127. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleDiv.js +20 -0
  128. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
  129. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
  130. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
  131. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/Connect.js +24 -0
  132. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/ConnectLinks.js +17 -0
  133. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
  134. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
  135. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
  136. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/Grab.js +20 -0
  137. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/GrabLinks.js +29 -0
  138. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
  139. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
  140. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
  141. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
  142. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Options/Classes/Push.js +34 -0
  143. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
  144. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
  145. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Options/Classes/Remove.js +19 -0
  146. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
  147. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
  148. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/Repulse.js +20 -0
  149. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseBase.js +38 -0
  150. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseDiv.js +20 -0
  151. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
  152. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
  153. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Options/Classes/Slow.js +21 -0
  154. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
  155. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
  156. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
  157. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
  158. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
  159. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
  160. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
  161. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
  162. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
  163. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
  164. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
  165. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
  166. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
  167. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
  168. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/Links.js +58 -0
  169. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksShadow.js +25 -0
  170. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksTriangle.js +28 -0
  171. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
  172. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
  173. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
  174. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
  175. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
  176. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
  177. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
  178. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
  179. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
  180. package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
  181. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
  182. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
  183. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
  184. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
  185. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
  186. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
  187. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/Particles.js +18 -0
  188. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/index.js +9 -0
  189. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
  190. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
  191. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
  192. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
  193. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
  194. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
  195. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
  196. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
  197. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
  198. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
  199. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
  200. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
  201. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
  202. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
  203. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
  204. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
  205. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
  206. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
  207. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
  208. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
  209. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
  210. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
  211. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
  212. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
  213. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
  214. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
  215. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
  216. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
  217. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
  218. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
  219. package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
  220. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
  221. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
  222. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
  223. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
  224. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
  225. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
  226. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
  227. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
  228. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
  229. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
  230. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
  231. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
  232. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
  233. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
  234. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
  235. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
  236. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
  237. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
  238. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
  239. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
  240. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
  241. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
  242. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
  243. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
  244. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
  245. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  246. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
  247. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
  248. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
  249. package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
  250. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
  251. package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
  252. package/dist/utils/css-utils.d.ts +10 -0
  253. package/dist/utils/css-utils.js +17 -0
  254. package/dist/utils/index.d.ts +9 -0
  255. package/dist/utils/storage-qetag.d.ts +22 -0
  256. package/dist/utils/storage-qetag.js +3 -0
  257. package/dist/utils/utils-api.d.ts +17 -0
  258. package/dist/utils/utils-api.js +31 -0
  259. package/dist/utils/utils-canvas.d.ts +30 -0
  260. package/dist/utils/utils-canvas.js +54 -0
  261. package/dist/utils/utils-common.d.ts +6 -0
  262. package/dist/utils/utils-common.js +15 -0
  263. package/dist/utils/utils-image.d.ts +33 -0
  264. package/dist/utils/utils-image.js +57 -0
  265. package/dist/utils/utils-random.d.ts +1 -0
  266. package/dist/utils/utils-random.js +6 -0
  267. package/dist/utils/utils-time.d.ts +49 -0
  268. package/dist/utils/utils-time.js +112 -0
  269. package/package.json +81 -0
@@ -0,0 +1,58 @@
1
+ import { setRangeValue, randomInRange, getRangeValue } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
2
+ import { millisecondsToSeconds } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js";
3
+ const noTime = 0, infiniteValue = -1, noLife = 0, minCanvasSize = 0;
4
+ function updateLife(particle, delta, canvasSize) {
5
+ if (!particle.life) {
6
+ return;
7
+ }
8
+ const life = particle.life;
9
+ let justSpawned = false;
10
+ if (particle.spawning) {
11
+ life.delayTime += delta.value;
12
+ if (life.delayTime >= particle.life.delay) {
13
+ justSpawned = true;
14
+ particle.spawning = false;
15
+ life.delayTime = noTime;
16
+ life.time = noTime;
17
+ } else {
18
+ return;
19
+ }
20
+ }
21
+ if (life.duration === infiniteValue) {
22
+ return;
23
+ }
24
+ if (particle.spawning) {
25
+ return;
26
+ }
27
+ if (justSpawned) {
28
+ life.time = noTime;
29
+ } else {
30
+ life.time += delta.value;
31
+ }
32
+ if (life.time < life.duration) {
33
+ return;
34
+ }
35
+ life.time = noTime;
36
+ if (particle.life.count > noLife) {
37
+ particle.life.count--;
38
+ }
39
+ if (particle.life.count === noLife) {
40
+ particle.destroy();
41
+ return;
42
+ }
43
+ const widthRange = setRangeValue(minCanvasSize, canvasSize.width), heightRange = setRangeValue(minCanvasSize, canvasSize.width);
44
+ particle.position.x = randomInRange(widthRange);
45
+ particle.position.y = randomInRange(heightRange);
46
+ particle.spawning = true;
47
+ life.delayTime = noTime;
48
+ life.time = noTime;
49
+ particle.reset();
50
+ const lifeOptions = particle.options.life;
51
+ if (lifeOptions) {
52
+ life.delay = getRangeValue(lifeOptions.delay.value) * millisecondsToSeconds;
53
+ life.duration = getRangeValue(lifeOptions.duration.value) * millisecondsToSeconds;
54
+ }
55
+ }
56
+ export {
57
+ updateLife
58
+ };
@@ -0,0 +1,10 @@
1
+ import { LifeUpdater } from "./LifeUpdater.js";
2
+ async function loadLifeUpdater(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addParticleUpdater("life", async (container) => {
5
+ return Promise.resolve(new LifeUpdater(container));
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadLifeUpdater
10
+ };
@@ -0,0 +1,38 @@
1
+ import { initParticleNumericAnimationValue, updateAnimation } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
2
+ import { percentDenominator } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js";
3
+ import { getRangeValue, getRandom } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
4
+ class OpacityUpdater {
5
+ constructor(container) {
6
+ this.container = container;
7
+ }
8
+ init(particle) {
9
+ const opacityOptions = particle.options.opacity, pxRatio = 1;
10
+ particle.opacity = initParticleNumericAnimationValue(opacityOptions, pxRatio);
11
+ const opacityAnimation = opacityOptions.animation;
12
+ if (opacityAnimation.enable) {
13
+ particle.opacity.velocity = getRangeValue(opacityAnimation.speed) / percentDenominator * this.container.retina.reduceFactor;
14
+ if (!opacityAnimation.sync) {
15
+ particle.opacity.velocity *= getRandom();
16
+ }
17
+ }
18
+ }
19
+ isEnabled(particle) {
20
+ const none = 0;
21
+ return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));
22
+ }
23
+ reset(particle) {
24
+ if (particle.opacity) {
25
+ particle.opacity.time = 0;
26
+ particle.opacity.loops = 0;
27
+ }
28
+ }
29
+ update(particle, delta) {
30
+ if (!this.isEnabled(particle) || !particle.opacity) {
31
+ return;
32
+ }
33
+ updateAnimation(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);
34
+ }
35
+ }
36
+ export {
37
+ OpacityUpdater
38
+ };
@@ -0,0 +1,10 @@
1
+ import { OpacityUpdater } from "./OpacityUpdater.js";
2
+ async function loadOpacityUpdater(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addParticleUpdater("opacity", (container) => {
5
+ return Promise.resolve(new OpacityUpdater(container));
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadOpacityUpdater
10
+ };
@@ -0,0 +1,36 @@
1
+ import { bounceHorizontal, bounceVertical } from "./Utils.js";
2
+ import { calculateBounds } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
3
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
4
+ class BounceOutMode {
5
+ constructor(container) {
6
+ this.container = container;
7
+ this.modes = [
8
+ OutMode.bounce,
9
+ OutMode.split
10
+ ];
11
+ }
12
+ update(particle, direction, delta, outMode) {
13
+ if (!this.modes.includes(outMode)) {
14
+ return;
15
+ }
16
+ const container = this.container;
17
+ let handled = false;
18
+ for (const plugin of container.plugins.values()) {
19
+ if (plugin.particleBounce !== void 0) {
20
+ handled = plugin.particleBounce(particle, delta, direction);
21
+ }
22
+ if (handled) {
23
+ break;
24
+ }
25
+ }
26
+ if (handled) {
27
+ return;
28
+ }
29
+ const pos = particle.getPosition(), offset = particle.offset, size = particle.getRadius(), bounds = calculateBounds(pos, size), canvasSize = container.canvas.size;
30
+ bounceHorizontal({ particle, outMode, direction, bounds, canvasSize, offset, size });
31
+ bounceVertical({ particle, outMode, direction, bounds, canvasSize, offset, size });
32
+ }
33
+ }
34
+ export {
35
+ BounceOutMode
36
+ };
@@ -0,0 +1,37 @@
1
+ import { ParticleOutType } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js";
2
+ import { isPointInside } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
3
+ import { Vector } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js";
4
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
5
+ import { getDistances } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
6
+ const minVelocity = 0;
7
+ class DestroyOutMode {
8
+ constructor(container) {
9
+ this.container = container;
10
+ this.modes = [OutMode.destroy];
11
+ }
12
+ update(particle, direction, _delta, outMode) {
13
+ if (!this.modes.includes(outMode)) {
14
+ return;
15
+ }
16
+ const container = this.container;
17
+ switch (particle.outType) {
18
+ case ParticleOutType.normal:
19
+ case ParticleOutType.outside:
20
+ if (isPointInside(particle.position, container.canvas.size, Vector.origin, particle.getRadius(), direction)) {
21
+ return;
22
+ }
23
+ break;
24
+ case ParticleOutType.inside: {
25
+ const { dx, dy } = getDistances(particle.position, particle.moveCenter), { x: vx, y: vy } = particle.velocity;
26
+ if (vx < minVelocity && dx > particle.moveCenter.radius || vy < minVelocity && dy > particle.moveCenter.radius || vx >= minVelocity && dx < -particle.moveCenter.radius || vy >= minVelocity && dy < -particle.moveCenter.radius) {
27
+ return;
28
+ }
29
+ break;
30
+ }
31
+ }
32
+ container.particles.remove(particle, particle.group, true);
33
+ }
34
+ }
35
+ export {
36
+ DestroyOutMode
37
+ };
@@ -0,0 +1,36 @@
1
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
2
+ import { OutModeDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js";
3
+ import { isPointInside } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
4
+ import { Vector } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js";
5
+ const minVelocity = 0;
6
+ class NoneOutMode {
7
+ constructor(container) {
8
+ this.container = container;
9
+ this.modes = [OutMode.none];
10
+ }
11
+ update(particle, direction, delta, outMode) {
12
+ if (!this.modes.includes(outMode)) {
13
+ return;
14
+ }
15
+ if ((particle.options.move.distance.horizontal && (direction === OutModeDirection.left || direction === OutModeDirection.right)) ?? (particle.options.move.distance.vertical && (direction === OutModeDirection.top || direction === OutModeDirection.bottom))) {
16
+ return;
17
+ }
18
+ const gravityOptions = particle.options.move.gravity, container = this.container, canvasSize = container.canvas.size, pRadius = particle.getRadius();
19
+ if (!gravityOptions.enable) {
20
+ if (particle.velocity.y > minVelocity && particle.position.y <= canvasSize.height + pRadius || particle.velocity.y < minVelocity && particle.position.y >= -pRadius || particle.velocity.x > minVelocity && particle.position.x <= canvasSize.width + pRadius || particle.velocity.x < minVelocity && particle.position.x >= -pRadius) {
21
+ return;
22
+ }
23
+ if (!isPointInside(particle.position, container.canvas.size, Vector.origin, pRadius, direction)) {
24
+ container.particles.remove(particle);
25
+ }
26
+ } else {
27
+ const position = particle.position;
28
+ if (!gravityOptions.inverse && position.y > canvasSize.height + pRadius && direction === OutModeDirection.bottom || gravityOptions.inverse && position.y < -pRadius && direction === OutModeDirection.top) {
29
+ container.particles.remove(particle);
30
+ }
31
+ }
32
+ }
33
+ }
34
+ export {
35
+ NoneOutMode
36
+ };
@@ -0,0 +1,45 @@
1
+ import { BounceOutMode } from "./BounceOutMode.js";
2
+ import { DestroyOutMode } from "./DestroyOutMode.js";
3
+ import { NoneOutMode } from "./NoneOutMode.js";
4
+ import { OutOutMode } from "./OutOutMode.js";
5
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
6
+ import { OutModeDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js";
7
+ const checkOutMode = (outModes, outMode) => {
8
+ return outModes.default === outMode || outModes.bottom === outMode || outModes.left === outMode || outModes.right === outMode || outModes.top === outMode;
9
+ };
10
+ class OutOfCanvasUpdater {
11
+ constructor(container) {
12
+ this._addUpdaterIfMissing = (particle, outMode, getUpdater) => {
13
+ const outModes = particle.options.move.outModes;
14
+ if (!this.updaters.has(outMode) && checkOutMode(outModes, outMode)) {
15
+ this.updaters.set(outMode, getUpdater(this.container));
16
+ }
17
+ };
18
+ this._updateOutMode = (particle, delta, outMode, direction) => {
19
+ for (const updater of this.updaters.values()) {
20
+ updater.update(particle, direction, delta, outMode);
21
+ }
22
+ };
23
+ this.container = container;
24
+ this.updaters = /* @__PURE__ */ new Map();
25
+ }
26
+ init(particle) {
27
+ this._addUpdaterIfMissing(particle, OutMode.bounce, (container) => new BounceOutMode(container));
28
+ this._addUpdaterIfMissing(particle, OutMode.out, (container) => new OutOutMode(container));
29
+ this._addUpdaterIfMissing(particle, OutMode.destroy, (container) => new DestroyOutMode(container));
30
+ this._addUpdaterIfMissing(particle, OutMode.none, (container) => new NoneOutMode(container));
31
+ }
32
+ isEnabled(particle) {
33
+ return !particle.destroyed && !particle.spawning;
34
+ }
35
+ update(particle, delta) {
36
+ const outModes = particle.options.move.outModes;
37
+ this._updateOutMode(particle, delta, outModes.bottom ?? outModes.default, OutModeDirection.bottom);
38
+ this._updateOutMode(particle, delta, outModes.left ?? outModes.default, OutModeDirection.left);
39
+ this._updateOutMode(particle, delta, outModes.right ?? outModes.default, OutModeDirection.right);
40
+ this._updateOutMode(particle, delta, outModes.top ?? outModes.default, OutModeDirection.top);
41
+ }
42
+ }
43
+ export {
44
+ OutOfCanvasUpdater
45
+ };
@@ -0,0 +1,110 @@
1
+ import { getRandom, randomInRange, getDistances } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
2
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
3
+ import { isPointInside, calculateBounds } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
4
+ import { Vector } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js";
5
+ import { ParticleOutType } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js";
6
+ import { OutModeDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js";
7
+ const minVelocity = 0, minDistance = 0;
8
+ class OutOutMode {
9
+ constructor(container) {
10
+ this.container = container;
11
+ this.modes = [OutMode.out];
12
+ }
13
+ update(particle, direction, delta, outMode) {
14
+ if (!this.modes.includes(outMode)) {
15
+ return;
16
+ }
17
+ const container = this.container;
18
+ switch (particle.outType) {
19
+ case ParticleOutType.inside: {
20
+ const { x: vx, y: vy } = particle.velocity;
21
+ const circVec = Vector.origin;
22
+ circVec.length = particle.moveCenter.radius;
23
+ circVec.angle = particle.velocity.angle + Math.PI;
24
+ circVec.addTo(Vector.create(particle.moveCenter));
25
+ const { dx, dy } = getDistances(particle.position, circVec);
26
+ if (vx <= minVelocity && dx >= minDistance || vy <= minVelocity && dy >= minDistance || vx >= minVelocity && dx <= minDistance || vy >= minVelocity && dy <= minDistance) {
27
+ return;
28
+ }
29
+ particle.position.x = Math.floor(randomInRange({
30
+ min: 0,
31
+ max: container.canvas.size.width
32
+ }));
33
+ particle.position.y = Math.floor(randomInRange({
34
+ min: 0,
35
+ max: container.canvas.size.height
36
+ }));
37
+ const { dx: newDx, dy: newDy } = getDistances(particle.position, particle.moveCenter);
38
+ particle.direction = Math.atan2(-newDy, -newDx);
39
+ particle.velocity.angle = particle.direction;
40
+ break;
41
+ }
42
+ default: {
43
+ if (isPointInside(particle.position, container.canvas.size, Vector.origin, particle.getRadius(), direction)) {
44
+ return;
45
+ }
46
+ switch (particle.outType) {
47
+ case ParticleOutType.outside: {
48
+ particle.position.x = Math.floor(randomInRange({
49
+ min: -particle.moveCenter.radius,
50
+ max: particle.moveCenter.radius
51
+ })) + particle.moveCenter.x;
52
+ particle.position.y = Math.floor(randomInRange({
53
+ min: -particle.moveCenter.radius,
54
+ max: particle.moveCenter.radius
55
+ })) + particle.moveCenter.y;
56
+ const { dx, dy } = getDistances(particle.position, particle.moveCenter);
57
+ if (particle.moveCenter.radius) {
58
+ particle.direction = Math.atan2(dy, dx);
59
+ particle.velocity.angle = particle.direction;
60
+ }
61
+ break;
62
+ }
63
+ case ParticleOutType.normal: {
64
+ const warp = particle.options.move.warp, canvasSize = container.canvas.size, newPos = {
65
+ bottom: canvasSize.height + particle.getRadius() + particle.offset.y,
66
+ left: -particle.getRadius() - particle.offset.x,
67
+ right: canvasSize.width + particle.getRadius() + particle.offset.x,
68
+ top: -particle.getRadius() - particle.offset.y
69
+ }, sizeValue = particle.getRadius(), nextBounds = calculateBounds(particle.position, sizeValue);
70
+ if (direction === OutModeDirection.right && nextBounds.left > canvasSize.width + particle.offset.x) {
71
+ particle.position.x = newPos.left;
72
+ particle.initialPosition.x = particle.position.x;
73
+ if (!warp) {
74
+ particle.position.y = getRandom() * canvasSize.height;
75
+ particle.initialPosition.y = particle.position.y;
76
+ }
77
+ } else if (direction === OutModeDirection.left && nextBounds.right < -particle.offset.x) {
78
+ particle.position.x = newPos.right;
79
+ particle.initialPosition.x = particle.position.x;
80
+ if (!warp) {
81
+ particle.position.y = getRandom() * canvasSize.height;
82
+ particle.initialPosition.y = particle.position.y;
83
+ }
84
+ }
85
+ if (direction === OutModeDirection.bottom && nextBounds.top > canvasSize.height + particle.offset.y) {
86
+ if (!warp) {
87
+ particle.position.x = getRandom() * canvasSize.width;
88
+ particle.initialPosition.x = particle.position.x;
89
+ }
90
+ particle.position.y = newPos.top;
91
+ particle.initialPosition.y = particle.position.y;
92
+ } else if (direction === OutModeDirection.top && nextBounds.bottom < -particle.offset.y) {
93
+ if (!warp) {
94
+ particle.position.x = getRandom() * canvasSize.width;
95
+ particle.initialPosition.x = particle.position.x;
96
+ }
97
+ particle.position.y = newPos.bottom;
98
+ particle.initialPosition.y = particle.position.y;
99
+ }
100
+ break;
101
+ }
102
+ }
103
+ break;
104
+ }
105
+ }
106
+ }
107
+ }
108
+ export {
109
+ OutOutMode
110
+ };
@@ -0,0 +1,66 @@
1
+ import { OutMode } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js";
2
+ import { OutModeDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js";
3
+ import { getRangeValue } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
4
+ const minVelocity = 0, boundsMin = 0;
5
+ function bounceHorizontal(data) {
6
+ if (data.outMode !== OutMode.bounce && data.outMode !== OutMode.split || data.direction !== OutModeDirection.left && data.direction !== OutModeDirection.right) {
7
+ return;
8
+ }
9
+ if (data.bounds.right < boundsMin && data.direction === OutModeDirection.left) {
10
+ data.particle.position.x = data.size + data.offset.x;
11
+ } else if (data.bounds.left > data.canvasSize.width && data.direction === OutModeDirection.right) {
12
+ data.particle.position.x = data.canvasSize.width - data.size - data.offset.x;
13
+ }
14
+ const velocity = data.particle.velocity.x;
15
+ let bounced = false;
16
+ if (data.direction === OutModeDirection.right && data.bounds.right >= data.canvasSize.width && velocity > minVelocity || data.direction === OutModeDirection.left && data.bounds.left <= boundsMin && velocity < minVelocity) {
17
+ const newVelocity = getRangeValue(data.particle.options.bounce.horizontal.value);
18
+ data.particle.velocity.x *= -newVelocity;
19
+ bounced = true;
20
+ }
21
+ if (!bounced) {
22
+ return;
23
+ }
24
+ const minPos = data.offset.x + data.size;
25
+ if (data.bounds.right >= data.canvasSize.width && data.direction === OutModeDirection.right) {
26
+ data.particle.position.x = data.canvasSize.width - minPos;
27
+ } else if (data.bounds.left <= boundsMin && data.direction === OutModeDirection.left) {
28
+ data.particle.position.x = minPos;
29
+ }
30
+ if (data.outMode === OutMode.split) {
31
+ data.particle.destroy();
32
+ }
33
+ }
34
+ function bounceVertical(data) {
35
+ if (data.outMode !== OutMode.bounce && data.outMode !== OutMode.split || data.direction !== OutModeDirection.bottom && data.direction !== OutModeDirection.top) {
36
+ return;
37
+ }
38
+ if (data.bounds.bottom < boundsMin && data.direction === OutModeDirection.top) {
39
+ data.particle.position.y = data.size + data.offset.y;
40
+ } else if (data.bounds.top > data.canvasSize.height && data.direction === OutModeDirection.bottom) {
41
+ data.particle.position.y = data.canvasSize.height - data.size - data.offset.y;
42
+ }
43
+ const velocity = data.particle.velocity.y;
44
+ let bounced = false;
45
+ if (data.direction === OutModeDirection.bottom && data.bounds.bottom >= data.canvasSize.height && velocity > minVelocity || data.direction === OutModeDirection.top && data.bounds.top <= boundsMin && velocity < minVelocity) {
46
+ const newVelocity = getRangeValue(data.particle.options.bounce.vertical.value);
47
+ data.particle.velocity.y *= -newVelocity;
48
+ bounced = true;
49
+ }
50
+ if (!bounced) {
51
+ return;
52
+ }
53
+ const minPos = data.offset.y + data.size;
54
+ if (data.bounds.bottom >= data.canvasSize.height && data.direction === OutModeDirection.bottom) {
55
+ data.particle.position.y = data.canvasSize.height - minPos;
56
+ } else if (data.bounds.top <= boundsMin && data.direction === OutModeDirection.top) {
57
+ data.particle.position.y = minPos;
58
+ }
59
+ if (data.outMode === OutMode.split) {
60
+ data.particle.destroy();
61
+ }
62
+ }
63
+ export {
64
+ bounceHorizontal,
65
+ bounceVertical
66
+ };
@@ -0,0 +1,10 @@
1
+ import { OutOfCanvasUpdater } from "./OutOfCanvasUpdater.js";
2
+ async function loadOutModesUpdater(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addParticleUpdater("outModes", (container) => {
5
+ return Promise.resolve(new OutOfCanvasUpdater(container));
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadOutModesUpdater
10
+ };
@@ -0,0 +1,29 @@
1
+ import { RotateAnimation } from "./RotateAnimation.js";
2
+ import { ValueWithRandom } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js";
3
+ import { RotateDirection } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js";
4
+ import { isNull } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js";
5
+ class Rotate extends ValueWithRandom {
6
+ constructor() {
7
+ super();
8
+ this.animation = new RotateAnimation();
9
+ this.direction = RotateDirection.clockwise;
10
+ this.path = false;
11
+ this.value = 0;
12
+ }
13
+ load(data) {
14
+ if (isNull(data)) {
15
+ return;
16
+ }
17
+ super.load(data);
18
+ if (data.direction !== void 0) {
19
+ this.direction = data.direction;
20
+ }
21
+ this.animation.load(data.animation);
22
+ if (data.path !== void 0) {
23
+ this.path = data.path;
24
+ }
25
+ }
26
+ }
27
+ export {
28
+ Rotate
29
+ };
@@ -0,0 +1,30 @@
1
+ import { isNull } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js";
2
+ import { setRangeValue } from "../../../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
3
+ class RotateAnimation {
4
+ constructor() {
5
+ this.enable = false;
6
+ this.speed = 0;
7
+ this.decay = 0;
8
+ this.sync = false;
9
+ }
10
+ load(data) {
11
+ if (isNull(data)) {
12
+ return;
13
+ }
14
+ if (data.enable !== void 0) {
15
+ this.enable = data.enable;
16
+ }
17
+ if (data.speed !== void 0) {
18
+ this.speed = setRangeValue(data.speed);
19
+ }
20
+ if (data.decay !== void 0) {
21
+ this.decay = setRangeValue(data.decay);
22
+ }
23
+ if (data.sync !== void 0) {
24
+ this.sync = data.sync;
25
+ }
26
+ }
27
+ }
28
+ export {
29
+ RotateAnimation
30
+ };
@@ -0,0 +1,77 @@
1
+ import { Rotate } from "./Options/Classes/Rotate.js";
2
+ import { AnimationStatus } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js";
3
+ import { DestroyType } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js";
4
+ import { degToRad, getRangeValue, getRandom } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
5
+ import { RotateDirection } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js";
6
+ import { updateAnimation } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
7
+ const double = 2, doublePI = Math.PI * double, identity = 1, doublePIDeg = 360;
8
+ class RotateUpdater {
9
+ constructor(container) {
10
+ this.container = container;
11
+ }
12
+ init(particle) {
13
+ const rotateOptions = particle.options.rotate;
14
+ if (!rotateOptions) {
15
+ return;
16
+ }
17
+ particle.rotate = {
18
+ enable: rotateOptions.animation.enable,
19
+ value: degToRad(getRangeValue(rotateOptions.value)),
20
+ min: 0,
21
+ max: doublePI
22
+ };
23
+ particle.pathRotation = rotateOptions.path;
24
+ let rotateDirection = rotateOptions.direction;
25
+ if (rotateDirection === RotateDirection.random) {
26
+ const index = Math.floor(getRandom() * double), minIndex = 0;
27
+ rotateDirection = index > minIndex ? RotateDirection.counterClockwise : RotateDirection.clockwise;
28
+ }
29
+ switch (rotateDirection) {
30
+ case RotateDirection.counterClockwise:
31
+ case "counterClockwise":
32
+ particle.rotate.status = AnimationStatus.decreasing;
33
+ break;
34
+ case RotateDirection.clockwise:
35
+ particle.rotate.status = AnimationStatus.increasing;
36
+ break;
37
+ }
38
+ const rotateAnimation = rotateOptions.animation;
39
+ if (rotateAnimation.enable) {
40
+ particle.rotate.decay = identity - getRangeValue(rotateAnimation.decay);
41
+ particle.rotate.velocity = getRangeValue(rotateAnimation.speed) / doublePIDeg * this.container.retina.reduceFactor;
42
+ if (!rotateAnimation.sync) {
43
+ particle.rotate.velocity *= getRandom();
44
+ }
45
+ }
46
+ particle.rotation = particle.rotate.value;
47
+ }
48
+ isEnabled(particle) {
49
+ const rotate = particle.options.rotate;
50
+ if (!rotate) {
51
+ return false;
52
+ }
53
+ return !particle.destroyed && !particle.spawning && (!!rotate.value || rotate.animation.enable || rotate.path);
54
+ }
55
+ loadOptions(options, ...sources) {
56
+ if (!options.rotate) {
57
+ options.rotate = new Rotate();
58
+ }
59
+ for (const source of sources) {
60
+ options.rotate.load(source == null ? void 0 : source.rotate);
61
+ }
62
+ }
63
+ update(particle, delta) {
64
+ if (!this.isEnabled(particle)) {
65
+ return;
66
+ }
67
+ particle.isRotating = !!particle.rotate;
68
+ if (!particle.rotate) {
69
+ return;
70
+ }
71
+ updateAnimation(particle, particle.rotate, false, DestroyType.none, delta);
72
+ particle.rotation = particle.rotate.value;
73
+ }
74
+ }
75
+ export {
76
+ RotateUpdater
77
+ };
@@ -0,0 +1,10 @@
1
+ import { RotateUpdater } from "./RotateUpdater.js";
2
+ async function loadRotateUpdater(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addParticleUpdater("rotate", (container) => {
5
+ return Promise.resolve(new RotateUpdater(container));
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadRotateUpdater
10
+ };
@@ -0,0 +1,30 @@
1
+ import { percentDenominator } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js";
2
+ import { getRandom } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js";
3
+ import { updateAnimation } from "../../../../../@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js";
4
+ const minLoops = 0;
5
+ class SizeUpdater {
6
+ init(particle) {
7
+ const container = particle.container, sizeOptions = particle.options.size, sizeAnimation = sizeOptions.animation;
8
+ if (sizeAnimation.enable) {
9
+ particle.size.velocity = (particle.retina.sizeAnimationSpeed ?? container.retina.sizeAnimationSpeed) / percentDenominator * container.retina.reduceFactor;
10
+ if (!sizeAnimation.sync) {
11
+ particle.size.velocity *= getRandom();
12
+ }
13
+ }
14
+ }
15
+ isEnabled(particle) {
16
+ return !particle.destroyed && !particle.spawning && particle.size.enable && ((particle.size.maxLoops ?? minLoops) <= minLoops || (particle.size.maxLoops ?? minLoops) > minLoops && (particle.size.loops ?? minLoops) < (particle.size.maxLoops ?? minLoops));
17
+ }
18
+ reset(particle) {
19
+ particle.size.loops = minLoops;
20
+ }
21
+ update(particle, delta) {
22
+ if (!this.isEnabled(particle)) {
23
+ return;
24
+ }
25
+ updateAnimation(particle, particle.size, true, particle.options.size.animation.destroy, delta);
26
+ }
27
+ }
28
+ export {
29
+ SizeUpdater
30
+ };
@@ -0,0 +1,10 @@
1
+ import { SizeUpdater } from "./SizeUpdater.js";
2
+ async function loadSizeUpdater(engine, refresh = true) {
3
+ engine.checkVersion("3.9.1");
4
+ await engine.addParticleUpdater("size", () => {
5
+ return Promise.resolve(new SizeUpdater());
6
+ }, refresh);
7
+ }
8
+ export {
9
+ loadSizeUpdater
10
+ };