@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,168 @@
|
|
|
1
|
+
import { createMeshByType, createTempId, MaterialRegistryAPI, ObjectManager, uniformConverter, } from '@3driseai/3drise-core';
|
|
2
|
+
export function useMeshController() {
|
|
3
|
+
let defaultSettings = {
|
|
4
|
+
color: { value: '#ffffff' },
|
|
5
|
+
opacity: { value: 1 },
|
|
6
|
+
wireframe: { value: false },
|
|
7
|
+
};
|
|
8
|
+
// const createMeshes = (meshes: BaseMeshOptions[]): CreatedObjectSettings[] => {
|
|
9
|
+
// console.log("Creating meshes with data:", meshes);
|
|
10
|
+
// const createdObjectsSettings: CreatedObjectSettings[] = [];
|
|
11
|
+
// // console.log("createMeshes...", meshes);
|
|
12
|
+
// if (!Array.isArray(meshes)) return [];
|
|
13
|
+
// meshes.forEach(mesh => {
|
|
14
|
+
// try {
|
|
15
|
+
// const id = mesh.id || createTempId();
|
|
16
|
+
// const meshType = mesh.type || 'box';
|
|
17
|
+
// const meshData: any = {
|
|
18
|
+
// ...mesh,
|
|
19
|
+
// id,
|
|
20
|
+
// type: meshType
|
|
21
|
+
// };
|
|
22
|
+
// // console.log({ meshData });
|
|
23
|
+
// // let createdObject: CreatedRef | null = ;
|
|
24
|
+
// const createdObject: CreatedRef = {
|
|
25
|
+
// id,
|
|
26
|
+
// name: mesh.name || `mesh-${id}`,
|
|
27
|
+
// object: createMeshByType(meshData) as Mesh
|
|
28
|
+
// }
|
|
29
|
+
// createdObject && ObjectManager.addObject(createdObject);
|
|
30
|
+
// if (!createdObject) return;
|
|
31
|
+
// // const materialType: MaterialType = meshData.materialType || 'basic';
|
|
32
|
+
// const materialSettings = createMaterialSettings(meshData);
|
|
33
|
+
// const meshSettings = ObjectManager.getMeshSettingsFromMesh(createdObject.object as Mesh);
|
|
34
|
+
// let createdObjectSettings: CreatedObjectSettings = {
|
|
35
|
+
// id: meshData.id,
|
|
36
|
+
// name: meshData.name || createdObject.name || `mesh-${createdObject.id}`,
|
|
37
|
+
// type: 'mesh',
|
|
38
|
+
// meshSettings: {
|
|
39
|
+
// ...meshSettings,
|
|
40
|
+
// anchor: meshData.anchor ?? null,
|
|
41
|
+
// },
|
|
42
|
+
// materialSettings: materialSettings,
|
|
43
|
+
// // animations: [],
|
|
44
|
+
// // effects: effects,
|
|
45
|
+
// config: meshData
|
|
46
|
+
// };
|
|
47
|
+
// if (meshData.animations && meshData.animations.length > 0) {
|
|
48
|
+
// createdObjectSettings.animations = meshData.animations.map((animation: AnimationOptions) => ({
|
|
49
|
+
// ...animation,
|
|
50
|
+
// active: true
|
|
51
|
+
// }));
|
|
52
|
+
// }
|
|
53
|
+
// // console.log("Created object settings:", createdObjectSettings);
|
|
54
|
+
// createdObjectsSettings.push(createdObjectSettings);
|
|
55
|
+
// console.log("Created mesh:", createdObject.name);
|
|
56
|
+
// } catch (error) {
|
|
57
|
+
// console.error(`Error creating mesh of type ${(mesh as any).type}:`, error);
|
|
58
|
+
// }
|
|
59
|
+
// });
|
|
60
|
+
// return createdObjectsSettings;
|
|
61
|
+
// }
|
|
62
|
+
const createObjects = (objects) => {
|
|
63
|
+
console.log("Creating meshes with data:", objects);
|
|
64
|
+
const createdObjectsSettings = [];
|
|
65
|
+
// console.log("createMeshes...", meshes);
|
|
66
|
+
if (!Array.isArray(objects))
|
|
67
|
+
return [];
|
|
68
|
+
objects.forEach(object => {
|
|
69
|
+
if (object.type !== 'mesh') {
|
|
70
|
+
createdObjectsSettings.push(object);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
try {
|
|
74
|
+
const id = object.id || createTempId();
|
|
75
|
+
const objectType = object.config?.type || object.userData?.type || 'box';
|
|
76
|
+
const meshData = {
|
|
77
|
+
...object.meshSettings,
|
|
78
|
+
...object.config,
|
|
79
|
+
...object.userData,
|
|
80
|
+
type: objectType,
|
|
81
|
+
id,
|
|
82
|
+
};
|
|
83
|
+
console.log({ meshData });
|
|
84
|
+
// let createdObject: CreatedRef | null = ;
|
|
85
|
+
const meshCreationResult = createMeshByType(meshData);
|
|
86
|
+
if (!meshCreationResult)
|
|
87
|
+
return;
|
|
88
|
+
const createdObject = {
|
|
89
|
+
id,
|
|
90
|
+
name: object.name || `mesh-${id}`,
|
|
91
|
+
object: meshCreationResult.mesh
|
|
92
|
+
};
|
|
93
|
+
console.log("Created object:", createdObject);
|
|
94
|
+
createdObject && ObjectManager.addObject(createdObject);
|
|
95
|
+
if (!createdObject)
|
|
96
|
+
return;
|
|
97
|
+
let createdObjectSettings = {
|
|
98
|
+
...object,
|
|
99
|
+
config: meshCreationResult.config,
|
|
100
|
+
// materialSettings: materialSettings,
|
|
101
|
+
// animations: [],
|
|
102
|
+
// effects: effects,
|
|
103
|
+
// userData: meshData
|
|
104
|
+
};
|
|
105
|
+
if (object.animations) {
|
|
106
|
+
}
|
|
107
|
+
// console.log("Created object settings:", createdObjectSettings);
|
|
108
|
+
createdObjectsSettings.push(createdObjectSettings);
|
|
109
|
+
console.log("Created mesh:", createdObject.name);
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
console.error(`Error creating mesh of type ${object.type}:`, error);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return createdObjectsSettings;
|
|
116
|
+
};
|
|
117
|
+
const createMaterialSettings = (meshData) => {
|
|
118
|
+
// let materialVariant = 'Standard';
|
|
119
|
+
// if (!meshData.material) {
|
|
120
|
+
// console.warn("Mesh data is missing material property:", meshData);
|
|
121
|
+
// // return;
|
|
122
|
+
// }
|
|
123
|
+
// if (!meshData.material.variant) {
|
|
124
|
+
// console.warn("Mesh data is missing material variant:", meshData);
|
|
125
|
+
// // return;
|
|
126
|
+
// }
|
|
127
|
+
const materialVariant = meshData.material &&
|
|
128
|
+
meshData.material.variant &&
|
|
129
|
+
MaterialRegistryAPI.getTypeFromVariantName(meshData.material.variant) ?
|
|
130
|
+
meshData.material.variant :
|
|
131
|
+
'Standard';
|
|
132
|
+
const materialType = MaterialRegistryAPI.getTypeFromVariantName(materialVariant) || 'basic';
|
|
133
|
+
if (materialType === 'advanced') {
|
|
134
|
+
const variant = MaterialRegistryAPI.getVariantDefinition(materialVariant);
|
|
135
|
+
if (variant && variant.defaultSettings) {
|
|
136
|
+
defaultSettings = variant.defaultSettings;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
const materialInstance = MaterialRegistryAPI.createMaterial(materialVariant);
|
|
141
|
+
// Extract current uniform values as default settings
|
|
142
|
+
defaultSettings = {
|
|
143
|
+
...uniformConverter.convertToSettings(materialInstance.uniforms),
|
|
144
|
+
...materialInstance.settings
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
// console.log("Default settings for material ", materialVariant, ":", defaultSettings);
|
|
148
|
+
Object.keys(meshData.material || {}).forEach(key => {
|
|
149
|
+
if (defaultSettings[key]) {
|
|
150
|
+
defaultSettings[key] = meshData.material[key];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
const materialSettings = {
|
|
154
|
+
materialType,
|
|
155
|
+
materialVariant,
|
|
156
|
+
materialName: materialVariant,
|
|
157
|
+
...defaultSettings,
|
|
158
|
+
// ...options
|
|
159
|
+
};
|
|
160
|
+
return materialSettings;
|
|
161
|
+
};
|
|
162
|
+
return {
|
|
163
|
+
// createMeshes,
|
|
164
|
+
createObjects,
|
|
165
|
+
createMaterialSettings,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
export default useMeshController;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useMouseHandlers: () => {
|
|
2
|
+
getInterpolatedValue: (baseValue: any, minValue: any, maxValue: any, multiplier: number, sensitivity?: number) => any;
|
|
3
|
+
interpolateProperty: (baseValue: any, minValue: any, maxValue: any, pointer: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}, axis?: "x" | "y" | "both", sensitivity?: number, inverted?: boolean) => any;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useMouseHandlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMouseHandlers.d.ts","sourceRoot":"","sources":["../../src/hooks/useMouseHandlers.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,QAAO;IAC5B,oBAAoB,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;IACtH,mBAAmB,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;QACzE,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACb,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,GAAG,CAAC;CA8CtF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Color, MathUtils } from "three";
|
|
2
|
+
export const useMouseHandlers = () => {
|
|
3
|
+
const getInterpolatedValue = (baseValue, minValue, maxValue, multiplier, sensitivity = 1) => {
|
|
4
|
+
// Normalize multiplier from [-1, 1] to [0, 1] for lerp
|
|
5
|
+
const normalizedMultiplier = (multiplier + 1) / 2;
|
|
6
|
+
const finalMultiplier = Math.max(0, Math.min(1, normalizedMultiplier * sensitivity));
|
|
7
|
+
// Handle Color objects or hex strings
|
|
8
|
+
if ((typeof minValue === 'string' && minValue.startsWith('#')) ||
|
|
9
|
+
(typeof maxValue === 'string' && maxValue.startsWith('#'))) {
|
|
10
|
+
const minColor = new Color(minValue);
|
|
11
|
+
const maxColor = new Color(maxValue);
|
|
12
|
+
const minArr = minColor.toArray();
|
|
13
|
+
const maxArr = maxColor.toArray();
|
|
14
|
+
const interpolated = minArr.map((min, index) => MathUtils.lerp(min, maxArr[index], finalMultiplier));
|
|
15
|
+
return new Color().fromArray(interpolated);
|
|
16
|
+
}
|
|
17
|
+
// Handle Vector3/Array [x, y, z]
|
|
18
|
+
if (Array.isArray(minValue) && Array.isArray(maxValue) && minValue.length === 3) {
|
|
19
|
+
return [
|
|
20
|
+
MathUtils.lerp(minValue[0], maxValue[0], finalMultiplier),
|
|
21
|
+
MathUtils.lerp(minValue[1], maxValue[1], finalMultiplier),
|
|
22
|
+
MathUtils.lerp(minValue[2], maxValue[2], finalMultiplier)
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
// Handle numbers
|
|
26
|
+
if (typeof minValue === 'number' && typeof maxValue === 'number') {
|
|
27
|
+
return MathUtils.lerp(minValue, maxValue, finalMultiplier);
|
|
28
|
+
}
|
|
29
|
+
return baseValue;
|
|
30
|
+
};
|
|
31
|
+
const interpolateProperty = (baseValue, minValue, maxValue, pointer, axis = 'both', sensitivity = 1, inverted = false) => {
|
|
32
|
+
let multiplier = 0;
|
|
33
|
+
if (axis === 'x')
|
|
34
|
+
multiplier = pointer.x;
|
|
35
|
+
if (axis === 'y')
|
|
36
|
+
multiplier = pointer.y;
|
|
37
|
+
if (axis === 'both')
|
|
38
|
+
multiplier = (pointer.x + pointer.y) / 2;
|
|
39
|
+
if (inverted)
|
|
40
|
+
multiplier *= -1;
|
|
41
|
+
return getInterpolatedValue(baseValue, minValue, maxValue, multiplier, sensitivity);
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
getInterpolatedValue,
|
|
45
|
+
interpolateProperty
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type NumericValue = number | number[];
|
|
2
|
+
export declare function useNumericAnimation(): {
|
|
3
|
+
animateNumeric: (from: Record<string, NumericValue>, to: Record<string, NumericValue>, onUpdate: (values: Record<string, NumericValue>) => void, onComplete: (values: Record<string, NumericValue>) => void, duration?: number) => void;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=useNumericAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNumericAnimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useNumericAnimation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAc7C,wBAAgB,mBAAmB,IAAI;IAC/B,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,IAAI,EAAE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3O,CA2BJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useRef, useCallback } from 'react';
|
|
2
|
+
import { useFrame } from '@react-three/fiber';
|
|
3
|
+
function lerpValue(from, to, t) {
|
|
4
|
+
if (typeof to === 'number') {
|
|
5
|
+
const f = typeof from === 'number' ? from : to;
|
|
6
|
+
return f + (to - f) * t;
|
|
7
|
+
}
|
|
8
|
+
// array case
|
|
9
|
+
const fromArr = Array.isArray(from) ? from : [];
|
|
10
|
+
return to.map((toEl, i) => {
|
|
11
|
+
const fromEl = fromArr[i] ?? toEl;
|
|
12
|
+
return fromEl + (toEl - fromEl) * t;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export function useNumericAnimation() {
|
|
16
|
+
const animRef = useRef(null);
|
|
17
|
+
useFrame((_, delta) => {
|
|
18
|
+
if (!animRef.current)
|
|
19
|
+
return;
|
|
20
|
+
const anim = animRef.current;
|
|
21
|
+
anim.elapsed += delta;
|
|
22
|
+
const t = Math.min(1, anim.elapsed / anim.duration);
|
|
23
|
+
const st = t * t * (3 - 2 * t); // smoothstep
|
|
24
|
+
const update = {};
|
|
25
|
+
for (const key of Object.keys(anim.to)) {
|
|
26
|
+
const toVal = anim.to[key];
|
|
27
|
+
if (toVal === undefined)
|
|
28
|
+
continue;
|
|
29
|
+
const fromVal = anim.from[key];
|
|
30
|
+
update[key] = lerpValue(fromVal ?? toVal, toVal, st);
|
|
31
|
+
}
|
|
32
|
+
anim.onUpdate(update);
|
|
33
|
+
if (t >= 1) {
|
|
34
|
+
anim.onComplete(anim.to);
|
|
35
|
+
animRef.current = null;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const animateNumeric = useCallback((from, to, onUpdate, onComplete, duration = 3) => {
|
|
39
|
+
animRef.current = { from, to, duration, elapsed: 0, onUpdate, onComplete };
|
|
40
|
+
}, []);
|
|
41
|
+
return { animateNumeric };
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CreatedObjectSettings } from '@3driseai/3drise-core';
|
|
2
|
+
import type { UseContinuousEffectsResult } from './useContinuousEffects';
|
|
3
|
+
import type { UseInteractionEffectsResult } from './useInteractionEffects';
|
|
4
|
+
import { Object3D } from "three";
|
|
5
|
+
interface UseObjectAnimationOptions {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
hovered?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface UseObjectAnimationResult extends UseContinuousEffectsResult, UseInteractionEffectsResult {
|
|
10
|
+
}
|
|
11
|
+
export declare const useObjectAnimation: (objectSettings: CreatedObjectSettings | null, animateMaterial: boolean, options?: UseObjectAnimationOptions, ref?: Object3D) => UseObjectAnimationResult | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useObjectAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useObjectAnimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useObjectAnimation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,UAAU,yBAAyB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,wBAAyB,SAAQ,0BAA0B,EAAE,2BAA2B;CACjG;AASD,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,qBAAqB,GAAG,IAAI,EAAE,iBAAiB,OAAO,EAAE,UAAS,yBAA8B,EAAE,MAAM,QAAQ,KAAG,wBAAwB,GAAG,IAwB/L,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { findById } from '@3driseai/3drise-core';
|
|
2
|
+
import { useContinuousEffects } from "./useContinuousEffects.js";
|
|
3
|
+
import { useMouseMove } from "./useInteractionEffects.js";
|
|
4
|
+
import { useSequenceAnimation } from "./useSequenceAnimation.js";
|
|
5
|
+
const DEBUG_OBJECT_ANIMATION = false;
|
|
6
|
+
const debugLog = (...args) => {
|
|
7
|
+
if (DEBUG_OBJECT_ANIMATION) {
|
|
8
|
+
console.log('[useObjectAnimation]', ...args);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export const useObjectAnimation = (objectSettings, animateMaterial, options = {}, ref) => {
|
|
12
|
+
const { enabled = true, hovered = false } = options;
|
|
13
|
+
const objectRef = ref || findById(objectSettings?.id);
|
|
14
|
+
// console.log(objectSettings?.id, objectRef);
|
|
15
|
+
// debugLog('hook run', {
|
|
16
|
+
// objectId: objectSettings?.id,
|
|
17
|
+
// hasRefArg: !!ref,
|
|
18
|
+
// resolvedObject: objectRef ? { name: objectRef.name, id: objectRef.userData?.id } : null,
|
|
19
|
+
// enabled,
|
|
20
|
+
// hovered,
|
|
21
|
+
// animateMaterial,
|
|
22
|
+
// });
|
|
23
|
+
if (!objectRef) {
|
|
24
|
+
debugLog('No object ref found, skipping animation setup', {
|
|
25
|
+
name: objectSettings?.meshSettings.name,
|
|
26
|
+
hasRefArg: !!ref,
|
|
27
|
+
});
|
|
28
|
+
// return null;
|
|
29
|
+
}
|
|
30
|
+
// console.log(hovered)
|
|
31
|
+
const continuousResult = useContinuousEffects(objectSettings, { enabled, animateMaterial, hovered }, objectRef);
|
|
32
|
+
const mouseMoveResult = useMouseMove(objectSettings, { enabled, animateMaterial }, objectRef);
|
|
33
|
+
useSequenceAnimation(objectSettings?.id, objectRef);
|
|
34
|
+
return { ...continuousResult, ...mouseMoveResult };
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useObjectEdges.d.ts","sourceRoot":"","sources":["../../src/hooks/useObjectEdges.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAiKzD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,GAAG,IAAI,CAkCjF"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
2
|
+
import { BoxGeometry, BufferGeometry, CylinderGeometry, EdgesGeometry, Group, LineSegments, Mesh, MeshBasicMaterial, Points, PointsMaterial, Quaternion, Vector3, Float32BufferAttribute, } from 'three';
|
|
3
|
+
import { useFrame } from '@react-three/fiber';
|
|
4
|
+
import { collectMeshes, computeThreshold, buildSubdividedEdgeGeometry, EDGES_GROUP_KEY, animateUniforms, cacheChildrenWithMaterials, findById } from '@3driseai/3drise-core';
|
|
5
|
+
import { useMaterialApplication } from './useMaterialApplication.js';
|
|
6
|
+
;
|
|
7
|
+
// import { animateUniforms, cacheChildrenWithMaterials } from "~/utils/materialUtils";
|
|
8
|
+
const DEFAULT_TUBE_RADIUS = 0.01;
|
|
9
|
+
const DEFAULT_CUBE_SIZE = 0.02;
|
|
10
|
+
// ─── Builders ────────────────────────────────────────────────────────────────
|
|
11
|
+
function edgesGeoToQuadMesh(edgesGeo, thickness = 0.008) {
|
|
12
|
+
const src = edgesGeo.attributes.position;
|
|
13
|
+
const segCount = src.count / 2; // each segment = 2 vertices
|
|
14
|
+
const positions = [];
|
|
15
|
+
const uvs = [];
|
|
16
|
+
const indices = [];
|
|
17
|
+
const start = new Vector3();
|
|
18
|
+
const end = new Vector3();
|
|
19
|
+
const dir = new Vector3();
|
|
20
|
+
const up = new Vector3(0, 1, 0);
|
|
21
|
+
const right = new Vector3();
|
|
22
|
+
for (let i = 0; i < segCount; i++) {
|
|
23
|
+
start.fromBufferAttribute(src, i * 2);
|
|
24
|
+
end.fromBufferAttribute(src, i * 2 + 1);
|
|
25
|
+
dir.subVectors(end, start).normalize();
|
|
26
|
+
// Perpendicular axis — fallback to X if segment is vertical
|
|
27
|
+
right.crossVectors(dir, up).normalize();
|
|
28
|
+
if (right.lengthSq() < 0.0001) {
|
|
29
|
+
right.set(1, 0, 0);
|
|
30
|
+
}
|
|
31
|
+
const rx = right.x * thickness;
|
|
32
|
+
const ry = right.y * thickness;
|
|
33
|
+
const rz = right.z * thickness;
|
|
34
|
+
const base = i * 4;
|
|
35
|
+
// v0 start-bottom uv(0,0)
|
|
36
|
+
positions.push(start.x - rx, start.y - ry, start.z - rz);
|
|
37
|
+
uvs.push(0, 0);
|
|
38
|
+
// v1 end-bottom uv(1,0)
|
|
39
|
+
positions.push(end.x - rx, end.y - ry, end.z - rz);
|
|
40
|
+
uvs.push(1, 0);
|
|
41
|
+
// v2 start-top uv(0,1)
|
|
42
|
+
positions.push(start.x + rx, start.y + ry, start.z + rz);
|
|
43
|
+
uvs.push(0, 1);
|
|
44
|
+
// v3 end-top uv(1,1)
|
|
45
|
+
positions.push(end.x + rx, end.y + ry, end.z + rz);
|
|
46
|
+
uvs.push(1, 1);
|
|
47
|
+
indices.push(base, base + 1, base + 2);
|
|
48
|
+
indices.push(base + 1, base + 3, base + 2);
|
|
49
|
+
}
|
|
50
|
+
const geo = new BufferGeometry();
|
|
51
|
+
geo.setAttribute("position", new Float32BufferAttribute(positions, 3));
|
|
52
|
+
geo.setAttribute("uv", new Float32BufferAttribute(uvs, 2));
|
|
53
|
+
geo.setIndex(indices);
|
|
54
|
+
geo.computeVertexNormals();
|
|
55
|
+
return new Mesh(geo);
|
|
56
|
+
}
|
|
57
|
+
function buildLineGroup(object, localParent) {
|
|
58
|
+
const g = new Group();
|
|
59
|
+
for (const { mesh, matrixRelativeToRoot } of collectMeshes(object, localParent)) {
|
|
60
|
+
const threshold = computeThreshold(mesh.geometry);
|
|
61
|
+
const edgesGeo = new EdgesGeometry(mesh.geometry, threshold);
|
|
62
|
+
const position = new Vector3();
|
|
63
|
+
const quaternion = new Quaternion();
|
|
64
|
+
const scale = new Vector3();
|
|
65
|
+
matrixRelativeToRoot.decompose(position, quaternion, scale);
|
|
66
|
+
const quadMesh = edgesGeoToQuadMesh(edgesGeo);
|
|
67
|
+
quadMesh.position.copy(position);
|
|
68
|
+
quadMesh.quaternion.copy(quaternion);
|
|
69
|
+
quadMesh.scale.copy(scale);
|
|
70
|
+
quadMesh.renderOrder = 1;
|
|
71
|
+
g.add(quadMesh);
|
|
72
|
+
}
|
|
73
|
+
return g;
|
|
74
|
+
}
|
|
75
|
+
function buildSegmentMeshGroup(object, localParent, geoFn) {
|
|
76
|
+
const g = new Group();
|
|
77
|
+
for (const { mesh, matrixRelativeToRoot } of collectMeshes(object, localParent)) {
|
|
78
|
+
const threshold = computeThreshold(mesh.geometry);
|
|
79
|
+
const edgesGeo = new EdgesGeometry(mesh.geometry, threshold);
|
|
80
|
+
const posAttr = edgesGeo.attributes.position;
|
|
81
|
+
const subGroup = new Group();
|
|
82
|
+
const position = new Vector3();
|
|
83
|
+
const quaternion = new Quaternion();
|
|
84
|
+
const scale = new Vector3();
|
|
85
|
+
matrixRelativeToRoot.decompose(position, quaternion, scale);
|
|
86
|
+
subGroup.position.copy(position);
|
|
87
|
+
subGroup.quaternion.copy(quaternion);
|
|
88
|
+
subGroup.scale.copy(scale);
|
|
89
|
+
for (let i = 0; i < posAttr.count; i += 2) {
|
|
90
|
+
const start = new Vector3(posAttr.getX(i), posAttr.getY(i), posAttr.getZ(i));
|
|
91
|
+
const end = new Vector3(posAttr.getX(i + 1), posAttr.getY(i + 1), posAttr.getZ(i + 1));
|
|
92
|
+
const dir = end.clone().sub(start);
|
|
93
|
+
const length = dir.length();
|
|
94
|
+
if (length < 0.0001)
|
|
95
|
+
continue;
|
|
96
|
+
const midpoint = start.clone().add(end).multiplyScalar(0.5);
|
|
97
|
+
const segQuat = new Quaternion().setFromUnitVectors(new Vector3(0, 1, 0), dir.normalize());
|
|
98
|
+
const m = new Mesh(geoFn(length), new MeshBasicMaterial());
|
|
99
|
+
m.position.copy(midpoint);
|
|
100
|
+
m.quaternion.copy(segQuat);
|
|
101
|
+
m.renderOrder = 1;
|
|
102
|
+
subGroup.add(m);
|
|
103
|
+
}
|
|
104
|
+
g.add(subGroup);
|
|
105
|
+
edgesGeo.dispose();
|
|
106
|
+
}
|
|
107
|
+
return g;
|
|
108
|
+
}
|
|
109
|
+
function buildTubeGroup(object, localParent, tubeRadius) {
|
|
110
|
+
return buildSegmentMeshGroup(object, localParent, (length) => new CylinderGeometry(tubeRadius, tubeRadius, length, 4));
|
|
111
|
+
}
|
|
112
|
+
function buildCubeGroup(object, localParent, cubeSize) {
|
|
113
|
+
return buildSegmentMeshGroup(object, localParent, (length) => new BoxGeometry(cubeSize, length, cubeSize));
|
|
114
|
+
}
|
|
115
|
+
function buildParticlesGroup(object, localParent) {
|
|
116
|
+
const g = new Group();
|
|
117
|
+
const geo = buildSubdividedEdgeGeometry(object, 30, localParent);
|
|
118
|
+
const points = new Points(geo, new PointsMaterial({ size: 0.02 }));
|
|
119
|
+
points.renderOrder = 1;
|
|
120
|
+
g.add(points);
|
|
121
|
+
return g;
|
|
122
|
+
}
|
|
123
|
+
function buildEdgesGroup(object, edgesSettings) {
|
|
124
|
+
// Compute the inverse of the object's current local matrix so that
|
|
125
|
+
// collectMeshes results are in object-local space. Without this, the
|
|
126
|
+
// transforms include the object's own matrix and get double-applied when
|
|
127
|
+
// the edges group is added as a child of the object.
|
|
128
|
+
object.updateMatrix();
|
|
129
|
+
const localParent = object.matrix.clone().invert();
|
|
130
|
+
const tubeRadius = edgesSettings.tubeRadius ?? DEFAULT_TUBE_RADIUS;
|
|
131
|
+
const cubeSize = edgesSettings.cubeSize ?? DEFAULT_CUBE_SIZE;
|
|
132
|
+
let g;
|
|
133
|
+
switch (edgesSettings.type) {
|
|
134
|
+
case 'tube':
|
|
135
|
+
g = buildTubeGroup(object, localParent, tubeRadius);
|
|
136
|
+
break;
|
|
137
|
+
case 'cube':
|
|
138
|
+
g = buildCubeGroup(object, localParent, cubeSize);
|
|
139
|
+
break;
|
|
140
|
+
case 'particles':
|
|
141
|
+
g = buildParticlesGroup(object, localParent);
|
|
142
|
+
break;
|
|
143
|
+
default: g = buildLineGroup(object, localParent);
|
|
144
|
+
}
|
|
145
|
+
g.userData[EDGES_GROUP_KEY] = true;
|
|
146
|
+
return g;
|
|
147
|
+
}
|
|
148
|
+
// ─── Cleanup ─────────────────────────────────────────────────────────────────
|
|
149
|
+
function disposeGroup(group) {
|
|
150
|
+
if (!group)
|
|
151
|
+
return;
|
|
152
|
+
group.traverse((child) => {
|
|
153
|
+
if (child instanceof Mesh || child instanceof LineSegments || child instanceof Points) {
|
|
154
|
+
child.geometry.dispose();
|
|
155
|
+
if (Array.isArray(child.material)) {
|
|
156
|
+
child.material.forEach((m) => m.dispose());
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
child.material.dispose?.();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// ─── Hook ─────────────────────────────────────────────────────────────────────
|
|
165
|
+
export function useObjectEdges(objectId, edgesSettings) {
|
|
166
|
+
const childrenWithMaterialsRef = useRef([]);
|
|
167
|
+
const object = findById(objectId);
|
|
168
|
+
const edgesGroup = useMemo(() => {
|
|
169
|
+
if (!object || !edgesSettings.enabled)
|
|
170
|
+
return null;
|
|
171
|
+
return buildEdgesGroup(object, edgesSettings);
|
|
172
|
+
// Rebuild when geometry-affecting settings change
|
|
173
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
174
|
+
}, [object, edgesSettings.type, edgesSettings.enabled, edgesSettings.tubeRadius, edgesSettings.cubeSize]);
|
|
175
|
+
// Attach edges to the live object so they move with it
|
|
176
|
+
useEffect(() => {
|
|
177
|
+
if (!object || !edgesGroup)
|
|
178
|
+
return;
|
|
179
|
+
object.add(edgesGroup);
|
|
180
|
+
return () => { object.remove(edgesGroup); };
|
|
181
|
+
}, [object, edgesGroup]);
|
|
182
|
+
// Dispose Three.js resources when group is rebuilt or hook unmounts
|
|
183
|
+
useEffect(() => {
|
|
184
|
+
return () => { disposeGroup(edgesGroup); };
|
|
185
|
+
}, [edgesGroup]);
|
|
186
|
+
// Cache edge meshes after the group is attached so useFrame has them on first frame
|
|
187
|
+
useEffect(() => {
|
|
188
|
+
childrenWithMaterialsRef.current = edgesGroup ? cacheChildrenWithMaterials(edgesGroup) : [];
|
|
189
|
+
}, [edgesGroup]);
|
|
190
|
+
// Apply material reactively — works for all three types since each child has .material
|
|
191
|
+
useMaterialApplication(edgesGroup, edgesSettings.materialSettings, edgesSettings.enabled);
|
|
192
|
+
useFrame((state, delta) => {
|
|
193
|
+
if (!edgesGroup)
|
|
194
|
+
return;
|
|
195
|
+
const time = state.clock.getElapsedTime();
|
|
196
|
+
const mouse = state.pointer;
|
|
197
|
+
animateUniforms(childrenWithMaterialsRef.current, time, mouse, state.camera.position);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Object3D } from 'three';
|
|
2
|
+
export interface ObjectEffectsState {
|
|
3
|
+
glowingObjects: Set<string>;
|
|
4
|
+
vanishedObjects: Set<string>;
|
|
5
|
+
}
|
|
6
|
+
export interface ObjectEffectsFunctions {
|
|
7
|
+
vanishObject: (object: Object3D, duration?: number, ease?: string) => void;
|
|
8
|
+
restoreVanishedObject: (object: Object3D, duration?: number, ease?: string) => void;
|
|
9
|
+
animateGlowEffect: (object: Object3D) => void;
|
|
10
|
+
removeGlow: (object: Object3D) => void;
|
|
11
|
+
isVanished: (objectUuid: string) => boolean;
|
|
12
|
+
isGlowing: (objectUuid: string) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface UseObjectEffectsReturn extends ObjectEffectsFunctions {
|
|
15
|
+
glowingObjects: React.MutableRefObject<Set<string>>;
|
|
16
|
+
vanishedObjects: React.MutableRefObject<Set<string>>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hook for managing visual object effects
|
|
20
|
+
*/
|
|
21
|
+
export declare function useObjectEffects(): UseObjectEffectsReturn;
|
|
22
|
+
export default useObjectEffects;
|
|
23
|
+
//# sourceMappingURL=useObjectEffects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useObjectEffects.d.ts","sourceRoot":"","sources":["../../src/hooks/useObjectEffects.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,kBAAkB;IAC/B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,sBAAsB;IACnC,YAAY,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,qBAAqB,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpF,iBAAiB,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IAClE,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACxD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,sBAAsB,CAoJzD;AACD,eAAe,gBAAgB,CAAC"}
|