@3driseai/3drise-viewer 0.1.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/dist/components/AnimatedObject.d.ts +22 -0
- package/dist/components/AnimatedObject.d.ts.map +1 -0
- package/dist/components/AnimatedObject.js +65 -0
- package/dist/components/Bubbles.d.ts +9 -0
- package/dist/components/Bubbles.d.ts.map +1 -0
- package/dist/components/Bubbles.js +105 -0
- package/dist/components/CameraController.d.ts +10 -0
- package/dist/components/CameraController.d.ts.map +1 -0
- package/dist/components/CameraController.js +158 -0
- package/dist/components/Clouds.d.ts +9 -0
- package/dist/components/Clouds.d.ts.map +1 -0
- package/dist/components/Clouds.js +278 -0
- package/dist/components/Corona.d.ts +18 -0
- package/dist/components/Corona.d.ts.map +1 -0
- package/dist/components/Corona.js +12 -0
- package/dist/components/CreatedObject.d.ts +14 -0
- package/dist/components/CreatedObject.d.ts.map +1 -0
- package/dist/components/CreatedObject.js +103 -0
- package/dist/components/CustomPrimitive.d.ts +12 -0
- package/dist/components/CustomPrimitive.d.ts.map +1 -0
- package/dist/components/CustomPrimitive.js +87 -0
- package/dist/components/Earth.d.ts +8 -0
- package/dist/components/Earth.d.ts.map +1 -0
- package/dist/components/Earth.js +38 -0
- package/dist/components/EffectsGenerator.d.ts +10 -0
- package/dist/components/EffectsGenerator.d.ts.map +1 -0
- package/dist/components/EffectsGenerator.js +71 -0
- package/dist/components/EffectsGroup.d.ts +8 -0
- package/dist/components/EffectsGroup.d.ts.map +1 -0
- package/dist/components/EffectsGroup.js +11 -0
- package/dist/components/EnvironmentManager.d.ts +9 -0
- package/dist/components/EnvironmentManager.d.ts.map +1 -0
- package/dist/components/EnvironmentManager.js +74 -0
- package/dist/components/EnvironmentObject.d.ts +8 -0
- package/dist/components/EnvironmentObject.d.ts.map +1 -0
- package/dist/components/EnvironmentObject.js +14 -0
- package/dist/components/Flares.d.ts +24 -0
- package/dist/components/Flares.d.ts.map +1 -0
- package/dist/components/Flares.js +134 -0
- package/dist/components/Frame.d.ts +23 -0
- package/dist/components/Frame.d.ts.map +1 -0
- package/dist/components/Frame.js +55 -0
- package/dist/components/FrameGeometry.d.ts +10 -0
- package/dist/components/FrameGeometry.d.ts.map +1 -0
- package/dist/components/FrameGeometry.js +17 -0
- package/dist/components/FrameImage.d.ts +2 -0
- package/dist/components/FrameImage.d.ts.map +1 -0
- package/dist/components/FrameImage.js +15 -0
- package/dist/components/Galaxy.d.ts +10 -0
- package/dist/components/Galaxy.d.ts.map +1 -0
- package/dist/components/Galaxy.js +29 -0
- package/dist/components/GalleryLayout.d.ts +12 -0
- package/dist/components/GalleryLayout.d.ts.map +1 -0
- package/dist/components/GalleryLayout.js +20 -0
- package/dist/components/GeometryShape.d.ts +54 -0
- package/dist/components/GeometryShape.d.ts.map +1 -0
- package/dist/components/GeometryShape.js +318 -0
- package/dist/components/Glyphs.d.ts +9 -0
- package/dist/components/Glyphs.d.ts.map +1 -0
- package/dist/components/Glyphs.js +58 -0
- package/dist/components/GridHelper.d.ts +23 -0
- package/dist/components/GridHelper.d.ts.map +1 -0
- package/dist/components/GridHelper.js +36 -0
- package/dist/components/GridsGenerator.d.ts +10 -0
- package/dist/components/GridsGenerator.d.ts.map +1 -0
- package/dist/components/GridsGenerator.js +14 -0
- package/dist/components/HdrPlaylistRenderer.d.ts +10 -0
- package/dist/components/HdrPlaylistRenderer.d.ts.map +1 -0
- package/dist/components/HdrPlaylistRenderer.js +364 -0
- package/dist/components/ImageGeometry.d.ts +13 -0
- package/dist/components/ImageGeometry.d.ts.map +1 -0
- package/dist/components/ImageGeometry.js +62 -0
- package/dist/components/Lensflare.d.ts +12 -0
- package/dist/components/Lensflare.d.ts.map +1 -0
- package/dist/components/Lensflare.js +66 -0
- package/dist/components/Letter.d.ts +19 -0
- package/dist/components/Letter.d.ts.map +1 -0
- package/dist/components/Letter.js +83 -0
- package/dist/components/Letters.d.ts +16 -0
- package/dist/components/Letters.d.ts.map +1 -0
- package/dist/components/Letters.js +18 -0
- package/dist/components/LightObject.d.ts +8 -0
- package/dist/components/LightObject.d.ts.map +1 -0
- package/dist/components/LightObject.js +65 -0
- package/dist/components/LightsManager.d.ts +8 -0
- package/dist/components/LightsManager.d.ts.map +1 -0
- package/dist/components/LightsManager.js +104 -0
- package/dist/components/Lines.d.ts +9 -0
- package/dist/components/Lines.d.ts.map +1 -0
- package/dist/components/Lines.js +19 -0
- package/dist/components/LoadingIndicator.d.ts +10 -0
- package/dist/components/LoadingIndicator.d.ts.map +1 -0
- package/dist/components/LoadingIndicator.js +6 -0
- package/dist/components/MaterialLibrary.d.ts +9 -0
- package/dist/components/MaterialLibrary.d.ts.map +1 -0
- package/dist/components/MaterialLibrary.js +57 -0
- package/dist/components/Moon.d.ts +13 -0
- package/dist/components/Moon.d.ts.map +1 -0
- package/dist/components/Moon.js +66 -0
- package/dist/components/MyGrid.d.ts +15 -0
- package/dist/components/MyGrid.d.ts.map +1 -0
- package/dist/components/MyGrid.js +72 -0
- package/dist/components/ObjectNode.d.ts +13 -0
- package/dist/components/ObjectNode.d.ts.map +1 -0
- package/dist/components/ObjectNode.js +139 -0
- package/dist/components/ObjectNodeApi.d.ts +13 -0
- package/dist/components/ObjectNodeApi.d.ts.map +1 -0
- package/dist/components/ObjectNodeApi.js +18 -0
- package/dist/components/ObjectsRenderer.d.ts +15 -0
- package/dist/components/ObjectsRenderer.d.ts.map +1 -0
- package/dist/components/ObjectsRenderer.js +40 -0
- package/dist/components/ObjectsRendererApi.d.ts +31 -0
- package/dist/components/ObjectsRendererApi.d.ts.map +1 -0
- package/dist/components/ObjectsRendererApi.js +76 -0
- package/dist/components/Ocean.d.ts +8 -0
- package/dist/components/Ocean.d.ts.map +1 -0
- package/dist/components/Ocean.js +169 -0
- package/dist/components/Outline.d.ts +21 -0
- package/dist/components/Outline.d.ts.map +1 -0
- package/dist/components/Outline.js +14 -0
- package/dist/components/ParticlesR3f.d.ts +11 -0
- package/dist/components/ParticlesR3f.d.ts.map +1 -0
- package/dist/components/ParticlesR3f.js +110 -0
- package/dist/components/Path.d.ts +13 -0
- package/dist/components/Path.d.ts.map +1 -0
- package/dist/components/Path.js +41 -0
- package/dist/components/PathGeometry.d.ts +11 -0
- package/dist/components/PathGeometry.d.ts.map +1 -0
- package/dist/components/PathGeometry.js +109 -0
- package/dist/components/PathRenderer.d.ts +12 -0
- package/dist/components/PathRenderer.d.ts.map +1 -0
- package/dist/components/PathRenderer.js +36 -0
- package/dist/components/Planet.d.ts +16 -0
- package/dist/components/Planet.d.ts.map +1 -0
- package/dist/components/Planet.js +60 -0
- package/dist/components/PointCloud.d.ts +10 -0
- package/dist/components/PointCloud.d.ts.map +1 -0
- package/dist/components/PointCloud.js +113 -0
- package/dist/components/ProductionScene.d.ts +5 -0
- package/dist/components/ProductionScene.d.ts.map +1 -0
- package/dist/components/ProductionScene.js +7 -0
- package/dist/components/ProjectLoader.d.ts +16 -0
- package/dist/components/ProjectLoader.d.ts.map +1 -0
- package/dist/components/ProjectLoader.js +85 -0
- package/dist/components/Rain.d.ts +8 -0
- package/dist/components/Rain.d.ts.map +1 -0
- package/dist/components/Rain.js +259 -0
- package/dist/components/RiseLogo.d.ts +19 -0
- package/dist/components/RiseLogo.d.ts.map +1 -0
- package/dist/components/RiseLogo.js +75 -0
- package/dist/components/SceneBuilder.d.ts +5 -0
- package/dist/components/SceneBuilder.d.ts.map +1 -0
- package/dist/components/SceneBuilder.js +133 -0
- package/dist/components/SceneFog.d.ts +8 -0
- package/dist/components/SceneFog.d.ts.map +1 -0
- package/dist/components/SceneFog.js +19 -0
- package/dist/components/Shape.d.ts +5 -0
- package/dist/components/Shape.d.ts.map +1 -0
- package/dist/components/Shape.js +11 -0
- package/dist/components/ShootingStar.d.ts +16 -0
- package/dist/components/ShootingStar.d.ts.map +1 -0
- package/dist/components/ShootingStar.js +92 -0
- package/dist/components/ShootingStars.d.ts +8 -0
- package/dist/components/ShootingStars.d.ts.map +1 -0
- package/dist/components/ShootingStars.js +41 -0
- package/dist/components/SkyController.d.ts +10 -0
- package/dist/components/SkyController.d.ts.map +1 -0
- package/dist/components/SkyController.js +208 -0
- package/dist/components/SkyMesh.d.ts +10 -0
- package/dist/components/SkyMesh.d.ts.map +1 -0
- package/dist/components/SkyMesh.js +36 -0
- package/dist/components/SkySystem.d.ts +32 -0
- package/dist/components/SkySystem.d.ts.map +1 -0
- package/dist/components/SkySystem.js +46 -0
- package/dist/components/Skybox.d.ts +12 -0
- package/dist/components/Skybox.d.ts.map +1 -0
- package/dist/components/Skybox.js +92 -0
- package/dist/components/SolarSystem.d.ts +8 -0
- package/dist/components/SolarSystem.d.ts.map +1 -0
- package/dist/components/SolarSystem.js +77 -0
- package/dist/components/SparklesBurst.d.ts +9 -0
- package/dist/components/SparklesBurst.d.ts.map +1 -0
- package/dist/components/SparklesBurst.js +62 -0
- package/dist/components/Stars.d.ts +15 -0
- package/dist/components/Stars.d.ts.map +1 -0
- package/dist/components/Stars.js +250 -0
- package/dist/components/Sun.d.ts +15 -0
- package/dist/components/Sun.d.ts.map +1 -0
- package/dist/components/Sun.js +7 -0
- package/dist/components/SunCore.d.ts +18 -0
- package/dist/components/SunCore.d.ts.map +1 -0
- package/dist/components/SunCore.js +14 -0
- package/dist/components/SunLight.d.ts +15 -0
- package/dist/components/SunLight.d.ts.map +1 -0
- package/dist/components/SunLight.js +57 -0
- package/dist/components/Text2D.d.ts +9 -0
- package/dist/components/Text2D.d.ts.map +1 -0
- package/dist/components/Text2D.js +56 -0
- package/dist/components/Text3D.d.ts +10 -0
- package/dist/components/Text3D.d.ts.map +1 -0
- package/dist/components/Text3D.js +8 -0
- package/dist/components/VolumePoints.d.ts +19 -0
- package/dist/components/VolumePoints.d.ts.map +1 -0
- package/dist/components/VolumePoints.js +8 -0
- package/dist/components/cursor/AuraCursor.d.ts +6 -0
- package/dist/components/cursor/AuraCursor.d.ts.map +1 -0
- package/dist/components/cursor/AuraCursor.js +30 -0
- package/dist/components/cursor/AuroraCursor.d.ts +6 -0
- package/dist/components/cursor/AuroraCursor.d.ts.map +1 -0
- package/dist/components/cursor/AuroraCursor.js +207 -0
- package/dist/components/cursor/BubblesCursor.d.ts +6 -0
- package/dist/components/cursor/BubblesCursor.d.ts.map +1 -0
- package/dist/components/cursor/BubblesCursor.js +184 -0
- package/dist/components/cursor/CometCursor.d.ts +6 -0
- package/dist/components/cursor/CometCursor.d.ts.map +1 -0
- package/dist/components/cursor/CometCursor.js +191 -0
- package/dist/components/cursor/CrosshairCursor.d.ts +6 -0
- package/dist/components/cursor/CrosshairCursor.d.ts.map +1 -0
- package/dist/components/cursor/CrosshairCursor.js +142 -0
- package/dist/components/cursor/CursorActions.d.ts +8 -0
- package/dist/components/cursor/CursorActions.d.ts.map +1 -0
- package/dist/components/cursor/CursorActions.js +124 -0
- package/dist/components/cursor/CursorController.d.ts +10 -0
- package/dist/components/cursor/CursorController.d.ts.map +1 -0
- package/dist/components/cursor/CursorController.js +5 -0
- package/dist/components/cursor/CursorEffects.d.ts +16 -0
- package/dist/components/cursor/CursorEffects.d.ts.map +1 -0
- package/dist/components/cursor/CursorEffects.js +110 -0
- package/dist/components/cursor/FerrofluidCursor.d.ts +6 -0
- package/dist/components/cursor/FerrofluidCursor.d.ts.map +1 -0
- package/dist/components/cursor/FerrofluidCursor.js +102 -0
- package/dist/components/cursor/GlyphRingCursor.d.ts +6 -0
- package/dist/components/cursor/GlyphRingCursor.d.ts.map +1 -0
- package/dist/components/cursor/GlyphRingCursor.js +123 -0
- package/dist/components/cursor/LightningCursor.d.ts +6 -0
- package/dist/components/cursor/LightningCursor.d.ts.map +1 -0
- package/dist/components/cursor/LightningCursor.js +28 -0
- package/dist/components/cursor/LiquidMetalCursor.d.ts +6 -0
- package/dist/components/cursor/LiquidMetalCursor.d.ts.map +1 -0
- package/dist/components/cursor/LiquidMetalCursor.js +61 -0
- package/dist/components/cursor/OrbCursor.d.ts +6 -0
- package/dist/components/cursor/OrbCursor.d.ts.map +1 -0
- package/dist/components/cursor/OrbCursor.js +32 -0
- package/dist/components/cursor/PlasmaWhipCursor.d.ts +6 -0
- package/dist/components/cursor/PlasmaWhipCursor.d.ts.map +1 -0
- package/dist/components/cursor/PlasmaWhipCursor.js +134 -0
- package/dist/components/cursor/SparklesCursor.d.ts +6 -0
- package/dist/components/cursor/SparklesCursor.d.ts.map +1 -0
- package/dist/components/cursor/SparklesCursor.js +151 -0
- package/dist/components/cursor/TeslaCursor.d.ts +6 -0
- package/dist/components/cursor/TeslaCursor.d.ts.map +1 -0
- package/dist/components/cursor/TeslaCursor.js +223 -0
- package/dist/components/cursor/clickActions/BoltFlashAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/BoltFlashAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/BoltFlashAction.js +62 -0
- package/dist/components/cursor/clickActions/GlyphInscriptionAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/GlyphInscriptionAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/GlyphInscriptionAction.js +114 -0
- package/dist/components/cursor/clickActions/ImplosionAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/ImplosionAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/ImplosionAction.js +93 -0
- package/dist/components/cursor/clickActions/PhaseShiftAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/PhaseShiftAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/PhaseShiftAction.js +71 -0
- package/dist/components/cursor/clickActions/PlasmaBombAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/PlasmaBombAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/PlasmaBombAction.js +98 -0
- package/dist/components/cursor/clickActions/RealityTearAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/RealityTearAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/RealityTearAction.js +92 -0
- package/dist/components/cursor/clickActions/ShockwaveAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/ShockwaveAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/ShockwaveAction.js +55 -0
- package/dist/components/cursor/clickActions/SparklesBurstAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/SparklesBurstAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/SparklesBurstAction.js +99 -0
- package/dist/components/cursor/clickActions/VoronoiFractureAction.d.ts +11 -0
- package/dist/components/cursor/clickActions/VoronoiFractureAction.d.ts.map +1 -0
- package/dist/components/cursor/clickActions/VoronoiFractureAction.js +149 -0
- package/dist/components/effects/AuraEffect.d.ts +10 -0
- package/dist/components/effects/AuraEffect.d.ts.map +1 -0
- package/dist/components/effects/AuraEffect.js +127 -0
- package/dist/components/effects/AuroraEffect.d.ts +10 -0
- package/dist/components/effects/AuroraEffect.d.ts.map +1 -0
- package/dist/components/effects/AuroraEffect.js +112 -0
- package/dist/components/effects/BlackHoleEffect.d.ts +10 -0
- package/dist/components/effects/BlackHoleEffect.d.ts.map +1 -0
- package/dist/components/effects/BlackHoleEffect.js +193 -0
- package/dist/components/effects/ConstellationEffect.d.ts +10 -0
- package/dist/components/effects/ConstellationEffect.d.ts.map +1 -0
- package/dist/components/effects/ConstellationEffect.js +189 -0
- package/dist/components/effects/DataStreamEffect.d.ts +10 -0
- package/dist/components/effects/DataStreamEffect.d.ts.map +1 -0
- package/dist/components/effects/DataStreamEffect.js +138 -0
- package/dist/components/effects/DnaHelixEffect.d.ts +10 -0
- package/dist/components/effects/DnaHelixEffect.d.ts.map +1 -0
- package/dist/components/effects/DnaHelixEffect.js +311 -0
- package/dist/components/effects/Fire.d.ts +20 -0
- package/dist/components/effects/Fire.d.ts.map +1 -0
- package/dist/components/effects/Fire.js +208 -0
- package/dist/components/effects/FireEffect.d.ts +10 -0
- package/dist/components/effects/FireEffect.d.ts.map +1 -0
- package/dist/components/effects/FireEffect.js +194 -0
- package/dist/components/effects/ForcefieldEffect.d.ts +10 -0
- package/dist/components/effects/ForcefieldEffect.d.ts.map +1 -0
- package/dist/components/effects/ForcefieldEffect.js +132 -0
- package/dist/components/effects/HologramEffect.d.ts +10 -0
- package/dist/components/effects/HologramEffect.d.ts.map +1 -0
- package/dist/components/effects/HologramEffect.js +143 -0
- package/dist/components/effects/IceCrystalsEffect.d.ts +10 -0
- package/dist/components/effects/IceCrystalsEffect.d.ts.map +1 -0
- package/dist/components/effects/IceCrystalsEffect.js +190 -0
- package/dist/components/effects/LightningEffect.d.ts +10 -0
- package/dist/components/effects/LightningEffect.d.ts.map +1 -0
- package/dist/components/effects/LightningEffect.js +240 -0
- package/dist/components/effects/MoleculesEffect.d.ts +10 -0
- package/dist/components/effects/MoleculesEffect.d.ts.map +1 -0
- package/dist/components/effects/MoleculesEffect.js +173 -0
- package/dist/components/effects/NeuralNetworkEffect.d.ts +10 -0
- package/dist/components/effects/NeuralNetworkEffect.d.ts.map +1 -0
- package/dist/components/effects/NeuralNetworkEffect.js +188 -0
- package/dist/components/effects/OrbEffect.d.ts +10 -0
- package/dist/components/effects/OrbEffect.d.ts.map +1 -0
- package/dist/components/effects/OrbEffect.js +291 -0
- package/dist/components/effects/PortalEffect.d.ts +10 -0
- package/dist/components/effects/PortalEffect.d.ts.map +1 -0
- package/dist/components/effects/PortalEffect.js +191 -0
- package/dist/components/effects/ShockwaveEffect.d.ts +10 -0
- package/dist/components/effects/ShockwaveEffect.d.ts.map +1 -0
- package/dist/components/effects/ShockwaveEffect.js +160 -0
- package/dist/components/effects/SmokePlumeEffect.d.ts +10 -0
- package/dist/components/effects/SmokePlumeEffect.d.ts.map +1 -0
- package/dist/components/effects/SmokePlumeEffect.js +141 -0
- package/dist/components/effects/SmokeRibbon.d.ts +13 -0
- package/dist/components/effects/SmokeRibbon.d.ts.map +1 -0
- package/dist/components/effects/SmokeRibbon.js +69 -0
- package/dist/components/effects/SmokeRingEffect.d.ts +10 -0
- package/dist/components/effects/SmokeRingEffect.d.ts.map +1 -0
- package/dist/components/effects/SmokeRingEffect.js +158 -0
- package/dist/components/effects/VolumetricFogEffect.d.ts +10 -0
- package/dist/components/effects/VolumetricFogEffect.d.ts.map +1 -0
- package/dist/components/effects/VolumetricFogEffect.js +111 -0
- package/dist/components/extractOutline.d.ts +18 -0
- package/dist/components/extractOutline.d.ts.map +1 -0
- package/dist/components/extractOutline.js +47 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +5 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use3driseShader.d.ts +17 -0
- package/dist/hooks/use3driseShader.d.ts.map +1 -0
- package/dist/hooks/use3driseShader.js +100 -0
- package/dist/hooks/useAnimationEvents.d.ts +10 -0
- package/dist/hooks/useAnimationEvents.d.ts.map +1 -0
- package/dist/hooks/useAnimationEvents.js +49 -0
- package/dist/hooks/useCameraAnimation.d.ts +35 -0
- package/dist/hooks/useCameraAnimation.d.ts.map +1 -0
- package/dist/hooks/useCameraAnimation.js +277 -0
- package/dist/hooks/useContinuousEffects.d.ts +15 -0
- package/dist/hooks/useContinuousEffects.d.ts.map +1 -0
- package/dist/hooks/useContinuousEffects.js +177 -0
- package/dist/hooks/useCubeCamera.d.ts +18 -0
- package/dist/hooks/useCubeCamera.d.ts.map +1 -0
- package/dist/hooks/useCubeCamera.js +73 -0
- package/dist/hooks/useEnvironmentEffects.d.ts +12 -0
- package/dist/hooks/useEnvironmentEffects.d.ts.map +1 -0
- package/dist/hooks/useEnvironmentEffects.js +22 -0
- package/dist/hooks/useFrameAnimations.d.ts +24 -0
- package/dist/hooks/useFrameAnimations.d.ts.map +1 -0
- package/dist/hooks/useFrameAnimations.js +217 -0
- package/dist/hooks/useFrameEffects.d.ts +6 -0
- package/dist/hooks/useFrameEffects.d.ts.map +1 -0
- package/dist/hooks/useFrameEffects.js +19 -0
- package/dist/hooks/useGsapAnimation.d.ts +122 -0
- package/dist/hooks/useGsapAnimation.d.ts.map +1 -0
- package/dist/hooks/useGsapAnimation.js +316 -0
- package/dist/hooks/useInteraction.d.ts +12 -0
- package/dist/hooks/useInteraction.d.ts.map +1 -0
- package/dist/hooks/useInteraction.js +273 -0
- package/dist/hooks/useInteractionEffects.d.ts +11 -0
- package/dist/hooks/useInteractionEffects.d.ts.map +1 -0
- package/dist/hooks/useInteractionEffects.js +74 -0
- package/dist/hooks/useKey.d.ts +26 -0
- package/dist/hooks/useKey.d.ts.map +1 -0
- package/dist/hooks/useKey.js +73 -0
- package/dist/hooks/useLightAnimation.d.ts +10 -0
- package/dist/hooks/useLightAnimation.d.ts.map +1 -0
- package/dist/hooks/useLightAnimation.js +34 -0
- package/dist/hooks/useLightHandlers.d.ts +14 -0
- package/dist/hooks/useLightHandlers.d.ts.map +1 -0
- package/dist/hooks/useLightHandlers.js +116 -0
- package/dist/hooks/useLightMouseMove.d.ts +11 -0
- package/dist/hooks/useLightMouseMove.d.ts.map +1 -0
- package/dist/hooks/useLightMouseMove.js +27 -0
- package/dist/hooks/useLightShadow.d.ts +6 -0
- package/dist/hooks/useLightShadow.d.ts.map +1 -0
- package/dist/hooks/useLightShadow.js +63 -0
- package/dist/hooks/useMaterialApplication.d.ts +4 -0
- package/dist/hooks/useMaterialApplication.d.ts.map +1 -0
- package/dist/hooks/useMaterialApplication.js +157 -0
- package/dist/hooks/useMaterialOptions.d.ts +14 -0
- package/dist/hooks/useMaterialOptions.d.ts.map +1 -0
- package/dist/hooks/useMaterialOptions.js +118 -0
- package/dist/hooks/useMaterialUniforms.d.ts +18 -0
- package/dist/hooks/useMaterialUniforms.d.ts.map +1 -0
- package/dist/hooks/useMaterialUniforms.js +96 -0
- package/dist/hooks/useMeshController.d.ts +3 -0
- package/dist/hooks/useMeshController.d.ts.map +1 -0
- package/dist/hooks/useMeshController.js +168 -0
- package/dist/hooks/useMouseHandlers.d.ts +8 -0
- package/dist/hooks/useMouseHandlers.d.ts.map +1 -0
- package/dist/hooks/useMouseHandlers.js +47 -0
- package/dist/hooks/useNumericAnimation.d.ts +5 -0
- package/dist/hooks/useNumericAnimation.d.ts.map +1 -0
- package/dist/hooks/useNumericAnimation.js +42 -0
- package/dist/hooks/useObjectAnimation.d.ts +13 -0
- package/dist/hooks/useObjectAnimation.d.ts.map +1 -0
- package/dist/hooks/useObjectAnimation.js +35 -0
- package/dist/hooks/useObjectEdges.d.ts +3 -0
- package/dist/hooks/useObjectEdges.d.ts.map +1 -0
- package/dist/hooks/useObjectEdges.js +199 -0
- package/dist/hooks/useObjectEffects.d.ts +23 -0
- package/dist/hooks/useObjectEffects.d.ts.map +1 -0
- package/dist/hooks/useObjectEffects.js +162 -0
- package/dist/hooks/useOrbitControls.d.ts +7 -0
- package/dist/hooks/useOrbitControls.d.ts.map +1 -0
- package/dist/hooks/useOrbitControls.js +9 -0
- package/dist/hooks/useOutline.d.ts +9 -0
- package/dist/hooks/useOutline.d.ts.map +1 -0
- package/dist/hooks/useOutline.js +14 -0
- package/dist/hooks/useParticlePositions.d.ts +19 -0
- package/dist/hooks/useParticlePositions.d.ts.map +1 -0
- package/dist/hooks/useParticlePositions.js +56 -0
- package/dist/hooks/useParticlesColors.d.ts +14 -0
- package/dist/hooks/useParticlesColors.d.ts.map +1 -0
- package/dist/hooks/useParticlesColors.js +27 -0
- package/dist/hooks/useParticlesTextures.d.ts +10 -0
- package/dist/hooks/useParticlesTextures.d.ts.map +1 -0
- package/dist/hooks/useParticlesTextures.js +23 -0
- package/dist/hooks/usePathAnimation.d.ts +26 -0
- package/dist/hooks/usePathAnimation.d.ts.map +1 -0
- package/dist/hooks/usePathAnimation.js +130 -0
- package/dist/hooks/useSequenceAnimation.d.ts +14 -0
- package/dist/hooks/useSequenceAnimation.d.ts.map +1 -0
- package/dist/hooks/useSequenceAnimation.js +260 -0
- package/dist/hooks/useShadowApplication.d.ts +3 -0
- package/dist/hooks/useShadowApplication.d.ts.map +1 -0
- package/dist/hooks/useShadowApplication.js +31 -0
- package/dist/hooks/useShapeGeometry.d.ts +8 -0
- package/dist/hooks/useShapeGeometry.d.ts.map +1 -0
- package/dist/hooks/useShapeGeometry.js +12 -0
- package/dist/hooks/useSkyAnimation.d.ts +13 -0
- package/dist/hooks/useSkyAnimation.d.ts.map +1 -0
- package/dist/hooks/useSkyAnimation.js +36 -0
- package/dist/hooks/useSkySystem.d.ts +25 -0
- package/dist/hooks/useSkySystem.d.ts.map +1 -0
- package/dist/hooks/useSkySystem.js +59 -0
- package/dist/hooks/useSkyUniforms.d.ts +18 -0
- package/dist/hooks/useSkyUniforms.d.ts.map +1 -0
- package/dist/hooks/useSkyUniforms.js +71 -0
- package/dist/hooks/useTransformControls.d.ts +6 -0
- package/dist/hooks/useTransformControls.d.ts.map +1 -0
- package/dist/hooks/useTransformControls.js +111 -0
- package/dist/hooks/useVolumePoints.d.ts +9 -0
- package/dist/hooks/useVolumePoints.d.ts.map +1 -0
- package/dist/hooks/useVolumePoints.js +22 -0
- package/dist/hooks/useWaterEnvironment.d.ts +5 -0
- package/dist/hooks/useWaterEnvironment.d.ts.map +1 -0
- package/dist/hooks/useWaterEnvironment.js +27 -0
- package/dist/hooks/useWaterReflections.d.ts +18 -0
- package/dist/hooks/useWaterReflections.d.ts.map +1 -0
- package/dist/hooks/useWaterReflections.js +84 -0
- package/dist/index.d.ts +146 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +119 -0
- package/dist/services/AnimationsManager.d.ts +33 -0
- package/dist/services/AnimationsManager.d.ts.map +1 -0
- package/dist/services/AnimationsManager.js +58 -0
- package/dist/services/FontManager.d.ts +32 -0
- package/dist/services/FontManager.d.ts.map +1 -0
- package/dist/services/FontManager.js +76 -0
- package/dist/services/TexturesManager.d.ts +17 -0
- package/dist/services/TexturesManager.d.ts.map +1 -0
- package/dist/services/TexturesManager.js +48 -0
- package/dist/shaders/RainMaterial.d.ts +34 -0
- package/dist/shaders/RainMaterial.d.ts.map +1 -0
- package/dist/shaders/RainMaterial.js +56 -0
- package/dist/shaders/ShaderEffectsMaterial.d.ts +228 -0
- package/dist/shaders/ShaderEffectsMaterial.d.ts.map +1 -0
- package/dist/shaders/ShaderEffectsMaterial.js +233 -0
- package/dist/shaders/ShootingStarMaterial.d.ts +14 -0
- package/dist/shaders/ShootingStarMaterial.d.ts.map +1 -0
- package/dist/shaders/ShootingStarMaterial.js +33 -0
- package/dist/shaders/SkyboxMaterial.d.ts +38 -0
- package/dist/shaders/SkyboxMaterial.d.ts.map +1 -0
- package/dist/shaders/SkyboxMaterial.js +57 -0
- package/dist/shaders/effects/EffectsVertexFunctions.glsl.d.ts +2 -0
- package/dist/shaders/effects/EffectsVertexFunctions.glsl.d.ts.map +1 -0
- package/dist/shaders/effects/EffectsVertexFunctions.glsl.js +115 -0
- package/dist/utils/CameraSingleton.d.ts +43 -0
- package/dist/utils/CameraSingleton.d.ts.map +1 -0
- package/dist/utils/CameraSingleton.js +199 -0
- package/dist/utils/anchorUtils.d.ts +10 -0
- package/dist/utils/anchorUtils.d.ts.map +1 -0
- package/dist/utils/anchorUtils.js +13 -0
- package/dist/utils/cursorPicking.d.ts +8 -0
- package/dist/utils/cursorPicking.d.ts.map +1 -0
- package/dist/utils/cursorPicking.js +35 -0
- package/dist/utils/extractOutline.d.ts +18 -0
- package/dist/utils/extractOutline.d.ts.map +1 -0
- package/dist/utils/extractOutline.js +47 -0
- package/dist/utils/frameAnimations.d.ts +49 -0
- package/dist/utils/frameAnimations.d.ts.map +1 -0
- package/dist/utils/frameAnimations.js +213 -0
- package/dist/utils/handleGenerativeEffectsAnimations.d.ts +5 -0
- package/dist/utils/handleGenerativeEffectsAnimations.d.ts.map +1 -0
- package/dist/utils/handleGenerativeEffectsAnimations.js +268 -0
- package/dist/utils/hasHoverAnimation.d.ts +3 -0
- package/dist/utils/hasHoverAnimation.d.ts.map +1 -0
- package/dist/utils/hasHoverAnimation.js +15 -0
- package/dist/utils/materialUtils.d.ts +23 -0
- package/dist/utils/materialUtils.d.ts.map +1 -0
- package/dist/utils/materialUtils.js +81 -0
- package/dist/utils/particleAnimations.d.ts +3 -0
- package/dist/utils/particleAnimations.d.ts.map +1 -0
- package/dist/utils/particleAnimations.js +17 -0
- package/dist/utils/sampleVolume.d.ts +21 -0
- package/dist/utils/sampleVolume.d.ts.map +1 -0
- package/dist/utils/sampleVolume.js +44 -0
- package/dist/utils/sceneQuery.d.ts +9 -0
- package/dist/utils/sceneQuery.d.ts.map +1 -0
- package/dist/utils/sceneQuery.js +22 -0
- package/dist/utils/shaderUtils.d.ts +6 -0
- package/dist/utils/shaderUtils.d.ts.map +1 -0
- package/dist/utils/shaderUtils.js +151 -0
- package/dist/utils/shapes.d.ts +74 -0
- package/dist/utils/shapes.d.ts.map +1 -0
- package/dist/utils/shapes.js +443 -0
- package/dist/utils/textEffects.d.ts +31 -0
- package/dist/utils/textEffects.d.ts.map +1 -0
- package/dist/utils/textEffects.js +61 -0
- package/dist/utils/utils3d.d.ts +7 -0
- package/dist/utils/utils3d.d.ts.map +1 -0
- package/dist/utils/utils3d.js +34 -0
- package/package.json +44 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextSettings } from "@3driseai/3drise-core";
|
|
3
|
+
import type { LetterData } from "./Letter";
|
|
4
|
+
export interface Text3DProps {
|
|
5
|
+
textSettings: TextSettings;
|
|
6
|
+
onLetterClick?: (letterData: LetterData) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const Text3D: React.FC<Text3DProps>;
|
|
9
|
+
export default Text3D;
|
|
10
|
+
//# sourceMappingURL=Text3D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text3D.d.ts","sourceRoot":"","sources":["../../src/components/Text3D.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,MAAM,WAAW,WAAW;IACxB,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CACpD;AAGD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAIjC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Letters from './Letters.js';
|
|
3
|
+
const Text3D = ({ textSettings, onLetterClick }) => {
|
|
4
|
+
const { config, materialSettings } = textSettings;
|
|
5
|
+
const { text } = config;
|
|
6
|
+
return (_jsx(Letters, { text: text, config: config, materialSettings: materialSettings, hoverSettings: { sensitivity: 0.5, applyToChildren: false }, transformEffects: textSettings.animations?.transform?.effects || [], onLetterClick: onLetterClick }));
|
|
7
|
+
};
|
|
8
|
+
export default Text3D;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { BufferGeometry } from "three";
|
|
3
|
+
import type { ThreeElements } from "@react-three/fiber";
|
|
4
|
+
export interface VolumePointsProps extends Omit<ThreeElements['points'], 'geometry'> {
|
|
5
|
+
/** Any closed host geometry to fill with interior points. */
|
|
6
|
+
geometry: BufferGeometry;
|
|
7
|
+
/** Target number of interior points. */
|
|
8
|
+
count?: number;
|
|
9
|
+
/** Candidate oversampling cap (multiple of `count`). */
|
|
10
|
+
oversample?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Material slot. Drop in a `<pointsMaterial>` or a custom shader material.
|
|
13
|
+
* Color, size, and blending are owned by the parent — nothing aesthetic is
|
|
14
|
+
* baked in here.
|
|
15
|
+
*/
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function VolumePoints({ geometry, count, oversample, children, ...props }: VolumePointsProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=VolumePoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumePoints.d.ts","sourceRoot":"","sources":["../../src/components/VolumePoints.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAChF,6DAA6D;IAC7D,QAAQ,EAAE,cAAc,CAAC;IACzB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAGD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAKzG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useVolumePoints } from '../hooks/useVolumePoints.js';
|
|
3
|
+
export function VolumePoints({ geometry, count = 8000, oversample, children, ...props }) {
|
|
4
|
+
const pointsGeometry = useVolumePoints(geometry, count, { oversample });
|
|
5
|
+
if (!pointsGeometry)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsx("points", { geometry: pointsGeometry, ...props, children: children ?? _jsx("pointsMaterial", { size: 0.02, sizeAttenuation: true }) }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AuraCursorConfig } from "@3driseai/3drise-core";
|
|
3
|
+
import type { CursorTypeProps } from "./CursorController";
|
|
4
|
+
declare const AuraCursor: React.FC<CursorTypeProps<AuraCursorConfig>>;
|
|
5
|
+
export default AuraCursor;
|
|
6
|
+
//# sourceMappingURL=AuraCursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuraCursor.d.ts","sourceRoot":"","sources":["../../../src/components/cursor/AuraCursor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAwB3D,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useRef } from 'react';
|
|
3
|
+
import { useFrame } from '@react-three/fiber';
|
|
4
|
+
import AuraEffect from '../effects/AuraEffect.js';
|
|
5
|
+
const AuraCursor = ({ config, worldPosRef, idleMsRef, }) => {
|
|
6
|
+
const groupRef = useRef(null);
|
|
7
|
+
const auraConfig = useMemo(() => ({
|
|
8
|
+
enabled: true,
|
|
9
|
+
intensity: config.intensity,
|
|
10
|
+
speed: 1,
|
|
11
|
+
color: config.color,
|
|
12
|
+
opacity: config.opacity,
|
|
13
|
+
layerCount: 2,
|
|
14
|
+
fresnelPower: config.falloff,
|
|
15
|
+
pulseSpeed: 1.5,
|
|
16
|
+
innerColor: config.color,
|
|
17
|
+
outerColor: config.color,
|
|
18
|
+
noiseAmount: 0.3,
|
|
19
|
+
sizeMultiplier: 2,
|
|
20
|
+
}), [config]);
|
|
21
|
+
useFrame(() => {
|
|
22
|
+
if (!groupRef.current)
|
|
23
|
+
return;
|
|
24
|
+
groupRef.current.position.copy(worldPosRef.current);
|
|
25
|
+
const idleFactor = Math.max(0, 1 - idleMsRef.current / Math.max(config.idleFadeMs, 1));
|
|
26
|
+
groupRef.current.scale.setScalar(config.scale * (0.75 + 0.25 * idleFactor));
|
|
27
|
+
});
|
|
28
|
+
return (_jsx("group", { ref: groupRef, children: _jsx(AuraEffect, { boundingRadius: 0.2, config: auraConfig }) }));
|
|
29
|
+
};
|
|
30
|
+
export default AuraCursor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AuroraCursorConfig } from "@3driseai/3drise-core";
|
|
3
|
+
import type { CursorTypeProps } from "./CursorController";
|
|
4
|
+
declare const AuroraCursor: React.FC<CursorTypeProps<AuroraCursorConfig>>;
|
|
5
|
+
export default AuroraCursor;
|
|
6
|
+
//# sourceMappingURL=AuroraCursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuroraCursor.d.ts","sourceRoot":"","sources":["../../../src/components/cursor/AuroraCursor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAsE1D,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAqI/D,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
3
|
+
import { useFrame, useThree } from '@react-three/fiber';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
const MAX_TRAIL = 200;
|
|
6
|
+
const vertexShader = /* glsl */ `
|
|
7
|
+
attribute float aT;
|
|
8
|
+
uniform float uTime;
|
|
9
|
+
varying float vT;
|
|
10
|
+
varying vec2 vUv;
|
|
11
|
+
void main() {
|
|
12
|
+
vT = aT;
|
|
13
|
+
vUv = uv;
|
|
14
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
const fragmentShader = /* glsl */ `
|
|
18
|
+
uniform vec3 uColor;
|
|
19
|
+
uniform float uOpacity;
|
|
20
|
+
uniform float uTime;
|
|
21
|
+
uniform float uFlowSpeed;
|
|
22
|
+
varying float vT;
|
|
23
|
+
varying vec2 vUv;
|
|
24
|
+
|
|
25
|
+
float hash(vec2 p) { return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }
|
|
26
|
+
float noise(vec2 p) {
|
|
27
|
+
vec2 i = floor(p);
|
|
28
|
+
vec2 f = fract(p);
|
|
29
|
+
f = f * f * (3.0 - 2.0 * f);
|
|
30
|
+
return mix(
|
|
31
|
+
mix(hash(i + vec2(0,0)), hash(i + vec2(1,0)), f.x),
|
|
32
|
+
mix(hash(i + vec2(0,1)), hash(i + vec2(1,1)), f.x),
|
|
33
|
+
f.y);
|
|
34
|
+
}
|
|
35
|
+
float fbm(vec2 p) {
|
|
36
|
+
float v = 0.0;
|
|
37
|
+
float a = 0.5;
|
|
38
|
+
for (int i = 0; i < 4; i++) {
|
|
39
|
+
v += a * noise(p);
|
|
40
|
+
p *= 2.03;
|
|
41
|
+
a *= 0.5;
|
|
42
|
+
}
|
|
43
|
+
return v;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
void main() {
|
|
47
|
+
// vT is 0 at the trail tail, 1 at the cursor (head).
|
|
48
|
+
// vUv.y is 0..1 across ribbon width.
|
|
49
|
+
float t = uTime * uFlowSpeed;
|
|
50
|
+
float n = fbm(vec2(vT * 6.0 - t, vUv.y * 2.0));
|
|
51
|
+
|
|
52
|
+
// Vertical curtain falloff
|
|
53
|
+
float curtain = smoothstep(0.0, 0.2, vUv.y) * (1.0 - smoothstep(0.8, 1.0, vUv.y));
|
|
54
|
+
|
|
55
|
+
// Aurora multi-band color: green/cyan/magenta mix driven by noise + uColor
|
|
56
|
+
vec3 green = vec3(0.1, 0.95, 0.6);
|
|
57
|
+
vec3 cyan = vec3(0.2, 0.7, 1.0);
|
|
58
|
+
vec3 magenta = vec3(0.9, 0.3, 0.95);
|
|
59
|
+
vec3 aurora = mix(green, cyan, smoothstep(0.3, 0.7, n));
|
|
60
|
+
aurora = mix(aurora, magenta, smoothstep(0.7, 0.95, n));
|
|
61
|
+
aurora = mix(aurora, uColor, 0.35);
|
|
62
|
+
|
|
63
|
+
// Head glow
|
|
64
|
+
float head = smoothstep(0.7, 1.0, vT);
|
|
65
|
+
aurora += head * 0.4;
|
|
66
|
+
|
|
67
|
+
float tailFade = smoothstep(0.0, 0.15, vT);
|
|
68
|
+
float alpha = curtain * (0.35 + n * 0.6) * tailFade * uOpacity;
|
|
69
|
+
if (alpha < 0.005) discard;
|
|
70
|
+
gl_FragColor = vec4(aurora, alpha);
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const AuroraCursor = ({ config, worldPosRef, hoverRef, idleMsRef, }) => {
|
|
74
|
+
const N = Math.min(MAX_TRAIL, Math.max(4, config.trailLength));
|
|
75
|
+
const { camera } = useThree();
|
|
76
|
+
// History positions (newest at index 0, oldest at N-1)
|
|
77
|
+
const history = useMemo(() => {
|
|
78
|
+
const arr = new Float32Array(MAX_TRAIL * 3);
|
|
79
|
+
for (let i = 0; i < MAX_TRAIL; i++)
|
|
80
|
+
arr[i * 3 + 1] = -1e6;
|
|
81
|
+
return arr;
|
|
82
|
+
}, []);
|
|
83
|
+
// 2 verts per segment, 6 indices per quad
|
|
84
|
+
const positions = useMemo(() => new Float32Array(MAX_TRAIL * 2 * 3), []);
|
|
85
|
+
const uvs = useMemo(() => new Float32Array(MAX_TRAIL * 2 * 2), []);
|
|
86
|
+
const ts = useMemo(() => new Float32Array(MAX_TRAIL * 2), []);
|
|
87
|
+
const indices = useMemo(() => new Uint16Array((MAX_TRAIL - 1) * 6), []);
|
|
88
|
+
const geometry = useMemo(() => {
|
|
89
|
+
const g = new THREE.BufferGeometry();
|
|
90
|
+
g.setAttribute('position', new THREE.BufferAttribute(positions, 3));
|
|
91
|
+
g.setAttribute('uv', new THREE.BufferAttribute(uvs, 2));
|
|
92
|
+
g.setAttribute('aT', new THREE.BufferAttribute(ts, 1));
|
|
93
|
+
// Build index buffer
|
|
94
|
+
for (let i = 0; i < MAX_TRAIL - 1; i++) {
|
|
95
|
+
const a = i * 2, b = i * 2 + 1, c = (i + 1) * 2, d = (i + 1) * 2 + 1;
|
|
96
|
+
const base = i * 6;
|
|
97
|
+
indices[base + 0] = a;
|
|
98
|
+
indices[base + 1] = b;
|
|
99
|
+
indices[base + 2] = c;
|
|
100
|
+
indices[base + 3] = b;
|
|
101
|
+
indices[base + 4] = d;
|
|
102
|
+
indices[base + 5] = c;
|
|
103
|
+
}
|
|
104
|
+
g.setIndex(new THREE.BufferAttribute(indices, 1));
|
|
105
|
+
// UV per vert
|
|
106
|
+
for (let i = 0; i < MAX_TRAIL; i++) {
|
|
107
|
+
uvs[i * 2 * 2 + 0] = i / (MAX_TRAIL - 1);
|
|
108
|
+
uvs[i * 2 * 2 + 1] = 0;
|
|
109
|
+
uvs[i * 2 * 2 + 2] = i / (MAX_TRAIL - 1);
|
|
110
|
+
uvs[i * 2 * 2 + 3] = 1;
|
|
111
|
+
}
|
|
112
|
+
return g;
|
|
113
|
+
}, [positions, uvs, ts, indices]);
|
|
114
|
+
const material = useMemo(() => new THREE.ShaderMaterial({
|
|
115
|
+
uniforms: {
|
|
116
|
+
uColor: { value: new THREE.Color(config.color) },
|
|
117
|
+
uOpacity: { value: config.opacity },
|
|
118
|
+
uTime: { value: 0 },
|
|
119
|
+
uFlowSpeed: { value: config.flowSpeed },
|
|
120
|
+
},
|
|
121
|
+
vertexShader,
|
|
122
|
+
fragmentShader,
|
|
123
|
+
transparent: true,
|
|
124
|
+
depthWrite: false,
|
|
125
|
+
blending: THREE.AdditiveBlending,
|
|
126
|
+
side: THREE.DoubleSide,
|
|
127
|
+
}), []);
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
material.uniforms.uColor.value.set(config.color);
|
|
130
|
+
material.uniforms.uOpacity.value = config.opacity;
|
|
131
|
+
material.uniforms.uFlowSpeed.value = config.flowSpeed;
|
|
132
|
+
}, [config.color, config.opacity, config.flowSpeed, material]);
|
|
133
|
+
useEffect(() => () => { geometry.dispose(); material.dispose(); }, [geometry, material]);
|
|
134
|
+
const firstFrame = useRef(true);
|
|
135
|
+
const tmpTangent = useMemo(() => new THREE.Vector3(), []);
|
|
136
|
+
const tmpToCam = useMemo(() => new THREE.Vector3(), []);
|
|
137
|
+
const tmpSide = useMemo(() => new THREE.Vector3(), []);
|
|
138
|
+
useFrame((state) => {
|
|
139
|
+
material.uniforms.uTime.value = state.clock.getElapsedTime();
|
|
140
|
+
const wp = worldPosRef.current;
|
|
141
|
+
if (firstFrame.current) {
|
|
142
|
+
for (let i = 0; i < N; i++) {
|
|
143
|
+
history[i * 3 + 0] = wp.x;
|
|
144
|
+
history[i * 3 + 1] = wp.y;
|
|
145
|
+
history[i * 3 + 2] = wp.z;
|
|
146
|
+
}
|
|
147
|
+
firstFrame.current = false;
|
|
148
|
+
}
|
|
149
|
+
// Shift history newest-first and write current
|
|
150
|
+
history.copyWithin(3, 0, (N - 1) * 3);
|
|
151
|
+
history[0] = wp.x;
|
|
152
|
+
history[1] = wp.y;
|
|
153
|
+
history[2] = wp.z;
|
|
154
|
+
// Width tapers and hover-driven boost
|
|
155
|
+
const idleFactor = Math.max(0, 1 - idleMsRef.current / Math.max(config.idleFadeMs, 1));
|
|
156
|
+
const hoverBoost = hoverRef.current ? 1.4 : 1.0;
|
|
157
|
+
const baseWidth = config.ribbonWidth * config.scale * (0.4 + idleFactor * 0.6) * hoverBoost;
|
|
158
|
+
// Camera position for facing the ribbon
|
|
159
|
+
const cam = camera.position;
|
|
160
|
+
for (let i = 0; i < N; i++) {
|
|
161
|
+
const idx = i * 3;
|
|
162
|
+
const px = history[idx + 0], py = history[idx + 1], pz = history[idx + 2];
|
|
163
|
+
// Tangent: difference between neighbors
|
|
164
|
+
const nextIdx = Math.max(0, i - 1) * 3;
|
|
165
|
+
const prevIdx = Math.min(N - 1, i + 1) * 3;
|
|
166
|
+
tmpTangent.set(history[nextIdx + 0] - history[prevIdx + 0], history[nextIdx + 1] - history[prevIdx + 1], history[nextIdx + 2] - history[prevIdx + 2]);
|
|
167
|
+
if (tmpTangent.lengthSq() < 1e-8)
|
|
168
|
+
tmpTangent.set(1, 0, 0);
|
|
169
|
+
tmpTangent.normalize();
|
|
170
|
+
// Side = tangent × (point-to-cam)
|
|
171
|
+
tmpToCam.set(cam.x - px, cam.y - py, cam.z - pz).normalize();
|
|
172
|
+
tmpSide.crossVectors(tmpTangent, tmpToCam);
|
|
173
|
+
if (tmpSide.lengthSq() < 1e-8)
|
|
174
|
+
tmpSide.set(0, 1, 0);
|
|
175
|
+
tmpSide.normalize();
|
|
176
|
+
// Width tapers: 1 at head, 0 at tail
|
|
177
|
+
const tNorm = 1 - i / Math.max(N - 1, 1);
|
|
178
|
+
const halfW = baseWidth * (0.2 + tNorm * 0.8);
|
|
179
|
+
const v0 = i * 2 * 3;
|
|
180
|
+
const v1 = v0 + 3;
|
|
181
|
+
positions[v0 + 0] = px + tmpSide.x * halfW;
|
|
182
|
+
positions[v0 + 1] = py + tmpSide.y * halfW;
|
|
183
|
+
positions[v0 + 2] = pz + tmpSide.z * halfW;
|
|
184
|
+
positions[v1 + 0] = px - tmpSide.x * halfW;
|
|
185
|
+
positions[v1 + 1] = py - tmpSide.y * halfW;
|
|
186
|
+
positions[v1 + 2] = pz - tmpSide.z * halfW;
|
|
187
|
+
ts[i * 2 + 0] = tNorm;
|
|
188
|
+
ts[i * 2 + 1] = tNorm;
|
|
189
|
+
}
|
|
190
|
+
// Zero out unused tail past N (in case trailLength shrinks)
|
|
191
|
+
for (let i = N; i < MAX_TRAIL; i++) {
|
|
192
|
+
const v0 = i * 2 * 3;
|
|
193
|
+
const v1 = v0 + 3;
|
|
194
|
+
positions[v0 + 0] = wp.x;
|
|
195
|
+
positions[v0 + 1] = -1e6;
|
|
196
|
+
positions[v0 + 2] = wp.z;
|
|
197
|
+
positions[v1 + 0] = wp.x;
|
|
198
|
+
positions[v1 + 1] = -1e6;
|
|
199
|
+
positions[v1 + 2] = wp.z;
|
|
200
|
+
}
|
|
201
|
+
geometry.attributes.position.needsUpdate = true;
|
|
202
|
+
geometry.attributes.aT.needsUpdate = true;
|
|
203
|
+
geometry.setDrawRange(0, (N - 1) * 6);
|
|
204
|
+
});
|
|
205
|
+
return _jsx("mesh", { geometry: geometry, material: material, frustumCulled: false });
|
|
206
|
+
};
|
|
207
|
+
export default AuroraCursor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { BubblesCursorConfig } from "@3driseai/3drise-core";
|
|
3
|
+
import type { CursorTypeProps } from "./CursorController";
|
|
4
|
+
declare const BubblesCursor: React.FC<CursorTypeProps<BubblesCursorConfig>>;
|
|
5
|
+
export default BubblesCursor;
|
|
6
|
+
//# sourceMappingURL=BubblesCursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubblesCursor.d.ts","sourceRoot":"","sources":["../../../src/components/cursor/BubblesCursor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA6E1D,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAuGjE,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
3
|
+
import { useFrame } from '@react-three/fiber';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
const MAX_BUBBLES = 256;
|
|
6
|
+
const pointsVertexShader = /* glsl */ `
|
|
7
|
+
attribute float aAge;
|
|
8
|
+
attribute float aLife;
|
|
9
|
+
attribute float aBaseSize;
|
|
10
|
+
attribute float aPhase;
|
|
11
|
+
uniform float uTime;
|
|
12
|
+
uniform float uScale;
|
|
13
|
+
uniform float uPopWindow; // fraction at end of life used for pop
|
|
14
|
+
varying float vAgeN;
|
|
15
|
+
varying float vPopN;
|
|
16
|
+
varying float vPhase;
|
|
17
|
+
void main() {
|
|
18
|
+
vAgeN = clamp(aAge / max(aLife, 1.0), 0.0, 1.0);
|
|
19
|
+
float popStart = 1.0 - uPopWindow;
|
|
20
|
+
vPopN = (vAgeN > popStart) ? (vAgeN - popStart) / uPopWindow : 0.0;
|
|
21
|
+
vPhase = aPhase;
|
|
22
|
+
vec4 mv = modelViewMatrix * vec4(position, 1.0);
|
|
23
|
+
float wobble = 1.0 + sin(uTime * 2.0 + aPhase) * 0.06;
|
|
24
|
+
// Scale-burst during pop
|
|
25
|
+
float popBurst = 1.0 + vPopN * 1.5;
|
|
26
|
+
float size = aBaseSize * wobble * popBurst * uScale;
|
|
27
|
+
gl_PointSize = size * (300.0 / -mv.z);
|
|
28
|
+
gl_Position = projectionMatrix * mv;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const pointsFragmentShader = /* glsl */ `
|
|
32
|
+
uniform vec3 uColor;
|
|
33
|
+
uniform float uOpacity;
|
|
34
|
+
uniform float uIridescence;
|
|
35
|
+
uniform float uTime;
|
|
36
|
+
varying float vAgeN;
|
|
37
|
+
varying float vPopN;
|
|
38
|
+
varying float vPhase;
|
|
39
|
+
|
|
40
|
+
// Thin-film interference approximation: hue shifts with fresnel angle and
|
|
41
|
+
// a per-bubble phase that animates slowly to feel alive.
|
|
42
|
+
vec3 thinFilm(float fresnel, float phase) {
|
|
43
|
+
float t = fresnel + phase * 0.15 + uTime * 0.05;
|
|
44
|
+
return vec3(
|
|
45
|
+
0.5 + 0.5 * sin(6.2831 * (t + 0.0)),
|
|
46
|
+
0.5 + 0.5 * sin(6.2831 * (t + 0.33)),
|
|
47
|
+
0.5 + 0.5 * sin(6.2831 * (t + 0.66))
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
void main() {
|
|
52
|
+
vec2 c = gl_PointCoord * 2.0 - 1.0;
|
|
53
|
+
float r = length(c);
|
|
54
|
+
if (r > 1.0) discard;
|
|
55
|
+
|
|
56
|
+
// Fake sphere normal: approximate Z from disk distance
|
|
57
|
+
float z = sqrt(max(0.0, 1.0 - r * r));
|
|
58
|
+
vec3 n = vec3(c.x, c.y, z);
|
|
59
|
+
vec3 viewDir = vec3(0.0, 0.0, 1.0);
|
|
60
|
+
float fresnel = pow(1.0 - max(dot(n, viewDir), 0.0), 2.5);
|
|
61
|
+
|
|
62
|
+
// Iridescent rim + dimmer center (thin film, transparent middle)
|
|
63
|
+
vec3 film = thinFilm(fresnel, vPhase);
|
|
64
|
+
vec3 col = mix(uColor, film, uIridescence);
|
|
65
|
+
|
|
66
|
+
// Specular highlight at top-left
|
|
67
|
+
float spec = pow(max(dot(n, normalize(vec3(-0.4, 0.6, 0.7))), 0.0), 32.0);
|
|
68
|
+
|
|
69
|
+
// Pop flash brightens then fades hard
|
|
70
|
+
float popFlash = vPopN * (1.0 - vPopN) * 4.0;
|
|
71
|
+
|
|
72
|
+
float lifeFade = 1.0 - smoothstep(0.85, 1.0, vAgeN) * (vPopN > 0.0 ? 0.0 : 1.0);
|
|
73
|
+
float baseAlpha = (fresnel * 0.85 + spec * 0.5 + popFlash * 0.6);
|
|
74
|
+
float alpha = baseAlpha * uOpacity * lifeFade;
|
|
75
|
+
if (alpha < 0.004) discard;
|
|
76
|
+
|
|
77
|
+
gl_FragColor = vec4(col * (1.0 + spec + popFlash), alpha);
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
const BubblesCursor = ({ config, worldPosRef, velocityRef, hoverRef, idleMsRef, }) => {
|
|
81
|
+
const positions = useMemo(() => new Float32Array(MAX_BUBBLES * 3), []);
|
|
82
|
+
const velocities = useMemo(() => new Float32Array(MAX_BUBBLES * 3), []);
|
|
83
|
+
const ages = useMemo(() => new Float32Array(MAX_BUBBLES), []);
|
|
84
|
+
const lives = useMemo(() => new Float32Array(MAX_BUBBLES), []);
|
|
85
|
+
const baseSizes = useMemo(() => new Float32Array(MAX_BUBBLES), []);
|
|
86
|
+
const phases = useMemo(() => new Float32Array(MAX_BUBBLES), []);
|
|
87
|
+
const alive = useMemo(() => new Uint8Array(MAX_BUBBLES), []);
|
|
88
|
+
const geometry = useMemo(() => {
|
|
89
|
+
const g = new THREE.BufferGeometry();
|
|
90
|
+
g.setAttribute('position', new THREE.BufferAttribute(positions, 3));
|
|
91
|
+
g.setAttribute('aAge', new THREE.BufferAttribute(ages, 1));
|
|
92
|
+
g.setAttribute('aLife', new THREE.BufferAttribute(lives, 1));
|
|
93
|
+
g.setAttribute('aBaseSize', new THREE.BufferAttribute(baseSizes, 1));
|
|
94
|
+
g.setAttribute('aPhase', new THREE.BufferAttribute(phases, 1));
|
|
95
|
+
for (let i = 0; i < MAX_BUBBLES; i++)
|
|
96
|
+
positions[i * 3 + 1] = -1e6;
|
|
97
|
+
return g;
|
|
98
|
+
}, [positions, ages, lives, baseSizes, phases]);
|
|
99
|
+
const material = useMemo(() => new THREE.ShaderMaterial({
|
|
100
|
+
uniforms: {
|
|
101
|
+
uTime: { value: 0 },
|
|
102
|
+
uScale: { value: config.scale / 10 },
|
|
103
|
+
uColor: { value: new THREE.Color(config.color) },
|
|
104
|
+
uOpacity: { value: config.opacity },
|
|
105
|
+
uIridescence: { value: config.iridescence },
|
|
106
|
+
uPopWindow: { value: 0.18 },
|
|
107
|
+
},
|
|
108
|
+
vertexShader: pointsVertexShader,
|
|
109
|
+
fragmentShader: pointsFragmentShader,
|
|
110
|
+
transparent: true,
|
|
111
|
+
depthWrite: false,
|
|
112
|
+
blending: THREE.NormalBlending,
|
|
113
|
+
}), []);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
material.uniforms.uColor.value.set(config.color);
|
|
116
|
+
material.uniforms.uScale.value = config.scale / 10;
|
|
117
|
+
material.uniforms.uOpacity.value = config.opacity;
|
|
118
|
+
material.uniforms.uIridescence.value = config.iridescence;
|
|
119
|
+
}, [config.color, config.scale, config.opacity, config.iridescence, material]);
|
|
120
|
+
useEffect(() => () => { geometry.dispose(); material.dispose(); }, [geometry, material]);
|
|
121
|
+
const spawnAccum = useRef(0);
|
|
122
|
+
const startTime = useRef(0);
|
|
123
|
+
useFrame((state, delta) => {
|
|
124
|
+
material.uniforms.uTime.value = state.clock.getElapsedTime();
|
|
125
|
+
if (startTime.current === 0)
|
|
126
|
+
startTime.current = state.clock.getElapsedTime();
|
|
127
|
+
const wp = worldPosRef.current;
|
|
128
|
+
const idleFactor = Math.max(0, 1 - idleMsRef.current / Math.max(config.idleFadeMs, 1));
|
|
129
|
+
const hover = hoverRef.current;
|
|
130
|
+
const hoverBoost = hover ? 1.6 : 1.0;
|
|
131
|
+
// Spawn rate (bubbles per second)
|
|
132
|
+
spawnAccum.current += config.spawnRate * delta * (0.5 + idleFactor * 0.5) * hoverBoost;
|
|
133
|
+
let toSpawn = Math.floor(spawnAccum.current);
|
|
134
|
+
spawnAccum.current -= toSpawn;
|
|
135
|
+
const dtMs = delta * 1000;
|
|
136
|
+
let scan = 0;
|
|
137
|
+
while (toSpawn > 0 && scan < MAX_BUBBLES) {
|
|
138
|
+
if (alive[scan] === 0) {
|
|
139
|
+
const base = scan * 3;
|
|
140
|
+
// Spawn near cursor with small lateral jitter
|
|
141
|
+
positions[base + 0] = wp.x + (Math.random() - 0.5) * 0.2 * config.scale;
|
|
142
|
+
positions[base + 1] = wp.y + (Math.random() - 0.5) * 0.1 * config.scale;
|
|
143
|
+
positions[base + 2] = wp.z + (Math.random() - 0.5) * 0.2 * config.scale;
|
|
144
|
+
// Drift + float up
|
|
145
|
+
velocities[base + 0] = (Math.random() - 0.5) * 0.4 + velocityRef.current.x * 0.05;
|
|
146
|
+
velocities[base + 1] = config.floatSpeed * (0.7 + Math.random() * 0.6);
|
|
147
|
+
velocities[base + 2] = (Math.random() - 0.5) * 0.4 + velocityRef.current.z * 0.05;
|
|
148
|
+
ages[scan] = 0;
|
|
149
|
+
lives[scan] = config.lifetimeMs * (0.7 + Math.random() * 0.6);
|
|
150
|
+
baseSizes[scan] = (16 + Math.random() * 28) * (config.scale / 10);
|
|
151
|
+
phases[scan] = Math.random() * 100;
|
|
152
|
+
alive[scan] = 1;
|
|
153
|
+
toSpawn--;
|
|
154
|
+
}
|
|
155
|
+
scan++;
|
|
156
|
+
}
|
|
157
|
+
for (let j = 0; j < MAX_BUBBLES; j++) {
|
|
158
|
+
if (alive[j] === 0)
|
|
159
|
+
continue;
|
|
160
|
+
const base = j * 3;
|
|
161
|
+
ages[j] += dtMs;
|
|
162
|
+
if (ages[j] >= lives[j]) {
|
|
163
|
+
alive[j] = 0;
|
|
164
|
+
positions[base + 1] = -1e6;
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
// Gentle horizontal drift damping; upward drift continues
|
|
168
|
+
velocities[base + 0] *= 0.99;
|
|
169
|
+
velocities[base + 2] *= 0.99;
|
|
170
|
+
// Wobble: tiny sinusoidal horizontal nudge based on phase
|
|
171
|
+
const wobble = Math.sin(state.clock.getElapsedTime() * 1.3 + phases[j]) * 0.05;
|
|
172
|
+
positions[base + 0] += velocities[base + 0] * delta + wobble * delta;
|
|
173
|
+
positions[base + 1] += velocities[base + 1] * delta;
|
|
174
|
+
positions[base + 2] += velocities[base + 2] * delta;
|
|
175
|
+
}
|
|
176
|
+
geometry.attributes.position.needsUpdate = true;
|
|
177
|
+
geometry.attributes.aAge.needsUpdate = true;
|
|
178
|
+
geometry.attributes.aLife.needsUpdate = true;
|
|
179
|
+
geometry.attributes.aBaseSize.needsUpdate = true;
|
|
180
|
+
geometry.attributes.aPhase.needsUpdate = true;
|
|
181
|
+
});
|
|
182
|
+
return _jsx("points", { geometry: geometry, material: material, frustumCulled: false });
|
|
183
|
+
};
|
|
184
|
+
export default BubblesCursor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CometCursorConfig } from "@3driseai/3drise-core";
|
|
3
|
+
import type { CursorTypeProps } from "./CursorController";
|
|
4
|
+
declare const CometCursor: React.FC<CursorTypeProps<CometCursorConfig>>;
|
|
5
|
+
export default CometCursor;
|
|
6
|
+
//# sourceMappingURL=CometCursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CometCursor.d.ts","sourceRoot":"","sources":["../../../src/components/cursor/CometCursor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA2D1D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAgI7D,CAAC;AACF,eAAe,WAAW,CAAC"}
|