motionary 10.3.0 → 10.5.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/AGENTS.md +4 -0
- package/CHANGELOG.md +31 -0
- package/README.md +72 -0
- package/bin/motionary-mcp.mjs +265 -0
- package/dist/chunks/anim-image-BlNPv4JG.js +166 -0
- package/dist/chunks/anim-image-BlNPv4JG.js.map +1 -0
- package/dist/chunks/anim-image-DuxvYhq6.cjs +174 -0
- package/dist/chunks/anim-image-DuxvYhq6.cjs.map +1 -0
- package/dist/chunks/audio-BpU-A1m1.cjs.map +1 -1
- package/dist/chunks/{audio-D95jwlOh.js → audio-CWt1xdZB.js} +3 -3
- package/dist/chunks/{audio-D95jwlOh.js.map → audio-CWt1xdZB.js.map} +1 -1
- package/dist/chunks/{base-BnRyfuyM.js → base-BTev8qxg.js} +2 -2
- package/dist/chunks/{base-BnRyfuyM.js.map → base-BTev8qxg.js.map} +1 -1
- package/dist/chunks/base-DBheNxJu.cjs.map +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js.map +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs.map +1 -1
- package/dist/chunks/builtins-CKKZNR95.cjs.map +1 -1
- package/dist/chunks/{builtins-CqIq1zBv.js → builtins-CPmS6aDB.js} +3 -3
- package/dist/chunks/{builtins-CqIq1zBv.js.map → builtins-CPmS6aDB.js.map} +1 -1
- package/dist/chunks/core-B5T0dhFH.cjs.map +1 -1
- package/dist/chunks/{core-DsGoL9EY.js → core-BviA7nFa.js} +2 -2
- package/dist/chunks/{core-DsGoL9EY.js.map → core-BviA7nFa.js.map} +1 -1
- package/dist/chunks/core-D74Fz-dL.cjs.map +1 -1
- package/dist/chunks/core-D7cVumUu.js.map +1 -1
- package/dist/chunks/{core-XA2yhn1b.js → core-KiM7MXjL.js} +2 -2
- package/dist/chunks/{core-XA2yhn1b.js.map → core-KiM7MXjL.js.map} +1 -1
- package/dist/chunks/core-MQlXZKUG.cjs.map +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +94 -0
- package/dist/chunks/ease-HwYZnZat.cjs.map +1 -0
- package/dist/chunks/ease-XN8_0sXu.js +89 -0
- package/dist/chunks/ease-XN8_0sXu.js.map +1 -0
- package/dist/chunks/fx-B_pbhpDp.cjs.map +1 -1
- package/dist/chunks/{fx-CtnrFEg9.js → fx-CgWKqVsn.js} +2 -2
- package/dist/chunks/{fx-CtnrFEg9.js.map → fx-CgWKqVsn.js.map} +1 -1
- package/dist/chunks/generative-2LhxG5BJ.js.map +1 -1
- package/dist/chunks/generative-BHIj-NU0.cjs.map +1 -1
- package/dist/chunks/{gpu-CDcXiNA8.js → gpu-BWfgYWMY.js} +2 -2
- package/dist/chunks/{gpu-CDcXiNA8.js.map → gpu-BWfgYWMY.js.map} +1 -1
- package/dist/chunks/gpu-cUixt7kT.cjs.map +1 -1
- package/dist/chunks/index-tags-B-JBecYg.js.map +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs.map +1 -1
- package/dist/chunks/{keyframes-DVAC5sQI.js → keyframes-B8ITIAVa.js} +3 -2
- package/dist/chunks/keyframes-B8ITIAVa.js.map +1 -0
- package/dist/chunks/{keyframes-Dw9zwVQa.cjs → keyframes-Ce1s05n3.cjs} +4 -3
- package/dist/chunks/keyframes-Ce1s05n3.cjs.map +1 -0
- package/dist/chunks/{manifest-D58HXVY-.js → manifest-BHx5yPN6.js} +2 -2
- package/dist/chunks/{manifest-D58HXVY-.js.map → manifest-BHx5yPN6.js.map} +1 -1
- package/dist/chunks/manifest-PaF9B8Vt.cjs.map +1 -1
- package/dist/chunks/{player-48Zy_NBG.js → player-BfHMNtiM.js} +4 -4
- package/dist/chunks/{player-48Zy_NBG.js.map → player-BfHMNtiM.js.map} +1 -1
- package/dist/chunks/player-C4y4jXSv.cjs.map +1 -1
- package/dist/chunks/presets-BYBVJVeP.js.map +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs.map +1 -1
- package/dist/chunks/{registry-gFJRpPES.js → registry-BKzyg1JV.js} +2 -2
- package/dist/chunks/{registry-gFJRpPES.js.map → registry-BKzyg1JV.js.map} +1 -1
- package/dist/chunks/{registry-46AAzyeC.js → registry-DXdFb2fJ.js} +3 -3
- package/dist/chunks/{registry-46AAzyeC.js.map → registry-DXdFb2fJ.js.map} +1 -1
- package/dist/chunks/{registry-CSVil2qJ.cjs → registry-VhfPSI0v.cjs} +2 -2
- package/dist/chunks/{registry-CSVil2qJ.cjs.map → registry-VhfPSI0v.cjs.map} +1 -1
- package/dist/chunks/registry-xQZnSqqV.cjs.map +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js.map +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs.map +1 -1
- package/dist/chunks/{spring-CZDNyqWp.js → spring-BHuP55DR.js} +2 -2
- package/dist/chunks/{spring-CZDNyqWp.js.map → spring-BHuP55DR.js.map} +1 -1
- package/dist/chunks/spring-BlTQD2AV.cjs.map +1 -1
- package/dist/chunks/stagger-CCFyhzSw.cjs.map +1 -1
- package/dist/chunks/stagger-DtMKo2SK.js.map +1 -1
- package/dist/chunks/{ticker-COOYAyQy.js → ticker-C5RMHMW7.js} +2 -2
- package/dist/chunks/{ticker-COOYAyQy.js.map → ticker-C5RMHMW7.js.map} +1 -1
- package/dist/chunks/{ticker-gHv6pNfx.cjs → ticker-DvmC6WLS.cjs} +2 -2
- package/dist/chunks/{ticker-gHv6pNfx.cjs.map → ticker-DvmC6WLS.cjs.map} +1 -1
- package/dist/chunks/{tween-CGyolmzB.js → tween-CPtm-EdT.js} +4 -90
- package/dist/chunks/tween-CPtm-EdT.js.map +1 -0
- package/dist/chunks/{tween-CFN0WcOb.cjs → tween-_BGIl6hK.cjs} +4 -94
- package/dist/chunks/tween-_BGIl6hK.cjs.map +1 -0
- package/dist/chunks/variants-CrDDJoYK.cjs.map +1 -1
- package/dist/chunks/{variants-GU3yIL4F.js → variants-CsRGUIyA.js} +2 -2
- package/dist/chunks/{variants-GU3yIL4F.js.map → variants-CsRGUIyA.js.map} +1 -1
- package/dist/components/a11y.cjs.map +1 -1
- package/dist/components/a11y.js +2 -2
- package/dist/components/a11y.js.map +1 -1
- package/dist/components/angular.cjs.map +1 -1
- package/dist/components/angular.js +8 -8
- package/dist/components/angular.js.map +1 -1
- package/dist/components/background.cjs.map +1 -1
- package/dist/components/background.js +2 -2
- package/dist/components/background.js.map +1 -1
- package/dist/components/bridge.cjs.map +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/bridge.js.map +1 -1
- package/dist/components/cards.cjs.map +1 -1
- package/dist/components/cards.js +2 -2
- package/dist/components/cards.js.map +1 -1
- package/dist/components/click.cjs.map +1 -1
- package/dist/components/click.js +3 -3
- package/dist/components/click.js.map +1 -1
- package/dist/components/core.cjs.map +1 -1
- package/dist/components/core.js.map +1 -1
- package/dist/components/depth.cjs.map +1 -1
- package/dist/components/depth.js +3 -3
- package/dist/components/depth.js.map +1 -1
- package/dist/components/design.cjs.map +1 -1
- package/dist/components/design.js +3 -3
- package/dist/components/design.js.map +1 -1
- package/dist/components/dsl.cjs.map +1 -1
- package/dist/components/dsl.js +2 -2
- package/dist/components/dsl.js.map +1 -1
- package/dist/components/effects.cjs.map +1 -1
- package/dist/components/effects.js +9 -9
- package/dist/components/effects.js.map +1 -1
- package/dist/components/engine.cjs.map +1 -1
- package/dist/components/engine.js +2 -2
- package/dist/components/engine.js.map +1 -1
- package/dist/components/feedback.cjs.map +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/feedback.js.map +1 -1
- package/dist/components/fx-3d.cjs.map +1 -1
- package/dist/components/fx-3d.js +2 -2
- package/dist/components/fx-3d.js.map +1 -1
- package/dist/components/fx-ai.cjs.map +1 -1
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-ai.js.map +1 -1
- package/dist/components/fx-chart.cjs.map +1 -1
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-chart.js.map +1 -1
- package/dist/components/fx-cinema.cjs.map +1 -1
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cinema.js.map +1 -1
- package/dist/components/fx-cyber.cjs.map +1 -1
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-cyber.js.map +1 -1
- package/dist/components/fx-festival.cjs.map +1 -1
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-festival.js.map +1 -1
- package/dist/components/fx-focus.cjs.map +1 -1
- package/dist/components/fx-focus.js +2 -2
- package/dist/components/fx-focus.js.map +1 -1
- package/dist/components/fx-form.cjs.map +1 -1
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-form.js.map +1 -1
- package/dist/components/fx-game.cjs.map +1 -1
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-game.js.map +1 -1
- package/dist/components/fx-genart.cjs.map +1 -1
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-genart.js.map +1 -1
- package/dist/components/fx-geo.cjs.map +1 -1
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-geo.js.map +1 -1
- package/dist/components/fx-gesture.cjs.map +1 -1
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gesture.js.map +1 -1
- package/dist/components/fx-gpu.js +3 -3
- package/dist/components/fx-light.cjs.map +1 -1
- package/dist/components/fx-light.js +2 -2
- package/dist/components/fx-light.js.map +1 -1
- package/dist/components/fx-lottie.cjs.map +1 -1
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-lottie.js.map +1 -1
- package/dist/components/fx-morph.cjs.map +1 -1
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-morph.js.map +1 -1
- package/dist/components/fx-music.cjs.map +1 -1
- package/dist/components/fx-music.js +3 -3
- package/dist/components/fx-music.js.map +1 -1
- package/dist/components/fx-organic.cjs.map +1 -1
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-organic.js.map +1 -1
- package/dist/components/fx-paper.cjs.map +1 -1
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-paper.js.map +1 -1
- package/dist/components/fx-perf.cjs.map +1 -1
- package/dist/components/fx-perf.js +2 -2
- package/dist/components/fx-perf.js.map +1 -1
- package/dist/components/fx-physics.cjs.map +1 -1
- package/dist/components/fx-physics.js +2 -2
- package/dist/components/fx-physics.js.map +1 -1
- package/dist/components/fx-retro.cjs.map +1 -1
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-retro.js.map +1 -1
- package/dist/components/fx-safe.cjs.map +1 -1
- package/dist/components/fx-safe.js +2 -2
- package/dist/components/fx-safe.js.map +1 -1
- package/dist/components/fx-shop.cjs.map +1 -1
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-shop.js.map +1 -1
- package/dist/components/fx-social.cjs.map +1 -1
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-social.js.map +1 -1
- package/dist/components/fx-spatial.cjs.map +1 -1
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-spatial.js.map +1 -1
- package/dist/components/fx-surface.cjs.map +1 -1
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-surface.js.map +1 -1
- package/dist/components/fx-text.cjs.map +1 -1
- package/dist/components/fx-text.js +2 -2
- package/dist/components/fx-text.js.map +1 -1
- package/dist/components/fx-transitions.cjs.map +1 -1
- package/dist/components/fx-transitions.js +3 -3
- package/dist/components/fx-transitions.js.map +1 -1
- package/dist/components/fx-video.cjs.map +1 -1
- package/dist/components/fx-video.js +2 -2
- package/dist/components/fx-video.js.map +1 -1
- package/dist/components/fx-weather.cjs.map +1 -1
- package/dist/components/fx-weather.js +2 -2
- package/dist/components/fx-weather.js.map +1 -1
- package/dist/components/fx.cjs.map +1 -1
- package/dist/components/fx.js +6 -6
- package/dist/components/fx.js.map +1 -1
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.js +6 -6
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/gesture.cjs.map +1 -1
- package/dist/components/gesture.js +4 -4
- package/dist/components/gesture.js.map +1 -1
- package/dist/components/interaction.cjs.map +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/interaction.js.map +1 -1
- package/dist/components/layout.cjs.map +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/layout.js.map +1 -1
- package/dist/components/lazy.cjs.map +1 -1
- package/dist/components/lazy.js.map +1 -1
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js.map +1 -1
- package/dist/components/marketplace.cjs.map +1 -1
- package/dist/components/marketplace.js +4 -4
- package/dist/components/marketplace.js.map +1 -1
- package/dist/components/native.cjs.map +1 -1
- package/dist/components/native.js +3 -3
- package/dist/components/native.js.map +1 -1
- package/dist/components/packs.cjs.map +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/packs.js.map +1 -1
- package/dist/components/page.cjs.map +1 -1
- package/dist/components/page.js +3 -3
- package/dist/components/page.js.map +1 -1
- package/dist/components/perf.cjs.map +1 -1
- package/dist/components/perf.js +2 -2
- package/dist/components/perf.js.map +1 -1
- package/dist/components/physics.cjs.map +1 -1
- package/dist/components/physics.js +3 -3
- package/dist/components/physics.js.map +1 -1
- package/dist/components/plugins.cjs.map +1 -1
- package/dist/components/plugins.js +4 -4
- package/dist/components/plugins.js.map +1 -1
- package/dist/components/react.cjs.map +1 -1
- package/dist/components/react.js.map +1 -1
- package/dist/components/reveal.cjs.map +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/reveal.js.map +1 -1
- package/dist/components/solid.cjs.map +1 -1
- package/dist/components/solid.js +8 -8
- package/dist/components/solid.js.map +1 -1
- package/dist/components/svelte.cjs.map +1 -1
- package/dist/components/svelte.js +8 -8
- package/dist/components/svelte.js.map +1 -1
- package/dist/components/svg.cjs.map +1 -1
- package/dist/components/svg.js +1 -1
- package/dist/components/svg.js.map +1 -1
- package/dist/components/text.cjs.map +1 -1
- package/dist/components/text.js +2 -2
- package/dist/components/text.js.map +1 -1
- package/dist/components/timeline.cjs.map +1 -1
- package/dist/components/timeline.js +3 -3
- package/dist/components/timeline.js.map +1 -1
- package/dist/components/tokens.cjs.map +1 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/transitions.cjs.map +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/transitions.js.map +1 -1
- package/dist/components/ui.cjs.map +1 -1
- package/dist/components/ui.js +4 -4
- package/dist/components/ui.js.map +1 -1
- package/dist/components/vue.cjs.map +1 -1
- package/dist/components/vue.js +8 -8
- package/dist/components/vue.js.map +1 -1
- package/dist/components/webgl.cjs.map +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/webgl.js.map +1 -1
- package/dist/components/widgets.cjs +1102 -216
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +367 -2
- package/dist/components/widgets.d.ts +367 -2
- package/dist/components/widgets.js +1100 -225
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +10 -10
- package/dist/components.js.map +1 -1
- package/dist/element.cjs.map +1 -1
- package/dist/element.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +303 -1
- package/dist/llms.txt +16 -2
- package/dist/manifest.json +806 -1
- package/dist/presets/extended.cjs.map +1 -1
- package/dist/presets/extended.js.map +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js.map +1 -1
- package/dist/runtime/format-apng.cjs +131 -0
- package/dist/runtime/format-apng.cjs.map +1 -0
- package/dist/runtime/format-apng.d.cts +250 -0
- package/dist/runtime/format-apng.d.ts +250 -0
- package/dist/runtime/format-apng.iife.js +2 -0
- package/dist/runtime/format-apng.iife.js.map +1 -0
- package/dist/runtime/format-apng.js +123 -0
- package/dist/runtime/format-apng.js.map +1 -0
- package/dist/runtime/format-css.cjs +5 -4
- package/dist/runtime/format-css.cjs.map +1 -1
- package/dist/runtime/format-css.js +5 -4
- package/dist/runtime/format-css.js.map +1 -1
- package/dist/runtime/format-gif.cjs +206 -0
- package/dist/runtime/format-gif.cjs.map +1 -0
- package/dist/runtime/format-gif.d.cts +223 -0
- package/dist/runtime/format-gif.d.ts +223 -0
- package/dist/runtime/format-gif.iife.js +2 -0
- package/dist/runtime/format-gif.iife.js.map +1 -0
- package/dist/runtime/format-gif.js +199 -0
- package/dist/runtime/format-gif.js.map +1 -0
- package/dist/runtime/format-gltf.cjs +207 -0
- package/dist/runtime/format-gltf.cjs.map +1 -0
- package/dist/runtime/format-gltf.d.cts +251 -0
- package/dist/runtime/format-gltf.d.ts +251 -0
- package/dist/runtime/format-gltf.iife.js +2 -0
- package/dist/runtime/format-gltf.iife.js.map +1 -0
- package/dist/runtime/format-gltf.js +200 -0
- package/dist/runtime/format-gltf.js.map +1 -0
- package/dist/runtime/format-motion.cjs +9 -8
- package/dist/runtime/format-motion.cjs.map +1 -1
- package/dist/runtime/format-motion.js +5 -4
- package/dist/runtime/format-motion.js.map +1 -1
- package/dist/runtime/format-obj.cjs +181 -0
- package/dist/runtime/format-obj.cjs.map +1 -0
- package/dist/runtime/format-obj.d.cts +176 -0
- package/dist/runtime/format-obj.d.ts +176 -0
- package/dist/runtime/format-obj.iife.js +2 -0
- package/dist/runtime/format-obj.iife.js.map +1 -0
- package/dist/runtime/format-obj.js +174 -0
- package/dist/runtime/format-obj.js.map +1 -0
- package/dist/runtime/format-sprite.cjs +4 -3
- package/dist/runtime/format-sprite.cjs.map +1 -1
- package/dist/runtime/format-sprite.js +4 -3
- package/dist/runtime/format-sprite.js.map +1 -1
- package/dist/runtime/format-svg.cjs +5 -4
- package/dist/runtime/format-svg.cjs.map +1 -1
- package/dist/runtime/format-svg.js +4 -3
- package/dist/runtime/format-svg.js.map +1 -1
- package/dist/runtime/format-webp.cjs +123 -0
- package/dist/runtime/format-webp.cjs.map +1 -0
- package/dist/runtime/format-webp.d.cts +245 -0
- package/dist/runtime/format-webp.d.ts +245 -0
- package/dist/runtime/format-webp.iife.js +2 -0
- package/dist/runtime/format-webp.iife.js.map +1 -0
- package/dist/runtime/format-webp.js +115 -0
- package/dist/runtime/format-webp.js.map +1 -0
- package/dist/runtime/gl.cjs +763 -0
- package/dist/runtime/gl.cjs.map +1 -0
- package/dist/runtime/gl.d.cts +260 -0
- package/dist/runtime/gl.d.ts +260 -0
- package/dist/runtime/gl.iife.js +2 -0
- package/dist/runtime/gl.iife.js.map +1 -0
- package/dist/runtime/gl.js +739 -0
- package/dist/runtime/gl.js.map +1 -0
- package/dist/runtime/scroll.cjs +2 -2
- package/dist/runtime/scroll.cjs.map +1 -1
- package/dist/runtime/scroll.js +2 -2
- package/dist/runtime/scroll.js.map +1 -1
- package/dist/runtime/smooth.cjs +284 -0
- package/dist/runtime/smooth.cjs.map +1 -0
- package/dist/runtime/smooth.d.cts +137 -0
- package/dist/runtime/smooth.d.ts +137 -0
- package/dist/runtime/smooth.iife.js +2 -0
- package/dist/runtime/smooth.iife.js.map +1 -0
- package/dist/runtime/smooth.js +279 -0
- package/dist/runtime/smooth.js.map +1 -0
- package/dist/runtime/text.cjs +1 -1
- package/dist/runtime/text.cjs.map +1 -1
- package/dist/runtime/text.js +1 -1
- package/dist/runtime/text.js.map +1 -1
- package/dist/runtime.cjs +9 -8
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +1 -1
- package/dist/runtime.iife.js.map +1 -1
- package/dist/runtime.js +6 -5
- package/dist/runtime.js.map +1 -1
- package/dist/solid.cjs.map +1 -1
- package/dist/solid.js.map +1 -1
- package/dist/svelte.cjs.map +1 -1
- package/dist/svelte.js.map +1 -1
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components/README.md +17 -7
- package/docs/components/usa-gl-scene.md +66 -0
- package/docs/components/usa-gpu-particles.md +32 -0
- package/docs/components/usa-parallax-layers.md +38 -0
- package/docs/components/usa-scroll-ring.md +32 -0
- package/docs/components/usa-shader-backdrop.md +36 -0
- package/docs/components/usa-smooth-scroll.md +60 -0
- package/docs/components/usa-three-scene.md +20 -0
- package/docs/components.md +97 -0
- package/docs/mcp.md +50 -0
- package/docs/runtime/format-apng.md +59 -0
- package/docs/runtime/format-gif.md +60 -0
- package/docs/runtime/format-gltf.md +63 -0
- package/docs/runtime/format-obj.md +59 -0
- package/docs/runtime/format-webp.md +58 -0
- package/docs/runtime/gl.md +62 -0
- package/docs/runtime/smooth.md +60 -0
- package/package.json +75 -3
- package/dist/chunks/keyframes-DVAC5sQI.js.map +0 -1
- package/dist/chunks/keyframes-Dw9zwVQa.cjs.map +0 -1
- package/dist/chunks/tween-CFN0WcOb.cjs.map +0 -1
- package/dist/chunks/tween-CGyolmzB.js.map +0 -1
|
@@ -2195,6 +2195,364 @@ interface UsaTextSplitterElement extends UsaElement {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
declare function defineTextSplitter(tag?: string): CustomElementConstructor | undefined;
|
|
2197
2197
|
|
|
2198
|
+
/**
|
|
2199
|
+
* `<usa-scroll-ring label back-to-top></usa-scroll-ring>` (10.4, scroll-driven
|
|
2200
|
+
* 3.0) — a circular scroll-progress indicator for the page or for any scroll
|
|
2201
|
+
* container (`for=".article"`, looked up next to the ring first). Native
|
|
2202
|
+
* `animation-timeline: scroll()` first (the ring then animates off the main
|
|
2203
|
+
* thread, no script per frame); a small passive JS loop where scroll
|
|
2204
|
+
* timelines are missing (`engine="auto | native | js"`, the one in use is
|
|
2205
|
+
* reflected in `data-engine`). `label` shows the percentage, `back-to-top`
|
|
2206
|
+
* makes it a button that scrolls the target back to the start, `size`,
|
|
2207
|
+
* `thickness`, `horizontal`, `preview` (demo: glides the tracked container
|
|
2208
|
+
* back and forth while visible). `progress` (0–1); `usa:progress` on change
|
|
2209
|
+
* (whole percents), `usa:top`.
|
|
2210
|
+
*/
|
|
2211
|
+
interface UsaScrollRingElement extends UsaElement {
|
|
2212
|
+
readonly progress: number;
|
|
2213
|
+
readonly engine: 'native' | 'js';
|
|
2214
|
+
}
|
|
2215
|
+
declare function defineScrollRing(tag?: string): CustomElementConstructor | undefined;
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* `<usa-parallax-layers range="120"><img data-depth="0.2" …><h2 data-depth="-0.4">…</h2></usa-parallax-layers>`
|
|
2219
|
+
* (10.4, scroll-driven 3.0) — a parallax container: each child with
|
|
2220
|
+
* `data-depth` (−1…1; 0 = still, positive = slower / behind, negative =
|
|
2221
|
+
* faster / in front) moves by `depth × range` px while the container crosses
|
|
2222
|
+
* the viewport. Native `view()` scroll timeline first (no script per frame),
|
|
2223
|
+
* JS fallback otherwise (`engine="auto | native | js"`, reflected in
|
|
2224
|
+
* `data-engine`); `horizontal` moves layers sideways, `pointer` adds a
|
|
2225
|
+
* pointer-driven tilt of the layers (`strength` px), `preview` loops the
|
|
2226
|
+
* motion when the page cannot scroll (thumbnails). Static under reduced
|
|
2227
|
+
* motion. `layers()`, `progress`; `usa:progress`.
|
|
2228
|
+
*/
|
|
2229
|
+
interface UsaParallaxLayersElement extends UsaElement {
|
|
2230
|
+
layers(): HTMLElement[];
|
|
2231
|
+
readonly progress: number;
|
|
2232
|
+
}
|
|
2233
|
+
declare function defineParallaxLayers(tag?: string): CustomElementConstructor | undefined;
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* `motionary/runtime/smooth` (10.4) — smooth (inertial) scrolling on the
|
|
2237
|
+
* runtime ticker, written for Motionary (own implementation and API).
|
|
2238
|
+
*
|
|
2239
|
+
* - Wheel / trackpad input is eased towards its target (`lerp` or a fixed
|
|
2240
|
+
* `duration` + `ease`) on the shared ticker; keyboard, scrollbar dragging,
|
|
2241
|
+
* find-in-page and screen-reader scrolling stay native (the target follows
|
|
2242
|
+
* them), touch stays native by default (`touch: true` to smooth it).
|
|
2243
|
+
* - Works on the window or inside any scrollable `wrapper`; vertical or
|
|
2244
|
+
* horizontal; nested scrollables and `[data-smooth-ignore]` are left alone.
|
|
2245
|
+
* - Anchor links (`#id`) glide to their target (with `offset`), focus moves
|
|
2246
|
+
* for keyboard users, and the URL hash is kept.
|
|
2247
|
+
* - **Off under `prefers-reduced-motion: reduce`** (and while the media query
|
|
2248
|
+
* matches; it re-enables when it stops matching) — wheel scrolling is then
|
|
2249
|
+
* fully native. `force: true` overrides this only for non-motion use cases.
|
|
2250
|
+
* - Real `scroll` events still fire, so `motionary/runtime/scroll` scenes,
|
|
2251
|
+
* IntersectionObservers and CSS scroll timelines all keep working.
|
|
2252
|
+
* SSR-safe: nothing touches `window` until `smoothScroll()` is called.
|
|
2253
|
+
*/
|
|
2254
|
+
|
|
2255
|
+
interface SmoothOptions {
|
|
2256
|
+
/** Scroll container (default: the window / document scroller). */
|
|
2257
|
+
wrapper?: HTMLElement | Window;
|
|
2258
|
+
/** Easing factor per 60 fps frame, 0–1 (default 0.1). Ignored when `duration` is set. */
|
|
2259
|
+
lerp?: number;
|
|
2260
|
+
/** Fixed glide time in ms (with `ease`) instead of `lerp`. */
|
|
2261
|
+
duration?: number;
|
|
2262
|
+
ease?: string | Ease;
|
|
2263
|
+
orientation?: 'vertical' | 'horizontal';
|
|
2264
|
+
/** Wheel delta multiplier (default 1). */
|
|
2265
|
+
wheelMultiplier?: number;
|
|
2266
|
+
/** Smooth touch scrolling too (default false: native momentum is better on touch devices). */
|
|
2267
|
+
touch?: boolean;
|
|
2268
|
+
touchMultiplier?: number;
|
|
2269
|
+
/** Glide to `#anchor` links (default true). */
|
|
2270
|
+
anchors?: boolean | {
|
|
2271
|
+
offset?: number;
|
|
2272
|
+
};
|
|
2273
|
+
/** Ignore prefers-reduced-motion (default false — leave it off unless the motion is essential). */
|
|
2274
|
+
force?: boolean;
|
|
2275
|
+
onScroll?: (s: SmoothScroll) => void;
|
|
2276
|
+
}
|
|
2277
|
+
interface ScrollToOptions2 {
|
|
2278
|
+
offset?: number;
|
|
2279
|
+
/** Jump without animating. */
|
|
2280
|
+
immediate?: boolean;
|
|
2281
|
+
duration?: number;
|
|
2282
|
+
ease?: string | Ease;
|
|
2283
|
+
onComplete?: () => void;
|
|
2284
|
+
}
|
|
2285
|
+
declare class SmoothScroll {
|
|
2286
|
+
/** Current (animated) scroll position, px. */
|
|
2287
|
+
current: number;
|
|
2288
|
+
/** Where the scroll is heading, px. */
|
|
2289
|
+
target: number;
|
|
2290
|
+
/** px per frame of the last update. */
|
|
2291
|
+
velocity: number;
|
|
2292
|
+
/** True while gliding. */
|
|
2293
|
+
isScrolling: boolean;
|
|
2294
|
+
private o;
|
|
2295
|
+
private el;
|
|
2296
|
+
private win;
|
|
2297
|
+
private stopped;
|
|
2298
|
+
private reduced;
|
|
2299
|
+
private off;
|
|
2300
|
+
private tickOff;
|
|
2301
|
+
private written;
|
|
2302
|
+
private glide;
|
|
2303
|
+
private listeners;
|
|
2304
|
+
private touchY;
|
|
2305
|
+
constructor(o?: SmoothOptions);
|
|
2306
|
+
private on;
|
|
2307
|
+
private get horizontal();
|
|
2308
|
+
private axis;
|
|
2309
|
+
/** The scroll position the browser reports. */
|
|
2310
|
+
get native(): number;
|
|
2311
|
+
/** Maximum scroll, px. */
|
|
2312
|
+
get limit(): number;
|
|
2313
|
+
/** 0–1 */
|
|
2314
|
+
get progress(): number;
|
|
2315
|
+
/** Smoothing is running (not stopped, not reduced motion). */
|
|
2316
|
+
get active(): boolean;
|
|
2317
|
+
private wheel;
|
|
2318
|
+
private push;
|
|
2319
|
+
private start;
|
|
2320
|
+
private tick;
|
|
2321
|
+
private easeOf;
|
|
2322
|
+
private write;
|
|
2323
|
+
private halt;
|
|
2324
|
+
private anchor;
|
|
2325
|
+
/** Scroll to a position (px), an element, or a selector. Animated unless reduced motion / `immediate`. */
|
|
2326
|
+
scrollTo(to: number | string | Element, o?: ScrollToOptions2): void;
|
|
2327
|
+
/** Pause smoothing (native scrolling everywhere) — e.g. while a modal is open. */
|
|
2328
|
+
stop(): void;
|
|
2329
|
+
/** Resume after `stop()`. */
|
|
2330
|
+
resume(): void;
|
|
2331
|
+
/** Listen to every smoothed frame; returns an unsubscribe function. */
|
|
2332
|
+
onScroll(fn: (s: SmoothScroll) => void): () => void;
|
|
2333
|
+
/** Remove all listeners and restore native scrolling. */
|
|
2334
|
+
destroy(): void;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* `<usa-smooth-scroll lerp="0.1"></usa-smooth-scroll>` (10.4) — smooth,
|
|
2339
|
+
* inertial wheel scrolling with **`motionary/runtime/smooth`** (requires
|
|
2340
|
+
* `use(smooth)` first). Without `wrapper` it smooths the whole page while it
|
|
2341
|
+
* is in the document; with `wrapper` the element itself becomes the smooth
|
|
2342
|
+
* scroll container (give it a height). `lerp` (0–1), `duration` + `ease`
|
|
2343
|
+
* (fixed glide instead of lerp), `wheel-multiplier`, `horizontal`, `touch`,
|
|
2344
|
+
* `anchors` (default on; `anchors="false"` to keep native jumps), `offset`
|
|
2345
|
+
* (px, for sticky headers), `preview` (demo: glides through a wrapper while
|
|
2346
|
+
* visible). Off under reduced motion (native scrolling). `glideTo(target)`,
|
|
2347
|
+
* `stop()`, `resume()`, `instance`; `usa:ready`, `usa:scroll` (progress).
|
|
2348
|
+
*/
|
|
2349
|
+
interface UsaSmoothScrollElement extends UsaElement {
|
|
2350
|
+
glideTo(target: number | string | Element, opts?: {
|
|
2351
|
+
offset?: number;
|
|
2352
|
+
immediate?: boolean;
|
|
2353
|
+
}): void;
|
|
2354
|
+
stop(): void;
|
|
2355
|
+
resume(): void;
|
|
2356
|
+
readonly instance: SmoothScroll | null;
|
|
2357
|
+
}
|
|
2358
|
+
declare function defineSmoothScroll(tag?: string): CustomElementConstructor | undefined;
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
|
|
2362
|
+
* Motionary (not a Three.js clone; own API, own shaders):
|
|
2363
|
+
*
|
|
2364
|
+
* - **math** (`mat4`, quaternions — column-major `Float32Array`s), pure;
|
|
2365
|
+
* - **scene graph**: `GlNode` (position / rotation quaternion / scale,
|
|
2366
|
+
* children, optional mesh), `Camera` (perspective, `lookAt`), lights
|
|
2367
|
+
* (`ambient`, up to 4 directional / point), `bounds()` + `frameNode()`;
|
|
2368
|
+
* - **geometry** builders (`box`, `plane`, `sphere`, `torus`) and custom
|
|
2369
|
+
* geometry from typed arrays (indexed 16 / 32-bit or not);
|
|
2370
|
+
* - **materials**: `standard` (metallic-roughness PBR approximation, base
|
|
2371
|
+
* colour texture, emissive, ACES-free Reinhard tone mapping, sRGB),
|
|
2372
|
+
* `unlit`, and `shader` (your GLSL ES 3.00 fragment with the standard
|
|
2373
|
+
* varyings + your uniforms);
|
|
2374
|
+
* - **textures** from images, canvases, bitmaps and **videos** (updated per
|
|
2375
|
+
* decoded frame with `requestVideoFrameCallback`; `scrubVideo()` seeks a
|
|
2376
|
+
* video from a 0–1 progress, e.g. a scroll scene);
|
|
2377
|
+
* - `orbitControls()` — drag / wheel / pinch / arrow keys, damping, optional
|
|
2378
|
+
* auto-rotate (off under reduced motion).
|
|
2379
|
+
*
|
|
2380
|
+
* Math, geometry and the scene graph are pure (SSR / workers); rendering
|
|
2381
|
+
* needs WebGL2 (`createRenderer()` throws a clear error without it). Model
|
|
2382
|
+
* loaders live in `motionary/runtime/format-gltf` and `format-obj`.
|
|
2383
|
+
*/
|
|
2384
|
+
|
|
2385
|
+
type Vec3 = [number, number, number];
|
|
2386
|
+
type Quat = [number, number, number, number];
|
|
2387
|
+
type Mat4 = Float32Array;
|
|
2388
|
+
interface Geometry {
|
|
2389
|
+
positions: Float32Array;
|
|
2390
|
+
normals?: Float32Array;
|
|
2391
|
+
uvs?: Float32Array;
|
|
2392
|
+
indices?: Uint16Array | Uint32Array;
|
|
2393
|
+
/** 'triangles' (default), 'lines', 'points'. */
|
|
2394
|
+
mode?: 'triangles' | 'lines' | 'points';
|
|
2395
|
+
/** Renderer cache. */
|
|
2396
|
+
_gpu?: unknown;
|
|
2397
|
+
}
|
|
2398
|
+
interface GlTexture {
|
|
2399
|
+
source: TexImageSource | {
|
|
2400
|
+
width: number;
|
|
2401
|
+
height: number;
|
|
2402
|
+
data: Uint8Array | Uint8ClampedArray;
|
|
2403
|
+
};
|
|
2404
|
+
/** sRGB colour data (default true for colour maps). */
|
|
2405
|
+
srgb?: boolean;
|
|
2406
|
+
repeat?: boolean;
|
|
2407
|
+
flipY?: boolean;
|
|
2408
|
+
/** Re-upload every frame a new video frame is ready. */
|
|
2409
|
+
video?: boolean;
|
|
2410
|
+
needsUpdate?: boolean;
|
|
2411
|
+
_gpu?: unknown;
|
|
2412
|
+
}
|
|
2413
|
+
interface Material {
|
|
2414
|
+
type: 'standard' | 'unlit' | 'shader';
|
|
2415
|
+
/** Linear RGBA multiplier (sRGB input converted by the shader). */
|
|
2416
|
+
color: [number, number, number, number];
|
|
2417
|
+
map?: GlTexture | null;
|
|
2418
|
+
metallic: number;
|
|
2419
|
+
roughness: number;
|
|
2420
|
+
emissive: Vec3;
|
|
2421
|
+
doubleSided?: boolean;
|
|
2422
|
+
transparent?: boolean;
|
|
2423
|
+
wireframe?: boolean;
|
|
2424
|
+
/** 'shader' materials: GLSL ES 3.00 fragment body + uniforms. */
|
|
2425
|
+
fragment?: string;
|
|
2426
|
+
uniforms?: Record<string, number | number[] | Float32Array | GlTexture>;
|
|
2427
|
+
_gpu?: unknown;
|
|
2428
|
+
}
|
|
2429
|
+
interface Mesh {
|
|
2430
|
+
geometry: Geometry;
|
|
2431
|
+
material: Material;
|
|
2432
|
+
}
|
|
2433
|
+
declare class GlNode {
|
|
2434
|
+
name: string;
|
|
2435
|
+
position: Vec3;
|
|
2436
|
+
rotation: Quat;
|
|
2437
|
+
scale: Vec3;
|
|
2438
|
+
/** Set to use a fixed local matrix instead of position / rotation / scale (glTF `matrix`). */
|
|
2439
|
+
matrix: Mat4 | null;
|
|
2440
|
+
children: GlNode[];
|
|
2441
|
+
parent: GlNode | null;
|
|
2442
|
+
mesh: Mesh | Mesh[] | null;
|
|
2443
|
+
visible: boolean;
|
|
2444
|
+
/** Free-form data (loaders put source info here). */
|
|
2445
|
+
extras: Record<string, unknown>;
|
|
2446
|
+
readonly world: Mat4;
|
|
2447
|
+
constructor(name?: string, mesh?: Mesh | Mesh[] | null);
|
|
2448
|
+
add(...nodes: GlNode[]): this;
|
|
2449
|
+
remove(n: GlNode): void;
|
|
2450
|
+
setEuler(x: number, y: number, z: number): this;
|
|
2451
|
+
local(): Mat4;
|
|
2452
|
+
/** Recompute world matrices of this subtree. */
|
|
2453
|
+
updateWorld(parent?: Mat4): void;
|
|
2454
|
+
traverse(fn: (n: GlNode) => void): void;
|
|
2455
|
+
find(name: string): GlNode | null;
|
|
2456
|
+
}
|
|
2457
|
+
declare class Camera extends GlNode {
|
|
2458
|
+
fov: number;
|
|
2459
|
+
near: number;
|
|
2460
|
+
far: number;
|
|
2461
|
+
aspect: number;
|
|
2462
|
+
target: Vec3;
|
|
2463
|
+
up: Vec3;
|
|
2464
|
+
constructor(o?: {
|
|
2465
|
+
fov?: number;
|
|
2466
|
+
near?: number;
|
|
2467
|
+
far?: number;
|
|
2468
|
+
position?: Vec3;
|
|
2469
|
+
target?: Vec3;
|
|
2470
|
+
});
|
|
2471
|
+
view(): Mat4;
|
|
2472
|
+
projection(): Mat4;
|
|
2473
|
+
}
|
|
2474
|
+
interface Light {
|
|
2475
|
+
type: 'directional' | 'point';
|
|
2476
|
+
/** Direction the light travels (directional) or position (point). */
|
|
2477
|
+
vector: Vec3;
|
|
2478
|
+
color: Vec3;
|
|
2479
|
+
intensity: number;
|
|
2480
|
+
}
|
|
2481
|
+
declare class Scene {
|
|
2482
|
+
root: GlNode;
|
|
2483
|
+
ambient: Vec3;
|
|
2484
|
+
lights: Light[];
|
|
2485
|
+
/** Clear colour (sRGB, 0–1) or null for transparent. */
|
|
2486
|
+
background: [number, number, number, number] | null;
|
|
2487
|
+
exposure: number;
|
|
2488
|
+
add(...n: GlNode[]): this;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* `<usa-gl-scene src="model.glb" controls auto-rotate></usa-gl-scene>` (10.5)
|
|
2493
|
+
* — a WebGL2 3D viewer on **`motionary/runtime/gl`** (requires `use(gl)`;
|
|
2494
|
+
* `.gltf` / `.glb` models also need `motionary/runtime/format-gltf`, `.obj`
|
|
2495
|
+
* needs `motionary/runtime/format-obj`). Without `src` it shows a built-in
|
|
2496
|
+
* `shape` (torus · box · sphere · plane). `color`, `metallic`, `roughness`,
|
|
2497
|
+
* `background`, `exposure`, `controls` (drag / wheel / pinch / arrow keys),
|
|
2498
|
+
* `auto-rotate` (deg/s; off under reduced motion), `video` (a video URL
|
|
2499
|
+
* mapped onto the shape as a texture; `video-scrub` ties its time to the
|
|
2500
|
+
* element's scroll position instead of playing), `label` (accessible name).
|
|
2501
|
+
* Renders only while visible. `scene`, `camera`, `root`, `reload()`;
|
|
2502
|
+
* `usa:load` { nodes, meshes }, `usa:error`.
|
|
2503
|
+
* `<usa-three-scene>` is an alias with the same API.
|
|
2504
|
+
*/
|
|
2505
|
+
interface UsaGlSceneElement extends UsaElement {
|
|
2506
|
+
readonly scene: Scene | null;
|
|
2507
|
+
readonly camera: Camera | null;
|
|
2508
|
+
readonly root: GlNode | null;
|
|
2509
|
+
reload(): Promise<void>;
|
|
2510
|
+
}
|
|
2511
|
+
declare function defineGlScene(tag?: string): CustomElementConstructor | undefined;
|
|
2512
|
+
/** `<usa-three-scene>` — alias of `<usa-gl-scene>` (same attributes, events and methods; no Three.js involved). */
|
|
2513
|
+
declare function defineThreeScene(tag?: string): CustomElementConstructor | undefined;
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* `<usa-gpu-particles count="20000" mode="swirl"></usa-gpu-particles>` (10.5,
|
|
2517
|
+
* WebGPU effects 2.0) — a particle canvas simulated by a **WebGPU compute
|
|
2518
|
+
* shader** (positions + velocities in a storage buffer, drawn as instanced
|
|
2519
|
+
* quads), falling back to a CPU simulation on Canvas 2D (fewer particles)
|
|
2520
|
+
* where WebGPU is missing or refused. `mode` (swirl · galaxy · fountain),
|
|
2521
|
+
* `count`, `colors` (comma list), `size`, `speed`, `trail` (0–1 frame fade,
|
|
2522
|
+
* a one-pass post effect), `pointer` (particles flee the pointer), `label`.
|
|
2523
|
+
* Only simulates while visible; one still frame under reduced motion.
|
|
2524
|
+
* `data-usa-backend` = webgpu | canvas2d; `backend`; `usa:backend`.
|
|
2525
|
+
*/
|
|
2526
|
+
interface UsaGpuParticlesElement extends UsaElement {
|
|
2527
|
+
readonly backend: string;
|
|
2528
|
+
}
|
|
2529
|
+
/** WGSL compute pass: integrates every particle (flow field / orbit / fountain + pointer repulsion). */
|
|
2530
|
+
declare const PARTICLE_SIM_WGSL = "struct P{pos:vec2f,vel:vec2f};struct U{t:f32,dt:f32,mode:f32,speed:f32,ptr:vec2f,aspect:f32,size:f32,c0:vec4f,c1:vec4f};\n@group(0) @binding(1) var<uniform> u:U;@group(0) @binding(0) var<storage,read_write> ps:array<P>;\nfn h(n:f32)->f32{return fract(sin(n)*43758.5453);}\n@compute @workgroup_size(64) fn sim(@builtin(global_invocation_id) id:vec3u){let i=id.x;if(i>=arrayLength(&ps)){return;}var p=ps[i];let fi=f32(i);\nvar acc=vec2f(0.0);let r=length(p.pos)+1e-3;\nif(u.mode<0.5){acc=vec2f(-p.pos.y,p.pos.x)*0.9/r+vec2f(sin(p.pos.y*3.0+u.t),cos(p.pos.x*3.0-u.t))*0.35-p.pos*0.15;}\nelse if(u.mode<1.5){acc=vec2f(-p.pos.y,p.pos.x)/(r*r*4.0+0.2)-p.pos*0.08/r;}\nelse{acc=vec2f(0.0,-1.4);if(p.pos.y<-1.1){p.pos=vec2f((h(fi+u.t)-0.5)*0.1,-1.0);p.vel=vec2f((h(fi*1.7+u.t)-0.5)*0.9,1.6+h(fi*3.1)*0.8);}}\nlet d=p.pos-u.ptr;let dl=length(d);if(dl<0.35&&u.ptr.x>-5.0){acc+=d/(dl*dl+0.02)*0.12;}\np.vel=(p.vel+acc*u.dt*u.speed)*pow(0.985,u.dt*60.0);p.pos+=p.vel*u.dt*u.speed;\nif(abs(p.pos.x)>1.6||abs(p.pos.y)>1.6){p.pos=vec2f(h(fi)-0.5,h(fi*7.3)-0.5)*1.6;p.vel=vec2f(0.0);}ps[i]=p;}";
|
|
2531
|
+
/** WGSL render pass: instanced soft round quads, additive. */
|
|
2532
|
+
declare const PARTICLE_DRAW_WGSL = "struct P{pos:vec2f,vel:vec2f};struct U{t:f32,dt:f32,mode:f32,speed:f32,ptr:vec2f,aspect:f32,size:f32,c0:vec4f,c1:vec4f};\n@group(0) @binding(1) var<uniform> u:U;@group(0) @binding(0) var<storage,read> ps:array<P>;\nstruct V{@builtin(position) pos:vec4f,@location(0) q:vec2f,@location(1) c:vec4f};\n@vertex fn vs(@builtin(vertex_index) vi:u32,@builtin(instance_index) ii:u32)->V{var c=array<vec2f,6>(vec2f(-1.0,-1.0),vec2f(1.0,-1.0),vec2f(-1.0,1.0),vec2f(-1.0,1.0),vec2f(1.0,-1.0),vec2f(1.0,1.0));let p=ps[ii];let q=c[vi];var o:V;\no.pos=vec4f(p.pos.x/u.aspect+q.x*u.size/u.aspect,p.pos.y+q.y*u.size,0.0,1.0);o.q=q;o.c=mix(u.c0,u.c1,clamp(length(p.vel)*0.8,0.0,1.0));return o;}\n@fragment fn fs(v:V)->@location(0) vec4f{let a=smoothstep(1.0,0.0,length(v.q));return vec4f(v.c.rgb*a,a*v.c.a);}";
|
|
2533
|
+
declare function defineGpuParticles(tag?: string): CustomElementConstructor | undefined;
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* `<usa-shader-backdrop preset="aurora" post="bloom,vignette,grain"></usa-shader-backdrop>`
|
|
2537
|
+
* (10.5, WebGPU effects 2.0 — post-processing chain) — an animated shader
|
|
2538
|
+
* background (WebGL2) rendered into a framebuffer and run through a chain
|
|
2539
|
+
* of post passes in order: `bloom`, `vignette`, `grain`, `chromatic`
|
|
2540
|
+
* (aberration), `pixelate`, `scanlines`. `preset` (aurora · plasma · waves ·
|
|
2541
|
+
* nebula) or your own GLSL `vec3 scene(vec2 uv, float t)` in a child
|
|
2542
|
+
* `<script type="x-shader/x-fragment">`; `colors` (3), `speed`,
|
|
2543
|
+
* `intensity` (post strength 0–1), `label`. Content inside sits on top.
|
|
2544
|
+
* Renders only while visible; one still frame under reduced motion; a CSS
|
|
2545
|
+
* gradient without WebGL2. `passes` (the post chain in use); `usa:backend`.
|
|
2546
|
+
*/
|
|
2547
|
+
interface UsaShaderBackdropElement extends UsaElement {
|
|
2548
|
+
readonly passes: string[];
|
|
2549
|
+
}
|
|
2550
|
+
/** Built-in scenes: GLSL bodies of `vec3 scene(vec2 uv, float t)`. */
|
|
2551
|
+
declare const BACKDROP_PRESETS: Record<string, string>;
|
|
2552
|
+
/** Post passes (GLSL bodies reading `u_src`). */
|
|
2553
|
+
declare const POST_PASSES: Record<string, string>;
|
|
2554
|
+
declare function defineShaderBackdrop(tag?: string): CustomElementConstructor | undefined;
|
|
2555
|
+
|
|
2198
2556
|
/**
|
|
2199
2557
|
* motionary/components/widgets — the 6.x animated UI widgets, in their own
|
|
2200
2558
|
* entry so `motionary/components` and `components/lite` keep their size
|
|
@@ -2320,8 +2678,15 @@ declare global {
|
|
|
2320
2678
|
'usa-motion-inspector': UsaMotionInspectorElement;
|
|
2321
2679
|
'usa-route-transition': UsaRouteTransitionElement;
|
|
2322
2680
|
'usa-text-splitter': UsaTextSplitterElement;
|
|
2681
|
+
'usa-scroll-ring': UsaScrollRingElement;
|
|
2682
|
+
'usa-parallax-layers': UsaParallaxLayersElement;
|
|
2683
|
+
'usa-smooth-scroll': UsaSmoothScrollElement;
|
|
2684
|
+
'usa-gl-scene': UsaGlSceneElement;
|
|
2685
|
+
'usa-three-scene': UsaGlSceneElement;
|
|
2686
|
+
'usa-gpu-particles': UsaGpuParticlesElement;
|
|
2687
|
+
'usa-shader-backdrop': UsaShaderBackdropElement;
|
|
2323
2688
|
}
|
|
2324
2689
|
}
|
|
2325
2690
|
|
|
2326
|
-
export { CAROUSEL_EFFECTS, EQ_PRESETS, FESTIVAL_THEMES, LOTTIE_ICONS, MENU_EFFECTS, MODAL_EFFECTS, NAV_INDICATORS, PRESENCE_STATES, PROGRESS_VARIANTS, RETRO_VARIANTS, SEGMENTED_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, SPARK_VARIANTS, SWITCH_VARIANTS, TAB_INDICATORS, TIP_PLACEMENTS, TOAST_POSITIONS, TOGGLE_VARIANTS, WEATHER_CONDITIONS, WIDGETS, WIDGET_TAGS, WORKER_SCENES, backgroundCss, badgeProgress, cartTotal, defineAddToCart, defineBadgeWall, defineBarChart, defineBgGenerator, defineCarousel, defineCartDrawer, defineChapterNav, defineChatComposer, defineClockControl, defineCodeExport, defineColorPicker, defineCommandPalette, defineCompare, defineCountdown, defineCubeGallery, defineDatePicker, defineDisclosure, defineDock, defineEqualizer, defineFestivalBanner, defineField, defineFileDrop, defineGauge, defineGenArt, defineGestureSticker, defineGlobe, defineGyroCard, defineHeroVideo, defineHudPanel, defineHydrate, defineInstallButton, defineKanban, defineKeyframeEditor, defineKpi, defineLeaderboard, defineLiquidNav, defineLocationCard, defineLottie, defineLottieIcon, defineLyrics, defineMasonryFlow, defineMenu, defineMenuToggle, defineMessageList, defineMilestones, defineModal, defineMotion, defineMotionInspector, defineMotionPrefs, defineMotionSpec, defineMusicPlayer, defineNativePreview, defineNavMorph, defineNotificationBell, defineOdometer, defineOrganicCard, defineOtp, definePagination, definePanorama, definePauseAll, definePerfMonitor, definePluginCard, definePluginStore, definePresence, definePrizeWheel, defineProductGallery, defineProgressRing, definePropPanel, definePullCord, defineRadar, defineReactions, defineRedEnvelope, defineRetroButton, defineRouteTransition, defineScene, defineScrollScene, defineSegmented, defineSheet, defineShortcut, defineSkeletonReveal, defineSketchChart, defineSparkline, defineSpatialCard, defineStarRating, defineStepper, defineStickyWall, defineStories, defineSuggestionChips, defineSwipeDeck, defineSwitch, defineTabBar, defineTerminal, defineTextSplitter, defineThemeSurface, defineThemeSwitcher, defineTip, defineToastStack, defineUploadProgress, defineVideoCard, defineVoiceButton, defineVolumeKnob, defineWeatherCard, defineWidgets, defineWorkerCanvas, defineXpBar, describeComponent, exportComponent, formatBytes, formatDistance, fuzzyMatch, haversine, hexToHsv, hsvToHex, initials, keyLabels, levelFor, matchesKeys, monthGrid, pageWindow, parseChips, parseISODate, parseLRC, parseMarkers, parseProps, parseReactions, parseScrub, parseTargets, passwordStrength, project, rankRows, sanitizeCode, sparkPoints, splitTime, stackToast, waveBars, wheelAngle, wrapIndex };
|
|
2327
|
-
export type { BellNotice, CartItem, ChatMessage, ExportFormat, ExportedNode, GlobeMarker, LeaderRow, PaletteCommand, PerfStats, PresenceState, PropSpec, RadarTarget, StackToastOptions, StickerState, UsaAddToCartElement, UsaBadgeWallElement, UsaBarChartElement, UsaBgGeneratorElement, UsaCarouselElement, UsaCartDrawerElement, UsaChapterNavElement, UsaChatComposerElement, UsaClockControlElement, UsaCodeExportElement, UsaColorPickerElement, UsaCommandPaletteElement, UsaCompareElement, UsaCountdownElement, UsaCubeGalleryElement, UsaDatePickerElement, UsaDisclosureElement, UsaDockElement, UsaEqualizerElement, UsaFestivalBannerElement, UsaFieldElement, UsaFileDropElement, UsaGaugeElement, UsaGenArtElement, UsaGestureStickerElement, UsaGlobeElement, UsaGyroCardElement, UsaHeroVideoElement, UsaHudPanelElement, UsaHydrateElement, UsaInstallButtonElement, UsaKanbanElement, UsaKeyframeEditorElement, UsaKpiElement, UsaLeaderboardElement, UsaLiquidNavElement, UsaLocationCardElement, UsaLottieElement, UsaLottieIconElement, UsaLyricsElement, UsaMasonryFlowElement, UsaMenuElement, UsaMenuToggleElement, UsaMessageListElement, UsaMilestonesElement, UsaModalElement, UsaMotionElement, UsaMotionInspectorElement, UsaMotionPrefsElement, UsaMotionSpecElement, UsaMusicPlayerElement, UsaNativePreviewElement, UsaNavMorphElement, UsaNotificationBellElement, UsaOdometerElement, UsaOrganicCardElement, UsaOtpElement, UsaPaginationElement, UsaPanoramaElement, UsaPauseAllElement, UsaPerfMonitorElement, UsaPluginCardElement, UsaPluginStoreElement, UsaPresenceElement, UsaPrizeWheelElement, UsaProductGalleryElement, UsaProgressRingElement, UsaPropPanelElement, UsaPullCordElement, UsaRadarElement, UsaReactionsElement, UsaRedEnvelopeElement, UsaRetroButtonElement, UsaRouteTransitionElement, UsaSceneElement, UsaScrollSceneElement, UsaSegmentedElement, UsaSheetElement, UsaShortcutElement, UsaSkeletonRevealElement, UsaSketchChartElement, UsaSparklineElement, UsaSpatialCardElement, UsaStarRatingElement, UsaStepperElement, UsaStickyWallElement, UsaStoriesElement, UsaSuggestionChipsElement, UsaSwipeDeckElement, UsaSwitchElement, UsaTabBarElement, UsaTerminalElement, UsaTextSplitterElement, UsaThemeSurfaceElement, UsaThemeSwitcherElement, UsaTipElement, UsaToastStackElement, UsaUploadProgressElement, UsaVideoCardElement, UsaVoiceButtonElement, UsaVolumeKnobElement, UsaWeatherCardElement, UsaWorkerCanvasElement, UsaXpBarElement, WallBadge };
|
|
2691
|
+
export { BACKDROP_PRESETS, CAROUSEL_EFFECTS, EQ_PRESETS, FESTIVAL_THEMES, LOTTIE_ICONS, MENU_EFFECTS, MODAL_EFFECTS, NAV_INDICATORS, PARTICLE_DRAW_WGSL, PARTICLE_SIM_WGSL, POST_PASSES, PRESENCE_STATES, PROGRESS_VARIANTS, RETRO_VARIANTS, SEGMENTED_VARIANTS, SHEET_SIDES, SKELETON_VARIANTS, SPARK_VARIANTS, SWITCH_VARIANTS, TAB_INDICATORS, TIP_PLACEMENTS, TOAST_POSITIONS, TOGGLE_VARIANTS, WEATHER_CONDITIONS, WIDGETS, WIDGET_TAGS, WORKER_SCENES, backgroundCss, badgeProgress, cartTotal, defineAddToCart, defineBadgeWall, defineBarChart, defineBgGenerator, defineCarousel, defineCartDrawer, defineChapterNav, defineChatComposer, defineClockControl, defineCodeExport, defineColorPicker, defineCommandPalette, defineCompare, defineCountdown, defineCubeGallery, defineDatePicker, defineDisclosure, defineDock, defineEqualizer, defineFestivalBanner, defineField, defineFileDrop, defineGauge, defineGenArt, defineGestureSticker, defineGlScene, defineGlobe, defineGpuParticles, defineGyroCard, defineHeroVideo, defineHudPanel, defineHydrate, defineInstallButton, defineKanban, defineKeyframeEditor, defineKpi, defineLeaderboard, defineLiquidNav, defineLocationCard, defineLottie, defineLottieIcon, defineLyrics, defineMasonryFlow, defineMenu, defineMenuToggle, defineMessageList, defineMilestones, defineModal, defineMotion, defineMotionInspector, defineMotionPrefs, defineMotionSpec, defineMusicPlayer, defineNativePreview, defineNavMorph, defineNotificationBell, defineOdometer, defineOrganicCard, defineOtp, definePagination, definePanorama, defineParallaxLayers, definePauseAll, definePerfMonitor, definePluginCard, definePluginStore, definePresence, definePrizeWheel, defineProductGallery, defineProgressRing, definePropPanel, definePullCord, defineRadar, defineReactions, defineRedEnvelope, defineRetroButton, defineRouteTransition, defineScene, defineScrollRing, defineScrollScene, defineSegmented, defineShaderBackdrop, defineSheet, defineShortcut, defineSkeletonReveal, defineSketchChart, defineSmoothScroll, defineSparkline, defineSpatialCard, defineStarRating, defineStepper, defineStickyWall, defineStories, defineSuggestionChips, defineSwipeDeck, defineSwitch, defineTabBar, defineTerminal, defineTextSplitter, defineThemeSurface, defineThemeSwitcher, defineThreeScene, defineTip, defineToastStack, defineUploadProgress, defineVideoCard, defineVoiceButton, defineVolumeKnob, defineWeatherCard, defineWidgets, defineWorkerCanvas, defineXpBar, describeComponent, exportComponent, formatBytes, formatDistance, fuzzyMatch, haversine, hexToHsv, hsvToHex, initials, keyLabels, levelFor, matchesKeys, monthGrid, pageWindow, parseChips, parseISODate, parseLRC, parseMarkers, parseProps, parseReactions, parseScrub, parseTargets, passwordStrength, project, rankRows, sanitizeCode, sparkPoints, splitTime, stackToast, waveBars, wheelAngle, wrapIndex };
|
|
2692
|
+
export type { BellNotice, CartItem, ChatMessage, ExportFormat, ExportedNode, GlobeMarker, LeaderRow, PaletteCommand, PerfStats, PresenceState, PropSpec, RadarTarget, StackToastOptions, StickerState, UsaAddToCartElement, UsaBadgeWallElement, UsaBarChartElement, UsaBgGeneratorElement, UsaCarouselElement, UsaCartDrawerElement, UsaChapterNavElement, UsaChatComposerElement, UsaClockControlElement, UsaCodeExportElement, UsaColorPickerElement, UsaCommandPaletteElement, UsaCompareElement, UsaCountdownElement, UsaCubeGalleryElement, UsaDatePickerElement, UsaDisclosureElement, UsaDockElement, UsaEqualizerElement, UsaFestivalBannerElement, UsaFieldElement, UsaFileDropElement, UsaGaugeElement, UsaGenArtElement, UsaGestureStickerElement, UsaGlSceneElement, UsaGlobeElement, UsaGpuParticlesElement, UsaGyroCardElement, UsaHeroVideoElement, UsaHudPanelElement, UsaHydrateElement, UsaInstallButtonElement, UsaKanbanElement, UsaKeyframeEditorElement, UsaKpiElement, UsaLeaderboardElement, UsaLiquidNavElement, UsaLocationCardElement, UsaLottieElement, UsaLottieIconElement, UsaLyricsElement, UsaMasonryFlowElement, UsaMenuElement, UsaMenuToggleElement, UsaMessageListElement, UsaMilestonesElement, UsaModalElement, UsaMotionElement, UsaMotionInspectorElement, UsaMotionPrefsElement, UsaMotionSpecElement, UsaMusicPlayerElement, UsaNativePreviewElement, UsaNavMorphElement, UsaNotificationBellElement, UsaOdometerElement, UsaOrganicCardElement, UsaOtpElement, UsaPaginationElement, UsaPanoramaElement, UsaParallaxLayersElement, UsaPauseAllElement, UsaPerfMonitorElement, UsaPluginCardElement, UsaPluginStoreElement, UsaPresenceElement, UsaPrizeWheelElement, UsaProductGalleryElement, UsaProgressRingElement, UsaPropPanelElement, UsaPullCordElement, UsaRadarElement, UsaReactionsElement, UsaRedEnvelopeElement, UsaRetroButtonElement, UsaRouteTransitionElement, UsaSceneElement, UsaScrollRingElement, UsaScrollSceneElement, UsaSegmentedElement, UsaShaderBackdropElement, UsaSheetElement, UsaShortcutElement, UsaSkeletonRevealElement, UsaSketchChartElement, UsaSmoothScrollElement, UsaSparklineElement, UsaSpatialCardElement, UsaStarRatingElement, UsaStepperElement, UsaStickyWallElement, UsaStoriesElement, UsaSuggestionChipsElement, UsaSwipeDeckElement, UsaSwitchElement, UsaTabBarElement, UsaTerminalElement, UsaTextSplitterElement, UsaThemeSurfaceElement, UsaThemeSwitcherElement, UsaTipElement, UsaToastStackElement, UsaUploadProgressElement, UsaVideoCardElement, UsaVoiceButtonElement, UsaVolumeKnobElement, UsaWeatherCardElement, UsaWorkerCanvasElement, UsaXpBarElement, WallBadge };
|