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.
- package/README.md +49 -0
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/sha1.js +4 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/ui-custom/background.d.ts +8 -0
- package/dist/components/ui-custom/background.js +51 -0
- package/dist/components/ui-custom/cover.d.ts +17 -0
- package/dist/components/ui-custom/cover.js +231 -0
- package/dist/components/ui-custom/sparkles.d.ts +13 -0
- package/dist/components/ui-custom/sparkles.js +418 -0
- package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +40 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
- 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
- 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
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
- package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
- package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
- package/dist/utils/css-utils.d.ts +10 -0
- package/dist/utils/css-utils.js +17 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/storage-qetag.d.ts +22 -0
- package/dist/utils/storage-qetag.js +3 -0
- package/dist/utils/utils-api.d.ts +17 -0
- package/dist/utils/utils-api.js +31 -0
- package/dist/utils/utils-canvas.d.ts +30 -0
- package/dist/utils/utils-canvas.js +54 -0
- package/dist/utils/utils-common.d.ts +6 -0
- package/dist/utils/utils-common.js +15 -0
- package/dist/utils/utils-image.d.ts +33 -0
- package/dist/utils/utils-image.js +57 -0
- package/dist/utils/utils-random.d.ts +1 -0
- package/dist/utils/utils-random.js +6 -0
- package/dist/utils/utils-time.d.ts +49 -0
- package/dist/utils/utils-time.js +112 -0
- package/package.json +81 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
class Modes {
|
|
3
|
+
constructor(engine, container) {
|
|
4
|
+
this._engine = engine;
|
|
5
|
+
this._container = container;
|
|
6
|
+
}
|
|
7
|
+
load(data) {
|
|
8
|
+
if (isNull(data)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (!this._container) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const interactors = this._engine.interactors.get(this._container);
|
|
15
|
+
if (!interactors) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
for (const interactor of interactors) {
|
|
19
|
+
if (!interactor.loadModeOptions) {
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
interactor.loadModeOptions(this, data);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
Modes
|
|
28
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PixelMode } from "../../Enums/Modes/PixelMode.js";
|
|
2
|
+
import { deepExtend } from "../../Utils/Utils.js";
|
|
3
|
+
import { isNull } from "../../Utils/TypeUtils.js";
|
|
4
|
+
import { manualDefaultPosition } from "../../Core/Utils/Constants.js";
|
|
5
|
+
class ManualParticle {
|
|
6
|
+
load(data) {
|
|
7
|
+
if (isNull(data)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (data.position) {
|
|
11
|
+
this.position = {
|
|
12
|
+
x: data.position.x ?? manualDefaultPosition,
|
|
13
|
+
y: data.position.y ?? manualDefaultPosition,
|
|
14
|
+
mode: data.position.mode ?? PixelMode.percent
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
if (data.options) {
|
|
18
|
+
this.options = deepExtend({}, data.options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
ManualParticle
|
|
24
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { executeOnSingleOrMultiple, deepExtend, safeMatchMedia } from "../../Utils/Utils.js";
|
|
2
|
+
import { isNull, isBoolean } from "../../Utils/TypeUtils.js";
|
|
3
|
+
import { Background } from "./Background/Background.js";
|
|
4
|
+
import { BackgroundMask } from "./BackgroundMask/BackgroundMask.js";
|
|
5
|
+
import { FullScreen } from "./FullScreen/FullScreen.js";
|
|
6
|
+
import { Interactivity } from "./Interactivity/Interactivity.js";
|
|
7
|
+
import { ManualParticle } from "./ManualParticle.js";
|
|
8
|
+
import { Responsive } from "./Responsive.js";
|
|
9
|
+
import { ResponsiveMode } from "../../Enums/Modes/ResponsiveMode.js";
|
|
10
|
+
import { Theme } from "./Theme/Theme.js";
|
|
11
|
+
import { ThemeMode } from "../../Enums/Modes/ThemeMode.js";
|
|
12
|
+
import { loadParticlesOptions } from "../../Utils/OptionsUtils.js";
|
|
13
|
+
import { setRangeValue } from "../../Utils/NumberUtils.js";
|
|
14
|
+
class Options {
|
|
15
|
+
constructor(engine, container) {
|
|
16
|
+
this._findDefaultTheme = (mode) => {
|
|
17
|
+
return this.themes.find((theme) => theme.default.value && theme.default.mode === mode) ?? this.themes.find((theme) => theme.default.value && theme.default.mode === ThemeMode.any);
|
|
18
|
+
};
|
|
19
|
+
this._importPreset = (preset) => {
|
|
20
|
+
this.load(this._engine.getPreset(preset));
|
|
21
|
+
};
|
|
22
|
+
this._engine = engine;
|
|
23
|
+
this._container = container;
|
|
24
|
+
this.autoPlay = true;
|
|
25
|
+
this.background = new Background();
|
|
26
|
+
this.backgroundMask = new BackgroundMask();
|
|
27
|
+
this.clear = true;
|
|
28
|
+
this.defaultThemes = {};
|
|
29
|
+
this.delay = 0;
|
|
30
|
+
this.fullScreen = new FullScreen();
|
|
31
|
+
this.detectRetina = true;
|
|
32
|
+
this.duration = 0;
|
|
33
|
+
this.fpsLimit = 120;
|
|
34
|
+
this.interactivity = new Interactivity(engine, container);
|
|
35
|
+
this.manualParticles = [];
|
|
36
|
+
this.particles = loadParticlesOptions(this._engine, this._container);
|
|
37
|
+
this.pauseOnBlur = true;
|
|
38
|
+
this.pauseOnOutsideViewport = true;
|
|
39
|
+
this.responsive = [];
|
|
40
|
+
this.smooth = false;
|
|
41
|
+
this.style = {};
|
|
42
|
+
this.themes = [];
|
|
43
|
+
this.zLayers = 100;
|
|
44
|
+
}
|
|
45
|
+
load(data) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
if (isNull(data)) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (data.preset !== void 0) {
|
|
51
|
+
executeOnSingleOrMultiple(data.preset, (preset) => this._importPreset(preset));
|
|
52
|
+
}
|
|
53
|
+
if (data.autoPlay !== void 0) {
|
|
54
|
+
this.autoPlay = data.autoPlay;
|
|
55
|
+
}
|
|
56
|
+
if (data.clear !== void 0) {
|
|
57
|
+
this.clear = data.clear;
|
|
58
|
+
}
|
|
59
|
+
if (data.key !== void 0) {
|
|
60
|
+
this.key = data.key;
|
|
61
|
+
}
|
|
62
|
+
if (data.name !== void 0) {
|
|
63
|
+
this.name = data.name;
|
|
64
|
+
}
|
|
65
|
+
if (data.delay !== void 0) {
|
|
66
|
+
this.delay = setRangeValue(data.delay);
|
|
67
|
+
}
|
|
68
|
+
const detectRetina = data.detectRetina;
|
|
69
|
+
if (detectRetina !== void 0) {
|
|
70
|
+
this.detectRetina = detectRetina;
|
|
71
|
+
}
|
|
72
|
+
if (data.duration !== void 0) {
|
|
73
|
+
this.duration = setRangeValue(data.duration);
|
|
74
|
+
}
|
|
75
|
+
const fpsLimit = data.fpsLimit;
|
|
76
|
+
if (fpsLimit !== void 0) {
|
|
77
|
+
this.fpsLimit = fpsLimit;
|
|
78
|
+
}
|
|
79
|
+
if (data.pauseOnBlur !== void 0) {
|
|
80
|
+
this.pauseOnBlur = data.pauseOnBlur;
|
|
81
|
+
}
|
|
82
|
+
if (data.pauseOnOutsideViewport !== void 0) {
|
|
83
|
+
this.pauseOnOutsideViewport = data.pauseOnOutsideViewport;
|
|
84
|
+
}
|
|
85
|
+
if (data.zLayers !== void 0) {
|
|
86
|
+
this.zLayers = data.zLayers;
|
|
87
|
+
}
|
|
88
|
+
this.background.load(data.background);
|
|
89
|
+
const fullScreen = data.fullScreen;
|
|
90
|
+
if (isBoolean(fullScreen)) {
|
|
91
|
+
this.fullScreen.enable = fullScreen;
|
|
92
|
+
} else {
|
|
93
|
+
this.fullScreen.load(fullScreen);
|
|
94
|
+
}
|
|
95
|
+
this.backgroundMask.load(data.backgroundMask);
|
|
96
|
+
this.interactivity.load(data.interactivity);
|
|
97
|
+
if (data.manualParticles) {
|
|
98
|
+
this.manualParticles = data.manualParticles.map((t) => {
|
|
99
|
+
const tmp = new ManualParticle();
|
|
100
|
+
tmp.load(t);
|
|
101
|
+
return tmp;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
this.particles.load(data.particles);
|
|
105
|
+
this.style = deepExtend(this.style, data.style);
|
|
106
|
+
this._engine.loadOptions(this, data);
|
|
107
|
+
if (data.smooth !== void 0) {
|
|
108
|
+
this.smooth = data.smooth;
|
|
109
|
+
}
|
|
110
|
+
const interactors = this._engine.interactors.get(this._container);
|
|
111
|
+
if (interactors) {
|
|
112
|
+
for (const interactor of interactors) {
|
|
113
|
+
if (interactor.loadOptions) {
|
|
114
|
+
interactor.loadOptions(this, data);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (data.responsive !== void 0) {
|
|
119
|
+
for (const responsive of data.responsive) {
|
|
120
|
+
const optResponsive = new Responsive();
|
|
121
|
+
optResponsive.load(responsive);
|
|
122
|
+
this.responsive.push(optResponsive);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
this.responsive.sort((a, b) => a.maxWidth - b.maxWidth);
|
|
126
|
+
if (data.themes !== void 0) {
|
|
127
|
+
for (const theme of data.themes) {
|
|
128
|
+
const existingTheme = this.themes.find((t) => t.name === theme.name);
|
|
129
|
+
if (!existingTheme) {
|
|
130
|
+
const optTheme = new Theme();
|
|
131
|
+
optTheme.load(theme);
|
|
132
|
+
this.themes.push(optTheme);
|
|
133
|
+
} else {
|
|
134
|
+
existingTheme.load(theme);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
this.defaultThemes.dark = (_a = this._findDefaultTheme(ThemeMode.dark)) == null ? void 0 : _a.name;
|
|
139
|
+
this.defaultThemes.light = (_b = this._findDefaultTheme(ThemeMode.light)) == null ? void 0 : _b.name;
|
|
140
|
+
}
|
|
141
|
+
setResponsive(width, pxRatio, defaultOptions) {
|
|
142
|
+
this.load(defaultOptions);
|
|
143
|
+
const responsiveOptions = this.responsive.find((t) => t.mode === ResponsiveMode.screen && screen ? t.maxWidth > screen.availWidth : t.maxWidth * pxRatio > width);
|
|
144
|
+
this.load(responsiveOptions == null ? void 0 : responsiveOptions.options);
|
|
145
|
+
return responsiveOptions == null ? void 0 : responsiveOptions.maxWidth;
|
|
146
|
+
}
|
|
147
|
+
setTheme(name) {
|
|
148
|
+
if (name) {
|
|
149
|
+
const chosenTheme = this.themes.find((theme) => theme.name === name);
|
|
150
|
+
if (chosenTheme) {
|
|
151
|
+
this.load(chosenTheme.options);
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
const mediaMatch = safeMatchMedia("(prefers-color-scheme: dark)"), clientDarkMode = mediaMatch == null ? void 0 : mediaMatch.matches, defaultTheme = this._findDefaultTheme(clientDarkMode ? ThemeMode.dark : ThemeMode.light);
|
|
155
|
+
if (defaultTheme) {
|
|
156
|
+
this.load(defaultTheme.options);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export {
|
|
162
|
+
Options
|
|
163
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isString, isArray, isNull } from "../../Utils/TypeUtils.js";
|
|
2
|
+
class OptionsColor {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.value = "";
|
|
5
|
+
}
|
|
6
|
+
static create(source, data) {
|
|
7
|
+
const color = new OptionsColor();
|
|
8
|
+
color.load(source);
|
|
9
|
+
if (data !== void 0) {
|
|
10
|
+
if (isString(data) || isArray(data)) {
|
|
11
|
+
color.load({ value: data });
|
|
12
|
+
} else {
|
|
13
|
+
color.load(data);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return color;
|
|
17
|
+
}
|
|
18
|
+
load(data) {
|
|
19
|
+
if (isNull(data)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!isNull(data.value)) {
|
|
23
|
+
this.value = data.value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
OptionsColor
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ParticlesBounceFactor } from "./ParticlesBounceFactor.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class ParticlesBounce {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.horizontal = new ParticlesBounceFactor();
|
|
6
|
+
this.vertical = new ParticlesBounceFactor();
|
|
7
|
+
}
|
|
8
|
+
load(data) {
|
|
9
|
+
if (isNull(data)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
this.horizontal.load(data.horizontal);
|
|
13
|
+
this.vertical.load(data.vertical);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
ParticlesBounce
|
|
18
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CollisionMode } from "../../../../Enums/Modes/CollisionMode.js";
|
|
2
|
+
import { CollisionsAbsorb } from "./CollisionsAbsorb.js";
|
|
3
|
+
import { CollisionsOverlap } from "./CollisionsOverlap.js";
|
|
4
|
+
import { ParticlesBounce } from "../Bounce/ParticlesBounce.js";
|
|
5
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
6
|
+
import { setRangeValue } from "../../../../Utils/NumberUtils.js";
|
|
7
|
+
class Collisions {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.absorb = new CollisionsAbsorb();
|
|
10
|
+
this.bounce = new ParticlesBounce();
|
|
11
|
+
this.enable = false;
|
|
12
|
+
this.maxSpeed = 50;
|
|
13
|
+
this.mode = CollisionMode.bounce;
|
|
14
|
+
this.overlap = new CollisionsOverlap();
|
|
15
|
+
}
|
|
16
|
+
load(data) {
|
|
17
|
+
if (isNull(data)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
this.absorb.load(data.absorb);
|
|
21
|
+
this.bounce.load(data.bounce);
|
|
22
|
+
if (data.enable !== void 0) {
|
|
23
|
+
this.enable = data.enable;
|
|
24
|
+
}
|
|
25
|
+
if (data.maxSpeed !== void 0) {
|
|
26
|
+
this.maxSpeed = setRangeValue(data.maxSpeed);
|
|
27
|
+
}
|
|
28
|
+
if (data.mode !== void 0) {
|
|
29
|
+
this.mode = data.mode;
|
|
30
|
+
}
|
|
31
|
+
this.overlap.load(data.overlap);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
Collisions
|
|
36
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
class CollisionsAbsorb {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.speed = 2;
|
|
5
|
+
}
|
|
6
|
+
load(data) {
|
|
7
|
+
if (isNull(data)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (data.speed !== void 0) {
|
|
11
|
+
this.speed = data.speed;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
CollisionsAbsorb
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
class CollisionsOverlap {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.enable = true;
|
|
5
|
+
this.retries = 0;
|
|
6
|
+
}
|
|
7
|
+
load(data) {
|
|
8
|
+
if (isNull(data)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (data.enable !== void 0) {
|
|
12
|
+
this.enable = data.enable;
|
|
13
|
+
}
|
|
14
|
+
if (data.retries !== void 0) {
|
|
15
|
+
this.retries = data.retries;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
CollisionsOverlap
|
|
21
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { deepExtend } from "../../../../Utils/Utils.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class Effect {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.close = true;
|
|
6
|
+
this.fill = true;
|
|
7
|
+
this.options = {};
|
|
8
|
+
this.type = [];
|
|
9
|
+
}
|
|
10
|
+
load(data) {
|
|
11
|
+
if (isNull(data)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const options = data.options;
|
|
15
|
+
if (options !== void 0) {
|
|
16
|
+
for (const effect in options) {
|
|
17
|
+
const item = options[effect];
|
|
18
|
+
if (item) {
|
|
19
|
+
this.options[effect] = deepExtend(this.options[effect] ?? {}, item);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (data.close !== void 0) {
|
|
24
|
+
this.close = data.close;
|
|
25
|
+
}
|
|
26
|
+
if (data.fill !== void 0) {
|
|
27
|
+
this.fill = data.fill;
|
|
28
|
+
}
|
|
29
|
+
if (data.type !== void 0) {
|
|
30
|
+
this.type = data.type;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
Effect
|
|
36
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { MoveDirection } from "../../../../Enums/Directions/MoveDirection.js";
|
|
2
|
+
import { isNull, isNumber, isObject } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
import { MoveAngle } from "./MoveAngle.js";
|
|
4
|
+
import { MoveAttract } from "./MoveAttract.js";
|
|
5
|
+
import { MoveCenter } from "./MoveCenter.js";
|
|
6
|
+
import { MoveGravity } from "./MoveGravity.js";
|
|
7
|
+
import { MovePath } from "./Path/MovePath.js";
|
|
8
|
+
import { MoveTrail } from "./MoveTrail.js";
|
|
9
|
+
import { OutModes } from "./OutModes.js";
|
|
10
|
+
import { Spin } from "./Spin.js";
|
|
11
|
+
import { setRangeValue } from "../../../../Utils/NumberUtils.js";
|
|
12
|
+
class Move {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.angle = new MoveAngle();
|
|
15
|
+
this.attract = new MoveAttract();
|
|
16
|
+
this.center = new MoveCenter();
|
|
17
|
+
this.decay = 0;
|
|
18
|
+
this.distance = {};
|
|
19
|
+
this.direction = MoveDirection.none;
|
|
20
|
+
this.drift = 0;
|
|
21
|
+
this.enable = false;
|
|
22
|
+
this.gravity = new MoveGravity();
|
|
23
|
+
this.path = new MovePath();
|
|
24
|
+
this.outModes = new OutModes();
|
|
25
|
+
this.random = false;
|
|
26
|
+
this.size = false;
|
|
27
|
+
this.speed = 2;
|
|
28
|
+
this.spin = new Spin();
|
|
29
|
+
this.straight = false;
|
|
30
|
+
this.trail = new MoveTrail();
|
|
31
|
+
this.vibrate = false;
|
|
32
|
+
this.warp = false;
|
|
33
|
+
}
|
|
34
|
+
load(data) {
|
|
35
|
+
if (isNull(data)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.angle.load(isNumber(data.angle) ? { value: data.angle } : data.angle);
|
|
39
|
+
this.attract.load(data.attract);
|
|
40
|
+
this.center.load(data.center);
|
|
41
|
+
if (data.decay !== void 0) {
|
|
42
|
+
this.decay = setRangeValue(data.decay);
|
|
43
|
+
}
|
|
44
|
+
if (data.direction !== void 0) {
|
|
45
|
+
this.direction = data.direction;
|
|
46
|
+
}
|
|
47
|
+
if (data.distance !== void 0) {
|
|
48
|
+
this.distance = isNumber(data.distance) ? {
|
|
49
|
+
horizontal: data.distance,
|
|
50
|
+
vertical: data.distance
|
|
51
|
+
} : { ...data.distance };
|
|
52
|
+
}
|
|
53
|
+
if (data.drift !== void 0) {
|
|
54
|
+
this.drift = setRangeValue(data.drift);
|
|
55
|
+
}
|
|
56
|
+
if (data.enable !== void 0) {
|
|
57
|
+
this.enable = data.enable;
|
|
58
|
+
}
|
|
59
|
+
this.gravity.load(data.gravity);
|
|
60
|
+
const outModes = data.outModes;
|
|
61
|
+
if (outModes !== void 0) {
|
|
62
|
+
if (isObject(outModes)) {
|
|
63
|
+
this.outModes.load(outModes);
|
|
64
|
+
} else {
|
|
65
|
+
this.outModes.load({
|
|
66
|
+
default: outModes
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
this.path.load(data.path);
|
|
71
|
+
if (data.random !== void 0) {
|
|
72
|
+
this.random = data.random;
|
|
73
|
+
}
|
|
74
|
+
if (data.size !== void 0) {
|
|
75
|
+
this.size = data.size;
|
|
76
|
+
}
|
|
77
|
+
if (data.speed !== void 0) {
|
|
78
|
+
this.speed = setRangeValue(data.speed);
|
|
79
|
+
}
|
|
80
|
+
this.spin.load(data.spin);
|
|
81
|
+
if (data.straight !== void 0) {
|
|
82
|
+
this.straight = data.straight;
|
|
83
|
+
}
|
|
84
|
+
this.trail.load(data.trail);
|
|
85
|
+
if (data.vibrate !== void 0) {
|
|
86
|
+
this.vibrate = data.vibrate;
|
|
87
|
+
}
|
|
88
|
+
if (data.warp !== void 0) {
|
|
89
|
+
this.warp = data.warp;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
Move
|
|
95
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
import { setRangeValue } from "../../../../Utils/NumberUtils.js";
|
|
3
|
+
class MoveAngle {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.offset = 0;
|
|
6
|
+
this.value = 90;
|
|
7
|
+
}
|
|
8
|
+
load(data) {
|
|
9
|
+
if (isNull(data)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (data.offset !== void 0) {
|
|
13
|
+
this.offset = setRangeValue(data.offset);
|
|
14
|
+
}
|
|
15
|
+
if (data.value !== void 0) {
|
|
16
|
+
this.value = setRangeValue(data.value);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
MoveAngle
|
|
22
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
import { setRangeValue } from "../../../../Utils/NumberUtils.js";
|
|
3
|
+
class MoveAttract {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.distance = 200;
|
|
6
|
+
this.enable = false;
|
|
7
|
+
this.rotate = {
|
|
8
|
+
x: 3e3,
|
|
9
|
+
y: 3e3
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
load(data) {
|
|
13
|
+
if (isNull(data)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (data.distance !== void 0) {
|
|
17
|
+
this.distance = setRangeValue(data.distance);
|
|
18
|
+
}
|
|
19
|
+
if (data.enable !== void 0) {
|
|
20
|
+
this.enable = data.enable;
|
|
21
|
+
}
|
|
22
|
+
if (data.rotate) {
|
|
23
|
+
const rotateX = data.rotate.x;
|
|
24
|
+
if (rotateX !== void 0) {
|
|
25
|
+
this.rotate.x = rotateX;
|
|
26
|
+
}
|
|
27
|
+
const rotateY = data.rotate.y;
|
|
28
|
+
if (rotateY !== void 0) {
|
|
29
|
+
this.rotate.y = rotateY;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
MoveAttract
|
|
36
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PixelMode } from "../../../../Enums/Modes/PixelMode.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class MoveCenter {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.x = 50;
|
|
6
|
+
this.y = 50;
|
|
7
|
+
this.mode = PixelMode.percent;
|
|
8
|
+
this.radius = 0;
|
|
9
|
+
}
|
|
10
|
+
load(data) {
|
|
11
|
+
if (isNull(data)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (data.x !== void 0) {
|
|
15
|
+
this.x = data.x;
|
|
16
|
+
}
|
|
17
|
+
if (data.y !== void 0) {
|
|
18
|
+
this.y = data.y;
|
|
19
|
+
}
|
|
20
|
+
if (data.mode !== void 0) {
|
|
21
|
+
this.mode = data.mode;
|
|
22
|
+
}
|
|
23
|
+
if (data.radius !== void 0) {
|
|
24
|
+
this.radius = data.radius;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
MoveCenter
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
2
|
+
import { setRangeValue } from "../../../../Utils/NumberUtils.js";
|
|
3
|
+
class MoveGravity {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.acceleration = 9.81;
|
|
6
|
+
this.enable = false;
|
|
7
|
+
this.inverse = false;
|
|
8
|
+
this.maxSpeed = 50;
|
|
9
|
+
}
|
|
10
|
+
load(data) {
|
|
11
|
+
if (isNull(data)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (data.acceleration !== void 0) {
|
|
15
|
+
this.acceleration = setRangeValue(data.acceleration);
|
|
16
|
+
}
|
|
17
|
+
if (data.enable !== void 0) {
|
|
18
|
+
this.enable = data.enable;
|
|
19
|
+
}
|
|
20
|
+
if (data.inverse !== void 0) {
|
|
21
|
+
this.inverse = data.inverse;
|
|
22
|
+
}
|
|
23
|
+
if (data.maxSpeed !== void 0) {
|
|
24
|
+
this.maxSpeed = setRangeValue(data.maxSpeed);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
MoveGravity
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MoveTrailFill } from "./MoveTrailFill.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class MoveTrail {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.enable = false;
|
|
6
|
+
this.length = 10;
|
|
7
|
+
this.fill = new MoveTrailFill();
|
|
8
|
+
}
|
|
9
|
+
load(data) {
|
|
10
|
+
if (isNull(data)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (data.enable !== void 0) {
|
|
14
|
+
this.enable = data.enable;
|
|
15
|
+
}
|
|
16
|
+
if (data.fill !== void 0) {
|
|
17
|
+
this.fill.load(data.fill);
|
|
18
|
+
}
|
|
19
|
+
if (data.length !== void 0) {
|
|
20
|
+
this.length = data.length;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
MoveTrail
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OptionsColor } from "../../OptionsColor.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class MoveTrailFill {
|
|
4
|
+
load(data) {
|
|
5
|
+
if (isNull(data)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (data.color !== void 0) {
|
|
9
|
+
this.color = OptionsColor.create(this.color, data.color);
|
|
10
|
+
}
|
|
11
|
+
if (data.image !== void 0) {
|
|
12
|
+
this.image = data.image;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
MoveTrailFill
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OutMode } from "../../../../Enums/Modes/OutMode.js";
|
|
2
|
+
import { isNull } from "../../../../Utils/TypeUtils.js";
|
|
3
|
+
class OutModes {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.default = OutMode.out;
|
|
6
|
+
}
|
|
7
|
+
load(data) {
|
|
8
|
+
if (isNull(data)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (data.default !== void 0) {
|
|
12
|
+
this.default = data.default;
|
|
13
|
+
}
|
|
14
|
+
this.bottom = data.bottom ?? data.default;
|
|
15
|
+
this.left = data.left ?? data.default;
|
|
16
|
+
this.right = data.right ?? data.default;
|
|
17
|
+
this.top = data.top ?? data.default;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
OutModes
|
|
22
|
+
};
|