@3driseai/3drise-viewer 0.1.26 → 0.1.28
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/animationsV2/ClipPlayer.d.ts +3 -0
- package/dist/animationsV2/ClipPlayer.d.ts.map +1 -1
- package/dist/animationsV2/ClipPlayer.js +67 -8
- package/dist/animationsV2/ClipsRuntime.d.ts +39 -0
- package/dist/animationsV2/ClipsRuntime.d.ts.map +1 -1
- package/dist/animationsV2/ClipsRuntime.js +245 -14
- package/dist/animationsV2/appliers.d.ts +5 -0
- package/dist/animationsV2/appliers.d.ts.map +1 -1
- package/dist/animationsV2/appliers.js +25 -7
- package/dist/animationsV2/index.d.ts +1 -1
- package/dist/animationsV2/index.d.ts.map +1 -1
- package/dist/animationsV2/normalize.d.ts.map +1 -1
- package/dist/animationsV2/normalize.js +18 -7
- package/dist/animationsV2/sequenceUtils.d.ts +42 -1
- package/dist/animationsV2/sequenceUtils.d.ts.map +1 -1
- package/dist/animationsV2/sequenceUtils.js +103 -3
- package/dist/animationsV2/types.d.ts +20 -0
- package/dist/animationsV2/types.d.ts.map +1 -1
- package/dist/components/AdvancedGrid.d.ts +8 -2
- package/dist/components/AdvancedGrid.d.ts.map +1 -1
- package/dist/components/AdvancedGrid.js +31 -14
- package/dist/components/AnimatedObject.d.ts.map +1 -1
- package/dist/components/AnimatedObject.js +7 -5
- package/dist/components/ApollonianGrid.d.ts +25 -0
- package/dist/components/ApollonianGrid.d.ts.map +1 -0
- package/dist/components/ApollonianGrid.js +80 -0
- package/dist/components/Bubbles.d.ts +7 -1
- package/dist/components/Bubbles.d.ts.map +1 -1
- package/dist/components/Bubbles.js +42 -22
- package/dist/components/ChladniGrid.d.ts +8 -4
- package/dist/components/ChladniGrid.d.ts.map +1 -1
- package/dist/components/ChladniGrid.js +31 -13
- package/dist/components/CircuitGrid.d.ts +8 -11
- package/dist/components/CircuitGrid.d.ts.map +1 -1
- package/dist/components/CircuitGrid.js +31 -13
- package/dist/components/CloudsGenerator.d.ts +1 -1
- package/dist/components/CloudsGenerator.js +1 -1
- package/dist/components/ConformalGrid.d.ts +25 -0
- package/dist/components/ConformalGrid.d.ts.map +1 -0
- package/dist/components/ConformalGrid.js +97 -0
- package/dist/components/ContourGrid.d.ts +8 -14
- package/dist/components/ContourGrid.d.ts.map +1 -1
- package/dist/components/ContourGrid.js +31 -13
- package/dist/components/EffectsGenerator.d.ts +7 -1
- package/dist/components/EffectsGenerator.d.ts.map +1 -1
- package/dist/components/EffectsGenerator.js +39 -38
- package/dist/components/EnvironmentManager.d.ts +4 -4
- package/dist/components/EnvironmentManager.d.ts.map +1 -1
- package/dist/components/FlowNetGrid.d.ts +8 -4
- package/dist/components/FlowNetGrid.d.ts.map +1 -1
- package/dist/components/FlowNetGrid.js +31 -13
- package/dist/components/FractalGrid.d.ts +8 -12
- package/dist/components/FractalGrid.d.ts.map +1 -1
- package/dist/components/FractalGrid.js +31 -13
- package/dist/components/GirihGrid.d.ts +8 -1
- package/dist/components/GirihGrid.d.ts.map +1 -1
- package/dist/components/GirihGrid.js +31 -13
- package/dist/components/Glyphs.d.ts +7 -1
- package/dist/components/Glyphs.d.ts.map +1 -1
- package/dist/components/Glyphs.js +40 -34
- package/dist/components/GravWaveGrid.d.ts +8 -1
- package/dist/components/GravWaveGrid.d.ts.map +1 -1
- package/dist/components/GravWaveGrid.js +31 -13
- package/dist/components/GridsGenerator.d.ts +9 -3
- package/dist/components/GridsGenerator.d.ts.map +1 -1
- package/dist/components/GridsGenerator.js +41 -18
- package/dist/components/HexGrid.d.ts +8 -10
- package/dist/components/HexGrid.d.ts.map +1 -1
- package/dist/components/HexGrid.js +31 -13
- package/dist/components/HilbertGrid.d.ts +25 -0
- package/dist/components/HilbertGrid.d.ts.map +1 -0
- package/dist/components/HilbertGrid.js +93 -0
- package/dist/components/HyperbolicGrid.d.ts +8 -4
- package/dist/components/HyperbolicGrid.d.ts.map +1 -1
- package/dist/components/HyperbolicGrid.js +31 -13
- package/dist/components/LandscapeBuilder.d.ts +1 -1
- package/dist/components/LandscapeBuilder.d.ts.map +1 -1
- package/dist/components/LandscapeBuilder.js +1 -1
- package/dist/components/LandscapeObject.d.ts +1 -1
- package/dist/components/LandscapeObject.d.ts.map +1 -1
- package/dist/components/LandscapeObject.js +1 -1
- package/dist/components/LensingGrid.d.ts +25 -0
- package/dist/components/LensingGrid.d.ts.map +1 -0
- package/dist/components/LensingGrid.js +81 -0
- package/dist/components/MoireGrid.d.ts +8 -12
- package/dist/components/MoireGrid.d.ts.map +1 -1
- package/dist/components/MoireGrid.js +31 -13
- package/dist/components/ObjectNode.d.ts.map +1 -1
- package/dist/components/ObjectNode.js +2 -2
- package/dist/components/ObjectsRenderer.d.ts.map +1 -1
- package/dist/components/ObjectsRenderer.js +37 -3
- package/dist/components/OceanBuilder.d.ts +1 -1
- package/dist/components/OceanBuilder.js +1 -1
- package/dist/components/ParastichyGrid.d.ts +25 -0
- package/dist/components/ParastichyGrid.d.ts.map +1 -0
- package/dist/components/ParastichyGrid.js +82 -0
- package/dist/components/ParticlesGenerator.d.ts.map +1 -1
- package/dist/components/ParticlesGenerator.js +6 -0
- package/dist/components/PhyllotaxisGrid.d.ts +25 -0
- package/dist/components/PhyllotaxisGrid.d.ts.map +1 -0
- package/dist/components/PhyllotaxisGrid.js +95 -0
- package/dist/components/QuasiGrid.d.ts +8 -11
- package/dist/components/QuasiGrid.d.ts.map +1 -1
- package/dist/components/QuasiGrid.js +31 -13
- package/dist/components/RadarGrid.d.ts +8 -13
- package/dist/components/RadarGrid.d.ts.map +1 -1
- package/dist/components/RadarGrid.js +31 -13
- package/dist/components/ReactionDiffusionGrid.d.ts +8 -1
- package/dist/components/ReactionDiffusionGrid.d.ts.map +1 -1
- package/dist/components/ReactionDiffusionGrid.js +33 -139
- package/dist/components/SceneBuilder.js +1 -1
- package/dist/components/SkySystem.d.ts +1 -1
- package/dist/components/SparklesBurst.d.ts +7 -1
- package/dist/components/SparklesBurst.d.ts.map +1 -1
- package/dist/components/SparklesBurst.js +31 -28
- package/dist/components/TerrainBuilder.d.ts +1 -1
- package/dist/components/TerrainBuilder.d.ts.map +1 -1
- package/dist/components/TerrainBuilder.js +1 -1
- package/dist/components/TruchetGrid.d.ts +25 -0
- package/dist/components/TruchetGrid.d.ts.map +1 -0
- package/dist/components/TruchetGrid.js +82 -0
- package/dist/components/VoronoiGrid.d.ts +8 -10
- package/dist/components/VoronoiGrid.d.ts.map +1 -1
- package/dist/components/VoronoiGrid.js +31 -13
- package/dist/components/WallpaperGrid.d.ts +8 -1
- package/dist/components/WallpaperGrid.d.ts.map +1 -1
- package/dist/components/WallpaperGrid.js +33 -210
- package/dist/components/effects/AuraEffect.d.ts +8 -3
- package/dist/components/effects/AuraEffect.d.ts.map +1 -1
- package/dist/components/effects/AuraEffect.js +49 -24
- package/dist/components/effects/AuroraEffect.d.ts +8 -3
- package/dist/components/effects/AuroraEffect.d.ts.map +1 -1
- package/dist/components/effects/AuroraEffect.js +45 -25
- package/dist/components/effects/BlackHoleEffect.d.ts +8 -3
- package/dist/components/effects/BlackHoleEffect.d.ts.map +1 -1
- package/dist/components/effects/BlackHoleEffect.js +42 -21
- package/dist/components/effects/ConstellationEffect.d.ts +8 -3
- package/dist/components/effects/ConstellationEffect.d.ts.map +1 -1
- package/dist/components/effects/ConstellationEffect.js +49 -23
- package/dist/components/effects/DandelionSeedsEffect.d.ts +7 -2
- package/dist/components/effects/DandelionSeedsEffect.d.ts.map +1 -1
- package/dist/components/effects/DandelionSeedsEffect.js +19 -9
- package/dist/components/effects/DataStreamEffect.d.ts +8 -3
- package/dist/components/effects/DataStreamEffect.d.ts.map +1 -1
- package/dist/components/effects/DataStreamEffect.js +54 -26
- package/dist/components/effects/DnaHelixEffect.d.ts +8 -3
- package/dist/components/effects/DnaHelixEffect.d.ts.map +1 -1
- package/dist/components/effects/DnaHelixEffect.js +62 -30
- package/dist/components/effects/FallingLeavesEffect.d.ts +7 -2
- package/dist/components/effects/FallingLeavesEffect.d.ts.map +1 -1
- package/dist/components/effects/FallingLeavesEffect.js +19 -9
- package/dist/components/effects/FieldLinesEffect.d.ts +8 -3
- package/dist/components/effects/FieldLinesEffect.d.ts.map +1 -1
- package/dist/components/effects/FieldLinesEffect.js +30 -20
- package/dist/components/effects/Fire.d.ts +8 -3
- package/dist/components/effects/Fire.d.ts.map +1 -1
- package/dist/components/effects/Fire.js +47 -10
- package/dist/components/effects/FireflySwarmEffect.d.ts +7 -2
- package/dist/components/effects/FireflySwarmEffect.d.ts.map +1 -1
- package/dist/components/effects/FireflySwarmEffect.js +19 -9
- package/dist/components/effects/Flares.d.ts +10 -3
- package/dist/components/effects/Flares.d.ts.map +1 -1
- package/dist/components/effects/Flares.js +53 -56
- package/dist/components/effects/ForcefieldEffect.d.ts +8 -3
- package/dist/components/effects/ForcefieldEffect.d.ts.map +1 -1
- package/dist/components/effects/ForcefieldEffect.js +52 -33
- package/dist/components/effects/GalaxyEffect.d.ts +7 -2
- package/dist/components/effects/GalaxyEffect.d.ts.map +1 -1
- package/dist/components/effects/GalaxyEffect.js +19 -9
- package/dist/components/effects/HarmonicShellEffect.d.ts +8 -3
- package/dist/components/effects/HarmonicShellEffect.d.ts.map +1 -1
- package/dist/components/effects/HarmonicShellEffect.js +30 -22
- package/dist/components/effects/HologramEffect.d.ts +8 -3
- package/dist/components/effects/HologramEffect.d.ts.map +1 -1
- package/dist/components/effects/HologramEffect.js +52 -23
- package/dist/components/effects/IceCrystalsEffect.d.ts +8 -3
- package/dist/components/effects/IceCrystalsEffect.d.ts.map +1 -1
- package/dist/components/effects/IceCrystalsEffect.js +36 -21
- package/dist/components/effects/IceHaloEffect.d.ts +7 -2
- package/dist/components/effects/IceHaloEffect.d.ts.map +1 -1
- package/dist/components/effects/IceHaloEffect.js +19 -9
- package/dist/components/effects/LichtenbergEffect.d.ts +7 -2
- package/dist/components/effects/LichtenbergEffect.d.ts.map +1 -1
- package/dist/components/effects/LichtenbergEffect.js +19 -9
- package/dist/components/effects/LightningEffect.d.ts +8 -3
- package/dist/components/effects/LightningEffect.d.ts.map +1 -1
- package/dist/components/effects/LightningEffect.js +54 -32
- package/dist/components/effects/MoleculesEffect.d.ts +8 -3
- package/dist/components/effects/MoleculesEffect.d.ts.map +1 -1
- package/dist/components/effects/MoleculesEffect.js +31 -21
- package/dist/components/effects/MurmurationEffect.d.ts +7 -2
- package/dist/components/effects/MurmurationEffect.d.ts.map +1 -1
- package/dist/components/effects/MurmurationEffect.js +19 -9
- package/dist/components/effects/NeuralNetworkEffect.d.ts +8 -3
- package/dist/components/effects/NeuralNetworkEffect.d.ts.map +1 -1
- package/dist/components/effects/NeuralNetworkEffect.js +66 -33
- package/dist/components/effects/OrbEffect.d.ts +8 -3
- package/dist/components/effects/OrbEffect.d.ts.map +1 -1
- package/dist/components/effects/OrbEffect.js +89 -42
- package/dist/components/effects/PlanetaryRingsEffect.d.ts +7 -2
- package/dist/components/effects/PlanetaryRingsEffect.d.ts.map +1 -1
- package/dist/components/effects/PlanetaryRingsEffect.js +19 -9
- package/dist/components/effects/PortalEffect.d.ts +8 -3
- package/dist/components/effects/PortalEffect.d.ts.map +1 -1
- package/dist/components/effects/PortalEffect.js +41 -25
- package/dist/components/effects/ShockwaveEffect.d.ts +7 -2
- package/dist/components/effects/ShockwaveEffect.d.ts.map +1 -1
- package/dist/components/effects/ShockwaveEffect.js +19 -9
- package/dist/components/effects/SmokePlumeEffect.d.ts +8 -3
- package/dist/components/effects/SmokePlumeEffect.d.ts.map +1 -1
- package/dist/components/effects/SmokePlumeEffect.js +30 -20
- package/dist/components/effects/SmokeRibbon.d.ts +8 -2
- package/dist/components/effects/SmokeRibbon.d.ts.map +1 -1
- package/dist/components/effects/SmokeRibbon.js +34 -24
- package/dist/components/effects/SmokeRingEffect.d.ts +8 -3
- package/dist/components/effects/SmokeRingEffect.d.ts.map +1 -1
- package/dist/components/effects/SmokeRingEffect.js +33 -21
- package/dist/components/effects/StrangeAttractorEffect.d.ts +8 -3
- package/dist/components/effects/StrangeAttractorEffect.d.ts.map +1 -1
- package/dist/components/effects/StrangeAttractorEffect.js +30 -20
- package/dist/components/effects/VolumetricFogEffect.d.ts +8 -3
- package/dist/components/effects/VolumetricFogEffect.d.ts.map +1 -1
- package/dist/components/effects/VolumetricFogEffect.js +38 -20
- package/dist/components/effects/WaterCausticsEffect.d.ts +7 -2
- package/dist/components/effects/WaterCausticsEffect.d.ts.map +1 -1
- package/dist/components/effects/WaterCausticsEffect.js +19 -9
- package/dist/components/effects/index.d.ts +0 -1
- package/dist/components/effects/index.d.ts.map +1 -1
- package/dist/components/effects/index.js +0 -1
- package/dist/components/index.d.ts +14 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -1
- package/dist/components/landscape/LandscapeMesh.js +1 -1
- package/dist/components/landscape/types.d.ts +1 -1
- package/dist/components/landscape/types.d.ts.map +1 -1
- package/dist/components/particles/MagneticBottleParticles.d.ts +17 -0
- package/dist/components/particles/MagneticBottleParticles.d.ts.map +1 -0
- package/dist/components/particles/MagneticBottleParticles.js +618 -0
- package/dist/components/particles/ShapeBurstParticles.d.ts +17 -0
- package/dist/components/particles/ShapeBurstParticles.d.ts.map +1 -0
- package/dist/components/particles/ShapeBurstParticles.js +588 -0
- package/dist/components/particles/ShapeFlowParticles.d.ts +17 -0
- package/dist/components/particles/ShapeFlowParticles.d.ts.map +1 -0
- package/dist/components/particles/ShapeFlowParticles.js +755 -0
- package/dist/components/particles/index.d.ts +6 -0
- package/dist/components/particles/index.d.ts.map +1 -1
- package/dist/components/particles/index.js +3 -0
- package/dist/components/terrain/types.d.ts +1 -1
- package/dist/components/terrain/types.d.ts.map +1 -1
- package/dist/components/volumetricClouds/VolumetricCloudsPass.d.ts +1 -1
- package/dist/components/volumetricClouds/VolumetricCloudsPass.d.ts.map +1 -1
- package/dist/components/volumetricClouds/types.d.ts +1 -1
- package/dist/components/volumetricClouds/types.d.ts.map +1 -1
- package/dist/components/water/types.d.ts +1 -1
- package/dist/components/water/types.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useConfigDriver.d.ts +22 -0
- package/dist/hooks/useConfigDriver.d.ts.map +1 -0
- package/dist/hooks/useConfigDriver.js +43 -0
- package/dist/hooks/useConfigLive.d.ts +1 -1
- package/dist/hooks/useConfigLive.d.ts.map +1 -1
- package/dist/hooks/useLandscapeMaps.d.ts +1 -1
- package/dist/hooks/useLandscapeMaps.d.ts.map +1 -1
- package/dist/hooks/useOceanMaterial.d.ts +1 -1
- package/dist/hooks/useThunder.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/interactions/index.d.ts +2 -1
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/interactions/index.js +1 -1
- package/dist/interactions/runner.d.ts +18 -3
- package/dist/interactions/runner.d.ts.map +1 -1
- package/dist/interactions/runner.js +25 -2
- package/dist/operations/catalogue/curlSmoke.d.ts +3 -0
- package/dist/operations/catalogue/curlSmoke.d.ts.map +1 -0
- package/dist/operations/catalogue/curlSmoke.js +178 -0
- package/dist/operations/catalogue/displayImage.d.ts.map +1 -1
- package/dist/operations/catalogue/displayImage.js +1 -0
- package/dist/operations/catalogue/dissolve.d.ts +3 -0
- package/dist/operations/catalogue/dissolve.d.ts.map +1 -0
- package/dist/operations/catalogue/dissolve.js +57 -0
- package/dist/operations/catalogue/emberAsh.d.ts +3 -0
- package/dist/operations/catalogue/emberAsh.d.ts.map +1 -0
- package/dist/operations/catalogue/emberAsh.js +171 -0
- package/dist/operations/catalogue/fade.d.ts.map +1 -1
- package/dist/operations/catalogue/fade.js +1 -0
- package/dist/operations/catalogue/flip.d.ts +3 -0
- package/dist/operations/catalogue/flip.d.ts.map +1 -0
- package/dist/operations/catalogue/flip.js +69 -0
- package/dist/operations/catalogue/flock.d.ts +3 -0
- package/dist/operations/catalogue/flock.d.ts.map +1 -0
- package/dist/operations/catalogue/flock.js +163 -0
- package/dist/operations/catalogue/focus.d.ts.map +1 -1
- package/dist/operations/catalogue/focus.js +1 -0
- package/dist/operations/catalogue/frame.d.ts +3 -0
- package/dist/operations/catalogue/frame.d.ts.map +1 -0
- package/dist/operations/catalogue/frame.js +44 -0
- package/dist/operations/catalogue/frost.d.ts +3 -0
- package/dist/operations/catalogue/frost.d.ts.map +1 -0
- package/dist/operations/catalogue/frost.js +111 -0
- package/dist/operations/catalogue/fxInstances.d.ts +21 -0
- package/dist/operations/catalogue/fxInstances.d.ts.map +1 -0
- package/dist/operations/catalogue/fxInstances.js +47 -0
- package/dist/operations/catalogue/fxPoints.d.ts +22 -0
- package/dist/operations/catalogue/fxPoints.d.ts.map +1 -0
- package/dist/operations/catalogue/fxPoints.js +70 -0
- package/dist/operations/catalogue/glow.d.ts.map +1 -1
- package/dist/operations/catalogue/glow.js +2 -1
- package/dist/operations/catalogue/heatCracks.d.ts +3 -0
- package/dist/operations/catalogue/heatCracks.d.ts.map +1 -0
- package/dist/operations/catalogue/heatCracks.js +134 -0
- package/dist/operations/catalogue/hologram.d.ts +3 -0
- package/dist/operations/catalogue/hologram.d.ts.map +1 -0
- package/dist/operations/catalogue/hologram.js +118 -0
- package/dist/operations/catalogue/inkBloom.d.ts +3 -0
- package/dist/operations/catalogue/inkBloom.d.ts.map +1 -0
- package/dist/operations/catalogue/inkBloom.js +156 -0
- package/dist/operations/catalogue/ivy.d.ts +13 -0
- package/dist/operations/catalogue/ivy.d.ts.map +1 -0
- package/dist/operations/catalogue/ivy.js +469 -0
- package/dist/operations/catalogue/jelly.d.ts +3 -0
- package/dist/operations/catalogue/jelly.d.ts.map +1 -0
- package/dist/operations/catalogue/jelly.js +50 -0
- package/dist/operations/catalogue/kintsugi.d.ts +3 -0
- package/dist/operations/catalogue/kintsugi.d.ts.map +1 -0
- package/dist/operations/catalogue/kintsugi.js +173 -0
- package/dist/operations/catalogue/lidarScan.d.ts +3 -0
- package/dist/operations/catalogue/lidarScan.d.ts.map +1 -0
- package/dist/operations/catalogue/lidarScan.js +240 -0
- package/dist/operations/catalogue/liquidMetal.d.ts +3 -0
- package/dist/operations/catalogue/liquidMetal.d.ts.map +1 -0
- package/dist/operations/catalogue/liquidMetal.js +122 -0
- package/dist/operations/catalogue/metalize.d.ts +3 -0
- package/dist/operations/catalogue/metalize.d.ts.map +1 -0
- package/dist/operations/catalogue/metalize.js +135 -0
- package/dist/operations/catalogue/moveToFront.d.ts.map +1 -1
- package/dist/operations/catalogue/moveToFront.js +1 -0
- package/dist/operations/catalogue/orbit.d.ts +3 -0
- package/dist/operations/catalogue/orbit.d.ts.map +1 -0
- package/dist/operations/catalogue/orbit.js +29 -0
- package/dist/operations/catalogue/particleSwarm.d.ts +3 -0
- package/dist/operations/catalogue/particleSwarm.d.ts.map +1 -0
- package/dist/operations/catalogue/particleSwarm.js +138 -0
- package/dist/operations/catalogue/petalPeel.d.ts +3 -0
- package/dist/operations/catalogue/petalPeel.d.ts.map +1 -0
- package/dist/operations/catalogue/petalPeel.js +137 -0
- package/dist/operations/catalogue/petrify.d.ts +3 -0
- package/dist/operations/catalogue/petrify.d.ts.map +1 -0
- package/dist/operations/catalogue/petrify.js +94 -0
- package/dist/operations/catalogue/portal.d.ts +3 -0
- package/dist/operations/catalogue/portal.d.ts.map +1 -0
- package/dist/operations/catalogue/portal.js +224 -0
- package/dist/operations/catalogue/print3d.d.ts +3 -0
- package/dist/operations/catalogue/print3d.d.ts.map +1 -0
- package/dist/operations/catalogue/print3d.js +275 -0
- package/dist/operations/catalogue/rainBeads.d.ts +3 -0
- package/dist/operations/catalogue/rainBeads.d.ts.map +1 -0
- package/dist/operations/catalogue/rainBeads.js +223 -0
- package/dist/operations/catalogue/restPose.d.ts +21 -0
- package/dist/operations/catalogue/restPose.d.ts.map +1 -0
- package/dist/operations/catalogue/restPose.js +55 -0
- package/dist/operations/catalogue/rimLight.d.ts +3 -0
- package/dist/operations/catalogue/rimLight.d.ts.map +1 -0
- package/dist/operations/catalogue/rimLight.js +72 -0
- package/dist/operations/catalogue/sandErosion.d.ts +3 -0
- package/dist/operations/catalogue/sandErosion.d.ts.map +1 -0
- package/dist/operations/catalogue/sandErosion.js +167 -0
- package/dist/operations/catalogue/shaderLayers.d.ts +74 -0
- package/dist/operations/catalogue/shaderLayers.d.ts.map +1 -0
- package/dist/operations/catalogue/shaderLayers.js +322 -0
- package/dist/operations/catalogue/shatter.d.ts +3 -0
- package/dist/operations/catalogue/shatter.d.ts.map +1 -0
- package/dist/operations/catalogue/shatter.js +267 -0
- package/dist/operations/catalogue/silkDrape.d.ts +3 -0
- package/dist/operations/catalogue/silkDrape.d.ts.map +1 -0
- package/dist/operations/catalogue/silkDrape.js +340 -0
- package/dist/operations/catalogue/spin.d.ts +3 -0
- package/dist/operations/catalogue/spin.d.ts.map +1 -0
- package/dist/operations/catalogue/spin.js +42 -0
- package/dist/operations/catalogue/surfaceSample.d.ts +17 -0
- package/dist/operations/catalogue/surfaceSample.d.ts.map +1 -0
- package/dist/operations/catalogue/surfaceSample.js +187 -0
- package/dist/operations/catalogue/swirl.d.ts +3 -0
- package/dist/operations/catalogue/swirl.d.ts.map +1 -0
- package/dist/operations/catalogue/swirl.js +69 -0
- package/dist/operations/catalogue/teleport.d.ts +3 -0
- package/dist/operations/catalogue/teleport.d.ts.map +1 -0
- package/dist/operations/catalogue/teleport.js +213 -0
- package/dist/operations/catalogue/transitionField.d.ts +124 -0
- package/dist/operations/catalogue/transitionField.d.ts.map +1 -0
- package/dist/operations/catalogue/transitionField.js +278 -0
- package/dist/operations/catalogue/unweave.d.ts +3 -0
- package/dist/operations/catalogue/unweave.d.ts.map +1 -0
- package/dist/operations/catalogue/unweave.js +233 -0
- package/dist/operations/catalogue/visibility.d.ts.map +1 -1
- package/dist/operations/catalogue/visibility.js +1 -0
- package/dist/operations/catalogue/voxelize.d.ts +3 -0
- package/dist/operations/catalogue/voxelize.d.ts.map +1 -0
- package/dist/operations/catalogue/voxelize.js +148 -0
- package/dist/operations/catalogue/warmup.d.ts +22 -0
- package/dist/operations/catalogue/warmup.d.ts.map +1 -0
- package/dist/operations/catalogue/warmup.js +106 -0
- package/dist/operations/catalogue/zoom.d.ts.map +1 -1
- package/dist/operations/catalogue/zoom.js +1 -0
- package/dist/operations/index.d.ts +4 -2
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +4 -2
- package/dist/operations/objectEffects.d.ts +46 -0
- package/dist/operations/objectEffects.d.ts.map +1 -0
- package/dist/operations/objectEffects.js +136 -0
- package/dist/operations/registry.d.ts +7 -2
- package/dist/operations/registry.d.ts.map +1 -1
- package/dist/operations/registry.js +45 -3
- package/dist/operations/runtime.d.ts +40 -2
- package/dist/operations/runtime.d.ts.map +1 -1
- package/dist/operations/runtime.js +164 -8
- package/dist/operations/types.d.ts +29 -3
- package/dist/operations/types.d.ts.map +1 -1
- package/dist/operations/types.js +6 -0
- package/dist/operations/useObjectEffectLayers.d.ts +4 -0
- package/dist/operations/useObjectEffectLayers.d.ts.map +1 -0
- package/dist/operations/useObjectEffectLayers.js +42 -0
- package/dist/operations/useOperationsRuntime.d.ts.map +1 -1
- package/dist/operations/useOperationsRuntime.js +42 -4
- package/dist/presets/landscapePresets.d.ts +1 -1
- package/dist/presets/landscapePresets.d.ts.map +1 -1
- package/dist/presets/landscapePresets.js +1 -1
- package/dist/presets/landscapeTypes.d.ts +1 -1
- package/dist/presets/landscapeTypes.d.ts.map +1 -1
- package/dist/presets/landscapeTypes.js +1 -1
- package/dist/presets/oceanSurfacePresets.d.ts +1 -1
- package/dist/presets/terrainPresets.d.ts +1 -1
- package/dist/presets/terrainPresets.d.ts.map +1 -1
- package/dist/presets/volumetricCloudPresets.d.ts +1 -1
- package/dist/types/cloudConfigs.d.ts +2 -309
- package/dist/types/cloudConfigs.d.ts.map +1 -1
- package/dist/types/cloudConfigs.js +2 -339
- package/dist/types/gridConfigs.d.ts +103 -0
- package/dist/types/gridConfigs.d.ts.map +1 -1
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/landscapeConfigs.d.ts +2 -217
- package/dist/types/landscapeConfigs.d.ts.map +1 -1
- package/dist/types/landscapeConfigs.js +2 -256
- package/dist/types/oceanConfigs.d.ts +2 -289
- package/dist/types/oceanConfigs.d.ts.map +1 -1
- package/dist/types/oceanConfigs.js +2 -380
- package/dist/types/terrainConfigs.d.ts +2 -250
- package/dist/types/terrainConfigs.d.ts.map +1 -1
- package/dist/types/terrainConfigs.js +2 -292
- package/dist/utils/cloudUniforms.d.ts +1 -1
- package/dist/utils/configAnimations.d.ts +6 -0
- package/dist/utils/configAnimations.d.ts.map +1 -1
- package/dist/utils/configAnimations.js +14 -0
- package/dist/utils/gridConfig.d.ts +19 -0
- package/dist/utils/gridConfig.d.ts.map +1 -0
- package/dist/utils/gridConfig.js +52 -0
- package/dist/utils/handleCloudsAnimations.d.ts +1 -1
- package/dist/utils/handleCloudsAnimations.js +1 -1
- package/dist/utils/hasHoverAnimation.d.ts.map +1 -1
- package/dist/utils/hasHoverAnimation.js +0 -2
- package/dist/utils/landscapeUniforms.d.ts +1 -1
- package/dist/utils/landscapeUniforms.d.ts.map +1 -1
- package/dist/utils/oceanUniforms.d.ts +1 -1
- package/dist/utils/particleShape.d.ts +33 -0
- package/dist/utils/particleShape.d.ts.map +1 -0
- package/dist/utils/particleShape.js +207 -0
- package/dist/utils/particleTrails.d.ts.map +1 -1
- package/dist/utils/particleTrails.js +29 -14
- package/dist/utils/terrainUniforms.d.ts +1 -1
- package/dist/utils/terrainUniforms.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -14,4 +14,10 @@ export { default as FaradayPowderParticles } from './FaradayPowderParticles';
|
|
|
14
14
|
export type { FaradayPowderParticlesProps } from './FaradayPowderParticles';
|
|
15
15
|
export { default as NeonRainParticles } from './NeonRainParticles';
|
|
16
16
|
export type { NeonRainParticlesProps } from './NeonRainParticles';
|
|
17
|
+
export { default as MagneticBottleParticles } from './MagneticBottleParticles';
|
|
18
|
+
export type { MagneticBottleParticlesProps } from './MagneticBottleParticles';
|
|
19
|
+
export { default as ShapeBurstParticles } from './ShapeBurstParticles';
|
|
20
|
+
export type { ShapeBurstParticlesProps } from './ShapeBurstParticles';
|
|
21
|
+
export { default as ShapeFlowParticles } from './ShapeFlowParticles';
|
|
22
|
+
export type { ShapeFlowParticlesProps } from './ShapeFlowParticles';
|
|
17
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/particles/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACvF,YAAY,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,YAAY,EAAE,2B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M,2BAA2B,CAAC;AAC/E,YAAY,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -7,3 +7,6 @@ export { default as GrinderSparksParticles } from './GrinderSparksParticles.js';
|
|
|
7
7
|
export { default as ChladniSandParticles } from './ChladniSandParticles.js';
|
|
8
8
|
export { default as FaradayPowderParticles } from './FaradayPowderParticles.js';
|
|
9
9
|
export { default as NeonRainParticles } from './NeonRainParticles.js';
|
|
10
|
+
export { default as MagneticBottleParticles } from './MagneticBottleParticles.js';
|
|
11
|
+
export { default as ShapeBurstParticles } from './ShapeBurstParticles.js';
|
|
12
|
+
export { default as ShapeFlowParticles } from './ShapeFlowParticles.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SkySettings, TimeSettings } from '@3driseai/3drise-core';
|
|
2
2
|
import type { ObjectReadyProps } from '../../types/objectReady';
|
|
3
|
-
import type { TerrainConfig, TerrainQualityConfig } from '
|
|
3
|
+
import type { TerrainConfig, TerrainQualityConfig } from '@3driseai/3drise-core';
|
|
4
4
|
/** Shared by every landform component. The builder hands all four the same shape. */
|
|
5
5
|
export interface TerrainLayerProps extends ObjectReadyProps {
|
|
6
6
|
/** Scene id, so a controller can findById() the terrain and drive it live. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/terrain/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/terrain/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,qFAAqF;AACrF,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,8EAA8E;IAC9E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,oBAAoB,CAAC;IAC9B;2DACuD;IACvD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ObjectReadyProps } from '../../types/objectReady';
|
|
3
3
|
import type { SkySettings, TimeSettings } from '@3driseai/3drise-core';
|
|
4
|
-
import type { CirrusLayerConfig, CloudDeckConfig, CloudsQualityConfig, ThunderConfig } from '
|
|
4
|
+
import type { CirrusLayerConfig, CloudDeckConfig, CloudsQualityConfig, ThunderConfig } from '@3driseai/3drise-core';
|
|
5
5
|
import type { ObjectAnimations, MouseMoveInteractions } from '@3driseai/3drise-core';
|
|
6
6
|
/**
|
|
7
7
|
* The cloud render pipeline. The only component in this package that takes over
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolumetricCloudsPass.d.ts","sourceRoot":"","sources":["../../../src/components/volumetricClouds/VolumetricCloudsPass.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,C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AA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmW7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MouseMoveInteractions, ObjectAnimations, SkySettings, TimeSettings } from '@3driseai/3drise-core';
|
|
2
2
|
import type { ObjectReadyProps } from '../../types/objectReady';
|
|
3
|
-
import type { CirrusLayerConfig, CloudDeckConfig, CloudsQualityConfig, ThunderConfig } from '
|
|
3
|
+
import type { CirrusLayerConfig, CloudDeckConfig, CloudsQualityConfig, ThunderConfig } from '@3driseai/3drise-core';
|
|
4
4
|
/** Shared by every layer component. The generator hands all four the same shape. */
|
|
5
5
|
export interface CloudLayerProps extends ObjectReadyProps {
|
|
6
6
|
/** Scene id, so a controller can findById() the layer and drive it live. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/volumetricClouds/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/volumetricClouds/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEpH,oFAAoF;AACpF,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACrD,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,qEAAqE;IACrE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SkySettings, TimeSettings } from '@3driseai/3drise-core';
|
|
2
2
|
import type { ObjectReadyProps } from '../../types/objectReady';
|
|
3
|
-
import type { OceanConfig, OceanMeshSettings, OceanQualityConfig } from '
|
|
3
|
+
import type { OceanConfig, OceanMeshSettings, OceanQualityConfig } from '@3driseai/3drise-core';
|
|
4
4
|
/** Shared by every water type. The builder hands all four the same shape. */
|
|
5
5
|
export interface OceanLayerProps extends ObjectReadyProps {
|
|
6
6
|
/** Scene id, so a controller can findById() the water and drive it live. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/water/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/water/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,6EAA6E;AAC7E,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACrD,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,kBAAkB,CAAC;IAC5B;;4DAEwD;IACxD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACpC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export { OCEAN_LIVE_KEY, useOceanLive } from './useOceanLive';
|
|
|
18
18
|
export { useOceanMaterial } from './useOceanMaterial';
|
|
19
19
|
export type { ConfigLiveHandle, ConfigLiveValue, ConfigLiveFamily } from './useConfigLive';
|
|
20
20
|
export { CONFIG_LIVE_KEY, useConfigLive, useConfigLiveHandle } from './useConfigLive';
|
|
21
|
+
export type { ConfigDriverOptions } from './useConfigDriver';
|
|
22
|
+
export { useConfigDriver } from './useConfigDriver';
|
|
21
23
|
export type { UseOceanMaterialOptions, OceanMaterialHandle } from './useOceanMaterial';
|
|
22
24
|
export type { UseContinuousEffectsOptions, UseContinuousEffectsResult } from './useContinuousEffects';
|
|
23
25
|
export { useContinuousEffects } from './useContinuousEffects';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,eAA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AkB,EAAE,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { useClipmap } from './useClipmap.js';
|
|
|
13
13
|
export { OCEAN_LIVE_KEY, useOceanLive } from './useOceanLive.js';
|
|
14
14
|
export { useOceanMaterial } from './useOceanMaterial.js';
|
|
15
15
|
export { CONFIG_LIVE_KEY, useConfigLive, useConfigLiveHandle } from './useConfigLive.js';
|
|
16
|
+
export { useConfigDriver } from './useConfigDriver.js';
|
|
16
17
|
export { useContinuousEffects } from './useContinuousEffects.js';
|
|
17
18
|
export { useCubeCamera } from './useCubeCamera.js';
|
|
18
19
|
export { useEnvironmentProbe } from './useEnvironmentProbe.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type MutableRefObject, type RefObject } from 'react';
|
|
2
|
+
import type { Object3D } from 'three';
|
|
3
|
+
import type { AnimationOptions, MouseMoveDomain } from '@3driseai/3drise-core';
|
|
4
|
+
import { type ConfigLiveFamily, type ConfigLiveValue } from './useConfigLive';
|
|
5
|
+
export interface ConfigDriverOptions {
|
|
6
|
+
rootRef: RefObject<Object3D | null>;
|
|
7
|
+
/** Scene object id. Without one (an effect attached to a mesh) there is no live handle. */
|
|
8
|
+
id: string | undefined;
|
|
9
|
+
family: ConfigLiveFamily;
|
|
10
|
+
base: object;
|
|
11
|
+
/** Knobs that rebuild the object: never live, they change once, on commit. */
|
|
12
|
+
structural: readonly string[];
|
|
13
|
+
/** The knobs the push point applies — the family's generated animatable list. */
|
|
14
|
+
allowed: ReadonlySet<string>;
|
|
15
|
+
keyframes?: AnimationOptions[];
|
|
16
|
+
mouseMove?: MouseMoveDomain;
|
|
17
|
+
/** The component's single push point. */
|
|
18
|
+
push: (merged: Record<string, unknown>) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function useConfigDriver({ rootRef, id, family, base, structural, allowed, keyframes, mouseMove, push, }: ConfigDriverOptions): MutableRefObject<Record<string, ConfigLiveValue>>;
|
|
21
|
+
export default useConfigDriver;
|
|
22
|
+
//# sourceMappingURL=useConfigDriver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfigDriver.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfigDriver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,EAAuB,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AA6BnG,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IACpC,2FAA2F;IAC3F,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iFAAiF;IACjF,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,yCAAyC;IACzC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,eAAe,CAAC,EAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAC7E,EAAE,mBAAmB,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAwCzE;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
2
|
+
import { useFrame } from '@react-three/fiber';
|
|
3
|
+
import { applyConfigKeyframeAnimations, applyConfigMouseMove } from '../utils/configAnimations.js';
|
|
4
|
+
import { useConfigLiveHandle } from './useConfigLive.js';
|
|
5
|
+
export function useConfigDriver({ rootRef, id, family, base, structural, allowed, keyframes, mouseMove, push, }) {
|
|
6
|
+
const committed = base;
|
|
7
|
+
const override = useRef({});
|
|
8
|
+
const from = useRef({});
|
|
9
|
+
const start = useRef(0);
|
|
10
|
+
const driving = useRef(false);
|
|
11
|
+
// Editing the keyframes restarts their cycle and re-samples every `from`-less start.
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
start.current = performance.now();
|
|
14
|
+
from.current = {};
|
|
15
|
+
for (const k of Object.keys(override.current))
|
|
16
|
+
delete override.current[k];
|
|
17
|
+
}, [keyframes]);
|
|
18
|
+
// A committed config re-samples the start values too: they were read from the old one.
|
|
19
|
+
useEffect(() => { from.current = {}; }, [base]);
|
|
20
|
+
const pushMerged = useCallback((live) => {
|
|
21
|
+
push({ ...base, ...live, ...override.current });
|
|
22
|
+
}, [base, push]);
|
|
23
|
+
const live = useConfigLiveHandle(rootRef, id, family, base, structural, pushMerged);
|
|
24
|
+
useFrame((state) => {
|
|
25
|
+
const pointerBound = !!mouseMove?.enabled && !!mouseMove.properties?.length;
|
|
26
|
+
if (keyframes?.length || pointerBound) {
|
|
27
|
+
applyConfigKeyframeAnimations(keyframes, from.current, committed, override.current, performance.now() - start.current, allowed);
|
|
28
|
+
if (pointerBound)
|
|
29
|
+
applyConfigMouseMove(mouseMove.properties, committed, override.current, state.pointer, allowed);
|
|
30
|
+
pushMerged(live.current);
|
|
31
|
+
driving.current = true;
|
|
32
|
+
}
|
|
33
|
+
else if (driving.current) {
|
|
34
|
+
// The last keyframe or binding was just removed: put the committed values back.
|
|
35
|
+
for (const k of Object.keys(override.current))
|
|
36
|
+
delete override.current[k];
|
|
37
|
+
pushMerged(live.current);
|
|
38
|
+
driving.current = false;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return live;
|
|
42
|
+
}
|
|
43
|
+
export default useConfigDriver;
|
|
@@ -29,7 +29,7 @@ import type { Object3D } from 'three';
|
|
|
29
29
|
export declare const CONFIG_LIVE_KEY = "__configLive";
|
|
30
30
|
export type ConfigLiveValue = number | string | boolean;
|
|
31
31
|
/** Generative families that support live config editing. */
|
|
32
|
-
export type ConfigLiveFamily = 'particles' | 'effects' | 'lights';
|
|
32
|
+
export type ConfigLiveFamily = 'particles' | 'effects' | 'grids' | 'lights';
|
|
33
33
|
export interface ConfigLiveHandle {
|
|
34
34
|
id: string;
|
|
35
35
|
family: ConfigLiveFamily;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfigLive.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfigLive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,gBAAgB,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;;GAOG;AACH,wBAAgB,mBAAmB,CAC/B,OAAO,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,EACnC,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,KAAK,IAAI,GAC5D,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CA8BnD;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DecodedHeightmap } from '../utils/landscapeTextures';
|
|
2
|
-
import type { LandscapeConfig, LandscapeQualityConfig } from '
|
|
2
|
+
import type { LandscapeConfig, LandscapeQualityConfig } from '@3driseai/3drise-core';
|
|
3
3
|
import type { LandscapeMapUniforms } from '../utils/landscapeUniforms';
|
|
4
4
|
/**
|
|
5
5
|
* Every image a landscape needs, loaded and packed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLandscapeMaps.d.ts","sourceRoot":"","sources":["../../src/hooks/useLandscapeMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAOH,KAAK,gBAAgB,EACxB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useLandscapeMaps.d.ts","sourceRoot":"","sources":["../../src/hooks/useLandscapeMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAOH,KAAK,gBAAgB,EACxB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEtE;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC5D,kEAAkE;IAClE,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACpC,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAA;CACrB;AA4CD,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,sBAAsB,GAChC,kBAAkB,CAmHpB;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { type RootState } from '@react-three/fiber';
|
|
3
3
|
import type { SkySettings, TimeSettings } from '@3driseai/3drise-core';
|
|
4
4
|
import { OceanSurfaceMaterial } from '../shaders/ocean/OceanSurfaceMaterial';
|
|
5
|
-
import type { OceanConfig, OceanQualityConfig } from '
|
|
5
|
+
import type { OceanConfig, OceanQualityConfig } from '@3driseai/3drise-core';
|
|
6
6
|
/**
|
|
7
7
|
* Everything the two water hosts share: the material, the live-edit handle, and
|
|
8
8
|
* the per-frame uniform push.
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export { cameraManager } from './utils/CameraSingleton';
|
|
|
13
13
|
export { applyAnchorSettings, createCurves, createSunPosition, randomRange, } from './utils/utils3d';
|
|
14
14
|
export { applyAnchorSettings as applyAnchorSettingsLegacy } from './utils/anchorUtils';
|
|
15
15
|
export * from './utils/shapes';
|
|
16
|
-
export { applyGenerativeAnimations } from './utils/handleGenerativeEffectsAnimations';
|
|
17
16
|
export { hasHoverAnimation } from './utils/hasHoverAnimation';
|
|
18
17
|
export { findById } from './utils/sceneQuery';
|
|
19
18
|
export { hasFrameRenderer, registerFrameRenderer, renderFrame } from './utils/frameRenderer';
|
|
@@ -35,7 +34,7 @@ export { applyOceanUniforms, buildWaveTable, seaState } from './utils/oceanUnifo
|
|
|
35
34
|
export type { WaveTable } from './utils/oceanUniforms';
|
|
36
35
|
export { applyCameraUniforms, applyCirrusUniforms, applyDeckUniforms, applySunUniforms, applyThunderUniforms, } from './utils/cloudUniforms';
|
|
37
36
|
export { applyCloudsKeyframeAnimations, applyCloudsMouseMove, resolveDeckConfig, } from './utils/handleCloudsAnimations';
|
|
38
|
-
export { applyConfigKeyframeAnimations, applyConfigMouseMove, hasConfigOverrides, resolveConfig, } from './utils/configAnimations';
|
|
37
|
+
export { applyConfigKeyframeAnimations, applyConfigMouseMove, hasConfigOverrides, resolveConfig, withConfigDefaults, } from './utils/configAnimations';
|
|
39
38
|
export type { ConfigOverride, ConfigStartValues } from './utils/configAnimations';
|
|
40
39
|
export { volumetricCloudPresets, cirrusPresets, getCloudPresetsForType, getCloudPresetByName, getCirrusPresetByName, searchCloudPresetsByTags, } from './presets/volumetricCloudPresets';
|
|
41
40
|
export type { VolumetricCloudPreset, CirrusPreset } from './presets/volumetricCloudPresets';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG5F,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEjL,YAAY,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,0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@ -16,7 +16,6 @@ export { cameraManager } from './utils/CameraSingleton.js';
|
|
|
16
16
|
export { applyAnchorSettings, createCurves, createSunPosition, randomRange, } from './utils/utils3d.js';
|
|
17
17
|
export { applyAnchorSettings as applyAnchorSettingsLegacy } from './utils/anchorUtils.js';
|
|
18
18
|
export * from './utils/shapes.js';
|
|
19
|
-
export { applyGenerativeAnimations } from './utils/handleGenerativeEffectsAnimations.js';
|
|
20
19
|
export { hasHoverAnimation } from './utils/hasHoverAnimation.js';
|
|
21
20
|
export { findById } from './utils/sceneQuery.js';
|
|
22
21
|
export { hasFrameRenderer, registerFrameRenderer, renderFrame } from './utils/frameRenderer.js';
|
|
@@ -31,7 +30,7 @@ export { buildTextureArray, decodeHeightmap, loadImage } from './utils/landscape
|
|
|
31
30
|
export { applyOceanUniforms, buildWaveTable, seaState } from './utils/oceanUniforms.js';
|
|
32
31
|
export { applyCameraUniforms, applyCirrusUniforms, applyDeckUniforms, applySunUniforms, applyThunderUniforms, } from './utils/cloudUniforms.js';
|
|
33
32
|
export { applyCloudsKeyframeAnimations, applyCloudsMouseMove, resolveDeckConfig, } from './utils/handleCloudsAnimations.js';
|
|
34
|
-
export { applyConfigKeyframeAnimations, applyConfigMouseMove, hasConfigOverrides, resolveConfig, } from './utils/configAnimations.js';
|
|
33
|
+
export { applyConfigKeyframeAnimations, applyConfigMouseMove, hasConfigOverrides, resolveConfig, withConfigDefaults, } from './utils/configAnimations.js';
|
|
35
34
|
// Presets
|
|
36
35
|
export { volumetricCloudPresets, cirrusPresets, getCloudPresetsForType, getCloudPresetByName, getCirrusPresetByName, searchCloudPresetsByTags, } from './presets/volumetricCloudPresets.js';
|
|
37
36
|
export { terrainPresets, getTerrainPresetsForType, getTerrainPresetByName, searchTerrainPresetsByTags, } from './presets/terrainPresets.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { runInteraction, setInteractionRunner, ObjectHoverContext } from './runner';
|
|
1
|
+
export { runInteraction, setInteractionRunner, previewInteractionEffect, setEffectPreviewer, prewarmInteractionEffect, setEffectPrewarmer, ObjectHoverContext } from './runner';
|
|
2
|
+
export type { RunOptions } from './runner';
|
|
2
3
|
export type { ObjectHoverHandler } from './runner';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAChL,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { runInteraction, setInteractionRunner, ObjectHoverContext } from './runner.js';
|
|
1
|
+
export { runInteraction, setInteractionRunner, previewInteractionEffect, setEffectPreviewer, prewarmInteractionEffect, setEffectPrewarmer, ObjectHoverContext } from './runner.js';
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import type { CreatedObjectSettings, Interaction } from '@3driseai/3drise-core';
|
|
2
|
-
|
|
1
|
+
import type { CreatedObjectSettings, Interaction, OperationEffect } from '@3driseai/3drise-core';
|
|
2
|
+
/** preview: effects play and then put everything back (the studio's "Try it"). */
|
|
3
|
+
export interface RunOptions {
|
|
4
|
+
preview?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type Runner = (objectId: string, interaction: Interaction, opts?: RunOptions) => boolean;
|
|
7
|
+
type EffectPreviewer = (objectId: string, effect: OperationEffect) => Promise<boolean>;
|
|
8
|
+
type EffectPrewarmer = (objectId: string, effect: OperationEffect) => Promise<void>;
|
|
3
9
|
export declare function setInteractionRunner(next: Runner): () => void;
|
|
4
10
|
/** Run an interaction now. False when no scene is mounted or the object is not there. */
|
|
5
|
-
export declare function runInteraction(objectId: string, interaction: Interaction): boolean;
|
|
11
|
+
export declare function runInteraction(objectId: string, interaction: Interaction, opts?: RunOptions): boolean;
|
|
12
|
+
export declare function setEffectPreviewer(next: EffectPreviewer): () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Play one effect of an interaction on object `objectId` ('self' resolves to it)
|
|
15
|
+
* and bring the scene back afterwards. False when no scene is mounted.
|
|
16
|
+
*/
|
|
17
|
+
export declare function setEffectPrewarmer(next: EffectPrewarmer): () => void;
|
|
18
|
+
/** Compile an interaction effect's shaders ahead of time (no visible change), so its first play is instant. */
|
|
19
|
+
export declare function prewarmInteractionEffect(objectId: string, effect: OperationEffect): Promise<void>;
|
|
20
|
+
export declare function previewInteractionEffect(objectId: string, effect: OperationEffect): Promise<boolean>;
|
|
6
21
|
export type ObjectHoverHandler = (createdObject: CreatedObjectSettings, ref: any, trigger: 'mouseEnter' | 'mouseLeave') => void;
|
|
7
22
|
export declare const ObjectHoverContext: import("react").Context<ObjectHoverHandler>;
|
|
8
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/interactions/runner.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/interactions/runner.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEjG,kFAAkF;AAClF,MAAM,WAAW,UAAU;IAAG,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;AACjD,KAAK,MAAM,GAAG,CAAC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
15
|
let runner = null;
|
|
14
16
|
export function setInteractionRunner(next) {
|
|
15
17
|
runner = next;
|
|
@@ -17,7 +19,28 @@ export function setInteractionRunner(next) {
|
|
|
17
19
|
runner = null; };
|
|
18
20
|
}
|
|
19
21
|
/** Run an interaction now. False when no scene is mounted or the object is not there. */
|
|
20
|
-
export function runInteraction(objectId, interaction) {
|
|
21
|
-
return runner ? runner(objectId, interaction) : false;
|
|
22
|
+
export function runInteraction(objectId, interaction, opts) {
|
|
23
|
+
return runner ? runner(objectId, interaction, opts) : false;
|
|
24
|
+
}
|
|
25
|
+
export function setEffectPreviewer(next) {
|
|
26
|
+
effectPreviewer = next;
|
|
27
|
+
return () => { if (effectPreviewer === next)
|
|
28
|
+
effectPreviewer = null; };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Play one effect of an interaction on object `objectId` ('self' resolves to it)
|
|
32
|
+
* and bring the scene back afterwards. False when no scene is mounted.
|
|
33
|
+
*/
|
|
34
|
+
export function setEffectPrewarmer(next) {
|
|
35
|
+
effectPrewarmer = next;
|
|
36
|
+
return () => { if (effectPrewarmer === next)
|
|
37
|
+
effectPrewarmer = null; };
|
|
38
|
+
}
|
|
39
|
+
/** Compile an interaction effect's shaders ahead of time (no visible change), so its first play is instant. */
|
|
40
|
+
export function prewarmInteractionEffect(objectId, effect) {
|
|
41
|
+
return effectPrewarmer ? effectPrewarmer(objectId, effect) : Promise.resolve();
|
|
42
|
+
}
|
|
43
|
+
export function previewInteractionEffect(objectId, effect) {
|
|
44
|
+
return effectPreviewer ? effectPreviewer(objectId, effect) : Promise.resolve(false);
|
|
22
45
|
}
|
|
23
46
|
export const ObjectHoverContext = createContext(null);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curlSmoke.d.ts","sourceRoot":"","sources":["../../../src/operations/catalogue/curlSmoke.ts"],"names":[],"mappings":";AAkDA,wBAwIG"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// Curl smoke — the object comes apart as soft smoke. Its surface is sampled into
|
|
2
|
+
// wisps that start out in the surface's own colours and fade to smoke as they
|
|
3
|
+
// leave. Each wisp is carried along a divergence-free curl-noise flow (the curl of
|
|
4
|
+
// a 3D noise potential, integrated along its path in the shader), so the smoke
|
|
5
|
+
// swirls into eddies and filaments instead of scattering. It rises on its own
|
|
6
|
+
// buoyancy, and every wisp swells and thins as it goes. Normal "over" blending,
|
|
7
|
+
// not additive glow, so it reads as smoke — pale on a dark scene, or dark as ink.
|
|
8
|
+
// Reverting draws the smoke back in and the object re-forms.
|
|
9
|
+
// With Disappear off (always, as an object effect) the whole object becomes
|
|
10
|
+
// smoke in its own shape: as the front passes, the surface gives way to wisps
|
|
11
|
+
// that stay on the shape — each one lifts a little off its spot on the curl flow,
|
|
12
|
+
// fades and is re-emitted, so the silhouette reads as living smoke — while one in
|
|
13
|
+
// ten curls off as a soft trail. Reverting gathers it back into the solid.
|
|
14
|
+
import { Color, Vector3 } from 'three';
|
|
15
|
+
import { defineOperation } from '../types.js';
|
|
16
|
+
import { addLayer, forEachMeshMaterial, removeLayer } from './shaderLayers.js';
|
|
17
|
+
import { DIRECTION_OPTIONS, createFieldState, fieldGlsl, fieldUniforms, hideMeshes, runProgress, setFieldParams, surfaceLayer, } from './transitionField.js';
|
|
18
|
+
import { sampleSurfaceCached } from './surfaceSample.js';
|
|
19
|
+
import { GLSL_POINT_SIZE, createFxPoints, disposeFxPoints } from './fxPoints.js';
|
|
20
|
+
const P = 'Smk';
|
|
21
|
+
/** Disappear off: the in / out run takes this share of the duration (it only goes to 1, not END). */
|
|
22
|
+
const KEEP_SPEED = 0.6;
|
|
23
|
+
const KEY = 'curlSmoke';
|
|
24
|
+
const STATE = '__opCurlSmoke';
|
|
25
|
+
/** A wisp lives LIFE progress units after the front passes it. */
|
|
26
|
+
const LIFE = 1.0;
|
|
27
|
+
const END = 1 + LIFE;
|
|
28
|
+
/** Curl of a 3D noise potential, and a path integrated through it (GLSL). */
|
|
29
|
+
const CURL = /* glsl */ `
|
|
30
|
+
vec3 smkPot(vec3 p) { return vec3(fxNoise(p), fxNoise(p + vec3(31.4, 7.7, 19.1)), fxNoise(p + vec3(-11.3, 43.9, 5.2))); }
|
|
31
|
+
vec3 smkCurl(vec3 p) {
|
|
32
|
+
const float e = 0.08;
|
|
33
|
+
vec3 dx = (smkPot(p + vec3(e, 0.0, 0.0)) - smkPot(p - vec3(e, 0.0, 0.0))) / (2.0 * e);
|
|
34
|
+
vec3 dy = (smkPot(p + vec3(0.0, e, 0.0)) - smkPot(p - vec3(0.0, e, 0.0))) / (2.0 * e);
|
|
35
|
+
vec3 dz = (smkPot(p + vec3(0.0, 0.0, e)) - smkPot(p - vec3(0.0, 0.0, e))) / (2.0 * e);
|
|
36
|
+
return vec3(dy.z - dz.y, dz.x - dx.z, dx.y - dy.x);
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
export default defineOperation({
|
|
40
|
+
value: 'curlSmoke',
|
|
41
|
+
label: 'Curl smoke',
|
|
42
|
+
description: 'Turn the targets into soft smoke that swirls away (or, Disappear off, keeps their shape) — reverting draws it back in',
|
|
43
|
+
channel: 'visual',
|
|
44
|
+
multi: true,
|
|
45
|
+
toggles: true,
|
|
46
|
+
usableIn: ['interaction', 'action', 'object'],
|
|
47
|
+
params: {
|
|
48
|
+
direction: { type: 'select', label: 'Direction', default: 'up', options: DIRECTION_OPTIONS },
|
|
49
|
+
smoke: { type: 'color', label: 'Smoke', default: '#d4d8df', hint: 'Pale for a dark scene, dark for ink on a light one' },
|
|
50
|
+
wisps: { type: 'number', label: 'Wisps', default: 24000, min: 4000, max: 90000, step: 1000 },
|
|
51
|
+
puff: { type: 'number', label: 'Softness', default: 1, min: 0.3, max: 3, step: 0.05, unit: '×', hint: 'How far each wisp swells' },
|
|
52
|
+
rise: { type: 'number', label: 'Rise', default: 1, min: 0, max: 3, step: 0.05, unit: '×' },
|
|
53
|
+
swirl: { type: 'number', label: 'Swirl', default: 1, min: 0.2, max: 3, step: 0.05, unit: '×' },
|
|
54
|
+
scale: { type: 'number', label: 'Front pattern', default: 2.5, min: 0.5, max: 12, step: 0.1 },
|
|
55
|
+
duration: { type: 'number', label: 'Duration', default: 4.5, min: 0.3, max: 14, step: 0.1, unit: 's' },
|
|
56
|
+
disappear: { type: 'boolean', label: 'Disappear', default: true, hint: 'Off: the whole object becomes smoke in its own shape and stays' },
|
|
57
|
+
},
|
|
58
|
+
objectParams: { disappear: false },
|
|
59
|
+
apply(target, p, ctx) {
|
|
60
|
+
let st = target.userData[STATE];
|
|
61
|
+
if (!st) {
|
|
62
|
+
const field = createFieldState(target);
|
|
63
|
+
field.edgeWidth.value = 0.035;
|
|
64
|
+
const own = {
|
|
65
|
+
field, smoke: { value: new Color() }, up: { value: new Vector3(0, 1, 0) }, rise: { value: 1 }, swirl: { value: 1 }, puff: { value: 1 }, dens: { value: 1 },
|
|
66
|
+
keep: { value: 0 },
|
|
67
|
+
mats: new Set(),
|
|
68
|
+
};
|
|
69
|
+
const sample = sampleSurfaceCached(target, Math.round(Number(p.wisps)), 23);
|
|
70
|
+
own.points = createFxPoints(target, sample, {
|
|
71
|
+
additive: false,
|
|
72
|
+
uniforms: { ...fieldUniforms(P, field), uSmkSmoke: own.smoke, uSmkUp: own.up, uSmkRise: own.rise, uSmkSwirl: own.swirl, uSmkPuff: own.puff, uSmkDens: own.dens, uSmkKeep: own.keep },
|
|
73
|
+
vertexPars: fieldGlsl(P) + GLSL_POINT_SIZE + CURL,
|
|
74
|
+
vertexMain: /* glsl */ `
|
|
75
|
+
float f = SmkField(SmkNorm(aP));
|
|
76
|
+
float E = uSmkExtent;
|
|
77
|
+
if (uSmkKeep > 0.5) {
|
|
78
|
+
// smoke in the object's own shape: switched on as the front passes, then each
|
|
79
|
+
// wisp cycles on its spot — lifts a little on the curl flow, fades, is re-emitted
|
|
80
|
+
float w = clamp((uSmkProgress - SmkBirthOf(f)) / 0.12, 0.0, 1.0);
|
|
81
|
+
if (w <= 0.0) { gl_Position = vec4(2.0, 2.0, 2.0, 1.0); gl_PointSize = 0.0; vColor = vec3(0.0); vAlpha = 0.0; return; }
|
|
82
|
+
float trail = step(0.9, aR.w); // one in ten curls off as a soft trail
|
|
83
|
+
float al = fract(uSmkTime * 0.2 * (0.7 + 0.6 * aR.y) + aR.x);
|
|
84
|
+
vec3 kq = aP / E * (4.0 * uSmkSwirl) + aR.xyz * 0.15;
|
|
85
|
+
vec3 kd = vec3(0.0);
|
|
86
|
+
float kh = al * mix(0.12, 0.3, trail);
|
|
87
|
+
for (int i = 0; i < 6; i++) {
|
|
88
|
+
vec3 v = smkCurl(kq + vec3(0.0, uSmkTime * 0.05, 0.0));
|
|
89
|
+
kd += v * kh;
|
|
90
|
+
kq += v * kh * 1.4 + uSmkUp * kh * 0.9 * uSmkRise;
|
|
91
|
+
}
|
|
92
|
+
vec3 kl = aP + aN * (E * (0.004 + 0.012 * al))
|
|
93
|
+
+ kd * (E * mix(0.06, 0.45, trail) / uSmkSwirl)
|
|
94
|
+
+ uSmkUp * (E * uSmkRise * mix(0.012 * al, 0.35 * al * al, trail));
|
|
95
|
+
vec4 kmv = modelViewMatrix * vec4(kl, 1.0);
|
|
96
|
+
gl_Position = projectionMatrix * kmv;
|
|
97
|
+
// smoke, with a hint of the surface's colours so the form still reads
|
|
98
|
+
vColor = mix(uSmkSmoke * (0.8 + 0.3 * aR.z), aC, 0.18);
|
|
99
|
+
float kg = 1.0 + mix(2.2, 9.0, trail) * uSmkPuff * al;
|
|
100
|
+
vAlpha = w * smoothstep(0.0, 0.2, al) * (1.0 - smoothstep(0.55, 1.0, al)) * clamp(0.26 * uSmkDens / kg, 0.0, 0.5) * (0.5 + 0.5 * aR.z);
|
|
101
|
+
gl_PointSize = clamp(fxPointPx(E * 0.0105 * kg, kmv), 1.0, 90.0);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
float a = (uSmkProgress - SmkBirthOf(f)) / ${LIFE.toFixed(2)};
|
|
105
|
+
if (a <= 0.0 || a >= 1.0) { gl_Position = vec4(2.0, 2.0, 2.0, 1.0); gl_PointSize = 0.0; vColor = vec3(0.0); vAlpha = 0.0; return; }
|
|
106
|
+
// integrate the path through the curl flow; the step grows with age, so the
|
|
107
|
+
// path is a smooth function of a (no state, same wisp every frame)
|
|
108
|
+
vec3 q = aP / E * (4.0 * uSmkSwirl) + aR.xyz * 0.15;
|
|
109
|
+
vec3 drift = vec3(0.0);
|
|
110
|
+
float h = a * 0.26;
|
|
111
|
+
for (int i = 0; i < 8; i++) {
|
|
112
|
+
vec3 v = smkCurl(q + vec3(0.0, uSmkTime * 0.05, 0.0));
|
|
113
|
+
drift += v * h;
|
|
114
|
+
q += v * h * 1.4 + uSmkUp * h * 0.9 * uSmkRise;
|
|
115
|
+
}
|
|
116
|
+
float ease = a * (0.35 + 0.65 * a);
|
|
117
|
+
vec3 local = aP + aN * (0.03 * E * sqrt(a))
|
|
118
|
+
+ drift * (0.5 * E / uSmkSwirl)
|
|
119
|
+
+ uSmkUp * (E * 0.55 * uSmkRise * ease * (0.6 + 0.8 * aR.y));
|
|
120
|
+
vec4 mv = modelViewMatrix * vec4(local, 1.0);
|
|
121
|
+
gl_Position = projectionMatrix * mv;
|
|
122
|
+
// colour: the surface's own, turning to smoke as it leaves
|
|
123
|
+
vColor = mix(aC, uSmkSmoke * (0.8 + 0.3 * aR.z), smoothstep(0.0, 0.35, a));
|
|
124
|
+
// a wisp swells and thins: roughly constant "mass" as it spreads
|
|
125
|
+
float grow = 1.0 + 12.0 * uSmkPuff * a * (0.6 + 0.8 * aR.z);
|
|
126
|
+
vAlpha = smoothstep(0.0, 0.05, a) * (1.0 - smoothstep(0.45, 1.0, a)) * clamp(0.3 * uSmkDens / grow, 0.0, 0.7) * (0.5 + 0.5 * aR.w);
|
|
127
|
+
gl_PointSize = clamp(fxPointPx(E * 0.0065 * grow, mv), 1.0, 90.0);`,
|
|
128
|
+
});
|
|
129
|
+
const layer = surfaceLayer(P, field, 'stain');
|
|
130
|
+
forEachMeshMaterial(target, (mat, mesh) => {
|
|
131
|
+
if (mesh.userData?.__opFxHelper)
|
|
132
|
+
return;
|
|
133
|
+
if (addLayer(mat, KEY, layer))
|
|
134
|
+
own.mats.add(mat);
|
|
135
|
+
});
|
|
136
|
+
st = own;
|
|
137
|
+
target.userData[STATE] = st;
|
|
138
|
+
}
|
|
139
|
+
const s = st;
|
|
140
|
+
setFieldParams(s.field, p, target, ctx);
|
|
141
|
+
s.smoke.value.set(String(p.smoke));
|
|
142
|
+
s.field.edgeColor.value.set(String(p.smoke));
|
|
143
|
+
s.rise.value = Number(p.rise);
|
|
144
|
+
s.swirl.value = Number(p.swirl);
|
|
145
|
+
s.puff.value = Number(p.puff);
|
|
146
|
+
// the smoke's overall density must not depend on how many wisps carry it
|
|
147
|
+
s.dens.value = 12000 / Math.max(1000, s.points.geometry.getAttribute('aP').count);
|
|
148
|
+
// world up in the target's own space (smoke rises whatever the object's rotation)
|
|
149
|
+
target.updateWorldMatrix(true, false);
|
|
150
|
+
s.up.value.set(0, 1, 0).transformDirection(target.matrixWorld.clone().invert());
|
|
151
|
+
s.points.visible = true;
|
|
152
|
+
s.keep.value = p.disappear === false ? 1 : 0;
|
|
153
|
+
if (s.keep.value) {
|
|
154
|
+
return runProgress(target, s.field, 1, { duration: Number(p.duration) * KEEP_SPEED, ease: 'none', hold: true });
|
|
155
|
+
}
|
|
156
|
+
return runProgress(target, s.field, END, {
|
|
157
|
+
duration: Number(p.duration), ease: 'none',
|
|
158
|
+
onComplete: () => { hideMeshes(target, KEY, true); s.points.visible = false; },
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
revert(target, p) {
|
|
162
|
+
const s = target.userData[STATE];
|
|
163
|
+
if (!s)
|
|
164
|
+
return;
|
|
165
|
+
hideMeshes(target, KEY, false);
|
|
166
|
+
s.points.visible = true;
|
|
167
|
+
// same speed back, from wherever it got to
|
|
168
|
+
const span = s.keep.value ? 1 / KEEP_SPEED : END;
|
|
169
|
+
return runProgress(target, s.field, 0, {
|
|
170
|
+
duration: Number(p.duration) * Math.min(1, Math.max(0.1, s.field.progress.value / span)), ease: 'none',
|
|
171
|
+
onComplete: () => {
|
|
172
|
+
s.mats.forEach(m => removeLayer(m, KEY));
|
|
173
|
+
disposeFxPoints(s.points);
|
|
174
|
+
delete target.userData[STATE];
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"displayImage.d.ts","sourceRoot":"","sources":["../../../src/operations/catalogue/displayImage.ts"],"names":[],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"displayImage.d.ts","sourceRoot":"","sources":["../../../src/operations/catalogue/displayImage.ts"],"names":[],"mappings":";AAGA,wBA6BG"}
|