motionary 17.5.0 → 17.7.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 +17 -0
- package/README.md +12 -8
- package/README_ja.md +11 -7
- package/README_zh.md +11 -7
- package/bin/public-paths.mjs +2 -0
- package/dist/chunks/activity-G3K6LHEP.js +1 -1
- package/dist/chunks/activity-XCjQREWy.cjs +1 -1
- package/dist/chunks/{anim-image-Cl4pA1jG.cjs → anim-image-04e2kxjK.cjs} +2 -2
- package/dist/chunks/{anim-image-COjVmaP1.js → anim-image-BTVdF7jp.js} +2 -2
- package/dist/chunks/audio-BYC54FVb.cjs +1 -1
- package/dist/chunks/audio-BiO_x6I0.js +1 -1
- package/dist/chunks/badge-wall-BIYTO_47.js +1 -1
- package/dist/chunks/badge-wall-nHmls1DJ.cjs +1 -1
- package/dist/chunks/base-DzZEJhQB.cjs +1 -1
- package/dist/chunks/base-SPDwWyB1.js +1 -1
- package/dist/chunks/bg-generator-BjUrAeO1.js +1 -1
- package/dist/chunks/bg-generator-D4ssmvZk.cjs +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-Cp5v4424.cjs +1 -1
- package/dist/chunks/builtins-J8Y5msT6.js +1 -1
- package/dist/chunks/carousel--_KvZQq3.js +1 -1
- package/dist/chunks/carousel-CtzI1LxO.cjs +1 -1
- package/dist/chunks/cart-drawer-BJ3pFiI7.js +1 -1
- package/dist/chunks/cart-drawer-DSPlj8F4.cjs +1 -1
- package/dist/chunks/category-for-tag-D_QJPwpZ.cjs +1 -1
- package/dist/chunks/category-for-tag-WK7MtB-K.js +1 -1
- package/dist/chunks/code-export-ZWiwLw-H.cjs +1 -1
- package/dist/chunks/code-export-bfSRtSqB.js +1 -1
- package/dist/chunks/color-picker-8N-NOvcQ.cjs +1 -1
- package/dist/chunks/color-picker-CtpYpnpE.js +1 -1
- package/dist/chunks/command-palette-CF3b-53a.cjs +1 -1
- package/dist/chunks/command-palette-DEwU0apn.js +1 -1
- package/dist/chunks/core-Bj5_9QHr.js +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-C0-LxgXr.js +1 -1
- package/dist/chunks/core-CLKnlWY8.cjs +1 -1
- package/dist/chunks/core-D6--jjZC.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/countdown-B3c7zXfX.cjs +1 -1
- package/dist/chunks/countdown-BK14w5ux.js +1 -1
- package/dist/chunks/date-picker-DBlxYEY6.cjs +1 -1
- package/dist/chunks/date-picker-DLwN_P_R.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/engine-CUOpaIK4.js +314 -0
- package/dist/chunks/engine-D89D-YmJ.cjs +319 -0
- package/dist/chunks/equalizer-BJCGaGnx.js +1 -1
- package/dist/chunks/equalizer-DbABxC9W.cjs +1 -1
- package/dist/chunks/festival-banner-DOMDAkz8.cjs +1 -1
- package/dist/chunks/festival-banner-DhYr1Z4b.js +1 -1
- package/dist/chunks/field-Br3yLOwe.js +1 -1
- package/dist/chunks/field-C_ODaCJ5.cjs +1 -1
- package/dist/chunks/form-craft-CGsmJjVw.js +55 -0
- package/dist/chunks/form-craft-i3CaepYO.cjs +62 -0
- package/dist/chunks/form-options-e_FWVRvi.js +19 -0
- package/dist/chunks/form-options-lnCyapKT.cjs +22 -0
- package/dist/chunks/format-C6AKrjTW.js +1 -1
- package/dist/chunks/format-CcfR6-Jx.cjs +1 -1
- package/dist/chunks/fx-BLAi-SpO.cjs +1 -1
- package/dist/chunks/fx-sAOJVpyC.js +1 -1
- package/dist/chunks/generative-Cppu_oFN.js +1 -1
- package/dist/chunks/generative-DkuaIgER.cjs +1 -1
- package/dist/chunks/{gl-scene-EbbBygNv.js → gl-scene-9uhMddjN.js} +2 -2
- package/dist/chunks/{gl-scene-B2RmKWlP.cjs → gl-scene-lG0HvTr5.cjs} +2 -2
- package/dist/chunks/globe-BMVmAz1A.cjs +1 -1
- package/dist/chunks/globe-DbofB7xF.js +1 -1
- package/dist/chunks/gpu-B7egA-fl.cjs +1 -1
- package/dist/chunks/gpu-CJnu4Ty1.js +1 -1
- package/dist/chunks/gpu-particles-D1H4dnJY.js +1 -1
- package/dist/chunks/gpu-particles-DGwFsyz_.cjs +1 -1
- package/dist/chunks/history-C-nky56A.js +1 -1
- package/dist/chunks/history-rim_8RCX.cjs +1 -1
- package/dist/chunks/index-1R6Lie-l.js +1 -1
- package/dist/chunks/index-Ci8k-y1X.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-DOp8WcNT.js → keyframes-CiwQ9xWF.js} +2 -2
- package/dist/chunks/{keyframes-D60feZJH.cjs → keyframes-DQXX31yd.cjs} +2 -2
- package/dist/chunks/leaderboard-Bm9JPPkX.js +1 -1
- package/dist/chunks/leaderboard-DAxGz-Bv.cjs +1 -1
- package/dist/chunks/location-card-ChfmioKU.cjs +1 -1
- package/dist/chunks/location-card-DlVRckSa.js +1 -1
- package/dist/chunks/lottie-icon-DYVkUCf7.js +1 -1
- package/dist/chunks/lottie-icon-tbOmn1bQ.cjs +1 -1
- package/dist/chunks/{lottie-player-C0iHgRFB.cjs → lottie-player-CY5npFg0.cjs} +2 -2
- package/dist/chunks/{lottie-player-CnXnrjV1.js → lottie-player-D-nae5je.js} +2 -2
- package/dist/chunks/luminous-B_-9G2GO.cjs +1 -1
- package/dist/chunks/luminous-iQ0lxR6o.js +1 -1
- package/dist/chunks/lyrics-BGUZPoYa.js +1 -1
- package/dist/chunks/lyrics-CchUHmvY.cjs +1 -1
- package/dist/chunks/manifest-D9SNkSNr.js +1 -1
- package/dist/chunks/manifest-DWZv7bHQ.cjs +1 -1
- package/dist/chunks/matter-CeAHN-RP.cjs +244 -0
- package/dist/chunks/matter-s1ApmJnh.js +240 -0
- package/dist/chunks/matter-text-CjPBzmSX.cjs +118 -0
- package/dist/chunks/matter-text-DCeZNAkM.js +116 -0
- package/dist/chunks/matter-tools-c9BnIwSX.cjs +183 -0
- package/dist/chunks/matter-tools-vu63cR1E.js +181 -0
- package/dist/chunks/menu-7-UBhICx.js +1 -1
- package/dist/chunks/menu-9GcThZZr.cjs +1 -1
- package/dist/chunks/menu-toggle-C4AUDeBM.js +1 -1
- package/dist/chunks/menu-toggle-DcMQeRDt.cjs +1 -1
- package/dist/chunks/mo-name-DR9ysd5S.cjs +1 -1
- package/dist/chunks/mo-name-DT5wwaGR.js +1 -1
- package/dist/chunks/nav-flyout-BlxMtN4W.js +1 -1
- package/dist/chunks/nav-flyout-CrLUC54W.cjs +1 -1
- package/dist/chunks/nav-morph-BPpHX9Ez.js +1 -1
- package/dist/chunks/nav-morph-DuNCH5WQ.cjs +1 -1
- package/dist/chunks/otp-BIrDvGU8.js +1 -1
- package/dist/chunks/otp-W5drE539.cjs +1 -1
- package/dist/chunks/pagination-BH2ngIJB.cjs +1 -1
- package/dist/chunks/pagination-CiU78ftj.js +1 -1
- package/dist/chunks/{physics-playground-D5D31FVw.cjs → physics-playground-CT29Alyt.cjs} +2 -2
- package/dist/chunks/{physics-playground-XYnXmRJY.js → physics-playground-D22g5Nus.js} +2 -2
- package/dist/chunks/play-CTz93Nas.cjs +1 -1
- package/dist/chunks/play-KU8T1oaZ.js +1 -1
- package/dist/chunks/player-core-BtZTI0Fz.js +1 -1
- package/dist/chunks/player-core-CqR6WVaL.cjs +1 -1
- package/dist/chunks/presence-DKDktgSJ.cjs +1 -1
- package/dist/chunks/presence-qE-_AKeD.js +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/preview-BNOUoHr9.js +1 -1
- package/dist/chunks/preview-DGpXA2hJ.cjs +1 -1
- package/dist/chunks/prize-wheel-DTpQnQ23.js +1 -1
- package/dist/chunks/prize-wheel-W_4Wvldc.cjs +1 -1
- package/dist/chunks/product-gallery-B5ra4XHf.cjs +1 -1
- package/dist/chunks/product-gallery-DUr6hkuf.js +1 -1
- package/dist/chunks/progress-ring-BS7OogLs.js +1 -1
- package/dist/chunks/progress-ring-YtKPU2jM.cjs +1 -1
- package/dist/chunks/project-D8KHFDHI.js +1 -1
- package/dist/chunks/project-DIZ0UqvG.cjs +1 -1
- package/dist/chunks/prop-panel-C65BHNBP.js +1 -1
- package/dist/chunks/prop-panel-CaR91ZOI.cjs +1 -1
- package/dist/chunks/radar-BIU0Yz3_.js +1 -1
- package/dist/chunks/radar-CGKx_0Ug.cjs +1 -1
- package/dist/chunks/reactions-C8aoxmBM.cjs +1 -1
- package/dist/chunks/reactions-hF5fzYX_.js +1 -1
- package/dist/chunks/{registry-Csnu-ewY.cjs → registry-CvzRzv5N.cjs} +2 -2
- package/dist/chunks/{registry-DKFddqVT.js → registry-DFWqcv5h.js} +2 -2
- package/dist/chunks/registry-DmYdTtl4.js +1 -1
- package/dist/chunks/registry-_XKU28ZC.cjs +1 -1
- package/dist/chunks/retro-button-CFu0VcvW.cjs +1 -1
- package/dist/chunks/retro-button-W7RR6wC5.js +1 -1
- package/dist/chunks/rive-D7DZNUuN.js +1 -1
- package/dist/chunks/rive-xzduMxFp.cjs +1 -1
- package/dist/chunks/{runtime-link-BgPnBmfW.js → runtime-link-BOSHJim4.js} +2 -2
- package/dist/chunks/{runtime-link-NKGqkpVc.cjs → runtime-link-CqOMmWDV.cjs} +2 -2
- package/dist/chunks/scene-COP9gX_F.js +1 -1
- package/dist/chunks/scene-C_jNHfn4.cjs +1 -1
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-Baap9oeC.js → scroll-scene-Di3Qy51Y.js} +3 -3
- package/dist/chunks/{scroll-scene-DpZTdaej.cjs → scroll-scene-bhKJefLg.cjs} +3 -3
- package/dist/chunks/segmented-C4QWn3G2.js +1 -1
- package/dist/chunks/segmented-JA4E5-4e.cjs +1 -1
- package/dist/chunks/shader-backdrop-BjSIcvSf.js +1 -1
- package/dist/chunks/shader-backdrop-Ct8UIKNL.cjs +1 -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-BzJEwGbk.cjs +1 -1
- package/dist/chunks/sheet-DZd011Pc.js +1 -1
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-04UV72HA.cjs +1 -1
- package/dist/chunks/skeleton-reveal-C1w5G0dG.js +1 -1
- package/dist/chunks/sparkline-CjKGcnI4.js +1 -1
- package/dist/chunks/sparkline-b6jIA0JR.cjs +1 -1
- package/dist/chunks/spring-Bu3AwUgu.js +1 -1
- package/dist/chunks/spring-DoapHVAk.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/suggestion-chips-BEes6d7i.js +1 -1
- package/dist/chunks/suggestion-chips-a0-diVWW.cjs +1 -1
- package/dist/chunks/switch-BRHtlbGk.js +1 -1
- package/dist/chunks/switch-Cs6mszUY.cjs +1 -1
- package/dist/chunks/tab-bar-Bl0c_Z2L.js +1 -1
- package/dist/chunks/tab-bar-BvRhwu_Z.cjs +1 -1
- package/dist/chunks/{ticker-CrRtm74P.js → ticker-BfzQhvom.js} +2 -2
- package/dist/chunks/{ticker-DR53lOL5.cjs → ticker-DtWc0kyT.cjs} +2 -2
- package/dist/chunks/tip-BVeq5Vl_.js +1 -1
- package/dist/chunks/tip-C4ZmZX3u.cjs +1 -1
- package/dist/chunks/toast-stack-CMgOdocD.js +1 -1
- package/dist/chunks/toast-stack-DOE1cHRn.cjs +1 -1
- package/dist/chunks/{tween-CjkLm_rv.cjs → tween-CSQ2EFBm.cjs} +2 -2
- package/dist/chunks/{tween-ChOA_6__.js → tween-ltfzzNhy.js} +2 -2
- package/dist/chunks/upload-progress-Cxbh9qV2.js +1 -1
- package/dist/chunks/upload-progress-Dw3IXtf8.cjs +1 -1
- package/dist/chunks/v2-BRjQxrf_.js +1 -1
- package/dist/chunks/v2-Z2M3Ef0Y.cjs +1 -1
- package/dist/chunks/v3-read-BNhrN3tL.cjs +1 -1
- package/dist/chunks/v3-read-BqgIjLQP.js +1 -1
- package/dist/chunks/variants-D_Vmflhf.js +1 -1
- package/dist/chunks/variants-OGnKHKwT.cjs +1 -1
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/voice-button-CjB9Skfp.cjs +1 -1
- package/dist/chunks/voice-button-DsvWmYoO.js +1 -1
- package/dist/chunks/weather-card-DjTGZGrl.cjs +1 -1
- package/dist/chunks/weather-card-Dszcrytm.js +1 -1
- package/dist/chunks/worker-canvas-Cob4mssI.js +1 -1
- package/dist/chunks/worker-canvas-DgGkosGe.cjs +1 -1
- package/dist/chunks/xp-bar-BnKM8ws2.js +1 -1
- package/dist/chunks/xp-bar-CgH7Z424.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.d.cts +344 -0
- package/dist/components/angular.d.ts +344 -0
- 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-draw.cjs +83 -0
- package/dist/components/fx-draw.d.cts +47 -0
- package/dist/components/fx-draw.d.ts +47 -0
- package/dist/components/fx-draw.js +80 -0
- 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 +1 -1
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-hover.cjs +1 -1
- package/dist/components/fx-hover.js +1 -1
- 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-matter.cjs +109 -0
- package/dist/components/fx-matter.d.cts +48 -0
- package/dist/components/fx-matter.d.ts +48 -0
- package/dist/components/fx-matter.js +106 -0
- 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 +11 -1
- package/dist/components/fx2.d.cts +8 -1
- package/dist/components/fx2.d.ts +8 -1
- package/dist/components/fx2.js +8 -2
- 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 +1 -1
- package/dist/components/gl-pool.js +1 -1
- 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.d.cts +344 -0
- package/dist/components/jsx.d.ts +344 -0
- 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 +2 -2
- package/dist/components/lite.js +2 -2
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/mo.cjs +2 -2
- package/dist/components/mo.d.cts +240 -0
- package/dist/components/mo.d.ts +240 -0
- package/dist/components/mo.js +2 -2
- package/dist/components/motion-layout.cjs +1 -1
- package/dist/components/motion-layout.js +1 -1
- package/dist/components/motion-scene.cjs +1 -1
- package/dist/components/motion-scene.js +1 -1
- package/dist/components/motion-tokens.cjs +1 -1
- package/dist/components/motion-tokens.js +1 -1
- package/dist/components/motion.cjs +1 -1
- package/dist/components/motion.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 +10 -2
- package/dist/components/plugins.d.cts +5 -1
- package/dist/components/plugins.d.ts +5 -1
- package/dist/components/plugins.js +9 -3
- 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/scene-symbols.cjs +1 -1
- package/dist/components/scene-symbols.js +1 -1
- package/dist/components/scene-v2.cjs +1 -1
- package/dist/components/scene-v2.js +1 -1
- package/dist/components/scene-v3.cjs +1 -1
- package/dist/components/scene-v3.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.d.cts +240 -0
- package/dist/components/solid.d.ts +240 -0
- package/dist/components/solid.js +1 -1
- package/dist/components/studio-a11y.cjs +1 -1
- package/dist/components/studio-a11y.js +1 -1
- package/dist/components/studio-ai.cjs +1 -1
- package/dist/components/studio-ai.js +1 -1
- package/dist/components/studio-app.cjs +1 -1
- package/dist/components/studio-app.js +1 -1
- package/dist/components/studio-assets.cjs +1 -1
- package/dist/components/studio-assets.js +1 -1
- package/dist/components/studio-budget.cjs +1 -1
- package/dist/components/studio-budget.js +1 -1
- package/dist/components/studio-canvas.cjs +1 -1
- package/dist/components/studio-canvas.js +1 -1
- package/dist/components/studio-export.cjs +1 -1
- package/dist/components/studio-export.js +1 -1
- package/dist/components/studio-native.cjs +1 -1
- package/dist/components/studio-native.js +1 -1
- package/dist/components/studio-plugins.cjs +1 -1
- package/dist/components/studio-plugins.js +1 -1
- package/dist/components/studio-provenance.cjs +1 -1
- package/dist/components/studio-provenance.js +1 -1
- package/dist/components/studio-store.cjs +1 -1
- package/dist/components/studio-store.js +1 -1
- package/dist/components/studio-templates.cjs +1 -1
- package/dist/components/studio-templates.js +1 -1
- package/dist/components/studio.cjs +1 -1
- package/dist/components/studio.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.d.cts +344 -0
- package/dist/components/svelte.d.ts +344 -0
- 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.d.cts +344 -0
- package/dist/components/vue.d.ts +344 -0
- 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 +57 -18
- package/dist/components/widgets.d.cts +336 -16
- package/dist/components/widgets.d.ts +336 -16
- package/dist/components/widgets.js +35 -21
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +3 -3
- 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/check-orbit.cjs +18 -0
- package/dist/effects/check-orbit.d.cts +4 -0
- package/dist/effects/check-orbit.d.ts +4 -0
- package/dist/effects/check-orbit.js +14 -0
- package/dist/effects/chemical-bloom.cjs +18 -0
- package/dist/effects/chemical-bloom.d.cts +4 -0
- package/dist/effects/chemical-bloom.d.ts +4 -0
- package/dist/effects/chemical-bloom.js +14 -0
- 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/dust-vortex.cjs +18 -0
- package/dist/effects/dust-vortex.d.cts +4 -0
- package/dist/effects/dust-vortex.d.ts +4 -0
- package/dist/effects/dust-vortex.js +14 -0
- package/dist/effects/elastic-ripple.cjs +18 -0
- package/dist/effects/elastic-ripple.d.cts +4 -0
- package/dist/effects/elastic-ripple.d.ts +4 -0
- package/dist/effects/elastic-ripple.js +14 -0
- package/dist/effects/error-underline.cjs +18 -0
- package/dist/effects/error-underline.d.cts +4 -0
- package/dist/effects/error-underline.d.ts +4 -0
- package/dist/effects/error-underline.js +14 -0
- 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 +1 -1
- package/dist/effects/fire.js +1 -1
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +1 -1
- 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 +1 -1
- package/dist/effects/fluid.js +1 -1
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-brackets.cjs +18 -0
- package/dist/effects/focus-brackets.d.cts +4 -0
- package/dist/effects/focus-brackets.d.ts +4 -0
- package/dist/effects/focus-brackets.js +14 -0
- 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/focus-reveal.cjs +1 -1
- package/dist/effects/focus-reveal.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/googly-eyes.cjs +1 -1
- package/dist/effects/googly-eyes.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/grid-warp.cjs +1 -1
- package/dist/effects/grid-warp.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/image-swap.cjs +1 -1
- package/dist/effects/image-swap.js +1 -1
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +1 -1
- 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 +1 -1
- package/dist/effects/leaves.js +1 -1
- 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-level.cjs +18 -0
- package/dist/effects/liquid-level.d.cts +4 -0
- package/dist/effects/liquid-level.d.ts +4 -0
- package/dist/effects/liquid-level.js +14 -0
- 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/magnetic-align.cjs +18 -0
- package/dist/effects/magnetic-align.d.cts +4 -0
- package/dist/effects/magnetic-align.d.ts +4 -0
- package/dist/effects/magnetic-align.js +14 -0
- 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/mercury-morph.cjs +18 -0
- package/dist/effects/mercury-morph.d.cts +4 -0
- package/dist/effects/mercury-morph.d.ts +4 -0
- package/dist/effects/mercury-morph.js +14 -0
- 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 +1 -1
- package/dist/effects/sakura.js +1 -1
- 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 +1 -1
- package/dist/effects/smoke.js +1 -1
- 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 +1 -1
- package/dist/effects/splash.js +1 -1
- 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/submit-trail.cjs +18 -0
- package/dist/effects/submit-trail.d.cts +4 -0
- package/dist/effects/submit-trail.d.ts +4 -0
- package/dist/effects/submit-trail.js +14 -0
- 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-roll.cjs +1 -1
- package/dist/effects/text-roll.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.txt +27 -2
- package/dist/manifest.json +1 -1
- 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/activity-wall.cjs +1 -1
- package/dist/widgets/activity-wall.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/bezier-lab.cjs +26 -0
- package/dist/widgets/bezier-lab.d.cts +2 -0
- package/dist/widgets/bezier-lab.d.ts +2 -0
- package/dist/widgets/bezier-lab.js +24 -0
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/breadcrumbs.cjs +1 -1
- package/dist/widgets/breadcrumbs.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/coffee-timer.cjs +1 -1
- package/dist/widgets/coffee-timer.js +1 -1
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +1 -1
- package/dist/widgets/combobox.cjs +131 -0
- package/dist/widgets/combobox.d.cts +2 -0
- package/dist/widgets/combobox.d.ts +2 -0
- package/dist/widgets/combobox.js +129 -0
- 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/consent.cjs +51 -0
- package/dist/widgets/consent.d.cts +2 -0
- package/dist/widgets/consent.d.ts +2 -0
- package/dist/widgets/consent.js +49 -0
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cta-popup.cjs +85 -0
- package/dist/widgets/cta-popup.d.cts +2 -0
- package/dist/widgets/cta-popup.d.ts +2 -0
- package/dist/widgets/cta-popup.js +83 -0
- 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/delivery-tracker.cjs +1 -1
- package/dist/widgets/delivery-tracker.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/download-menu.cjs +1 -1
- package/dist/widgets/download-menu.js +1 -1
- package/dist/widgets/elastic-mesh.cjs +25 -0
- package/dist/widgets/elastic-mesh.d.cts +2 -0
- package/dist/widgets/elastic-mesh.d.ts +2 -0
- package/dist/widgets/elastic-mesh.js +23 -0
- 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/file-tree.cjs +1 -1
- package/dist/widgets/file-tree.js +1 -1
- package/dist/widgets/flight-status.cjs +1 -1
- package/dist/widgets/flight-status.js +1 -1
- package/dist/widgets/fluid-type.cjs +25 -0
- package/dist/widgets/fluid-type.d.cts +2 -0
- package/dist/widgets/fluid-type.d.ts +2 -0
- package/dist/widgets/fluid-type.js +23 -0
- package/dist/widgets/form-stepper.cjs +167 -0
- package/dist/widgets/form-stepper.d.cts +2 -0
- package/dist/widgets/form-stepper.d.ts +2 -0
- package/dist/widgets/form-stepper.js +165 -0
- package/dist/widgets/fullscreen-menu.cjs +1 -1
- package/dist/widgets/fullscreen-menu.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/glucose-sparkline.cjs +1 -1
- package/dist/widgets/glucose-sparkline.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gravity-well.cjs +25 -0
- package/dist/widgets/gravity-well.d.cts +2 -0
- package/dist/widgets/gravity-well.d.ts +2 -0
- package/dist/widgets/gravity-well.js +23 -0
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/halo-segmented.cjs +1 -1
- package/dist/widgets/halo-segmented.js +1 -1
- package/dist/widgets/halo-slider.cjs +1 -1
- package/dist/widgets/halo-slider.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hold-action.cjs +118 -0
- package/dist/widgets/hold-action.d.cts +2 -0
- package/dist/widgets/hold-action.d.ts +2 -0
- package/dist/widgets/hold-action.js +116 -0
- 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/ink-flow.cjs +25 -0
- package/dist/widgets/ink-flow.d.cts +2 -0
- package/dist/widgets/ink-flow.d.ts +2 -0
- package/dist/widgets/ink-flow.js +23 -0
- 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-metal.cjs +25 -0
- package/dist/widgets/liquid-metal.d.cts +2 -0
- package/dist/widgets/liquid-metal.d.ts +2 -0
- package/dist/widgets/liquid-metal.js +23 -0
- 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/luminous-switch.cjs +1 -1
- package/dist/widgets/luminous-switch.js +1 -1
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +1 -1
- package/dist/widgets/magnetic-field.cjs +25 -0
- package/dist/widgets/magnetic-field.d.cts +2 -0
- package/dist/widgets/magnetic-field.d.ts +2 -0
- package/dist/widgets/magnetic-field.js +23 -0
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/mega-menu.cjs +1 -1
- package/dist/widgets/mega-menu.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/meter-countdown.cjs +1 -1
- package/dist/widgets/meter-countdown.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/multi-select.cjs +63 -0
- package/dist/widgets/multi-select.d.cts +2 -0
- package/dist/widgets/multi-select.d.ts +2 -0
- package/dist/widgets/multi-select.js +61 -0
- 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-flyout.cjs +1 -1
- package/dist/widgets/nav-flyout.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/number-stepper.cjs +54 -0
- package/dist/widgets/number-stepper.d.cts +2 -0
- package/dist/widgets/number-stepper.d.ts +2 -0
- package/dist/widgets/number-stepper.js +52 -0
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/orbit-pass.cjs +1 -1
- package/dist/widgets/orbit-pass.js +1 -1
- package/dist/widgets/orbit-progress.cjs +1 -1
- package/dist/widgets/orbit-progress.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/particle-button.cjs +1 -1
- package/dist/widgets/particle-button.js +1 -1
- package/dist/widgets/particle-icon.cjs +1 -1
- package/dist/widgets/particle-icon.js +1 -1
- package/dist/widgets/password.cjs +58 -0
- package/dist/widgets/password.d.cts +2 -0
- package/dist/widgets/password.d.ts +2 -0
- package/dist/widgets/password.js +56 -0
- 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/race-telemetry.cjs +1 -1
- package/dist/widgets/race-telemetry.js +1 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/range-slider.cjs +61 -0
- package/dist/widgets/range-slider.d.cts +2 -0
- package/dist/widgets/range-slider.d.ts +2 -0
- package/dist/widgets/range-slider.js +59 -0
- package/dist/widgets/reaction-field.cjs +25 -0
- package/dist/widgets/reaction-field.d.cts +2 -0
- package/dist/widgets/reaction-field.d.ts +2 -0
- package/dist/widgets/reaction-field.js +23 -0
- 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/revision-reveal.cjs +26 -0
- package/dist/widgets/revision-reveal.d.cts +2 -0
- package/dist/widgets/revision-reveal.d.ts +2 -0
- package/dist/widgets/revision-reveal.js +24 -0
- package/dist/widgets/ride-status.cjs +1 -1
- package/dist/widgets/ride-status.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-sparkline.cjs +1 -1
- package/dist/widgets/route-sparkline.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/scrub-number.cjs +125 -0
- package/dist/widgets/scrub-number.d.cts +2 -0
- package/dist/widgets/scrub-number.d.ts +2 -0
- package/dist/widgets/scrub-number.js +123 -0
- package/dist/widgets/search-field.cjs +136 -0
- package/dist/widgets/search-field.d.cts +2 -0
- package/dist/widgets/search-field.d.ts +2 -0
- package/dist/widgets/search-field.js +134 -0
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/select.cjs +65 -0
- package/dist/widgets/select.d.cts +2 -0
- package/dist/widgets/select.d.ts +2 -0
- package/dist/widgets/select.js +63 -0
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +1 -1
- 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/spring-lab.cjs +26 -0
- package/dist/widgets/spring-lab.d.cts +2 -0
- package/dist/widgets/spring-lab.d.ts +2 -0
- package/dist/widgets/spring-lab.js +24 -0
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/status-pill.cjs +1 -1
- package/dist/widgets/status-pill.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/sun-timeline.cjs +1 -1
- package/dist/widgets/sun-timeline.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-loupe.cjs +26 -0
- package/dist/widgets/text-loupe.d.cts +2 -0
- package/dist/widgets/text-loupe.d.ts +2 -0
- package/dist/widgets/text-loupe.js +24 -0
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/textarea.cjs +79 -0
- package/dist/widgets/textarea.d.cts +2 -0
- package/dist/widgets/textarea.d.ts +2 -0
- package/dist/widgets/textarea.js +77 -0
- 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/title-sequence.cjs +1 -1
- package/dist/widgets/title-sequence.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/transit-progress.cjs +1 -1
- package/dist/widgets/transit-progress.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/validation-summary.cjs +66 -0
- package/dist/widgets/validation-summary.d.cts +2 -0
- package/dist/widgets/validation-summary.d.ts +2 -0
- package/dist/widgets/validation-summary.js +64 -0
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/vital-wave.cjs +1 -1
- package/dist/widgets/vital-wave.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/workout-player.cjs +1 -1
- package/dist/widgets/workout-player.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/README.md +32 -7
- package/docs/components/usa-bezier-lab.md +36 -0
- package/docs/components/usa-combobox.md +36 -0
- package/docs/components/usa-consent.md +36 -0
- package/docs/components/usa-cta-popup.md +36 -0
- package/docs/components/usa-elastic-mesh.md +36 -0
- package/docs/components/usa-fluid-type.md +36 -0
- package/docs/components/usa-form-stepper.md +36 -0
- package/docs/components/usa-fx.md +80 -0
- package/docs/components/usa-gravity-well.md +36 -0
- package/docs/components/usa-hold-action.md +36 -0
- package/docs/components/usa-ink-flow.md +36 -0
- package/docs/components/usa-liquid-metal.md +36 -0
- package/docs/components/usa-magnetic-field.md +36 -0
- package/docs/components/usa-multi-select.md +36 -0
- package/docs/components/usa-number-stepper.md +36 -0
- package/docs/components/usa-password.md +36 -0
- package/docs/components/usa-range-slider.md +36 -0
- package/docs/components/usa-reaction-field.md +36 -0
- package/docs/components/usa-revision-reveal.md +36 -0
- package/docs/components/usa-scrub-number.md +36 -0
- package/docs/components/usa-search-field.md +36 -0
- package/docs/components/usa-select.md +36 -0
- package/docs/components/usa-spring-lab.md +36 -0
- package/docs/components/usa-text-loupe.md +36 -0
- package/docs/components/usa-textarea.md +36 -0
- package/docs/components/usa-validation-summary.md +36 -0
- package/docs/components.md +5 -5
- package/docs/coverage-roadmap.md +48 -0
- package/docs/entry-points.md +37 -2
- package/docs/form-atelier.md +120 -0
- package/docs/matter-motion.md +68 -0
- package/docs/versions.md +1 -1
- package/figma-plugin/code.js +1 -1
- package/package.json +392 -2
|
@@ -240,4 +240,4 @@ function registerExtendedPresets() {
|
|
|
240
240
|
exports.EXTENDED_PRESETS = EXTENDED_PRESETS;
|
|
241
241
|
exports.EXTENDED_PRESET_CATEGORIES = EXTENDED_PRESET_CATEGORIES;
|
|
242
242
|
exports.registerExtendedPresets = registerExtendedPresets;
|
|
243
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
243
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/presets/extended.cjs.map
|
package/dist/presets/extended.js
CHANGED
|
@@ -236,4 +236,4 @@ function registerExtendedPresets() {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
export { EXTENDED_PRESETS, EXTENDED_PRESET_CATEGORIES, registerExtendedPresets };
|
|
239
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
239
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/presets/extended.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).ScrollAnimatePresets={})}(this,function(t){"use strict";const r={"fade-in-up-sm":{from:{opacity:0,transform:"translateY(16px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-down-sm":{from:{opacity:0,transform:"translateY(-16px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-left-sm":{from:{opacity:0,transform:"translateX(-16px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-right-sm":{from:{opacity:0,transform:"translateX(16px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-up-lg":{from:{opacity:0,transform:"translateY(120px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-down-lg":{from:{opacity:0,transform:"translateY(-120px)"},to:{opacity:1,transform:"translateY(0px)"}},"fade-in-left-lg":{from:{opacity:0,transform:"translateX(-120px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-right-lg":{from:{opacity:0,transform:"translateX(120px)"},to:{opacity:1,transform:"translateX(0px)"}},"fade-in-up-left":{from:{opacity:0,transform:"translate(-40px, 40px)"},to:{opacity:1,transform:"translate(0px, 0px)"}},"fade-in-up-right":{from:{opacity:0,transform:"translate(40px, 40px)"},to:{opacity:1,transform:"translate(0px, 0px)"}},"fade-in-down-left":{from:{opacity:0,transform:"translate(-40px, -40px)"},to:{opacity:1,transform:"translate(0px, 0px)"}},"fade-in-down-right":{from:{opacity:0,transform:"translate(40px, -40px)"},to:{opacity:1,transform:"translate(0px, 0px)"}},"fade-in-scale":{from:{opacity:0,transform:"translateY(20px) scale(0.95)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"fade-in-half":{from:{opacity:.5},to:{opacity:1}},"zoom-in-up":{from:{opacity:0,transform:"translateY(60px) scale(0.6)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"zoom-in-down":{from:{opacity:0,transform:"translateY(-60px) scale(0.6)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"zoom-in-left":{from:{opacity:0,transform:"translateX(-60px) scale(0.6)"},to:{opacity:1,transform:"translateX(0px) scale(1)"}},"zoom-in-right":{from:{opacity:0,transform:"translateX(60px) scale(0.6)"},to:{opacity:1,transform:"translateX(0px) scale(1)"}},"zoom-out-up":{from:{opacity:0,transform:"translateY(60px) scale(1.4)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"zoom-out-down":{from:{opacity:0,transform:"translateY(-60px) scale(1.4)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"zoom-out-left":{from:{opacity:0,transform:"translateX(-60px) scale(1.4)"},to:{opacity:1,transform:"translateX(0px) scale(1)"}},"zoom-out-right":{from:{opacity:0,transform:"translateX(60px) scale(1.4)"},to:{opacity:1,transform:"translateX(0px) scale(1)"}},"zoom-in-big":{from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"}},"zoom-out-big":{from:{opacity:0,transform:"scale(2)"},to:{opacity:1,transform:"scale(1)"}},"zoom-bounce":{from:{opacity:0,transform:"scale(0.3)"},to:{opacity:1,transform:"scale(1)"},frames:[{offset:.5,opacity:1,transform:"scale(1.1)"},{offset:.75,transform:"scale(0.95)"}]},"zoom-in-rotate":{from:{opacity:0,transform:"rotate(-30deg) scale(0.5)"},to:{opacity:1,transform:"rotate(0deg) scale(1)"}},"scale-x-left":{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"scaleX(1)",transformOrigin:"left center"}},"scale-x-right":{from:{transform:"scaleX(0)",transformOrigin:"right center"},to:{transform:"scaleX(1)",transformOrigin:"right center"}},"scale-y-top":{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"scaleY(1)",transformOrigin:"center top"}},"scale-y-bottom":{from:{transform:"scaleY(0)",transformOrigin:"center bottom"},to:{transform:"scaleY(1)",transformOrigin:"center bottom"}},"stretch-x":{from:{opacity:0,transform:"scale(1.6, 0.6)"},to:{opacity:1,transform:"scale(1, 1)"}},"stretch-y":{from:{opacity:0,transform:"scale(0.6, 1.6)"},to:{opacity:1,transform:"scale(1, 1)"}},"flip-x-reverse":{from:{opacity:0,transform:"perspective(800px) rotateX(90deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"}},"flip-y-reverse":{from:{opacity:0,transform:"perspective(800px) rotateY(90deg)"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)"}},"flip-y-full":{from:{opacity:0,transform:"perspective(800px) rotateY(-180deg)"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)"}},"flip-diagonal":{from:{opacity:0,transform:"perspective(800px) rotate3d(1, 1, 0, 90deg)"},to:{opacity:1,transform:"perspective(800px) rotate3d(1, 1, 0, 0deg)"}},"flip-diagonal-reverse":{from:{opacity:0,transform:"perspective(800px) rotate3d(1, -1, 0, 90deg)"},to:{opacity:1,transform:"perspective(800px) rotate3d(1, -1, 0, 0deg)"}},"flip-left":{from:{opacity:0,transform:"perspective(800px) rotateY(-70deg)",transformOrigin:"left center"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)",transformOrigin:"left center"}},"flip-right":{from:{opacity:0,transform:"perspective(800px) rotateY(70deg)",transformOrigin:"right center"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)",transformOrigin:"right center"}},"unfold-down":{from:{opacity:0,transform:"perspective(800px) rotateX(-90deg)",transformOrigin:"center top"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)",transformOrigin:"center top"}},"unfold-up":{from:{opacity:0,transform:"perspective(800px) rotateX(90deg)",transformOrigin:"center bottom"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)",transformOrigin:"center bottom"}},"door-open-left":{from:{transform:"perspective(800px) rotateY(-100deg)",transformOrigin:"left center"},to:{transform:"perspective(800px) rotateY(0deg)",transformOrigin:"left center"}},"door-open-right":{from:{transform:"perspective(800px) rotateY(100deg)",transformOrigin:"right center"},to:{transform:"perspective(800px) rotateY(0deg)",transformOrigin:"right center"}},"fold-in":{from:{opacity:0,transform:"perspective(800px) rotateX(80deg) scaleY(0.4)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg) scaleY(1)"}},"flip-x-bounce":{from:{opacity:0,transform:"perspective(800px) rotateX(90deg)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)"},frames:[{offset:.4,opacity:1,transform:"perspective(800px) rotateX(-20deg)"},{offset:.6,transform:"perspective(800px) rotateX(10deg)"},{offset:.8,transform:"perspective(800px) rotateX(-5deg)"}]},"flip-y-bounce":{from:{opacity:0,transform:"perspective(800px) rotateY(90deg)"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)"},frames:[{offset:.4,opacity:1,transform:"perspective(800px) rotateY(-20deg)"},{offset:.6,transform:"perspective(800px) rotateY(10deg)"},{offset:.8,transform:"perspective(800px) rotateY(-5deg)"}]},"swing-in-top":{from:{opacity:0,transform:"perspective(800px) rotateX(-100deg)",transformOrigin:"center top"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)",transformOrigin:"center top"},frames:[{offset:.6,opacity:1,transform:"perspective(800px) rotateX(12deg)"},{offset:.8,transform:"perspective(800px) rotateX(-5deg)"}]},"swing-in-bottom":{from:{opacity:0,transform:"perspective(800px) rotateX(100deg)",transformOrigin:"center bottom"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)",transformOrigin:"center bottom"},frames:[{offset:.6,opacity:1,transform:"perspective(800px) rotateX(-12deg)"},{offset:.8,transform:"perspective(800px) rotateX(5deg)"}]},"swing-in-left":{from:{opacity:0,transform:"perspective(800px) rotateY(100deg)",transformOrigin:"left center"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)",transformOrigin:"left center"},frames:[{offset:.6,opacity:1,transform:"perspective(800px) rotateY(-12deg)"},{offset:.8,transform:"perspective(800px) rotateY(5deg)"}]},"swing-in-right":{from:{opacity:0,transform:"perspective(800px) rotateY(-100deg)",transformOrigin:"right center"},to:{opacity:1,transform:"perspective(800px) rotateY(0deg)",transformOrigin:"right center"},frames:[{offset:.6,opacity:1,transform:"perspective(800px) rotateY(12deg)"},{offset:.8,transform:"perspective(800px) rotateY(-5deg)"}]},"slide-up-spring":{from:{transform:"translateY(100%)"},to:{transform:"translateY(0%)"},frames:[{offset:.7,transform:"translateY(-8%)"}]},"slide-down-spring":{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0%)"},frames:[{offset:.7,transform:"translateY(8%)"}]},"slide-left-spring":{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0%)"},frames:[{offset:.7,transform:"translateX(8%)"}]},"slide-right-spring":{from:{transform:"translateX(100%)"},to:{transform:"translateX(0%)"},frames:[{offset:.7,transform:"translateX(-8%)"}]},"slide-up-sm":{from:{transform:"translateY(30%)"},to:{transform:"translateY(0%)"}},"slide-down-sm":{from:{transform:"translateY(-30%)"},to:{transform:"translateY(0%)"}},"back-in-up":{from:{opacity:0,transform:"translateY(120px) scale(0.7)"},to:{opacity:1,transform:"translateY(0px) scale(1)"},frames:[{offset:.7,opacity:.8,transform:"translateY(0px) scale(0.7)"}]},"back-in-down":{from:{opacity:0,transform:"translateY(-120px) scale(0.7)"},to:{opacity:1,transform:"translateY(0px) scale(1)"},frames:[{offset:.7,opacity:.8,transform:"translateY(0px) scale(0.7)"}]},"back-in-left":{from:{opacity:0,transform:"translateX(-120px) scale(0.7)"},to:{opacity:1,transform:"translateX(0px) scale(1)"},frames:[{offset:.7,opacity:.8,transform:"translateX(0px) scale(0.7)"}]},"back-in-right":{from:{opacity:0,transform:"translateX(120px) scale(0.7)"},to:{opacity:1,transform:"translateX(0px) scale(1)"},frames:[{offset:.7,opacity:.8,transform:"translateX(0px) scale(0.7)"}]},"light-speed-in-left":{from:{opacity:0,transform:"translateX(-100%) skewX(30deg)"},to:{opacity:1,transform:"translateX(0%) skewX(0deg)"},frames:[{offset:.6,opacity:1,transform:"translateX(0%) skewX(-20deg)"},{offset:.8,transform:"translateX(0%) skewX(5deg)"}]},"light-speed-in-right":{from:{opacity:0,transform:"translateX(100%) skewX(-30deg)"},to:{opacity:1,transform:"translateX(0%) skewX(0deg)"},frames:[{offset:.6,opacity:1,transform:"translateX(0%) skewX(20deg)"},{offset:.8,transform:"translateX(0%) skewX(-5deg)"}]},"rise-in":{from:{opacity:0,transform:"translateY(80px) scale(0.96)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"sink-in":{from:{opacity:0,transform:"translateY(-80px) scale(1.04)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"float-in-up":{from:{opacity:0,transform:"translateY(40px) rotate(-3deg)"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)"},frames:[{offset:.6,opacity:1,transform:"translateY(-6px) rotate(1deg)"}]},"float-in-down":{from:{opacity:0,transform:"translateY(-40px) rotate(3deg)"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)"},frames:[{offset:.6,opacity:1,transform:"translateY(6px) rotate(-1deg)"}]},"roll-in-left":{from:{opacity:0,transform:"translateX(-120%) rotate(-120deg)"},to:{opacity:1,transform:"translateX(0%) rotate(0deg)"}},"roll-in-right":{from:{opacity:0,transform:"translateX(120%) rotate(120deg)"},to:{opacity:1,transform:"translateX(0%) rotate(0deg)"}},"spiral-in":{from:{opacity:0,transform:"rotate(-540deg) scale(0)"},to:{opacity:1,transform:"rotate(0deg) scale(1)"}},"spiral-in-reverse":{from:{opacity:0,transform:"rotate(540deg) scale(0)"},to:{opacity:1,transform:"rotate(0deg) scale(1)"}},"spin-in":{from:{opacity:0,transform:"rotate(-360deg)"},to:{opacity:1,transform:"rotate(0deg)"}},"rotate-in-up-left":{from:{opacity:0,transform:"rotate(45deg)",transformOrigin:"left bottom"},to:{opacity:1,transform:"rotate(0deg)",transformOrigin:"left bottom"}},"rotate-in-up-right":{from:{opacity:0,transform:"rotate(-45deg)",transformOrigin:"right bottom"},to:{opacity:1,transform:"rotate(0deg)",transformOrigin:"right bottom"}},"rotate-in-down-left":{from:{opacity:0,transform:"rotate(-45deg)",transformOrigin:"left bottom"},to:{opacity:1,transform:"rotate(0deg)",transformOrigin:"left bottom"}},"rotate-in-down-right":{from:{opacity:0,transform:"rotate(45deg)",transformOrigin:"right bottom"},to:{opacity:1,transform:"rotate(0deg)",transformOrigin:"right bottom"}},"skew-in-left":{from:{opacity:0,transform:"translateX(-80px) skewX(30deg)"},to:{opacity:1,transform:"translateX(0px) skewX(0deg)"}},"skew-in-y":{from:{opacity:0,transform:"translateY(40px) skewY(12deg)"},to:{opacity:1,transform:"translateY(0px) skewY(0deg)"}},"shear-in":{from:{opacity:0,transform:"skew(20deg, 10deg)"},to:{opacity:1,transform:"skew(0deg, 0deg)"}},"shear-in-reverse":{from:{opacity:0,transform:"skew(-20deg, -10deg)"},to:{opacity:1,transform:"skew(0deg, 0deg)"}},"twist-in":{from:{opacity:0,transform:"rotate(-20deg) skewX(10deg) scale(0.8)"},to:{opacity:1,transform:"rotate(0deg) skewX(0deg) scale(1)"}},"tilt-in-left":{from:{opacity:0,transform:"translateY(30px) rotate(-8deg)"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)"}},"tilt-in-right":{from:{opacity:0,transform:"translateY(30px) rotate(8deg)"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)"}},"blur-in-down":{from:{opacity:0,filter:"blur(12px)",transform:"translateY(-40px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateY(0px)"}},"blur-in-left":{from:{opacity:0,filter:"blur(12px)",transform:"translateX(-40px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateX(0px)"}},"blur-in-right":{from:{opacity:0,filter:"blur(12px)",transform:"translateX(40px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateX(0px)"}},"blur-in-strong":{from:{opacity:0,filter:"blur(24px)"},to:{opacity:1,filter:"blur(0px)"}},"blur-in-zoom":{from:{opacity:0,filter:"blur(14px)",transform:"scale(1.2)"},to:{opacity:1,filter:"blur(0px)",transform:"scale(1)"}},"blur-in-scale":{from:{opacity:0,filter:"blur(14px)",transform:"scale(0.8)"},to:{opacity:1,filter:"blur(0px)",transform:"scale(1)"}},"blur-in-x":{from:{opacity:0,filter:"blur(10px)",transform:"scaleX(1.3)"},to:{opacity:1,filter:"blur(0px)",transform:"scaleX(1)"}},"mask-up":{from:{transform:"translateY(100%)",clipPath:"inset(0% 0% 100% 0%)"},to:{transform:"translateY(0%)",clipPath:"inset(0% 0% 0% 0%)"}},"mask-down":{from:{transform:"translateY(-100%)",clipPath:"inset(100% 0% 0% 0%)"},to:{transform:"translateY(0%)",clipPath:"inset(0% 0% 0% 0%)"}},"mask-left":{from:{transform:"translateX(100%)",clipPath:"inset(0% 100% 0% 0%)"},to:{transform:"translateX(0%)",clipPath:"inset(0% 0% 0% 0%)"}},"mask-right":{from:{transform:"translateX(-100%)",clipPath:"inset(0% 0% 0% 100%)"},to:{transform:"translateX(0%)",clipPath:"inset(0% 0% 0% 0%)"}},"blur-mask-up":{from:{transform:"translateY(60%)",clipPath:"inset(0% 0% 60% 0%)",filter:"blur(8px)"},to:{transform:"translateY(0%)",clipPath:"inset(0% 0% 0% 0%)",filter:"blur(0px)"}},"clip-circle-top":{from:{clipPath:"circle(0% at 50% 0%)"},to:{clipPath:"circle(150% at 50% 0%)"}},"clip-circle-bottom":{from:{clipPath:"circle(0% at 50% 100%)"},to:{clipPath:"circle(150% at 50% 100%)"}},"clip-circle-left":{from:{clipPath:"circle(0% at 0% 50%)"},to:{clipPath:"circle(150% at 0% 50%)"}},"clip-circle-right":{from:{clipPath:"circle(0% at 100% 50%)"},to:{clipPath:"circle(150% at 100% 50%)"}},"clip-circle-corner":{from:{clipPath:"circle(0% at 0% 0%)"},to:{clipPath:"circle(150% at 0% 0%)"}},"clip-ellipse":{from:{clipPath:"ellipse(0% 0% at 50% 50%)"},to:{clipPath:"ellipse(75% 75% at 50% 50%)"}},"clip-diamond":{from:{clipPath:"polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%)"},to:{clipPath:"polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%)"}},"clip-split-x":{from:{clipPath:"inset(0% 50% 0% 50%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-split-y":{from:{clipPath:"inset(50% 0% 50% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-box":{from:{clipPath:"inset(50% 50% 50% 50%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"clip-pill":{from:{clipPath:"inset(35% 35% 35% 35% round 50%)"},to:{clipPath:"inset(0% 0% 0% 0% round 0%)"}},"clip-blinds":{from:{clipPath:"polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%, 0% 25%, 100% 25%, 100% 25%, 0% 25%, 0% 50%, 100% 50%, 100% 50%, 0% 50%, 0% 75%, 100% 75%, 100% 75%, 0% 75%)"},to:{clipPath:"polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%, 0% 25%, 100% 25%, 100% 50%, 0% 50%, 0% 50%, 100% 50%, 100% 75%, 0% 75%, 0% 75%, 100% 75%, 100% 100%, 0% 100%)"}},"clip-blinds-x":{from:{clipPath:"polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%, 25% 0%, 25% 100%, 25% 100%, 25% 0%, 50% 0%, 50% 100%, 50% 100%, 50% 0%, 75% 0%, 75% 100%, 75% 100%, 75% 0%)"},to:{clipPath:"polygon(0% 0%, 0% 100%, 25% 100%, 25% 0%, 25% 0%, 25% 100%, 50% 100%, 50% 0%, 50% 0%, 50% 100%, 75% 100%, 75% 0%, 75% 0%, 75% 100%, 100% 100%, 100% 0%)"}},"clip-diagonal":{from:{clipPath:"polygon(0% 0%, 0% 0%, 0% 0%)"},to:{clipPath:"polygon(0% 0%, 200% 0%, 0% 200%)"}},"clip-diagonal-reverse":{from:{clipPath:"polygon(100% 100%, 100% 100%, 100% 100%)"},to:{clipPath:"polygon(100% 100%, -100% 100%, 100% -100%)"}},"clip-slant-right":{from:{clipPath:"polygon(0% 0%, 0% 0%, -20% 100%, -20% 100%)"},to:{clipPath:"polygon(0% 0%, 120% 0%, 100% 100%, -20% 100%)"}},"clip-slant-left":{from:{clipPath:"polygon(100% 0%, 120% 0%, 120% 100%, 100% 100%)"},to:{clipPath:"polygon(-20% 0%, 120% 0%, 120% 100%, 0% 100%)"}},"bounce-in":{from:{opacity:0,transform:"scale(0.3)"},to:{opacity:1,transform:"scale(1)"},frames:[{offset:.2,transform:"scale(1.1)"},{offset:.4,transform:"scale(0.9)"},{offset:.6,opacity:1,transform:"scale(1.03)"},{offset:.8,transform:"scale(0.97)"}]},"bounce-in-up":{from:{opacity:0,transform:"translateY(120px)"},to:{opacity:1,transform:"translateY(0px)"},frames:[{offset:.6,opacity:1,transform:"translateY(-20px)"},{offset:.75,transform:"translateY(10px)"},{offset:.9,transform:"translateY(-5px)"}]},"bounce-in-down":{from:{opacity:0,transform:"translateY(-120px)"},to:{opacity:1,transform:"translateY(0px)"},frames:[{offset:.6,opacity:1,transform:"translateY(20px)"},{offset:.75,transform:"translateY(-10px)"},{offset:.9,transform:"translateY(5px)"}]},"bounce-in-left":{from:{opacity:0,transform:"translateX(-120px)"},to:{opacity:1,transform:"translateX(0px)"},frames:[{offset:.6,opacity:1,transform:"translateX(20px)"},{offset:.75,transform:"translateX(-10px)"},{offset:.9,transform:"translateX(5px)"}]},"bounce-in-right":{from:{opacity:0,transform:"translateX(120px)"},to:{opacity:1,transform:"translateX(0px)"},frames:[{offset:.6,opacity:1,transform:"translateX(-20px)"},{offset:.75,transform:"translateX(10px)"},{offset:.9,transform:"translateX(-5px)"}]},"elastic-in":{from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"},frames:[{offset:.4,opacity:1,transform:"scale(1.2)"},{offset:.6,transform:"scale(0.88)"},{offset:.75,transform:"scale(1.06)"},{offset:.9,transform:"scale(0.98)"}]},"elastic-in-x":{from:{opacity:0,transform:"scaleX(0)"},to:{opacity:1,transform:"scaleX(1)"},frames:[{offset:.4,opacity:1,transform:"scaleX(1.25)"},{offset:.6,transform:"scaleX(0.85)"},{offset:.8,transform:"scaleX(1.08)"}]},"rubber-in":{from:{opacity:0,transform:"scale(0.4, 0.4)"},to:{opacity:1,transform:"scale(1, 1)"},frames:[{offset:.3,opacity:1,transform:"scale(1.25, 0.75)"},{offset:.4,transform:"scale(0.75, 1.25)"},{offset:.5,transform:"scale(1.15, 0.85)"},{offset:.65,transform:"scale(0.95, 1.05)"},{offset:.75,transform:"scale(1.05, 0.95)"}]},"jello-in":{from:{opacity:0,transform:"skewX(-12.5deg) skewY(-12.5deg)"},to:{opacity:1,transform:"skewX(0deg) skewY(0deg)"},frames:[{offset:.22,opacity:1,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.33,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.44,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.55,transform:"skewX(-0.78deg) skewY(-0.78deg)"},{offset:.66,transform:"skewX(0.39deg) skewY(0.39deg)"}]},"wobble-in":{from:{opacity:0,transform:"translateX(-25%) rotate(-5deg)"},to:{opacity:1,transform:"translateX(0%) rotate(0deg)"},frames:[{offset:.3,opacity:1,transform:"translateX(20%) rotate(3deg)"},{offset:.45,transform:"translateX(-15%) rotate(-3deg)"},{offset:.6,transform:"translateX(10%) rotate(2deg)"},{offset:.75,transform:"translateX(-5%) rotate(-1deg)"}]},"tada-in":{from:{opacity:0,transform:"scale(0.9) rotate(-3deg)"},to:{opacity:1,transform:"scale(1) rotate(0deg)"},frames:[{offset:.3,opacity:1,transform:"scale(1.1) rotate(3deg)"},{offset:.4,transform:"scale(1.1) rotate(-3deg)"},{offset:.5,transform:"scale(1.1) rotate(3deg)"},{offset:.6,transform:"scale(1.1) rotate(-3deg)"},{offset:.7,transform:"scale(1.1) rotate(3deg)"}]},"heartbeat-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"},frames:[{offset:.25,opacity:1,transform:"scale(1.15)"},{offset:.4,transform:"scale(0.95)"},{offset:.6,transform:"scale(1.1)"},{offset:.8,transform:"scale(0.98)"}]},"drop-in":{from:{opacity:0,transform:"translateY(-150px)"},to:{opacity:1,transform:"translateY(0px)"},frames:[{offset:.4,opacity:1,transform:"translateY(0px)"},{offset:.55,transform:"translateY(-30px)"},{offset:.7,transform:"translateY(0px)"},{offset:.82,transform:"translateY(-8px)"},{offset:.92,transform:"translateY(0px)"}]},"pop-in":{from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"},frames:[{offset:.6,opacity:1,transform:"scale(1.12)"}]},"squash-in":{from:{opacity:0,transform:"translateY(-80px) scale(0.8, 1.2)"},to:{opacity:1,transform:"translateY(0px) scale(1, 1)"},frames:[{offset:.5,opacity:1,transform:"translateY(0px) scale(1.25, 0.75)"},{offset:.7,transform:"translateY(-10px) scale(0.95, 1.05)"},{offset:.85,transform:"translateY(0px) scale(1.03, 0.97)"}]},"shake-in":{from:{opacity:0,transform:"translateX(-30px)"},to:{opacity:1,transform:"translateX(0px)"},frames:[{offset:.2,opacity:1,transform:"translateX(20px)"},{offset:.4,transform:"translateX(-14px)"},{offset:.6,transform:"translateX(8px)"},{offset:.8,transform:"translateX(-4px)"}]},"swing-in":{from:{opacity:0,transform:"rotate(-30deg)",transformOrigin:"center top"},to:{opacity:1,transform:"rotate(0deg)",transformOrigin:"center top"},frames:[{offset:.4,opacity:1,transform:"rotate(15deg)"},{offset:.6,transform:"rotate(-10deg)"},{offset:.8,transform:"rotate(5deg)"}]},"brightness-in":{from:{opacity:0,filter:"brightness(3)"},to:{opacity:1,filter:"brightness(1)"}},"darken-in":{from:{filter:"brightness(0)"},to:{filter:"brightness(1)"}},"color-in":{from:{filter:"grayscale(1)"},to:{filter:"grayscale(0)"}},"saturate-in":{from:{opacity:0,filter:"saturate(3)"},to:{opacity:1,filter:"saturate(1)"}},"hue-in":{from:{opacity:0,filter:"hue-rotate(-180deg)"},to:{opacity:1,filter:"hue-rotate(0deg)"}},"sepia-in":{from:{filter:"sepia(1)"},to:{filter:"sepia(0)"}},"invert-in":{from:{opacity:0,filter:"invert(1)"},to:{opacity:1,filter:"invert(0)"}},"contrast-in":{from:{opacity:0,filter:"contrast(0)"},to:{opacity:1,filter:"contrast(1)"}},"exposure-in":{from:{opacity:0,filter:"brightness(4) contrast(0.5)"},to:{opacity:1,filter:"brightness(1) contrast(1)"}},"vintage-in":{from:{opacity:0,filter:"sepia(1) contrast(1.4) blur(2px)"},to:{opacity:1,filter:"sepia(0) contrast(1) blur(0px)"}},"blur-bright-in":{from:{opacity:0,filter:"blur(8px) brightness(2)"},to:{opacity:1,filter:"blur(0px) brightness(1)"}},"shadow-lift":{from:{opacity:0,transform:"translateY(16px) scale(0.98)",filter:"drop-shadow(0px 0px 0px rgba(0, 0, 0, 0))"},to:{opacity:1,transform:"translateY(0px) scale(1)",filter:"drop-shadow(0px 18px 22px rgba(0, 0, 0, 0.35))"}},"neon-glow-in":{from:{opacity:0,filter:"brightness(0.6) drop-shadow(0px 0px 0px rgba(124, 92, 255, 0))"},to:{opacity:1,filter:"brightness(1) drop-shadow(0px 0px 10px rgba(124, 92, 255, 0.6))"},frames:[{offset:.5,opacity:1,filter:"brightness(1.5) drop-shadow(0px 0px 22px rgba(124, 92, 255, 0.95))"}]},"glow-in":{from:{opacity:0,filter:"brightness(2) drop-shadow(0px 0px 18px rgba(255, 255, 255, 0.9))"},to:{opacity:1,filter:"brightness(1) drop-shadow(0px 0px 0px rgba(255, 255, 255, 0))"}},"perspective-in-up":{from:{opacity:0,transform:"perspective(800px) translateY(60px) rotateX(30deg)"},to:{opacity:1,transform:"perspective(800px) translateY(0px) rotateX(0deg)"}},"perspective-in-down":{from:{opacity:0,transform:"perspective(800px) translateY(-60px) rotateX(-30deg)"},to:{opacity:1,transform:"perspective(800px) translateY(0px) rotateX(0deg)"}},"perspective-in-left":{from:{opacity:0,transform:"perspective(800px) translateX(-60px) rotateY(-30deg)"},to:{opacity:1,transform:"perspective(800px) translateX(0px) rotateY(0deg)"}},"perspective-in-right":{from:{opacity:0,transform:"perspective(800px) translateX(60px) rotateY(30deg)"},to:{opacity:1,transform:"perspective(800px) translateX(0px) rotateY(0deg)"}},"depth-push":{from:{opacity:0,transform:"perspective(800px) translateZ(300px)"},to:{opacity:1,transform:"perspective(800px) translateZ(0px)"}},"depth-pull":{from:{opacity:0,transform:"perspective(800px) translateZ(-400px)"},to:{opacity:1,transform:"perspective(800px) translateZ(0px)"}},"depth-in-up":{from:{opacity:0,transform:"perspective(800px) translateY(80px) translateZ(-300px)"},to:{opacity:1,transform:"perspective(800px) translateY(0px) translateZ(0px)"}},"swoop-in-left":{from:{opacity:0,transform:"perspective(800px) translateX(-100px) translateZ(-200px) rotateY(60deg)"},to:{opacity:1,transform:"perspective(800px) translateX(0px) translateZ(0px) rotateY(0deg)"}},"swoop-in-right":{from:{opacity:0,transform:"perspective(800px) translateX(100px) translateZ(-200px) rotateY(-60deg)"},to:{opacity:1,transform:"perspective(800px) translateX(0px) translateZ(0px) rotateY(0deg)"}},"card-tilt-in":{from:{opacity:0,transform:"perspective(800px) rotateX(20deg) rotateY(-20deg) scale(0.9)"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)"}},"glitch-in":{from:{opacity:0,transform:"translate(-12px, 0px) skewX(0deg)",clipPath:"inset(40% 0% 45% 0%)"},to:{opacity:1,transform:"translate(0px, 0px) skewX(0deg)",clipPath:"inset(0% 0% 0% 0%)"},frames:[{offset:.15,opacity:1,transform:"translate(10px, 0px) skewX(-12deg)",clipPath:"inset(10% 0% 70% 0%)"},{offset:.3,transform:"translate(-6px, 0px) skewX(8deg)",clipPath:"inset(60% 0% 10% 0%)"},{offset:.45,transform:"translate(4px, 0px) skewX(0deg)",clipPath:"inset(20% 0% 35% 0%)"},{offset:.6,transform:"translate(-2px, 0px) skewX(-4deg)",clipPath:"inset(0% 0% 0% 0%)"}]},"glitch-in-color":{from:{opacity:0,transform:"translate(-10px, 4px)",filter:"hue-rotate(90deg) saturate(3)"},to:{opacity:1,transform:"translate(0px, 0px)",filter:"hue-rotate(0deg) saturate(1)"},frames:[{offset:.2,opacity:1,transform:"translate(8px, -3px)",filter:"hue-rotate(-60deg) saturate(2.5)"},{offset:.4,transform:"translate(-5px, 2px)",filter:"hue-rotate(40deg) saturate(2)"},{offset:.6,transform:"translate(3px, 0px)",filter:"hue-rotate(-20deg) saturate(1.5)"}]},typewriter:{from:{clipPath:"inset(0% 100% 0% 0%)",easing:"steps(16, end)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"typewriter-lines":{from:{clipPath:"inset(0% 0% 100% 0%)",easing:"steps(5, end)"},to:{clipPath:"inset(0% 0% 0% 0%)"}},"hinge-in":{from:{opacity:0,transform:"translateY(60px) rotate(60deg)",transformOrigin:"left top"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)",transformOrigin:"left top"},frames:[{offset:.4,opacity:1,transform:"translateY(0px) rotate(-12deg)"},{offset:.6,transform:"translateY(0px) rotate(8deg)"},{offset:.8,transform:"translateY(0px) rotate(-4deg)"}]},"flicker-in":{from:{opacity:0},to:{opacity:1},frames:[{offset:.2,opacity:.7},{offset:.32,opacity:.2},{offset:.55,opacity:.9},{offset:.68,opacity:.45}]},"scan-in":{from:{clipPath:"inset(0% 0% 100% 0%)",filter:"brightness(2.5)"},to:{clipPath:"inset(0% 0% 0% 0%)",filter:"brightness(1)"},frames:[{offset:.7,clipPath:"inset(0% 0% 0% 0%)",filter:"brightness(1.6)"}]},materialize:{from:{opacity:0,filter:"blur(10px) brightness(2.2)",transform:"scale(1.08)"},to:{opacity:1,filter:"blur(0px) brightness(1)",transform:"scale(1)"}},"teleport-in":{from:{opacity:0,transform:"scale(0.02, 2)",filter:"brightness(3)"},to:{opacity:1,transform:"scale(1, 1)",filter:"brightness(1)"},frames:[{offset:.5,opacity:1,transform:"scale(1.2, 0.8)",filter:"brightness(1.6)"},{offset:.75,transform:"scale(0.95, 1.05)",filter:"brightness(1.1)"}]},"stagger-fade-up":{from:{opacity:0,transform:"translateY(12px)"},to:{opacity:1,transform:"translateY(0px)"}},"stagger-pop":{from:{opacity:0,transform:"scale(0.85)"},to:{opacity:1,transform:"scale(1)"}},"stagger-rise":{from:{opacity:0,transform:"translateY(24px) scale(0.98)"},to:{opacity:1,transform:"translateY(0px) scale(1)"}},"stagger-slide":{from:{opacity:0,transform:"translateX(24px)"},to:{opacity:1,transform:"translateX(0px)"}},"stagger-flip":{from:{opacity:0,transform:"perspective(800px) rotateX(-50deg)",transformOrigin:"center top"},to:{opacity:1,transform:"perspective(800px) rotateX(0deg)",transformOrigin:"center top"}},"stagger-blur":{from:{opacity:0,filter:"blur(6px)",transform:"translateY(8px)"},to:{opacity:1,filter:"blur(0px)",transform:"translateY(0px)"}},"stagger-zoom":{from:{opacity:0,transform:"scale(1.15)"},to:{opacity:1,transform:"scale(1)"}},"stagger-drop":{from:{opacity:0,transform:"translateY(-16px) rotate(-3deg)"},to:{opacity:1,transform:"translateY(0px) rotate(0deg)"}},"scrub-parallax-up":{from:{transform:"translateY(80px)"},to:{transform:"translateY(-80px)"}},"scrub-parallax-down":{from:{transform:"translateY(-80px)"},to:{transform:"translateY(80px)"}},"scrub-rotate":{from:{transform:"rotate(-25deg)"},to:{transform:"rotate(25deg)"}},"scrub-spin":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},"scrub-scale":{from:{transform:"scale(0.7)"},to:{transform:"scale(1.1)"}},"scrub-shrink":{from:{transform:"scale(1.15)"},to:{transform:"scale(0.85)"}},"scrub-pan-left":{from:{transform:"translateX(30%)"},to:{transform:"translateX(-30%)"}},"scrub-pan-right":{from:{transform:"translateX(-30%)"},to:{transform:"translateX(30%)"}},"scrub-tilt":{from:{transform:"perspective(800px) rotateX(25deg)"},to:{transform:"perspective(800px) rotateX(-25deg)"}},"scrub-fade-through":{from:{opacity:0},to:{opacity:0},frames:[{offset:.3,opacity:1},{offset:.7,opacity:1}]},"scrub-blur-through":{from:{filter:"blur(8px)"},to:{filter:"blur(8px)"},frames:[{offset:.4,filter:"blur(0px)"},{offset:.6,filter:"blur(0px)"}]},"scrub-reveal-x":{from:{clipPath:"inset(0% 100% 0% 0%)"},to:{clipPath:"inset(0% 0% 0% 0%)"}}},a=globalThis,e=Symbol.for("use-scroll-animate.presets");a[e]=Object.assign(a[e]||{},r),t.EXTENDED_PRESETS=r,t.EXTENDED_PRESET_CATEGORIES={fade:["fade-in-up-sm","fade-in-down-sm","fade-in-left-sm","fade-in-right-sm","fade-in-up-lg","fade-in-down-lg","fade-in-left-lg","fade-in-right-lg","fade-in-up-left","fade-in-up-right","fade-in-down-left","fade-in-down-right","fade-in-scale","fade-in-half"],zoom:["zoom-in-up","zoom-in-down","zoom-in-left","zoom-in-right","zoom-out-up","zoom-out-down","zoom-out-left","zoom-out-right","zoom-in-big","zoom-out-big","zoom-bounce","zoom-in-rotate","scale-x-left","scale-x-right","scale-y-top","scale-y-bottom","stretch-x","stretch-y"],flip:["flip-x-reverse","flip-y-reverse","flip-y-full","flip-diagonal","flip-diagonal-reverse","flip-left","flip-right","unfold-down","unfold-up","door-open-left","door-open-right","fold-in","flip-x-bounce","flip-y-bounce","swing-in-top","swing-in-bottom","swing-in-left","swing-in-right"],slide:["slide-up-spring","slide-down-spring","slide-left-spring","slide-right-spring","slide-up-sm","slide-down-sm","back-in-up","back-in-down","back-in-left","back-in-right","light-speed-in-left","light-speed-in-right","rise-in","sink-in","float-in-up","float-in-down"],rotate:["roll-in-left","roll-in-right","spiral-in","spiral-in-reverse","spin-in","rotate-in-up-left","rotate-in-up-right","rotate-in-down-left","rotate-in-down-right","skew-in-left","skew-in-y","shear-in","shear-in-reverse","twist-in","tilt-in-left","tilt-in-right"],blur:["blur-in-down","blur-in-left","blur-in-right","blur-in-strong","blur-in-zoom","blur-in-scale","blur-in-x","mask-up","mask-down","mask-left","mask-right","blur-mask-up"],clip:["clip-circle-top","clip-circle-bottom","clip-circle-left","clip-circle-right","clip-circle-corner","clip-ellipse","clip-diamond","clip-split-x","clip-split-y","clip-box","clip-pill","clip-blinds","clip-blinds-x","clip-diagonal","clip-diagonal-reverse","clip-slant-right","clip-slant-left"],elastic:["bounce-in","bounce-in-up","bounce-in-down","bounce-in-left","bounce-in-right","elastic-in","elastic-in-x","rubber-in","jello-in","wobble-in","tada-in","heartbeat-in","drop-in","pop-in","squash-in","shake-in","swing-in"],light:["brightness-in","darken-in","color-in","saturate-in","hue-in","sepia-in","invert-in","contrast-in","exposure-in","vintage-in","blur-bright-in","shadow-lift","neon-glow-in","glow-in"],depth:["perspective-in-up","perspective-in-down","perspective-in-left","perspective-in-right","depth-push","depth-pull","depth-in-up","swoop-in-left","swoop-in-right","card-tilt-in"],special:["glitch-in","glitch-in-color","typewriter","typewriter-lines","hinge-in","flicker-in","scan-in","materialize","teleport-in"],stagger:["stagger-fade-up","stagger-pop","stagger-rise","stagger-slide","stagger-flip","stagger-blur","stagger-zoom","stagger-drop"],scrub:["scrub-parallax-up","scrub-parallax-down","scrub-rotate","scrub-spin","scrub-scale","scrub-shrink","scrub-pan-left","scrub-pan-right","scrub-tilt","scrub-fade-through","scrub-blur-through","scrub-reveal-x"]}});
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/presets-extended.umd.js.map
|
package/dist/react.cjs
CHANGED
|
@@ -64,4 +64,4 @@ function createReactHooks(React) {
|
|
|
64
64
|
|
|
65
65
|
exports.createReactHooks = createReactHooks;
|
|
66
66
|
exports.withLatestCallbacks = withLatestCallbacks;
|
|
67
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
67
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/react.cjs.map
|
package/dist/react.js
CHANGED
|
@@ -61,4 +61,4 @@ function createReactHooks(React) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export { createReactHooks, withLatestCallbacks };
|
|
64
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
64
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/react.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `motionary/runtime/drag-snap` (10.8) — pointer drag with inertia and snap
|
|
@@ -266,4 +266,4 @@ exports.projectThrow = projectThrow;
|
|
|
266
266
|
exports.rubberband = rubberband;
|
|
267
267
|
exports.springStep = springStep;
|
|
268
268
|
exports.velocityTracker = velocityTracker;
|
|
269
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
269
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/drag-snap.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e){"use strict";function n(t,e,n=3e3){return t+e*Math.abs(e)/(2*Math.max(1,n))}function r(t,e){let n=0,r=1/0;return t.forEach((t,i)=>{const a=Math.abs(t-e);a<r&&(r=a,n=i)}),n}function i(t,e,n=.55){return Math.sign(t)*(1-1/(Math.abs(t)*n/Math.max(1,e)+1))*e}function a(t,e,n,r,i=260,a=2*Math.sqrt(260)){const o=e+(-i*(t-n)-a*e)*r;return[t+o*r,o]}function o(t=100){let e=[];return{add(n,r){for(e.push([n,r]);e.length>2&&n-e[0][0]>t;)e.shift()},velocity(t){if(e.length<2)return 0;const[n,r]=e[e.length-1];if(void 0!==t&&t-n>60)return 0;const[i,a]=e[0];return n>i?(r-a)/(n-i)*1e3:0},reset(){e=[]}}}function s(t,s={}){const c=e.requireModule("core","motionary/runtime/drag-snap"),l="x"===(s.axis||"x");let u=(s.snap||[]).slice(),p=0,d=0;const h=t=>{t?[p,d]=[Math.min(t[0],t[1]),Math.max(t[0],t[1])]:u.length?[p,d]=[Math.min(...u),Math.max(...u)]:[p,d]=[-1/0,1/0]};h(s.bounds);let m=s.position??(u.length?u[0]:0),g=0,f=null,M=u.length?r(u,m):0,v=!1,E=!1,b=0,S=0,x=-1,y=null;const L=o(),T=()=>!!s.reducedMotion,w=t=>Math.min(d,Math.max(p,t)),k=()=>s.onUpdate?.(m),D=()=>{y?.(),y=null},I=(t,e=!0)=>{if(f=t,!e||T())return m=t,g=0,f=null,D(),k(),void(u.length&&s.onSnap?.(M,m));y||(y=c.getTicker().add((t,e)=>{if(null===f)return D();let n=Math.min(e,64)/1e3;for(;n>0;){const t=Math.min(n,1/120);[m,g]=a(m,g,f,t,s.stiffness,s.damping),n-=t}if(Math.abs(m-f)<.3&&Math.abs(g)<8)return m=f,g=0,f=null,D(),k(),void(u.length&&s.onSnap?.(M,m));k()}))},R=(t,e)=>{if(!u.length)return-1;const i=!1===s.inertia||T()?t:n(t,e,s.deceleration);let a=r(u,i);const o=r(u,S);if(a===o&&Math.abs(e)>(s.flick??400)){const t=u.map((t,e)=>[t,e]).sort((t,e)=>t[0]-e[0]),n=t.findIndex(t=>t[1]===o),r=t[n+(e>0?1:-1)];r&&(a=r[1])}return a},P=t=>l?t.clientX:t.clientY,q=t=>{t.button>0||E||(E=!0,v=!1,x=t.pointerId,b=P(t),S=m,L.reset(),L.add(t.timeStamp??performance.now(),m))},j=e=>{if(!E||e.pointerId!==x)return;const n=P(e)-b;if(!v){if(Math.abs(n)<(s.threshold??4))return;v=!0,f=null,D();try{t.setPointerCapture?.(x)}catch{}s.onDragStart?.()}const r=S+n,a=s.resistance??.55,o=(l?t.parentElement?.clientWidth:t.parentElement?.clientHeight)||300;m=r<p?a?p+i(r-p,o,a):p:r>d?a?d+i(r-d,o,a):d:r,L.add(e.timeStamp??performance.now(),m),k(),e.preventDefault?.()},N=e=>{if(!E||e.pointerId!==x)return;if(E=!1,!v)return;v=!1;const r=L.velocity(e.timeStamp??performance.now());s.onDragEnd?.(r);const i=t=>(t.stopPropagation(),t.preventDefault());t.addEventListener("click",i,{capture:!0,once:!0}),setTimeout(()=>t.removeEventListener("click",i,{capture:!0}),0),g=T()?0:r,u.length?(M=R(m,r),I(u[M])):I(w(!1===s.inertia||T()?m:n(m,r,s.deceleration)))};return t.style.touchAction=l?"pan-y":"pan-x",t.addEventListener("pointerdown",q),t.addEventListener("pointermove",j),t.addEventListener("pointerup",N),t.addEventListener("pointercancel",N),k(),{get position(){return m},get index(){return M},get dragging(){return v},get moving(){return null!==f||v},snapTo(t,e=!0){u.length&&(M=Math.max(0,Math.min(u.length-1,Math.round(t))),g=0,I(u[M],e))},setPosition(t,e=!1){g=0,u.length&&(M=r(u,t)),I(w(t),e)},setSnapPoints(t,e){u=t.slice(),h(e),u.length&&(M=Math.min(M,u.length-1),m=u[M],f=null,D(),k())},targetFor:R,dispose(){D(),t.removeEventListener("pointerdown",q),t.removeEventListener("pointermove",j),t.removeEventListener("pointerup",N),t.removeEventListener("pointercancel",N)}}}const c={id:"drag-snap",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{createDragSnap:s,projectThrow:n,nearestSnap:r,rubberband:i,springStep:a,velocityTracker:o}};e.register(c),t.createDragSnap=s,t.dragSnap=c,t.nearestSnap=r,t.projectThrow=n,t.rubberband=i,t.springStep=a,t.velocityTracker=o}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/drag-snap.iife.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DFWqcv5h.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `motionary/runtime/drag-snap` (10.8) — pointer drag with inertia and snap
|
|
@@ -258,4 +258,4 @@ function createDragSnap(el, o = {}) {
|
|
|
258
258
|
const dragSnap = { id: 'drag-snap', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { createDragSnap, projectThrow, nearestSnap, rubberband, springStep, velocityTracker } };
|
|
259
259
|
|
|
260
260
|
export { createDragSnap, dragSnap, nearestSnap, projectThrow, rubberband, springStep, velocityTracker };
|
|
261
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
261
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/drag-snap.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var animImage = require('../chunks/anim-image-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
|
+
var animImage = require('../chunks/anim-image-04e2kxjK.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/format-apng` (10.4) — animated PNG (APNG) loader written
|
|
@@ -125,4 +125,4 @@ exports.formatApng = formatApng;
|
|
|
125
125
|
exports.loadApng = loadApng;
|
|
126
126
|
exports.parseApng = parseApng;
|
|
127
127
|
exports.pngChunks = pngChunks;
|
|
128
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
128
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-apng.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e,a){"use strict";const n=t=>t<=10?100:t;function i(t,e,a,n){const i=new Uint8ClampedArray(t*e*4),r=[];for(const n of a){const a="previous"===n.dispose?i.slice():null,{width:s,height:o,data:h}=n.image;for(let a=0;a<o;a++){const r=n.y+a;if(!(r<0||r>=e))for(let e=0;e<s;e++){const o=n.x+e;if(o<0||o>=t)continue;const d=4*(a*s+e),f=4*(r*t+o),c=h[d+3];if("source"===n.blend||255===c)i[f]=h[d],i[f+1]=h[d+1],i[f+2]=h[d+2],i[f+3]=c;else if(c){const t=i[f+3]/255,e=c/255,a=e+t*(1-e);for(let n=0;n<3;n++)i[f+n]=(h[d+n]*e+i[f+n]*t*(1-e))/a;i[f+3]=255*a}}}if(r.push({delay:n.delay,image:{width:t,height:e,data:i.slice()}}),"background"===n.dispose)for(let a=Math.max(0,n.y);a<Math.min(e,n.y+o);a++)for(let e=Math.max(0,n.x);e<Math.min(t,n.x+s);e++)i.set([0,0,0,0],4*(a*t+e));else a&&i.set(a)}return r}const r=async(t,e)=>{const a=globalThis;if("function"!=typeof a.createImageBitmap)throw new Error("[motionary] no image decoder here (createImageBitmap is missing) — pass { decode } to the loader");const n=await a.createImageBitmap(new Blob([t],{type:e})),i=n.width,r=n.height,s=("function"==typeof a.OffscreenCanvas?new a.OffscreenCanvas(i,r):Object.assign(document.createElement("canvas"),{width:i,height:r})).getContext("2d",{willReadFrequently:!0});s.drawImage(n,0,0),n.close?.();const o=s.getImageData(0,0,i,r);return{width:o.width,height:o.height,data:o.data}};class s extends a.Playable{constructor(t,e,a){super({repeat:a.repeat??(0===e.plays?-1:Math.max(0,e.plays-1)),yoyo:a.yoyo}),this.canvas=t,this.anim=e,this.times=[0],this.cur=-1,this.timeScale=a.speed||1;for(const t of e.frames)this.times.push(this.times[this.times.length-1]+t.delay);t.width!==e.width&&(t.width=e.width),t.height!==e.height&&(t.height=e.height),this.ctx=t.getContext("2d"),this.datas=e.frames.map(()=>null),this.show(0),a.paused||this.play()}get duration(){return this.times[this.times.length-1]}get frame(){return this.cur}get frameCount(){return this.anim.frames.length}renderLocal(t){const e=Math.min(t,this.duration-.001);let a=0,n=this.anim.frames.length-1;for(;a<n;){const t=a+n+1>>1;this.times[t]<=e?a=t:n=t-1}this.show(a)}show(t){if(t===this.cur||!this.ctx)return;this.cur=t;const e=this.anim.frames[t];if(!e)return;let a=this.datas[t];a||"function"!=typeof ImageData||(a=this.datas[t]=new ImageData(new Uint8ClampedArray(e.image.data),e.image.width,e.image.height)),a&&this.ctx.putImageData(a,0,0)}}function o(t,e,a={}){if(!e.frames.length)throw new Error("[motionary] animatedImagePlayer: the animation has no frames");return new s(t,e,a)}let h=null;const d=[137,80,78,71,13,10,26,10],f=(t,e)=>(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0,c=(t,e)=>t[e]<<8|t[e+1];function l(t){for(let e=0;e<8;e++)if(t[e]!==d[e])throw new Error("[motionary] format-apng: not a PNG file");const e=[];let a=8;for(;a+8<=t.length;){const n=f(t,a),i=String.fromCharCode(t[a+4],t[a+5],t[a+6],t[a+7]);if(e.push({type:i,data:t.subarray(a+8,a+8+n)}),a+=12+n,"IEND"===i)break}return e}function m(t){var e;const a=l((e=t)instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),i="IHDR"===a[0]?.type?a[0].data:null;if(!i)throw new Error("[motionary] format-apng: missing IHDR");const r=f(i,0),s=f(i,4),o=a.filter(t=>/^(PLTE|tRNS|gAMA|cHRM|sRGB|iCCP|sBIT)$/.test(t.type)),h=a.find(t=>"acTL"===t.type),d=[];let m=null,u=!1,g=!1;const y=[];for(const t of a)if("fcTL"===t.type){const e=t.data,a=c(e,20),i=c(e,22)||100;m={width:f(e,4),height:f(e,8),x:f(e,12),y:f(e,16),delay:n(a/i*1e3),dispose:["none","background","previous"][e[24]]||"none",blend:1===e[25]?"over":"source",data:[]},d.push(m),u||(g=!0)}else"IDAT"===t.type?(u=!0,y.push(t.data),m&&g&&m.data.push(t.data)):"fdAT"===t.type&&m&&m.data.push(t.data.subarray(4));return h&&d.length?("previous"===d[0].dispose&&(d[0].dispose="background"),{width:r,height:s,plays:f(h.data,4),animated:!0,hiddenDefault:!g,frames:d,shared:o,ihdr:i}):{width:r,height:s,plays:1,animated:!1,hiddenDefault:!1,frames:[{width:r,height:s,x:0,y:0,delay:100,dispose:"none",blend:"source",data:y}],shared:o,ihdr:i}}function u(t,e){const a=new Uint8Array(12+e.length),n=new DataView(a.buffer);n.setUint32(0,e.length);for(let e=0;e<4;e++)a[4+e]=t.charCodeAt(e);return a.set(e,8),n.setUint32(8+e.length,function(t,e=0,a=t.length){if(!h){h=new Uint32Array(256);for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?3988292384^e>>>1:e>>>1;h[t]=e>>>0}}let n=4294967295;for(let i=e;i<a;i++)n=h[255&(n^t[i])]^n>>>8;return(4294967295^n)>>>0}(a,4,8+e.length)),a}function g(t){return t.frames.map(e=>{const a=new Uint8Array(t.ihdr),n=new DataView(a.buffer);n.setUint32(0,e.width),n.setUint32(4,e.height);const i=[new Uint8Array(d),u("IHDR",a),...t.shared.map(t=>u(t.type,t.data)),...e.data.map(t=>u("IDAT",t)),u("IEND",new Uint8Array(0))],r=new Uint8Array(i.reduce((t,e)=>t+e.length,0));let s=0;for(const t of i)r.set(t,s),s+=t.length;return r})}async function y(t,e={}){const a=m(t),n=e.decode||r,s=g(a),o=await Promise.all(s.map(t=>n(t,"image/png"))),h=a.frames.map((t,e)=>({x:t.x,y:t.y,image:o[e],delay:t.delay,blend:t.blend,dispose:t.dispose}));return{format:"apng",width:a.width,height:a.height,plays:a.plays,frames:i(a.width,a.height,h),info:a}}async function p(t,e={}){return y(await async function(t){if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())}return t instanceof ArrayBuffer?new Uint8Array(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(await t.arrayBuffer())}(t),e)}const w={id:"format-apng",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{parseApng:m,apngFramePngs:g,decodeApng:y,loadApng:p,animatedImagePlayer:o}};e.register(w),t.animatedImagePlayer=o,t.apngFramePngs=g,t.decodeApng=y,t.formatApng=w,t.loadApng=p,t.parseApng=m,t.pngChunks=l}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-apng.iife.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
|
+
import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-BTVdF7jp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/runtime/format-apng` (10.4) — animated PNG (APNG) loader written
|
|
@@ -117,4 +117,4 @@ async function loadApng(src, o = {}) {
|
|
|
117
117
|
const formatApng = { id: 'format-apng', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { parseApng, apngFramePngs, decodeApng, loadApng, animatedImagePlayer } };
|
|
118
118
|
|
|
119
119
|
export { animatedImagePlayer, apngFramePngs, decodeApng, formatApng, loadApng, parseApng, pngChunks };
|
|
120
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
120
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-apng.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var keyframes = require('../chunks/keyframes-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
|
+
var keyframes = require('../chunks/keyframes-DQXX31yd.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/format-css` (10.1) — import CSS `@keyframes` and Web
|
|
@@ -180,4 +180,4 @@ exports.parseKeyframes = parseKeyframes;
|
|
|
180
180
|
exports.parseKeyframesBody = parseKeyframesBody;
|
|
181
181
|
exports.playKeyframes = playKeyframes;
|
|
182
182
|
exports.toWaapi = toWaapi;
|
|
183
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
183
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-css.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(e,t,s,o){"use strict";const r=e=>e.startsWith("--")?e:e.trim().replace(/-([a-z])/g,(e,t)=>t.toUpperCase());function n(e){if(!e||"none"===e)return{x:0,y:0,rotate:0,scale:1};const t={},s=/([a-zA-Z][a-zA-Z0-9]*)\(([^)]*)\)/g;let o,r=e;for(;o=s.exec(e);){r=r.replace(o[0],"");const e=o[2].split(/[\s,]+/).filter(Boolean);switch(o[1]){case"translate":t.x=e[0],t.y=e[1]??0;break;case"translateX":t.x=e[0];break;case"translateY":t.y=e[0];break;case"translate3d":if(0!==parseFloat(e[2]||"0"))return null;t.x=e[0],t.y=e[1]??0;break;case"scale3d":if(1!==parseFloat(e[2]??"1"))return null;void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"rotate":case"rotateZ":t.rotate=e[0];break;case"scale":void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"scaleX":t.scaleX=+e[0];break;case"scaleY":t.scaleY=+e[0];break;case"skewX":t.skewX=e[0];break;case"skewY":t.skewY=e[0];break;default:return null}}return r.trim()?null:t}function a(e){const t={};for(const[s,o]of Object.entries(e)){if("transform"===s&&"string"==typeof o){const e=n(o);if(e){Object.assign(t,e);continue}}t[s]=o}return t}const f=e=>{try{return s.parseValue(e),!0}catch{return!1}};function i(e,t){let s=0;for(let o=t;o<e.length;o++)if("{"===e[o])s++;else if("}"===e[o]&&0===--s)return[e.slice(t+1,o),o+1];throw new Error("[motionary] format-css: unbalanced braces in @keyframes")}function c(e){const t={};let s,o=0,n="";const a=[];for(const t of e)"("===t&&o++,")"===t&&o--,";"!==t||o?n+=t:(a.push(n),n="");a.push(n);for(const e of a){const o=e.indexOf(":");if(o<0)continue;const n=e.slice(0,o).trim(),a=e.slice(o+1).replace(/!important/i,"").trim();n&&a&&("animation-timing-function"===n||"-webkit-animation-timing-function"===n?s=a:t[r(n)]=a)}return{props:t,easing:s}}const l=e=>{const t=e.trim().toLowerCase();if("from"===t)return 0;if("to"===t)return 1;const s=parseFloat(t);if(!t.endsWith("%")||!Number.isFinite(s))throw new Error(`[motionary] format-css: bad keyframe selector "${e}"`);return s/100};function p(e){const t=[];let s=0;for(;s<e.length;){const o=e.indexOf("{",s);if(o<0)break;const r=e.slice(s,o),[n,a]=i(e,o),f=c(n);for(const e of r.split(","))e.trim()&&t.push({offset:l(e),props:{...f.props},...f.easing?{easing:f.easing}:{}});s=a}const o=new Map;for(const e of t.sort((e,t)=>e.offset-t.offset)){const t=o.get(e.offset);o.set(e.offset,t?{offset:e.offset,props:{...t.props,...e.props},easing:e.easing??t.easing}:e)}return Array.from(o.values())}function u(e){const t=(e=>e.replace(/\/\*[\s\S]*?\*\//g,""))(e),s=[],o=/@(?:-webkit-|-moz-)?keyframes\s+(["']?)([\w-]+)\1\s*\{/g;let r;for(;r=o.exec(t);){const[e,n]=i(t,r.index+r[0].length-1);s.push({name:r[2],frames:p(e)}),o.lastIndex=n}return s}function m(e){const t=e.cssText,s=t.indexOf("{");return{name:e.name,frames:p(i(t,s)[0])}}function y(e){let t;if(Array.isArray(e))t=e;else{const s=Math.max(...Object.entries(e).filter(([e])=>"easing"!==e&&"offset"!==e&&"composite"!==e).map(([,e])=>Array.isArray(e)?e.length:1));t=Array.from({length:s},(t,o)=>{const r={};for(const[t,n]of Object.entries(e)){if("composite"===t)continue;const e=Array.isArray(n)?n:[n];if("offset"!==t){if("easing"===t){const t=e[Math.min(o,e.length-1)];void 0!==t&&(r.easing=t);continue}1===e.length&&s>1?o===s-1&&(r[t]=e[0]):void 0!==e[o]&&(r[t]=e[o])}else void 0!==e[o]&&(r.offset=e[o])}return r})}return function(e){const t=e.map(e=>({...e}));if(!t.length)return t;null==t[0].offset&&(t[0].offset=1===t.length?1:0),null==t[t.length-1].offset&&(t[t.length-1].offset=1);let s=0;for(;s<t.length;){if(null!=t[s].offset){s++;continue}const e=s-1;let o=s;for(;null==t[o].offset;)o++;const r=t[e].offset,n=t[o].offset;for(let a=s;a<o;a++)t[a].offset=r+(n-r)*(a-e)/(o-e);s=o}return t}(t).map(e=>{const t={};for(const[s,o]of Object.entries(e))"offset"===s||"easing"===s||"composite"===s||"string"!=typeof o&&"number"!=typeof o||(t[r("cssFloat"===s?"float":s)]=o);return{offset:e.offset,props:t,...e.easing?{easing:e.easing}:{}}})}function g(e){return e.map(e=>({...e.props,offset:e.offset,...e.easing?{easing:e.easing}:{}}))}function d(e,t,r={}){return function(e,t,r={}){const n=r.duration??1e3,i=[...t].sort((e,t)=>e.offset-t.offset).map(e=>({...e,props:a(e.props)})),c=new s.Timeline({repeat:r.repeat,yoyo:r.yoyo,delay:r.delay,onUpdate:r.onUpdate,onComplete:r.onComplete}),l=Array.from(new Set(i.flatMap(e=>Object.keys(e.props)))),p=i.map(e=>({...e,props:{...e.props}}));for(const e of l){let t,s;for(const s of p)e in s.props?t=s.props[e]:void 0!==t&&(s.props[e]=t);for(let t=p.length-1;t>=0;t--)e in p[t].props?s=p[t].props[e]:void 0!==s&&(p[t].props[e]=s)}const u=r.ease??"linear";1===p.length&&p.unshift({...p[0],offset:0});for(let t=0;t<p.length-1;t++){const r=p[t],a=p[t+1],i=Math.max(0,(a.offset-r.offset)*n),m={},y={},g=[];for(const e of l)f(r.props[e])&&f(a.props[e])?(m[e]=r.props[e],y[e]=a.props[e]):g.push([e,a.props[e]]);c.add(new s.Tween(e,{from:m,to:y,duration:i,ease:r.easing?o.parseEase(r.easing):u,paused:!0}),r.offset*n);for(const[t,s]of g)c.call(()=>{e.style?e.style.setProperty(t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),String(s)):e[t]=s},r.offset*n+i/2)}return!1===r.paused&&c.play(),c}(e,Array.isArray(t)?t:t.frames,{...r,paused:r.paused??!1})}const h={id:"format-css",version:t.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{parseKeyframes:u,fromCssRule:m,fromWaapi:y,toWaapi:g,playKeyframes:d}};t.register(h),e.formatCss=h,e.fromCssRule=m,e.fromWaapi=y,e.parseKeyframes=u,e.parseKeyframesBody=p,e.playKeyframes=d,e.toWaapi=g}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-css.iife.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
|
+
import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-CiwQ9xWF.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/runtime/format-css` (10.1) — import CSS `@keyframes` and Web
|
|
@@ -172,4 +172,4 @@ function playKeyframes(target, frames, o = {}) {
|
|
|
172
172
|
const formatCss = { id: 'format-css', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { parseKeyframes, fromCssRule, fromWaapi, toWaapi, playKeyframes } };
|
|
173
173
|
|
|
174
174
|
export { formatCss, fromCssRule, fromWaapi, parseKeyframes, parseKeyframesBody, playKeyframes, toWaapi };
|
|
175
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
175
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var animImage = require('../chunks/anim-image-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
|
+
var animImage = require('../chunks/anim-image-04e2kxjK.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/format-gif` (10.4) — a complete GIF decoder written for
|
|
@@ -200,4 +200,4 @@ exports.decodeGif = decodeGif;
|
|
|
200
200
|
exports.formatGif = formatGif;
|
|
201
201
|
exports.loadGif = loadGif;
|
|
202
202
|
exports.lzwDecode = lzwDecode;
|
|
203
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
203
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gif.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e,n){"use strict";const r=t=>t<=10?100:t;function i(t,e,n,r){const i=new Uint8ClampedArray(t*e*4),a=[];for(const o of n){const n="previous"===o.dispose?i.slice():null,{width:s,height:f,data:h}=o.image;for(let n=0;n<f;n++){const r=o.y+n;if(!(r<0||r>=e))for(let e=0;e<s;e++){const a=o.x+e;if(a<0||a>=t)continue;const f=4*(n*s+e),c=4*(r*t+a),l=h[f+3];if("source"===o.blend||255===l)i[c]=h[f],i[c+1]=h[f+1],i[c+2]=h[f+2],i[c+3]=l;else if(l){const t=i[c+3]/255,e=l/255,n=e+t*(1-e);for(let r=0;r<3;r++)i[c+r]=(h[f+r]*e+i[c+r]*t*(1-e))/n;i[c+3]=255*n}}}if(a.push({delay:o.delay,image:{width:t,height:e,data:i.slice()}}),"background"===o.dispose)for(let n=Math.max(0,o.y);n<Math.min(e,o.y+f);n++)for(let e=Math.max(0,o.x);e<Math.min(t,o.x+s);e++)i.set(r||[0,0,0,0],4*(n*t+e));else n&&i.set(n)}return a}class a extends n.Playable{constructor(t,e,n){super({repeat:n.repeat??(0===e.plays?-1:Math.max(0,e.plays-1)),yoyo:n.yoyo}),this.canvas=t,this.anim=e,this.times=[0],this.cur=-1,this.timeScale=n.speed||1;for(const t of e.frames)this.times.push(this.times[this.times.length-1]+t.delay);t.width!==e.width&&(t.width=e.width),t.height!==e.height&&(t.height=e.height),this.ctx=t.getContext("2d"),this.datas=e.frames.map(()=>null),this.show(0),n.paused||this.play()}get duration(){return this.times[this.times.length-1]}get frame(){return this.cur}get frameCount(){return this.anim.frames.length}renderLocal(t){const e=Math.min(t,this.duration-.001);let n=0,r=this.anim.frames.length-1;for(;n<r;){const t=n+r+1>>1;this.times[t]<=e?n=t:r=t-1}this.show(n)}show(t){if(t===this.cur||!this.ctx)return;this.cur=t;const e=this.anim.frames[t];if(!e)return;let n=this.datas[t];n||"function"!=typeof ImageData||(n=this.datas[t]=new ImageData(new Uint8ClampedArray(e.image.data),e.image.width,e.image.height)),n&&this.ctx.putImageData(n,0,0)}}function o(t,e,n={}){if(!e.frames.length)throw new Error("[motionary] animatedImagePlayer: the animation has no frames");return new a(t,e,n)}function s(t,e,n){const r=new Uint8Array(n),i=1<<t,a=i+1,o=new Uint16Array(4096),s=new Uint8Array(4096),f=new Uint8Array(4097);let h=t+1,c=(1<<h)-1,l=a+1,u=-1,m=0,y=0,d=0,g=0,w=0;for(let t=0;t<i;t++)s[t]=t;for(;g<n;){for(;y<h;){if(w>=e.length)return r;d|=e[w++]<<y,y+=8}const p=d&c;if(d>>>=h,y-=h,p===i){h=t+1,c=(1<<h)-1,l=a+1,u=-1;continue}if(p===a)break;if(-1===u){r[g++]=s[p],u=m=p;continue}let b=p,A=0;for(p>=l&&(f[A++]=m,b=u);b>=i;)f[A++]=s[b],b=o[b];for(m=s[b],f[A++]=m;A&&g<n;)r[g++]=f[--A];l<4096&&(o[l]=u,s[l]=m,l++,l>c&&h<12&&(h++,c=(1<<h)-1)),u=p}return r}const f=["none","none","background","previous"];function h(t){const e=(n=t)instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength);var n;const a=String.fromCharCode(...e.subarray(0,6));if("GIF87a"!==a&&"GIF89a"!==a)throw new Error("[motionary] format-gif: not a GIF file");const o=e[6]|e[7]<<8,h=e[8]|e[9]<<8,c=e[10];let l=13,u=null;if(128&c){const t=3<<1+(7&c);u=e.subarray(l,l+t),l+=t}const m=[];let y=null,d=0,g=-1,w=0;const p=()=>{const t=[];let n=0;for(;l<e.length;){const r=e[l++];if(!r)break;t.push(e.subarray(l,l+r)),n+=r,l+=r}const r=new Uint8Array(n);let i=0;for(const e of t)r.set(e,i),i+=e.length;return r};for(;l<e.length;){const t=e[l++];if(59===t)break;if(33===t){const t=e[l++];if(249===t){const t=p();w=t[0]>>2&7,d=10*(t[1]|t[2]<<8),g=1&t[0]?t[3]:-1}else if(255===t){const t=String.fromCharCode(...e.subarray(l+1,l+12)),n=p();("NETSCAPE2.0"===t||"ANIMEXTS1.0"===t)&&n.length>=14&&1===n[11]&&(y=n[12]|n[13]<<8)}else p();continue}if(44!==t)break;const n=e[l]|e[l+1]<<8,i=e[l+2]|e[l+3]<<8,a=e[l+4]|e[l+5]<<8,o=e[l+6]|e[l+7]<<8,h=e[l+8];l+=9;let c=u;if(128&h){const t=3<<1+(7&h);c=e.subarray(l,l+t),l+=t}const b=s(e[l++],p(),a*o),A=new Uint32Array(o);if(64&h){let t=0;for(const[e,n]of[[0,8],[4,8],[2,4],[1,2]])for(let r=e;r<o;r+=n)A[t++]=r}else for(let t=0;t<o;t++)A[t]=t;const U=new Uint8ClampedArray(a*o*4);for(let t=0;t<o;t++){const e=A[t];for(let n=0;n<a;n++){const r=b[t*a+n],i=4*(e*a+n);r===g||!c||3*r+2>=c.length||(U[i]=c[3*r],U[i+1]=c[3*r+1],U[i+2]=c[3*r+2],U[i+3]=255)}}m.push({x:n,y:i,image:{width:a,height:o,data:U},delay:r(d),blend:"over",dispose:f[w]||"none"}),d=0,g=-1,w=0}const b=i(o,h,m);return{format:"gif",width:o,height:h,plays:null===y?1:0===y?0:y+1,frames:b,info:{version:a.slice(3),width:o,height:h,loopCount:y,frameCount:b.length}}}async function c(t){return h(await async function(t){if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())}return t instanceof ArrayBuffer?new Uint8Array(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(await t.arrayBuffer())}(t))}const l={id:"format-gif",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{decodeGif:h,loadGif:c,lzwDecode:s,animatedImagePlayer:o}};e.register(l),t.animatedImagePlayer=o,t.composeFrames=i,t.decodeGif=h,t.formatGif=l,t.loadGif=c,t.lzwDecode=s}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gif.iife.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
|
+
import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-BTVdF7jp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/runtime/format-gif` (10.4) — a complete GIF decoder written for
|
|
@@ -193,4 +193,4 @@ async function loadGif(src) {
|
|
|
193
193
|
const formatGif = { id: 'format-gif', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { decodeGif, loadGif, lzwDecode, animatedImagePlayer } };
|
|
194
194
|
|
|
195
195
|
export { animatedImagePlayer, composeFrames, decodeGif, formatGif, loadGif, lzwDecode };
|
|
196
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
196
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gif.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
4
|
var runtime_gl = require('./gl.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -227,4 +227,4 @@ exports.gltfToNode = gltfToNode;
|
|
|
227
227
|
exports.loadGltf = loadGltf;
|
|
228
228
|
exports.parseGlb = parseGlb;
|
|
229
229
|
exports.readAccessor = readAccessor;
|
|
230
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
230
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gltf.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e){"use strict";const r={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,r=new Float32Array(16)){for(let o=0;o<4;o++)for(let n=0;n<4;n++)r[4*o+n]=t[n]*e[4*o]+t[4+n]*e[4*o+1]+t[8+n]*e[4*o+2]+t[12+n]*e[4*o+3];return r},perspective(t,e,r,o){const n=1/Math.tan(t/2),i=1/(r-o);return new Float32Array([n/e,0,0,0,0,n,0,0,0,0,(o+r)*i,-1,0,0,2*o*r*i,0])},lookAt(t,e,r=[0,1,0]){let a=o(t,e);a=s(a.some(t=>t)?a:[0,0,1]);let l=i(r,a);l.some(t=>Math.abs(t)>1e-9)||(l=i([0,0,1],a)),l=s(l);const c=i(a,l);return new Float32Array([l[0],c[0],a[0],0,l[1],c[1],a[1],0,l[2],c[2],a[2],0,-n(l,t),-n(c,t),-n(a,t),1])},compose(t,e,r){const[o,n,i,s]=e,a=o+o,l=n+n,c=i+i,f=o*a,u=o*l,d=o*c,m=n*l,h=n*c,y=i*c,p=s*a,g=s*l,w=s*c;return new Float32Array([(1-(m+y))*r[0],(u+w)*r[0],(d-g)*r[0],0,(u-w)*r[1],(1-(f+y))*r[1],(h+p)*r[1],0,(d+g)*r[2],(h-p)*r[2],(1-(f+m))*r[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[r,o,n,i,s,a,l,c,f,u,d,m,h,y,p,g]=t,w=r*a-o*s,b=r*l-n*s,v=r*c-i*s,A=o*l-n*a,E=o*c-i*a,U=n*c-i*l,O=f*y-u*h,T=f*p-d*h,x=f*g-m*h,M=u*p-d*y,R=u*g-m*y,F=d*g-m*p;let I=w*F-b*R+v*M+A*x-E*T+U*O;return I?(I=1/I,e[0]=(a*F-l*R+c*M)*I,e[1]=(n*R-o*F-i*M)*I,e[2]=(y*U-p*E+g*A)*I,e[3]=(d*E-u*U-m*A)*I,e[4]=(l*x-s*F-c*T)*I,e[5]=(r*F-n*x+i*T)*I,e[6]=(p*v-h*U-g*b)*I,e[7]=(f*U-d*v+m*b)*I,e[8]=(s*R-a*x+c*O)*I,e[9]=(o*x-r*R-i*O)*I,e[10]=(h*E-y*v+g*w)*I,e[11]=(u*v-f*E-m*w)*I,e[12]=(a*T-s*M-l*O)*I,e[13]=(r*M-o*T+n*O)*I,e[14]=(y*b-h*A-p*w)*I,e[15]=(f*A-u*b+d*w)*I,e):null},normal(t){const e=r.invert(t)||r.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const r=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/r,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/r,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/r]}},o=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],i=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],s=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function a(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}class l{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=r.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,r){return this.rotation=function(t,e,r){const o=Math.cos(t/2),n=Math.sin(t/2),i=Math.cos(e/2),s=Math.sin(e/2),a=Math.cos(r/2),l=Math.sin(r/2);return[n*i*a+o*s*l,o*s*a-n*i*l,o*i*l+n*s*a,o*i*a-n*s*l]}(t,e,r),this}local(){return this.matrix||r.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?r.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(r=>{e||r.name!==t||(e=r)}),e}}const c=["KHR_materials_emissive_strength","KHR_materials_unlit"];function f(t){const e=t instanceof Uint8Array?t:new Uint8Array(t),r=new DataView(e.buffer,e.byteOffset,e.byteLength);if(1179937895!==r.getUint32(0,!0))throw new Error("[motionary] format-gltf: not a GLB file");if(2!==r.getUint32(4,!0))throw new Error("[motionary] format-gltf: only glTF 2.0 GLB is supported");const o=Math.min(r.getUint32(8,!0),e.byteLength);let n=12,i=null,s=null;for(;n+8<=o;){const t=r.getUint32(n,!0),o=r.getUint32(n+4,!0),a=e.subarray(n+8,n+8+t);1313821514===o?i=JSON.parse((new TextDecoder).decode(a)):5130562!==o||s||(s=a),n+=8+t}if(!i)throw new Error("[motionary] format-gltf: GLB without a JSON chunk");return{json:i,bin:s}}const u={5120:[1,Int8Array,127],5121:[1,Uint8Array,255],5122:[2,Int16Array,32767],5123:[2,Uint16Array,65535],5125:[4,Uint32Array,0],5126:[4,Float32Array,0]},d={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function m(t,e,r,o=!0){const n=t.accessors?.[r];if(!n)throw new Error(`[motionary] format-gltf: accessor ${r} missing`);const[i,s,a]=u[n.componentType]||[];if(!s)throw new Error(`[motionary] format-gltf: component type ${n.componentType} unsupported`);const l=d[n.type],c=n.count*l,f=s===Float32Array,m=o||f?new Float32Array(c):new s(c),h=(r,o=0)=>{const n=t.bufferViews[r],i=e[n.buffer];return{dv:new DataView(i.buffer,i.byteOffset,i.byteLength),base:(n.byteOffset||0)+o,stride:n.byteStride}},y=(t,e,r)=>o=>4===e?r===Float32Array?t.getFloat32(o,!0):t.getUint32(o,!0):2===e?r===Int16Array?t.getInt16(o,!0):t.getUint16(o,!0):r===Int8Array?t.getInt8(o):t.getUint8(o),p=(t,e,r)=>m[t*l+e]=n.normalized&&a?Math.max(r/a,-1):r;if(void 0!==n.bufferView){const{dv:t,base:e,stride:r=i*l}=h(n.bufferView,n.byteOffset),o=y(t,i,s);for(let t=0;t<n.count;t++)for(let n=0;n<l;n++)p(t,n,o(e+t*r+n*i))}const g=n.sparse;if(g){const[t,e]=u[g.indices.componentType],r=h(g.indices.bufferView,g.indices.byteOffset),o=h(g.values.bufferView,g.values.byteOffset),n=y(r.dv,t,e),a=y(o.dv,i,s);for(let e=0;e<g.count;e++){const s=n(r.base+e*t);for(let t=0;t<l;t++)p(s,t,a(o.base+(e*l+t)*i))}}return m}function h(t,e){const r=[];if(5===e)for(let e=0;e+2<t.length;e++)r.push(...e%2?[t[e+1],t[e],t[e+2]]:[t[e],t[e+1],t[e+2]]);else for(let e=1;e+1<t.length;e++)r.push(t[0],t[e],t[e+1]);return new Uint32Array(r)}function y(t,e,r={},n){if(!t.asset||!/^2\./.test(t.asset.version))throw new Error("[motionary] format-gltf: only glTF 2.0 is supported");const f=(t.extensionsRequired||[]).filter(t=>!c.includes(t));if(f.length)throw new Error(`[motionary] format-gltf: this file requires ${f.join(", ")}, which motionary/runtime/format-gltf does not implement${f.some(t=>/draco|KHR_texture_basisu|meshopt/i.test(t))?" (compressed geometry / textures need the official decoders — use <usa-gl-model> / motionary/runtime/gltf-decoders with the official decoders (draco3d, Basis Universal), or re-export the model without compression)":""}`);const u=(t.materials||[]).map(e=>{const o=e.pbrMetallicRoughness||{},n=o.baseColorFactor||[1,1,1,1],i=t=>Math.pow(Math.max(0,t),1/2.2),s=e.extensions?.KHR_materials_emissive_strength?.emissiveStrength??1,l=a({color:[i(n[0]),i(n[1]),i(n[2]),n[3]??1],metallic:o.metallicFactor??1,roughness:o.roughnessFactor??1,emissive:(e.emissiveFactor||[0,0,0]).map(t=>t*s),doubleSided:!!e.doubleSided,transparent:"BLEND"===e.alphaMode});e.extensions?.KHR_materials_unlit&&(l.type="unlit");const c=o.baseColorTexture?.index,f=void 0!==c?t.textures?.[c]?.source:void 0;return void 0!==f&&r[f]&&(l.map=function(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}(r[f])),l}),d=(t.meshes||[]).map(r=>r.primitives.map(r=>{const n=r.mode??4;let l={positions:m(t,e,r.attributes.POSITION),normals:void 0!==r.attributes.NORMAL?m(t,e,r.attributes.NORMAL):void 0,uvs:void 0!==r.attributes.TEXCOORD_0?m(t,e,r.attributes.TEXCOORD_0):void 0,mode:0===n?"points":n>=1&&n<=3?"lines":"triangles"};if(void 0!==r.indices){let o=m(t,e,r.indices,!1);5!==n&&6!==n||(o=h(Uint32Array.from(o),n)),l.indices=o instanceof Uint8Array||o instanceof Uint32Array&&l.positions.length/3<=65535?Uint16Array.from(o):o}else 5!==n&&6!==n||(l.indices=h(Uint32Array.from({length:l.positions.length/3},(t,e)=>e),n));const c=r.attributes,f=r.targets||[],d=r=>void 0===r?void 0:m(t,e,r);return void 0!==c.JOINTS_0||f.length?l.deform={positions:l.positions,normals:l.normals,joints:d(c.JOINTS_0),weights:d(c.WEIGHTS_0),targets:f.map(t=>({positions:d(t.POSITION),normals:d(t.NORMAL)}))}:l.normals||"triangles"!==l.mode||(l=function(t){const e=t.positions,r=t.indices,n=r?r.length:e.length/3,a=new Float32Array(3*n),l=new Float32Array(3*n),c=t.uvs?new Float32Array(2*n):void 0;for(let f=0;f<n;f+=3){const n=[0,1,2].map(t=>r?r[f+t]:f+t),u=[e[3*n[0]],e[3*n[0]+1],e[3*n[0]+2]],d=[e[3*n[1]],e[3*n[1]+1],e[3*n[1]+2]],m=[e[3*n[2]],e[3*n[2]+1],e[3*n[2]+2]],h=s(i(o(d,u),o(m,u)));n.forEach((r,o)=>{a.set(e.subarray(3*r,3*r+3),3*(f+o)),l.set(h,3*(f+o)),c&&t.uvs&&c.set(t.uvs.subarray(2*r,2*r+2),2*(f+o))})}return{positions:a,normals:l,uvs:c,mode:t.mode}}(l)),{geometry:l,material:void 0!==r.material?u[r.material]:a({metallic:0,roughness:.6})}})),y=(t.nodes||[]).map((e,r)=>{const o=new l(e.name||`node${r}`,void 0!==e.mesh?d[e.mesh]:null);e.matrix&&(o.matrix=new Float32Array(e.matrix)),e.translation&&(o.position=e.translation.slice(0,3)),e.rotation&&(o.rotation=e.rotation.slice(0,4)),e.scale&&(o.scale=e.scale.slice(0,3)),o.extras.gltfIndex=r,void 0!==e.skin&&(o.extras.skin=e.skin);const n=e.weights||(void 0!==e.mesh?t.meshes?.[e.mesh]?.weights:void 0);return n&&(o.extras.weights=n.slice()),o});(t.nodes||[]).forEach((t,e)=>(t.children||[]).forEach(t=>y[e].add(y[t])));const p=new l("gltf"),g=t.scenes?.[n??t.scene??0];return(g?.nodes??y.map((t,e)=>e).filter(t=>!y[t].parent)).forEach(t=>p.add(y[t])),p.extras={gltf:t,nodes:y,read:r=>m(t,e,r)},p}async function p(t,e={}){const r=e.baseUrl||("string"==typeof t?new URL(t,"undefined"!=typeof location?location.href:"file:///").href:"undefined"!=typeof location?location.href:"file:///"),o=async t=>{if(t.startsWith("data:"))return(t=>{const[,e,r]=/^data:([^,]*),(.*)$/s.exec(t)||[];if(void 0===e)throw new Error("[motionary] format-gltf: bad data URI");if(/;base64/.test(e)){const t=atob(r);return Uint8Array.from(t,t=>t.charCodeAt(0))}return(new TextEncoder).encode(decodeURIComponent(r))})(t);const e=await fetch(new URL(t,r).href);if(!e.ok)throw new Error(`[motionary] format-gltf: could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())},n="string"==typeof t?await o(t):t instanceof Uint8Array?t:new Uint8Array(t);let i,s=null;103===n[0]&&108===n[1]&&84===n[2]&&70===n[3]?({json:i,bin:s}=f(n)):i=JSON.parse((new TextDecoder).decode(n));let a=await Promise.all((i.buffers||[]).map((t,e)=>t.uri?o(t.uri):0===e&&s?Promise.resolve(s):Promise.reject(new Error("[motionary] format-gltf: buffer without data")))),l={};return e.prepare&&({json:i,buffers:a,images:l}=await e.prepare(i,a)),await Promise.all((i.images||[]).map(async(t,e)=>{if(l[e])return;let r;if(void 0!==t.bufferView){const e=i.bufferViews[t.bufferView];r=a[e.buffer].subarray(e.byteOffset||0,(e.byteOffset||0)+e.byteLength)}else{if(!t.uri)return;r=await o(t.uri)}l[e]=await createImageBitmap(new Blob([r],{type:t.mimeType||(t.uri&&/\.jpe?g$/i.test(t.uri)?"image/jpeg":"image/png")}))})),y(i,a,l,e.scene)}const g={id:"format-gltf",version:e.RUNTIME_VERSION,tier:"advanced",requires:["core","gl"],api:{parseGlb:f,readAccessor:m,gltfToNode:y,loadGltf:p,SUPPORTED_EXTENSIONS:c}};e.register(g),t.SUPPORTED_EXTENSIONS=c,t.formatGltf=g,t.gltfToNode=y,t.loadGltf=p,t.parseGlb=f,t.readAccessor=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gltf.iife.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
2
|
import { standardMaterial, texture, computeNormals, GlNode } from './gl.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -220,4 +220,4 @@ async function loadGltf(src, o = {}) {
|
|
|
220
220
|
const formatGltf = { id: 'format-gltf', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseGlb, readAccessor, gltfToNode, loadGltf, SUPPORTED_EXTENSIONS } };
|
|
221
221
|
|
|
222
222
|
export { SUPPORTED_EXTENSIONS, formatGltf, gltfToNode, loadGltf, parseGlb, readAccessor };
|
|
223
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
223
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-gltf.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var tween = require('../chunks/tween-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
|
+
var tween = require('../chunks/tween-CSQ2EFBm.cjs');
|
|
5
5
|
var ease = require('../chunks/ease-HwYZnZat.cjs');
|
|
6
|
-
var keyframes = require('../chunks/keyframes-
|
|
6
|
+
var keyframes = require('../chunks/keyframes-DQXX31yd.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
|
|
@@ -136,4 +136,4 @@ exports.fromMotion = fromMotion;
|
|
|
136
136
|
exports.motionEase = motionEase;
|
|
137
137
|
exports.playMotion = playMotion;
|
|
138
138
|
exports.springEase = springEase;
|
|
139
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
139
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-motion.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(e,t,r,a){"use strict";function o(e){if(!e||"none"===e)return{x:0,y:0,rotate:0,scale:1};const t={},r=/([a-zA-Z][a-zA-Z0-9]*)\(([^)]*)\)/g;let a,o=e;for(;a=r.exec(e);){o=o.replace(a[0],"");const e=a[2].split(/[\s,]+/).filter(Boolean);switch(a[1]){case"translate":t.x=e[0],t.y=e[1]??0;break;case"translateX":t.x=e[0];break;case"translateY":t.y=e[0];break;case"translate3d":if(0!==parseFloat(e[2]||"0"))return null;t.x=e[0],t.y=e[1]??0;break;case"scale3d":if(1!==parseFloat(e[2]??"1"))return null;void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"rotate":case"rotateZ":t.rotate=e[0];break;case"scale":void 0!==e[1]&&e[1]!==e[0]?(t.scaleX=+e[0],t.scaleY=+e[1]):t.scale=+e[0];break;case"scaleX":t.scaleX=+e[0];break;case"scaleY":t.scaleY=+e[0];break;case"skewX":t.skewX=e[0];break;case"skewY":t.skewY=e[0];break;default:return null}}return o.trim()?null:t}function n(e){const t={};for(const[r,a]of Object.entries(e)){if("transform"===r&&"string"==typeof a){const e=o(a);if(e){Object.assign(t,e);continue}}t[r]=a}return t}const s=e=>{try{return r.parseValue(e),!0}catch{return!1}};function i(e,t,o={}){const i=o.duration??1e3,c=[...t].sort((e,t)=>e.offset-t.offset).map(e=>({...e,props:n(e.props)})),p=new r.Timeline({repeat:o.repeat,yoyo:o.yoyo,delay:o.delay,onUpdate:o.onUpdate,onComplete:o.onComplete}),f=Array.from(new Set(c.flatMap(e=>Object.keys(e.props)))),l=c.map(e=>({...e,props:{...e.props}}));for(const e of f){let t,r;for(const r of l)e in r.props?t=r.props[e]:void 0!==t&&(r.props[e]=t);for(let t=l.length-1;t>=0;t--)e in l[t].props?r=l[t].props[e]:void 0!==r&&(l[t].props[e]=r)}const u=o.ease??"linear";1===l.length&&l.unshift({...l[0],offset:0});for(let t=0;t<l.length-1;t++){const o=l[t],n=l[t+1],c=Math.max(0,(n.offset-o.offset)*i),y={},m={},b=[];for(const e of f)s(o.props[e])&&s(n.props[e])?(y[e]=o.props[e],m[e]=n.props[e]):b.push([e,n.props[e]]);p.add(new r.Tween(e,{from:y,to:m,duration:c,ease:o.easing?a.parseEase(o.easing):u,paused:!0}),o.offset*i);for(const[t,r]of b)p.call(()=>{e.style?e.style.setProperty(t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),String(r)):e[t]=r},o.offset*i+c/2)}return!1===o.paused&&p.play(),p}const c={linear:"linear",easeIn:"cubic-in",easeOut:"cubic-out",easeInOut:"cubic-in-out",circIn:"circ-in",circOut:"circ-out",circInOut:"circ-in-out",backIn:"back-in",backOut:"back-out",backInOut:"back-in-out",anticipate:"back-in-out"};function p(e){if(Array.isArray(e))return a.cubicBezier(e[0],e[1],e[2],e[3]);if(!e)return a.EASES["cubic-out"];const t=c[e]||e;if(!a.EASES[t])throw new Error(`[motionary] format-motion: unknown ease "${e}"`);return a.EASES[t]}function f(e){let t=e.stiffness??100,r=e.damping??10;const a=e.mass??1;if(void 0!==e.bounce&&void 0!==e.duration){const o=1-Math.min(.95,Math.max(0,e.bounce)),n=2*Math.PI/Math.max(.05,e.duration);t=a*n*n,r=2*o*Math.sqrt(t*a)}const o=1/120,n=[0];let s=0,i=0,c=0,p=0;for(;c<10;){if(i+=(-t*(s-1)-r*i)/a*o,s+=i*o,c+=o,n.push(s),Math.abs(s-1)<.001&&Math.abs(i)<.01){if(++p>12)break}else p=0}const f=n.length-1;n[f]=1;return[e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*f,r=Math.floor(t);return n[r]+(n[r+1]-n[r])*(t-r)},Math.round(1e3*c)]}function l(e){const t=e.transition||{},r=new Map;for(const a of Object.keys(e.animate)){const e=t[a]&&"object"==typeof t[a]?a:"";r.set(e,[...r.get(e)||[],a])}return Array.from(r.entries()).map(([r,a])=>{const o=r?{...t,...t[r]}:t,n=Math.max(...a.map(t=>Array.isArray(e.animate[t])?e.animate[t].length:1)),s=Math.max(2,n),i=(o.times&&o.times.length===s?o.times:Array.from({length:s},(e,t)=>t/(s-1))).map(e=>({offset:e,props:{}}));for(const t of a){const r=e.animate[t],a=Array.isArray(r)?r:[e.initial&&t in e.initial?e.initial[t]:void 0,r];(a.length===s?a:[...Array(s-a.length).fill(a[0]),...a]).forEach((e,r)=>{null!=e&&(i[r].props[t]=e)})}return Array.isArray(o.ease)&&o.ease.length&&(Array.isArray(o.ease[0])||"string"==typeof o.ease[0])&&o.ease.forEach((e,t)=>{i[t]&&(i[t].easing=Array.isArray(e)?`cubic-bezier(${e.join(",")})`:c[e]||e)}),{frames:i,transition:o,props:a}})}function u(e,t,a={}){const o=new r.Timeline({});if(t.initial)for(const[r,a]of Object.entries(t.initial))i(e,[{offset:0,props:{[r]:a}}],{duration:0}).seek(0);for(const{frames:r,transition:a}of l(t)){let t,n=1e3*(a.duration??.3);"spring"===a.type?[t,n]=f({...a,duration:a.duration}):Array.isArray(a.ease)&&"number"!=typeof a.ease[0]||(t=p(a.ease));const s=a.repeat===1/0?-1:a.repeat||0,c=i(e,r,{duration:n,ease:t,repeat:s,yoyo:0!==s&&"loop"!==a.repeatType&&!!a.repeatType});o.add(c,1e3*(a.delay||0))}return a.paused||o.play(),o}const y={id:"format-motion",version:t.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{fromMotion:l,playMotion:u,springEase:f,motionEase:p}};t.register(y),e.formatMotion=y,e.fromMotion=l,e.motionEase=p,e.playMotion=u,e.springEase=f}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-motion.iife.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { T as Timeline } from '../chunks/tween-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
|
+
import { T as Timeline } from '../chunks/tween-ltfzzNhy.js';
|
|
3
3
|
import { c as cubicBezier, E as EASES } from '../chunks/ease-XN8_0sXu.js';
|
|
4
|
-
import { f as framesToTimeline } from '../chunks/keyframes-
|
|
4
|
+
import { f as framesToTimeline } from '../chunks/keyframes-CiwQ9xWF.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
|
|
@@ -130,4 +130,4 @@ function playMotion(target, def, o = {}) {
|
|
|
130
130
|
const formatMotion = { id: 'format-motion', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { fromMotion, playMotion, springEase, motionEase } };
|
|
131
131
|
|
|
132
132
|
export { formatMotion, fromMotion, motionEase, playMotion, springEase };
|
|
133
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
133
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-motion.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
4
|
var runtime_gl = require('./gl.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -178,4 +178,4 @@ exports.objMaterial = objMaterial;
|
|
|
178
178
|
exports.objToNode = objToNode;
|
|
179
179
|
exports.parseMtl = parseMtl;
|
|
180
180
|
exports.parseObj = parseObj;
|
|
181
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
181
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-obj.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e){"use strict";const n={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,e,n=new Float32Array(16)){for(let s=0;s<4;s++)for(let r=0;r<4;r++)n[4*s+r]=t[r]*e[4*s]+t[4+r]*e[4*s+1]+t[8+r]*e[4*s+2]+t[12+r]*e[4*s+3];return n},perspective(t,e,n,s){const r=1/Math.tan(t/2),a=1/(n-s);return new Float32Array([r/e,0,0,0,0,r,0,0,0,0,(s+n)*a,-1,0,0,2*s*n*a,0])},lookAt(t,e,n=[0,1,0]){let i=s(t,e);i=o(i.some(t=>t)?i:[0,0,1]);let l=a(n,i);l.some(t=>Math.abs(t)>1e-9)||(l=a([0,0,1],i)),l=o(l);const c=a(i,l);return new Float32Array([l[0],c[0],i[0],0,l[1],c[1],i[1],0,l[2],c[2],i[2],0,-r(l,t),-r(c,t),-r(i,t),1])},compose(t,e,n){const[s,r,a,o]=e,i=s+s,l=r+r,c=a+a,h=s*i,u=s*l,m=s*c,p=r*l,d=r*c,f=a*c,w=o*i,y=o*l,b=o*c;return new Float32Array([(1-(p+f))*n[0],(u+b)*n[0],(m-y)*n[0],0,(u-b)*n[1],(1-(h+f))*n[1],(d+w)*n[1],0,(m+y)*n[2],(d-w)*n[2],(1-(h+p))*n[2],0,t[0],t[1],t[2],1])},invert(t){const e=new Float32Array(16),[n,s,r,a,o,i,l,c,h,u,m,p,d,f,w,y]=t,b=n*i-s*o,v=n*l-r*o,g=n*c-a*o,M=s*l-r*i,j=s*c-a*i,K=r*c-a*l,F=h*f-u*d,A=h*w-m*d,N=h*y-p*d,x=u*w-m*f,k=u*y-p*f,O=m*y-p*w;let R=b*O-v*k+g*x+M*N-j*A+K*F;return R?(R=1/R,e[0]=(i*O-l*k+c*x)*R,e[1]=(r*k-s*O-a*x)*R,e[2]=(f*K-w*j+y*M)*R,e[3]=(m*j-u*K-p*M)*R,e[4]=(l*N-o*O-c*A)*R,e[5]=(n*O-r*N+a*A)*R,e[6]=(w*g-d*K-y*v)*R,e[7]=(h*K-m*g+p*v)*R,e[8]=(o*k-i*N+c*F)*R,e[9]=(s*N-n*k-a*F)*R,e[10]=(d*j-f*g+y*b)*R,e[11]=(u*g-h*j-p*b)*R,e[12]=(i*A-o*x-l*F)*R,e[13]=(n*x-s*A+r*F)*R,e[14]=(f*v-d*M-w*b)*R,e[15]=(h*M-u*v+m*b)*R,e):null},normal(t){const e=n.invert(t)||n.identity();return new Float32Array([e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]])},transformPoint(t,e){const n=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]||1;return[(t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12])/n,(t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13])/n,(t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14])/n]}},s=(t,e)=>[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2],a=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],o=t=>{const e=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/e,t[1]/e,t[2]/e]};function i(t){const e=t.positions,n=t.indices,r=n?n.length:e.length/3,i=new Float32Array(3*r),l=new Float32Array(3*r),c=t.uvs?new Float32Array(2*r):void 0;for(let h=0;h<r;h+=3){const r=[0,1,2].map(t=>n?n[h+t]:h+t),u=[e[3*r[0]],e[3*r[0]+1],e[3*r[0]+2]],m=[e[3*r[1]],e[3*r[1]+1],e[3*r[1]+2]],p=[e[3*r[2]],e[3*r[2]+1],e[3*r[2]+2]],d=o(a(s(m,u),s(p,u)));r.forEach((n,s)=>{i.set(e.subarray(3*n,3*n+3),3*(h+s)),l.set(d,3*(h+s)),c&&t.uvs&&c.set(t.uvs.subarray(2*n,2*n+2),2*(h+s))})}return{positions:i,normals:l,uvs:c,mode:t.mode}}function l(t={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...t}}function c(t,e={}){return{source:t,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement,needsUpdate:!0,...e}}class h{constructor(t="",e=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=n.identity(),this.name=t,this.mesh=e}add(...t){for(const e of t)e.parent?.remove(e),e.parent=this,this.children.push(e);return this}remove(t){const e=this.children.indexOf(t);e>=0&&this.children.splice(e,1),t.parent=null}setEuler(t,e,n){return this.rotation=function(t,e,n){const s=Math.cos(t/2),r=Math.sin(t/2),a=Math.cos(e/2),o=Math.sin(e/2),i=Math.cos(n/2),l=Math.sin(n/2);return[r*a*i+s*o*l,s*o*i-r*a*l,s*a*l+r*o*i,s*a*i-r*o*l]}(t,e,n),this}local(){return this.matrix||n.compose(this.position,this.rotation,this.scale)}updateWorld(t){const e=t?n.multiply(t,this.local()):this.local();this.world.set(e);for(const t of this.children)t.updateWorld(this.world)}traverse(t){t(this);for(const e of this.children)e.traverse(t)}find(t){let e=null;return this.traverse(n=>{e||n.name!==t||(e=n)}),e}}const u=(t,e,n)=>Array.from({length:n},(n,s)=>parseFloat(t[e+s])||0);function m(t){const e=[],n=[],s=[],r=[],a=[];let o=null,l="default",c="",h=0;const m=()=>{if(o&&o.p.length){const t={positions:new Float32Array(o.p),uvs:o.hasT?new Float32Array(o.t):void 0};a.push({name:o.name,material:o.material,geometry:o.hasN?{...t,normals:new Float32Array(o.n)}:i(t)})}o=null},p=()=>(o&&o.name===l&&o.material===c||(m(),o={name:l,material:c,p:[],n:[],t:[],hasN:!0,hasT:!0}),o);for(const a of t.split(/\r?\n/)){const t=a.trim();if(!t||"#"===t[0])continue;const o=t.split(/\s+/);switch(o[0]){case"v":e.push(...u(o,1,3));break;case"vt":n.push(...u(o,1,2));break;case"vn":s.push(...u(o,1,3));break;case"o":case"g":m(),l=o.slice(1).join(" ")||"default";break;case"usemtl":c=o.slice(1).join(" ");break;case"mtllib":r.push(...o.slice(1));break;case"f":{const t=p(),r=o.slice(1).map(t=>{const[r,a,o]=t.split("/"),i=(t,e)=>t?+t<0?e+ +t:+t-1:-1;return[i(r,e.length/3),i(a,n.length/2),i(o,s.length/3)]});for(let a=1;a+1<r.length;a++){for(const o of[r[0],r[a],r[a+1]])t.p.push(e[3*o[0]],e[3*o[0]+1],e[3*o[0]+2]),o[1]>=0?t.t.push(n[2*o[1]],1-n[2*o[1]+1]):(t.hasT=!1,t.t.push(0,0)),o[2]>=0?t.n.push(s[3*o[2]],s[3*o[2]+1],s[3*o[2]+2]):(t.hasN=!1,t.n.push(0,0,1));h++}break}}}return m(),{groups:a,mtllibs:r,vertexCount:e.length/3,triangleCount:h}}function p(t){const e={};let n=null;for(const s of t.split(/\r?\n/)){const t=s.trim();if(!t||"#"===t[0])continue;const r=t.split(/\s+/),a=r[0];"newmtl"!==a?n&&("Kd"===a||"Ks"===a||"Ke"===a?n[a]=u(r,1,3):"Ns"===a?n.Ns=parseFloat(r[1])||0:"d"===a?n.d=parseFloat(r[1]):"Tr"===a?n.d=1-parseFloat(r[1]):"map_Kd"===a&&(n.map_Kd=r[r.length-1])):n=e[r.slice(1).join(" ")]={name:r.slice(1).join(" "),Kd:[.8,.8,.8],Ks:[0,0,0],Ke:[0,0,0],Ns:10,d:1}}return e}function d(t){if(!t)return l({color:[.8,.8,.8,1]});const e=Math.max(...t.Ks);return l({color:[t.Kd[0],t.Kd[1],t.Kd[2],t.d],roughness:Math.min(1,Math.max(.05,1-Math.sqrt(Math.min(t.Ns,1e3)/1e3)*(e>0?1:.4))),metallic:0,emissive:t.Ke,transparent:t.d<1})}function f(t,e={},n={}){const s=new h("obj"),r=new Map;for(const a of t.groups){let t=r.get(a.name);t||(t=new h(a.name,[]),r.set(a.name,t),s.add(t));const o=e[a.material],i=d(o);o?.map_Kd&&n[o.map_Kd]&&(i.map=c(n[o.map_Kd])),t.mesh.push({geometry:a.geometry,material:i})}return s}async function w(t){const e=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] format-obj: could not load ${t} (${e.status})`);return e},n=m(await(await e(t)).text()),s={};for(const r of n.mtllibs)Object.assign(s,p(await(await e(new URL(r,new URL(t,location.href)).href)).text()));const r={};await Promise.all(Object.values(s).filter(t=>t.map_Kd).map(async n=>{const s=await(await e(new URL(n.map_Kd,new URL(t,location.href)).href)).blob();r[n.map_Kd]=await createImageBitmap(s)}));const a=f(n,s,r);return a.extras={obj:n,materials:s},a}const y={id:"format-obj",version:e.RUNTIME_VERSION,tier:"advanced",requires:["core","gl"],api:{parseObj:m,parseMtl:p,objMaterial:d,objToNode:f,loadObj:w}};e.register(y),t.formatObj=y,t.loadObj=w,t.objMaterial=d,t.objToNode=f,t.parseMtl=p,t.parseObj=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-obj.iife.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
2
|
import { GlNode, texture, standardMaterial, computeNormals } from './gl.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -171,4 +171,4 @@ async function loadObj(url) {
|
|
|
171
171
|
const formatObj = { id: 'format-obj', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl'], api: { parseObj, parseMtl, objMaterial, objToNode, loadObj } };
|
|
172
172
|
|
|
173
173
|
export { formatObj, loadObj, objMaterial, objToNode, parseMtl, parseObj };
|
|
174
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
174
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-obj.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `motionary/runtime/format-scene` (10.7) — the versioned scene format
|
|
@@ -238,4 +238,4 @@ exports.parseScene = parseScene;
|
|
|
238
238
|
exports.sceneToWorld = sceneToWorld;
|
|
239
239
|
exports.validateScene = validateScene;
|
|
240
240
|
exports.worldToScene = worldToScene;
|
|
241
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
241
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-scene.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(e,t){"use strict";const i="motionary-scene@1",s=e=>"number"==typeof e&&isFinite(e),n=e=>Array.isArray(e)&&2===e.length&&e.every(s);function o(e){const t=[],n="string"==typeof e?JSON.parse(e):JSON.parse(JSON.stringify(e??{}));if(n.format===i)return{scene:n,changes:t};if(n.format&&"motionary-scene@0"!==n.format)throw new Error(`[motionary] scene: unknown format "${n.format}" (this build reads ${i} and migrates motionary-scene@0 / unversioned scenes)`);return t.push(`${n.format||"unversioned"} → ${i}`),n.format=i,n.world||(n.world={width:n.width??600,height:n.height??400},null!=n.gravity&&(n.world.gravity=s(n.gravity)?[0,n.gravity]:n.gravity),null!=n.walls&&(n.world.walls=n.walls),delete n.width,delete n.height,delete n.gravity,delete n.walls,t.push('top-level width / height / gravity moved into "world"')),s(n.world.gravity)&&(n.world.gravity=[0,n.world.gravity],t.push("world.gravity number → [0, g]")),n.bodies=(n.bodies||[]).map((e,i)=>{const n={...e};return n.id||(n.id=`body-${i+1}`,t.push(`bodies[${i}]: id "${n.id}" added`)),null==n.position&&(s(n.x)||s(n.y))&&(n.position=[n.x??0,n.y??0],delete n.x,delete n.y,t.push(`bodies[${i}]: x / y → position`)),null==n.size&&(s(n.w)||s(n.h))&&(n.size=[n.w??40,n.h??40],delete n.w,delete n.h,t.push(`bodies[${i}]: w / h → size`)),"static"===n.type||"kinematic"===n.type?(n[n.type]=!0,delete n.type,t.push(`bodies[${i}]: type → ${n.static?"static":"kinematic"}: true`)):"dynamic"===n.type&&delete n.type,n.shape||(n.shape=null!=n.radius?"circle":n.vertices?"polygon":"box"),n}),{scene:n,changes:t}}function a(e){const t=[];let i;try{i=o(e).scene}catch(e){return[String(e.message).replace("[motionary] scene: ","")]}(!i.world||!s(i.world.width)||!s(i.world.height)||i.world.width<=0||i.world.height<=0)&&t.push("world: width and height must be positive numbers"),null==i.world?.gravity||n(i.world.gravity)||t.push("world.gravity must be [x, y]");const a=i.materials||{};for(const[e,i]of Object.entries(a))for(const n of["restitution","friction","density"])null!=i[n]&&(!s(i[n])||i[n]<0)&&t.push(`materials.${e}.${n} must be a number ≥ 0`);Array.isArray(i.bodies)||t.push("bodies must be an array");const r=new Set;return(i.bodies||[]).forEach((e,i)=>{const o=`bodies[${i}]${e.id?` ("${e.id}")`:""}`;r.has(e.id)&&t.push(`${o}: duplicate id`),r.add(e.id),["circle","box","polygon"].includes(e.shape)||t.push(`${o}: shape must be circle, box or polygon`),n(e.position)||t.push(`${o}: position must be [x, y]`),"circle"!==e.shape||s(e.radius)&&e.radius>0||t.push(`${o}: circle needs radius > 0`),"box"!==e.shape||n(e.size)&&e.size[0]>0&&e.size[1]>0||t.push(`${o}: box needs size [w, h] > 0`),"polygon"!==e.shape||Array.isArray(e.vertices)&&e.vertices.length>=3&&e.vertices.every(n)||t.push(`${o}: polygon needs ≥ 3 vertices [x, y]`),e.material&&!a[e.material]&&t.push(`${o}: unknown material "${e.material}"`),e.static&&e.kinematic&&t.push(`${o}: static and kinematic are exclusive`)}),(i.constraints||[]).forEach((e,i)=>{const o=`constraints[${i}]`;["distance","pin"].includes(e.type)||t.push(`${o}: type must be distance or pin`),r.has(e.a)||t.push(`${o}: unknown body "${e.a}"`),"distance"!==e.type||r.has(e.b)||t.push(`${o}: distance needs body b (unknown "${e.b}")`),"pin"!==e.type||null==e.point||n(e.point)||t.push(`${o}: point must be [x, y]`),null==e.stiffness||s(e.stiffness)&&e.stiffness>0&&e.stiffness<=1||t.push(`${o}: stiffness must be in (0, 1]`)}),t}function r(e){const{scene:t}=o(e),i=a(t);if(i.length)throw new Error(`[motionary] scene: ${i.length} problem(s): ${i.join("; ")}`);return t}function l(e){const i=r(e),s=t.requireModule("physics","motionary/runtime/format-scene"),n=i.world,o=s.createWorld({gravity:n.gravity||[0,980],iterations:n.iterations});n.walls&&o.bounds(n.width,n.height,50,"object"==typeof n.walls?n.walls:{});const a={};for(const e of i.bodies){const t=e.material&&i.materials?.[e.material]||{},s={shape:e.shape,x:e.position[0],y:e.position[1],angle:e.angle,radius:e.radius,width:e.size?.[0],height:e.size?.[1],vertices:e.vertices,type:e.static?"static":e.kinematic?"kinematic":"dynamic",restitution:e.restitution??t.restitution,friction:e.friction??t.friction,density:e.density??t.density,vx:e.velocity?.[0],vy:e.velocity?.[1],angularVelocity:e.angularVelocity,sensor:e.sensor,label:e.id,data:{id:e.id,style:e.style||{},material:e.material}};a[e.id]=o.body(s)}for(const e of i.constraints||[])o.constraint({type:e.type,a:a[e.a],b:e.b?a[e.b]:void 0,point:e.point,anchorA:e.anchorA,anchorB:e.anchorB,length:e.length,stiffness:e.stiffness,damping:e.damping});return{world:o,bodies:a,scene:i}}function c(e,t={width:600,height:400}){const s=e=>Math.round(1e3*e)/1e3,n=new Set(["floor","wall-left","wall-right","ceiling"]),o=e.bodies.filter(e=>!(e.isStatic&&n.has(e.label))),a=e=>e.data?.id||e.label+"-"+e.id,r=o.map(e=>{const t={id:a(e),shape:e.shape,position:[s(e.position.x),s(e.position.y)]};if(e.angle&&(t.angle=s(e.angle)),"circle"===e.shape)t.radius=s(e.radius);else{const i=e.verts.map(e=>e.x),n=e.verts.map(e=>e.y);"box"===e.shape?t.size=[s(Math.max(...i)-Math.min(...i)),s(Math.max(...n)-Math.min(...n))]:t.vertices=e.verts.map(e=>[s(e.x),s(e.y)])}"static"===e.type&&(t.static=!0),"kinematic"===e.type&&(t.kinematic=!0),t.restitution=e.restitution,t.friction=e.friction,"dynamic"===e.type&&(e.velocity.x||e.velocity.y)&&(t.velocity=[s(e.velocity.x),s(e.velocity.y)]),e.angularVelocity&&(t.angularVelocity=s(e.angularVelocity)),e.sensor&&(t.sensor=!0);const i=e.data?.style;return i&&Object.keys(i).length&&(t.style=i),t}),l=e.constraints.filter(e=>"drag"!==e.label&&o.includes(e.a)&&(!e.b||o.includes(e.b))).map(e=>({type:e.type,a:a(e.a),...e.b?{b:a(e.b)}:{point:[s(e.point.x),s(e.point.y)]},anchorA:[s(e.anchorA.x),s(e.anchorA.y)],...e.b?{anchorB:[s(e.anchorB.x),s(e.anchorB.y)]}:{},length:s(e.length),stiffness:e.stiffness,damping:e.damping}));return{format:i,...t.name?{name:t.name}:{},world:{width:t.width,height:t.height,gravity:[e.gravity.x,e.gravity.y],walls:t.walls??e.bodies.some(e=>n.has(e.label))},bodies:r,constraints:l}}const d={id:"format-scene",version:t.RUNTIME_VERSION,tier:"advanced",requires:["core","physics"],api:{SCENE_FORMAT:i,migrateScene:o,validateScene:a,parseScene:r,sceneToWorld:l,worldToScene:c}};t.register(d),e.SCENE_FORMAT=i,e.formatScene=d,e.migrateScene=o,e.parseScene=r,e.sceneToWorld=l,e.validateScene=a,e.worldToScene=c}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-scene.iife.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DFWqcv5h.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `motionary/runtime/format-scene` (10.7) — the versioned scene format
|
|
@@ -230,4 +230,4 @@ function worldToScene(world, o = { width: 600, height: 400 }) {
|
|
|
230
230
|
const formatScene = { id: 'format-scene', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'physics'], api: { SCENE_FORMAT, migrateScene, validateScene, parseScene, sceneToWorld, worldToScene } };
|
|
231
231
|
|
|
232
232
|
export { SCENE_FORMAT, formatScene, migrateScene, parseScene, sceneToWorld, validateScene, worldToScene };
|
|
233
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
233
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-scene.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var tween = require('../chunks/tween-
|
|
3
|
+
var registry = require('../chunks/registry-CvzRzv5N.cjs');
|
|
4
|
+
var tween = require('../chunks/tween-CSQ2EFBm.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/format-sprite` (10.3) — sprite sheets and image
|
|
@@ -221,4 +221,4 @@ exports.parseSpriteSheet = parseSpriteSheet;
|
|
|
221
221
|
exports.preloadImages = preloadImages;
|
|
222
222
|
exports.sequencePlayer = sequencePlayer;
|
|
223
223
|
exports.spritePlayer = spritePlayer;
|
|
224
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
224
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-sprite.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(e,t,r){"use strict";const s=(e,t=0)=>"number"==typeof e&&Number.isFinite(e)?e:t;function a(e){const t="string"==typeof e?JSON.parse(e):e;if(!t||!t.frames)throw new Error('[motionary] format-sprite: no "frames" in the sprite sheet JSON');const r=t.meta||{},a=/aseprite/i.test(r.app||"")||Array.isArray(r.frameTags),i=(Array.isArray(t.frames)?t.frames.map((e,t)=>[e.filename??e.name??String(t),e]):Object.entries(t.frames)).map(([e,t])=>{const r=t.frame||t,a=!!t.rotated,i=t.spriteSourceSize||{x:0,y:0},n=t.sourceSize||{w:r.w,h:r.h},o={name:e,x:s(r.x),y:s(r.y),w:s(r.w),h:s(r.h),rotated:a,offsetX:s(i.x),offsetY:s(i.y),sourceW:s(n.w,r.w),sourceH:s(n.h,r.h)};return"number"==typeof t.duration&&(o.duration=t.duration),o});Array.isArray(t.frames)||a||i.sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}));return{frames:i,tags:(r.frameTags||[]).map(e=>({name:e.name,from:s(e.from),to:s(e.to),direction:e.direction||"forward"})),image:r.image,size:r.size,format:a?"aseprite":r.app||t.meta?"texturepacker":"generic"}}function i(e,t,r,s,a=e*t){const i=[];for(let t=0;t<a;t++)i.push({name:String(t),x:t%e*r,y:Math.floor(t/e)*s,w:r,h:s,rotated:!1,offsetX:0,offsetY:0,sourceW:r,sourceH:s});return{frames:i,tags:[],format:"generic"}}function n(e,t){const r=t?e.tags.find(e=>e.name===t):void 0;if(t&&!r)throw new Error(`[motionary] format-sprite: unknown tag "${t}" (have: ${e.tags.map(e=>e.name).join(", ")||"none"})`);const s=r?r.from:0,a=r?r.to:e.frames.length-1,i=Array.from({length:a-s+1},(e,t)=>s+t),n=r?.direction||"forward";if("reverse"===n)return i.reverse();if("pingpong"===n)return[...i,...i.slice(1,-1).reverse()];if("pingpong_reverse"===n){const e=i.reverse();return[...e,...e.slice(1,-1).reverse()]}return i}function o(e,t,r,s=0,a=0,i=1){e.save(),e.translate(s+r.offsetX*i,a+r.offsetY*i),r.rotated?(e.rotate(-Math.PI/2),e.drawImage(t,r.x,r.y,r.h,r.w,-r.h*i,0,r.h*i,r.w*i)):e.drawImage(t,r.x,r.y,r.w,r.h,0,0,r.w*i,r.h*i),e.restore()}class h extends r.Playable{constructor(){super(...arguments),this.times=[0],this.order=[],this.current=-1}setOrder(e,t){this.order=e,this.times=[0];for(const r of e)this.times.push(this.times[this.times.length-1]+t(r))}get duration(){return this.times[this.times.length-1]}indexAt(e){let t=0,r=this.order.length-1;for(;t<r;){const s=t+r+1>>1;this.times[s]<=e?t=s:r=s-1}return Math.min(t,this.order.length-1)}renderLocal(e){const t=this.order[this.indexAt(Math.min(e,this.duration-.001))];t!==this.current&&(this.current=t,this.show(t))}get frame(){return this.current}}class m extends h{constructor(e,t,r,s){super({repeat:s.repeat??-1,yoyo:s.yoyo}),this.target=e,this.sheet=t,this.image=r;const a=s.fps||12;this.setOrder(n(t,s.tag),e=>t.frames[e].duration??1e3/a),this.scale=s.scale,s.paused||this.play()}show(e){const t=this.sheet.frames[e],r=this.target;if("function"==typeof r.getContext&&"string"!=typeof this.image){const e=r.getContext("2d");if(!e)return;const s=this.scale??r.width/(t.sourceW||t.w||1);e.clearRect(0,0,r.width,r.height),o(e,this.image,t,0,0,s)}else{const e=this.target;"string"==typeof this.image&&(e.style.backgroundImage=`url("${this.image}")`),e.style.backgroundPosition=`${-t.x}px ${-t.y}px`,e.style.width=`${t.w}px`,e.style.height=`${t.h}px`,e.style.backgroundRepeat="no-repeat"}}}function c(e,t,r,s={}){return new m(e,t,r,s)}function f(e,t){const r=/\{(\d+)\}/.exec(e);if(!r)throw new Error("[motionary] format-sprite: the pattern needs a {0001}-style placeholder");const s=r[1].length,a=[];for(let i=t.start??(+r[1]||0);i<=t.end;i+=t.step||1)a.push(e.replace(r[0],String(i).padStart(s,"0")));return a}function u(e){return Promise.all(e.map(e=>new Promise((t,r)=>{const s=new Image;s.decoding="async",s.onload=()=>t(s),s.onerror=()=>r(new Error(`[motionary] format-sprite: could not load ${e}`)),s.src=e})))}class d extends h{constructor(e,t,r){super({repeat:r.repeat??0,yoyo:r.yoyo}),this.canvas=e,this.images=t;const s=r.fps||24;this.setOrder(t.map((e,t)=>t),()=>1e3/s),r.paused||this.play()}show(e){const t=this.canvas.getContext("2d"),r=this.images[e];if(!t||!r)return;const s=this.canvas.width,a=this.canvas.height,i=r.naturalWidth||r.width||s,n=r.naturalHeight||r.height||a,o=Math.max(s/i,a/n);t.clearRect(0,0,s,a),t.drawImage(r,(s-i*o)/2,(a-n*o)/2,i*o,n*o)}}function p(e,t,r={}){return new d(e,t,r)}const g={id:"format-sprite",version:t.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{parseSpriteSheet:a,gridSheet:i,frameOrder:n,drawFrame:o,spritePlayer:c,imageSequence:f,preloadImages:u,sequencePlayer:p}};t.register(g),e.drawFrame=o,e.formatSprite=g,e.frameOrder=n,e.gridSheet=i,e.imageSequence=f,e.parseSpriteSheet=a,e.preloadImages=u,e.sequencePlayer=p,e.spritePlayer=c}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-sprite.iife.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { P as Playable } from '../chunks/tween-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-DFWqcv5h.js';
|
|
2
|
+
import { P as Playable } from '../chunks/tween-ltfzzNhy.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/runtime/format-sprite` (10.3) — sprite sheets and image
|
|
@@ -211,4 +211,4 @@ function sequencePlayer(canvas, images, o = {}) {
|
|
|
211
211
|
const formatSprite = { id: 'format-sprite', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { parseSpriteSheet, gridSheet, frameOrder, drawFrame, spritePlayer, imageSequence, preloadImages, sequencePlayer } };
|
|
212
212
|
|
|
213
213
|
export { drawFrame, formatSprite, frameOrder, gridSheet, imageSequence, parseSpriteSheet, preloadImages, sequencePlayer, spritePlayer };
|
|
214
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.
|
|
214
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v17.7.0/dist/runtime/format-sprite.js.map
|