@sharedex/ui 0.0.0-stage → 0.9.0
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/LICENSE +21 -0
- package/README.md +511 -2
- package/dist/backgrounds/config.d.ts +23 -0
- package/dist/backgrounds/config.js +19 -0
- package/dist/backgrounds/effects/canvasKit.d.ts +22 -0
- package/dist/backgrounds/effects/canvasKit.js +40 -0
- package/dist/backgrounds/effects/cursor/cursorGlow.d.ts +13 -0
- package/dist/backgrounds/effects/cursor/cursorGlow.js +42 -0
- package/dist/backgrounds/effects/cursor/cursorGlow.schema.d.ts +1 -0
- package/dist/backgrounds/effects/cursor/cursorGlow.schema.js +14 -0
- package/dist/backgrounds/effects/cursor/fluidCursor.d.ts +33 -0
- package/dist/backgrounds/effects/cursor/fluidCursor.js +322 -0
- package/dist/backgrounds/effects/cursor/fluidCursor.schema.d.ts +1 -0
- package/dist/backgrounds/effects/cursor/fluidCursor.schema.js +17 -0
- package/dist/backgrounds/effects/cursor/proximityMask.d.ts +14 -0
- package/dist/backgrounds/effects/cursor/proximityMask.js +104 -0
- package/dist/backgrounds/effects/cursor/proximityMask.schema.d.ts +1 -0
- package/dist/backgrounds/effects/cursor/proximityMask.schema.js +15 -0
- package/dist/backgrounds/effects/cursor/waterRipple.d.ts +30 -0
- package/dist/backgrounds/effects/cursor/waterRipple.js +239 -0
- package/dist/backgrounds/effects/cursor/waterRipple.schema.d.ts +1 -0
- package/dist/backgrounds/effects/cursor/waterRipple.schema.js +22 -0
- package/dist/backgrounds/effects/define.d.ts +75 -0
- package/dist/backgrounds/effects/define.js +137 -0
- package/dist/backgrounds/effects/glass/isometricLayers.d.ts +14 -0
- package/dist/backgrounds/effects/glass/isometricLayers.js +57 -0
- package/dist/backgrounds/effects/glass/isometricLayers.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glass/isometricLayers.schema.js +16 -0
- package/dist/backgrounds/effects/glass/liquidSculpture.d.ts +24 -0
- package/dist/backgrounds/effects/glass/liquidSculpture.js +154 -0
- package/dist/backgrounds/effects/glass/liquidSculpture.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glass/liquidSculpture.schema.js +15 -0
- package/dist/backgrounds/effects/glitch/asciiArt.d.ts +29 -0
- package/dist/backgrounds/effects/glitch/asciiArt.js +132 -0
- package/dist/backgrounds/effects/glitch/asciiArt.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/asciiArt.schema.js +17 -0
- package/dist/backgrounds/effects/glitch/asciiArtGl.d.ts +19 -0
- package/dist/backgrounds/effects/glitch/asciiArtGl.js +92 -0
- package/dist/backgrounds/effects/glitch/crtScanlines.d.ts +16 -0
- package/dist/backgrounds/effects/glitch/crtScanlines.js +51 -0
- package/dist/backgrounds/effects/glitch/crtScanlines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/crtScanlines.schema.js +15 -0
- package/dist/backgrounds/effects/glitch/digitalGlitch.d.ts +15 -0
- package/dist/backgrounds/effects/glitch/digitalGlitch.js +65 -0
- package/dist/backgrounds/effects/glitch/digitalGlitch.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/digitalGlitch.schema.js +16 -0
- package/dist/backgrounds/effects/glitch/ditherWave.d.ts +12 -0
- package/dist/backgrounds/effects/glitch/ditherWave.js +52 -0
- package/dist/backgrounds/effects/glitch/ditherWave.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/ditherWave.schema.js +14 -0
- package/dist/backgrounds/effects/glitch/matrixRain.d.ts +15 -0
- package/dist/backgrounds/effects/glitch/matrixRain.js +58 -0
- package/dist/backgrounds/effects/glitch/matrixRain.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/matrixRain.schema.js +15 -0
- package/dist/backgrounds/effects/glitch/retroScreen.d.ts +12 -0
- package/dist/backgrounds/effects/glitch/retroScreen.js +50 -0
- package/dist/backgrounds/effects/glitch/retroScreen.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/retroScreen.schema.js +13 -0
- package/dist/backgrounds/effects/glitch/rgbShift.d.ts +13 -0
- package/dist/backgrounds/effects/glitch/rgbShift.js +58 -0
- package/dist/backgrounds/effects/glitch/rgbShift.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/rgbShift.schema.js +14 -0
- package/dist/backgrounds/effects/glitch/vhsStatic.d.ts +12 -0
- package/dist/backgrounds/effects/glitch/vhsStatic.js +48 -0
- package/dist/backgrounds/effects/glitch/vhsStatic.schema.d.ts +1 -0
- package/dist/backgrounds/effects/glitch/vhsStatic.schema.js +14 -0
- package/dist/backgrounds/effects/grid/animatedGrid.d.ts +13 -0
- package/dist/backgrounds/effects/grid/animatedGrid.js +63 -0
- package/dist/backgrounds/effects/grid/animatedGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/animatedGrid.schema.js +15 -0
- package/dist/backgrounds/effects/grid/contourLines.d.ts +26 -0
- package/dist/backgrounds/effects/grid/contourLines.js +157 -0
- package/dist/backgrounds/effects/grid/contourLines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/contourLines.schema.js +18 -0
- package/dist/backgrounds/effects/grid/contourLinesGl.d.ts +11 -0
- package/dist/backgrounds/effects/grid/contourLinesGl.js +57 -0
- package/dist/backgrounds/effects/grid/dataGrid.d.ts +15 -0
- package/dist/backgrounds/effects/grid/dataGrid.js +73 -0
- package/dist/backgrounds/effects/grid/dataGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/dataGrid.schema.js +17 -0
- package/dist/backgrounds/effects/grid/dotPattern.d.ts +11 -0
- package/dist/backgrounds/effects/grid/dotPattern.js +27 -0
- package/dist/backgrounds/effects/grid/dotPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/dotPattern.schema.js +13 -0
- package/dist/backgrounds/effects/grid/fadingGrid.d.ts +13 -0
- package/dist/backgrounds/effects/grid/fadingGrid.js +41 -0
- package/dist/backgrounds/effects/grid/fadingGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/fadingGrid.schema.js +15 -0
- package/dist/backgrounds/effects/grid/geometricVectors.d.ts +15 -0
- package/dist/backgrounds/effects/grid/geometricVectors.js +136 -0
- package/dist/backgrounds/effects/grid/geometricVectors.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/geometricVectors.schema.js +16 -0
- package/dist/backgrounds/effects/grid/gradientGrid.d.ts +15 -0
- package/dist/backgrounds/effects/grid/gradientGrid.js +37 -0
- package/dist/backgrounds/effects/grid/gradientGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/gradientGrid.schema.js +15 -0
- package/dist/backgrounds/effects/grid/gridHero.d.ts +15 -0
- package/dist/backgrounds/effects/grid/gridHero.js +75 -0
- package/dist/backgrounds/effects/grid/gridHero.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/gridHero.schema.js +16 -0
- package/dist/backgrounds/effects/grid/gridHover.d.ts +16 -0
- package/dist/backgrounds/effects/grid/gridHover.js +46 -0
- package/dist/backgrounds/effects/grid/gridHover.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/gridHover.schema.js +16 -0
- package/dist/backgrounds/effects/grid/layeredGridCards.d.ts +18 -0
- package/dist/backgrounds/effects/grid/layeredGridCards.js +78 -0
- package/dist/backgrounds/effects/grid/layeredGridCards.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/layeredGridCards.schema.js +18 -0
- package/dist/backgrounds/effects/grid/lines.d.ts +5 -0
- package/dist/backgrounds/effects/grid/lines.js +14 -0
- package/dist/backgrounds/effects/grid/magnetLines.d.ts +13 -0
- package/dist/backgrounds/effects/grid/magnetLines.js +61 -0
- package/dist/backgrounds/effects/grid/magnetLines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/magnetLines.schema.js +15 -0
- package/dist/backgrounds/effects/grid/meltyLines.d.ts +15 -0
- package/dist/backgrounds/effects/grid/meltyLines.js +67 -0
- package/dist/backgrounds/effects/grid/meltyLines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/meltyLines.schema.js +16 -0
- package/dist/backgrounds/effects/grid/morphGrid.d.ts +14 -0
- package/dist/backgrounds/effects/grid/morphGrid.js +74 -0
- package/dist/backgrounds/effects/grid/morphGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/morphGrid.schema.js +15 -0
- package/dist/backgrounds/effects/grid/neonGridTrail.d.ts +13 -0
- package/dist/backgrounds/effects/grid/neonGridTrail.js +70 -0
- package/dist/backgrounds/effects/grid/neonGridTrail.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/neonGridTrail.schema.js +14 -0
- package/dist/backgrounds/effects/grid/quantumGrid.d.ts +13 -0
- package/dist/backgrounds/effects/grid/quantumGrid.js +73 -0
- package/dist/backgrounds/effects/grid/quantumGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/quantumGrid.schema.js +15 -0
- package/dist/backgrounds/effects/grid/triangleGrid.d.ts +15 -0
- package/dist/backgrounds/effects/grid/triangleGrid.js +67 -0
- package/dist/backgrounds/effects/grid/triangleGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/grid/triangleGrid.schema.js +15 -0
- package/dist/backgrounds/effects/media/image.schema.d.ts +1 -0
- package/dist/backgrounds/effects/media/image.schema.js +17 -0
- package/dist/backgrounds/effects/media/media.d.ts +30 -0
- package/dist/backgrounds/effects/media/media.js +53 -0
- package/dist/backgrounds/effects/media/video.schema.d.ts +1 -0
- package/dist/backgrounds/effects/media/video.schema.js +15 -0
- package/dist/backgrounds/effects/palette.d.ts +10 -0
- package/dist/backgrounds/effects/palette.js +21 -0
- package/dist/backgrounds/effects/particle/bokeh.d.ts +13 -0
- package/dist/backgrounds/effects/particle/bokeh.js +58 -0
- package/dist/backgrounds/effects/particle/bokeh.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/bokeh.schema.js +15 -0
- package/dist/backgrounds/effects/particle/constellation.d.ts +25 -0
- package/dist/backgrounds/effects/particle/constellation.js +119 -0
- package/dist/backgrounds/effects/particle/constellation.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/constellation.schema.js +15 -0
- package/dist/backgrounds/effects/particle/cursorDots.d.ts +17 -0
- package/dist/backgrounds/effects/particle/cursorDots.js +47 -0
- package/dist/backgrounds/effects/particle/cursorDots.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/cursorDots.schema.js +16 -0
- package/dist/backgrounds/effects/particle/fallingParticles.d.ts +15 -0
- package/dist/backgrounds/effects/particle/fallingParticles.js +96 -0
- package/dist/backgrounds/effects/particle/fallingParticles.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/fallingParticles.schema.js +16 -0
- package/dist/backgrounds/effects/particle/meteors.d.ts +13 -0
- package/dist/backgrounds/effects/particle/meteors.js +63 -0
- package/dist/backgrounds/effects/particle/meteors.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/meteors.schema.js +15 -0
- package/dist/backgrounds/effects/particle/particleHover.d.ts +16 -0
- package/dist/backgrounds/effects/particle/particleHover.js +73 -0
- package/dist/backgrounds/effects/particle/particleHover.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/particleHover.schema.js +15 -0
- package/dist/backgrounds/effects/particle/particleOrb.d.ts +14 -0
- package/dist/backgrounds/effects/particle/particleOrb.js +95 -0
- package/dist/backgrounds/effects/particle/particleOrb.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/particleOrb.schema.js +15 -0
- package/dist/backgrounds/effects/particle/particles.d.ts +23 -0
- package/dist/backgrounds/effects/particle/particles.js +63 -0
- package/dist/backgrounds/effects/particle/particles.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/particles.schema.js +15 -0
- package/dist/backgrounds/effects/particle/starfield.d.ts +12 -0
- package/dist/backgrounds/effects/particle/starfield.js +88 -0
- package/dist/backgrounds/effects/particle/starfield.schema.d.ts +1 -0
- package/dist/backgrounds/effects/particle/starfield.schema.js +14 -0
- package/dist/backgrounds/effects/pattern/circlesPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/pattern/circlesPattern.schema.js +12 -0
- package/dist/backgrounds/effects/pattern/diamondsPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/pattern/diamondsPattern.schema.js +12 -0
- package/dist/backgrounds/effects/pattern/leatherPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/pattern/leatherPattern.schema.js +12 -0
- package/dist/backgrounds/effects/pattern/patterns.d.ts +22 -0
- package/dist/backgrounds/effects/pattern/patterns.js +120 -0
- package/dist/backgrounds/effects/pattern/scalesPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/pattern/scalesPattern.schema.js +12 -0
- package/dist/backgrounds/effects/pattern/strangePattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/pattern/strangePattern.schema.js +12 -0
- package/dist/backgrounds/effects/scroll/cinematicReveal.d.ts +13 -0
- package/dist/backgrounds/effects/scroll/cinematicReveal.js +82 -0
- package/dist/backgrounds/effects/scroll/cinematicReveal.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/cinematicReveal.schema.js +14 -0
- package/dist/backgrounds/effects/scroll/parallax.d.ts +14 -0
- package/dist/backgrounds/effects/scroll/parallax.js +60 -0
- package/dist/backgrounds/effects/scroll/parallax.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/parallax.schema.js +15 -0
- package/dist/backgrounds/effects/scroll/scrollColor.d.ts +10 -0
- package/dist/backgrounds/effects/scroll/scrollColor.js +41 -0
- package/dist/backgrounds/effects/scroll/scrollColor.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/scrollColor.schema.js +25 -0
- package/dist/backgrounds/effects/scroll/scrollMorph.d.ts +13 -0
- package/dist/backgrounds/effects/scroll/scrollMorph.js +104 -0
- package/dist/backgrounds/effects/scroll/scrollMorph.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/scrollMorph.schema.js +14 -0
- package/dist/backgrounds/effects/scroll/scrollTimeline.d.ts +10 -0
- package/dist/backgrounds/effects/scroll/scrollTimeline.js +104 -0
- package/dist/backgrounds/effects/scroll/scrollTimeline.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/scrollTimeline.schema.js +13 -0
- package/dist/backgrounds/effects/scroll/videoScrub.d.ts +22 -0
- package/dist/backgrounds/effects/scroll/videoScrub.js +53 -0
- package/dist/backgrounds/effects/scroll/videoScrub.schema.d.ts +1 -0
- package/dist/backgrounds/effects/scroll/videoScrub.schema.js +16 -0
- package/dist/backgrounds/effects/shader/aether.d.ts +12 -0
- package/dist/backgrounds/effects/shader/aether.js +46 -0
- package/dist/backgrounds/effects/shader/aether.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/aether.schema.js +14 -0
- package/dist/backgrounds/effects/shader/animatedGradient.d.ts +14 -0
- package/dist/backgrounds/effects/shader/animatedGradient.js +45 -0
- package/dist/backgrounds/effects/shader/animatedGradient.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/animatedGradient.schema.js +15 -0
- package/dist/backgrounds/effects/shader/aurora.d.ts +21 -0
- package/dist/backgrounds/effects/shader/aurora.js +64 -0
- package/dist/backgrounds/effects/shader/aurora.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/aurora.schema.js +15 -0
- package/dist/backgrounds/effects/shader/auroraGl.d.ts +8 -0
- package/dist/backgrounds/effects/shader/auroraGl.js +47 -0
- package/dist/backgrounds/effects/shader/caustics.d.ts +12 -0
- package/dist/backgrounds/effects/shader/caustics.js +68 -0
- package/dist/backgrounds/effects/shader/caustics.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/caustics.schema.js +14 -0
- package/dist/backgrounds/effects/shader/chromaticSine.d.ts +14 -0
- package/dist/backgrounds/effects/shader/chromaticSine.js +54 -0
- package/dist/backgrounds/effects/shader/chromaticSine.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/chromaticSine.schema.js +15 -0
- package/dist/backgrounds/effects/shader/godRays.d.ts +14 -0
- package/dist/backgrounds/effects/shader/godRays.js +51 -0
- package/dist/backgrounds/effects/shader/godRays.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/godRays.schema.js +15 -0
- package/dist/backgrounds/effects/shader/gooeyBlobs.d.ts +13 -0
- package/dist/backgrounds/effects/shader/gooeyBlobs.js +84 -0
- package/dist/backgrounds/effects/shader/gooeyBlobs.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/gooeyBlobs.schema.js +15 -0
- package/dist/backgrounds/effects/shader/gradientBars.d.ts +13 -0
- package/dist/backgrounds/effects/shader/gradientBars.js +57 -0
- package/dist/backgrounds/effects/shader/gradientBars.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/gradientBars.schema.js +15 -0
- package/dist/backgrounds/effects/shader/grainGradient.d.ts +12 -0
- package/dist/backgrounds/effects/shader/grainGradient.js +42 -0
- package/dist/backgrounds/effects/shader/grainGradient.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/grainGradient.schema.js +14 -0
- package/dist/backgrounds/effects/shader/iridescent.d.ts +19 -0
- package/dist/backgrounds/effects/shader/iridescent.js +64 -0
- package/dist/backgrounds/effects/shader/iridescent.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/iridescent.schema.js +14 -0
- package/dist/backgrounds/effects/shader/iridescentGl.d.ts +6 -0
- package/dist/backgrounds/effects/shader/iridescentGl.js +42 -0
- package/dist/backgrounds/effects/shader/liquid.d.ts +12 -0
- package/dist/backgrounds/effects/shader/liquid.js +44 -0
- package/dist/backgrounds/effects/shader/liquid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/liquid.schema.js +14 -0
- package/dist/backgrounds/effects/shader/meshGradient.d.ts +12 -0
- package/dist/backgrounds/effects/shader/meshGradient.js +51 -0
- package/dist/backgrounds/effects/shader/meshGradient.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/meshGradient.schema.js +23 -0
- package/dist/backgrounds/effects/shader/plasmaGrid.d.ts +14 -0
- package/dist/backgrounds/effects/shader/plasmaGrid.js +51 -0
- package/dist/backgrounds/effects/shader/plasmaGrid.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/plasmaGrid.schema.js +15 -0
- package/dist/backgrounds/effects/shader/rainbow.d.ts +13 -0
- package/dist/backgrounds/effects/shader/rainbow.js +41 -0
- package/dist/backgrounds/effects/shader/rainbow.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/rainbow.schema.js +14 -0
- package/dist/backgrounds/effects/shader/shaderLines.d.ts +12 -0
- package/dist/backgrounds/effects/shader/shaderLines.js +52 -0
- package/dist/backgrounds/effects/shader/shaderLines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/shaderLines.schema.js +14 -0
- package/dist/backgrounds/effects/shader/shaderRipples.d.ts +14 -0
- package/dist/backgrounds/effects/shader/shaderRipples.js +54 -0
- package/dist/backgrounds/effects/shader/shaderRipples.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/shaderRipples.schema.js +15 -0
- package/dist/backgrounds/effects/shader/smoothMesh.d.ts +12 -0
- package/dist/backgrounds/effects/shader/smoothMesh.js +45 -0
- package/dist/backgrounds/effects/shader/smoothMesh.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/smoothMesh.schema.js +14 -0
- package/dist/backgrounds/effects/shader/waveDistortion.d.ts +12 -0
- package/dist/backgrounds/effects/shader/waveDistortion.js +47 -0
- package/dist/backgrounds/effects/shader/waveDistortion.schema.d.ts +1 -0
- package/dist/backgrounds/effects/shader/waveDistortion.schema.js +14 -0
- package/dist/backgrounds/effects/shaderKit.d.ts +24 -0
- package/dist/backgrounds/effects/shaderKit.js +90 -0
- package/dist/backgrounds/effects/svgKit.d.ts +26 -0
- package/dist/backgrounds/effects/svgKit.js +50 -0
- package/dist/backgrounds/effects/texture/filmGrain.d.ts +18 -0
- package/dist/backgrounds/effects/texture/filmGrain.js +63 -0
- package/dist/backgrounds/effects/texture/filmGrain.schema.d.ts +1 -0
- package/dist/backgrounds/effects/texture/filmGrain.schema.js +13 -0
- package/dist/backgrounds/effects/texture/foggyGlass.schema.d.ts +1 -0
- package/dist/backgrounds/effects/texture/foggyGlass.schema.js +14 -0
- package/dist/backgrounds/effects/texture/frozenGlass.schema.d.ts +1 -0
- package/dist/backgrounds/effects/texture/frozenGlass.schema.js +14 -0
- package/dist/backgrounds/effects/texture/glass.d.ts +26 -0
- package/dist/backgrounds/effects/texture/glass.js +82 -0
- package/dist/backgrounds/effects/texture/halftone.d.ts +13 -0
- package/dist/backgrounds/effects/texture/halftone.js +49 -0
- package/dist/backgrounds/effects/texture/halftone.schema.d.ts +1 -0
- package/dist/backgrounds/effects/texture/halftone.schema.js +15 -0
- package/dist/backgrounds/effects/three/chrome.d.ts +14 -0
- package/dist/backgrounds/effects/three/chrome.js +50 -0
- package/dist/backgrounds/effects/three/chrome.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/chrome.schema.js +15 -0
- package/dist/backgrounds/effects/three/glassShapes.d.ts +9 -0
- package/dist/backgrounds/effects/three/glassShapes.js +47 -0
- package/dist/backgrounds/effects/three/glassShapes.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/glassShapes.schema.js +14 -0
- package/dist/backgrounds/effects/three/kit.d.ts +50 -0
- package/dist/backgrounds/effects/three/kit.js +126 -0
- package/dist/backgrounds/effects/three/liquidGlass.d.ts +11 -0
- package/dist/backgrounds/effects/three/liquidGlass.js +55 -0
- package/dist/backgrounds/effects/three/liquidGlass.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/liquidGlass.schema.js +15 -0
- package/dist/backgrounds/effects/three/metas.d.ts +7 -0
- package/dist/backgrounds/effects/three/metas.js +66 -0
- package/dist/backgrounds/effects/three/neonTubes.d.ts +29 -0
- package/dist/backgrounds/effects/three/neonTubes.js +162 -0
- package/dist/backgrounds/effects/three/neonTubes.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/neonTubes.schema.js +17 -0
- package/dist/backgrounds/effects/three/spectralGhost.d.ts +11 -0
- package/dist/backgrounds/effects/three/spectralGhost.js +145 -0
- package/dist/backgrounds/effects/three/spectralGhost.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/spectralGhost.schema.js +15 -0
- package/dist/backgrounds/effects/three/stage.d.ts +13 -0
- package/dist/backgrounds/effects/three/stage.js +45 -0
- package/dist/backgrounds/effects/three/wovenLight.d.ts +19 -0
- package/dist/backgrounds/effects/three/wovenLight.js +131 -0
- package/dist/backgrounds/effects/three/wovenLight.schema.d.ts +1 -0
- package/dist/backgrounds/effects/three/wovenLight.schema.js +16 -0
- package/dist/backgrounds/effects/wave/drawingLines.d.ts +13 -0
- package/dist/backgrounds/effects/wave/drawingLines.js +70 -0
- package/dist/backgrounds/effects/wave/drawingLines.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/drawingLines.schema.js +15 -0
- package/dist/backgrounds/effects/wave/flowField.d.ts +15 -0
- package/dist/backgrounds/effects/wave/flowField.js +93 -0
- package/dist/backgrounds/effects/wave/flowField.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/flowField.schema.js +16 -0
- package/dist/backgrounds/effects/wave/liquidWave.d.ts +10 -0
- package/dist/backgrounds/effects/wave/liquidWave.js +50 -0
- package/dist/backgrounds/effects/wave/liquidWave.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/liquidWave.schema.js +13 -0
- package/dist/backgrounds/effects/wave/moireDots.d.ts +12 -0
- package/dist/backgrounds/effects/wave/moireDots.js +45 -0
- package/dist/backgrounds/effects/wave/moireDots.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/moireDots.schema.js +14 -0
- package/dist/backgrounds/effects/wave/mountains.d.ts +21 -0
- package/dist/backgrounds/effects/wave/mountains.js +87 -0
- package/dist/backgrounds/effects/wave/mountains.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/mountains.schema.js +18 -0
- package/dist/backgrounds/effects/wave/ripples.d.ts +16 -0
- package/dist/backgrounds/effects/wave/ripples.js +52 -0
- package/dist/backgrounds/effects/wave/ripples.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/ripples.schema.js +16 -0
- package/dist/backgrounds/effects/wave/svgColorWave.d.ts +14 -0
- package/dist/backgrounds/effects/wave/svgColorWave.js +97 -0
- package/dist/backgrounds/effects/wave/svgColorWave.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/svgColorWave.schema.js +15 -0
- package/dist/backgrounds/effects/wave/svgWave.d.ts +15 -0
- package/dist/backgrounds/effects/wave/svgWave.js +72 -0
- package/dist/backgrounds/effects/wave/svgWave.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/svgWave.schema.js +17 -0
- package/dist/backgrounds/effects/wave/wavyPattern.d.ts +16 -0
- package/dist/backgrounds/effects/wave/wavyPattern.js +50 -0
- package/dist/backgrounds/effects/wave/wavyPattern.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/wavyPattern.schema.js +16 -0
- package/dist/backgrounds/effects/wave/wireframeOcean.d.ts +32 -0
- package/dist/backgrounds/effects/wave/wireframeOcean.js +145 -0
- package/dist/backgrounds/effects/wave/wireframeOcean.schema.d.ts +1 -0
- package/dist/backgrounds/effects/wave/wireframeOcean.schema.js +17 -0
- package/dist/backgrounds/hosts/CanvasHost.d.ts +13 -0
- package/dist/backgrounds/hosts/CanvasHost.js +116 -0
- package/dist/backgrounds/hosts/CssHost.d.ts +22 -0
- package/dist/backgrounds/hosts/CssHost.js +39 -0
- package/dist/backgrounds/hosts/MediaHost.d.ts +6 -0
- package/dist/backgrounds/hosts/MediaHost.js +202 -0
- package/dist/backgrounds/hosts/SvgHost.d.ts +12 -0
- package/dist/backgrounds/hosts/SvgHost.js +21 -0
- package/dist/backgrounds/hosts/WebglHost.d.ts +19 -0
- package/dist/backgrounds/hosts/WebglHost.js +181 -0
- package/dist/backgrounds/hosts/svgElement.d.ts +7 -0
- package/dist/backgrounds/hosts/svgElement.js +19 -0
- package/dist/backgrounds/hosts/useLayerNeeds.d.ts +10 -0
- package/dist/backgrounds/hosts/useLayerNeeds.js +33 -0
- package/dist/backgrounds/parts/Layer.d.ts +11 -0
- package/dist/backgrounds/parts/Layer.js +38 -0
- package/dist/backgrounds/parts/Root.d.ts +17 -0
- package/dist/backgrounds/parts/Root.js +25 -0
- package/dist/backgrounds/parts/index.d.ts +21 -0
- package/dist/backgrounds/parts/index.js +16 -0
- package/dist/backgrounds/registry.d.ts +5 -0
- package/dist/backgrounds/registry.js +190 -0
- package/dist/backgrounds/runtime/clock.d.ts +8 -0
- package/dist/backgrounds/runtime/clock.js +43 -0
- package/dist/backgrounds/runtime/color.d.ts +22 -0
- package/dist/backgrounds/runtime/color.js +68 -0
- package/dist/backgrounds/runtime/context.d.ts +43 -0
- package/dist/backgrounds/runtime/context.js +11 -0
- package/dist/backgrounds/runtime/hooks.d.ts +57 -0
- package/dist/backgrounds/runtime/hooks.js +240 -0
- package/dist/backgrounds/runtime/nativeScroll.d.ts +8 -0
- package/dist/backgrounds/runtime/nativeScroll.js +20 -0
- package/dist/backgrounds/runtime/noise.d.ts +4 -0
- package/dist/backgrounds/runtime/noise.js +38 -0
- package/dist/backgrounds/runtime/rng.d.ts +10 -0
- package/dist/backgrounds/runtime/rng.js +29 -0
- package/dist/backgrounds/runtime/rootCss.d.ts +3 -0
- package/dist/backgrounds/runtime/rootCss.js +66 -0
- package/dist/backgrounds/runtime/scroll.d.ts +25 -0
- package/dist/backgrounds/runtime/scroll.js +25 -0
- package/dist/backgrounds/runtime/tier.d.ts +26 -0
- package/dist/backgrounds/runtime/tier.js +72 -0
- package/dist/backgrounds/runtime/webgl.d.ts +81 -0
- package/dist/backgrounds/runtime/webgl.js +250 -0
- package/dist/backgrounds/types.d.ts +295 -0
- package/dist/backgrounds/types.js +20 -0
- package/dist/buttons/Button.d.ts +46 -0
- package/dist/buttons/Button.js +136 -0
- package/dist/buttons/base.d.ts +1 -0
- package/dist/buttons/base.js +162 -0
- package/dist/buttons/claims.d.ts +8 -0
- package/dist/buttons/claims.js +9 -0
- package/dist/buttons/effects/border/borderAnts.d.ts +15 -0
- package/dist/buttons/effects/border/borderAnts.js +30 -0
- package/dist/buttons/effects/border/borderAnts.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderAnts.schema.js +13 -0
- package/dist/buttons/effects/border/borderBeam.d.ts +13 -0
- package/dist/buttons/effects/border/borderBeam.js +19 -0
- package/dist/buttons/effects/border/borderBeam.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderBeam.schema.js +12 -0
- package/dist/buttons/effects/border/borderConic.d.ts +15 -0
- package/dist/buttons/effects/border/borderConic.js +30 -0
- package/dist/buttons/effects/border/borderConic.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderConic.schema.js +13 -0
- package/dist/buttons/effects/border/borderDraw.d.ts +13 -0
- package/dist/buttons/effects/border/borderDraw.js +27 -0
- package/dist/buttons/effects/border/borderDraw.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderDraw.schema.js +12 -0
- package/dist/buttons/effects/border/borderElectric.d.ts +16 -0
- package/dist/buttons/effects/border/borderElectric.js +68 -0
- package/dist/buttons/effects/border/borderElectric.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderElectric.schema.js +12 -0
- package/dist/buttons/effects/border/borderOutline.d.ts +13 -0
- package/dist/buttons/effects/border/borderOutline.js +45 -0
- package/dist/buttons/effects/border/borderOutline.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderOutline.schema.js +12 -0
- package/dist/buttons/effects/border/borderRound.d.ts +9 -0
- package/dist/buttons/effects/border/borderRound.js +18 -0
- package/dist/buttons/effects/border/borderRound.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderRound.schema.js +10 -0
- package/dist/buttons/effects/border/borderRunner.d.ts +13 -0
- package/dist/buttons/effects/border/borderRunner.js +37 -0
- package/dist/buttons/effects/border/borderRunner.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderRunner.schema.js +12 -0
- package/dist/buttons/effects/border/borderSpread.d.ts +12 -0
- package/dist/buttons/effects/border/borderSpread.js +28 -0
- package/dist/buttons/effects/border/borderSpread.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderSpread.schema.js +12 -0
- package/dist/buttons/effects/border/borderStar.d.ts +11 -0
- package/dist/buttons/effects/border/borderStar.js +36 -0
- package/dist/buttons/effects/border/borderStar.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderStar.schema.js +11 -0
- package/dist/buttons/effects/border/borderUnderline.d.ts +13 -0
- package/dist/buttons/effects/border/borderUnderline.js +26 -0
- package/dist/buttons/effects/border/borderUnderline.schema.d.ts +1 -0
- package/dist/buttons/effects/border/borderUnderline.schema.js +12 -0
- package/dist/buttons/effects/border/ring.d.ts +4 -0
- package/dist/buttons/effects/border/ring.js +29 -0
- package/dist/buttons/effects/cursor/cursorBlob.d.ts +13 -0
- package/dist/buttons/effects/cursor/cursorBlob.js +30 -0
- package/dist/buttons/effects/cursor/cursorBlob.schema.d.ts +1 -0
- package/dist/buttons/effects/cursor/cursorBlob.schema.js +12 -0
- package/dist/buttons/effects/cursor/cursorMagnet.d.ts +11 -0
- package/dist/buttons/effects/cursor/cursorMagnet.js +25 -0
- package/dist/buttons/effects/cursor/cursorMagnet.schema.d.ts +1 -0
- package/dist/buttons/effects/cursor/cursorMagnet.schema.js +11 -0
- package/dist/buttons/effects/depth/depthCube.d.ts +11 -0
- package/dist/buttons/effects/depth/depthCube.js +32 -0
- package/dist/buttons/effects/depth/depthCube.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthCube.schema.js +11 -0
- package/dist/buttons/effects/depth/depthFlip.d.ts +17 -0
- package/dist/buttons/effects/depth/depthFlip.js +42 -0
- package/dist/buttons/effects/depth/depthFlip.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthFlip.schema.js +14 -0
- package/dist/buttons/effects/depth/depthFloat.d.ts +11 -0
- package/dist/buttons/effects/depth/depthFloat.js +24 -0
- package/dist/buttons/effects/depth/depthFloat.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthFloat.schema.js +11 -0
- package/dist/buttons/effects/depth/depthGrow.d.ts +11 -0
- package/dist/buttons/effects/depth/depthGrow.js +30 -0
- package/dist/buttons/effects/depth/depthGrow.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthGrow.schema.js +11 -0
- package/dist/buttons/effects/depth/depthJiggle.d.ts +11 -0
- package/dist/buttons/effects/depth/depthJiggle.js +36 -0
- package/dist/buttons/effects/depth/depthJiggle.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthJiggle.schema.js +11 -0
- package/dist/buttons/effects/depth/depthNeumorph.d.ts +13 -0
- package/dist/buttons/effects/depth/depthNeumorph.js +42 -0
- package/dist/buttons/effects/depth/depthNeumorph.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthNeumorph.schema.js +12 -0
- package/dist/buttons/effects/depth/depthPushable.d.ts +13 -0
- package/dist/buttons/effects/depth/depthPushable.js +50 -0
- package/dist/buttons/effects/depth/depthPushable.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthPushable.schema.js +12 -0
- package/dist/buttons/effects/depth/depthTilt.d.ts +11 -0
- package/dist/buttons/effects/depth/depthTilt.js +22 -0
- package/dist/buttons/effects/depth/depthTilt.schema.d.ts +1 -0
- package/dist/buttons/effects/depth/depthTilt.schema.js +11 -0
- package/dist/buttons/effects/fill/fillDirectional.d.ts +5 -0
- package/dist/buttons/effects/fill/fillDirectional.js +21 -0
- package/dist/buttons/effects/fill/fillDirectional.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillDirectional.schema.js +8 -0
- package/dist/buttons/effects/fill/fillFade.d.ts +5 -0
- package/dist/buttons/effects/fill/fillFade.js +15 -0
- package/dist/buttons/effects/fill/fillFade.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillFade.schema.js +8 -0
- package/dist/buttons/effects/fill/fillGoo.d.ts +11 -0
- package/dist/buttons/effects/fill/fillGoo.js +74 -0
- package/dist/buttons/effects/fill/fillGoo.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillGoo.schema.js +11 -0
- package/dist/buttons/effects/fill/fillGradient.d.ts +14 -0
- package/dist/buttons/effects/fill/fillGradient.js +34 -0
- package/dist/buttons/effects/fill/fillGradient.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillGradient.schema.js +13 -0
- package/dist/buttons/effects/fill/fillRadial.d.ts +8 -0
- package/dist/buttons/effects/fill/fillRadial.js +36 -0
- package/dist/buttons/effects/fill/fillRadial.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillRadial.schema.js +11 -0
- package/dist/buttons/effects/fill/fillShutter.d.ts +10 -0
- package/dist/buttons/effects/fill/fillShutter.js +43 -0
- package/dist/buttons/effects/fill/fillShutter.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillShutter.schema.js +12 -0
- package/dist/buttons/effects/fill/fillSlash.d.ts +10 -0
- package/dist/buttons/effects/fill/fillSlash.js +26 -0
- package/dist/buttons/effects/fill/fillSlash.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillSlash.schema.js +12 -0
- package/dist/buttons/effects/fill/fillSpotlight.d.ts +11 -0
- package/dist/buttons/effects/fill/fillSpotlight.js +22 -0
- package/dist/buttons/effects/fill/fillSpotlight.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillSpotlight.schema.js +11 -0
- package/dist/buttons/effects/fill/fillSweep.d.ts +8 -0
- package/dist/buttons/effects/fill/fillSweep.js +26 -0
- package/dist/buttons/effects/fill/fillSweep.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillSweep.schema.js +11 -0
- package/dist/buttons/effects/fill/fillWave.d.ts +10 -0
- package/dist/buttons/effects/fill/fillWave.js +47 -0
- package/dist/buttons/effects/fill/fillWave.schema.d.ts +1 -0
- package/dist/buttons/effects/fill/fillWave.schema.js +12 -0
- package/dist/buttons/effects/fill/kit.d.ts +14 -0
- package/dist/buttons/effects/fill/kit.js +16 -0
- package/dist/buttons/effects/glass/glassBlur.d.ts +8 -0
- package/dist/buttons/effects/glass/glassBlur.js +11 -0
- package/dist/buttons/effects/glass/glassBlur.schema.d.ts +1 -0
- package/dist/buttons/effects/glass/glassBlur.schema.js +12 -0
- package/dist/buttons/effects/glass/glassDistort.d.ts +12 -0
- package/dist/buttons/effects/glass/glassDistort.js +49 -0
- package/dist/buttons/effects/glass/glassDistort.schema.d.ts +1 -0
- package/dist/buttons/effects/glass/glassDistort.schema.js +10 -0
- package/dist/buttons/effects/glass/glassLiquid.d.ts +12 -0
- package/dist/buttons/effects/glass/glassLiquid.js +53 -0
- package/dist/buttons/effects/glass/glassLiquid.schema.d.ts +1 -0
- package/dist/buttons/effects/glass/glassLiquid.schema.js +13 -0
- package/dist/buttons/effects/glass/glassNative.d.ts +8 -0
- package/dist/buttons/effects/glass/glassNative.js +22 -0
- package/dist/buttons/effects/glass/glassNative.schema.d.ts +1 -0
- package/dist/buttons/effects/glass/glassNative.schema.js +12 -0
- package/dist/buttons/effects/glass/glassRefract.d.ts +16 -0
- package/dist/buttons/effects/glass/glassRefract.js +55 -0
- package/dist/buttons/effects/glass/glassRefract.schema.d.ts +1 -0
- package/dist/buttons/effects/glass/glassRefract.schema.js +11 -0
- package/dist/buttons/effects/glass/kit.d.ts +20 -0
- package/dist/buttons/effects/glass/kit.js +39 -0
- package/dist/buttons/effects/glow/glowAura.d.ts +14 -0
- package/dist/buttons/effects/glow/glowAura.js +36 -0
- package/dist/buttons/effects/glow/glowAura.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowAura.schema.js +14 -0
- package/dist/buttons/effects/glow/glowGlare.d.ts +11 -0
- package/dist/buttons/effects/glow/glowGlare.js +22 -0
- package/dist/buttons/effects/glow/glowGlare.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowGlare.schema.js +11 -0
- package/dist/buttons/effects/glow/glowHover.d.ts +11 -0
- package/dist/buttons/effects/glow/glowHover.js +20 -0
- package/dist/buttons/effects/glow/glowHover.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowHover.schema.js +11 -0
- package/dist/buttons/effects/glow/glowLift.d.ts +11 -0
- package/dist/buttons/effects/glow/glowLift.js +25 -0
- package/dist/buttons/effects/glow/glowLift.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowLift.schema.js +11 -0
- package/dist/buttons/effects/glow/glowNeon.d.ts +12 -0
- package/dist/buttons/effects/glow/glowNeon.js +46 -0
- package/dist/buttons/effects/glow/glowNeon.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowNeon.schema.js +11 -0
- package/dist/buttons/effects/glow/glowRainbow.d.ts +14 -0
- package/dist/buttons/effects/glow/glowRainbow.js +44 -0
- package/dist/buttons/effects/glow/glowRainbow.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowRainbow.schema.js +13 -0
- package/dist/buttons/effects/glow/glowShimmer.d.ts +11 -0
- package/dist/buttons/effects/glow/glowShimmer.js +25 -0
- package/dist/buttons/effects/glow/glowShimmer.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowShimmer.schema.js +11 -0
- package/dist/buttons/effects/glow/glowShine.d.ts +16 -0
- package/dist/buttons/effects/glow/glowShine.js +41 -0
- package/dist/buttons/effects/glow/glowShine.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowShine.schema.js +13 -0
- package/dist/buttons/effects/glow/glowShiny.d.ts +12 -0
- package/dist/buttons/effects/glow/glowShiny.js +30 -0
- package/dist/buttons/effects/glow/glowShiny.schema.d.ts +1 -0
- package/dist/buttons/effects/glow/glowShiny.schema.js +11 -0
- package/dist/buttons/effects/icon/iconExpand.d.ts +7 -0
- package/dist/buttons/effects/icon/iconExpand.js +33 -0
- package/dist/buttons/effects/icon/iconExpand.schema.d.ts +1 -0
- package/dist/buttons/effects/icon/iconExpand.schema.js +9 -0
- package/dist/buttons/effects/icon/iconMorph.d.ts +15 -0
- package/dist/buttons/effects/icon/iconMorph.js +38 -0
- package/dist/buttons/effects/icon/iconMorph.schema.d.ts +1 -0
- package/dist/buttons/effects/icon/iconMorph.schema.js +10 -0
- package/dist/buttons/effects/icon/iconNudge.d.ts +11 -0
- package/dist/buttons/effects/icon/iconNudge.js +21 -0
- package/dist/buttons/effects/icon/iconNudge.schema.d.ts +1 -0
- package/dist/buttons/effects/icon/iconNudge.schema.js +11 -0
- package/dist/buttons/effects/icon/iconReveal.d.ts +9 -0
- package/dist/buttons/effects/icon/iconReveal.js +37 -0
- package/dist/buttons/effects/icon/iconReveal.schema.d.ts +1 -0
- package/dist/buttons/effects/icon/iconReveal.schema.js +10 -0
- package/dist/buttons/effects/icon/icons.d.ts +4 -0
- package/dist/buttons/effects/icon/icons.js +11 -0
- package/dist/buttons/effects/idle/idleBreathe.d.ts +13 -0
- package/dist/buttons/effects/idle/idleBreathe.js +28 -0
- package/dist/buttons/effects/idle/idleBreathe.schema.d.ts +1 -0
- package/dist/buttons/effects/idle/idleBreathe.schema.js +12 -0
- package/dist/buttons/effects/idle/idleGrain.d.ts +13 -0
- package/dist/buttons/effects/idle/idleGrain.js +53 -0
- package/dist/buttons/effects/idle/idleGrain.schema.d.ts +1 -0
- package/dist/buttons/effects/idle/idleGrain.schema.js +12 -0
- package/dist/buttons/effects/idle/idlePing.d.ts +13 -0
- package/dist/buttons/effects/idle/idlePing.js +29 -0
- package/dist/buttons/effects/idle/idlePing.schema.d.ts +1 -0
- package/dist/buttons/effects/idle/idlePing.schema.js +12 -0
- package/dist/buttons/effects/idle/idleWiggle.d.ts +9 -0
- package/dist/buttons/effects/idle/idleWiggle.js +28 -0
- package/dist/buttons/effects/idle/idleWiggle.schema.d.ts +1 -0
- package/dist/buttons/effects/idle/idleWiggle.schema.js +10 -0
- package/dist/buttons/effects/kit.d.ts +74 -0
- package/dist/buttons/effects/kit.js +87 -0
- package/dist/buttons/effects/label/labelFall.d.ts +9 -0
- package/dist/buttons/effects/label/labelFall.js +22 -0
- package/dist/buttons/effects/label/labelFall.schema.d.ts +1 -0
- package/dist/buttons/effects/label/labelFall.schema.js +10 -0
- package/dist/buttons/effects/label/labelRoll.d.ts +9 -0
- package/dist/buttons/effects/label/labelRoll.js +29 -0
- package/dist/buttons/effects/label/labelRoll.schema.d.ts +1 -0
- package/dist/buttons/effects/label/labelRoll.schema.js +10 -0
- package/dist/buttons/effects/label/labelScramble.d.ts +13 -0
- package/dist/buttons/effects/label/labelScramble.js +39 -0
- package/dist/buttons/effects/label/labelScramble.schema.d.ts +1 -0
- package/dist/buttons/effects/label/labelScramble.schema.js +11 -0
- package/dist/buttons/effects/label/labelShiny.d.ts +9 -0
- package/dist/buttons/effects/label/labelShiny.js +26 -0
- package/dist/buttons/effects/label/labelShiny.schema.d.ts +1 -0
- package/dist/buttons/effects/label/labelShiny.schema.js +10 -0
- package/dist/buttons/effects/label/labelSwap.d.ts +9 -0
- package/dist/buttons/effects/label/labelSwap.js +27 -0
- package/dist/buttons/effects/label/labelSwap.schema.d.ts +1 -0
- package/dist/buttons/effects/label/labelSwap.schema.js +10 -0
- package/dist/buttons/effects/press/pressBurst.d.ts +13 -0
- package/dist/buttons/effects/press/pressBurst.js +13 -0
- package/dist/buttons/effects/press/pressBurst.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressBurst.schema.js +13 -0
- package/dist/buttons/effects/press/pressConfetti.d.ts +15 -0
- package/dist/buttons/effects/press/pressConfetti.js +14 -0
- package/dist/buttons/effects/press/pressConfetti.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressConfetti.schema.js +14 -0
- package/dist/buttons/effects/press/pressJelly.d.ts +9 -0
- package/dist/buttons/effects/press/pressJelly.js +26 -0
- package/dist/buttons/effects/press/pressJelly.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressJelly.schema.js +10 -0
- package/dist/buttons/effects/press/pressRipple.d.ts +9 -0
- package/dist/buttons/effects/press/pressRipple.js +32 -0
- package/dist/buttons/effects/press/pressRipple.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressRipple.schema.js +10 -0
- package/dist/buttons/effects/press/pressScale.d.ts +9 -0
- package/dist/buttons/effects/press/pressScale.js +12 -0
- package/dist/buttons/effects/press/pressScale.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressScale.schema.js +10 -0
- package/dist/buttons/effects/press/pressSpark.d.ts +13 -0
- package/dist/buttons/effects/press/pressSpark.js +13 -0
- package/dist/buttons/effects/press/pressSpark.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressSpark.schema.js +12 -0
- package/dist/buttons/effects/press/pressSpray.d.ts +16 -0
- package/dist/buttons/effects/press/pressSpray.js +69 -0
- package/dist/buttons/effects/press/pressSpray.schema.d.ts +1 -0
- package/dist/buttons/effects/press/pressSpray.schema.js +13 -0
- package/dist/buttons/effects/press/stateShake.d.ts +12 -0
- package/dist/buttons/effects/press/stateShake.js +30 -0
- package/dist/buttons/effects/press/stateShake.schema.d.ts +1 -0
- package/dist/buttons/effects/press/stateShake.schema.js +10 -0
- package/dist/buttons/effects/press/throw.d.ts +10 -0
- package/dist/buttons/effects/press/throw.js +40 -0
- package/dist/buttons/effects/state/icons.d.ts +9 -0
- package/dist/buttons/effects/state/icons.js +35 -0
- package/dist/buttons/effects/state/kit.d.ts +2 -0
- package/dist/buttons/effects/state/kit.js +21 -0
- package/dist/buttons/effects/state/stateCopy.d.ts +14 -0
- package/dist/buttons/effects/state/stateCopy.js +28 -0
- package/dist/buttons/effects/state/stateCopy.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateCopy.schema.js +9 -0
- package/dist/buttons/effects/state/stateHold.d.ts +12 -0
- package/dist/buttons/effects/state/stateHold.js +36 -0
- package/dist/buttons/effects/state/stateHold.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateHold.schema.js +10 -0
- package/dist/buttons/effects/state/stateMorph.d.ts +14 -0
- package/dist/buttons/effects/state/stateMorph.js +62 -0
- package/dist/buttons/effects/state/stateMorph.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateMorph.schema.js +11 -0
- package/dist/buttons/effects/state/stateProgress.d.ts +12 -0
- package/dist/buttons/effects/state/stateProgress.js +38 -0
- package/dist/buttons/effects/state/stateProgress.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateProgress.schema.js +10 -0
- package/dist/buttons/effects/state/stateRing.d.ts +7 -0
- package/dist/buttons/effects/state/stateRing.js +32 -0
- package/dist/buttons/effects/state/stateRing.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateRing.schema.js +9 -0
- package/dist/buttons/effects/state/stateSpinner.d.ts +7 -0
- package/dist/buttons/effects/state/stateSpinner.js +17 -0
- package/dist/buttons/effects/state/stateSpinner.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateSpinner.schema.js +9 -0
- package/dist/buttons/effects/state/stateSwap.d.ts +10 -0
- package/dist/buttons/effects/state/stateSwap.js +29 -0
- package/dist/buttons/effects/state/stateSwap.schema.d.ts +1 -0
- package/dist/buttons/effects/state/stateSwap.schema.js +9 -0
- package/dist/buttons/pick.d.ts +5 -0
- package/dist/buttons/pick.js +16 -0
- package/dist/buttons/registry.d.ts +4 -0
- package/dist/buttons/registry.js +91 -0
- package/dist/buttons/runtime/attachPointer.d.ts +2 -0
- package/dist/buttons/runtime/attachPointer.js +59 -0
- package/dist/buttons/runtime/attachPress.d.ts +4 -0
- package/dist/buttons/runtime/attachPress.js +94 -0
- package/dist/buttons/runtime/burst.d.ts +3 -0
- package/dist/buttons/runtime/burst.js +76 -0
- package/dist/buttons/runtime/dev.d.ts +2 -0
- package/dist/buttons/runtime/dev.js +8 -0
- package/dist/buttons/runtime/particles.d.ts +55 -0
- package/dist/buttons/runtime/particles.js +98 -0
- package/dist/buttons/runtime/playLabel.d.ts +8 -0
- package/dist/buttons/runtime/playLabel.js +49 -0
- package/dist/buttons/runtime/pointer.d.ts +13 -0
- package/dist/buttons/runtime/pointer.js +30 -0
- package/dist/buttons/runtime/press.d.ts +8 -0
- package/dist/buttons/runtime/press.js +13 -0
- package/dist/buttons/runtime/refract.d.ts +8 -0
- package/dist/buttons/runtime/refract.js +222 -0
- package/dist/buttons/runtime/split.d.ts +1 -0
- package/dist/buttons/runtime/split.js +3 -0
- package/dist/buttons/runtime/state.d.ts +8 -0
- package/dist/buttons/runtime/state.js +17 -0
- package/dist/buttons/runtime/useButtonAction.d.ts +26 -0
- package/dist/buttons/runtime/useButtonAction.js +83 -0
- package/dist/buttons/runtime/useButtonPointer.d.ts +6 -0
- package/dist/buttons/runtime/useButtonPointer.js +23 -0
- package/dist/buttons/runtime/useButtonPress.d.ts +6 -0
- package/dist/buttons/runtime/useButtonPress.js +23 -0
- package/dist/buttons/runtime/useButtonTier.d.ts +7 -0
- package/dist/buttons/runtime/useButtonTier.js +30 -0
- package/dist/buttons/runtime/useIdlePause.d.ts +6 -0
- package/dist/buttons/runtime/useIdlePause.js +32 -0
- package/dist/buttons/types.d.ts +127 -0
- package/dist/buttons/types.js +7 -0
- package/dist/carousel/config.d.ts +120 -0
- package/dist/carousel/config.js +61 -0
- package/dist/carousel/config.schema.d.ts +21 -0
- package/dist/carousel/config.schema.js +95 -0
- package/dist/carousel/engine/handle.d.ts +154 -0
- package/dist/carousel/engine/handle.js +114 -0
- package/dist/carousel/engine/math.d.ts +1 -0
- package/dist/carousel/engine/math.js +1 -0
- package/dist/carousel/engine/morph.d.ts +55 -0
- package/dist/carousel/engine/morph.js +95 -0
- package/dist/carousel/engine/presence.d.ts +27 -0
- package/dist/carousel/engine/presence.js +41 -0
- package/dist/carousel/engine/ring.d.ts +72 -0
- package/dist/carousel/engine/ring.js +105 -0
- package/dist/carousel/engine/types.d.ts +115 -0
- package/dist/carousel/engine/types.js +53 -0
- package/dist/carousel/engine/useCarouselEngine.d.ts +10 -0
- package/dist/carousel/engine/useCarouselEngine.js +543 -0
- package/dist/carousel/engine/useMetrics.d.ts +35 -0
- package/dist/carousel/engine/useMetrics.js +120 -0
- package/dist/carousel/engine/viewSwap.d.ts +15 -0
- package/dist/carousel/engine/viewSwap.js +45 -0
- package/dist/carousel/input/useAutoplay.d.ts +16 -0
- package/dist/carousel/input/useAutoplay.js +43 -0
- package/dist/carousel/input/useDrag.d.ts +19 -0
- package/dist/carousel/input/useDrag.js +125 -0
- package/dist/carousel/input/useScrollLink.d.ts +37 -0
- package/dist/carousel/input/useScrollLink.js +69 -0
- package/dist/carousel/layout/curve.d.ts +23 -0
- package/dist/carousel/layout/curve.js +35 -0
- package/dist/carousel/layout/modifiers/converge.d.ts +33 -0
- package/dist/carousel/layout/modifiers/converge.js +34 -0
- package/dist/carousel/layout/modifiers/curve.d.ts +20 -0
- package/dist/carousel/layout/modifiers/curve.js +19 -0
- package/dist/carousel/layout/modifiers/pack.d.ts +24 -0
- package/dist/carousel/layout/modifiers/pack.js +35 -0
- package/dist/carousel/layout/modifiers/place3d.d.ts +54 -0
- package/dist/carousel/layout/modifiers/place3d.js +102 -0
- package/dist/carousel/layout/modifiers/scaleCurve.d.ts +10 -0
- package/dist/carousel/layout/modifiers/scaleCurve.js +24 -0
- package/dist/carousel/layout/modifiers/speed.d.ts +37 -0
- package/dist/carousel/layout/modifiers/speed.js +52 -0
- package/dist/carousel/layout/modifiers/speed.schema.d.ts +2 -0
- package/dist/carousel/layout/modifiers/speed.schema.js +21 -0
- package/dist/carousel/layout/modifiers/stack.d.ts +30 -0
- package/dist/carousel/layout/modifiers/stack.js +40 -0
- package/dist/carousel/layout/modifiers/track.d.ts +21 -0
- package/dist/carousel/layout/modifiers/track.js +22 -0
- package/dist/carousel/layout/open.d.ts +67 -0
- package/dist/carousel/layout/open.js +118 -0
- package/dist/carousel/layout/open.schema.d.ts +3 -0
- package/dist/carousel/layout/open.schema.js +38 -0
- package/dist/carousel/layout/presence.d.ts +64 -0
- package/dist/carousel/layout/presence.js +102 -0
- package/dist/carousel/layout/presence.schema.d.ts +5 -0
- package/dist/carousel/layout/presence.schema.js +49 -0
- package/dist/carousel/layout/presets/barrel.d.ts +33 -0
- package/dist/carousel/layout/presets/barrel.js +62 -0
- package/dist/carousel/layout/presets/barrel.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/barrel.schema.js +17 -0
- package/dist/carousel/layout/presets/coverflow.d.ts +26 -0
- package/dist/carousel/layout/presets/coverflow.js +31 -0
- package/dist/carousel/layout/presets/coverflow.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/coverflow.schema.js +12 -0
- package/dist/carousel/layout/presets/deck.d.ts +14 -0
- package/dist/carousel/layout/presets/deck.js +19 -0
- package/dist/carousel/layout/presets/deck.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/deck.schema.js +10 -0
- package/dist/carousel/layout/presets/expo.d.ts +16 -0
- package/dist/carousel/layout/presets/expo.js +25 -0
- package/dist/carousel/layout/presets/expo.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/expo.schema.js +11 -0
- package/dist/carousel/layout/presets/fallAway.d.ts +28 -0
- package/dist/carousel/layout/presets/fallAway.js +45 -0
- package/dist/carousel/layout/presets/fallAway.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/fallAway.schema.js +16 -0
- package/dist/carousel/layout/presets/fan.d.ts +17 -0
- package/dist/carousel/layout/presets/fan.js +20 -0
- package/dist/carousel/layout/presets/fan.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/fan.schema.js +12 -0
- package/dist/carousel/layout/presets/helix.d.ts +32 -0
- package/dist/carousel/layout/presets/helix.js +62 -0
- package/dist/carousel/layout/presets/helix.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/helix.schema.js +14 -0
- package/dist/carousel/layout/presets/material.d.ts +19 -0
- package/dist/carousel/layout/presets/material.js +50 -0
- package/dist/carousel/layout/presets/material.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/material.schema.js +11 -0
- package/dist/carousel/layout/presets/panorama.d.ts +28 -0
- package/dist/carousel/layout/presets/panorama.js +57 -0
- package/dist/carousel/layout/presets/panorama.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/panorama.schema.js +11 -0
- package/dist/carousel/layout/presets/ring.d.ts +33 -0
- package/dist/carousel/layout/presets/ring.js +58 -0
- package/dist/carousel/layout/presets/ring.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/ring.schema.js +17 -0
- package/dist/carousel/layout/presets/scale.d.ts +18 -0
- package/dist/carousel/layout/presets/scale.js +23 -0
- package/dist/carousel/layout/presets/scale.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/scale.schema.js +12 -0
- package/dist/carousel/layout/presets/sphere.d.ts +78 -0
- package/dist/carousel/layout/presets/sphere.js +167 -0
- package/dist/carousel/layout/presets/sphere.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/sphere.schema.js +14 -0
- package/dist/carousel/layout/presets/spotlight.d.ts +15 -0
- package/dist/carousel/layout/presets/spotlight.js +21 -0
- package/dist/carousel/layout/presets/spotlight.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/spotlight.schema.js +11 -0
- package/dist/carousel/layout/presets/staircase.d.ts +33 -0
- package/dist/carousel/layout/presets/staircase.js +50 -0
- package/dist/carousel/layout/presets/staircase.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/staircase.schema.js +17 -0
- package/dist/carousel/layout/presets/superFlow.d.ts +20 -0
- package/dist/carousel/layout/presets/superFlow.js +45 -0
- package/dist/carousel/layout/presets/superFlow.schema.d.ts +1 -0
- package/dist/carousel/layout/presets/superFlow.schema.js +12 -0
- package/dist/carousel/layout/presets/wave.d.ts +19 -0
- package/dist/carousel/layout/presets/wave.js +23 -0
- package/dist/carousel/layout/presets/wave.schema.d.ts +2 -0
- package/dist/carousel/layout/presets/wave.schema.js +8 -0
- package/dist/carousel/layout/types.d.ts +103 -0
- package/dist/carousel/layout/types.js +91 -0
- package/dist/carousel/parts/Panel.d.ts +19 -0
- package/dist/carousel/parts/Panel.js +53 -0
- package/dist/carousel/parts/Parallax.d.ts +22 -0
- package/dist/carousel/parts/Parallax.js +18 -0
- package/dist/carousel/parts/Root.d.ts +41 -0
- package/dist/carousel/parts/Root.js +115 -0
- package/dist/carousel/parts/Shader.d.ts +32 -0
- package/dist/carousel/parts/Shader.js +63 -0
- package/dist/carousel/parts/Slot.d.ts +59 -0
- package/dist/carousel/parts/Slot.js +93 -0
- package/dist/carousel/parts/Track.d.ts +21 -0
- package/dist/carousel/parts/Track.js +26 -0
- package/dist/carousel/parts/Viewport.d.ts +33 -0
- package/dist/carousel/parts/Viewport.js +53 -0
- package/dist/carousel/parts/Window.d.ts +28 -0
- package/dist/carousel/parts/Window.js +53 -0
- package/dist/carousel/parts/index.d.ts +34 -0
- package/dist/carousel/parts/index.js +26 -0
- package/dist/carousel/physics/landing.d.ts +16 -0
- package/dist/carousel/physics/landing.js +25 -0
- package/dist/carousel/physics/policies.d.ts +43 -0
- package/dist/carousel/physics/policies.js +60 -0
- package/dist/carousel/physics/policies.schema.d.ts +9 -0
- package/dist/carousel/physics/policies.schema.js +41 -0
- package/dist/carousel/physics/rubberband.d.ts +10 -0
- package/dist/carousel/physics/rubberband.js +18 -0
- package/dist/carousel/physics/types.d.ts +52 -0
- package/dist/carousel/physics/types.js +1 -0
- package/dist/carousel/slot/context.d.ts +42 -0
- package/dist/carousel/slot/context.js +69 -0
- package/dist/carousel/slot/useSlotWriter.d.ts +65 -0
- package/dist/carousel/slot/useSlotWriter.js +163 -0
- package/dist/carousel/types.d.ts +25 -0
- package/dist/carousel/types.js +20 -0
- package/dist/gpu/surface.d.ts +46 -0
- package/dist/gpu/surface.js +127 -0
- package/dist/grid/Grid.schema.d.ts +6 -0
- package/dist/grid/Grid.schema.js +66 -0
- package/dist/grid/Panel.d.ts +19 -0
- package/dist/grid/Panel.js +32 -0
- package/dist/grid/Root.d.ts +17 -0
- package/dist/grid/Root.js +14 -0
- package/dist/grid/Viewport.d.ts +49 -0
- package/dist/grid/Viewport.js +479 -0
- package/dist/grid/context.d.ts +26 -0
- package/dist/grid/context.js +21 -0
- package/dist/grid/defaults.d.ts +21 -0
- package/dist/grid/defaults.js +23 -0
- package/dist/grid/index.d.ts +17 -0
- package/dist/grid/index.js +10 -0
- package/dist/grid/math.d.ts +107 -0
- package/dist/grid/math.js +265 -0
- package/dist/grid/modifiers.d.ts +25 -0
- package/dist/grid/modifiers.js +35 -0
- package/dist/grid/open.d.ts +66 -0
- package/dist/grid/open.js +121 -0
- package/dist/grid/open.schema.d.ts +3 -0
- package/dist/grid/open.schema.js +31 -0
- package/dist/grid/pose.d.ts +35 -0
- package/dist/grid/pose.js +41 -0
- package/dist/grid/types.d.ts +50 -0
- package/dist/grid/types.js +1 -0
- package/dist/grid/useGridEngine.d.ts +126 -0
- package/dist/grid/useGridEngine.js +270 -0
- package/dist/index.d.ts +697 -0
- package/dist/index.js +373 -0
- package/dist/schema/backgrounds.d.ts +2 -0
- package/dist/schema/backgrounds.js +187 -0
- package/dist/schema/buttons.d.ts +3 -0
- package/dist/schema/buttons.js +158 -0
- package/dist/schema/carousel.d.ts +14 -0
- package/dist/schema/carousel.js +73 -0
- package/dist/schema/common.d.ts +41 -0
- package/dist/schema/common.js +109 -0
- package/dist/schema/define.d.ts +29 -0
- package/dist/schema/define.js +27 -0
- package/dist/schema/grid.d.ts +5 -0
- package/dist/schema/grid.js +12 -0
- package/dist/schema/helpers.d.ts +34 -0
- package/dist/schema/helpers.js +183 -0
- package/dist/schema/index.d.ts +41 -0
- package/dist/schema/index.js +61 -0
- package/dist/schema/scroll.d.ts +2 -0
- package/dist/schema/scroll.js +16 -0
- package/dist/schema/text.d.ts +3 -0
- package/dist/schema/text.js +150 -0
- package/dist/schema/textParts.d.ts +4 -0
- package/dist/schema/textParts.js +8 -0
- package/dist/schema/ticker.d.ts +3 -0
- package/dist/schema/ticker.js +3 -0
- package/dist/schema/transitions.d.ts +5 -0
- package/dist/schema/transitions.js +96 -0
- package/dist/schema/types.d.ts +182 -0
- package/dist/schema/types.js +27 -0
- package/dist/sections/about/About.d.ts +54 -0
- package/dist/sections/about/About.js +56 -0
- package/dist/sections/about/index.d.ts +16 -0
- package/dist/sections/about/index.js +10 -0
- package/dist/sections/about/layouts.d.ts +3 -0
- package/dist/sections/about/layouts.js +3 -0
- package/dist/sections/contact/Contact.d.ts +60 -0
- package/dist/sections/contact/Contact.js +51 -0
- package/dist/sections/contact/index.d.ts +17 -0
- package/dist/sections/contact/index.js +10 -0
- package/dist/sections/contact/layouts.d.ts +3 -0
- package/dist/sections/contact/layouts.js +3 -0
- package/dist/sections/hero/Hero.d.ts +58 -0
- package/dist/sections/hero/Hero.js +55 -0
- package/dist/sections/hero/index.d.ts +20 -0
- package/dist/sections/hero/index.js +14 -0
- package/dist/sections/hero/layouts.d.ts +3 -0
- package/dist/sections/hero/layouts.js +3 -0
- package/dist/sections/services/Services.d.ts +55 -0
- package/dist/sections/services/Services.js +38 -0
- package/dist/sections/services/index.d.ts +15 -0
- package/dist/sections/services/index.js +10 -0
- package/dist/sections/services/layouts.d.ts +3 -0
- package/dist/sections/services/layouts.js +3 -0
- package/dist/sections/shared/Heading.d.ts +15 -0
- package/dist/sections/shared/Heading.js +13 -0
- package/dist/sections/shared/MediaView.d.ts +6 -0
- package/dist/sections/shared/MediaView.js +12 -0
- package/dist/sections/shared/attrs.d.ts +7 -0
- package/dist/sections/shared/attrs.js +21 -0
- package/dist/sections/shared/context.d.ts +66 -0
- package/dist/sections/shared/context.js +57 -0
- package/dist/sections/shared/reveal.d.ts +55 -0
- package/dist/sections/shared/reveal.js +59 -0
- package/dist/sections/shared/stat.d.ts +18 -0
- package/dist/sections/shared/stat.js +47 -0
- package/dist/sections/shared/types.d.ts +46 -0
- package/dist/sections/shared/types.js +1 -0
- package/dist/text/Text.d.ts +36 -0
- package/dist/text/Text.js +246 -0
- package/dist/text/base.d.ts +1 -0
- package/dist/text/base.js +86 -0
- package/dist/text/cycle/WordCycle.d.ts +40 -0
- package/dist/text/cycle/WordCycle.js +179 -0
- package/dist/text/cycle/WordCycle.schema.d.ts +1 -0
- package/dist/text/cycle/WordCycle.schema.js +28 -0
- package/dist/text/cycle/css.d.ts +5 -0
- package/dist/text/cycle/css.js +158 -0
- package/dist/text/effects/decode/decodeBinary.d.ts +5 -0
- package/dist/text/effects/decode/decodeBinary.js +5 -0
- package/dist/text/effects/decode/decodeBinary.schema.d.ts +1 -0
- package/dist/text/effects/decode/decodeBinary.schema.js +11 -0
- package/dist/text/effects/decode/decodeHover.d.ts +8 -0
- package/dist/text/effects/decode/decodeHover.js +8 -0
- package/dist/text/effects/decode/decodeHover.schema.d.ts +1 -0
- package/dist/text/effects/decode/decodeHover.schema.js +12 -0
- package/dist/text/effects/decode/decodeReveal.d.ts +11 -0
- package/dist/text/effects/decode/decodeReveal.js +9 -0
- package/dist/text/effects/decode/decodeReveal.schema.d.ts +1 -0
- package/dist/text/effects/decode/decodeReveal.schema.js +13 -0
- package/dist/text/effects/decode/frame.d.ts +10 -0
- package/dist/text/effects/decode/frame.js +40 -0
- package/dist/text/effects/decode/kit.d.ts +23 -0
- package/dist/text/effects/decode/kit.js +34 -0
- package/dist/text/effects/decode/play.d.ts +13 -0
- package/dist/text/effects/decode/play.js +79 -0
- package/dist/text/effects/enter/enterAssemble.d.ts +12 -0
- package/dist/text/effects/enter/enterAssemble.js +15 -0
- package/dist/text/effects/enter/enterAssemble.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterAssemble.schema.js +15 -0
- package/dist/text/effects/enter/enterBlur.d.ts +8 -0
- package/dist/text/effects/enter/enterBlur.js +13 -0
- package/dist/text/effects/enter/enterBlur.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterBlur.schema.js +13 -0
- package/dist/text/effects/enter/enterBounce.d.ts +8 -0
- package/dist/text/effects/enter/enterBounce.js +8 -0
- package/dist/text/effects/enter/enterBounce.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterBounce.schema.js +13 -0
- package/dist/text/effects/enter/enterBox.d.ts +8 -0
- package/dist/text/effects/enter/enterBox.js +23 -0
- package/dist/text/effects/enter/enterBox.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterBox.schema.js +11 -0
- package/dist/text/effects/enter/enterFlip.d.ts +10 -0
- package/dist/text/effects/enter/enterFlip.js +20 -0
- package/dist/text/effects/enter/enterFlip.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterFlip.schema.js +14 -0
- package/dist/text/effects/enter/enterMask.d.ts +5 -0
- package/dist/text/effects/enter/enterMask.js +15 -0
- package/dist/text/effects/enter/enterMask.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterMask.schema.js +11 -0
- package/dist/text/effects/enter/enterPop.d.ts +5 -0
- package/dist/text/effects/enter/enterPop.js +8 -0
- package/dist/text/effects/enter/enterPop.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterPop.schema.js +12 -0
- package/dist/text/effects/enter/enterRandom.d.ts +8 -0
- package/dist/text/effects/enter/enterRandom.js +9 -0
- package/dist/text/effects/enter/enterRandom.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterRandom.schema.js +12 -0
- package/dist/text/effects/enter/enterRedact.d.ts +8 -0
- package/dist/text/effects/enter/enterRedact.js +22 -0
- package/dist/text/effects/enter/enterRedact.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterRedact.schema.js +13 -0
- package/dist/text/effects/enter/enterRise.d.ts +8 -0
- package/dist/text/effects/enter/enterRise.js +8 -0
- package/dist/text/effects/enter/enterRise.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterRise.schema.js +13 -0
- package/dist/text/effects/enter/enterSkeleton.d.ts +8 -0
- package/dist/text/effects/enter/enterSkeleton.js +24 -0
- package/dist/text/effects/enter/enterSkeleton.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterSkeleton.schema.js +13 -0
- package/dist/text/effects/enter/enterStamp.d.ts +8 -0
- package/dist/text/effects/enter/enterStamp.js +15 -0
- package/dist/text/effects/enter/enterStamp.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterStamp.schema.js +13 -0
- package/dist/text/effects/enter/enterTracking.d.ts +8 -0
- package/dist/text/effects/enter/enterTracking.js +11 -0
- package/dist/text/effects/enter/enterTracking.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterTracking.schema.js +11 -0
- package/dist/text/effects/enter/enterWords.d.ts +5 -0
- package/dist/text/effects/enter/enterWords.js +9 -0
- package/dist/text/effects/enter/enterWords.schema.d.ts +1 -0
- package/dist/text/effects/enter/enterWords.schema.js +12 -0
- package/dist/text/effects/enter/kit.d.ts +33 -0
- package/dist/text/effects/enter/kit.js +19 -0
- package/dist/text/effects/ink/inkAurora.d.ts +11 -0
- package/dist/text/effects/ink/inkAurora.js +41 -0
- package/dist/text/effects/ink/inkAurora.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkAurora.schema.js +12 -0
- package/dist/text/effects/ink/inkColourful.d.ts +9 -0
- package/dist/text/effects/ink/inkColourful.js +17 -0
- package/dist/text/effects/ink/inkColourful.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkColourful.schema.js +10 -0
- package/dist/text/effects/ink/inkDots.d.ts +9 -0
- package/dist/text/effects/ink/inkDots.js +13 -0
- package/dist/text/effects/ink/inkDots.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkDots.schema.js +10 -0
- package/dist/text/effects/ink/inkFoil.d.ts +7 -0
- package/dist/text/effects/ink/inkFoil.js +26 -0
- package/dist/text/effects/ink/inkFoil.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkFoil.schema.js +9 -0
- package/dist/text/effects/ink/inkGradient.d.ts +9 -0
- package/dist/text/effects/ink/inkGradient.js +21 -0
- package/dist/text/effects/ink/inkGradient.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkGradient.schema.js +11 -0
- package/dist/text/effects/ink/inkGrain.d.ts +7 -0
- package/dist/text/effects/ink/inkGrain.js +16 -0
- package/dist/text/effects/ink/inkGrain.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkGrain.schema.js +10 -0
- package/dist/text/effects/ink/inkImage.d.ts +9 -0
- package/dist/text/effects/ink/inkImage.js +21 -0
- package/dist/text/effects/ink/inkImage.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkImage.schema.js +10 -0
- package/dist/text/effects/ink/inkLineShadow.d.ts +11 -0
- package/dist/text/effects/ink/inkLineShadow.js +32 -0
- package/dist/text/effects/ink/inkLineShadow.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkLineShadow.schema.js +11 -0
- package/dist/text/effects/ink/inkLines.d.ts +13 -0
- package/dist/text/effects/ink/inkLines.js +14 -0
- package/dist/text/effects/ink/inkLines.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkLines.schema.js +13 -0
- package/dist/text/effects/ink/inkNeon.d.ts +9 -0
- package/dist/text/effects/ink/inkNeon.js +26 -0
- package/dist/text/effects/ink/inkNeon.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkNeon.schema.js +10 -0
- package/dist/text/effects/ink/inkProgress.d.ts +9 -0
- package/dist/text/effects/ink/inkProgress.js +25 -0
- package/dist/text/effects/ink/inkProgress.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkProgress.schema.js +10 -0
- package/dist/text/effects/ink/inkShiny.d.ts +13 -0
- package/dist/text/effects/ink/inkShiny.js +27 -0
- package/dist/text/effects/ink/inkShiny.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkShiny.schema.js +12 -0
- package/dist/text/effects/ink/inkSparkles.d.ts +11 -0
- package/dist/text/effects/ink/inkSparkles.js +39 -0
- package/dist/text/effects/ink/inkSparkles.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkSparkles.schema.js +12 -0
- package/dist/text/effects/ink/inkSweep.d.ts +13 -0
- package/dist/text/effects/ink/inkSweep.js +33 -0
- package/dist/text/effects/ink/inkSweep.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkSweep.schema.js +13 -0
- package/dist/text/effects/ink/inkVideo.d.ts +11 -0
- package/dist/text/effects/ink/inkVideo.js +23 -0
- package/dist/text/effects/ink/inkVideo.schema.d.ts +1 -0
- package/dist/text/effects/ink/inkVideo.schema.js +11 -0
- package/dist/text/effects/ink/kit.d.ts +26 -0
- package/dist/text/effects/ink/kit.js +47 -0
- package/dist/text/effects/ink/lines.d.ts +8 -0
- package/dist/text/effects/ink/lines.js +123 -0
- package/dist/text/effects/kit.d.ts +115 -0
- package/dist/text/effects/kit.js +144 -0
- package/dist/text/effects/pointer/hit.d.ts +6 -0
- package/dist/text/effects/pointer/hit.js +34 -0
- package/dist/text/effects/pointer/kit.d.ts +15 -0
- package/dist/text/effects/pointer/kit.js +22 -0
- package/dist/text/effects/pointer/near.d.ts +18 -0
- package/dist/text/effects/pointer/near.js +89 -0
- package/dist/text/effects/pointer/pointerJello.d.ts +12 -0
- package/dist/text/effects/pointer/pointerJello.js +30 -0
- package/dist/text/effects/pointer/pointerJello.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerJello.schema.js +10 -0
- package/dist/text/effects/pointer/pointerPressure.d.ts +14 -0
- package/dist/text/effects/pointer/pointerPressure.js +38 -0
- package/dist/text/effects/pointer/pointerPressure.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerPressure.schema.js +11 -0
- package/dist/text/effects/pointer/pointerProximity.d.ts +18 -0
- package/dist/text/effects/pointer/pointerProximity.js +40 -0
- package/dist/text/effects/pointer/pointerProximity.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerProximity.schema.js +18 -0
- package/dist/text/effects/pointer/pointerRipple.d.ts +14 -0
- package/dist/text/effects/pointer/pointerRipple.js +63 -0
- package/dist/text/effects/pointer/pointerRipple.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerRipple.schema.js +11 -0
- package/dist/text/effects/pointer/pointerRoll.d.ts +9 -0
- package/dist/text/effects/pointer/pointerRoll.js +27 -0
- package/dist/text/effects/pointer/pointerRoll.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerRoll.schema.js +10 -0
- package/dist/text/effects/pointer/pointerShadow.d.ts +11 -0
- package/dist/text/effects/pointer/pointerShadow.js +33 -0
- package/dist/text/effects/pointer/pointerShadow.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerShadow.schema.js +11 -0
- package/dist/text/effects/pointer/pointerSpotlight.d.ts +11 -0
- package/dist/text/effects/pointer/pointerSpotlight.js +33 -0
- package/dist/text/effects/pointer/pointerSpotlight.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerSpotlight.schema.js +11 -0
- package/dist/text/effects/pointer/pointerTilt.d.ts +9 -0
- package/dist/text/effects/pointer/pointerTilt.js +21 -0
- package/dist/text/effects/pointer/pointerTilt.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerTilt.schema.js +10 -0
- package/dist/text/effects/pointer/pointerTrail.d.ts +18 -0
- package/dist/text/effects/pointer/pointerTrail.js +83 -0
- package/dist/text/effects/pointer/pointerTrail.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerTrail.schema.js +13 -0
- package/dist/text/effects/pointer/pointerWave.d.ts +11 -0
- package/dist/text/effects/pointer/pointerWave.js +23 -0
- package/dist/text/effects/pointer/pointerWave.schema.d.ts +1 -0
- package/dist/text/effects/pointer/pointerWave.schema.js +11 -0
- package/dist/text/effects/scrub/scrubCylinder.d.ts +11 -0
- package/dist/text/effects/scrub/scrubCylinder.js +24 -0
- package/dist/text/effects/scrub/scrubCylinder.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubCylinder.schema.js +11 -0
- package/dist/text/effects/scrub/scrubFloat.d.ts +9 -0
- package/dist/text/effects/scrub/scrubFloat.js +14 -0
- package/dist/text/effects/scrub/scrubFloat.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubFloat.schema.js +10 -0
- package/dist/text/effects/scrub/scrubHighlight.d.ts +11 -0
- package/dist/text/effects/scrub/scrubHighlight.js +22 -0
- package/dist/text/effects/scrub/scrubHighlight.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubHighlight.schema.js +11 -0
- package/dist/text/effects/scrub/scrubMarker.d.ts +13 -0
- package/dist/text/effects/scrub/scrubMarker.js +29 -0
- package/dist/text/effects/scrub/scrubMarker.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubMarker.schema.js +12 -0
- package/dist/text/effects/scrub/scrubParallax.d.ts +7 -0
- package/dist/text/effects/scrub/scrubParallax.js +15 -0
- package/dist/text/effects/scrub/scrubParallax.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubParallax.schema.js +9 -0
- package/dist/text/effects/scrub/scrubPin.d.ts +11 -0
- package/dist/text/effects/scrub/scrubPin.js +39 -0
- package/dist/text/effects/scrub/scrubPin.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubPin.schema.js +11 -0
- package/dist/text/effects/scrub/scrubSkew.d.ts +9 -0
- package/dist/text/effects/scrub/scrubSkew.js +37 -0
- package/dist/text/effects/scrub/scrubSkew.schema.d.ts +1 -0
- package/dist/text/effects/scrub/scrubSkew.schema.js +10 -0
- package/dist/text/effects/solid/fall.d.ts +26 -0
- package/dist/text/effects/solid/fall.js +91 -0
- package/dist/text/effects/solid/particles.d.ts +7 -0
- package/dist/text/effects/solid/particles.js +137 -0
- package/dist/text/effects/solid/solidEcho.d.ts +15 -0
- package/dist/text/effects/solid/solidEcho.js +44 -0
- package/dist/text/effects/solid/solidEcho.schema.d.ts +1 -0
- package/dist/text/effects/solid/solidEcho.schema.js +13 -0
- package/dist/text/effects/solid/solidFall.d.ts +16 -0
- package/dist/text/effects/solid/solidFall.js +23 -0
- package/dist/text/effects/solid/solidFall.schema.d.ts +1 -0
- package/dist/text/effects/solid/solidFall.schema.js +11 -0
- package/dist/text/effects/solid/solidLayers.d.ts +13 -0
- package/dist/text/effects/solid/solidLayers.js +41 -0
- package/dist/text/effects/solid/solidLayers.schema.d.ts +1 -0
- package/dist/text/effects/solid/solidLayers.schema.js +12 -0
- package/dist/text/effects/solid/solidParticles.d.ts +12 -0
- package/dist/text/effects/solid/solidParticles.js +23 -0
- package/dist/text/effects/solid/solidParticles.schema.d.ts +1 -0
- package/dist/text/effects/solid/solidParticles.schema.js +10 -0
- package/dist/text/effects/solid/solidShadow.d.ts +13 -0
- package/dist/text/effects/solid/solidShadow.js +39 -0
- package/dist/text/effects/solid/solidShadow.schema.d.ts +1 -0
- package/dist/text/effects/solid/solidShadow.schema.js +12 -0
- package/dist/text/effects/stroke/strokeComic.d.ts +13 -0
- package/dist/text/effects/stroke/strokeComic.js +26 -0
- package/dist/text/effects/stroke/strokeComic.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeComic.schema.js +12 -0
- package/dist/text/effects/stroke/strokeDraw.d.ts +13 -0
- package/dist/text/effects/stroke/strokeDraw.js +38 -0
- package/dist/text/effects/stroke/strokeDraw.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeDraw.schema.js +12 -0
- package/dist/text/effects/stroke/strokeFill.d.ts +11 -0
- package/dist/text/effects/stroke/strokeFill.js +31 -0
- package/dist/text/effects/stroke/strokeFill.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeFill.schema.js +11 -0
- package/dist/text/effects/stroke/strokeGradient.d.ts +13 -0
- package/dist/text/effects/stroke/strokeGradient.js +35 -0
- package/dist/text/effects/stroke/strokeGradient.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeGradient.schema.js +12 -0
- package/dist/text/effects/stroke/strokeHandwrite.d.ts +17 -0
- package/dist/text/effects/stroke/strokeHandwrite.js +47 -0
- package/dist/text/effects/stroke/strokeHandwrite.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeHandwrite.schema.js +14 -0
- package/dist/text/effects/stroke/strokeNote.d.ts +18 -0
- package/dist/text/effects/stroke/strokeNote.js +79 -0
- package/dist/text/effects/stroke/strokeNote.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeNote.schema.js +15 -0
- package/dist/text/effects/stroke/strokeUnderline.d.ts +16 -0
- package/dist/text/effects/stroke/strokeUnderline.js +56 -0
- package/dist/text/effects/stroke/strokeUnderline.schema.d.ts +1 -0
- package/dist/text/effects/stroke/strokeUnderline.schema.js +11 -0
- package/dist/text/effects/warp/ascii.d.ts +9 -0
- package/dist/text/effects/warp/ascii.js +83 -0
- package/dist/text/effects/warp/fuzz.d.ts +8 -0
- package/dist/text/effects/warp/fuzz.js +62 -0
- package/dist/text/effects/warp/kit.d.ts +14 -0
- package/dist/text/effects/warp/kit.js +14 -0
- package/dist/text/effects/warp/shader.d.ts +7 -0
- package/dist/text/effects/warp/shader.js +177 -0
- package/dist/text/effects/warp/warpAscii.d.ts +14 -0
- package/dist/text/effects/warp/warpAscii.js +22 -0
- package/dist/text/effects/warp/warpAscii.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpAscii.schema.js +11 -0
- package/dist/text/effects/warp/warpFuzz.d.ts +14 -0
- package/dist/text/effects/warp/warpFuzz.js +32 -0
- package/dist/text/effects/warp/warpFuzz.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpFuzz.schema.js +11 -0
- package/dist/text/effects/warp/warpGlitch.d.ts +13 -0
- package/dist/text/effects/warp/warpGlitch.js +59 -0
- package/dist/text/effects/warp/warpGlitch.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpGlitch.schema.js +12 -0
- package/dist/text/effects/warp/warpGoo.d.ts +11 -0
- package/dist/text/effects/warp/warpGoo.js +46 -0
- package/dist/text/effects/warp/warpGoo.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpGoo.schema.js +13 -0
- package/dist/text/effects/warp/warpRgb.d.ts +11 -0
- package/dist/text/effects/warp/warpRgb.js +32 -0
- package/dist/text/effects/warp/warpRgb.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpRgb.schema.js +11 -0
- package/dist/text/effects/warp/warpShader.d.ts +12 -0
- package/dist/text/effects/warp/warpShader.js +27 -0
- package/dist/text/effects/warp/warpShader.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpShader.schema.js +10 -0
- package/dist/text/effects/warp/warpSquiggle.d.ts +12 -0
- package/dist/text/effects/warp/warpSquiggle.js +47 -0
- package/dist/text/effects/warp/warpSquiggle.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpSquiggle.schema.js +10 -0
- package/dist/text/effects/warp/warpWave.d.ts +14 -0
- package/dist/text/effects/warp/warpWave.js +36 -0
- package/dist/text/effects/warp/warpWave.schema.d.ts +1 -0
- package/dist/text/effects/warp/warpWave.schema.js +12 -0
- package/dist/text/number/NumberRoll.d.ts +49 -0
- package/dist/text/number/NumberRoll.js +198 -0
- package/dist/text/number/NumberRoll.schema.d.ts +1 -0
- package/dist/text/number/NumberRoll.schema.js +24 -0
- package/dist/text/number/css.d.ts +6 -0
- package/dist/text/number/css.js +38 -0
- package/dist/text/number/format.d.ts +28 -0
- package/dist/text/number/format.js +66 -0
- package/dist/text/order.d.ts +8 -0
- package/dist/text/order.js +35 -0
- package/dist/text/path/TextPath.d.ts +38 -0
- package/dist/text/path/TextPath.js +116 -0
- package/dist/text/registry.d.ts +4 -0
- package/dist/text/registry.js +87 -0
- package/dist/text/runtime/attachPointer.d.ts +6 -0
- package/dist/text/runtime/attachPointer.js +48 -0
- package/dist/text/runtime/canvasText.d.ts +45 -0
- package/dist/text/runtime/canvasText.js +108 -0
- package/dist/text/runtime/fit.d.ts +8 -0
- package/dist/text/runtime/fit.js +32 -0
- package/dist/text/runtime/loops.d.ts +8 -0
- package/dist/text/runtime/loops.js +27 -0
- package/dist/text/runtime/onScreen.d.ts +6 -0
- package/dist/text/runtime/onScreen.js +20 -0
- package/dist/text/runtime/paint.d.ts +5 -0
- package/dist/text/runtime/paint.js +25 -0
- package/dist/text/runtime/scrub.d.ts +8 -0
- package/dist/text/runtime/scrub.js +81 -0
- package/dist/text/runtime/slots.d.ts +9 -0
- package/dist/text/runtime/slots.js +4 -0
- package/dist/text/runtime/tier.d.ts +2 -0
- package/dist/text/runtime/tier.js +11 -0
- package/dist/text/runtime/useOnScreen.d.ts +6 -0
- package/dist/text/runtime/useOnScreen.js +42 -0
- package/dist/text/runtime/usePauseLoops.d.ts +13 -0
- package/dist/text/runtime/usePauseLoops.js +20 -0
- package/dist/text/runtime/useTextPointer.d.ts +6 -0
- package/dist/text/runtime/useTextPointer.js +15 -0
- package/dist/text/split.d.ts +22 -0
- package/dist/text/split.js +84 -0
- package/dist/text/three/Text3D.d.ts +34 -0
- package/dist/text/three/Text3D.js +158 -0
- package/dist/text/type/Typewriter.d.ts +42 -0
- package/dist/text/type/Typewriter.js +107 -0
- package/dist/text/type/Typewriter.schema.d.ts +1 -0
- package/dist/text/type/Typewriter.schema.js +33 -0
- package/dist/text/type/css.d.ts +9 -0
- package/dist/text/type/css.js +66 -0
- package/dist/text/type/timeline.d.ts +24 -0
- package/dist/text/type/timeline.js +41 -0
- package/dist/text/types.d.ts +142 -0
- package/dist/text/types.js +5 -0
- package/dist/three.d.ts +16 -0
- package/dist/three.js +17 -0
- package/dist/ticker/Ticker.d.ts +62 -0
- package/dist/ticker/Ticker.js +226 -0
- package/dist/ticker/Ticker.schema.d.ts +9 -0
- package/dist/ticker/Ticker.schema.js +31 -0
- package/dist/ticker/defaults.d.ts +14 -0
- package/dist/ticker/defaults.js +7 -0
- package/dist/ticker/math.d.ts +27 -0
- package/dist/ticker/math.js +46 -0
- package/dist/transitions/effects/css/blinds.schema.d.ts +1 -0
- package/dist/transitions/effects/css/blinds.schema.js +11 -0
- package/dist/transitions/effects/css/blurFade.schema.d.ts +1 -0
- package/dist/transitions/effects/css/blurFade.schema.js +10 -0
- package/dist/transitions/effects/css/blurSharp.d.ts +11 -0
- package/dist/transitions/effects/css/blurSharp.js +21 -0
- package/dist/transitions/effects/css/blurSharp.schema.d.ts +1 -0
- package/dist/transitions/effects/css/blurSharp.schema.js +9 -0
- package/dist/transitions/effects/css/colorBlock.d.ts +9 -0
- package/dist/transitions/effects/css/colorBlock.js +22 -0
- package/dist/transitions/effects/css/colorBlock.schema.d.ts +1 -0
- package/dist/transitions/effects/css/colorBlock.schema.js +10 -0
- package/dist/transitions/effects/css/columnWave.schema.d.ts +1 -0
- package/dist/transitions/effects/css/columnWave.schema.js +11 -0
- package/dist/transitions/effects/css/diagonal.d.ts +9 -0
- package/dist/transitions/effects/css/diagonal.js +17 -0
- package/dist/transitions/effects/css/diagonal.schema.d.ts +1 -0
- package/dist/transitions/effects/css/diagonal.schema.js +10 -0
- package/dist/transitions/effects/css/fadeUp.schema.d.ts +1 -0
- package/dist/transitions/effects/css/fadeUp.schema.js +10 -0
- package/dist/transitions/effects/css/gooey.schema.d.ts +1 -0
- package/dist/transitions/effects/css/gooey.schema.js +11 -0
- package/dist/transitions/effects/css/gradientMask.d.ts +10 -0
- package/dist/transitions/effects/css/gradientMask.js +17 -0
- package/dist/transitions/effects/css/gradientMask.schema.d.ts +1 -0
- package/dist/transitions/effects/css/gradientMask.schema.js +10 -0
- package/dist/transitions/effects/css/ink.schema.d.ts +1 -0
- package/dist/transitions/effects/css/ink.schema.js +21 -0
- package/dist/transitions/effects/css/iris.d.ts +13 -0
- package/dist/transitions/effects/css/iris.js +23 -0
- package/dist/transitions/effects/css/iris.schema.d.ts +1 -0
- package/dist/transitions/effects/css/iris.schema.js +9 -0
- package/dist/transitions/effects/css/kit.d.ts +39 -0
- package/dist/transitions/effects/css/kit.js +57 -0
- package/dist/transitions/effects/css/paint.d.ts +46 -0
- package/dist/transitions/effects/css/paint.js +160 -0
- package/dist/transitions/effects/css/pixelGrid.d.ts +21 -0
- package/dist/transitions/effects/css/pixelGrid.js +45 -0
- package/dist/transitions/effects/css/pixelGrid.schema.d.ts +1 -0
- package/dist/transitions/effects/css/pixelGrid.schema.js +13 -0
- package/dist/transitions/effects/css/randomGrid.schema.d.ts +1 -0
- package/dist/transitions/effects/css/randomGrid.schema.js +12 -0
- package/dist/transitions/effects/css/reveals.d.ts +23 -0
- package/dist/transitions/effects/css/reveals.js +47 -0
- package/dist/transitions/effects/css/shapes.d.ts +49 -0
- package/dist/transitions/effects/css/shapes.js +139 -0
- package/dist/transitions/effects/css/shutters.d.ts +13 -0
- package/dist/transitions/effects/css/shutters.js +24 -0
- package/dist/transitions/effects/css/shutters.schema.d.ts +1 -0
- package/dist/transitions/effects/css/shutters.schema.js +10 -0
- package/dist/transitions/effects/css/slicer.d.ts +14 -0
- package/dist/transitions/effects/css/slicer.js +47 -0
- package/dist/transitions/effects/css/slicer.schema.d.ts +1 -0
- package/dist/transitions/effects/css/slicer.schema.js +10 -0
- package/dist/transitions/effects/css/splitCurtain.d.ts +13 -0
- package/dist/transitions/effects/css/splitCurtain.js +39 -0
- package/dist/transitions/effects/css/splitCurtain.schema.d.ts +1 -0
- package/dist/transitions/effects/css/splitCurtain.schema.js +10 -0
- package/dist/transitions/effects/css/wipe.d.ts +8 -0
- package/dist/transitions/effects/css/wipe.js +16 -0
- package/dist/transitions/effects/css/wipe.schema.d.ts +1 -0
- package/dist/transitions/effects/css/wipe.schema.js +9 -0
- package/dist/transitions/effects/css/zoomOut.schema.d.ts +1 -0
- package/dist/transitions/effects/css/zoomOut.schema.js +9 -0
- package/dist/transitions/effects/shader/chromaticShift.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/chromaticShift.schema.js +12 -0
- package/dist/transitions/effects/shader/collection.d.ts +53 -0
- package/dist/transitions/effects/shader/collection.js +143 -0
- package/dist/transitions/effects/shader/crossZoom.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/crossZoom.schema.js +11 -0
- package/dist/transitions/effects/shader/directionalWarp.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/directionalWarp.schema.js +12 -0
- package/dist/transitions/effects/shader/displacement.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/displacement.schema.js +13 -0
- package/dist/transitions/effects/shader/dissolves.d.ts +20 -0
- package/dist/transitions/effects/shader/dissolves.js +52 -0
- package/dist/transitions/effects/shader/dreamy.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/dreamy.schema.js +12 -0
- package/dist/transitions/effects/shader/gridFlip.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/gridFlip.schema.js +13 -0
- package/dist/transitions/effects/shader/kit.d.ts +32 -0
- package/dist/transitions/effects/shader/kit.js +60 -0
- package/dist/transitions/effects/shader/liquidMorph.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/liquidMorph.schema.js +12 -0
- package/dist/transitions/effects/shader/morph.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/morph.schema.js +11 -0
- package/dist/transitions/effects/shader/noiseBurn.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/noiseBurn.schema.js +13 -0
- package/dist/transitions/effects/shader/pageCurl.d.ts +19 -0
- package/dist/transitions/effects/shader/pageCurl.js +82 -0
- package/dist/transitions/effects/shader/pageCurl.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/pageCurl.schema.js +14 -0
- package/dist/transitions/effects/shader/pixelDissolve.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/pixelDissolve.schema.js +11 -0
- package/dist/transitions/effects/shader/ripple.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/ripple.schema.js +13 -0
- package/dist/transitions/effects/shader/scrollDistort.d.ts +9 -0
- package/dist/transitions/effects/shader/scrollDistort.js +43 -0
- package/dist/transitions/effects/shader/stretchWarp.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/stretchWarp.schema.js +13 -0
- package/dist/transitions/effects/shader/swirl.schema.d.ts +1 -0
- package/dist/transitions/effects/shader/swirl.schema.js +11 -0
- package/dist/transitions/effects/shader/warps.d.ts +60 -0
- package/dist/transitions/effects/shader/warps.js +141 -0
- package/dist/transitions/effects/stage/cardStack.d.ts +26 -0
- package/dist/transitions/effects/stage/cardStack.js +46 -0
- package/dist/transitions/effects/stage/cardStack.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/cardStack.schema.js +14 -0
- package/dist/transitions/effects/stage/cards.d.ts +22 -0
- package/dist/transitions/effects/stage/cards.js +38 -0
- package/dist/transitions/effects/stage/cards.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/cards.schema.js +13 -0
- package/dist/transitions/effects/stage/creative.d.ts +36 -0
- package/dist/transitions/effects/stage/creative.js +54 -0
- package/dist/transitions/effects/stage/creative.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/creative.schema.js +34 -0
- package/dist/transitions/effects/stage/cube.d.ts +28 -0
- package/dist/transitions/effects/stage/cube.js +49 -0
- package/dist/transitions/effects/stage/cube.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/cube.schema.js +11 -0
- package/dist/transitions/effects/stage/fade.d.ts +11 -0
- package/dist/transitions/effects/stage/fade.js +15 -0
- package/dist/transitions/effects/stage/fade.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/fade.schema.js +9 -0
- package/dist/transitions/effects/stage/flip.d.ts +15 -0
- package/dist/transitions/effects/stage/flip.js +30 -0
- package/dist/transitions/effects/stage/flip.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/flip.schema.js +10 -0
- package/dist/transitions/effects/stage/kit.d.ts +20 -0
- package/dist/transitions/effects/stage/kit.js +52 -0
- package/dist/transitions/effects/stage/push.d.ts +15 -0
- package/dist/transitions/effects/stage/push.js +28 -0
- package/dist/transitions/effects/stage/push.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/push.schema.js +11 -0
- package/dist/transitions/effects/stage/tinder.d.ts +13 -0
- package/dist/transitions/effects/stage/tinder.js +32 -0
- package/dist/transitions/effects/stage/tinder.schema.d.ts +1 -0
- package/dist/transitions/effects/stage/tinder.schema.js +10 -0
- package/dist/transitions/hosts/ShaderStage.d.ts +30 -0
- package/dist/transitions/hosts/ShaderStage.js +268 -0
- package/dist/transitions/hosts/shared.d.ts +27 -0
- package/dist/transitions/hosts/shared.js +59 -0
- package/dist/transitions/progress.d.ts +15 -0
- package/dist/transitions/progress.js +109 -0
- package/dist/transitions/registry.d.ts +5 -0
- package/dist/transitions/registry.js +67 -0
- package/dist/transitions/reveal/Reveal.d.ts +71 -0
- package/dist/transitions/reveal/Reveal.js +154 -0
- package/dist/transitions/reveal/Reveal.schema.d.ts +2 -0
- package/dist/transitions/reveal/Reveal.schema.js +37 -0
- package/dist/transitions/reveal/ScrollDistort.d.ts +26 -0
- package/dist/transitions/reveal/ScrollDistort.js +27 -0
- package/dist/transitions/reveal/inView.d.ts +5 -0
- package/dist/transitions/reveal/inView.js +31 -0
- package/dist/transitions/reveal/index.d.ts +7 -0
- package/dist/transitions/reveal/index.js +11 -0
- package/dist/transitions/scroll/Curtain.d.ts +31 -0
- package/dist/transitions/scroll/Curtain.js +46 -0
- package/dist/transitions/scroll/Curtain.schema.d.ts +2 -0
- package/dist/transitions/scroll/Curtain.schema.js +9 -0
- package/dist/transitions/scroll/PinnedExpand.d.ts +32 -0
- package/dist/transitions/scroll/PinnedExpand.js +67 -0
- package/dist/transitions/scroll/PinnedExpand.schema.d.ts +1 -0
- package/dist/transitions/scroll/PinnedExpand.schema.js +17 -0
- package/dist/transitions/scroll/SplitText.d.ts +39 -0
- package/dist/transitions/scroll/SplitText.js +83 -0
- package/dist/transitions/scroll/SplitText.schema.d.ts +1 -0
- package/dist/transitions/scroll/SplitText.schema.js +26 -0
- package/dist/transitions/scroll/StackCards.d.ts +37 -0
- package/dist/transitions/scroll/StackCards.js +70 -0
- package/dist/transitions/scroll/StackCards.schema.d.ts +1 -0
- package/dist/transitions/scroll/StackCards.schema.js +14 -0
- package/dist/transitions/scroll/TextMaskZoom.d.ts +35 -0
- package/dist/transitions/scroll/TextMaskZoom.js +58 -0
- package/dist/transitions/scroll/TextMaskZoom.schema.d.ts +1 -0
- package/dist/transitions/scroll/TextMaskZoom.schema.js +12 -0
- package/dist/transitions/scroll/css.d.ts +17 -0
- package/dist/transitions/scroll/css.js +192 -0
- package/dist/transitions/scroll/progress.d.ts +14 -0
- package/dist/transitions/scroll/progress.js +31 -0
- package/dist/transitions/scroll/split.d.ts +2 -0
- package/dist/transitions/scroll/split.js +2 -0
- package/dist/transitions/scroll/useScrub.d.ts +31 -0
- package/dist/transitions/scroll/useScrub.js +90 -0
- package/dist/transitions/shader/program.d.ts +56 -0
- package/dist/transitions/shader/program.js +132 -0
- package/dist/transitions/shader/scrollSpeed.d.ts +11 -0
- package/dist/transitions/shader/scrollSpeed.js +76 -0
- package/dist/transitions/shader/textures.d.ts +40 -0
- package/dist/transitions/shader/textures.js +134 -0
- package/dist/transitions/stage.d.ts +25 -0
- package/dist/transitions/stage.js +42 -0
- package/dist/transitions/types.d.ts +97 -0
- package/dist/transitions/types.js +4 -0
- package/guides/README.md +61 -0
- package/guides/about.md +80 -0
- package/guides/backgrounds.md +107 -0
- package/guides/buttons.md +84 -0
- package/guides/contact.md +84 -0
- package/guides/gallery.md +97 -0
- package/guides/hero.md +114 -0
- package/guides/services.md +79 -0
- package/guides/text.md +93 -0
- package/guides/transitions.md +112 -0
- package/package.json +82 -4
- package/styles/about.css +94 -0
- package/styles/base.css +145 -0
- package/styles/button.css +48 -0
- package/styles/contact.css +87 -0
- package/styles/hero.css +108 -0
- package/styles/sections.css +22 -0
- package/styles/services.css +111 -0
- package/theme.css +83 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Running Three.js inside the background runtime. A Three.js effect is an
|
|
3
|
+
// ordinary GpuProgram: the WebGL host makes the context (and hands it back
|
|
4
|
+
// off screen), Three.js renders into it. So the ~16-context budget, pausing,
|
|
5
|
+
// reduced motion and the fallback chain all work the same as for raw WebGL.
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
import * as THREE from "three";
|
|
8
|
+
import { RoomEnvironment } from "three/addons/environments/RoomEnvironment.js";
|
|
9
|
+
import { WebglUnavailable } from "../../runtime/webgl.js";
|
|
10
|
+
/**
|
|
11
|
+
* A GpuProgram that runs a Three.js scene. Three.js r163+ needs WebGL2, so
|
|
12
|
+
* the program asks for it; the host's context attributes (premultiplied
|
|
13
|
+
* alpha, no antialias, low power) are kept.
|
|
14
|
+
*/
|
|
15
|
+
export function threeProgram(build, warmup = 0) {
|
|
16
|
+
return {
|
|
17
|
+
api: "webgl2",
|
|
18
|
+
warmup,
|
|
19
|
+
init(gl, frame, random) {
|
|
20
|
+
if (typeof WebGL2RenderingContext === "undefined" || !(gl instanceof WebGL2RenderingContext)) {
|
|
21
|
+
throw new WebglUnavailable("Three.js needs WebGL2");
|
|
22
|
+
}
|
|
23
|
+
const renderer = new THREE.WebGLRenderer({ canvas: gl.canvas, context: gl, alpha: true, premultipliedAlpha: true });
|
|
24
|
+
renderer.setPixelRatio(1); // the host already sized the canvas in device pixels
|
|
25
|
+
renderer.setSize(frame.width, frame.height, false);
|
|
26
|
+
renderer.setClearColor(0x000000, 0);
|
|
27
|
+
renderer.outputColorSpace = THREE.SRGBColorSpace;
|
|
28
|
+
const scene = new THREE.Scene();
|
|
29
|
+
const built = build({ renderer, scene, frame, random });
|
|
30
|
+
return { renderer, scene, built, width: frame.width, height: frame.height };
|
|
31
|
+
},
|
|
32
|
+
frame(_gl, s, f) {
|
|
33
|
+
if (f.width !== s.width || f.height !== s.height) {
|
|
34
|
+
s.renderer.setSize(f.width, f.height, false);
|
|
35
|
+
s.built.resize?.(f.width, f.height);
|
|
36
|
+
s.width = f.width;
|
|
37
|
+
s.height = f.height;
|
|
38
|
+
}
|
|
39
|
+
s.built.render(f);
|
|
40
|
+
},
|
|
41
|
+
dispose(_gl, s) {
|
|
42
|
+
s.built.dispose?.();
|
|
43
|
+
disposeTree(s.scene);
|
|
44
|
+
s.renderer.dispose();
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** Free every geometry, material and texture under `root`. */
|
|
49
|
+
export function disposeTree(root) {
|
|
50
|
+
root.traverse((obj) => {
|
|
51
|
+
const mesh = obj;
|
|
52
|
+
mesh.geometry?.dispose();
|
|
53
|
+
const materials = Array.isArray(mesh.material) ? mesh.material : mesh.material ? [mesh.material] : [];
|
|
54
|
+
for (const m of materials) {
|
|
55
|
+
for (const value of Object.values(m))
|
|
56
|
+
if (value instanceof THREE.Texture)
|
|
57
|
+
value.dispose();
|
|
58
|
+
m.dispose();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
if (root instanceof THREE.Scene) {
|
|
62
|
+
if (root.environment)
|
|
63
|
+
root.environment.dispose();
|
|
64
|
+
if (root.background instanceof THREE.Texture)
|
|
65
|
+
root.background.dispose();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** A resolved runtime colour as a Three.js colour (the runtime gives sRGB 0–1). */
|
|
69
|
+
export function colour(c, target = new THREE.Color()) {
|
|
70
|
+
return target.setRGB(c?.[0] ?? 1, c?.[1] ?? 1, c?.[2] ?? 1, THREE.SRGBColorSpace);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reflections without a download: Three.js's procedural studio room,
|
|
74
|
+
* prefiltered on the GPU into an environment map.
|
|
75
|
+
*/
|
|
76
|
+
export function roomEnvironment(renderer) {
|
|
77
|
+
const pmrem = new THREE.PMREMGenerator(renderer);
|
|
78
|
+
const room = new RoomEnvironment();
|
|
79
|
+
const texture = pmrem.fromScene(room, 0.04).texture;
|
|
80
|
+
disposeTree(room);
|
|
81
|
+
pmrem.dispose();
|
|
82
|
+
return texture;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Soft colour blobs painted on a 2D canvas: the thing glass refracts. Redrawn
|
|
86
|
+
* when the colours change (a theme switch). `colors[0]` is the base.
|
|
87
|
+
*/
|
|
88
|
+
export function backdropTexture() {
|
|
89
|
+
const canvas = document.createElement("canvas");
|
|
90
|
+
canvas.width = 512;
|
|
91
|
+
canvas.height = 256;
|
|
92
|
+
const ctx = canvas.getContext("2d");
|
|
93
|
+
const texture = new THREE.CanvasTexture(canvas);
|
|
94
|
+
texture.colorSpace = THREE.SRGBColorSpace;
|
|
95
|
+
let key = "";
|
|
96
|
+
const css = (c, a = 1) => `rgba(${Math.round((c?.[0] ?? 1) * 255)}, ${Math.round((c?.[1] ?? 1) * 255)}, ${Math.round((c?.[2] ?? 1) * 255)}, ${a})`;
|
|
97
|
+
return {
|
|
98
|
+
texture,
|
|
99
|
+
paint(colors) {
|
|
100
|
+
const next = colors.map((c) => c.join()).join("|");
|
|
101
|
+
if (!ctx || next === key)
|
|
102
|
+
return;
|
|
103
|
+
key = next;
|
|
104
|
+
ctx.fillStyle = css(colors[0]);
|
|
105
|
+
ctx.fillRect(0, 0, 512, 256);
|
|
106
|
+
const spots = [[120, 90, 150], [380, 70, 130], [300, 210, 160], [60, 220, 110]];
|
|
107
|
+
spots.forEach(([x, y, r], i) => {
|
|
108
|
+
const g = ctx.createRadialGradient(x, y, 0, x, y, r);
|
|
109
|
+
g.addColorStop(0, css(colors[1 + (i % Math.max(1, colors.length - 1))], 0.95));
|
|
110
|
+
g.addColorStop(1, css(colors[1 + (i % Math.max(1, colors.length - 1))], 0));
|
|
111
|
+
ctx.fillStyle = g;
|
|
112
|
+
ctx.fillRect(0, 0, 512, 256);
|
|
113
|
+
});
|
|
114
|
+
// a few hard stripes, so refraction has edges to bend
|
|
115
|
+
ctx.fillStyle = css(colors[colors.length - 1], 0.35);
|
|
116
|
+
for (let x = 20; x < 512; x += 64)
|
|
117
|
+
ctx.fillRect(x, 0, 6, 256);
|
|
118
|
+
texture.needsUpdate = true;
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/** The pointer, or a slow wandering point while there is none: 0–1, y up. */
|
|
123
|
+
export function aimPoint(f) {
|
|
124
|
+
return f.pointerIn ? f.pointer : [0.5 + 0.32 * Math.sin(f.time * 0.45), 0.5 + 0.26 * Math.sin(f.time * 0.71 + 1.1)];
|
|
125
|
+
}
|
|
126
|
+
export { THREE };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LayerOptions, WebglEffect } from "../../types.js";
|
|
2
|
+
export interface LiquidGlassOptions extends LayerOptions {
|
|
3
|
+
readonly speed?: number;
|
|
4
|
+
/** How much the blob wobbles, 0–1. */
|
|
5
|
+
readonly wobble?: number;
|
|
6
|
+
/** Four colours: the backdrop base and three colour pools the glass bends. */
|
|
7
|
+
readonly colors?: readonly string[];
|
|
8
|
+
readonly seed?: number;
|
|
9
|
+
}
|
|
10
|
+
/** A molten glass blob with droplets circling it, refracting a soft colour backdrop. */
|
|
11
|
+
export declare function liquidGlass(options?: LiquidGlassOptions): WebglEffect;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineGpuEffect } from "../define.js";
|
|
2
|
+
import { SX_FIELD, slots, stillFallback } from "../shaderKit.js";
|
|
3
|
+
import { LIQUID_GLASS_META } from "./metas.js";
|
|
4
|
+
import { THREE, colour, threeProgram } from "./kit.js";
|
|
5
|
+
import { stage } from "./stage.js";
|
|
6
|
+
/** A molten glass blob with droplets circling it, refracting a soft colour backdrop. */
|
|
7
|
+
export function liquidGlass(options = {}) {
|
|
8
|
+
const colors = slots(options.colors, SX_FIELD);
|
|
9
|
+
const speed = options.speed ?? 1;
|
|
10
|
+
const wobble = Math.min(1, Math.max(0, options.wobble ?? 0.6));
|
|
11
|
+
return defineGpuEffect(LIQUID_GLASS_META, threeProgram((ctx) => {
|
|
12
|
+
const set = stage(ctx, { backdrop: true, lean: 0.6 });
|
|
13
|
+
const glass = new THREE.MeshPhysicalMaterial({
|
|
14
|
+
transmission: 1,
|
|
15
|
+
thickness: 1.4,
|
|
16
|
+
roughness: 0.05,
|
|
17
|
+
ior: 1.45,
|
|
18
|
+
clearcoat: 1,
|
|
19
|
+
iridescence: 0.25,
|
|
20
|
+
});
|
|
21
|
+
// the blob's surface moves on the GPU: three sine fields push each vertex along its normal
|
|
22
|
+
const time = { value: 0 };
|
|
23
|
+
glass.onBeforeCompile = (shader) => {
|
|
24
|
+
shader.uniforms.uTime = time;
|
|
25
|
+
shader.vertexShader = `uniform float uTime;\n${shader.vertexShader}`.replace("#include <begin_vertex>", `#include <begin_vertex>
|
|
26
|
+
float n = sin(position.x * 2.1 + uTime) * sin(position.y * 2.7 - uTime * 1.2) * sin(position.z * 1.9 + uTime * 0.8);
|
|
27
|
+
transformed += normal * n * ${(0.3 * wobble).toFixed(3)};`);
|
|
28
|
+
};
|
|
29
|
+
const blob = new THREE.Mesh(new THREE.IcosahedronGeometry(1.15, 24), glass);
|
|
30
|
+
set.group.add(blob);
|
|
31
|
+
const droplets = [0.32, 0.22, 0.16].map((r) => {
|
|
32
|
+
const m = new THREE.Mesh(new THREE.SphereGeometry(r, 32, 16), glass);
|
|
33
|
+
set.group.add(m);
|
|
34
|
+
return m;
|
|
35
|
+
});
|
|
36
|
+
return {
|
|
37
|
+
resize: set.resize,
|
|
38
|
+
render(f) {
|
|
39
|
+
const t = f.time * speed;
|
|
40
|
+
time.value = t * 0.8;
|
|
41
|
+
blob.rotation.set(t * 0.15, t * 0.22, 0);
|
|
42
|
+
droplets.forEach((d, i) => {
|
|
43
|
+
const a = t * (0.5 + i * 0.17) + i * 2.1;
|
|
44
|
+
d.position.set(Math.cos(a) * (1.75 + i * 0.2), Math.sin(a * 1.3) * 0.7, Math.sin(a) * 0.9);
|
|
45
|
+
});
|
|
46
|
+
colour(f.colors[2], glass.attenuationColor);
|
|
47
|
+
set.update(f);
|
|
48
|
+
ctx.renderer.render(ctx.scene, set.camera);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}), options, {
|
|
52
|
+
colors,
|
|
53
|
+
fallback: stillFallback(LIQUID_GLASS_META, "A still glassy highlight over the colour pools.", "radial-gradient(circle at 48% 45%, color-mix(in oklab, white 35%, transparent), transparent 22%), radial-gradient(ellipse 28% 38% at 50% 50%, var(--sx-bg-c3), transparent 70%), radial-gradient(circle at 25% 35%, var(--sx-bg-c2), transparent 55%), var(--sx-bg-c1)", options, colors),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LIQUID_GLASS_SCHEMA: import("../../../schema/types.js").Schema;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineSchema } from "../../../schema/define.js";
|
|
2
|
+
import { layerFields, speedField, seedField, colorsField } from "../../../schema/common.js";
|
|
3
|
+
export const LIQUID_GLASS_SCHEMA = defineSchema()({
|
|
4
|
+
id: "liquid-glass",
|
|
5
|
+
family: "background",
|
|
6
|
+
factory: "liquidGlass",
|
|
7
|
+
entry: "@sharedex/ui/three",
|
|
8
|
+
fields: {
|
|
9
|
+
...layerFields(),
|
|
10
|
+
speed: speedField(),
|
|
11
|
+
wobble: { kind: "number", label: "Wobble", min: 0, max: 1, step: 0.01, default: 0.6 },
|
|
12
|
+
colors: { ...colorsField(["var(--color-sx-secondary)", "var(--color-sx-accent)", "color-mix(in oklab, var(--color-sx-accent) 50%, var(--color-sx-primary))", "color-mix(in oklab, var(--color-sx-accent) 35%, var(--color-sx-secondary))"], 1, 4), help: "The backdrop, then three colour pools the glass bends." },
|
|
13
|
+
seed: seedField(),
|
|
14
|
+
},
|
|
15
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EffectMeta } from "../../types.js";
|
|
2
|
+
export declare const LIQUID_GLASS_META: EffectMeta;
|
|
3
|
+
export declare const GLASS_SHAPES_META: EffectMeta;
|
|
4
|
+
export declare const CHROME_META: EffectMeta;
|
|
5
|
+
export declare const SPECTRAL_GHOST_META: EffectMeta;
|
|
6
|
+
export declare const WOVEN_LIGHT_META: EffectMeta;
|
|
7
|
+
export declare const NEON_TUBES_META: EffectMeta;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Metadata of the Three.js effects. Kept apart from the effects themselves so
|
|
3
|
+
// the registry (in the main entry) can list them without importing three:
|
|
4
|
+
// only `@sharedex/ui/three` does that.
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
const THREE_KB = "~170 KB (Three.js, shared by every effect on the page)";
|
|
7
|
+
export const LIQUID_GLASS_META = {
|
|
8
|
+
id: "liquid-glass",
|
|
9
|
+
label: "Liquid Glass 3D Shapes",
|
|
10
|
+
category: "glass",
|
|
11
|
+
family: "three",
|
|
12
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 4 },
|
|
13
|
+
tier: "high",
|
|
14
|
+
needs: { pointer: true },
|
|
15
|
+
note: "Real-time glass refraction is one of the most expensive effects on the web. No model or HDR download.",
|
|
16
|
+
};
|
|
17
|
+
export const GLASS_SHAPES_META = {
|
|
18
|
+
id: "glass-shapes",
|
|
19
|
+
label: "3D Glass Abstract Shapes",
|
|
20
|
+
category: "glass",
|
|
21
|
+
family: "three",
|
|
22
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 4 },
|
|
23
|
+
tier: "high",
|
|
24
|
+
needs: { pointer: true },
|
|
25
|
+
note: "Use a pre-rendered image (the fallback slot) unless the shapes must react to the user.",
|
|
26
|
+
};
|
|
27
|
+
export const CHROME_META = {
|
|
28
|
+
id: "chrome",
|
|
29
|
+
label: "Abstract 3D Chrome Elements",
|
|
30
|
+
category: "glass",
|
|
31
|
+
family: "three",
|
|
32
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 3 },
|
|
33
|
+
tier: "high",
|
|
34
|
+
needs: { pointer: true },
|
|
35
|
+
note: "Reflections come from a procedural room built on the GPU: no 1–5 MB HDR file.",
|
|
36
|
+
};
|
|
37
|
+
export const SPECTRAL_GHOST_META = {
|
|
38
|
+
id: "spectral-ghost",
|
|
39
|
+
label: "Interactive Spectral 3D Ghost Effect",
|
|
40
|
+
category: "glass",
|
|
41
|
+
family: "three",
|
|
42
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 4 },
|
|
43
|
+
tier: "high",
|
|
44
|
+
needs: { pointer: true },
|
|
45
|
+
note: "Each post-processing pass (bloom, distortion) re-paints the full screen again.",
|
|
46
|
+
};
|
|
47
|
+
export const WOVEN_LIGHT_META = {
|
|
48
|
+
id: "woven-light",
|
|
49
|
+
label: "Woven Light Hero",
|
|
50
|
+
category: "glass",
|
|
51
|
+
family: "three",
|
|
52
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 3 },
|
|
53
|
+
tier: "mid",
|
|
54
|
+
needs: { pointer: true },
|
|
55
|
+
note: "Thousands of light particles react to the cursor (fewer on touch screens). Test on a low phone.",
|
|
56
|
+
};
|
|
57
|
+
export const NEON_TUBES_META = {
|
|
58
|
+
id: "neon-tubes",
|
|
59
|
+
label: "Neon 3D Tubes Cursor Trail",
|
|
60
|
+
category: "cursor",
|
|
61
|
+
family: "three",
|
|
62
|
+
cost: { kb: THREE_KB, cpu: 2, gpu: 4 },
|
|
63
|
+
tier: "high",
|
|
64
|
+
needs: { pointer: true },
|
|
65
|
+
note: "Bloom post-processing is the heavy part. Without a mouse the trail follows a wandering path.",
|
|
66
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LayerOptions, WebglEffect } from "../../types.js";
|
|
2
|
+
export interface NeonTubesOptions extends LayerOptions {
|
|
3
|
+
readonly speed?: number;
|
|
4
|
+
/** Number of tubes braided along the trail (1–5). */
|
|
5
|
+
readonly tubes?: number;
|
|
6
|
+
/** Trail length in points (10–120). */
|
|
7
|
+
readonly length?: number;
|
|
8
|
+
/** Bloom strength, 0–3. */
|
|
9
|
+
readonly bloom?: number;
|
|
10
|
+
/** One colour per tube (cycled). The layer is transparent: the page shows behind the glow. */
|
|
11
|
+
readonly colors?: readonly string[];
|
|
12
|
+
readonly seed?: number;
|
|
13
|
+
}
|
|
14
|
+
/** Points along the trail -> points along one braided tube around it (pure: tested). */
|
|
15
|
+
export declare function braid(trail: readonly (readonly [number, number])[], index: number, tubes: number, time: number): [number, number, number][];
|
|
16
|
+
/** Rings along each tube and vertices around each ring. Fixed, so a tube's buffers never change size. */
|
|
17
|
+
export declare const TUBE_SEGMENTS = 96;
|
|
18
|
+
export declare const TUBE_RADIAL = 8;
|
|
19
|
+
/** Triangles for a tube of `segments` × `radial` quads (rings carry `radial + 1` vertices: a seam). Pure. */
|
|
20
|
+
export declare function tubeIndices(segments: number, radial: number): Uint16Array;
|
|
21
|
+
/**
|
|
22
|
+
* Writes a tube of `radius` around a Catmull-Rom curve through `path` into
|
|
23
|
+
* `out` (`(segments + 1) * (radial + 1) * 3` floats), in place: no curve
|
|
24
|
+
* object, no new buffers, nothing for the garbage collector. Each ring sits
|
|
25
|
+
* in the plane across the curve's direction, oriented against the z axis
|
|
26
|
+
* (the trail lies near z = 0, so the direction is never parallel to it). Pure.
|
|
27
|
+
*/
|
|
28
|
+
export declare function writeTube(out: Float32Array, path: readonly (readonly [number, number, number])[], segments: number, radial: number, radius: number): void;
|
|
29
|
+
export declare function neonTubes(options?: NeonTubesOptions): WebglEffect;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js";
|
|
2
|
+
import { RenderPass } from "three/addons/postprocessing/RenderPass.js";
|
|
3
|
+
import { UnrealBloomPass } from "three/addons/postprocessing/UnrealBloomPass.js";
|
|
4
|
+
import { OutputPass } from "three/addons/postprocessing/OutputPass.js";
|
|
5
|
+
import { defineGpuEffect } from "../define.js";
|
|
6
|
+
import { SX_GLOW, slots, stillFallback } from "../shaderKit.js";
|
|
7
|
+
import { NEON_TUBES_META } from "./metas.js";
|
|
8
|
+
import { THREE, aimPoint, colour, threeProgram } from "./kit.js";
|
|
9
|
+
/** Points along the trail -> points along one braided tube around it (pure: tested). */
|
|
10
|
+
export function braid(trail, index, tubes, time) {
|
|
11
|
+
const n = trail.length;
|
|
12
|
+
return trail.map(([x, y], i) => {
|
|
13
|
+
const taper = 1 - i / Math.max(1, n - 1); // full width at the head, none at the tail
|
|
14
|
+
const a = i * 0.35 - time * 2 + (index * Math.PI * 2) / tubes;
|
|
15
|
+
const r = tubes > 1 ? 0.14 * taper : 0;
|
|
16
|
+
return [x + Math.cos(a) * r, y + Math.sin(a) * r, Math.sin(a) * r];
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** Rings along each tube and vertices around each ring. Fixed, so a tube's buffers never change size. */
|
|
20
|
+
export const TUBE_SEGMENTS = 96;
|
|
21
|
+
export const TUBE_RADIAL = 8;
|
|
22
|
+
/** Triangles for a tube of `segments` × `radial` quads (rings carry `radial + 1` vertices: a seam). Pure. */
|
|
23
|
+
export function tubeIndices(segments, radial) {
|
|
24
|
+
const out = new Uint16Array(segments * radial * 6);
|
|
25
|
+
let k = 0;
|
|
26
|
+
for (let i = 0; i < segments; i++) {
|
|
27
|
+
for (let j = 0; j < radial; j++) {
|
|
28
|
+
const a = i * (radial + 1) + j;
|
|
29
|
+
const b = a + radial + 1;
|
|
30
|
+
out.set([a, b, a + 1, b, b + 1, a + 1], k);
|
|
31
|
+
k += 6;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Writes a tube of `radius` around a Catmull-Rom curve through `path` into
|
|
38
|
+
* `out` (`(segments + 1) * (radial + 1) * 3` floats), in place: no curve
|
|
39
|
+
* object, no new buffers, nothing for the garbage collector. Each ring sits
|
|
40
|
+
* in the plane across the curve's direction, oriented against the z axis
|
|
41
|
+
* (the trail lies near z = 0, so the direction is never parallel to it). Pure.
|
|
42
|
+
*/
|
|
43
|
+
export function writeTube(out, path, segments, radial, radius) {
|
|
44
|
+
const n = path.length;
|
|
45
|
+
if (n < 2) {
|
|
46
|
+
out.fill(0);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const at = (i) => path[Math.min(n - 1, Math.max(0, i))] ?? [0, 0, 0];
|
|
50
|
+
let w = 0;
|
|
51
|
+
for (let i = 0; i <= segments; i++) {
|
|
52
|
+
const t = (i / segments) * (n - 1);
|
|
53
|
+
const k = Math.min(n - 2, Math.floor(t));
|
|
54
|
+
const u = t - k;
|
|
55
|
+
const p0 = at(k - 1);
|
|
56
|
+
const p1 = at(k);
|
|
57
|
+
const p2 = at(k + 1);
|
|
58
|
+
const p3 = at(k + 2);
|
|
59
|
+
const pos = [0, 0, 0];
|
|
60
|
+
const tan = [0, 0, 0];
|
|
61
|
+
for (let c = 0; c < 3; c++) {
|
|
62
|
+
const a = p0[c] ?? 0;
|
|
63
|
+
const b = p1[c] ?? 0;
|
|
64
|
+
const d = p2[c] ?? 0;
|
|
65
|
+
const e = p3[c] ?? 0;
|
|
66
|
+
pos[c] = 0.5 * (2 * b + (-a + d) * u + (2 * a - 5 * b + 4 * d - e) * u * u + (-a + 3 * b - 3 * d + e) * u * u * u);
|
|
67
|
+
tan[c] = 0.5 * (-a + d + 2 * (2 * a - 5 * b + 4 * d - e) * u + 3 * (-a + 3 * b - 3 * d + e) * u * u);
|
|
68
|
+
}
|
|
69
|
+
// across = normalize(tan × z), up = across × tan (both unit, both across the curve)
|
|
70
|
+
let ax = tan[1] ?? 0;
|
|
71
|
+
let ay = -(tan[0] ?? 0);
|
|
72
|
+
const al = Math.hypot(ax, ay) || 1;
|
|
73
|
+
ax /= al;
|
|
74
|
+
ay /= al;
|
|
75
|
+
const tl = Math.hypot(tan[0] ?? 0, tan[1] ?? 0, tan[2] ?? 0) || 1;
|
|
76
|
+
const tx = (tan[0] ?? 0) / tl;
|
|
77
|
+
const ty = (tan[1] ?? 0) / tl;
|
|
78
|
+
const tz = (tan[2] ?? 0) / tl;
|
|
79
|
+
const ux = ay * tz;
|
|
80
|
+
const uy = -ax * tz;
|
|
81
|
+
const uz = ax * ty - ay * tx;
|
|
82
|
+
for (let j = 0; j <= radial; j++) {
|
|
83
|
+
const a = (j / radial) * Math.PI * 2;
|
|
84
|
+
const cs = Math.cos(a) * radius;
|
|
85
|
+
const sn = Math.sin(a) * radius;
|
|
86
|
+
out[w++] = (pos[0] ?? 0) + ax * cs + ux * sn;
|
|
87
|
+
out[w++] = (pos[1] ?? 0) + ay * cs + uy * sn;
|
|
88
|
+
out[w++] = (pos[2] ?? 0) + uz * sn;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// The pointer's recent path (or a wandering one) on the z = 0 plane. Every
|
|
93
|
+
// frame each tube's vertices are rewritten in place along a smooth curve
|
|
94
|
+
// through that path, braided around it and tapering to the tail: fixed-size
|
|
95
|
+
// buffers, so nothing is allocated per frame. The colours are pure emission,
|
|
96
|
+
// and bloom turns them into neon. The scene has no background: the glow lands
|
|
97
|
+
// on the page itself, so light themes work too (a coloured background would
|
|
98
|
+
// bloom as a whole).
|
|
99
|
+
export function neonTubes(options = {}) {
|
|
100
|
+
const colors = slots(options.colors, SX_GLOW);
|
|
101
|
+
const speed = options.speed ?? 1;
|
|
102
|
+
const tubes = Math.min(5, Math.max(1, Math.round(options.tubes ?? 3)));
|
|
103
|
+
const length = Math.min(120, Math.max(10, Math.round(options.length ?? 48)));
|
|
104
|
+
const bloom = Math.min(3, Math.max(0, options.bloom ?? 0.9));
|
|
105
|
+
return defineGpuEffect(NEON_TUBES_META, threeProgram(({ renderer, scene, frame }) => {
|
|
106
|
+
const camera = new THREE.PerspectiveCamera(40, frame.width / frame.height, 0.1, 50);
|
|
107
|
+
camera.position.set(0, 0, 6);
|
|
108
|
+
const indices = new THREE.BufferAttribute(tubeIndices(TUBE_SEGMENTS, TUBE_RADIAL), 1);
|
|
109
|
+
const meshes = Array.from({ length: tubes }, () => {
|
|
110
|
+
const geometry = new THREE.BufferGeometry();
|
|
111
|
+
const position = new THREE.BufferAttribute(new Float32Array((TUBE_SEGMENTS + 1) * (TUBE_RADIAL + 1) * 3), 3);
|
|
112
|
+
position.setUsage(THREE.DynamicDrawUsage);
|
|
113
|
+
geometry.setAttribute("position", position);
|
|
114
|
+
geometry.setIndex(indices);
|
|
115
|
+
geometry.setDrawRange(0, 0);
|
|
116
|
+
const m = new THREE.Mesh(geometry, new THREE.MeshBasicMaterial({ toneMapped: false }));
|
|
117
|
+
m.frustumCulled = false; // the buffer changes every frame; no bounds to keep current
|
|
118
|
+
scene.add(m);
|
|
119
|
+
return m;
|
|
120
|
+
});
|
|
121
|
+
const trail = [];
|
|
122
|
+
const composer = new EffectComposer(renderer);
|
|
123
|
+
composer.setPixelRatio(1);
|
|
124
|
+
composer.setSize(frame.width, frame.height);
|
|
125
|
+
composer.addPass(new RenderPass(scene, camera));
|
|
126
|
+
const bloomPass = new UnrealBloomPass(new THREE.Vector2(frame.width, frame.height), bloom, 0.2, 0.2);
|
|
127
|
+
composer.addPass(bloomPass);
|
|
128
|
+
composer.addPass(new OutputPass());
|
|
129
|
+
return {
|
|
130
|
+
resize(width, height) {
|
|
131
|
+
camera.aspect = width / height;
|
|
132
|
+
camera.updateProjectionMatrix();
|
|
133
|
+
composer.setSize(width, height);
|
|
134
|
+
},
|
|
135
|
+
render(f) {
|
|
136
|
+
const t = f.time * speed;
|
|
137
|
+
const [x, y] = aimPoint(f);
|
|
138
|
+
const h = Math.tan(THREE.MathUtils.degToRad(camera.fov / 2)) * camera.position.z;
|
|
139
|
+
trail.unshift([(x * 2 - 1) * h * camera.aspect, (y * 2 - 1) * h]);
|
|
140
|
+
if (trail.length > length)
|
|
141
|
+
trail.length = length;
|
|
142
|
+
meshes.forEach((m, k) => {
|
|
143
|
+
colour(f.colors[k % Math.max(1, f.colors.length)], m.material.color);
|
|
144
|
+
if (trail.length < 4)
|
|
145
|
+
return;
|
|
146
|
+
const position = m.geometry.getAttribute("position");
|
|
147
|
+
writeTube(position.array, braid(trail, k, tubes, t), TUBE_SEGMENTS, TUBE_RADIAL, 0.035);
|
|
148
|
+
position.needsUpdate = true;
|
|
149
|
+
m.geometry.setDrawRange(0, Infinity);
|
|
150
|
+
});
|
|
151
|
+
composer.render(f.delta);
|
|
152
|
+
},
|
|
153
|
+
dispose() {
|
|
154
|
+
bloomPass.dispose();
|
|
155
|
+
composer.dispose();
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
}, 60), options, {
|
|
159
|
+
colors,
|
|
160
|
+
fallback: stillFallback(NEON_TUBES_META, "A still neon squiggle glow (the atlas marks the live version desktop only).", "radial-gradient(ellipse 30% 6% at 45% 50%, color-mix(in oklab, var(--sx-bg-c1) 70%, transparent), transparent), radial-gradient(ellipse 20% 5% at 60% 46%, color-mix(in oklab, var(--sx-bg-c2) 60%, transparent), transparent)", options, colors),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NEON_TUBES_SCHEMA: import("../../../schema/types.js").Schema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineSchema } from "../../../schema/define.js";
|
|
2
|
+
import { layerFields, speedField, seedField, colorsField } from "../../../schema/common.js";
|
|
3
|
+
export const NEON_TUBES_SCHEMA = defineSchema()({
|
|
4
|
+
id: "neon-tubes",
|
|
5
|
+
family: "background",
|
|
6
|
+
factory: "neonTubes",
|
|
7
|
+
entry: "@sharedex/ui/three",
|
|
8
|
+
fields: {
|
|
9
|
+
...layerFields(),
|
|
10
|
+
speed: speedField(),
|
|
11
|
+
tubes: { kind: "integer", label: "Tubes", min: 1, max: 5, default: 3 },
|
|
12
|
+
length: { kind: "integer", label: "Trail length", min: 10, max: 120, default: 48 },
|
|
13
|
+
bloom: { kind: "number", label: "Bloom", min: 0, max: 3, step: 0.05, default: 0.9 },
|
|
14
|
+
colors: { ...colorsField(["var(--color-sx-accent)", "color-mix(in oklab, var(--color-sx-accent) 55%, var(--color-sx-primary))", "color-mix(in oklab, var(--color-sx-accent) 50%, var(--color-sx-secondary))"], 1, 3), help: "One per tube (cycled)." },
|
|
15
|
+
seed: seedField(),
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LayerOptions, WebglEffect } from "../../types.js";
|
|
2
|
+
export interface SpectralGhostOptions extends LayerOptions {
|
|
3
|
+
readonly speed?: number;
|
|
4
|
+
/** Bloom strength, 0–3. */
|
|
5
|
+
readonly bloom?: number;
|
|
6
|
+
/** Three colours the ghost's rim shifts through. The layer is transparent: the page shows behind it. */
|
|
7
|
+
readonly colors?: readonly string[];
|
|
8
|
+
readonly seed?: number;
|
|
9
|
+
}
|
|
10
|
+
/** A glowing, shimmering ghost that follows the cursor, trailed by wisps. */
|
|
11
|
+
export declare function spectralGhost(options?: SpectralGhostOptions): WebglEffect;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js";
|
|
2
|
+
import { RenderPass } from "three/addons/postprocessing/RenderPass.js";
|
|
3
|
+
import { UnrealBloomPass } from "three/addons/postprocessing/UnrealBloomPass.js";
|
|
4
|
+
import { ShaderPass } from "three/addons/postprocessing/ShaderPass.js";
|
|
5
|
+
import { OutputPass } from "three/addons/postprocessing/OutputPass.js";
|
|
6
|
+
import { defineGpuEffect } from "../define.js";
|
|
7
|
+
import { SX_GLOW, slots, stillFallback } from "../shaderKit.js";
|
|
8
|
+
import { SPECTRAL_GHOST_META } from "./metas.js";
|
|
9
|
+
import { THREE, aimPoint, colour, threeProgram } from "./kit.js";
|
|
10
|
+
// The ghost is a sphere whose lower half ripples like a hem, drawn only as a
|
|
11
|
+
// glowing rim (fresnel: bright where the surface turns away from the camera)
|
|
12
|
+
// whose colour drifts through the palette. It eases after the pointer, trailed
|
|
13
|
+
// by fading wisps that replay its recent path. Bloom makes it glow; a last pass
|
|
14
|
+
// shimmers the picture like heat haze. No scene background: the glow lands on
|
|
15
|
+
// the page itself (a coloured background would bloom as a whole on light themes).
|
|
16
|
+
const GHOST_VERTEX = `uniform float uTime;
|
|
17
|
+
varying vec3 vNormal;
|
|
18
|
+
varying vec3 vView;
|
|
19
|
+
varying float vLow;
|
|
20
|
+
void main() {
|
|
21
|
+
vec3 p = position;
|
|
22
|
+
float hem = smoothstep(0.1, -1.0, p.y);
|
|
23
|
+
p.xz *= 1.0 + hem * 0.25;
|
|
24
|
+
p.y += hem * 0.18 * sin(atan(p.z, p.x) * 6.0 + uTime * 3.0);
|
|
25
|
+
p += normal * 0.04 * sin(uTime * 2.0 + p.y * 5.0);
|
|
26
|
+
vec4 world = modelViewMatrix * vec4(p, 1.0);
|
|
27
|
+
vNormal = normalize(normalMatrix * normal);
|
|
28
|
+
vView = normalize(-world.xyz);
|
|
29
|
+
vLow = hem;
|
|
30
|
+
gl_Position = projectionMatrix * world;
|
|
31
|
+
}`;
|
|
32
|
+
const GHOST_FRAGMENT = `uniform float uTime;
|
|
33
|
+
uniform float uFade;
|
|
34
|
+
uniform vec3 uA;
|
|
35
|
+
uniform vec3 uB;
|
|
36
|
+
uniform vec3 uC;
|
|
37
|
+
varying vec3 vNormal;
|
|
38
|
+
varying vec3 vView;
|
|
39
|
+
varying float vLow;
|
|
40
|
+
void main() {
|
|
41
|
+
float rim = pow(1.0 - abs(dot(vNormal, vView)), 2.2);
|
|
42
|
+
float k = 0.5 + 0.5 * sin(uTime * 0.7 + vNormal.y * 3.0);
|
|
43
|
+
vec3 c = mix(mix(uA, uB, k), uC, rim);
|
|
44
|
+
float a = (rim * 0.95 + 0.08) * (1.0 - vLow * 0.55) * uFade;
|
|
45
|
+
gl_FragColor = vec4(c * a, a);
|
|
46
|
+
}`;
|
|
47
|
+
const HAZE = {
|
|
48
|
+
uniforms: { tDiffuse: { value: null }, uTime: { value: 0 } },
|
|
49
|
+
vertexShader: `varying vec2 vUv;
|
|
50
|
+
void main() {
|
|
51
|
+
vUv = uv;
|
|
52
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
53
|
+
}`,
|
|
54
|
+
fragmentShader: `uniform sampler2D tDiffuse;
|
|
55
|
+
uniform float uTime;
|
|
56
|
+
varying vec2 vUv;
|
|
57
|
+
void main() {
|
|
58
|
+
vec2 uv = vUv + 0.0025 * vec2(sin(vUv.y * 40.0 + uTime * 2.0), cos(vUv.x * 32.0 + uTime * 1.7));
|
|
59
|
+
gl_FragColor = texture2D(tDiffuse, uv);
|
|
60
|
+
}`,
|
|
61
|
+
};
|
|
62
|
+
const TRAIL = 6;
|
|
63
|
+
/** A glowing, shimmering ghost that follows the cursor, trailed by wisps. */
|
|
64
|
+
export function spectralGhost(options = {}) {
|
|
65
|
+
const colors = slots(options.colors, SX_GLOW);
|
|
66
|
+
const speed = options.speed ?? 1;
|
|
67
|
+
const bloom = Math.min(3, Math.max(0, options.bloom ?? 1.1));
|
|
68
|
+
return defineGpuEffect(SPECTRAL_GHOST_META, threeProgram((ctx) => {
|
|
69
|
+
const { renderer, scene, frame } = ctx;
|
|
70
|
+
const camera = new THREE.PerspectiveCamera(40, frame.width / frame.height, 0.1, 50);
|
|
71
|
+
camera.position.set(0, 0, 7);
|
|
72
|
+
const make = (fade) => new THREE.ShaderMaterial({
|
|
73
|
+
vertexShader: GHOST_VERTEX,
|
|
74
|
+
fragmentShader: GHOST_FRAGMENT,
|
|
75
|
+
uniforms: {
|
|
76
|
+
uTime: { value: 0 },
|
|
77
|
+
uFade: { value: fade },
|
|
78
|
+
uA: { value: new THREE.Color() },
|
|
79
|
+
uB: { value: new THREE.Color() },
|
|
80
|
+
uC: { value: new THREE.Color() },
|
|
81
|
+
},
|
|
82
|
+
transparent: true,
|
|
83
|
+
depthWrite: false,
|
|
84
|
+
blending: THREE.CustomBlending,
|
|
85
|
+
blendSrc: THREE.OneFactor,
|
|
86
|
+
blendDst: THREE.OneMinusSrcAlphaFactor,
|
|
87
|
+
});
|
|
88
|
+
const geometry = new THREE.SphereGeometry(0.75, 64, 48);
|
|
89
|
+
const ghost = new THREE.Mesh(geometry, make(1));
|
|
90
|
+
scene.add(ghost);
|
|
91
|
+
const wisps = Array.from({ length: TRAIL }, (_, i) => {
|
|
92
|
+
const m = new THREE.Mesh(geometry, make(0.5 * (1 - i / TRAIL)));
|
|
93
|
+
m.scale.setScalar(0.8 - i * 0.1);
|
|
94
|
+
scene.add(m);
|
|
95
|
+
return m;
|
|
96
|
+
});
|
|
97
|
+
const path = Array.from({ length: TRAIL * 4 }, () => new THREE.Vector3());
|
|
98
|
+
const composer = new EffectComposer(renderer);
|
|
99
|
+
composer.setPixelRatio(1);
|
|
100
|
+
composer.setSize(frame.width, frame.height);
|
|
101
|
+
composer.addPass(new RenderPass(scene, camera));
|
|
102
|
+
const bloomPass = new UnrealBloomPass(new THREE.Vector2(frame.width, frame.height), bloom, 0.3, 0.12);
|
|
103
|
+
composer.addPass(bloomPass);
|
|
104
|
+
const haze = new ShaderPass(HAZE);
|
|
105
|
+
composer.addPass(haze);
|
|
106
|
+
composer.addPass(new OutputPass());
|
|
107
|
+
const target = new THREE.Vector3();
|
|
108
|
+
return {
|
|
109
|
+
resize(width, height) {
|
|
110
|
+
camera.aspect = width / height;
|
|
111
|
+
camera.updateProjectionMatrix();
|
|
112
|
+
composer.setSize(width, height);
|
|
113
|
+
},
|
|
114
|
+
render(f) {
|
|
115
|
+
const t = f.time * speed;
|
|
116
|
+
for (const m of [ghost, ...wisps]) {
|
|
117
|
+
const u = m.material.uniforms;
|
|
118
|
+
u.uTime.value = t;
|
|
119
|
+
colour(f.colors[0], u.uA.value);
|
|
120
|
+
colour(f.colors[1], u.uB.value);
|
|
121
|
+
colour(f.colors[2], u.uC.value);
|
|
122
|
+
}
|
|
123
|
+
// the aim point on the z = 0 plane the camera looks at
|
|
124
|
+
const [x, y] = aimPoint(f);
|
|
125
|
+
const h = Math.tan(THREE.MathUtils.degToRad(camera.fov / 2)) * camera.position.z;
|
|
126
|
+
target.set((x * 2 - 1) * h * camera.aspect * 0.8, (y * 2 - 1) * h * 0.8, 0);
|
|
127
|
+
ghost.position.lerp(target, 1 - Math.pow(0.04, f.delta || 1 / 60));
|
|
128
|
+
ghost.rotation.y = Math.sin(t * 0.8) * 0.4;
|
|
129
|
+
ghost.position.y += Math.sin(t * 2) * 0.004;
|
|
130
|
+
path.pop();
|
|
131
|
+
path.unshift(ghost.position.clone());
|
|
132
|
+
wisps.forEach((w, i) => w.position.copy(path[(i + 1) * 4 - 1] ?? ghost.position));
|
|
133
|
+
haze.uniforms.uTime.value = t;
|
|
134
|
+
composer.render(f.delta);
|
|
135
|
+
},
|
|
136
|
+
dispose() {
|
|
137
|
+
bloomPass.dispose();
|
|
138
|
+
composer.dispose();
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
}, 30), options, {
|
|
142
|
+
colors,
|
|
143
|
+
fallback: stillFallback(SPECTRAL_GHOST_META, "A still soft glow in the ghost's colours.", "radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--sx-bg-c3) 55%, transparent), transparent 22%), radial-gradient(ellipse 30% 35% at 50% 48%, color-mix(in oklab, var(--sx-bg-c1) 40%, transparent), transparent 70%)", options, colors),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SPECTRAL_GHOST_SCHEMA: import("../../../schema/types.js").Schema;
|