@3driseai/3drise-viewer 0.1.28 → 0.1.29
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.map +1 -1
- package/dist/animationsV2/ClipPlayer.js +13 -9
- package/dist/animationsV2/ClipsRuntime.d.ts +44 -3
- package/dist/animationsV2/ClipsRuntime.d.ts.map +1 -1
- package/dist/animationsV2/ClipsRuntime.js +173 -55
- package/dist/animationsV2/appliers.d.ts.map +1 -1
- package/dist/animationsV2/appliers.js +21 -5
- 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 +7 -3
- package/dist/animationsV2/sequenceUtils.d.ts +44 -6
- package/dist/animationsV2/sequenceUtils.d.ts.map +1 -1
- package/dist/animationsV2/sequenceUtils.js +58 -12
- package/dist/animationsV2/types.d.ts +22 -12
- package/dist/animationsV2/types.d.ts.map +1 -1
- package/dist/api/sceneHandle.d.ts +35 -1
- package/dist/api/sceneHandle.d.ts.map +1 -1
- package/dist/api/sceneHandle.js +88 -17
- package/dist/components/AdvancedGrid.d.ts +1 -5
- package/dist/components/AdvancedGrid.d.ts.map +1 -1
- package/dist/components/AdvancedGrid.js +6 -35
- package/dist/components/AnimatedObject.d.ts.map +1 -1
- package/dist/components/AnimatedObject.js +9 -4
- package/dist/components/ApollonianGrid.d.ts +1 -1
- package/dist/components/ApollonianGrid.d.ts.map +1 -1
- package/dist/components/ApollonianGrid.js +3 -28
- package/dist/components/ChladniGrid.d.ts +1 -1
- package/dist/components/ChladniGrid.d.ts.map +1 -1
- package/dist/components/ChladniGrid.js +6 -35
- package/dist/components/CircuitGrid.d.ts +1 -1
- package/dist/components/CircuitGrid.d.ts.map +1 -1
- package/dist/components/CircuitGrid.js +6 -34
- package/dist/components/ConformalGrid.d.ts +1 -1
- package/dist/components/ConformalGrid.d.ts.map +1 -1
- package/dist/components/ConformalGrid.js +3 -34
- package/dist/components/ContourGrid.d.ts +1 -1
- package/dist/components/ContourGrid.d.ts.map +1 -1
- package/dist/components/ContourGrid.js +6 -34
- package/dist/components/CustomPrimitive.js +1 -1
- package/dist/components/EnvironmentObject.d.ts.map +1 -1
- package/dist/components/EnvironmentObject.js +9 -7
- package/dist/components/FlowNetGrid.d.ts +1 -1
- package/dist/components/FlowNetGrid.d.ts.map +1 -1
- package/dist/components/FlowNetGrid.js +6 -34
- package/dist/components/FractalGrid.d.ts +1 -1
- package/dist/components/FractalGrid.d.ts.map +1 -1
- package/dist/components/FractalGrid.js +6 -37
- package/dist/components/Galaxy.d.ts.map +1 -1
- package/dist/components/Galaxy.js +9 -23
- package/dist/components/GirihGrid.d.ts +1 -1
- package/dist/components/GirihGrid.d.ts.map +1 -1
- package/dist/components/GirihGrid.js +6 -35
- package/dist/components/GravWaveGrid.d.ts +1 -1
- package/dist/components/GravWaveGrid.d.ts.map +1 -1
- package/dist/components/GravWaveGrid.js +6 -35
- package/dist/components/HexGrid.d.ts +1 -5
- package/dist/components/HexGrid.d.ts.map +1 -1
- package/dist/components/HexGrid.js +6 -36
- package/dist/components/HilbertGrid.d.ts +1 -1
- package/dist/components/HilbertGrid.d.ts.map +1 -1
- package/dist/components/HilbertGrid.js +3 -30
- package/dist/components/HyperbolicGrid.d.ts +1 -1
- package/dist/components/HyperbolicGrid.d.ts.map +1 -1
- package/dist/components/HyperbolicGrid.js +6 -34
- package/dist/components/LandObject.d.ts +9 -0
- package/dist/components/LandObject.d.ts.map +1 -0
- package/dist/components/LandObject.js +15 -0
- package/dist/components/LensingGrid.d.ts +1 -1
- package/dist/components/LensingGrid.d.ts.map +1 -1
- package/dist/components/LensingGrid.js +3 -29
- package/dist/components/LightsManager.d.ts.map +1 -1
- package/dist/components/LightsManager.js +8 -0
- package/dist/components/ModelBoundary.d.ts +2 -0
- package/dist/components/ModelBoundary.d.ts.map +1 -1
- package/dist/components/ModelBoundary.js +3 -0
- package/dist/components/ModelPrimitive.d.ts.map +1 -1
- package/dist/components/ModelPrimitive.js +6 -0
- package/dist/components/MoireGrid.d.ts +1 -1
- package/dist/components/MoireGrid.d.ts.map +1 -1
- package/dist/components/MoireGrid.js +6 -35
- package/dist/components/MoonDisc.d.ts +11 -0
- package/dist/components/MoonDisc.d.ts.map +1 -0
- package/dist/components/MoonDisc.js +128 -0
- package/dist/components/ObjectNode.d.ts.map +1 -1
- package/dist/components/ObjectNode.js +15 -4
- package/dist/components/ObjectsRenderer.d.ts.map +1 -1
- package/dist/components/ObjectsRenderer.js +7 -5
- package/dist/components/OceanBuilder.d.ts.map +1 -1
- package/dist/components/OceanBuilder.js +2 -0
- package/dist/components/ParastichyGrid.d.ts +1 -1
- package/dist/components/ParastichyGrid.d.ts.map +1 -1
- package/dist/components/ParastichyGrid.js +3 -30
- package/dist/components/PhyllotaxisGrid.d.ts +1 -1
- package/dist/components/PhyllotaxisGrid.d.ts.map +1 -1
- package/dist/components/PhyllotaxisGrid.js +3 -32
- package/dist/components/ProjectLoader.d.ts +5 -3
- package/dist/components/ProjectLoader.d.ts.map +1 -1
- package/dist/components/ProjectLoader.js +6 -3
- package/dist/components/QuasiGrid.d.ts +1 -1
- package/dist/components/QuasiGrid.d.ts.map +1 -1
- package/dist/components/QuasiGrid.js +6 -33
- package/dist/components/RadarGrid.d.ts +1 -1
- package/dist/components/RadarGrid.d.ts.map +1 -1
- package/dist/components/RadarGrid.js +6 -34
- package/dist/components/ReactionDiffusionGrid.d.ts +1 -1
- package/dist/components/ReactionDiffusionGrid.d.ts.map +1 -1
- package/dist/components/ReactionDiffusionGrid.js +6 -35
- package/dist/components/SceneBuilder.d.ts +25 -3
- package/dist/components/SceneBuilder.d.ts.map +1 -1
- package/dist/components/SceneBuilder.js +68 -38
- package/dist/components/SkyController.d.ts +25 -1
- package/dist/components/SkyController.d.ts.map +1 -1
- package/dist/components/SkyController.js +189 -130
- package/dist/components/SkyMesh.d.ts.map +1 -1
- package/dist/components/SkyMesh.js +26 -1
- package/dist/components/SkyStars.d.ts +11 -0
- package/dist/components/SkyStars.d.ts.map +1 -0
- package/dist/components/SkyStars.js +187 -0
- package/dist/components/SkySystem.d.ts +3 -3
- package/dist/components/SkySystem.d.ts.map +1 -1
- package/dist/components/SkySystem.js +8 -2
- package/dist/components/Sun.d.ts +15 -1
- package/dist/components/Sun.d.ts.map +1 -1
- package/dist/components/Sun.js +64 -3
- package/dist/components/SunLight.d.ts +6 -1
- package/dist/components/SunLight.d.ts.map +1 -1
- package/dist/components/SunLight.js +96 -44
- package/dist/components/TerrainBuilder.d.ts.map +1 -1
- package/dist/components/TerrainBuilder.js +2 -0
- package/dist/components/TextGenerator.d.ts +9 -0
- package/dist/components/TextGenerator.d.ts.map +1 -0
- package/dist/components/TextGenerator.js +29 -0
- package/dist/components/TruchetGrid.d.ts +1 -1
- package/dist/components/TruchetGrid.d.ts.map +1 -1
- package/dist/components/TruchetGrid.js +3 -30
- package/dist/components/VoronoiGrid.d.ts +1 -1
- package/dist/components/VoronoiGrid.d.ts.map +1 -1
- package/dist/components/VoronoiGrid.js +6 -33
- package/dist/components/WallpaperGrid.d.ts +1 -1
- package/dist/components/WallpaperGrid.d.ts.map +1 -1
- package/dist/components/WallpaperGrid.js +6 -35
- package/dist/components/environment/Rain.d.ts +15 -0
- package/dist/components/environment/Rain.d.ts.map +1 -0
- package/dist/components/environment/Rain.js +110 -0
- package/dist/components/environment/Rainbow.d.ts +20 -0
- package/dist/components/environment/Rainbow.d.ts.map +1 -0
- package/dist/components/environment/Rainbow.js +974 -0
- package/dist/components/environment/Sandstorm.d.ts +20 -0
- package/dist/components/environment/Sandstorm.d.ts.map +1 -0
- package/dist/components/environment/Sandstorm.js +776 -0
- package/dist/components/environment/Snow.d.ts +20 -0
- package/dist/components/environment/Snow.d.ts.map +1 -0
- package/dist/components/environment/Snow.js +609 -0
- package/dist/components/environment/Thunderstorm.d.ts +20 -0
- package/dist/components/environment/Thunderstorm.d.ts.map +1 -0
- package/dist/components/environment/Thunderstorm.js +731 -0
- package/dist/components/environment/Tornado.d.ts +20 -0
- package/dist/components/environment/Tornado.d.ts.map +1 -0
- package/dist/components/environment/Tornado.js +762 -0
- package/dist/components/environment/index.d.ts +13 -0
- package/dist/components/environment/index.d.ts.map +1 -0
- package/dist/components/environment/index.js +7 -0
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +8 -6
- package/dist/components/land/LandPatch.d.ts +15 -0
- package/dist/components/land/LandPatch.d.ts.map +1 -0
- package/dist/components/land/LandPatch.js +170 -0
- package/dist/components/land/index.d.ts +3 -0
- package/dist/components/land/index.d.ts.map +1 -0
- package/dist/components/land/index.js +1 -0
- package/dist/components/space/Earth.d.ts +16 -0
- package/dist/components/space/Earth.d.ts.map +1 -0
- package/dist/components/space/Earth.js +75 -0
- package/dist/components/space/ShootingStar.d.ts +21 -0
- package/dist/components/space/ShootingStar.d.ts.map +1 -0
- package/dist/components/space/ShootingStar.js +101 -0
- package/dist/components/space/ShootingStars.d.ts +16 -0
- package/dist/components/space/ShootingStars.d.ts.map +1 -0
- package/dist/components/space/ShootingStars.js +71 -0
- package/dist/components/space/SolarSystem.d.ts +16 -0
- package/dist/components/space/SolarSystem.d.ts.map +1 -0
- package/dist/components/space/SolarSystem.js +141 -0
- package/dist/components/space/Stars.d.ts +20 -0
- package/dist/components/space/Stars.d.ts.map +1 -0
- package/dist/components/space/Stars.js +160 -0
- package/dist/components/space/index.d.ts +11 -0
- package/dist/components/space/index.d.ts.map +1 -0
- package/dist/components/space/index.js +8 -0
- package/dist/components/terrain/TerrainSurface.d.ts.map +1 -1
- package/dist/components/terrain/TerrainSurface.js +27 -3
- package/dist/components/terrain/types.d.ts +5 -1
- package/dist/components/terrain/types.d.ts.map +1 -1
- package/dist/components/text/BurnAwayText.d.ts +15 -0
- package/dist/components/text/BurnAwayText.d.ts.map +1 -0
- package/dist/components/text/BurnAwayText.js +4 -0
- package/dist/components/text/ChalkboardText.d.ts +15 -0
- package/dist/components/text/ChalkboardText.d.ts.map +1 -0
- package/dist/components/text/ChalkboardText.js +4 -0
- package/dist/components/text/ConstellationText.d.ts +15 -0
- package/dist/components/text/ConstellationText.d.ts.map +1 -0
- package/dist/components/text/ConstellationText.js +4 -0
- package/dist/components/text/EmbroideryText.d.ts +15 -0
- package/dist/components/text/EmbroideryText.d.ts.map +1 -0
- package/dist/components/text/EmbroideryText.js +4 -0
- package/dist/components/text/FourierSketchText.d.ts +15 -0
- package/dist/components/text/FourierSketchText.d.ts.map +1 -0
- package/dist/components/text/FourierSketchText.js +4 -0
- package/dist/components/text/FrostGrowthText.d.ts +15 -0
- package/dist/components/text/FrostGrowthText.d.ts.map +1 -0
- package/dist/components/text/FrostGrowthText.js +4 -0
- package/dist/components/text/HandwritingText.d.ts +15 -0
- package/dist/components/text/HandwritingText.d.ts.map +1 -0
- package/dist/components/text/HandwritingText.js +4 -0
- package/dist/components/text/InkBleedText.d.ts +15 -0
- package/dist/components/text/InkBleedText.d.ts.map +1 -0
- package/dist/components/text/InkBleedText.js +4 -0
- package/dist/components/text/LightPaintingText.d.ts +15 -0
- package/dist/components/text/LightPaintingText.d.ts.map +1 -0
- package/dist/components/text/LightPaintingText.js +4 -0
- package/dist/components/text/LiquidMetalText.d.ts +15 -0
- package/dist/components/text/LiquidMetalText.d.ts.map +1 -0
- package/dist/components/text/LiquidMetalText.js +4 -0
- package/dist/components/text/NeonTubeText.d.ts +15 -0
- package/dist/components/text/NeonTubeText.d.ts.map +1 -0
- package/dist/components/text/NeonTubeText.js +4 -0
- package/dist/components/text/PlasmaDischargeText.d.ts +15 -0
- package/dist/components/text/PlasmaDischargeText.d.ts.map +1 -0
- package/dist/components/text/PlasmaDischargeText.js +4 -0
- package/dist/components/text/TextObjectView.d.ts +12 -0
- package/dist/components/text/TextObjectView.d.ts.map +1 -0
- package/dist/components/text/TextObjectView.js +11 -0
- package/dist/components/text/engine/fieldkit.d.ts +24 -0
- package/dist/components/text/engine/fieldkit.d.ts.map +1 -0
- package/dist/components/text/engine/fieldkit.js +201 -0
- package/dist/components/text/engine/glyphs.d.ts +19 -0
- package/dist/components/text/engine/glyphs.d.ts.map +1 -0
- package/dist/components/text/engine/glyphs.js +269 -0
- package/dist/components/text/engine/looks/burnAway.d.ts +144 -0
- package/dist/components/text/engine/looks/burnAway.d.ts.map +1 -0
- package/dist/components/text/engine/looks/burnAway.js +593 -0
- package/dist/components/text/engine/looks/chalkboard.d.ts +135 -0
- package/dist/components/text/engine/looks/chalkboard.d.ts.map +1 -0
- package/dist/components/text/engine/looks/chalkboard.js +426 -0
- package/dist/components/text/engine/looks/constellation.d.ts +111 -0
- package/dist/components/text/engine/looks/constellation.d.ts.map +1 -0
- package/dist/components/text/engine/looks/constellation.js +496 -0
- package/dist/components/text/engine/looks/embroidery.d.ts +165 -0
- package/dist/components/text/engine/looks/embroidery.d.ts.map +1 -0
- package/dist/components/text/engine/looks/embroidery.js +645 -0
- package/dist/components/text/engine/looks/frostGrowth.d.ts +109 -0
- package/dist/components/text/engine/looks/frostGrowth.d.ts.map +1 -0
- package/dist/components/text/engine/looks/frostGrowth.js +727 -0
- package/dist/components/text/engine/looks/index.d.ts +2 -0
- package/dist/components/text/engine/looks/index.d.ts.map +1 -0
- package/dist/components/text/engine/looks/index.js +48 -0
- package/dist/components/text/engine/looks/inkBleed.d.ts +103 -0
- package/dist/components/text/engine/looks/inkBleed.d.ts.map +1 -0
- package/dist/components/text/engine/looks/inkBleed.js +590 -0
- package/dist/components/text/engine/looks/lightPainting.d.ts +132 -0
- package/dist/components/text/engine/looks/lightPainting.d.ts.map +1 -0
- package/dist/components/text/engine/looks/lightPainting.js +567 -0
- package/dist/components/text/engine/looks/liquidMetal.d.ts +135 -0
- package/dist/components/text/engine/looks/liquidMetal.d.ts.map +1 -0
- package/dist/components/text/engine/looks/liquidMetal.js +655 -0
- package/dist/components/text/engine/looks/plasmaDischarge.d.ts +126 -0
- package/dist/components/text/engine/looks/plasmaDischarge.d.ts.map +1 -0
- package/dist/components/text/engine/looks/plasmaDischarge.js +763 -0
- package/dist/components/text/engine/methods.d.ts +19 -0
- package/dist/components/text/engine/methods.d.ts.map +1 -0
- package/dist/components/text/engine/methods.js +126 -0
- package/dist/components/text/engine/playback.d.ts +40 -0
- package/dist/components/text/engine/playback.d.ts.map +1 -0
- package/dist/components/text/engine/playback.js +114 -0
- package/dist/components/text/engine/ribbon.d.ts +58 -0
- package/dist/components/text/engine/ribbon.d.ts.map +1 -0
- package/dist/components/text/engine/ribbon.js +250 -0
- package/dist/components/text/engine/variants.d.ts +159 -0
- package/dist/components/text/engine/variants.d.ts.map +1 -0
- package/dist/components/text/engine/variants.js +378 -0
- package/dist/components/text/fonts/architects-daughter.outline.d.ts +3 -0
- package/dist/components/text/fonts/architects-daughter.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/architects-daughter.outline.js +4 -0
- package/dist/components/text/fonts/architects-daughter.strokes.d.ts +3 -0
- package/dist/components/text/fonts/architects-daughter.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/architects-daughter.strokes.js +4 -0
- package/dist/components/text/fonts/caveat.outline.d.ts +3 -0
- package/dist/components/text/fonts/caveat.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/caveat.outline.js +4 -0
- package/dist/components/text/fonts/caveat.strokes.d.ts +3 -0
- package/dist/components/text/fonts/caveat.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/caveat.strokes.js +4 -0
- package/dist/components/text/fonts/courgette.outline.d.ts +3 -0
- package/dist/components/text/fonts/courgette.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/courgette.outline.js +4 -0
- package/dist/components/text/fonts/courgette.strokes.d.ts +3 -0
- package/dist/components/text/fonts/courgette.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/courgette.strokes.js +4 -0
- package/dist/components/text/fonts/dancing-script.outline.d.ts +3 -0
- package/dist/components/text/fonts/dancing-script.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/dancing-script.outline.js +4 -0
- package/dist/components/text/fonts/dancing-script.strokes.d.ts +3 -0
- package/dist/components/text/fonts/dancing-script.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/dancing-script.strokes.js +4 -0
- package/dist/components/text/fonts/gochi-hand.outline.d.ts +3 -0
- package/dist/components/text/fonts/gochi-hand.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/gochi-hand.outline.js +4 -0
- package/dist/components/text/fonts/gochi-hand.strokes.d.ts +3 -0
- package/dist/components/text/fonts/gochi-hand.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/gochi-hand.strokes.js +4 -0
- package/dist/components/text/fonts/handlee.outline.d.ts +3 -0
- package/dist/components/text/fonts/handlee.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/handlee.outline.js +4 -0
- package/dist/components/text/fonts/handlee.strokes.d.ts +3 -0
- package/dist/components/text/fonts/handlee.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/handlee.strokes.js +4 -0
- package/dist/components/text/fonts/index.d.ts +5 -0
- package/dist/components/text/fonts/index.d.ts.map +1 -0
- package/dist/components/text/fonts/index.js +44 -0
- package/dist/components/text/fonts/indie-flower.outline.d.ts +3 -0
- package/dist/components/text/fonts/indie-flower.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/indie-flower.outline.js +4 -0
- package/dist/components/text/fonts/indie-flower.strokes.d.ts +3 -0
- package/dist/components/text/fonts/indie-flower.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/indie-flower.strokes.js +4 -0
- package/dist/components/text/fonts/kalam.outline.d.ts +3 -0
- package/dist/components/text/fonts/kalam.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/kalam.outline.js +4 -0
- package/dist/components/text/fonts/kalam.strokes.d.ts +3 -0
- package/dist/components/text/fonts/kalam.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/kalam.strokes.js +4 -0
- package/dist/components/text/fonts/kaushan-script.outline.d.ts +3 -0
- package/dist/components/text/fonts/kaushan-script.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/kaushan-script.outline.js +4 -0
- package/dist/components/text/fonts/kaushan-script.strokes.d.ts +3 -0
- package/dist/components/text/fonts/kaushan-script.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/kaushan-script.strokes.js +4 -0
- package/dist/components/text/fonts/mynerve.outline.d.ts +3 -0
- package/dist/components/text/fonts/mynerve.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/mynerve.outline.js +4 -0
- package/dist/components/text/fonts/mynerve.strokes.d.ts +3 -0
- package/dist/components/text/fonts/mynerve.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/mynerve.strokes.js +4 -0
- package/dist/components/text/fonts/nanum-pen-script.outline.d.ts +3 -0
- package/dist/components/text/fonts/nanum-pen-script.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/nanum-pen-script.outline.js +4 -0
- package/dist/components/text/fonts/nanum-pen-script.strokes.d.ts +3 -0
- package/dist/components/text/fonts/nanum-pen-script.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/nanum-pen-script.strokes.js +4 -0
- package/dist/components/text/fonts/pacifico.outline.d.ts +3 -0
- package/dist/components/text/fonts/pacifico.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/pacifico.outline.js +4 -0
- package/dist/components/text/fonts/pacifico.strokes.d.ts +3 -0
- package/dist/components/text/fonts/pacifico.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/pacifico.strokes.js +4 -0
- package/dist/components/text/fonts/patrick-hand.outline.d.ts +3 -0
- package/dist/components/text/fonts/patrick-hand.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/patrick-hand.outline.js +4 -0
- package/dist/components/text/fonts/patrick-hand.strokes.d.ts +3 -0
- package/dist/components/text/fonts/patrick-hand.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/patrick-hand.strokes.js +4 -0
- package/dist/components/text/fonts/poppins.outline.d.ts +3 -0
- package/dist/components/text/fonts/poppins.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/poppins.outline.js +4 -0
- package/dist/components/text/fonts/poppins.strokes.d.ts +3 -0
- package/dist/components/text/fonts/poppins.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/poppins.strokes.js +4 -0
- package/dist/components/text/fonts/satisfy.outline.d.ts +3 -0
- package/dist/components/text/fonts/satisfy.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/satisfy.outline.js +4 -0
- package/dist/components/text/fonts/satisfy.strokes.d.ts +3 -0
- package/dist/components/text/fonts/satisfy.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/satisfy.strokes.js +4 -0
- package/dist/components/text/fonts/sriracha.outline.d.ts +3 -0
- package/dist/components/text/fonts/sriracha.outline.d.ts.map +1 -0
- package/dist/components/text/fonts/sriracha.outline.js +4 -0
- package/dist/components/text/fonts/sriracha.strokes.d.ts +3 -0
- package/dist/components/text/fonts/sriracha.strokes.d.ts.map +1 -0
- package/dist/components/text/fonts/sriracha.strokes.js +4 -0
- package/dist/components/text/index.d.ts +27 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +13 -0
- package/dist/components/text/useTextObject.d.ts +21 -0
- package/dist/components/text/useTextObject.d.ts.map +1 -0
- package/dist/components/text/useTextObject.js +118 -0
- package/dist/components/water/OceanSurface.d.ts.map +1 -1
- package/dist/components/water/OceanSurface.js +3 -1
- package/dist/components/water/WaterBody.d.ts.map +1 -1
- package/dist/components/water/WaterBody.js +3 -1
- package/dist/components/water/types.d.ts +5 -1
- package/dist/components/water/types.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -0
- 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/useCloudSun.d.ts +9 -4
- package/dist/hooks/useCloudSun.d.ts.map +1 -1
- package/dist/hooks/useCloudSun.js +17 -7
- package/dist/hooks/useConfigLive.d.ts +3 -2
- package/dist/hooks/useConfigLive.d.ts.map +1 -1
- package/dist/hooks/useContinuousEffects.d.ts.map +1 -1
- package/dist/hooks/useContinuousEffects.js +4 -10
- package/dist/hooks/useEnvironmentProbe.d.ts +3 -22
- package/dist/hooks/useEnvironmentProbe.d.ts.map +1 -1
- package/dist/hooks/useEnvironmentProbe.js +47 -8
- package/dist/hooks/useGridSurface.d.ts +3 -10
- package/dist/hooks/useGridSurface.d.ts.map +1 -1
- package/dist/hooks/useGridSurface.js +5 -31
- package/dist/hooks/useInteraction.d.ts.map +1 -1
- package/dist/hooks/useInteraction.js +19 -72
- package/dist/hooks/useLightConfig.d.ts +2 -1
- package/dist/hooks/useLightConfig.d.ts.map +1 -1
- package/dist/hooks/useOceanMaterial.d.ts +6 -2
- package/dist/hooks/useOceanMaterial.d.ts.map +1 -1
- package/dist/hooks/useOceanMaterial.js +37 -2
- package/dist/hooks/useSkyLive.d.ts +23 -0
- package/dist/hooks/useSkyLive.d.ts.map +1 -0
- package/dist/hooks/useSkyLive.js +30 -0
- package/dist/hooks/useSkyUniforms.d.ts.map +1 -1
- package/dist/hooks/useSkyUniforms.js +2 -10
- package/dist/hooks/useTerrainLive.d.ts +3 -1
- package/dist/hooks/useTerrainLive.d.ts.map +1 -1
- package/dist/hooks/useTerrainTextures.d.ts +38 -0
- package/dist/hooks/useTerrainTextures.d.ts.map +1 -0
- package/dist/hooks/useTerrainTextures.js +149 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/operations/catalogue/blastOff.d.ts +3 -0
- package/dist/operations/catalogue/blastOff.d.ts.map +1 -0
- package/dist/operations/catalogue/blastOff.js +118 -0
- package/dist/operations/catalogue/bounce.d.ts +3 -0
- package/dist/operations/catalogue/bounce.d.ts.map +1 -0
- package/dist/operations/catalogue/bounce.js +34 -0
- package/dist/operations/catalogue/curlSmoke.d.ts.map +1 -1
- package/dist/operations/catalogue/curlSmoke.js +3 -1
- package/dist/operations/catalogue/dissolve.d.ts.map +1 -1
- package/dist/operations/catalogue/dissolve.js +2 -1
- package/dist/operations/catalogue/driftUp.d.ts +3 -0
- package/dist/operations/catalogue/driftUp.d.ts.map +1 -0
- package/dist/operations/catalogue/driftUp.js +57 -0
- package/dist/operations/catalogue/emberAsh.d.ts.map +1 -1
- package/dist/operations/catalogue/emberAsh.js +2 -1
- package/dist/operations/catalogue/flip.d.ts.map +1 -1
- package/dist/operations/catalogue/flip.js +19 -9
- package/dist/operations/catalogue/float.d.ts +3 -0
- package/dist/operations/catalogue/float.d.ts.map +1 -0
- package/dist/operations/catalogue/float.js +39 -0
- package/dist/operations/catalogue/flyBy.d.ts +3 -0
- package/dist/operations/catalogue/flyBy.d.ts.map +1 -0
- package/dist/operations/catalogue/flyBy.js +79 -0
- package/dist/operations/catalogue/frost.d.ts.map +1 -1
- package/dist/operations/catalogue/frost.js +10 -3
- package/dist/operations/catalogue/grow.d.ts +3 -0
- package/dist/operations/catalogue/grow.d.ts.map +1 -0
- package/dist/operations/catalogue/grow.js +19 -0
- package/dist/operations/catalogue/hologram.d.ts.map +1 -1
- package/dist/operations/catalogue/hologram.js +11 -5
- package/dist/operations/catalogue/jelly.d.ts.map +1 -1
- package/dist/operations/catalogue/jelly.js +18 -8
- package/dist/operations/catalogue/knockAway.d.ts +3 -0
- package/dist/operations/catalogue/knockAway.d.ts.map +1 -0
- package/dist/operations/catalogue/knockAway.js +74 -0
- package/dist/operations/catalogue/leafFall.d.ts +3 -0
- package/dist/operations/catalogue/leafFall.d.ts.map +1 -0
- package/dist/operations/catalogue/leafFall.js +74 -0
- package/dist/operations/catalogue/lidarScan.d.ts.map +1 -1
- package/dist/operations/catalogue/lidarScan.js +4 -1
- package/dist/operations/catalogue/metalize.d.ts.map +1 -1
- package/dist/operations/catalogue/metalize.js +8 -2
- package/dist/operations/catalogue/motionTrail.d.ts +6 -0
- package/dist/operations/catalogue/motionTrail.d.ts.map +1 -0
- package/dist/operations/catalogue/motionTrail.js +221 -0
- package/dist/operations/catalogue/petrify.d.ts.map +1 -1
- package/dist/operations/catalogue/petrify.js +9 -3
- package/dist/operations/catalogue/physicalExit.d.ts +55 -0
- package/dist/operations/catalogue/physicalExit.d.ts.map +1 -0
- package/dist/operations/catalogue/physicalExit.js +165 -0
- package/dist/operations/catalogue/physicalHeld.d.ts +41 -0
- package/dist/operations/catalogue/physicalHeld.d.ts.map +1 -0
- package/dist/operations/catalogue/physicalHeld.js +78 -0
- package/dist/operations/catalogue/physicalMix.d.ts +45 -0
- package/dist/operations/catalogue/physicalMix.d.ts.map +1 -0
- package/dist/operations/catalogue/physicalMix.js +144 -0
- package/dist/operations/catalogue/pop.d.ts +3 -0
- package/dist/operations/catalogue/pop.d.ts.map +1 -0
- package/dist/operations/catalogue/pop.js +44 -0
- package/dist/operations/catalogue/print3d.d.ts.map +1 -1
- package/dist/operations/catalogue/print3d.js +5 -1
- package/dist/operations/catalogue/pulse.d.ts +3 -0
- package/dist/operations/catalogue/pulse.d.ts.map +1 -0
- package/dist/operations/catalogue/pulse.js +29 -0
- package/dist/operations/catalogue/restPose.d.ts +5 -7
- package/dist/operations/catalogue/restPose.d.ts.map +1 -1
- package/dist/operations/catalogue/restPose.js +18 -48
- package/dist/operations/catalogue/rotate.d.ts +3 -0
- package/dist/operations/catalogue/rotate.d.ts.map +1 -0
- package/dist/operations/catalogue/rotate.js +49 -0
- package/dist/operations/catalogue/shake.d.ts +3 -0
- package/dist/operations/catalogue/shake.d.ts.map +1 -0
- package/dist/operations/catalogue/shake.js +31 -0
- package/dist/operations/catalogue/shatter.d.ts.map +1 -1
- package/dist/operations/catalogue/shatter.js +5 -1
- package/dist/operations/catalogue/slam.d.ts +3 -0
- package/dist/operations/catalogue/slam.d.ts.map +1 -0
- package/dist/operations/catalogue/slam.js +89 -0
- package/dist/operations/catalogue/slingshot.d.ts +3 -0
- package/dist/operations/catalogue/slingshot.d.ts.map +1 -0
- package/dist/operations/catalogue/slingshot.js +88 -0
- package/dist/operations/catalogue/spin.d.ts.map +1 -1
- package/dist/operations/catalogue/spin.js +24 -13
- package/dist/operations/catalogue/sway.d.ts +3 -0
- package/dist/operations/catalogue/sway.d.ts.map +1 -0
- package/dist/operations/catalogue/sway.js +23 -0
- package/dist/operations/catalogue/swirl.d.ts.map +1 -1
- package/dist/operations/catalogue/swirl.js +6 -5
- package/dist/operations/catalogue/trailCore.d.ts +89 -0
- package/dist/operations/catalogue/trailCore.d.ts.map +1 -0
- package/dist/operations/catalogue/trailCore.js +190 -0
- package/dist/operations/catalogue/trailGhosts.d.ts +5 -0
- package/dist/operations/catalogue/trailGhosts.d.ts.map +1 -0
- package/dist/operations/catalogue/trailGhosts.js +179 -0
- package/dist/operations/catalogue/trailStampStyles.d.ts +11 -0
- package/dist/operations/catalogue/trailStampStyles.d.ts.map +1 -0
- package/dist/operations/catalogue/trailStampStyles.js +479 -0
- package/dist/operations/catalogue/trailStamps.d.ts +57 -0
- package/dist/operations/catalogue/trailStamps.d.ts.map +1 -0
- package/dist/operations/catalogue/trailStamps.js +349 -0
- package/dist/operations/catalogue/trailStreaks.d.ts +3 -0
- package/dist/operations/catalogue/trailStreaks.d.ts.map +1 -0
- package/dist/operations/catalogue/trailStreaks.js +147 -0
- package/dist/operations/catalogue/transitionField.d.ts +30 -0
- package/dist/operations/catalogue/transitionField.d.ts.map +1 -1
- package/dist/operations/catalogue/transitionField.js +21 -0
- package/dist/operations/catalogue/turnAway.d.ts +3 -0
- package/dist/operations/catalogue/turnAway.d.ts.map +1 -0
- package/dist/operations/catalogue/turnAway.js +54 -0
- package/dist/operations/catalogue/vortexDrain.d.ts +3 -0
- package/dist/operations/catalogue/vortexDrain.d.ts.map +1 -0
- package/dist/operations/catalogue/vortexDrain.js +68 -0
- package/dist/operations/catalogue/warp.d.ts +3 -0
- package/dist/operations/catalogue/warp.d.ts.map +1 -0
- package/dist/operations/catalogue/warp.js +73 -0
- package/dist/operations/catalogue/whoosh.d.ts +3 -0
- package/dist/operations/catalogue/whoosh.d.ts.map +1 -0
- package/dist/operations/catalogue/whoosh.js +84 -0
- package/dist/operations/catalogue/wobble.d.ts +3 -0
- package/dist/operations/catalogue/wobble.d.ts.map +1 -0
- package/dist/operations/catalogue/wobble.js +23 -0
- package/dist/operations/clipPreview.d.ts +3 -0
- package/dist/operations/clipPreview.d.ts.map +1 -0
- package/dist/operations/clipPreview.js +20 -0
- package/dist/operations/groupFanout.d.ts +96 -0
- package/dist/operations/groupFanout.d.ts.map +1 -0
- package/dist/operations/groupFanout.js +365 -0
- package/dist/operations/groups.d.ts +20 -0
- package/dist/operations/groups.d.ts.map +1 -0
- package/dist/operations/groups.js +66 -0
- package/dist/operations/index.d.ts +5 -2
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +5 -2
- package/dist/operations/objectEffects.d.ts +161 -6
- package/dist/operations/objectEffects.d.ts.map +1 -1
- package/dist/operations/objectEffects.js +1091 -17
- package/dist/operations/registry.d.ts.map +1 -1
- package/dist/operations/registry.js +24 -2
- package/dist/operations/runtime.d.ts +57 -2
- package/dist/operations/runtime.d.ts.map +1 -1
- package/dist/operations/runtime.js +161 -18
- package/dist/operations/types.d.ts +60 -3
- package/dist/operations/types.d.ts.map +1 -1
- package/dist/operations/types.js +5 -1
- package/dist/operations/useObjectEffectLayers.d.ts +2 -2
- package/dist/operations/useObjectEffectLayers.d.ts.map +1 -1
- package/dist/operations/useObjectEffectLayers.js +31 -10
- package/dist/operations/usePresentedVisibility.d.ts +10 -0
- package/dist/operations/usePresentedVisibility.d.ts.map +1 -0
- package/dist/operations/usePresentedVisibility.js +53 -0
- package/dist/presets/terrainBiomes.d.ts +67 -0
- package/dist/presets/terrainBiomes.d.ts.map +1 -0
- package/dist/presets/terrainBiomes.js +294 -0
- package/dist/presets/terrainPresets.d.ts +6 -0
- package/dist/presets/terrainPresets.d.ts.map +1 -1
- package/dist/presets/terrainPresets.js +26 -38
- package/dist/shaders/glsl/oceanCore.glsl.d.ts +2 -2
- package/dist/shaders/glsl/oceanCore.glsl.d.ts.map +1 -1
- package/dist/shaders/glsl/oceanCore.glsl.js +17 -0
- package/dist/shaders/glsl/surfaceCore.glsl.d.ts +21 -0
- package/dist/shaders/glsl/surfaceCore.glsl.d.ts.map +1 -0
- package/dist/shaders/glsl/surfaceCore.glsl.js +120 -0
- package/dist/shaders/glsl/terrainCore.glsl.d.ts +16 -3
- package/dist/shaders/glsl/terrainCore.glsl.d.ts.map +1 -1
- package/dist/shaders/glsl/terrainCore.glsl.js +266 -20
- package/dist/shaders/ocean/OceanSurfaceMaterial.d.ts +2 -0
- package/dist/shaders/ocean/OceanSurfaceMaterial.d.ts.map +1 -1
- package/dist/shaders/ocean/OceanSurfaceMaterial.js +3 -0
- package/dist/shaders/terrain/TerrainMaterial.d.ts +17 -0
- package/dist/shaders/terrain/TerrainMaterial.d.ts.map +1 -1
- package/dist/shaders/terrain/TerrainMaterial.js +107 -8
- package/dist/triggers/engine.d.ts +44 -0
- package/dist/triggers/engine.d.ts.map +1 -0
- package/dist/triggers/engine.js +165 -0
- package/dist/triggers/hosts/actions.d.ts +8 -0
- package/dist/triggers/hosts/actions.d.ts.map +1 -0
- package/dist/triggers/hosts/actions.js +22 -0
- package/dist/triggers/hosts/interactions.d.ts +6 -0
- package/dist/triggers/hosts/interactions.d.ts.map +1 -0
- package/dist/triggers/hosts/interactions.js +4 -0
- package/dist/triggers/hosts/timelineCues.d.ts +2 -0
- package/dist/triggers/hosts/timelineCues.d.ts.map +1 -0
- package/dist/triggers/hosts/timelineCues.js +22 -0
- package/dist/triggers/index.d.ts +13 -0
- package/dist/triggers/index.d.ts.map +1 -0
- package/dist/triggers/index.js +9 -0
- package/dist/triggers/kinds/action.d.ts +2 -0
- package/dist/triggers/kinds/action.d.ts.map +1 -0
- package/dist/triggers/kinds/action.js +31 -0
- package/dist/triggers/kinds/animations.d.ts +2 -0
- package/dist/triggers/kinds/animations.d.ts.map +1 -0
- package/dist/triggers/kinds/animations.js +75 -0
- package/dist/triggers/kinds/effects.d.ts +2 -0
- package/dist/triggers/kinds/effects.d.ts.map +1 -0
- package/dist/triggers/kinds/effects.js +27 -0
- package/dist/triggers/kinds/index.d.ts +4 -0
- package/dist/triggers/kinds/index.d.ts.map +1 -0
- package/dist/triggers/kinds/index.js +4 -0
- package/dist/triggers/log.d.ts +21 -0
- package/dist/triggers/log.d.ts.map +1 -0
- package/dist/triggers/log.js +43 -0
- package/dist/triggers/readiness.d.ts +40 -0
- package/dist/triggers/readiness.d.ts.map +1 -0
- package/dist/triggers/readiness.js +158 -0
- package/dist/triggers/registry.d.ts +41 -0
- package/dist/triggers/registry.d.ts.map +1 -0
- package/dist/triggers/registry.js +7 -0
- package/dist/types/gridConfigs.d.ts +18 -23
- package/dist/types/gridConfigs.d.ts.map +1 -1
- package/dist/ui/UiAnchorUpdater.d.ts +10 -0
- package/dist/ui/UiAnchorUpdater.d.ts.map +1 -0
- package/dist/ui/UiAnchorUpdater.js +111 -0
- package/dist/ui/UiLayers.d.ts +20 -0
- package/dist/ui/UiLayers.d.ts.map +1 -0
- package/dist/ui/UiLayers.js +57 -0
- package/dist/ui/index.d.ts +9 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +6 -0
- package/dist/ui/uiAnchors.d.ts +21 -0
- package/dist/ui/uiAnchors.d.ts.map +1 -0
- package/dist/ui/uiAnchors.js +22 -0
- package/dist/ui/uiBaseStyles.d.ts +2 -0
- package/dist/ui/uiBaseStyles.d.ts.map +1 -0
- package/dist/ui/uiBaseStyles.js +100 -0
- package/dist/ui/uiBinder.d.ts +30 -0
- package/dist/ui/uiBinder.d.ts.map +1 -0
- package/dist/ui/uiBinder.js +344 -0
- package/dist/utils/configAnimations.d.ts.map +1 -1
- package/dist/utils/configAnimations.js +5 -1
- package/dist/utils/gridConfig.d.ts +1 -1
- package/dist/utils/gridConfig.d.ts.map +1 -1
- package/dist/utils/gridConfig.js +1 -1
- package/dist/utils/landPatch.d.ts +33 -0
- package/dist/utils/landPatch.d.ts.map +1 -0
- package/dist/utils/landPatch.js +114 -0
- package/dist/utils/renderedSky.d.ts +32 -0
- package/dist/utils/renderedSky.d.ts.map +1 -0
- package/dist/utils/renderedSky.js +57 -0
- package/dist/utils/skyMoon.d.ts +35 -0
- package/dist/utils/skyMoon.d.ts.map +1 -0
- package/dist/utils/skyMoon.js +41 -0
- package/dist/utils/terrainHeight.d.ts +4 -0
- package/dist/utils/terrainHeight.d.ts.map +1 -0
- package/dist/utils/terrainHeight.js +150 -0
- package/dist/utils/terrainTextureResolver.d.ts +18 -0
- package/dist/utils/terrainTextureResolver.d.ts.map +1 -0
- package/dist/utils/terrainTextureResolver.js +17 -0
- package/dist/utils/terrainUniforms.d.ts +17 -0
- package/dist/utils/terrainUniforms.d.ts.map +1 -1
- package/dist/utils/terrainUniforms.js +84 -0
- package/dist/utils/textureArrays.d.ts +29 -0
- package/dist/utils/textureArrays.d.ts.map +1 -0
- package/dist/utils/textureArrays.js +140 -0
- package/package.json +2 -2
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// GroupFanout — a group's effects reach its children (see claude/group-effects-plan.md).
|
|
3
|
+
// =============================================================================
|
|
4
|
+
//
|
|
5
|
+
// A group never draws an effect itself. Its visual effects, and its physical effects scoped
|
|
6
|
+
// 'each', are handed to each child's own effects controller as ADDED effects (`addEffect`,
|
|
7
|
+
// the path interactions and actions use) — so the child's rule applies unchanged: the added
|
|
8
|
+
// effect wins on what it touches, the child's own effects carry on with the rest and come
|
|
9
|
+
// back afterwards. Physical effects scoped 'group' (the default) stay on the group root and
|
|
10
|
+
// move the whole group as one piece; they never come here.
|
|
11
|
+
//
|
|
12
|
+
// children the leaf scene objects under the group (object roots that are not groups,
|
|
13
|
+
// through nested groups). Visual effects go only to children that take them
|
|
14
|
+
// (userData.visualFx); physical 'each' effects go to every leaf.
|
|
15
|
+
// spread the stagger: `order` (tree · x · y · z · radial · random, seeded by the group id),
|
|
16
|
+
// `total` (seconds from the first child to the last — a fixed total, so 3 or 40
|
|
17
|
+
// children take the same time; 0 = together), `out` (reverse: last in, first out).
|
|
18
|
+
// Each effect is ranked among the children it reaches (no gaps for the others).
|
|
19
|
+
// on / off each child after its delay; switched on again while its out cascade runs, the
|
|
20
|
+
// pending removals are called off (each child turns round where it is).
|
|
21
|
+
// steps a step change hands over child by child in the in order (old off, new on at the
|
|
22
|
+
// same moment, the new one first: on each child the incoming take-over sweeps over
|
|
23
|
+
// the outgoing one).
|
|
24
|
+
// edits a changed parameter lands on every child at once (no cascade).
|
|
25
|
+
// join a child that joins the group gets the effects that are on at once; one that
|
|
26
|
+
// leaves has them taken off at once.
|
|
27
|
+
// visible the group's clip follows visibility: hidden → each child plays the group's effects
|
|
28
|
+
// out (its turn in the out order) and is no longer drawn; the group goes after the
|
|
29
|
+
// last. Shown → the children start from nothing and play them in one after another.
|
|
30
|
+
// triggered an effect or a saved clip triggered on the group (interaction, action, cue) goes to
|
|
31
|
+
// the children the same way (`addTriggered` / `applyClip`); it never follows visibility.
|
|
32
|
+
//
|
|
33
|
+
import { Box3, Matrix4, Vector3 } from 'three';
|
|
34
|
+
import { DEFAULT_EFFECT_SPREAD } from '@3driseai/3drise-core';
|
|
35
|
+
import { getOperation } from './registry.js';
|
|
36
|
+
import { mulberry32 } from './catalogue/surfaceSample.js';
|
|
37
|
+
/** A row of a group's clip that goes to the children: a visual effect, or a physical one scoped 'each'. */
|
|
38
|
+
export const isFanRow = (e) => getOperation(e.operation)?.channel !== 'transform' || e.scope === 'each';
|
|
39
|
+
const hash = (s) => { let h = 2166136261; for (let i = 0; i < s.length; i++) {
|
|
40
|
+
h ^= s.charCodeAt(i);
|
|
41
|
+
h = Math.imul(h, 16777619);
|
|
42
|
+
} return h >>> 0; };
|
|
43
|
+
const rowSig = (e) => JSON.stringify([e.operation, e.params ?? null, e.playback ?? null]);
|
|
44
|
+
const clipRows = (c) => [...(c.effects ?? []), ...(c.steps ?? []).flatMap(s => s.effects ?? [])].filter(Boolean);
|
|
45
|
+
export class GroupFanout {
|
|
46
|
+
root;
|
|
47
|
+
controllerOf;
|
|
48
|
+
/** What is handed out now, by item id (own rows: their id; triggered rows: `t:<key>`; clips: `c:<key>`). */
|
|
49
|
+
items = new Map();
|
|
50
|
+
children = [];
|
|
51
|
+
childKey = '';
|
|
52
|
+
spread = DEFAULT_EFFECT_SPREAD;
|
|
53
|
+
/** The group's own clip follows its visibility: its rows reach the children as following it too. */
|
|
54
|
+
follows = false;
|
|
55
|
+
/** Pending gives / takes: `${itemId}|${childId}` → timer. */
|
|
56
|
+
timers = new Map();
|
|
57
|
+
/** Pending visibility turns: childId → timer (and the leave promise to settle if called off). */
|
|
58
|
+
vis = new Map();
|
|
59
|
+
constructor(root,
|
|
60
|
+
/** A child's controller; `create` makes one for a child that has no effects of its own. */
|
|
61
|
+
controllerOf) {
|
|
62
|
+
this.root = root;
|
|
63
|
+
this.controllerOf = controllerOf;
|
|
64
|
+
}
|
|
65
|
+
get groupId() { return String(this.root.userData?.id ?? this.root.uuid); }
|
|
66
|
+
key(itemId) { return `grp:${this.groupId}:${itemId}`; }
|
|
67
|
+
rowFits(row, c) { return c.visual || getOperation(row.operation)?.channel === 'transform'; }
|
|
68
|
+
fits(item, c) { return item.kind === 'row' ? this.rowFits(item.row, c) : clipRows(item.clip).some(r => this.rowFits(r, c)); }
|
|
69
|
+
/** Milliseconds before child `c` gets (or, `out`, loses) its turn among `reach` (the children concerned). */
|
|
70
|
+
turn(reach, c, out) {
|
|
71
|
+
const n = reach.length, total = Number(this.spread.total);
|
|
72
|
+
const rank = reach.indexOf(c);
|
|
73
|
+
if (n < 2 || rank < 0 || !(total > 0))
|
|
74
|
+
return 0;
|
|
75
|
+
const r = out && this.spread.out === 'reverse' ? n - 1 - rank : rank;
|
|
76
|
+
return (total * 1000 * r) / (n - 1);
|
|
77
|
+
}
|
|
78
|
+
delay(item, c, out) { return this.turn(this.children.filter(x => this.fits(item, x)), c, out); }
|
|
79
|
+
cancel(itemId, childId) {
|
|
80
|
+
const k = `${itemId}|${childId}`;
|
|
81
|
+
const t = this.timers.get(k);
|
|
82
|
+
if (t) {
|
|
83
|
+
clearTimeout(t.t);
|
|
84
|
+
this.timers.delete(k);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
schedule(itemId, c, ms, fn) {
|
|
88
|
+
this.cancel(itemId, c.id);
|
|
89
|
+
if (ms <= 0) {
|
|
90
|
+
fn();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const k = `${itemId}|${c.id}`;
|
|
94
|
+
this.timers.set(k, { t: setTimeout(() => { this.timers.delete(k); fn(); }, ms), fn });
|
|
95
|
+
}
|
|
96
|
+
/** Run every pending give / take now (the group is being hidden: the children must be in their final state). */
|
|
97
|
+
flush() {
|
|
98
|
+
const pending = [...this.timers.entries()];
|
|
99
|
+
this.timers.clear();
|
|
100
|
+
for (const [, p] of pending) {
|
|
101
|
+
clearTimeout(p.t);
|
|
102
|
+
p.fn();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** Hand an item (as it is when the delay ends) to a child. */
|
|
106
|
+
give(itemId, c, instant = false) {
|
|
107
|
+
const item = this.items.get(itemId);
|
|
108
|
+
if (!item || !this.fits(item, c))
|
|
109
|
+
return;
|
|
110
|
+
const ctl = this.controllerOf(c.root, true);
|
|
111
|
+
if (!ctl)
|
|
112
|
+
return;
|
|
113
|
+
if (item.kind === 'row') {
|
|
114
|
+
const { operation, params, playback } = item.row;
|
|
115
|
+
ctl.addEffect(this.key(itemId), { operation, params, playback }, { instant, follows: item.own && this.follows });
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
// only what this child can take
|
|
119
|
+
const keep = (e) => !!e && this.rowFits(e, c);
|
|
120
|
+
const steps = (item.clip.steps ?? []).map(s => ({ ...s, effects: (s.effects ?? []).filter(keep) })).filter(s => s.effects.length);
|
|
121
|
+
ctl.applyClip(this.key(itemId), { ...item.clip, effects: (item.clip.effects ?? []).filter(keep), steps });
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
take(itemId, kind, c) {
|
|
125
|
+
const ctl = this.controllerOf(c.root, false);
|
|
126
|
+
if (!ctl)
|
|
127
|
+
return;
|
|
128
|
+
if (kind === 'row')
|
|
129
|
+
ctl.removeEffect(this.key(itemId));
|
|
130
|
+
else
|
|
131
|
+
ctl.removeClip(this.key(itemId));
|
|
132
|
+
}
|
|
133
|
+
/** Hand out a new item: each child it reaches after its delay. */
|
|
134
|
+
putOn(itemId, item, instant) {
|
|
135
|
+
this.items.set(itemId, item);
|
|
136
|
+
for (const c of this.children) {
|
|
137
|
+
if (this.fits(item, c))
|
|
138
|
+
this.schedule(itemId, c, instant ? 0 : this.delay(item, c, false), () => this.give(itemId, c, instant));
|
|
139
|
+
else
|
|
140
|
+
this.cancel(itemId, c.id);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/** Take an item off: each child after its out delay (`inOrder`: a handover — in the in order). */
|
|
144
|
+
takeOff(itemId, instant, inOrder = false) {
|
|
145
|
+
const item = this.items.get(itemId);
|
|
146
|
+
if (!item)
|
|
147
|
+
return false;
|
|
148
|
+
this.items.delete(itemId);
|
|
149
|
+
for (const c of this.children)
|
|
150
|
+
this.schedule(itemId, c, instant ? 0 : this.delay(item, c, !inOrder), () => this.take(itemId, item.kind, c));
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
/** The leaf scene objects under the group, in the spread's order. */
|
|
154
|
+
collect() {
|
|
155
|
+
const out = [];
|
|
156
|
+
this.root.traverse(o => {
|
|
157
|
+
if (o === this.root)
|
|
158
|
+
return;
|
|
159
|
+
const ud = o.userData;
|
|
160
|
+
if (!ud?.id || !ud.objectType || ud.objectType === 'group')
|
|
161
|
+
return;
|
|
162
|
+
out.push({ id: String(ud.id), root: o, visual: !!ud.visualFx });
|
|
163
|
+
});
|
|
164
|
+
const order = this.spread.order;
|
|
165
|
+
if (order !== 'tree' && out.length > 1) {
|
|
166
|
+
if (order === 'random') {
|
|
167
|
+
const rnd = mulberry32(hash(this.groupId));
|
|
168
|
+
const keyed = out.map(c => ({ c, k: rnd() }));
|
|
169
|
+
keyed.sort((a, b) => a.k - b.k);
|
|
170
|
+
out.splice(0, out.length, ...keyed.map(x => x.c));
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this.root.updateWorldMatrix(true, true);
|
|
174
|
+
const inv = new Matrix4().copy(this.root.matrixWorld).invert();
|
|
175
|
+
const box = new Box3();
|
|
176
|
+
const centre = (o) => {
|
|
177
|
+
box.setFromObject(o);
|
|
178
|
+
const v = box.isEmpty() ? o.getWorldPosition(new Vector3()) : box.getCenter(new Vector3());
|
|
179
|
+
return v.applyMatrix4(inv);
|
|
180
|
+
};
|
|
181
|
+
const at = new Map(out.map(c => [c, centre(c.root)]));
|
|
182
|
+
if (order === 'radial') {
|
|
183
|
+
const mid = new Vector3();
|
|
184
|
+
at.forEach(v => mid.add(v));
|
|
185
|
+
mid.divideScalar(at.size);
|
|
186
|
+
out.sort((a, b) => at.get(a).distanceTo(mid) - at.get(b).distanceTo(mid));
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
out.sort((a, b) => at.get(a)[order] - at.get(b)[order]);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return out;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* The group's own fan rows now (its clip's visual rows and physical 'each' rows, Base and steps).
|
|
197
|
+
* instant scene load: everything lands at once, no cascade.
|
|
198
|
+
* follows the group's clip follows visibility.
|
|
199
|
+
*/
|
|
200
|
+
sync(rows, spread, mode, follows = false) {
|
|
201
|
+
this.spread = { ...DEFAULT_EFFECT_SPREAD, ...(spread ?? {}) };
|
|
202
|
+
this.check(true);
|
|
203
|
+
const instant = mode === 'instant';
|
|
204
|
+
if (follows !== this.follows) {
|
|
205
|
+
// following visibility or not makes the children's copies other effects: hand them out again
|
|
206
|
+
this.follows = follows;
|
|
207
|
+
for (const [id, item] of this.items)
|
|
208
|
+
if (item.kind === 'row' && item.own)
|
|
209
|
+
for (const c of this.children)
|
|
210
|
+
if (!this.timers.has(`${id}|${c.id}`))
|
|
211
|
+
this.give(id, c, true);
|
|
212
|
+
}
|
|
213
|
+
const next = new Map(rows.filter(r => r?.enabled && getOperation(r.operation)).map(r => [r.id, r]));
|
|
214
|
+
const own = [...this.items].filter(([, i]) => i.kind === 'row' && i.own);
|
|
215
|
+
const handover = [...next.keys()].some(id => !this.items.has(id));
|
|
216
|
+
for (const [id, row] of next) {
|
|
217
|
+
const cur = this.items.get(id);
|
|
218
|
+
if (!cur || cur.kind !== 'row') {
|
|
219
|
+
this.putOn(id, { kind: 'row', row, own: true }, instant);
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
this.items.set(id, { kind: 'row', row, own: true });
|
|
223
|
+
// an edit lands at once on every child that has it; one still waiting gets the new values when its turn comes
|
|
224
|
+
if (rowSig(cur.row) !== rowSig(row))
|
|
225
|
+
for (const c of this.children)
|
|
226
|
+
if (!this.timers.has(`${id}|${c.id}`))
|
|
227
|
+
this.give(id, c, true);
|
|
228
|
+
}
|
|
229
|
+
// switched off / removed: each child loses it after its out delay — but when other rows come on in the
|
|
230
|
+
// same sync (a step handing over), in the IN order, so each child swaps at its moment — and AFTER the
|
|
231
|
+
// incoming one is given (same delay, scheduled first), so the incoming take-over sweeps over the outgoing one
|
|
232
|
+
for (const [id] of own)
|
|
233
|
+
if (!next.has(id))
|
|
234
|
+
this.takeOff(id, instant, handover);
|
|
235
|
+
}
|
|
236
|
+
// ---- triggered on the group (interactions, actions, cues) ----
|
|
237
|
+
addTriggered(key, effect) {
|
|
238
|
+
this.check(true);
|
|
239
|
+
const id = `t:${key}`;
|
|
240
|
+
const row = { id, operation: effect.operation, enabled: true, params: effect.params, playback: effect.playback };
|
|
241
|
+
const cur = this.items.get(id);
|
|
242
|
+
if (cur?.kind === 'row' && rowSig(cur.row) === rowSig(row) && !getOperation(row.operation)?.revert) {
|
|
243
|
+
// a one-shot triggered again plays again, child by child
|
|
244
|
+
this.putOn(id, { kind: 'row', row, own: false }, false);
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
if (cur?.kind === 'row') {
|
|
248
|
+
this.items.set(id, { kind: 'row', row, own: false });
|
|
249
|
+
for (const c of this.children)
|
|
250
|
+
if (!this.timers.has(`${id}|${c.id}`))
|
|
251
|
+
this.give(id, c, true);
|
|
252
|
+
return true;
|
|
253
|
+
}
|
|
254
|
+
this.putOn(id, { kind: 'row', row, own: false }, false);
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
removeTriggered(key) { return this.takeOff(`t:${key}`, false); }
|
|
258
|
+
hasTriggered(key) { return this.items.has(`t:${key}`); }
|
|
259
|
+
applyClip(key, clip) {
|
|
260
|
+
this.check(true);
|
|
261
|
+
const id = `c:${key}`;
|
|
262
|
+
if (this.items.has(id))
|
|
263
|
+
return true;
|
|
264
|
+
this.putOn(id, { kind: 'clip', clip }, false);
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
removeClip(key) { return this.takeOff(`c:${key}`, false); }
|
|
268
|
+
hasClip(key) { return this.items.has(`c:${key}`); }
|
|
269
|
+
// ---- the group's visibility (its clip follows it) ----
|
|
270
|
+
/** The children that hold the group's own rows, and the keys of those rows on each. */
|
|
271
|
+
holders() {
|
|
272
|
+
const own = [...this.items].filter(([, i]) => i.kind === 'row' && i.own);
|
|
273
|
+
return this.children.map(c => ({ c, keys: own.filter(([, i]) => this.fits(i, c)).map(([id]) => this.key(id)) })).filter(h => h.keys.length);
|
|
274
|
+
}
|
|
275
|
+
cancelVis() {
|
|
276
|
+
this.vis.forEach(v => { clearTimeout(v.t); v.done?.(); });
|
|
277
|
+
this.vis.clear();
|
|
278
|
+
}
|
|
279
|
+
/** The group is being hidden: each child plays the group's effects out on its turn. Resolves when the last has gone. */
|
|
280
|
+
leave() {
|
|
281
|
+
this.cancelVis();
|
|
282
|
+
this.flush();
|
|
283
|
+
const hs = this.holders();
|
|
284
|
+
const reach = hs.map(h => h.c);
|
|
285
|
+
return Promise.all(hs.map(({ c, keys }) => new Promise(resolve => {
|
|
286
|
+
const go = () => { this.vis.delete(c.id); void Promise.resolve(this.controllerOf(c.root, false)?.fanLeave(keys)).then(() => resolve(), () => resolve()); };
|
|
287
|
+
const ms = this.turn(reach, c, true);
|
|
288
|
+
if (ms <= 0) {
|
|
289
|
+
go();
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
this.vis.set(c.id, { t: setTimeout(go, ms), done: resolve });
|
|
293
|
+
})));
|
|
294
|
+
}
|
|
295
|
+
/** The group is about to be shown: every child holding its effects starts from nothing. */
|
|
296
|
+
park() {
|
|
297
|
+
this.cancelVis();
|
|
298
|
+
this.flush();
|
|
299
|
+
for (const { c, keys } of this.holders())
|
|
300
|
+
this.controllerOf(c.root, false)?.fanPark(keys);
|
|
301
|
+
}
|
|
302
|
+
/** The group is drawn: each child gets ready and plays the group's effects in, on its turn. */
|
|
303
|
+
enter() {
|
|
304
|
+
this.cancelVis();
|
|
305
|
+
const hs = this.holders();
|
|
306
|
+
const reach = hs.map(h => h.c);
|
|
307
|
+
for (const { c, keys } of hs) {
|
|
308
|
+
const go = () => { this.vis.delete(c.id); void this.controllerOf(c.root, false)?.fanEnter(keys); };
|
|
309
|
+
const ms = this.turn(reach, c, false);
|
|
310
|
+
if (ms <= 0)
|
|
311
|
+
go();
|
|
312
|
+
else
|
|
313
|
+
this.vis.set(c.id, { t: setTimeout(go, ms) });
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Children joined or left (checked every few frames, and on each change). `quiet` on the first look.
|
|
318
|
+
* A child that joins gets what is on at once; one that leaves loses it at once.
|
|
319
|
+
*/
|
|
320
|
+
check(quiet = false) {
|
|
321
|
+
const list = this.collect();
|
|
322
|
+
const key = list.map(c => c.id).join('|');
|
|
323
|
+
if (key === this.childKey) {
|
|
324
|
+
this.children = list;
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
const before = new Map(this.children.map(c => [c.id, c]));
|
|
328
|
+
const now = new Set(list.map(c => c.id));
|
|
329
|
+
if (!quiet || this.childKey) {
|
|
330
|
+
for (const [id, c] of before)
|
|
331
|
+
if (!now.has(id))
|
|
332
|
+
for (const [itemId, item] of this.items) {
|
|
333
|
+
this.cancel(itemId, id);
|
|
334
|
+
this.take(itemId, item.kind, c);
|
|
335
|
+
}
|
|
336
|
+
for (const c of list)
|
|
337
|
+
if (!before.has(c.id))
|
|
338
|
+
for (const itemId of this.items.keys())
|
|
339
|
+
this.give(itemId, c, true);
|
|
340
|
+
}
|
|
341
|
+
this.children = list;
|
|
342
|
+
this.childKey = key;
|
|
343
|
+
}
|
|
344
|
+
/** Some child is still waiting for one of these items (a cascade is running). */
|
|
345
|
+
pending(itemIds) {
|
|
346
|
+
for (const k of this.timers.keys())
|
|
347
|
+
if (itemIds.includes(k.slice(0, k.lastIndexOf('|'))))
|
|
348
|
+
return true;
|
|
349
|
+
return false;
|
|
350
|
+
}
|
|
351
|
+
/** Take everything off the children at once (the group is going away, or is no longer a group). */
|
|
352
|
+
dispose() {
|
|
353
|
+
this.timers.forEach(p => clearTimeout(p.t));
|
|
354
|
+
this.timers.clear();
|
|
355
|
+
this.cancelVis();
|
|
356
|
+
for (const [itemId, item] of this.items)
|
|
357
|
+
for (const c of this.children)
|
|
358
|
+
this.take(itemId, item.kind, c);
|
|
359
|
+
this.items.clear();
|
|
360
|
+
this.children = [];
|
|
361
|
+
this.childKey = '';
|
|
362
|
+
}
|
|
363
|
+
/** Ids of the children now, in cascade order (tests / studio). */
|
|
364
|
+
get childIds() { return this.children.map(c => c.id); }
|
|
365
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OperationChannel, OperationName } from '@3driseai/3drise-core';
|
|
2
|
+
import type { OperationDefinition } from './types';
|
|
3
|
+
export interface OperationGroup {
|
|
4
|
+
id: string;
|
|
5
|
+
channel: OperationChannel;
|
|
6
|
+
label: string;
|
|
7
|
+
/** One line under the group title in the gallery. */
|
|
8
|
+
description: string;
|
|
9
|
+
operations: OperationName[];
|
|
10
|
+
}
|
|
11
|
+
export declare const OPERATION_GROUPS: OperationGroup[];
|
|
12
|
+
/**
|
|
13
|
+
* `ops` (one channel's operations, already filtered for the context) split into the
|
|
14
|
+
* gallery's groups, in gallery order. Empty groups are dropped; ungrouped ones go under "More".
|
|
15
|
+
*/
|
|
16
|
+
export declare function groupOperations(ops: OperationDefinition[]): Array<{
|
|
17
|
+
group: Omit<OperationGroup, 'operations'>;
|
|
18
|
+
operations: OperationDefinition[];
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/operations/groups.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,EAAE,cAAc,EA8C5C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAAC,UAAU,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAC,CAYnJ"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export const OPERATION_GROUPS = [
|
|
2
|
+
{
|
|
3
|
+
id: 'exits', channel: 'transform', label: 'Enter & exit',
|
|
4
|
+
description: 'Take the object out of the scene and bring it back',
|
|
5
|
+
operations: ['swirl', 'blastOff', 'vortexDrain', 'leafFall', 'pop', 'driftUp', 'slingshot', 'warp', 'knockAway', 'turnAway', 'flyBy', 'whoosh', 'slam'],
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
id: 'moves', channel: 'transform', label: 'Moves',
|
|
9
|
+
description: 'One move, then back to rest',
|
|
10
|
+
operations: ['jelly', 'flip', 'spin', 'grow', 'moveToFront'],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'motion', channel: 'transform', label: 'Ongoing motion',
|
|
14
|
+
description: 'Keeps moving while it is on',
|
|
15
|
+
operations: ['float', 'sway', 'bounce', 'wobble', 'pulse', 'shake', 'rotate'],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'transform-away', channel: 'visual', label: 'Transform away',
|
|
19
|
+
description: 'Turn the object into something else as it leaves',
|
|
20
|
+
operations: ['dissolve', 'emberAsh', 'shatter', 'sandErosion', 'curlSmoke', 'inkBloom', 'flock', 'liquidMetal', 'voxelize', 'unweave', 'petalPeel', 'particleSwarm', 'teleport', 'portal', 'hologram', 'lidarScan', 'print3d', 'silkDrape'],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'surfaces', channel: 'visual', label: 'Surfaces',
|
|
24
|
+
description: 'Change what the object is made of',
|
|
25
|
+
operations: ['metalize', 'frost', 'petrify', 'heatCracks', 'kintsugi', 'rainBeads', 'ivy'],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'light', channel: 'visual', label: 'Light',
|
|
29
|
+
description: 'Light the object up',
|
|
30
|
+
operations: ['glow', 'rimLight'],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'trails', channel: 'visual', label: 'Trails',
|
|
34
|
+
description: 'Left behind wherever the object moves — add one to any physical effect; they combine',
|
|
35
|
+
operations: ['afterimageTrail', 'longExposureTrail', 'chromaticEchoTrail', 'streaksTrail', 'smokeTrail', 'ashTrail', 'sandTrail', 'hologramTrail', 'voxelTrail', 'shatterTrail', 'inkTrail', 'frostTrail', 'wireframeTrail', 'bubblesTrail'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'show-hide', channel: 'visual', label: 'Show & hide',
|
|
39
|
+
description: 'Plain fades, switches and images',
|
|
40
|
+
operations: ['fade', 'visibility', 'displayImage'],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'camera', channel: 'camera', label: 'Camera moves',
|
|
44
|
+
description: 'Move or turn the camera to the target',
|
|
45
|
+
operations: ['zoom', 'frame', 'focus', 'orbit'],
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* `ops` (one channel's operations, already filtered for the context) split into the
|
|
50
|
+
* gallery's groups, in gallery order. Empty groups are dropped; ungrouped ones go under "More".
|
|
51
|
+
*/
|
|
52
|
+
export function groupOperations(ops) {
|
|
53
|
+
const byName = new Map(ops.map(o => [o.value, o]));
|
|
54
|
+
const seen = new Set();
|
|
55
|
+
const out = [];
|
|
56
|
+
for (const g of OPERATION_GROUPS) {
|
|
57
|
+
const list = g.operations.map(n => byName.get(n)).filter((o) => !!o);
|
|
58
|
+
list.forEach(o => seen.add(o.value));
|
|
59
|
+
if (list.length)
|
|
60
|
+
out.push({ group: { id: g.id, channel: g.channel, label: g.label, description: g.description }, operations: list });
|
|
61
|
+
}
|
|
62
|
+
const rest = ops.filter(o => !seen.has(o.value));
|
|
63
|
+
if (rest.length)
|
|
64
|
+
out.push({ group: { id: 'more', channel: rest[0].channel, label: 'More', description: '' }, operations: rest });
|
|
65
|
+
return out;
|
|
66
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export { OPERATIONS, getOperation, operationsFor, resolveParams, channelOf } from './registry';
|
|
3
|
-
export {
|
|
3
|
+
export { OPERATION_GROUPS, groupOperations, type OperationGroup } from './groups';
|
|
4
|
+
export { runEffect, runEffectClip, setEffectClipTemplates, getEffectClipTemplate, effectClipFromAsset, EFFECT_CLIP_ASSET, applyOperation, revertOperation, runOf, isOperationOn, resolveEffectTargets, runActionEffects, previewEffect, previewEffects, isPreviewing, prewarmEffect, areActionEffectsOn, subscribeActionEffects, registerOperationTools, } from './runtime';
|
|
4
5
|
export { useOperationsRuntime } from './useOperationsRuntime';
|
|
5
|
-
export { ObjectEffectsController, runningObjectEffects, objectEffectParams, isObjectOperation, surfaceSignature } from './objectEffects';
|
|
6
|
+
export { ObjectEffectsController, runningObjectEffects, objectEffectParams, isObjectOperation, surfaceSignature, playObjectEffect, playbackOf, clipFollowsVisibility, setObjectEffectsVisible, currentEffectStep } from './objectEffects';
|
|
6
7
|
export { useObjectEffectLayers } from './useObjectEffectLayers';
|
|
8
|
+
export { usePresentedVisibility } from './usePresentedVisibility';
|
|
9
|
+
export { captureFrameImage } from './clipPreview';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,EACH,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,EACH,SAAS,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAC5L,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,sBAAsB,GACnJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC1O,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/operations/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './types.js';
|
|
2
2
|
export { OPERATIONS, getOperation, operationsFor, resolveParams, channelOf } from './registry.js';
|
|
3
|
-
export {
|
|
3
|
+
export { OPERATION_GROUPS, groupOperations } from './groups.js';
|
|
4
|
+
export { runEffect, runEffectClip, setEffectClipTemplates, getEffectClipTemplate, effectClipFromAsset, EFFECT_CLIP_ASSET, applyOperation, revertOperation, runOf, isOperationOn, resolveEffectTargets, runActionEffects, previewEffect, previewEffects, isPreviewing, prewarmEffect, areActionEffectsOn, subscribeActionEffects, registerOperationTools, } from './runtime.js';
|
|
4
5
|
export { useOperationsRuntime } from './useOperationsRuntime.js';
|
|
5
|
-
export { ObjectEffectsController, runningObjectEffects, objectEffectParams, isObjectOperation, surfaceSignature } from './objectEffects.js';
|
|
6
|
+
export { ObjectEffectsController, runningObjectEffects, objectEffectParams, isObjectOperation, surfaceSignature, playObjectEffect, playbackOf, clipFollowsVisibility, setObjectEffectsVisible, currentEffectStep } from './objectEffects.js';
|
|
6
7
|
export { useObjectEffectLayers } from './useObjectEffectLayers.js';
|
|
8
|
+
export { usePresentedVisibility } from './usePresentedVisibility.js';
|
|
9
|
+
export { captureFrameImage } from './clipPreview.js';
|