motionary 13.7.0 → 13.8.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/CHANGELOG.md +35 -0
- package/dist/chunks/{anim-image-DbZ01u7s.js → anim-image-BX42afkj.js} +2 -2
- package/dist/chunks/{anim-image-CI1zz699.cjs → anim-image-B_Qz4e56.cjs} +2 -2
- package/dist/chunks/audio-CZgCXg1t.js +1 -1
- package/dist/chunks/audio-D0LwPShE.cjs +1 -1
- package/dist/chunks/badge-wall-C0gJ_Kck.js +1 -1
- package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
- package/dist/chunks/base-BvH4nAcv.cjs +1 -1
- package/dist/chunks/base-C9CJrhL3.js +1 -1
- package/dist/chunks/bg-generator-CML8tPN8.cjs +1 -1
- package/dist/chunks/bg-generator-oRwfTA5B.js +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
- package/dist/chunks/builtins-SwWQKzb-.js +1 -1
- package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
- package/dist/chunks/carousel-u6rqMqGu.js +1 -1
- package/dist/chunks/cart-drawer-CEIZfCw8.js +1 -1
- package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
- package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
- package/dist/chunks/code-export-wdrBIWRv.js +1 -1
- package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
- package/dist/chunks/color-picker-CN8ThZfh.js +1 -1
- package/dist/chunks/command-palette-IJuNiXhv.js +1 -1
- package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
- package/dist/chunks/core-B9Sjd4AV.js +1 -1
- package/dist/chunks/core-BZhM_0Zh.js +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-DbAYRKnS.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
- package/dist/chunks/countdown-RQViryt7.cjs +1 -1
- package/dist/chunks/countdown-WDZxXQz7.js +1 -1
- package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
- package/dist/chunks/date-picker-D4yqKTMJ.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/equalizer-CwGL1sD8.js +1 -1
- package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
- package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
- package/dist/chunks/festival-banner-Dslu8K1g.js +1 -1
- package/dist/chunks/field-DALTalya.js +1 -1
- package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
- package/dist/chunks/fx-DaVuB89C.cjs +1 -1
- package/dist/chunks/fx-Dc1sMyNg.js +1 -1
- package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
- package/dist/chunks/generative-DWdAwxYB.js +1 -1
- package/dist/chunks/{gl-scene-Cz74D0PJ.js → gl-scene-CH-D2XGk.js} +10 -3
- package/dist/chunks/{gl-scene-CZHMOsiS.cjs → gl-scene-Du5jLwiw.cjs} +10 -3
- package/dist/chunks/globe-D56xlOmk.js +1 -1
- package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
- package/dist/chunks/{gpu-7AY-uzNc.js → gpu-BrdivsHA.js} +5 -2
- package/dist/chunks/{gpu-DTO3JmAF.cjs → gpu-C2C6iBQC.cjs} +5 -2
- package/dist/chunks/gpu-particles-4DBj91f-.js +1 -1
- package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-Cy-Ya5VG.js → keyframes-DAsT0Ibx.js} +2 -2
- package/dist/chunks/{keyframes-DgqHSGbC.cjs → keyframes-fwq5LWME.cjs} +2 -2
- package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
- package/dist/chunks/leaderboard-_UPi0KQX.js +1 -1
- package/dist/chunks/location-card-Bq596aK5.js +1 -1
- package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
- package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
- package/dist/chunks/lottie-icon-pqBgCV0y.js +1 -1
- package/dist/chunks/{lottie-player-0-dmhjY3.cjs → lottie-player-DoQ5402p.cjs} +2 -2
- package/dist/chunks/{lottie-player-cHCLzYaM.js → lottie-player-fnaAa9nq.js} +2 -2
- package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
- package/dist/chunks/lyrics-D7mzxVIq.js +1 -1
- package/dist/chunks/manifest-CqfKtjeL.js +1 -1
- package/dist/chunks/manifest-xr3WET80.cjs +1 -1
- package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
- package/dist/chunks/menu-XcdMtcfw.js +1 -1
- package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
- package/dist/chunks/menu-toggle-RD6Fu1Gm.js +1 -1
- package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
- package/dist/chunks/nav-morph-F6qzM20K.js +1 -1
- package/dist/chunks/otp-BJKyY7I3.js +1 -1
- package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
- package/dist/chunks/pagination-D6iMBStU.js +1 -1
- package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
- package/dist/chunks/{physics-playground-C5U58CX8.js → physics-playground-BVTjc3p8.js} +2 -2
- package/dist/chunks/{physics-playground-11Y_zOVT.cjs → physics-playground-Devu3-WW.cjs} +2 -2
- package/dist/chunks/player-BTaPvK8G.js +1 -1
- package/dist/chunks/player-BZOkQbZ9.cjs +1 -1
- package/dist/chunks/presence-6eQ9t5vX.js +1 -1
- package/dist/chunks/presence-DAthlALi.cjs +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/prize-wheel-CpGVo8QG.js +1 -1
- package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
- package/dist/chunks/product-gallery-BmnYLKAQ.js +1 -1
- package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
- package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
- package/dist/chunks/progress-ring-CKgR1GRB.js +1 -1
- package/dist/chunks/prop-panel-BjbCiPAB.js +1 -1
- package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
- package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
- package/dist/chunks/radar-rBQT1BFh.js +1 -1
- package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
- package/dist/chunks/reactions-CsdP0Su5.js +1 -1
- package/dist/chunks/{registry-CX6Esj3Z.js → registry-BBRcnwNH.js} +2 -2
- package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
- package/dist/chunks/registry-DKs_BiEo.js +1 -1
- package/dist/chunks/{registry-DlT6mFCX.cjs → registry-DghuE1q_.cjs} +2 -2
- package/dist/chunks/retro-button-Bw4sqAkl.js +1 -1
- package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
- package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
- package/dist/chunks/rive-FjeW9KDl.js +1 -1
- package/dist/chunks/{runtime-link-DycKZ8ru.js → runtime-link-CaH5d46c.js} +2 -2
- package/dist/chunks/{runtime-link-CZme1oj-.cjs → runtime-link-Cb8pee3R.cjs} +2 -2
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-RCH_NMdX.cjs → scroll-scene-By71XgdX.cjs} +3 -3
- package/dist/chunks/{scroll-scene-nnC31K0L.js → scroll-scene-hUmpAz7l.js} +3 -3
- package/dist/chunks/segmented-BEep92iW.js +1 -1
- package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
- package/dist/chunks/{shader-backdrop-C4UhepvI.cjs → shader-backdrop-BodjXMhw.cjs} +9 -1
- package/dist/chunks/{shader-backdrop-DC0ZvVMV.js → shader-backdrop-dEs33c18.js} +9 -1
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
- package/dist/chunks/sheet-BHTMF8qx.js +1 -1
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-BMrbmru6.js +1 -1
- package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
- package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
- package/dist/chunks/sparkline-htTaTcgs.js +1 -1
- package/dist/chunks/spring-DBCejV_z.js +1 -1
- package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
- package/dist/chunks/suggestion-chips-Cj70JCtZ.js +1 -1
- package/dist/chunks/switch-CnSs8nDn.js +1 -1
- package/dist/chunks/switch-DiTlApGd.cjs +1 -1
- package/dist/chunks/tab-bar-B7hFB974.js +1 -1
- package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
- package/dist/chunks/{ticker-BP_jd4sz.cjs → ticker-C5_w0o1n.cjs} +2 -2
- package/dist/chunks/{ticker-B4Xe-qCg.js → ticker-DNfd8fjK.js} +2 -2
- package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
- package/dist/chunks/tip-ylGHoOIf.js +1 -1
- package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
- package/dist/chunks/toast-stack-Z_5cS1Nz.js +1 -1
- package/dist/chunks/{tween-qF0Mcf3-.cjs → tween-BCJbc0Gk.cjs} +2 -2
- package/dist/chunks/{tween-bb-hNM7p.js → tween-DyoalTCu.js} +2 -2
- package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
- package/dist/chunks/upload-progress-y7N0eaM4.js +1 -1
- package/dist/chunks/variants-BtqEJuki.cjs +1 -1
- package/dist/chunks/variants-MxfB3UVB.js +1 -1
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
- package/dist/chunks/voice-button-DFEoNe24.js +1 -1
- package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
- package/dist/chunks/weather-card-NR0i507J.js +1 -1
- package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
- package/dist/chunks/worker-canvas-CPZvzrWQ.js +1 -1
- package/dist/chunks/xp-bar-DAbx1LZ_.js +1 -1
- package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +1 -1
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +1 -1
- package/dist/components/background.js +1 -1
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +1 -1
- package/dist/components/cards.js +1 -1
- package/dist/components/click.cjs +1 -1
- package/dist/components/click.js +1 -1
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +1 -1
- package/dist/components/depth.js +1 -1
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +1 -1
- package/dist/components/dotlottie.cjs +3 -3
- package/dist/components/dotlottie.js +3 -3
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +1 -1
- package/dist/components/effects.cjs +1 -1
- package/dist/components/effects.js +1 -1
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +1 -1
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +1 -1
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +1 -1
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +1 -1
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +1 -1
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +1 -1
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +1 -1
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +1 -1
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +1 -1
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +1 -1
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +1 -1
- package/dist/components/fx-gpu.cjs +2 -2
- package/dist/components/fx-gpu.js +2 -2
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +1 -1
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-music.cjs +1 -1
- package/dist/components/fx-music.js +1 -1
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +1 -1
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +1 -1
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +1 -1
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +1 -1
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +1 -1
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +1 -1
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +1 -1
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +1 -1
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +1 -1
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +1 -1
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +1 -1
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +1 -1
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +1 -1
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +1 -1
- package/dist/components/fx2.cjs +2 -2
- package/dist/components/fx2.js +3 -3
- package/dist/components/gesture.cjs +1 -1
- package/dist/components/gesture.js +1 -1
- package/dist/components/gl-model.cjs +3 -3
- package/dist/components/gl-model.js +3 -3
- package/dist/components/gl-pool.cjs +357 -0
- package/dist/components/gl-pool.d.cts +91 -0
- package/dist/components/gl-pool.d.ts +91 -0
- package/dist/components/gl-pool.js +352 -0
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +1 -1
- package/dist/components/lite.js +1 -1
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/offscreen.cjs +1 -1
- package/dist/components/offscreen.js +1 -1
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +1 -1
- package/dist/components/page.js +1 -1
- package/dist/components/perf-tasks.cjs +1 -1
- package/dist/components/perf-tasks.js +1 -1
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +1 -1
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +1 -1
- package/dist/components/plugins.cjs +2 -2
- package/dist/components/plugins.js +2 -2
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/snap-carousel.cjs +2 -2
- package/dist/components/snap-carousel.js +2 -2
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +1 -1
- package/dist/components/svg.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/timeline-editor.cjs +1 -1
- package/dist/components/timeline-editor.js +1 -1
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.cjs +1 -1
- package/dist/components/ui.js +1 -1
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +6 -6
- package/dist/components/widgets.js +9 -9
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +1 -1
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +1 -1
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +1 -1
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +1 -1
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +1 -1
- package/dist/effects/beat-bounce.cjs +1 -1
- package/dist/effects/beat-bounce.js +1 -1
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +1 -1
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +1 -1
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +1 -1
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +1 -1
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +1 -1
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +1 -1
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +1 -1
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +1 -1
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +1 -1
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +1 -1
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +1 -1
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +1 -1
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +1 -1
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +1 -1
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +1 -1
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +1 -1
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +1 -1
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +1 -1
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +1 -1
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +1 -1
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +1 -1
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +1 -1
- package/dist/effects/fire.cjs +2 -2
- package/dist/effects/fire.js +2 -2
- package/dist/effects/fireflies.cjs +2 -2
- package/dist/effects/fireflies.js +2 -2
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +1 -1
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +1 -1
- package/dist/effects/fluid.cjs +2 -2
- package/dist/effects/fluid.js +2 -2
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +1 -1
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +1 -1
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +1 -1
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +1 -1
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +1 -1
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +1 -1
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +1 -1
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +1 -1
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +1 -1
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +1 -1
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +1 -1
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +1 -1
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +1 -1
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +1 -1
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +1 -1
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +1 -1
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +1 -1
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +1 -1
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +1 -1
- package/dist/effects/ink.cjs +2 -2
- package/dist/effects/ink.js +2 -2
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +1 -1
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +1 -1
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +1 -1
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +1 -1
- package/dist/effects/leaves.cjs +2 -2
- package/dist/effects/leaves.js +2 -2
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +1 -1
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +1 -1
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +1 -1
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +1 -1
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +1 -1
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +1 -1
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +1 -1
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +1 -1
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +1 -1
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +1 -1
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +1 -1
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +1 -1
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +1 -1
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +1 -1
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +1 -1
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +1 -1
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +1 -1
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +1 -1
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +1 -1
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +1 -1
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +1 -1
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +1 -1
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +1 -1
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +1 -1
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +1 -1
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +1 -1
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +1 -1
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +1 -1
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +1 -1
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +1 -1
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +1 -1
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +1 -1
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +1 -1
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +1 -1
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +1 -1
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +1 -1
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +1 -1
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +1 -1
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +1 -1
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +1 -1
- package/dist/effects/radial-spectrum.cjs +1 -1
- package/dist/effects/radial-spectrum.js +1 -1
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +1 -1
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +1 -1
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +1 -1
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +1 -1
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +1 -1
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +1 -1
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +1 -1
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +1 -1
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +1 -1
- package/dist/effects/sakura.cjs +2 -2
- package/dist/effects/sakura.js +2 -2
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +1 -1
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +1 -1
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +1 -1
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +1 -1
- package/dist/effects/smoke.cjs +2 -2
- package/dist/effects/smoke.js +2 -2
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +1 -1
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +1 -1
- package/dist/effects/sound-particles.cjs +1 -1
- package/dist/effects/sound-particles.js +1 -1
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +1 -1
- package/dist/effects/spectrum-mirror.cjs +1 -1
- package/dist/effects/spectrum-mirror.js +1 -1
- package/dist/effects/splash.cjs +2 -2
- package/dist/effects/splash.js +2 -2
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +1 -1
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +1 -1
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +1 -1
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +1 -1
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +1 -1
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +1 -1
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +1 -1
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +1 -1
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +1 -1
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +1 -1
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +1 -1
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +1 -1
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +1 -1
- package/dist/effects/vinyl-spin.cjs +1 -1
- package/dist/effects/vinyl-spin.js +1 -1
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +1 -1
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +1 -1
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +1 -1
- package/dist/effects/waveform-scope.cjs +1 -1
- package/dist/effects/waveform-scope.js +1 -1
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +1 -1
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +1 -1
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +1 -1
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +8 -4
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +3 -3
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -3
- package/dist/runtime/format-css.cjs +3 -3
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -3
- package/dist/runtime/format-gif.cjs +3 -3
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -3
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +3 -3
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -3
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +3 -3
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -3
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +1 -1
- package/dist/widgets/add-to-cart.js +1 -1
- package/dist/widgets/badge-wall.cjs +1 -1
- package/dist/widgets/badge-wall.js +1 -1
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +1 -1
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +1 -1
- package/dist/widgets/cart-drawer.cjs +1 -1
- package/dist/widgets/cart-drawer.js +1 -1
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +1 -1
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +1 -1
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +1 -1
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +1 -1
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +1 -1
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +1 -1
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +1 -1
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +1 -1
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +1 -1
- package/dist/widgets/disclosure.cjs +1 -1
- package/dist/widgets/disclosure.js +1 -1
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +1 -1
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +1 -1
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +1 -1
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +1 -1
- package/dist/widgets/file-drop.cjs +1 -1
- package/dist/widgets/file-drop.js +1 -1
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +1 -1
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +1 -1
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +1 -1
- package/dist/widgets/gl-model.cjs +1 -1
- package/dist/widgets/gl-model.js +1 -1
- package/dist/widgets/gl-scene.cjs +2 -2
- package/dist/widgets/gl-scene.js +2 -2
- package/dist/widgets/globe.cjs +1 -1
- package/dist/widgets/globe.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +1 -1
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +1 -1
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +1 -1
- package/dist/widgets/kanban.cjs +1 -1
- package/dist/widgets/kanban.js +1 -1
- package/dist/widgets/keyframe-editor.cjs +1 -1
- package/dist/widgets/keyframe-editor.js +1 -1
- package/dist/widgets/kpi.cjs +1 -1
- package/dist/widgets/kpi.js +1 -1
- package/dist/widgets/leaderboard.cjs +1 -1
- package/dist/widgets/leaderboard.js +1 -1
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +1 -1
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +1 -1
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +1 -1
- package/dist/widgets/lottie-player.cjs +2 -2
- package/dist/widgets/lottie-player.js +2 -2
- package/dist/widgets/lottie.cjs +1 -1
- package/dist/widgets/lottie.js +1 -1
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +1 -1
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/menu-toggle.cjs +1 -1
- package/dist/widgets/menu-toggle.js +1 -1
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +1 -1
- package/dist/widgets/message-list.cjs +1 -1
- package/dist/widgets/message-list.js +1 -1
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +1 -1
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +1 -1
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +2 -2
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +1 -1
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +1 -1
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +1 -1
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +1 -1
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +1 -1
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +1 -1
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +1 -1
- package/dist/widgets/notification-bell.cjs +1 -1
- package/dist/widgets/notification-bell.js +1 -1
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +1 -1
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +1 -1
- package/dist/widgets/pagination.cjs +1 -1
- package/dist/widgets/pagination.js +1 -1
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +1 -1
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +1 -1
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +1 -1
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +1 -1
- package/dist/widgets/physics-playground.cjs +2 -2
- package/dist/widgets/physics-playground.js +2 -2
- package/dist/widgets/plugin-card.cjs +3 -3
- package/dist/widgets/plugin-card.js +3 -3
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +1 -1
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +1 -1
- package/dist/widgets/prize-wheel.cjs +1 -1
- package/dist/widgets/prize-wheel.js +1 -1
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +1 -1
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +1 -1
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +1 -1
- package/dist/widgets/pull-cord.cjs +1 -1
- package/dist/widgets/pull-cord.js +1 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/reactions.cjs +1 -1
- package/dist/widgets/reactions.js +1 -1
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +1 -1
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +1 -1
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +1 -1
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +1 -1
- package/dist/widgets/scroll-scene.cjs +2 -2
- package/dist/widgets/scroll-scene.js +2 -2
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/shader-backdrop.cjs +2 -2
- package/dist/widgets/shader-backdrop.js +2 -2
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +1 -1
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +1 -1
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +1 -1
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +1 -1
- package/dist/widgets/smooth-scroll.cjs +2 -2
- package/dist/widgets/smooth-scroll.js +2 -2
- package/dist/widgets/snap-carousel.cjs +1 -1
- package/dist/widgets/snap-carousel.js +1 -1
- package/dist/widgets/sparkline.cjs +1 -1
- package/dist/widgets/sparkline.js +1 -1
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +1 -1
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/stepper.cjs +1 -1
- package/dist/widgets/stepper.js +1 -1
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +1 -1
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +1 -1
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +1 -1
- package/dist/widgets/swipe-deck.cjs +1 -1
- package/dist/widgets/swipe-deck.js +1 -1
- package/dist/widgets/switch.cjs +1 -1
- package/dist/widgets/switch.js +1 -1
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +1 -1
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +1 -1
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +1 -1
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +1 -1
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +1 -1
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +1 -1
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +1 -1
- package/dist/widgets/volume-knob.cjs +1 -1
- package/dist/widgets/volume-knob.js +1 -1
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +1 -1
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +1 -1
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +1 -1
- package/dist/widgets.umd.js +2 -2
- package/docs/components/usa-gl-model.md +1 -1
- package/docs/components/usa-gl-scene.md +1 -1
- package/docs/components/usa-shader-backdrop.md +1 -1
- package/docs/gl-pool.md +79 -0
- package/docs/scheduling.md +5 -0
- package/package.json +11 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* motionary/components/gl-pool (13.8) — WebGL context pool + GPU resource budget.
|
|
5
|
+
*
|
|
6
|
+
* Browsers keep only a handful of live WebGL contexts (Chrome / Edge 16, Firefox and
|
|
7
|
+
* Safari fewer on phones) and silently drop the oldest one past that — a page with
|
|
8
|
+
* 30 shader cards ends up with blank canvases. Installing the pool puts a cap
|
|
9
|
+
* (default 8, 1–16) in front of every `getContext('webgl' | 'webgl2')` on the page
|
|
10
|
+
* and keeps the page under it:
|
|
11
|
+
*
|
|
12
|
+
* - **Reuse / reclaim** — a canvas asking twice gets the same context (one lease).
|
|
13
|
+
* Probe contexts (a detached canvas that never drew, e.g. `supportsWebGL()`) and
|
|
14
|
+
* contexts left on canvases that were taken out of the document are released
|
|
15
|
+
* first when a slot is needed.
|
|
16
|
+
* - **Eviction** — at the cap, the least recently seen *off-screen* Motionary
|
|
17
|
+
* component gives its context back (`data-usa-gl="evicted"`, its render loop is
|
|
18
|
+
* already parked by the scheduler's offscreen pause) and is re-mounted when it
|
|
19
|
+
* scrolls back into view. On-screen components and contexts the page created
|
|
20
|
+
* itself (no `usa-*` owner) are never evicted.
|
|
21
|
+
* - **Graceful denial** — when every live context is on screen, the request
|
|
22
|
+
* returns `null`, so the component takes its own fallback (CSS still, Canvas 2D);
|
|
23
|
+
* it is re-mounted when a slot frees and it is visible (`data-usa-gl="waiting"`).
|
|
24
|
+
* - **Context loss / restore** — a context lost while its component is still in the
|
|
25
|
+
* document (GPU reset, driver update, `WEBGL_lose_context`) re-mounts the
|
|
26
|
+
* component on a fresh canvas (at most 3 times in 10 s, then it stays on its
|
|
27
|
+
* fallback: `data-usa-gl="lost"`).
|
|
28
|
+
* - **GPU budget** — textures (`texImage2D` / `texStorage2D`), buffers (`bufferData`)
|
|
29
|
+
* and drawing buffers are accounted per context (an estimate: level 0, 4 bytes /
|
|
30
|
+
* texel). Over `budgetBytes` (default 256 MiB), off-screen Motionary components
|
|
31
|
+
* are evicted, largest first.
|
|
32
|
+
*
|
|
33
|
+
* Opt-in and not part of `motionary/components/lite` (lite stays within budget);
|
|
34
|
+
* zero dependencies. Leaves the page exactly as it was on `uninstall()`.
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { installGLPool, glPoolStats } from 'motionary/components/gl-pool';
|
|
38
|
+
* installGLPool({ maxContexts: 8 });
|
|
39
|
+
* // later: glPoolStats() → { live, peak, max, bytes, budget, evicted, denied, lost, recovered, … }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
const GL = /^(webgl2?|experimental-webgl)$/;
|
|
43
|
+
const leases = /*#__PURE__*/ new Map();
|
|
44
|
+
/** owners waiting for a context: evicted, denied or lost — re-mounted when visible + a slot is free */
|
|
45
|
+
const waiting = /*#__PURE__*/ new Map();
|
|
46
|
+
const recovers = /*#__PURE__*/ new WeakMap();
|
|
47
|
+
let max = 8;
|
|
48
|
+
let budget = 256 * 1024 * 1024;
|
|
49
|
+
let io = null;
|
|
50
|
+
let orig = null;
|
|
51
|
+
let pending = false;
|
|
52
|
+
const st = { peak: 0, evicted: 0, denied: 0, reclaimed: 0, lost: 0, recovered: 0 };
|
|
53
|
+
const t = () => (typeof performance == 'object' ? performance.now() : Date.now());
|
|
54
|
+
/** Nearest Motionary component (custom element with a re-mount hook) that holds `c`, through shadow roots. */
|
|
55
|
+
function ownerOf(c) {
|
|
56
|
+
let n = c.parentNode;
|
|
57
|
+
while (n) {
|
|
58
|
+
if (n.nodeType === 1 && n.localName.startsWith('usa-') && typeof n.changed == 'function')
|
|
59
|
+
return n;
|
|
60
|
+
n = n.parentNode || n.host;
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
const owner = (l) => (l.c.isConnected ? (l.o = ownerOf(l.c) || l.o || null) : l.o || null);
|
|
65
|
+
const texels = (a) => {
|
|
66
|
+
if (a.length >= 8)
|
|
67
|
+
return (a[3] | 0) * (a[4] | 0);
|
|
68
|
+
const s = a[a.length - 1];
|
|
69
|
+
const w = s && (s.videoWidth || s.naturalWidth || s.displayWidth || s.width);
|
|
70
|
+
const h = s && (s.videoHeight || s.naturalHeight || s.displayHeight || s.height);
|
|
71
|
+
return (w | 0) * (h | 0);
|
|
72
|
+
};
|
|
73
|
+
/** Instance-level accounting wrappers (own properties: the prototypes are untouched). */
|
|
74
|
+
function account(l) {
|
|
75
|
+
const g = l.gl;
|
|
76
|
+
const wrap = (name, after) => {
|
|
77
|
+
const f = g[name];
|
|
78
|
+
if (typeof f != 'function')
|
|
79
|
+
return;
|
|
80
|
+
g[name] = function (...a) {
|
|
81
|
+
const r = f.apply(this, a);
|
|
82
|
+
after(a);
|
|
83
|
+
return r;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
wrap('bindTexture', (a) => l.bound.set(a[0], a[1]));
|
|
87
|
+
wrap('bindBuffer', (a) => l.bound.set(a[0], a[1]));
|
|
88
|
+
const tex = (n, target) => {
|
|
89
|
+
const k = l.bound.get(target === g.TEXTURE_2D || target === g.TEXTURE_3D || target === g.TEXTURE_2D_ARRAY ? target : g.TEXTURE_CUBE_MAP);
|
|
90
|
+
if (k)
|
|
91
|
+
l.tex.set(k, (target >= 0x8515 && target <= 0x851a ? (l.tex.get(k) || 0) : 0) + n * 4), check();
|
|
92
|
+
};
|
|
93
|
+
wrap('texImage2D', (a) => a[1] === 0 && tex(texels(a), a[0]));
|
|
94
|
+
wrap('texStorage2D', (a) => tex((a[3] | 0) * (a[4] | 0), a[0]));
|
|
95
|
+
wrap('bufferData', (a) => {
|
|
96
|
+
const k = l.bound.get(a[0]);
|
|
97
|
+
if (k)
|
|
98
|
+
l.buf.set(k, typeof a[1] == 'number' ? a[1] : (a[1] && a[1].byteLength) || 0), check();
|
|
99
|
+
});
|
|
100
|
+
wrap('deleteTexture', (a) => l.tex.delete(a[0]));
|
|
101
|
+
wrap('deleteBuffer', (a) => l.buf.delete(a[0]));
|
|
102
|
+
// anything beyond a feature check marks the context as in use (never reclaimed as a probe)
|
|
103
|
+
for (const n of ['drawArrays', 'drawElements', 'createProgram', 'createBuffer', 'createTexture'])
|
|
104
|
+
wrap(n, () => l.draws++);
|
|
105
|
+
}
|
|
106
|
+
const bytesOf = (l) => {
|
|
107
|
+
let n = (l.c.width | 0) * (l.c.height | 0) * 4;
|
|
108
|
+
l.tex.forEach((v) => (n += v));
|
|
109
|
+
l.buf.forEach((v) => (n += v));
|
|
110
|
+
return n;
|
|
111
|
+
};
|
|
112
|
+
function release(l) {
|
|
113
|
+
if (leases.get(l.c) !== l)
|
|
114
|
+
return;
|
|
115
|
+
leases.delete(l.c);
|
|
116
|
+
l.c.removeEventListener('webglcontextlost', onLost);
|
|
117
|
+
io?.unobserve(l.c);
|
|
118
|
+
if (!leases.size && !waiting.size && io)
|
|
119
|
+
io.disconnect(), (io = null);
|
|
120
|
+
// a slot freed: wake one visible waiting component
|
|
121
|
+
schedule();
|
|
122
|
+
}
|
|
123
|
+
function lose(l) {
|
|
124
|
+
l.ours = true;
|
|
125
|
+
release(l);
|
|
126
|
+
try {
|
|
127
|
+
l.gl.getExtension('WEBGL_lose_context')?.loseContext();
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
/* already lost */
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/** Free up to `n` slots: probes / detached first, then off-screen Motionary components (least recently seen). */
|
|
134
|
+
function free(n, now = t()) {
|
|
135
|
+
let got = 0;
|
|
136
|
+
for (const l of [...leases.values()]) {
|
|
137
|
+
if (got >= n)
|
|
138
|
+
return got;
|
|
139
|
+
if (l.gl.isContextLost())
|
|
140
|
+
release(l), got++;
|
|
141
|
+
else if (!l.c.isConnected && (l.wasIn ? !!l.o : !l.draws && now - l.born > 500))
|
|
142
|
+
lose(l), st.reclaimed++, got++;
|
|
143
|
+
}
|
|
144
|
+
const off = [...leases.values()].filter((l) => !l.vis && l.c.isConnected && owner(l)).sort((a, b) => a.seen - b.seen);
|
|
145
|
+
for (const l of off) {
|
|
146
|
+
if (got >= n)
|
|
147
|
+
break;
|
|
148
|
+
evict(l);
|
|
149
|
+
got++;
|
|
150
|
+
}
|
|
151
|
+
return got;
|
|
152
|
+
}
|
|
153
|
+
function evict(l) {
|
|
154
|
+
const o = owner(l);
|
|
155
|
+
lose(l);
|
|
156
|
+
st.evicted++;
|
|
157
|
+
if (o)
|
|
158
|
+
wait(o, 'evicted');
|
|
159
|
+
}
|
|
160
|
+
let checking = false;
|
|
161
|
+
function check() {
|
|
162
|
+
if (checking || !budget)
|
|
163
|
+
return;
|
|
164
|
+
checking = true;
|
|
165
|
+
queueMicrotask(() => {
|
|
166
|
+
checking = false;
|
|
167
|
+
let total = 0;
|
|
168
|
+
leases.forEach((l) => (total += bytesOf(l)));
|
|
169
|
+
if (total <= budget)
|
|
170
|
+
return;
|
|
171
|
+
const off = [...leases.values()].filter((l) => !l.vis && l.c.isConnected && owner(l)).sort((a, b) => bytesOf(b) - bytesOf(a));
|
|
172
|
+
for (const l of off) {
|
|
173
|
+
if (total <= budget)
|
|
174
|
+
break;
|
|
175
|
+
total -= bytesOf(l);
|
|
176
|
+
evict(l);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/** The shared IntersectionObserver: lease canvases (visibility, last seen) and waiting owners (re-mount on view). */
|
|
181
|
+
function obs() {
|
|
182
|
+
if (!io && typeof IntersectionObserver == 'function')
|
|
183
|
+
io = new IntersectionObserver((es) => {
|
|
184
|
+
for (const e of es) {
|
|
185
|
+
const m = leases.get(e.target);
|
|
186
|
+
if (m) {
|
|
187
|
+
m.vis = e.isIntersecting;
|
|
188
|
+
if (m.vis)
|
|
189
|
+
m.seen = t();
|
|
190
|
+
if (e.target.isConnected)
|
|
191
|
+
(m.wasIn = true), owner(m);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
schedule();
|
|
195
|
+
});
|
|
196
|
+
return io;
|
|
197
|
+
}
|
|
198
|
+
/** Park `o` until it is visible and a context is free. */
|
|
199
|
+
function wait(o, why, attr = why) {
|
|
200
|
+
o.setAttribute('data-usa-gl', attr);
|
|
201
|
+
waiting.set(o, why);
|
|
202
|
+
obs()?.observe(o);
|
|
203
|
+
}
|
|
204
|
+
/** Re-mount waiting components that are visible, while slots are free (coalesced to one task). */
|
|
205
|
+
function schedule() {
|
|
206
|
+
if (pending || !waiting.size)
|
|
207
|
+
return;
|
|
208
|
+
pending = true;
|
|
209
|
+
setTimeout(() => {
|
|
210
|
+
pending = false;
|
|
211
|
+
for (const [o, why] of [...waiting]) {
|
|
212
|
+
if (!o.isConnected) {
|
|
213
|
+
waiting.delete(o);
|
|
214
|
+
io?.unobserve(o);
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
if (!inView(o) || (leases.size >= max && !free(leases.size - max + 1)))
|
|
218
|
+
continue;
|
|
219
|
+
waiting.delete(o);
|
|
220
|
+
io?.unobserve(o);
|
|
221
|
+
if (why === 'lost')
|
|
222
|
+
st.recovered++;
|
|
223
|
+
o.setAttribute('data-usa-gl', why === 'lost' ? 'restored' : 'live');
|
|
224
|
+
o.changed('gl');
|
|
225
|
+
}
|
|
226
|
+
}, 16);
|
|
227
|
+
}
|
|
228
|
+
const inView = (o) => {
|
|
229
|
+
if (typeof IntersectionObserver != 'function')
|
|
230
|
+
return true;
|
|
231
|
+
const r = o.getBoundingClientRect();
|
|
232
|
+
return r.bottom > 0 && r.right > 0 && r.top < innerHeight && r.left < innerWidth;
|
|
233
|
+
};
|
|
234
|
+
function onLost() {
|
|
235
|
+
const l = leases.get(this);
|
|
236
|
+
if (!l || l.ours)
|
|
237
|
+
return;
|
|
238
|
+
release(l);
|
|
239
|
+
const o = owner(l);
|
|
240
|
+
// decide after the current task: a component tearing down removes its canvas right after losing it
|
|
241
|
+
setTimeout(() => {
|
|
242
|
+
if (!o || !o.isConnected || !l.c.isConnected || [...leases.values()].some((m) => m !== l && owner(m) === o))
|
|
243
|
+
return;
|
|
244
|
+
st.lost++;
|
|
245
|
+
const now = t();
|
|
246
|
+
const hist = (recovers.get(o) || []).filter((x) => now - x < 10000);
|
|
247
|
+
recovers.set(o, hist);
|
|
248
|
+
if (hist.length >= 3)
|
|
249
|
+
return o.setAttribute('data-usa-gl', 'lost');
|
|
250
|
+
hist.push(now);
|
|
251
|
+
wait(o, 'lost', 'restoring');
|
|
252
|
+
schedule();
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function track(c, gl, kind) {
|
|
256
|
+
const now = t();
|
|
257
|
+
const l = { c, gl, kind, born: now, seen: now, vis: true, wasIn: c.isConnected, draws: 0, ours: false, tex: new Map(), buf: new Map(), bound: new Map() };
|
|
258
|
+
if (l.wasIn)
|
|
259
|
+
l.o = ownerOf(c);
|
|
260
|
+
leases.set(c, l);
|
|
261
|
+
account(l);
|
|
262
|
+
c.addEventListener('webglcontextlost', onLost);
|
|
263
|
+
obs()?.observe(c);
|
|
264
|
+
// a probe (detached canvas that only asked for a context) is released after a second instead of lingering until GC
|
|
265
|
+
if (!l.wasIn)
|
|
266
|
+
setTimeout(() => {
|
|
267
|
+
if (leases.get(c) === l && !c.isConnected && !l.draws)
|
|
268
|
+
lose(l), st.reclaimed++;
|
|
269
|
+
}, 1000);
|
|
270
|
+
st.peak = Math.max(st.peak, leases.size);
|
|
271
|
+
const o = l.o;
|
|
272
|
+
if (o && o.getAttribute('data-usa-gl') !== 'restored')
|
|
273
|
+
o.setAttribute('data-usa-gl', 'live');
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Install the pool (idempotent; a second call only updates the options).
|
|
277
|
+
* Returns the uninstall function: the original `getContext` comes back, live
|
|
278
|
+
* contexts stay as they are and are no longer counted.
|
|
279
|
+
*/
|
|
280
|
+
function installGLPool(o = {}) {
|
|
281
|
+
if (o.maxContexts != null)
|
|
282
|
+
max = Math.min(16, Math.max(1, Number.isFinite(o.maxContexts) ? Math.round(o.maxContexts) : 8));
|
|
283
|
+
if (o.budgetBytes != null)
|
|
284
|
+
budget = Math.max(0, o.budgetBytes);
|
|
285
|
+
if (!orig && typeof HTMLCanvasElement == 'function') {
|
|
286
|
+
const P = HTMLCanvasElement.prototype;
|
|
287
|
+
const g = (orig = P.getContext);
|
|
288
|
+
P.getContext = function (type, attrs) {
|
|
289
|
+
if (!GL.test(type) || leases.has(this))
|
|
290
|
+
return g.call(this, type, attrs);
|
|
291
|
+
if (leases.size >= max && !free(leases.size - max + 1)) {
|
|
292
|
+
st.denied++;
|
|
293
|
+
const w = this.isConnected && ownerOf(this);
|
|
294
|
+
if (w)
|
|
295
|
+
wait(w, 'denied', 'waiting');
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
const gl = g.call(this, type, attrs);
|
|
299
|
+
if (gl && !gl.isContextLost())
|
|
300
|
+
track(this, gl, type);
|
|
301
|
+
return gl;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
return uninstallGLPool;
|
|
305
|
+
}
|
|
306
|
+
/** Remove the pool (see `installGLPool`). */
|
|
307
|
+
function uninstallGLPool() {
|
|
308
|
+
if (!orig)
|
|
309
|
+
return;
|
|
310
|
+
HTMLCanvasElement.prototype.getContext = orig;
|
|
311
|
+
orig = null;
|
|
312
|
+
for (const l of leases.values())
|
|
313
|
+
l.c.removeEventListener('webglcontextlost', onLost);
|
|
314
|
+
leases.clear();
|
|
315
|
+
waiting.clear();
|
|
316
|
+
io?.disconnect();
|
|
317
|
+
io = null;
|
|
318
|
+
max = 8;
|
|
319
|
+
budget = 256 * 1024 * 1024;
|
|
320
|
+
Object.assign(st, { peak: 0, evicted: 0, denied: 0, reclaimed: 0, lost: 0, recovered: 0 });
|
|
321
|
+
}
|
|
322
|
+
/** Counters and the live leases (for dashboards, tests and `perf` overlays). */
|
|
323
|
+
function glPoolStats() {
|
|
324
|
+
let bytes = 0;
|
|
325
|
+
const list = [];
|
|
326
|
+
leases.forEach((l) => {
|
|
327
|
+
const b = bytesOf(l);
|
|
328
|
+
bytes += b;
|
|
329
|
+
list.push({ owner: owner(l)?.localName || null, kind: l.kind, bytes: b, visible: l.vis });
|
|
330
|
+
});
|
|
331
|
+
return { installed: !!orig, live: leases.size, max, bytes, budget, ...st, leases: list };
|
|
332
|
+
}
|
|
333
|
+
const probes = {};
|
|
334
|
+
/**
|
|
335
|
+
* `true` when this browser can create a `kind` context — one shared probe per kind,
|
|
336
|
+
* released immediately (no lingering probe context per component).
|
|
337
|
+
*/
|
|
338
|
+
function glSupport(kind = 'webgl2') {
|
|
339
|
+
if (kind in probes)
|
|
340
|
+
return probes[kind];
|
|
341
|
+
let ok = false;
|
|
342
|
+
try {
|
|
343
|
+
const gl = document.createElement('canvas').getContext(kind);
|
|
344
|
+
ok = !!gl;
|
|
345
|
+
gl?.getExtension('WEBGL_lose_context')?.loseContext();
|
|
346
|
+
}
|
|
347
|
+
catch {
|
|
348
|
+
/* no canvas */
|
|
349
|
+
}
|
|
350
|
+
return (probes[kind] = ok);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
exports.glPoolStats = glPoolStats;
|
|
354
|
+
exports.glSupport = glSupport;
|
|
355
|
+
exports.installGLPool = installGLPool;
|
|
356
|
+
exports.uninstallGLPool = uninstallGLPool;
|
|
357
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.8.0/dist/components/gl-pool.cjs.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* motionary/components/gl-pool (13.8) — WebGL context pool + GPU resource budget.
|
|
3
|
+
*
|
|
4
|
+
* Browsers keep only a handful of live WebGL contexts (Chrome / Edge 16, Firefox and
|
|
5
|
+
* Safari fewer on phones) and silently drop the oldest one past that — a page with
|
|
6
|
+
* 30 shader cards ends up with blank canvases. Installing the pool puts a cap
|
|
7
|
+
* (default 8, 1–16) in front of every `getContext('webgl' | 'webgl2')` on the page
|
|
8
|
+
* and keeps the page under it:
|
|
9
|
+
*
|
|
10
|
+
* - **Reuse / reclaim** — a canvas asking twice gets the same context (one lease).
|
|
11
|
+
* Probe contexts (a detached canvas that never drew, e.g. `supportsWebGL()`) and
|
|
12
|
+
* contexts left on canvases that were taken out of the document are released
|
|
13
|
+
* first when a slot is needed.
|
|
14
|
+
* - **Eviction** — at the cap, the least recently seen *off-screen* Motionary
|
|
15
|
+
* component gives its context back (`data-usa-gl="evicted"`, its render loop is
|
|
16
|
+
* already parked by the scheduler's offscreen pause) and is re-mounted when it
|
|
17
|
+
* scrolls back into view. On-screen components and contexts the page created
|
|
18
|
+
* itself (no `usa-*` owner) are never evicted.
|
|
19
|
+
* - **Graceful denial** — when every live context is on screen, the request
|
|
20
|
+
* returns `null`, so the component takes its own fallback (CSS still, Canvas 2D);
|
|
21
|
+
* it is re-mounted when a slot frees and it is visible (`data-usa-gl="waiting"`).
|
|
22
|
+
* - **Context loss / restore** — a context lost while its component is still in the
|
|
23
|
+
* document (GPU reset, driver update, `WEBGL_lose_context`) re-mounts the
|
|
24
|
+
* component on a fresh canvas (at most 3 times in 10 s, then it stays on its
|
|
25
|
+
* fallback: `data-usa-gl="lost"`).
|
|
26
|
+
* - **GPU budget** — textures (`texImage2D` / `texStorage2D`), buffers (`bufferData`)
|
|
27
|
+
* and drawing buffers are accounted per context (an estimate: level 0, 4 bytes /
|
|
28
|
+
* texel). Over `budgetBytes` (default 256 MiB), off-screen Motionary components
|
|
29
|
+
* are evicted, largest first.
|
|
30
|
+
*
|
|
31
|
+
* Opt-in and not part of `motionary/components/lite` (lite stays within budget);
|
|
32
|
+
* zero dependencies. Leaves the page exactly as it was on `uninstall()`.
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* import { installGLPool, glPoolStats } from 'motionary/components/gl-pool';
|
|
36
|
+
* installGLPool({ maxContexts: 8 });
|
|
37
|
+
* // later: glPoolStats() → { live, peak, max, bytes, budget, evicted, denied, lost, recovered, … }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
interface GLPoolOptions {
|
|
41
|
+
/** Live WebGL contexts allowed at once (default 8, clamped to 1–16). */
|
|
42
|
+
maxContexts?: number;
|
|
43
|
+
/** Estimated GPU memory (bytes) before off-screen components are evicted (default 256 MiB). */
|
|
44
|
+
budgetBytes?: number;
|
|
45
|
+
}
|
|
46
|
+
interface GLLeaseInfo {
|
|
47
|
+
/** Tag of the owning component (`usa-shader`…), or `null` for a context the page created itself. */
|
|
48
|
+
owner: string | null;
|
|
49
|
+
kind: string;
|
|
50
|
+
/** Estimated bytes: drawing buffer + textures + buffers. */
|
|
51
|
+
bytes: number;
|
|
52
|
+
visible: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface GLPoolStats {
|
|
55
|
+
installed: boolean;
|
|
56
|
+
/** Live contexts now / the most at once since install / the cap. */
|
|
57
|
+
live: number;
|
|
58
|
+
peak: number;
|
|
59
|
+
max: number;
|
|
60
|
+
/** Estimated GPU bytes now / the budget. */
|
|
61
|
+
bytes: number;
|
|
62
|
+
budget: number;
|
|
63
|
+
/** Off-screen components that gave their context back. */
|
|
64
|
+
evicted: number;
|
|
65
|
+
/** Requests answered with `null` (every live context was on screen). */
|
|
66
|
+
denied: number;
|
|
67
|
+
/** Probe / detached contexts released to make room. */
|
|
68
|
+
reclaimed: number;
|
|
69
|
+
/** Contexts lost while their component was in the document / components re-mounted after it. */
|
|
70
|
+
lost: number;
|
|
71
|
+
recovered: number;
|
|
72
|
+
leases: GLLeaseInfo[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Install the pool (idempotent; a second call only updates the options).
|
|
76
|
+
* Returns the uninstall function: the original `getContext` comes back, live
|
|
77
|
+
* contexts stay as they are and are no longer counted.
|
|
78
|
+
*/
|
|
79
|
+
declare function installGLPool(o?: GLPoolOptions): () => void;
|
|
80
|
+
/** Remove the pool (see `installGLPool`). */
|
|
81
|
+
declare function uninstallGLPool(): void;
|
|
82
|
+
/** Counters and the live leases (for dashboards, tests and `perf` overlays). */
|
|
83
|
+
declare function glPoolStats(): GLPoolStats;
|
|
84
|
+
/**
|
|
85
|
+
* `true` when this browser can create a `kind` context — one shared probe per kind,
|
|
86
|
+
* released immediately (no lingering probe context per component).
|
|
87
|
+
*/
|
|
88
|
+
declare function glSupport(kind?: 'webgl' | 'webgl2'): boolean;
|
|
89
|
+
|
|
90
|
+
export { glPoolStats, glSupport, installGLPool, uninstallGLPool };
|
|
91
|
+
export type { GLLeaseInfo, GLPoolOptions, GLPoolStats };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* motionary/components/gl-pool (13.8) — WebGL context pool + GPU resource budget.
|
|
3
|
+
*
|
|
4
|
+
* Browsers keep only a handful of live WebGL contexts (Chrome / Edge 16, Firefox and
|
|
5
|
+
* Safari fewer on phones) and silently drop the oldest one past that — a page with
|
|
6
|
+
* 30 shader cards ends up with blank canvases. Installing the pool puts a cap
|
|
7
|
+
* (default 8, 1–16) in front of every `getContext('webgl' | 'webgl2')` on the page
|
|
8
|
+
* and keeps the page under it:
|
|
9
|
+
*
|
|
10
|
+
* - **Reuse / reclaim** — a canvas asking twice gets the same context (one lease).
|
|
11
|
+
* Probe contexts (a detached canvas that never drew, e.g. `supportsWebGL()`) and
|
|
12
|
+
* contexts left on canvases that were taken out of the document are released
|
|
13
|
+
* first when a slot is needed.
|
|
14
|
+
* - **Eviction** — at the cap, the least recently seen *off-screen* Motionary
|
|
15
|
+
* component gives its context back (`data-usa-gl="evicted"`, its render loop is
|
|
16
|
+
* already parked by the scheduler's offscreen pause) and is re-mounted when it
|
|
17
|
+
* scrolls back into view. On-screen components and contexts the page created
|
|
18
|
+
* itself (no `usa-*` owner) are never evicted.
|
|
19
|
+
* - **Graceful denial** — when every live context is on screen, the request
|
|
20
|
+
* returns `null`, so the component takes its own fallback (CSS still, Canvas 2D);
|
|
21
|
+
* it is re-mounted when a slot frees and it is visible (`data-usa-gl="waiting"`).
|
|
22
|
+
* - **Context loss / restore** — a context lost while its component is still in the
|
|
23
|
+
* document (GPU reset, driver update, `WEBGL_lose_context`) re-mounts the
|
|
24
|
+
* component on a fresh canvas (at most 3 times in 10 s, then it stays on its
|
|
25
|
+
* fallback: `data-usa-gl="lost"`).
|
|
26
|
+
* - **GPU budget** — textures (`texImage2D` / `texStorage2D`), buffers (`bufferData`)
|
|
27
|
+
* and drawing buffers are accounted per context (an estimate: level 0, 4 bytes /
|
|
28
|
+
* texel). Over `budgetBytes` (default 256 MiB), off-screen Motionary components
|
|
29
|
+
* are evicted, largest first.
|
|
30
|
+
*
|
|
31
|
+
* Opt-in and not part of `motionary/components/lite` (lite stays within budget);
|
|
32
|
+
* zero dependencies. Leaves the page exactly as it was on `uninstall()`.
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* import { installGLPool, glPoolStats } from 'motionary/components/gl-pool';
|
|
36
|
+
* installGLPool({ maxContexts: 8 });
|
|
37
|
+
* // later: glPoolStats() → { live, peak, max, bytes, budget, evicted, denied, lost, recovered, … }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
interface GLPoolOptions {
|
|
41
|
+
/** Live WebGL contexts allowed at once (default 8, clamped to 1–16). */
|
|
42
|
+
maxContexts?: number;
|
|
43
|
+
/** Estimated GPU memory (bytes) before off-screen components are evicted (default 256 MiB). */
|
|
44
|
+
budgetBytes?: number;
|
|
45
|
+
}
|
|
46
|
+
interface GLLeaseInfo {
|
|
47
|
+
/** Tag of the owning component (`usa-shader`…), or `null` for a context the page created itself. */
|
|
48
|
+
owner: string | null;
|
|
49
|
+
kind: string;
|
|
50
|
+
/** Estimated bytes: drawing buffer + textures + buffers. */
|
|
51
|
+
bytes: number;
|
|
52
|
+
visible: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface GLPoolStats {
|
|
55
|
+
installed: boolean;
|
|
56
|
+
/** Live contexts now / the most at once since install / the cap. */
|
|
57
|
+
live: number;
|
|
58
|
+
peak: number;
|
|
59
|
+
max: number;
|
|
60
|
+
/** Estimated GPU bytes now / the budget. */
|
|
61
|
+
bytes: number;
|
|
62
|
+
budget: number;
|
|
63
|
+
/** Off-screen components that gave their context back. */
|
|
64
|
+
evicted: number;
|
|
65
|
+
/** Requests answered with `null` (every live context was on screen). */
|
|
66
|
+
denied: number;
|
|
67
|
+
/** Probe / detached contexts released to make room. */
|
|
68
|
+
reclaimed: number;
|
|
69
|
+
/** Contexts lost while their component was in the document / components re-mounted after it. */
|
|
70
|
+
lost: number;
|
|
71
|
+
recovered: number;
|
|
72
|
+
leases: GLLeaseInfo[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Install the pool (idempotent; a second call only updates the options).
|
|
76
|
+
* Returns the uninstall function: the original `getContext` comes back, live
|
|
77
|
+
* contexts stay as they are and are no longer counted.
|
|
78
|
+
*/
|
|
79
|
+
declare function installGLPool(o?: GLPoolOptions): () => void;
|
|
80
|
+
/** Remove the pool (see `installGLPool`). */
|
|
81
|
+
declare function uninstallGLPool(): void;
|
|
82
|
+
/** Counters and the live leases (for dashboards, tests and `perf` overlays). */
|
|
83
|
+
declare function glPoolStats(): GLPoolStats;
|
|
84
|
+
/**
|
|
85
|
+
* `true` when this browser can create a `kind` context — one shared probe per kind,
|
|
86
|
+
* released immediately (no lingering probe context per component).
|
|
87
|
+
*/
|
|
88
|
+
declare function glSupport(kind?: 'webgl' | 'webgl2'): boolean;
|
|
89
|
+
|
|
90
|
+
export { glPoolStats, glSupport, installGLPool, uninstallGLPool };
|
|
91
|
+
export type { GLLeaseInfo, GLPoolOptions, GLPoolStats };
|