@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,107 @@
|
|
|
1
|
+
import { rotX } from "../carousel/layout/presets/sphere.js";
|
|
2
|
+
/** How the plane repeats when the items don't fill a whole block. */
|
|
3
|
+
export type GridRepeat = "sequence" | "blank";
|
|
4
|
+
export interface GridPoint {
|
|
5
|
+
readonly x: number;
|
|
6
|
+
readonly y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface GridCellRef {
|
|
9
|
+
readonly col: number;
|
|
10
|
+
readonly row: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Which item cell (`col`, `row`) shows, or `null` for an empty cell.
|
|
14
|
+
*
|
|
15
|
+
* - `"sequence"`: reading order runs on across block rows (row 1 starts where
|
|
16
|
+
* row 0 ended), so no cell is ever empty, whatever the item count.
|
|
17
|
+
* - `"blank"`: blocks of `columns × ceil(count / columns)` cells repeat; the
|
|
18
|
+
* missing cells of the last row stay empty, like a carousel placeholder.
|
|
19
|
+
*
|
|
20
|
+
* Both repeat every `columns` columns.
|
|
21
|
+
*/
|
|
22
|
+
export declare function gridItemAt(col: number, row: number, count: number, columns: number, repeat?: GridRepeat): number | null;
|
|
23
|
+
/**
|
|
24
|
+
* Columns in one repeating block. `"auto"`: enough that one block covers the
|
|
25
|
+
* viewport width, capped at the item count (more columns than items would
|
|
26
|
+
* only repeat items within a row).
|
|
27
|
+
*/
|
|
28
|
+
export declare function gridColumns(option: number | "auto", viewportWidth: number, pitchX: number, count: number): number;
|
|
29
|
+
/** How far row `row` is shifted right, cells: `stagger` on odd rows (the brick pattern), 0 on even ones. */
|
|
30
|
+
export declare function rowShift(row: number, stagger: number): number;
|
|
31
|
+
/** The centre of cell (`col`, `row`), cells. */
|
|
32
|
+
export declare function cellCentre(col: number, row: number, stagger?: number): GridPoint;
|
|
33
|
+
/** The plane's tilt, degrees: CSS `rotateX(x) rotateY(y) rotateZ(z)` about the viewport centre. */
|
|
34
|
+
export interface GridTilt {
|
|
35
|
+
readonly x?: number;
|
|
36
|
+
readonly y?: number;
|
|
37
|
+
readonly z?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface GridView {
|
|
40
|
+
/** Viewport size, px. */
|
|
41
|
+
readonly width: number;
|
|
42
|
+
readonly height: number;
|
|
43
|
+
/** One cell plus its gap, px. */
|
|
44
|
+
readonly pitchX: number;
|
|
45
|
+
readonly pitchY: number;
|
|
46
|
+
/** The focus, cells: the plane point at the viewport centre. */
|
|
47
|
+
readonly position: GridPoint;
|
|
48
|
+
readonly stagger?: number;
|
|
49
|
+
readonly tilt?: GridTilt;
|
|
50
|
+
/** CSS `perspective` on the viewport, px. 0 = none. Default 1200. */
|
|
51
|
+
readonly perspective?: number;
|
|
52
|
+
/** Extra cells mounted on every side. Default 1. */
|
|
53
|
+
readonly margin?: number;
|
|
54
|
+
/** No cell further than this from the focus (cells) is mounted: a steep tilt shows the horizon. Default 12. */
|
|
55
|
+
readonly reach?: number;
|
|
56
|
+
/** At most this many cells mounted. Default 160. */
|
|
57
|
+
readonly maxCells?: number;
|
|
58
|
+
}
|
|
59
|
+
/** An inclusive range of columns and rows. */
|
|
60
|
+
export interface GridRange {
|
|
61
|
+
readonly col0: number;
|
|
62
|
+
readonly col1: number;
|
|
63
|
+
readonly row0: number;
|
|
64
|
+
readonly row1: number;
|
|
65
|
+
}
|
|
66
|
+
type Mat = ReturnType<typeof rotX>;
|
|
67
|
+
/** The tilt as one rotation matrix (row-major, CSS axes: y down, z towards the viewer). */
|
|
68
|
+
export declare function tiltMatrix(tilt?: GridTilt): Mat;
|
|
69
|
+
/**
|
|
70
|
+
* Where the ray through screen point (`sx`, `sy`) (px from the viewport
|
|
71
|
+
* centre) meets the tilted plane, in plane px from the focus; `null` when it
|
|
72
|
+
* misses (the plane is edge-on, or the point is above the horizon).
|
|
73
|
+
*
|
|
74
|
+
* The camera sits `perspective` px in front of the screen on the centre line,
|
|
75
|
+
* as CSS `perspective` places it; with no perspective the rays are parallel.
|
|
76
|
+
* The plane passes through the viewport centre with normal `M · (0, 0, 1)`.
|
|
77
|
+
*/
|
|
78
|
+
export declare function planeHit(sx: number, sy: number, m: Mat, perspective: number): GridPoint | null;
|
|
79
|
+
/**
|
|
80
|
+
* The cells to mount: every cell whose pitch box shows in the viewport, plus
|
|
81
|
+
* `margin` on every side.
|
|
82
|
+
*
|
|
83
|
+
* Points along the viewport's edges are cast onto the (tilted) plane with
|
|
84
|
+
* `planeHit`; the box around the hits is the visible part of the plane. A
|
|
85
|
+
* point that misses (the horizon is on screen) is walked back towards the
|
|
86
|
+
* centre to the last point that still hits. Every hit is pulled within
|
|
87
|
+
* `reach` cells of the focus, and the range is trimmed from its far sides to
|
|
88
|
+
* `maxCells`. A flat plane gives exactly the viewport.
|
|
89
|
+
*/
|
|
90
|
+
export declare function visibleCells(view: GridView): GridRange;
|
|
91
|
+
/**
|
|
92
|
+
* The copy of `item` whose centre is nearest `from` (cells), for `goTo`,
|
|
93
|
+
* `open` and the keyboard. Rows are searched outwards from `from.y` and the
|
|
94
|
+
* search stops once a row cannot be nearer than the best copy found; every
|
|
95
|
+
* item shows within `count` rows, so it always ends. `null` for an index
|
|
96
|
+
* outside the items.
|
|
97
|
+
*/
|
|
98
|
+
export declare function nearestCopy(item: number, from: GridPoint, count: number, columns: number, repeat?: GridRepeat, stagger?: number): GridCellRef | null;
|
|
99
|
+
/** The cell centre a glide should land on: the nearest row first, then the nearest column in that row. */
|
|
100
|
+
export declare function snapTarget(landing: GridPoint, stagger?: number): GridCellRef & GridPoint;
|
|
101
|
+
/**
|
|
102
|
+
* The bulge's falloff with distance `r` from the focus: 1 at the focus,
|
|
103
|
+
* easing down to 0 at `radius` and staying 0 beyond (a raised cosine, so the
|
|
104
|
+
* dome has no crease at its top or its rim).
|
|
105
|
+
*/
|
|
106
|
+
export declare function bulgeAt(r: number, radius: number): number;
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Grid's pure maths: which item a cell shows, where a cell sits, which
|
|
3
|
+
* cells to mount, the copy of an item nearest the focus, the snap landing and
|
|
4
|
+
* the bulge falloff. No DOM; the Grid measures and calls these, the tests call
|
|
5
|
+
* them directly.
|
|
6
|
+
*
|
|
7
|
+
* Units: the plane is an endless lattice of cells. Positions are in **cell
|
|
8
|
+
* units** (one column / one row = 1), never px, so a resize keeps the same
|
|
9
|
+
* card centred; px = cells × pitch. A cell's centre is its column and row,
|
|
10
|
+
* plus the row's `stagger` shift. Physical mirroring for RTL is the
|
|
11
|
+
* component's job; everything here is in reading order.
|
|
12
|
+
*/
|
|
13
|
+
import { wrapIndex } from "../carousel/engine/ring.js";
|
|
14
|
+
import { rotX, rotY, rotZ } from "../carousel/layout/presets/sphere.js";
|
|
15
|
+
/**
|
|
16
|
+
* Which item cell (`col`, `row`) shows, or `null` for an empty cell.
|
|
17
|
+
*
|
|
18
|
+
* - `"sequence"`: reading order runs on across block rows (row 1 starts where
|
|
19
|
+
* row 0 ended), so no cell is ever empty, whatever the item count.
|
|
20
|
+
* - `"blank"`: blocks of `columns × ceil(count / columns)` cells repeat; the
|
|
21
|
+
* missing cells of the last row stay empty, like a carousel placeholder.
|
|
22
|
+
*
|
|
23
|
+
* Both repeat every `columns` columns.
|
|
24
|
+
*/
|
|
25
|
+
export function gridItemAt(col, row, count, columns, repeat = "sequence") {
|
|
26
|
+
if (count <= 0)
|
|
27
|
+
return null;
|
|
28
|
+
const cols = Math.max(1, Math.floor(columns));
|
|
29
|
+
const k = wrapIndex(col, cols);
|
|
30
|
+
if (repeat === "sequence")
|
|
31
|
+
return wrapIndex(row * cols + k, count);
|
|
32
|
+
const i = wrapIndex(row, Math.ceil(count / cols)) * cols + k;
|
|
33
|
+
return i < count ? i : null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Columns in one repeating block. `"auto"`: enough that one block covers the
|
|
37
|
+
* viewport width, capped at the item count (more columns than items would
|
|
38
|
+
* only repeat items within a row).
|
|
39
|
+
*/
|
|
40
|
+
export function gridColumns(option, viewportWidth, pitchX, count) {
|
|
41
|
+
if (option !== "auto")
|
|
42
|
+
return Math.max(1, Math.floor(option));
|
|
43
|
+
if (!(pitchX > 0) || !(viewportWidth > 0))
|
|
44
|
+
return 1;
|
|
45
|
+
return Math.min(Math.max(1, Math.ceil(viewportWidth / pitchX)), Math.max(1, count));
|
|
46
|
+
}
|
|
47
|
+
/** How far row `row` is shifted right, cells: `stagger` on odd rows (the brick pattern), 0 on even ones. */
|
|
48
|
+
export function rowShift(row, stagger) {
|
|
49
|
+
return wrapIndex(row, 2) === 1 ? stagger : 0;
|
|
50
|
+
}
|
|
51
|
+
/** The centre of cell (`col`, `row`), cells. */
|
|
52
|
+
export function cellCentre(col, row, stagger = 0) {
|
|
53
|
+
return { x: col + rowShift(row, stagger), y: row };
|
|
54
|
+
}
|
|
55
|
+
const RAD = Math.PI / 180;
|
|
56
|
+
/** Points cast along each viewport edge, corners included. */
|
|
57
|
+
const EDGE_SAMPLES = 5;
|
|
58
|
+
function mul(a, b) {
|
|
59
|
+
return [
|
|
60
|
+
a[0] * b[0] + a[1] * b[3] + a[2] * b[6], a[0] * b[1] + a[1] * b[4] + a[2] * b[7], a[0] * b[2] + a[1] * b[5] + a[2] * b[8],
|
|
61
|
+
a[3] * b[0] + a[4] * b[3] + a[5] * b[6], a[3] * b[1] + a[4] * b[4] + a[5] * b[7], a[3] * b[2] + a[4] * b[5] + a[5] * b[8],
|
|
62
|
+
a[6] * b[0] + a[7] * b[3] + a[8] * b[6], a[6] * b[1] + a[7] * b[4] + a[8] * b[7], a[6] * b[2] + a[7] * b[5] + a[8] * b[8],
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
/** The tilt as one rotation matrix (row-major, CSS axes: y down, z towards the viewer). */
|
|
66
|
+
export function tiltMatrix(tilt = {}) {
|
|
67
|
+
return mul(mul(rotX((tilt.x ?? 0) * RAD), rotY((tilt.y ?? 0) * RAD)), rotZ((tilt.z ?? 0) * RAD));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Where the ray through screen point (`sx`, `sy`) (px from the viewport
|
|
71
|
+
* centre) meets the tilted plane, in plane px from the focus; `null` when it
|
|
72
|
+
* misses (the plane is edge-on, or the point is above the horizon).
|
|
73
|
+
*
|
|
74
|
+
* The camera sits `perspective` px in front of the screen on the centre line,
|
|
75
|
+
* as CSS `perspective` places it; with no perspective the rays are parallel.
|
|
76
|
+
* The plane passes through the viewport centre with normal `M · (0, 0, 1)`.
|
|
77
|
+
*/
|
|
78
|
+
export function planeHit(sx, sy, m, perspective) {
|
|
79
|
+
const nx = m[2];
|
|
80
|
+
const ny = m[5];
|
|
81
|
+
const nz = m[8];
|
|
82
|
+
// ray: origin o, direction d
|
|
83
|
+
const ox = perspective > 0 ? 0 : sx;
|
|
84
|
+
const oy = perspective > 0 ? 0 : sy;
|
|
85
|
+
const oz = perspective > 0 ? perspective : 0;
|
|
86
|
+
const dx = perspective > 0 ? sx : 0;
|
|
87
|
+
const dy = perspective > 0 ? sy : 0;
|
|
88
|
+
const dz = perspective > 0 ? -perspective : -1;
|
|
89
|
+
const nd = nx * dx + ny * dy + nz * dz;
|
|
90
|
+
if (Math.abs(nd) < 1e-9)
|
|
91
|
+
return null;
|
|
92
|
+
const t = -(nx * ox + ny * oy + nz * oz) / nd;
|
|
93
|
+
// behind the camera, or (an edge-on plane through the camera) at it
|
|
94
|
+
if (perspective > 0 && t <= 1e-6)
|
|
95
|
+
return null;
|
|
96
|
+
const px = ox + t * dx;
|
|
97
|
+
const py = oy + t * dy;
|
|
98
|
+
const pz = oz + t * dz;
|
|
99
|
+
// back into plane coordinates: the inverse of a rotation is its transpose
|
|
100
|
+
return { x: m[0] * px + m[3] * py + m[6] * pz, y: m[1] * px + m[4] * py + m[7] * pz };
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The cells to mount: every cell whose pitch box shows in the viewport, plus
|
|
104
|
+
* `margin` on every side.
|
|
105
|
+
*
|
|
106
|
+
* Points along the viewport's edges are cast onto the (tilted) plane with
|
|
107
|
+
* `planeHit`; the box around the hits is the visible part of the plane. A
|
|
108
|
+
* point that misses (the horizon is on screen) is walked back towards the
|
|
109
|
+
* centre to the last point that still hits. Every hit is pulled within
|
|
110
|
+
* `reach` cells of the focus, and the range is trimmed from its far sides to
|
|
111
|
+
* `maxCells`. A flat plane gives exactly the viewport.
|
|
112
|
+
*/
|
|
113
|
+
export function visibleCells(view) {
|
|
114
|
+
const { width, height, pitchX, pitchY, position } = view;
|
|
115
|
+
const stagger = view.stagger ?? 0;
|
|
116
|
+
const margin = view.margin ?? 1;
|
|
117
|
+
const reach = view.reach ?? 12;
|
|
118
|
+
const maxCells = Math.max(1, view.maxCells ?? 160);
|
|
119
|
+
const perspective = view.perspective ?? 1200;
|
|
120
|
+
const m = tiltMatrix(view.tilt);
|
|
121
|
+
let minX = 0;
|
|
122
|
+
let maxX = 0;
|
|
123
|
+
let minY = 0;
|
|
124
|
+
let maxY = 0;
|
|
125
|
+
const add = (hit) => {
|
|
126
|
+
let x = hit.x / pitchX;
|
|
127
|
+
let y = hit.y / pitchY;
|
|
128
|
+
const r = Math.hypot(x, y);
|
|
129
|
+
if (r > reach) {
|
|
130
|
+
x *= reach / r;
|
|
131
|
+
y *= reach / r;
|
|
132
|
+
}
|
|
133
|
+
if (x < minX)
|
|
134
|
+
minX = x;
|
|
135
|
+
if (x > maxX)
|
|
136
|
+
maxX = x;
|
|
137
|
+
if (y < minY)
|
|
138
|
+
minY = y;
|
|
139
|
+
if (y > maxY)
|
|
140
|
+
maxY = y;
|
|
141
|
+
};
|
|
142
|
+
const cast = (sx, sy) => {
|
|
143
|
+
const hit = planeHit(sx, sy, m, perspective);
|
|
144
|
+
if (hit)
|
|
145
|
+
return add(hit);
|
|
146
|
+
// walk back towards the centre (which always hits unless the plane is edge-on)
|
|
147
|
+
let lo = 0;
|
|
148
|
+
let hi = 1;
|
|
149
|
+
let last = null;
|
|
150
|
+
for (let i = 0; i < 24; i++) {
|
|
151
|
+
const mid = (lo + hi) / 2;
|
|
152
|
+
const h = planeHit(sx * mid, sy * mid, m, perspective);
|
|
153
|
+
if (h) {
|
|
154
|
+
last = h;
|
|
155
|
+
lo = mid;
|
|
156
|
+
}
|
|
157
|
+
else
|
|
158
|
+
hi = mid;
|
|
159
|
+
}
|
|
160
|
+
if (last)
|
|
161
|
+
add(last);
|
|
162
|
+
};
|
|
163
|
+
if (pitchX > 0 && pitchY > 0 && width > 0 && height > 0) {
|
|
164
|
+
const hw = width / 2;
|
|
165
|
+
const hh = height / 2;
|
|
166
|
+
for (let i = 0; i < EDGE_SAMPLES; i++) {
|
|
167
|
+
const f = -1 + (2 * i) / (EDGE_SAMPLES - 1);
|
|
168
|
+
cast(f * hw, -hh);
|
|
169
|
+
cast(f * hw, hh);
|
|
170
|
+
cast(-hw, f * hh);
|
|
171
|
+
cast(hw, f * hh);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// a cell covers its centre ± half a pitch; odd rows sit up to `stagger` further right
|
|
175
|
+
let col0 = Math.ceil(position.x + minX - 0.5 - stagger) - margin;
|
|
176
|
+
let col1 = Math.floor(position.x + maxX + 0.5) + margin;
|
|
177
|
+
let row0 = Math.ceil(position.y + minY - 0.5) - margin;
|
|
178
|
+
let row1 = Math.floor(position.y + maxY + 0.5) + margin;
|
|
179
|
+
// trim the side furthest from the focus until the range fits
|
|
180
|
+
while ((col1 - col0 + 1) * (row1 - row0 + 1) > maxCells && (col1 > col0 || row1 > row0)) {
|
|
181
|
+
const sides = [position.x - col0, col1 - position.x, position.y - row0, row1 - position.y];
|
|
182
|
+
let far = 0;
|
|
183
|
+
for (let i = 1; i < 4; i++)
|
|
184
|
+
if (sides[i] > sides[far])
|
|
185
|
+
far = i;
|
|
186
|
+
if (far === 0 && col1 > col0)
|
|
187
|
+
col0++;
|
|
188
|
+
else if (far === 1 && col1 > col0)
|
|
189
|
+
col1--;
|
|
190
|
+
else if (far === 2 && row1 > row0)
|
|
191
|
+
row0++;
|
|
192
|
+
else if (row1 > row0)
|
|
193
|
+
row1--;
|
|
194
|
+
else if (col1 > col0)
|
|
195
|
+
col0++;
|
|
196
|
+
}
|
|
197
|
+
return { col0, col1, row0, row1 };
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* The copy of `item` whose centre is nearest `from` (cells), for `goTo`,
|
|
201
|
+
* `open` and the keyboard. Rows are searched outwards from `from.y` and the
|
|
202
|
+
* search stops once a row cannot be nearer than the best copy found; every
|
|
203
|
+
* item shows within `count` rows, so it always ends. `null` for an index
|
|
204
|
+
* outside the items.
|
|
205
|
+
*/
|
|
206
|
+
export function nearestCopy(item, from, count, columns, repeat = "sequence", stagger = 0) {
|
|
207
|
+
if (!Number.isInteger(item) || item < 0 || item >= count)
|
|
208
|
+
return null;
|
|
209
|
+
const cols = Math.max(1, Math.floor(columns));
|
|
210
|
+
const rows = Math.ceil(count / cols);
|
|
211
|
+
const home = Math.round(from.y);
|
|
212
|
+
let best = null;
|
|
213
|
+
let bestD = Infinity;
|
|
214
|
+
const tryRow = (row) => {
|
|
215
|
+
// the columns (mod cols) of this row that show the item
|
|
216
|
+
const ks = [];
|
|
217
|
+
if (repeat === "sequence") {
|
|
218
|
+
for (let k = wrapIndex(item - row * cols, count); k < cols; k += count)
|
|
219
|
+
ks.push(k);
|
|
220
|
+
}
|
|
221
|
+
else if (wrapIndex(row, rows) === Math.floor(item / cols)) {
|
|
222
|
+
ks.push(item % cols);
|
|
223
|
+
}
|
|
224
|
+
const shift = rowShift(row, stagger);
|
|
225
|
+
for (const k of ks) {
|
|
226
|
+
const col = k + cols * Math.round((from.x - shift - k) / cols);
|
|
227
|
+
// the copies either side of the nearest can only tie or lose; check them for ties at .5
|
|
228
|
+
for (const c of [col - cols, col, col + cols]) {
|
|
229
|
+
const d = Math.hypot(c + shift - from.x, row - from.y);
|
|
230
|
+
if (d < bestD - 1e-12) {
|
|
231
|
+
bestD = d;
|
|
232
|
+
best = { col: c, row };
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
for (let step = 0; step <= 2 * count + 2; step++) {
|
|
238
|
+
const lowRow = home - step;
|
|
239
|
+
const highRow = home + step;
|
|
240
|
+
if (best && Math.min(Math.abs(lowRow - from.y), Math.abs(highRow - from.y)) > bestD)
|
|
241
|
+
break;
|
|
242
|
+
tryRow(highRow);
|
|
243
|
+
if (step > 0)
|
|
244
|
+
tryRow(lowRow);
|
|
245
|
+
}
|
|
246
|
+
return best;
|
|
247
|
+
}
|
|
248
|
+
/** The cell centre a glide should land on: the nearest row first, then the nearest column in that row. */
|
|
249
|
+
export function snapTarget(landing, stagger = 0) {
|
|
250
|
+
const row = Math.round(landing.y);
|
|
251
|
+
const shift = rowShift(row, stagger);
|
|
252
|
+
const col = Math.round(landing.x - shift);
|
|
253
|
+
return { col, row, x: col + shift, y: row };
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The bulge's falloff with distance `r` from the focus: 1 at the focus,
|
|
257
|
+
* easing down to 0 at `radius` and staying 0 beyond (a raised cosine, so the
|
|
258
|
+
* dome has no crease at its top or its rim).
|
|
259
|
+
*/
|
|
260
|
+
export function bulgeAt(r, radius) {
|
|
261
|
+
if (!(radius > 0))
|
|
262
|
+
return 0;
|
|
263
|
+
const t = Math.min(Math.abs(r) / radius, 1);
|
|
264
|
+
return (1 + Math.cos(Math.PI * t)) / 2;
|
|
265
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GridModifier } from "./types.js";
|
|
2
|
+
export interface BulgeOptions {
|
|
3
|
+
/** How far the plane has sunk at `radius` and beyond, px. Default `120`. */
|
|
4
|
+
readonly height?: number;
|
|
5
|
+
/** Where the dome ends, px from the focus on the plane. Default: the viewport's larger side. */
|
|
6
|
+
readonly radius?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The plane domes towards the viewer at the focus: the focused card stays at
|
|
10
|
+
* its real size (crisp text), the rest sink away with their distance, easing
|
|
11
|
+
* down to `height` px back at `radius`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function bulge(options?: BulgeOptions): GridModifier;
|
|
14
|
+
export interface FogOptions {
|
|
15
|
+
/** Cards closer than this to the focus (cells) are fully shown. Default `3`. */
|
|
16
|
+
readonly from?: number;
|
|
17
|
+
/** Cards this far away and beyond are gone. Default `6`. */
|
|
18
|
+
readonly to?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Fades cards out with their distance from the focus, so the edge of the
|
|
22
|
+
* mounted area (a steep tilt shows a long way back) never shows. Faded-out
|
|
23
|
+
* cards stop taking pointer events.
|
|
24
|
+
*/
|
|
25
|
+
export declare function fog(options?: FogOptions): GridModifier;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Grid's built-in cell modifiers. Like the carousel's, each is a factory
|
|
3
|
+
* returning a pure `(buf, cell, frame) => void`; `Grid.Root`'s `bulge` and
|
|
4
|
+
* `fog` props add them before any custom `modifiers`.
|
|
5
|
+
*/
|
|
6
|
+
import { bulgeAt } from "./math.js";
|
|
7
|
+
/**
|
|
8
|
+
* The plane domes towards the viewer at the focus: the focused card stays at
|
|
9
|
+
* its real size (crisp text), the rest sink away with their distance, easing
|
|
10
|
+
* down to `height` px back at `radius`.
|
|
11
|
+
*/
|
|
12
|
+
export function bulge(options = {}) {
|
|
13
|
+
const height = options.height ?? 120;
|
|
14
|
+
return (buf, cell, frame) => {
|
|
15
|
+
const radius = options.radius ?? Math.max(frame.width, frame.height);
|
|
16
|
+
const r = Math.hypot(cell.dx * frame.pitchX, cell.dy * frame.pitchY);
|
|
17
|
+
buf.z -= height * (1 - bulgeAt(r, radius));
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Fades cards out with their distance from the focus, so the edge of the
|
|
22
|
+
* mounted area (a steep tilt shows a long way back) never shows. Faded-out
|
|
23
|
+
* cards stop taking pointer events.
|
|
24
|
+
*/
|
|
25
|
+
export function fog(options = {}) {
|
|
26
|
+
const from = options.from ?? 3;
|
|
27
|
+
const to = Math.max(options.to ?? 6, from + 1e-6);
|
|
28
|
+
return (buf, cell) => {
|
|
29
|
+
const t = Math.min(1, Math.max(0, (cell.distance - from) / (to - from)));
|
|
30
|
+
const fade = 1 - t * t * (3 - 2 * t); // smoothstep
|
|
31
|
+
buf.opacity *= fade;
|
|
32
|
+
if (fade === 0)
|
|
33
|
+
buf.pointerEvents = "none";
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { SlotFrameBuffer } from "../carousel/engine/types.js";
|
|
2
|
+
import type { GridCellState, GridFrame } from "./types.js";
|
|
3
|
+
export interface GridOpenView {
|
|
4
|
+
readonly kind: "zoom" | "strip" | "panel";
|
|
5
|
+
/** Share of the viewport width `Grid.Panel` takes at the end side (`panel` view only, else 0). */
|
|
6
|
+
readonly panel: number;
|
|
7
|
+
/** Writes the cell's open look into a reset buffer: screen px from the viewport centre, upright. */
|
|
8
|
+
pose(buf: SlotFrameBuffer, cell: GridCellState, frame: GridFrame): void;
|
|
9
|
+
}
|
|
10
|
+
export interface ZoomOptions {
|
|
11
|
+
/** Share of the viewport the open card may fill. Default `0.8`. */
|
|
12
|
+
readonly size?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface StripOptions {
|
|
15
|
+
/** Scale of the thumbnails. Default `0.49`. */
|
|
16
|
+
readonly thumb?: number;
|
|
17
|
+
/** px between thumbnails. Default `12`. */
|
|
18
|
+
readonly gap?: number;
|
|
19
|
+
/** Share of the free space the open card may fill. Default `0.9`. */
|
|
20
|
+
readonly fit?: number;
|
|
21
|
+
/** px around the strip. Default `16`. */
|
|
22
|
+
readonly margin?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface GridPanelOptions extends StripOptions {
|
|
25
|
+
/** Share of the viewport width the panel takes, at the end side. Default `0.42`. */
|
|
26
|
+
readonly panel?: number;
|
|
27
|
+
}
|
|
28
|
+
/** 1 for the cell at the focus, falling to 0 one cell away in either direction. */
|
|
29
|
+
export declare function focusWeight(cell: GridCellState): number;
|
|
30
|
+
/**
|
|
31
|
+
* The open card grows to fill `size` of the viewport where it is; the other
|
|
32
|
+
* cards slide outwards, as if pushed by it, and fade.
|
|
33
|
+
*/
|
|
34
|
+
declare function zoom(options?: ZoomOptions): GridOpenView;
|
|
35
|
+
/**
|
|
36
|
+
* The open card fills a large box; its row becomes a strip of thumbnails
|
|
37
|
+
* along the bottom (click one to open it, or use the arrow keys); the other
|
|
38
|
+
* rows slide away and fade.
|
|
39
|
+
*/
|
|
40
|
+
declare function strip(options?: StripOptions): GridOpenView;
|
|
41
|
+
/**
|
|
42
|
+
* Like `strip`, with the open card moved towards the start to leave `panel`
|
|
43
|
+
* of the width for `<Grid.Panel>`, the consumer's text about the card.
|
|
44
|
+
*/
|
|
45
|
+
declare function panel(options?: GridPanelOptions): GridOpenView;
|
|
46
|
+
/**
|
|
47
|
+
* Turns a screen-space pose (px from the viewport centre, upright) into the
|
|
48
|
+
* tilted stage's coordinates, so it shows on screen exactly as written: the
|
|
49
|
+
* point goes through the inverse tilt `Mᵀ`, and the card takes `Mᵀ` as its own
|
|
50
|
+
* turn, so the stage's turn and the card's cancel. `m` is the stage's tilt
|
|
51
|
+
* matrix (`tiltMatrix`, row-major).
|
|
52
|
+
*/
|
|
53
|
+
export declare function screenToStage(buf: SlotFrameBuffer, m: readonly number[]): SlotFrameBuffer;
|
|
54
|
+
/**
|
|
55
|
+
* How the Grid shows an open card, for `Grid.Root`'s `open` prop:
|
|
56
|
+
*
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <Grid.Root items={pieces} open={gridOpen.strip()}> // a click opens; Esc, a drag or close() closes
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare const gridOpen: {
|
|
62
|
+
readonly zoom: typeof zoom;
|
|
63
|
+
readonly strip: typeof strip;
|
|
64
|
+
readonly panel: typeof panel;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Open views: how the Grid looks while a card is open (`open()` / `close()`).
|
|
3
|
+
*
|
|
4
|
+
* Each view writes a cell's open look in **screen** px from the viewport
|
|
5
|
+
* centre, flat and facing the viewer; `screenToStage` then turns that pose
|
|
6
|
+
* into the tilted stage's coordinates (the inverse of the tilt, applied to the
|
|
7
|
+
* point and to the card's own turn), and the Viewport blends it with the
|
|
8
|
+
* cell's grid pose by `openProgress` (`blendBuffers`, as the carousel's
|
|
9
|
+
* morph). Every term is continuous in the cell's offset from the focus, so
|
|
10
|
+
* stepping between cards while open is smooth too.
|
|
11
|
+
*/
|
|
12
|
+
import { eulerXYZ } from "../carousel/layout/presets/sphere.js";
|
|
13
|
+
/** 1 for the cell at the focus, falling to 0 one cell away in either direction. */
|
|
14
|
+
export function focusWeight(cell) {
|
|
15
|
+
return Math.max(0, 1 - Math.abs(cell.dx)) * Math.max(0, 1 - Math.abs(cell.dy));
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The open card grows to fill `size` of the viewport where it is; the other
|
|
19
|
+
* cards slide outwards, as if pushed by it, and fade.
|
|
20
|
+
*/
|
|
21
|
+
function zoom(options = {}) {
|
|
22
|
+
const size = options.size ?? 0.8;
|
|
23
|
+
return {
|
|
24
|
+
kind: "zoom",
|
|
25
|
+
panel: 0,
|
|
26
|
+
pose(buf, cell, frame) {
|
|
27
|
+
const w = focusWeight(cell);
|
|
28
|
+
const big = Math.max(0.05, Math.min((frame.width * size) / Math.max(frame.cellWidth, 1), (frame.height * size) / Math.max(frame.cellHeight, 1)));
|
|
29
|
+
const push = 1 + (big - 1) * 0.75;
|
|
30
|
+
buf.x = cell.dx * frame.pitchX * frame.dirX * push * (1 - w);
|
|
31
|
+
buf.y = cell.dy * frame.pitchY * push * (1 - w);
|
|
32
|
+
const s = 1 + (big - 1) * w;
|
|
33
|
+
buf.scaleX = s;
|
|
34
|
+
buf.scaleY = s;
|
|
35
|
+
buf.scaleZ = s; // uniform in 3D: the stage's turn and the card's must cancel around it
|
|
36
|
+
buf.z = 2 * w; // in front of anything flat in the scene
|
|
37
|
+
buf.opacity = w;
|
|
38
|
+
if (w === 0)
|
|
39
|
+
buf.pointerEvents = "none";
|
|
40
|
+
buf.zIndex = Math.round(1000 * w);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** The strip geometry, shared by `strip` (no panel) and `panel` (the open card moved towards the start). */
|
|
45
|
+
function stripPose(options, panel) {
|
|
46
|
+
const thumb = options.thumb ?? 0.49;
|
|
47
|
+
const gap = options.gap ?? 12;
|
|
48
|
+
const fit = options.fit ?? 0.9;
|
|
49
|
+
const margin = options.margin ?? 16;
|
|
50
|
+
return (buf, cell, frame) => {
|
|
51
|
+
const a = Math.abs(cell.dx);
|
|
52
|
+
const along = Math.min(1, a); // 0 the open card … 1 a thumbnail
|
|
53
|
+
const off = Math.min(1, Math.abs(cell.dy)); // other rows leave
|
|
54
|
+
const thumbW = frame.cellWidth * thumb;
|
|
55
|
+
const thumbH = frame.cellHeight * thumb;
|
|
56
|
+
const band = thumbH + 2 * margin;
|
|
57
|
+
const big = Math.max(0.05, Math.min((frame.width * (1 - panel) * fit) / Math.max(frame.cellWidth, 1), ((frame.height - band) * fit) / Math.max(frame.cellHeight, 1)));
|
|
58
|
+
// the open card centred in the space above the strip, beside the panel (end side)
|
|
59
|
+
const bigX = (-(frame.width * panel) / 2) * frame.dirX;
|
|
60
|
+
const bigY = -band / 2;
|
|
61
|
+
// the thumbnails: the open card's row, in reading order, along the bottom edge
|
|
62
|
+
const thumbX = cell.dx * (thumbW + gap) * frame.dirX;
|
|
63
|
+
const thumbY = frame.height / 2 - margin - thumbH / 2;
|
|
64
|
+
buf.x = bigX + (thumbX - bigX) * along;
|
|
65
|
+
buf.y = bigY + (thumbY - bigY) * along + Math.sign(cell.dy) * off * band;
|
|
66
|
+
const s = big + (thumb - big) * along;
|
|
67
|
+
buf.scaleX = s;
|
|
68
|
+
buf.scaleY = s;
|
|
69
|
+
buf.scaleZ = s; // uniform in 3D: the stage's turn and the card's must cancel around it
|
|
70
|
+
buf.z = 2 * (1 - along);
|
|
71
|
+
// thumbnails past the strip's ends, and every other row, fade out
|
|
72
|
+
const half = (frame.width / 2 - margin) / Math.max(thumbW + gap, 1);
|
|
73
|
+
const opacity = Math.min(1, Math.max(0, half + 0.5 - a)) * (1 - off);
|
|
74
|
+
buf.opacity = opacity;
|
|
75
|
+
if (opacity === 0)
|
|
76
|
+
buf.pointerEvents = "none";
|
|
77
|
+
buf.zIndex = 1000 - Math.round(a * 10) - Math.round(off * 100);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The open card fills a large box; its row becomes a strip of thumbnails
|
|
82
|
+
* along the bottom (click one to open it, or use the arrow keys); the other
|
|
83
|
+
* rows slide away and fade.
|
|
84
|
+
*/
|
|
85
|
+
function strip(options = {}) {
|
|
86
|
+
return { kind: "strip", panel: 0, pose: stripPose(options, 0) };
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Like `strip`, with the open card moved towards the start to leave `panel`
|
|
90
|
+
* of the width for `<Grid.Panel>`, the consumer's text about the card.
|
|
91
|
+
*/
|
|
92
|
+
function panel(options = {}) {
|
|
93
|
+
const share = options.panel ?? 0.42;
|
|
94
|
+
return { kind: "panel", panel: share, pose: stripPose(options, share) };
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Turns a screen-space pose (px from the viewport centre, upright) into the
|
|
98
|
+
* tilted stage's coordinates, so it shows on screen exactly as written: the
|
|
99
|
+
* point goes through the inverse tilt `Mᵀ`, and the card takes `Mᵀ` as its own
|
|
100
|
+
* turn, so the stage's turn and the card's cancel. `m` is the stage's tilt
|
|
101
|
+
* matrix (`tiltMatrix`, row-major).
|
|
102
|
+
*/
|
|
103
|
+
export function screenToStage(buf, m) {
|
|
104
|
+
const { x, y, z } = buf;
|
|
105
|
+
buf.x = m[0] * x + m[3] * y + m[6] * z;
|
|
106
|
+
buf.y = m[1] * x + m[4] * y + m[7] * z;
|
|
107
|
+
buf.z = m[2] * x + m[5] * y + m[8] * z;
|
|
108
|
+
const turn = eulerXYZ([m[0], m[3], m[6], m[1], m[4], m[7], m[2], m[5], m[8]]);
|
|
109
|
+
buf.rotateX = turn.x;
|
|
110
|
+
buf.rotateY = turn.y;
|
|
111
|
+
buf.rotateZ = turn.z;
|
|
112
|
+
return buf;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* How the Grid shows an open card, for `Grid.Root`'s `open` prop:
|
|
116
|
+
*
|
|
117
|
+
* ```tsx
|
|
118
|
+
* <Grid.Root items={pieces} open={gridOpen.strip()}> // a click opens; Esc, a drag or close() closes
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export const gridOpen = { zoom, strip, panel };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineSchema } from "../schema/define.js";
|
|
2
|
+
// The Grid's open views (`gridOpen.zoom / strip / panel`), one file for the three.
|
|
3
|
+
const stripFields = {
|
|
4
|
+
thumb: { kind: "number", label: "Thumbnail size", min: 0.2, max: 0.8, step: 0.01, default: 0.49, help: "Of a card in the grid." },
|
|
5
|
+
gap: { kind: "number", label: "Gap between thumbnails", min: 0, max: 48, step: 1, unit: "px", default: 12 },
|
|
6
|
+
fit: { kind: "number", label: "Open card fills", min: 0.5, max: 1, step: 0.01, default: 0.9, help: "Of the space above the strip." },
|
|
7
|
+
margin: { kind: "number", label: "Space around the strip", min: 0, max: 64, step: 1, unit: "px", default: 16, advanced: true },
|
|
8
|
+
};
|
|
9
|
+
export const GRID_OPEN_ZOOM_SCHEMA = defineSchema()({
|
|
10
|
+
id: "zoom",
|
|
11
|
+
family: "grid-open",
|
|
12
|
+
factory: "gridOpen.zoom",
|
|
13
|
+
fields: {
|
|
14
|
+
size: { kind: "number", label: "Open card fills", min: 0.3, max: 1, step: 0.01, default: 0.8, help: "Of the viewport; the other cards slide away and fade." },
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export const GRID_OPEN_STRIP_SCHEMA = defineSchema()({
|
|
18
|
+
id: "strip",
|
|
19
|
+
family: "grid-open",
|
|
20
|
+
factory: "gridOpen.strip",
|
|
21
|
+
fields: stripFields,
|
|
22
|
+
});
|
|
23
|
+
export const GRID_OPEN_PANEL_SCHEMA = defineSchema()({
|
|
24
|
+
id: "panel",
|
|
25
|
+
family: "grid-open",
|
|
26
|
+
factory: "gridOpen.panel",
|
|
27
|
+
fields: {
|
|
28
|
+
...stripFields,
|
|
29
|
+
panel: { kind: "number", label: "Panel width", min: 0.25, max: 0.6, step: 0.01, default: 0.42, help: "Of the viewport, at the end side: Grid.Panel's text goes there." },
|
|
30
|
+
},
|
|
31
|
+
});
|