motionary 10.9.0 → 11.0.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.
Files changed (406) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +32 -0
  3. package/README.md +119 -74
  4. package/README_ja.md +4 -4
  5. package/README_zh.md +4 -4
  6. package/dist/chunks/{anim-image-CnZDYmtv.js → anim-image-Btw3j5Qb.js} +2 -2
  7. package/dist/chunks/{anim-image-CnZDYmtv.js.map → anim-image-Btw3j5Qb.js.map} +1 -1
  8. package/dist/chunks/{anim-image-D1JZ7wOU.cjs → anim-image-DVv_vtbG.cjs} +2 -2
  9. package/dist/chunks/{anim-image-D1JZ7wOU.cjs.map → anim-image-DVv_vtbG.cjs.map} +1 -1
  10. package/dist/chunks/{three-scene-DibsZUID.js → gl-scene-BDA6FlGQ.js} +5 -11
  11. package/dist/chunks/gl-scene-BDA6FlGQ.js.map +1 -0
  12. package/dist/chunks/{three-scene-BFZnZuqp.cjs → gl-scene-SO5UU93S.cjs} +3 -10
  13. package/dist/chunks/gl-scene-SO5UU93S.cjs.map +1 -0
  14. package/dist/chunks/{keyframes-uYSI-do7.cjs → keyframes-4rb2WShh.cjs} +2 -2
  15. package/dist/chunks/{keyframes-uYSI-do7.cjs.map → keyframes-4rb2WShh.cjs.map} +1 -1
  16. package/dist/chunks/{keyframes-CLoYRGjR.js → keyframes-C9poRyzF.js} +2 -2
  17. package/dist/chunks/{keyframes-CLoYRGjR.js.map → keyframes-C9poRyzF.js.map} +1 -1
  18. package/dist/chunks/{lottie-player-UJHOl-8L.js → lottie-player-CPdwHhqe.js} +2 -2
  19. package/dist/chunks/{lottie-player-UJHOl-8L.js.map → lottie-player-CPdwHhqe.js.map} +1 -1
  20. package/dist/chunks/{lottie-player-Mcpt1H5w.cjs → lottie-player-DD1pnLN2.cjs} +2 -2
  21. package/dist/chunks/{lottie-player-Mcpt1H5w.cjs.map → lottie-player-DD1pnLN2.cjs.map} +1 -1
  22. package/dist/chunks/{physics-playground-BxnQyZ_V.cjs → physics-playground-B00t13Nz.cjs} +2 -2
  23. package/dist/chunks/{physics-playground-BxnQyZ_V.cjs.map → physics-playground-B00t13Nz.cjs.map} +1 -1
  24. package/dist/chunks/{physics-playground-B19qANJs.js → physics-playground-CluT_Nj9.js} +2 -2
  25. package/dist/chunks/{physics-playground-B19qANJs.js.map → physics-playground-CluT_Nj9.js.map} +1 -1
  26. package/dist/chunks/{registry-RJYrdUTF.js → registry-W7pXOwju.js} +3 -3
  27. package/dist/chunks/{registry-RJYrdUTF.js.map → registry-W7pXOwju.js.map} +1 -1
  28. package/dist/chunks/{registry-xGDPpmX2.cjs → registry-uaO8pDKn.cjs} +3 -3
  29. package/dist/chunks/{registry-xGDPpmX2.cjs.map → registry-uaO8pDKn.cjs.map} +1 -1
  30. package/dist/chunks/{runtime-link-GD9ayzxH.cjs → runtime-link-Bz3rGMsh.cjs} +2 -2
  31. package/dist/chunks/{runtime-link-GD9ayzxH.cjs.map → runtime-link-Bz3rGMsh.cjs.map} +1 -1
  32. package/dist/chunks/{runtime-link-CQyKFwE1.js → runtime-link-CP3qaRja.js} +2 -2
  33. package/dist/chunks/{runtime-link-CQyKFwE1.js.map → runtime-link-CP3qaRja.js.map} +1 -1
  34. package/dist/chunks/{scroll-scene-C-6sdMtR.cjs → scroll-scene-CeIosbEs.cjs} +3 -3
  35. package/dist/chunks/{scroll-scene-C-6sdMtR.cjs.map → scroll-scene-CeIosbEs.cjs.map} +1 -1
  36. package/dist/chunks/{scroll-scene-DtAaP0Aa.js → scroll-scene-eHhGcoDQ.js} +3 -3
  37. package/dist/chunks/{scroll-scene-DtAaP0Aa.js.map → scroll-scene-eHhGcoDQ.js.map} +1 -1
  38. package/dist/chunks/{ticker-C4VkAL4Y.js → ticker-D0qF_rV_.js} +2 -2
  39. package/dist/chunks/{ticker-C4VkAL4Y.js.map → ticker-D0qF_rV_.js.map} +1 -1
  40. package/dist/chunks/{ticker-DJuzcy1_.cjs → ticker-nshSbZ-Q.cjs} +2 -2
  41. package/dist/chunks/{ticker-DJuzcy1_.cjs.map → ticker-nshSbZ-Q.cjs.map} +1 -1
  42. package/dist/chunks/{tween-BHbiOBWO.cjs → tween-Df87h-1G.cjs} +2 -2
  43. package/dist/chunks/{tween-BHbiOBWO.cjs.map → tween-Df87h-1G.cjs.map} +1 -1
  44. package/dist/chunks/{tween-CrnzMeOU.js → tween-WepVA7id.js} +2 -2
  45. package/dist/chunks/{tween-CrnzMeOU.js.map → tween-WepVA7id.js.map} +1 -1
  46. package/dist/chunks/{worker-canvas-Bkwd1euX.js → worker-canvas-BZNHRLcu.js} +50 -3
  47. package/dist/chunks/worker-canvas-BZNHRLcu.js.map +1 -0
  48. package/dist/chunks/{worker-canvas-Ckc3R2Ye.cjs → worker-canvas-DW3VgtxO.cjs} +50 -2
  49. package/dist/chunks/worker-canvas-DW3VgtxO.cjs.map +1 -0
  50. package/dist/components/dotlottie.cjs +3 -3
  51. package/dist/components/dotlottie.d.cts +2 -1
  52. package/dist/components/dotlottie.d.ts +2 -1
  53. package/dist/components/dotlottie.js +3 -3
  54. package/dist/components/fx-perf.cjs +10 -5
  55. package/dist/components/fx-perf.cjs.map +1 -1
  56. package/dist/components/fx-perf.d.cts +6 -1
  57. package/dist/components/fx-perf.d.ts +6 -1
  58. package/dist/components/fx-perf.js +11 -6
  59. package/dist/components/fx-perf.js.map +1 -1
  60. package/dist/components/fx2.d.cts +6 -1
  61. package/dist/components/fx2.d.ts +6 -1
  62. package/dist/components/gl-model.cjs +3 -3
  63. package/dist/components/gl-model.d.cts +1 -1
  64. package/dist/components/gl-model.d.ts +1 -1
  65. package/dist/components/gl-model.js +3 -3
  66. package/dist/components/snap-carousel.cjs +2 -2
  67. package/dist/components/snap-carousel.js +2 -2
  68. package/dist/components/widgets.cjs +9 -9
  69. package/dist/components/widgets.cjs.map +1 -1
  70. package/dist/components/widgets.d.cts +10 -9
  71. package/dist/components/widgets.d.ts +10 -9
  72. package/dist/components/widgets.js +12 -12
  73. package/dist/components/widgets.js.map +1 -1
  74. package/dist/llms-full.txt +301 -312
  75. package/dist/llms.txt +3 -4
  76. package/dist/manifest.json +271 -299
  77. package/dist/runtime/drag-snap.cjs +1 -1
  78. package/dist/runtime/drag-snap.js +1 -1
  79. package/dist/runtime/format-apng.cjs +4 -4
  80. package/dist/runtime/format-apng.js +4 -4
  81. package/dist/runtime/format-css.cjs +4 -4
  82. package/dist/runtime/format-css.js +4 -4
  83. package/dist/runtime/format-gif.cjs +4 -4
  84. package/dist/runtime/format-gif.js +4 -4
  85. package/dist/runtime/format-gltf.cjs +1 -1
  86. package/dist/runtime/format-gltf.js +1 -1
  87. package/dist/runtime/format-motion.cjs +4 -4
  88. package/dist/runtime/format-motion.js +4 -4
  89. package/dist/runtime/format-obj.cjs +1 -1
  90. package/dist/runtime/format-obj.js +1 -1
  91. package/dist/runtime/format-scene.cjs +1 -1
  92. package/dist/runtime/format-scene.js +1 -1
  93. package/dist/runtime/format-sprite.cjs +3 -3
  94. package/dist/runtime/format-sprite.js +3 -3
  95. package/dist/runtime/format-svg.cjs +3 -3
  96. package/dist/runtime/format-svg.js +3 -3
  97. package/dist/runtime/format-webp.cjs +4 -4
  98. package/dist/runtime/format-webp.js +4 -4
  99. package/dist/runtime/gl.cjs +1 -1
  100. package/dist/runtime/gl.js +1 -1
  101. package/dist/runtime/gltf-anim.cjs +1 -1
  102. package/dist/runtime/gltf-anim.js +1 -1
  103. package/dist/runtime/gltf-decoders.cjs +1 -1
  104. package/dist/runtime/gltf-decoders.js +1 -1
  105. package/dist/runtime/lottie-state.cjs +1 -1
  106. package/dist/runtime/lottie-state.js +1 -1
  107. package/dist/runtime/physics.cjs +1 -1
  108. package/dist/runtime/physics.js +1 -1
  109. package/dist/runtime/scroll.cjs +2 -2
  110. package/dist/runtime/scroll.js +2 -2
  111. package/dist/runtime/smooth.cjs +1 -1
  112. package/dist/runtime/smooth.js +1 -1
  113. package/dist/runtime/text.cjs +1 -1
  114. package/dist/runtime/text.js +1 -1
  115. package/dist/runtime/vector.cjs +66 -17
  116. package/dist/runtime/vector.cjs.map +1 -1
  117. package/dist/runtime/vector.d.cts +30 -6
  118. package/dist/runtime/vector.d.ts +30 -6
  119. package/dist/runtime/vector.iife.js +1 -1
  120. package/dist/runtime/vector.iife.js.map +1 -1
  121. package/dist/runtime/vector.js +65 -18
  122. package/dist/runtime/vector.js.map +1 -1
  123. package/dist/runtime.cjs +3 -3
  124. package/dist/runtime.d.cts +2 -2
  125. package/dist/runtime.d.ts +2 -2
  126. package/dist/runtime.iife.js +1 -1
  127. package/dist/runtime.iife.js.map +1 -1
  128. package/dist/runtime.js +5 -5
  129. package/dist/widgets/dotlottie.cjs +3 -3
  130. package/dist/widgets/dotlottie.js +3 -3
  131. package/dist/widgets/gl-model.cjs +3 -3
  132. package/dist/widgets/gl-model.js +3 -3
  133. package/dist/widgets/gl-scene.cjs +3 -3
  134. package/dist/widgets/gl-scene.js +3 -3
  135. package/dist/widgets/install-button.cjs.map +1 -1
  136. package/dist/widgets/install-button.js.map +1 -1
  137. package/dist/widgets/lottie-player.cjs +3 -3
  138. package/dist/widgets/lottie-player.js +3 -3
  139. package/dist/widgets/motion-inspector.cjs +1 -1
  140. package/dist/widgets/motion-inspector.js +1 -1
  141. package/dist/widgets/physics-playground.cjs +3 -3
  142. package/dist/widgets/physics-playground.js +3 -3
  143. package/dist/widgets/plugin-card.cjs +2 -2
  144. package/dist/widgets/plugin-card.js +2 -2
  145. package/dist/widgets/scroll-scene.cjs +3 -3
  146. package/dist/widgets/scroll-scene.js +3 -3
  147. package/dist/widgets/smooth-scroll.cjs +2 -2
  148. package/dist/widgets/smooth-scroll.js +2 -2
  149. package/dist/widgets/snap-carousel.cjs +2 -2
  150. package/dist/widgets/snap-carousel.js +2 -2
  151. package/dist/widgets/text-splitter.cjs +2 -2
  152. package/dist/widgets/text-splitter.js +2 -2
  153. package/dist/widgets/worker-canvas.cjs +1 -1
  154. package/dist/widgets/worker-canvas.js +1 -1
  155. package/dist/widgets.umd.js +1 -1
  156. package/dist/widgets.umd.js.map +1 -1
  157. package/docs/ROADMAP.md +44 -4
  158. package/docs/architecture.md +78 -0
  159. package/docs/compat-matrix.md +340 -0
  160. package/docs/components/README.md +1 -5
  161. package/docs/components/usa-accordion.md +1 -1
  162. package/docs/components/usa-acrylic.md +1 -1
  163. package/docs/components/usa-add-to-cart.md +1 -1
  164. package/docs/components/usa-ambient.md +1 -1
  165. package/docs/components/usa-anim-icon.md +1 -1
  166. package/docs/components/usa-audio.md +1 -1
  167. package/docs/components/usa-aurora.md +1 -1
  168. package/docs/components/usa-auto-animate.md +1 -1
  169. package/docs/components/usa-auto-skeleton.md +1 -1
  170. package/docs/components/usa-avatar-stack.md +1 -1
  171. package/docs/components/usa-back-to-top.md +1 -1
  172. package/docs/components/usa-badge-wall.md +1 -1
  173. package/docs/components/usa-badge.md +1 -1
  174. package/docs/components/usa-bar-chart.md +1 -1
  175. package/docs/components/usa-bg-generator.md +1 -1
  176. package/docs/components/usa-blobs.md +1 -1
  177. package/docs/components/usa-bottom-sheet.md +1 -1
  178. package/docs/components/usa-button.md +1 -1
  179. package/docs/components/usa-card-stack.md +1 -1
  180. package/docs/components/usa-card.md +1 -1
  181. package/docs/components/usa-carousel-3d.md +1 -1
  182. package/docs/components/usa-carousel.md +1 -1
  183. package/docs/components/usa-cart-drawer.md +1 -1
  184. package/docs/components/usa-chapter-nav.md +1 -1
  185. package/docs/components/usa-chat-composer.md +1 -1
  186. package/docs/components/usa-check.md +1 -1
  187. package/docs/components/usa-checkbox.md +1 -1
  188. package/docs/components/usa-click.md +1 -1
  189. package/docs/components/usa-clock-control.md +1 -1
  190. package/docs/components/usa-code-export.md +1 -1
  191. package/docs/components/usa-color-picker.md +1 -1
  192. package/docs/components/usa-command-palette.md +1 -1
  193. package/docs/components/usa-compare.md +1 -1
  194. package/docs/components/usa-countdown.md +1 -1
  195. package/docs/components/usa-counter.md +1 -1
  196. package/docs/components/usa-cube-gallery.md +1 -1
  197. package/docs/components/usa-cube.md +1 -1
  198. package/docs/components/usa-cursor.md +1 -1
  199. package/docs/components/usa-date-picker.md +1 -1
  200. package/docs/components/usa-depth.md +1 -1
  201. package/docs/components/usa-dialog.md +1 -1
  202. package/docs/components/usa-disclosure.md +1 -1
  203. package/docs/components/usa-distort.md +1 -1
  204. package/docs/components/usa-dock.md +1 -1
  205. package/docs/components/usa-dot-network.md +1 -1
  206. package/docs/components/usa-dotlottie.md +6 -6
  207. package/docs/components/usa-double-tap.md +1 -1
  208. package/docs/components/usa-draggable.md +1 -1
  209. package/docs/components/usa-draw.md +1 -1
  210. package/docs/components/usa-drawer.md +1 -1
  211. package/docs/components/usa-equalizer.md +1 -1
  212. package/docs/components/usa-fab.md +1 -1
  213. package/docs/components/usa-festival-banner.md +1 -1
  214. package/docs/components/usa-field.md +1 -1
  215. package/docs/components/usa-file-drop.md +1 -1
  216. package/docs/components/usa-fullpage.md +1 -1
  217. package/docs/components/usa-fx.md +1 -1
  218. package/docs/components/usa-gauge.md +1 -1
  219. package/docs/components/usa-gen-art.md +1 -1
  220. package/docs/components/usa-gesture-fx.md +1 -1
  221. package/docs/components/usa-gesture-sticker.md +1 -1
  222. package/docs/components/usa-gl-model.md +7 -7
  223. package/docs/components/usa-gl-scene.md +10 -10
  224. package/docs/components/usa-glitch.md +1 -1
  225. package/docs/components/usa-globe.md +1 -1
  226. package/docs/components/usa-gpu-particles.md +1 -1
  227. package/docs/components/usa-gradient-text.md +1 -1
  228. package/docs/components/usa-grain.md +1 -1
  229. package/docs/components/usa-grid-glow.md +1 -1
  230. package/docs/components/usa-gyro-card.md +1 -1
  231. package/docs/components/usa-handwriting.md +1 -1
  232. package/docs/components/usa-hero-video.md +1 -1
  233. package/docs/components/usa-hold.md +1 -1
  234. package/docs/components/usa-hud-panel.md +1 -1
  235. package/docs/components/usa-hydrate.md +1 -1
  236. package/docs/components/usa-icon-morph.md +1 -1
  237. package/docs/components/usa-install-button.md +3 -3
  238. package/docs/components/usa-kanban.md +1 -1
  239. package/docs/components/usa-keyframe-editor.md +1 -1
  240. package/docs/components/usa-kpi.md +1 -1
  241. package/docs/components/usa-leaderboard.md +1 -1
  242. package/docs/components/usa-like.md +1 -1
  243. package/docs/components/usa-liquid-nav.md +1 -1
  244. package/docs/components/usa-liquid.md +1 -1
  245. package/docs/components/usa-loading-bar.md +1 -1
  246. package/docs/components/usa-location-card.md +1 -1
  247. package/docs/components/usa-lottie-icon.md +1 -1
  248. package/docs/components/usa-lottie-player.md +5 -5
  249. package/docs/components/usa-lottie.md +1 -1
  250. package/docs/components/usa-lyrics.md +1 -1
  251. package/docs/components/usa-magnetic.md +1 -1
  252. package/docs/components/usa-marquee.md +1 -1
  253. package/docs/components/usa-mask-reveal.md +1 -1
  254. package/docs/components/usa-masonry-flow.md +1 -1
  255. package/docs/components/usa-masonry.md +1 -1
  256. package/docs/components/usa-menu-toggle.md +1 -1
  257. package/docs/components/usa-menu.md +1 -1
  258. package/docs/components/usa-message-list.md +1 -1
  259. package/docs/components/usa-milestones.md +1 -1
  260. package/docs/components/usa-modal.md +1 -1
  261. package/docs/components/usa-morph.md +1 -1
  262. package/docs/components/usa-motion-inspector.md +1 -1
  263. package/docs/components/usa-motion-prefs.md +1 -1
  264. package/docs/components/usa-motion-prompt.md +1 -1
  265. package/docs/components/usa-motion-spec.md +1 -1
  266. package/docs/components/usa-motion-switch.md +1 -1
  267. package/docs/components/usa-motion-theme.md +1 -1
  268. package/docs/components/usa-motion.md +1 -1
  269. package/docs/components/usa-music-player.md +1 -1
  270. package/docs/components/usa-native-preview.md +1 -1
  271. package/docs/components/usa-nav-morph.md +1 -1
  272. package/docs/components/usa-navbar.md +1 -1
  273. package/docs/components/usa-notification-bell.md +1 -1
  274. package/docs/components/usa-odometer.md +1 -1
  275. package/docs/components/usa-organic-card.md +1 -1
  276. package/docs/components/usa-otp.md +1 -1
  277. package/docs/components/usa-overscroll.md +1 -1
  278. package/docs/components/usa-pack.md +1 -1
  279. package/docs/components/usa-pagination.md +1 -1
  280. package/docs/components/usa-panorama.md +1 -1
  281. package/docs/components/usa-parallax-layers.md +1 -1
  282. package/docs/components/usa-particles.md +1 -1
  283. package/docs/components/usa-pause-all.md +1 -1
  284. package/docs/components/usa-perf-monitor.md +1 -1
  285. package/docs/components/usa-physics-playground.md +6 -6
  286. package/docs/components/usa-pinch-zoom.md +1 -1
  287. package/docs/components/usa-player.md +1 -1
  288. package/docs/components/usa-plugin-card.md +4 -4
  289. package/docs/components/usa-plugin-store.md +1 -1
  290. package/docs/components/usa-popover.md +1 -1
  291. package/docs/components/usa-post-fx.md +1 -1
  292. package/docs/components/usa-presence.md +1 -1
  293. package/docs/components/usa-press.md +1 -1
  294. package/docs/components/usa-prize-wheel.md +1 -1
  295. package/docs/components/usa-product-gallery.md +1 -1
  296. package/docs/components/usa-progress-ring.md +1 -1
  297. package/docs/components/usa-progress.md +1 -1
  298. package/docs/components/usa-prop-panel.md +1 -1
  299. package/docs/components/usa-pull-cord.md +1 -1
  300. package/docs/components/usa-pull-refresh.md +1 -1
  301. package/docs/components/usa-radar.md +1 -1
  302. package/docs/components/usa-reactions.md +1 -1
  303. package/docs/components/usa-red-envelope.md +1 -1
  304. package/docs/components/usa-retro-button.md +1 -1
  305. package/docs/components/usa-reveal.md +1 -1
  306. package/docs/components/usa-ripple.md +1 -1
  307. package/docs/components/usa-rive.md +3 -3
  308. package/docs/components/usa-route-transition.md +1 -1
  309. package/docs/components/usa-scene.md +1 -1
  310. package/docs/components/usa-scramble.md +1 -1
  311. package/docs/components/usa-scroll-highlight.md +1 -1
  312. package/docs/components/usa-scroll-progress.md +1 -1
  313. package/docs/components/usa-scroll-ring.md +1 -1
  314. package/docs/components/usa-scroll-scene.md +5 -5
  315. package/docs/components/usa-scrolly.md +1 -1
  316. package/docs/components/usa-segmented.md +1 -1
  317. package/docs/components/usa-shader-backdrop.md +1 -1
  318. package/docs/components/usa-shader.md +1 -1
  319. package/docs/components/usa-sheet.md +1 -1
  320. package/docs/components/usa-shimmer-text.md +1 -1
  321. package/docs/components/usa-shortcut.md +1 -1
  322. package/docs/components/usa-skeleton-reveal.md +1 -1
  323. package/docs/components/usa-skeleton.md +1 -1
  324. package/docs/components/usa-sketch-chart.md +1 -1
  325. package/docs/components/usa-slider.md +1 -1
  326. package/docs/components/usa-smooth-scroll.md +5 -5
  327. package/docs/components/usa-snap-carousel.md +5 -5
  328. package/docs/components/usa-sparkline.md +1 -1
  329. package/docs/components/usa-spatial-card.md +1 -1
  330. package/docs/components/usa-spinner.md +1 -1
  331. package/docs/components/usa-splash.md +1 -1
  332. package/docs/components/usa-split-text.md +1 -1
  333. package/docs/components/usa-spotlight.md +1 -1
  334. package/docs/components/usa-spring.md +1 -1
  335. package/docs/components/usa-stagger.md +1 -1
  336. package/docs/components/usa-star-rating.md +1 -1
  337. package/docs/components/usa-stepper.md +1 -1
  338. package/docs/components/usa-sticky-stack.md +1 -1
  339. package/docs/components/usa-sticky-wall.md +1 -1
  340. package/docs/components/usa-stories.md +1 -1
  341. package/docs/components/usa-story.md +1 -1
  342. package/docs/components/usa-suggestion-chips.md +1 -1
  343. package/docs/components/usa-swipe-deck.md +1 -1
  344. package/docs/components/usa-swipeable.md +1 -1
  345. package/docs/components/usa-switch.md +1 -1
  346. package/docs/components/usa-tab-bar.md +1 -1
  347. package/docs/components/usa-tabs.md +1 -1
  348. package/docs/components/usa-terminal.md +1 -1
  349. package/docs/components/usa-text-rotate.md +1 -1
  350. package/docs/components/usa-text-splitter.md +5 -5
  351. package/docs/components/usa-theme-surface.md +1 -1
  352. package/docs/components/usa-theme-switcher.md +1 -1
  353. package/docs/components/usa-tilt.md +1 -1
  354. package/docs/components/usa-timeline.md +1 -1
  355. package/docs/components/usa-tip.md +1 -1
  356. package/docs/components/usa-toast-stack.md +1 -1
  357. package/docs/components/usa-toaster.md +1 -1
  358. package/docs/components/usa-token-editor.md +1 -1
  359. package/docs/components/usa-typewriter.md +1 -1
  360. package/docs/components/usa-upload-progress.md +1 -1
  361. package/docs/components/usa-video-card.md +1 -1
  362. package/docs/components/usa-view-switch.md +1 -1
  363. package/docs/components/usa-voice-button.md +1 -1
  364. package/docs/components/usa-volume-knob.md +1 -1
  365. package/docs/components/usa-water-ripple.md +1 -1
  366. package/docs/components/usa-wave-text.md +1 -1
  367. package/docs/components/usa-weather-card.md +1 -1
  368. package/docs/components/usa-worker-canvas.md +1 -1
  369. package/docs/components/usa-xp-bar.md +1 -1
  370. package/docs/components.md +49 -49
  371. package/docs/deprecations.md +2 -0
  372. package/docs/entry-points.md +1 -2
  373. package/docs/runtime/core.md +2 -2
  374. package/docs/runtime/drag-snap.md +3 -3
  375. package/docs/runtime/format-apng.md +3 -3
  376. package/docs/runtime/format-css.md +3 -3
  377. package/docs/runtime/format-gif.md +3 -3
  378. package/docs/runtime/format-gltf.md +3 -3
  379. package/docs/runtime/format-motion.md +3 -3
  380. package/docs/runtime/format-obj.md +3 -3
  381. package/docs/runtime/format-scene.md +3 -3
  382. package/docs/runtime/format-sprite.md +3 -3
  383. package/docs/runtime/format-svg.md +3 -3
  384. package/docs/runtime/format-webp.md +3 -3
  385. package/docs/runtime/gl.md +3 -3
  386. package/docs/runtime/gltf-anim.md +3 -3
  387. package/docs/runtime/gltf-decoders.md +3 -3
  388. package/docs/runtime/lottie-state.md +3 -3
  389. package/docs/runtime/physics.md +3 -3
  390. package/docs/runtime/scroll.md +3 -3
  391. package/docs/runtime/smooth.md +3 -3
  392. package/docs/runtime/text.md +3 -3
  393. package/docs/runtime/vector.md +3 -3
  394. package/docs/upgrading-11.md +2 -2
  395. package/package.json +1 -11
  396. package/dist/chunks/three-scene-BFZnZuqp.cjs.map +0 -1
  397. package/dist/chunks/three-scene-DibsZUID.js.map +0 -1
  398. package/dist/chunks/worker-canvas-Bkwd1euX.js.map +0 -1
  399. package/dist/chunks/worker-canvas-Ckc3R2Ye.cjs.map +0 -1
  400. package/dist/widgets/three-scene.cjs +0 -11
  401. package/dist/widgets/three-scene.cjs.map +0 -1
  402. package/dist/widgets/three-scene.d.cts +0 -2
  403. package/dist/widgets/three-scene.d.ts +0 -2
  404. package/dist/widgets/three-scene.js +0 -5
  405. package/dist/widgets/three-scene.js.map +0 -1
  406. package/docs/components/usa-three-scene.md +0 -20
package/AGENTS.md CHANGED
@@ -39,7 +39,7 @@ All of these are generated from the source at build time, so they match the inst
39
39
  Plain HTML:
40
40
 
41
41
  ```html
42
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
42
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
43
43
  <usa-reveal effect="fade-up"><h2>Hello</h2></usa-reveal>
44
44
  ```
45
45
 
package/CHANGELOG.md CHANGED
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [11.0.0] - 2026-10-09
11
+
12
+ ### ⚠️ Breaking
13
+ - **`<usa-three-scene>` / `defineThreeScene()` / `motionary/widgets/three-scene` removed** (the 10.5 alias, deprecated in 10.9) → `<usa-gl-scene>` / `defineGlScene()` / `motionary/widgets/gl-scene` — same attributes, events and methods. `npx usa-codemod-11 --write src` rewrites it.
14
+ - **String draw programs are never evaluated on the main thread.** `offscreenRender()` / `<usa-worker-canvas>` still run a string program in a worker (OffscreenCanvas); where no worker is available a string program is refused (`backend: 'none'`, one console error) instead of being run through `new Function` — pass a function. The built-in `scene`s (`particles`, `orbits`, `starfield`) now ship function versions (`WORKER_SCENE_FNS`) for that fallback, so `<usa-worker-canvas scene="…">` keeps working everywhere and under a strict CSP. `offscreenRender()` gains `opts.fallback`.
15
+ - CDN URLs move to the new major: `https://cdn.jsdelivr.net/npm/motionary@11/dist/…` / `https://unpkg.com/motionary@11/dist/…` (runtime `RUNTIME_CDN`, every prerequisite, the install button, README, AGENTS.md, docs). The README quickstart and the playground snippets still said `@6` — they now say `@11` too.
16
+
17
+ ### Stable from 11.0 (semver until 12.0)
18
+ - `motionary/runtime` and every `motionary/runtime/<module>` export and module id.
19
+ - The AI manifest **schema v2** (`components.json`, `motionary/manifest.json`) is frozen: `stability: "stable"`, no deprecated components left. The `motionary-scene@1` format.
20
+ - **`motionary-mcp` 2.x** tool names and result shapes (the server stays at 2.0.0; the roadmap's "MCP 1.0" label is retired).
21
+ - The individual entry points (`motionary/widgets/<name>`, `motionary/effects/<name>`, `motionary/components/<name>`) and their fixed gzip budgets.
22
+ - **Compatibility matrix frozen**: new generated page [docs/compat-matrix.md](./docs/compat-matrix.md) (every runtime module and official runtime, feature by feature, from the same tested data as `docs/runtime/<module>.md`; checked by `check:peer-docs`) and a README section **"Stable API (11.x) & compatibility matrix"**. A ✅ row is not removed before 12.0.
23
+
24
+ ### Security
25
+ - **Zip-bomb protection for dotLottie / zip decoding** (`motionary/runtime/vector`, the only archive / inflate path): `unzipEntries()`, `parseDotLottie()` and `loadLottie()` take `limits` (`ZipLimits`: `maxEntries` 1000, `maxEntryBytes` 32 MB, `maxTotalBytes` 64 MB, `maxRatio` 100 once an entry passes 1 MB — defaults in `ZIP_LIMITS`). Declared sizes are not trusted: inflating streams through `DecompressionStream`, counts the real output and cancels as soon as a limit is crossed; entries inflate one at a time. Tests build a zip bomb at test time (24 MB of zeros in < 64 KB with a lying size field) plus entry-count / per-entry / total / stored-entry cases.
26
+
27
+ ### Architecture
28
+ - New [docs/architecture.md](./docs/architecture.md) (Chinese, Mermaid + ASCII): four logical layers — **Public API** (HTML · React · Vue · Svelte · Solid · Angular) → **Components** · **Motion Core** · **Runtime** → **Motion Intelligence & Tooling** (Manifest · MCP · Code Generation · Validation · Figma) — every `src/` folder and roadmap item mapped onto them, with dependency rules (Core depends on nothing; Runtime / Components on Core only; Public API wraps them; Tooling reads the manifest). Not separate npm packages.
29
+ - **`test/architecture.test.ts`** enforces the layer import rules on every value import in `src/` (type-only imports are ignored), forbids `src/` importing `scripts/` / `bin/` / `figma-plugin/`, and checks `dependencies` stays empty with every peer optional. One recorded exception (`<usa-motion-prompt>` → the AI layer) may only be removed, never added to.
30
+
31
+ ### CI
32
+ - Removed `.github/workflows/jekyll-gh-pages.yml`, which failed at "Build with Jekyll" on every push; `pages.yml` (Showcase deploy) is the only Pages workflow.
33
+
34
+ ### Changed
35
+ - ROADMAP: new **11.1 → 13.0** plan (Chinese) — 11.x light / side-effect-free / tree-shakable core, source-map strategy, CI performance metrics, runtime tiers (basic / standard / advanced), Public API alignment, pluggable LLM provider for the AI layer, component-contract audit; 12.0 unified component contract; 12.x cross-platform, MCP validation, Figma export, playground, version compatibility; 13.0 discover · copy · run.
36
+ - ROADMAP: 11.0 done; "`motionary-mcp` 2.x 稳定版"; the cross-platform 3.0 items (mini-program, HarmonyOS ArkTS samples, cross-platform previewer) are moved past 11.0.
37
+ - npm: `motionary` and the `use-scroll-animate` alias are published with the `latest` tag.
38
+
39
+ ### Upgrading
40
+ See [docs/upgrading-11.md](./docs/upgrading-11.md): run `npx usa-codemod-11 --write src`, replace `@10` with `@11` in CDN URLs. Nothing else changes — package names, budgets and entry points stay the same.
41
+
10
42
  ## [10.9.0] - 2026-10-09
11
43
 
12
44
  ### Added
package/README.md CHANGED
@@ -26,12 +26,12 @@ npm i motionary
26
26
 
27
27
  ```html
28
28
  <!-- CDN (no build) -->
29
- <script src="https://unpkg.com/motionary@6/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
- <script src="https://unpkg.com/motionary@6/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
- <script src="https://unpkg.com/motionary@6/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
29
+ <script src="https://unpkg.com/motionary@11/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
+ <script src="https://unpkg.com/motionary@11/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
32
32
  ```
33
33
 
34
- jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@6/dist/…`. Existing `use-scroll-animate` installs and `unpkg.com/use-scroll-animate@6` URLs keep working.
34
+ jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@11/dist/…`. Existing `use-scroll-animate` installs and `unpkg.com/use-scroll-animate@6` URLs keep working.
35
35
 
36
36
  ## 30-second quickstart
37
37
 
@@ -173,28 +173,28 @@ Motionary ships its own zero-dependency animation runtime — shared ticker, twe
173
173
 
174
174
  | Module | Import | CDN (IIFE) | Register | gzip budget |
175
175
  |---|---|---|---|---|
176
- | [Runtime core](docs/runtime/core.md) | `motionary/runtime` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js` | `use();` | 5.5 KB |
177
- | [CSS @keyframes & WAAPI keyframes loader](docs/runtime/format-css.md) | `motionary/runtime/format-css` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-css.iife.js` | `use(formatCss);` | 2.5 KB |
178
- | [Motion / Framer keyframe JSON loader](docs/runtime/format-motion.md) | `motionary/runtime/format-motion` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-motion.iife.js` | `use(formatMotion);` | 2.5 KB |
179
- | [Scroll scenes](docs/runtime/scroll.md) | `motionary/runtime/scroll` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.iife.js` | `use(scroll);` | 4.5 KB |
180
- | [SVG loader: SMIL playback + path morphing](docs/runtime/format-svg.md) | `motionary/runtime/format-svg` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-svg.iife.js` | `use(formatSvg);` | 5.0 KB |
181
- | [Text splitting](docs/runtime/text.md) | `motionary/runtime/text` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/text.iife.js` | `use(text);` | 2.5 KB |
182
- | [Sprite sheets & image sequences](docs/runtime/format-sprite.md) | `motionary/runtime/format-sprite` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-sprite.iife.js` | `use(formatSprite);` | 3.0 KB |
183
- | [Smooth scrolling](docs/runtime/smooth.md) | `motionary/runtime/smooth` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/smooth.iife.js` | `use(smooth);` | 3.5 KB |
184
- | [GIF decoder](docs/runtime/format-gif.md) | `motionary/runtime/format-gif` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gif.iife.js` | `use(formatGif);` | 3.0 KB |
185
- | [APNG loader](docs/runtime/format-apng.md) | `motionary/runtime/format-apng` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-apng.iife.js` | `use(formatApng);` | 3.0 KB |
186
- | [Animated WebP loader](docs/runtime/format-webp.md) | `motionary/runtime/format-webp` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-webp.iife.js` | `use(formatWebp);` | 3.0 KB |
187
- | [WebGL2 scene renderer](docs/runtime/gl.md) | `motionary/runtime/gl` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js` | `use(gl);` | 9.0 KB |
188
- | [glTF 2.0 / GLB loader](docs/runtime/format-gltf.md) | `motionary/runtime/format-gltf` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js` | `use(formatGltf);` | 6.0 KB |
189
- | [OBJ / MTL loader](docs/runtime/format-obj.md) | `motionary/runtime/format-obj` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js` | `use(formatObj);` | 3.0 KB |
190
- | [Lottie + dotLottie player](docs/runtime/vector.md) | `motionary/runtime/vector` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js` | `use(vector);` | 12.0 KB |
176
+ | [Runtime core](docs/runtime/core.md) | `motionary/runtime` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js` | `use();` | 5.5 KB |
177
+ | [CSS @keyframes & WAAPI keyframes loader](docs/runtime/format-css.md) | `motionary/runtime/format-css` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-css.iife.js` | `use(formatCss);` | 2.5 KB |
178
+ | [Motion / Framer keyframe JSON loader](docs/runtime/format-motion.md) | `motionary/runtime/format-motion` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-motion.iife.js` | `use(formatMotion);` | 2.5 KB |
179
+ | [Scroll scenes](docs/runtime/scroll.md) | `motionary/runtime/scroll` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/scroll.iife.js` | `use(scroll);` | 4.5 KB |
180
+ | [SVG loader: SMIL playback + path morphing](docs/runtime/format-svg.md) | `motionary/runtime/format-svg` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-svg.iife.js` | `use(formatSvg);` | 5.0 KB |
181
+ | [Text splitting](docs/runtime/text.md) | `motionary/runtime/text` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/text.iife.js` | `use(text);` | 2.5 KB |
182
+ | [Sprite sheets & image sequences](docs/runtime/format-sprite.md) | `motionary/runtime/format-sprite` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-sprite.iife.js` | `use(formatSprite);` | 3.0 KB |
183
+ | [Smooth scrolling](docs/runtime/smooth.md) | `motionary/runtime/smooth` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/smooth.iife.js` | `use(smooth);` | 3.5 KB |
184
+ | [GIF decoder](docs/runtime/format-gif.md) | `motionary/runtime/format-gif` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-gif.iife.js` | `use(formatGif);` | 3.0 KB |
185
+ | [APNG loader](docs/runtime/format-apng.md) | `motionary/runtime/format-apng` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-apng.iife.js` | `use(formatApng);` | 3.0 KB |
186
+ | [Animated WebP loader](docs/runtime/format-webp.md) | `motionary/runtime/format-webp` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-webp.iife.js` | `use(formatWebp);` | 3.0 KB |
187
+ | [WebGL2 scene renderer](docs/runtime/gl.md) | `motionary/runtime/gl` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gl.iife.js` | `use(gl);` | 9.0 KB |
188
+ | [glTF 2.0 / GLB loader](docs/runtime/format-gltf.md) | `motionary/runtime/format-gltf` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-gltf.iife.js` | `use(formatGltf);` | 6.0 KB |
189
+ | [OBJ / MTL loader](docs/runtime/format-obj.md) | `motionary/runtime/format-obj` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-obj.iife.js` | `use(formatObj);` | 3.0 KB |
190
+ | [Lottie + dotLottie player](docs/runtime/vector.md) | `motionary/runtime/vector` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/vector.iife.js` | `use(vector);` | 12.0 KB |
191
191
  | [Official Rive runtime](docs/runtime/rive.md) | `@rive-app/canvas` | `https://unpkg.com/@rive-app/canvas@2.44.1/rive.js` | `provideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts` | official runtime (not bundled) |
192
- | [2D rigid-body physics](docs/runtime/physics.md) | `motionary/runtime/physics` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/physics.iife.js` | `use(physics);` | 10.0 KB |
193
- | [Scene JSON (motionary-scene@1)](docs/runtime/format-scene.md) | `motionary/runtime/format-scene` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-scene.iife.js` | `use(formatScene);` | 3.0 KB |
194
- | [Drag, inertia and snap points](docs/runtime/drag-snap.md) | `motionary/runtime/drag-snap` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/drag-snap.iife.js` | `use(dragSnap);` | 4.0 KB |
195
- | [glTF animation, skinning and morph targets](docs/runtime/gltf-anim.md) | `motionary/runtime/gltf-anim` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gltf-anim.iife.js` | `use(gltfAnim);` | 4.5 KB |
196
- | [dotLottie themes + state machines](docs/runtime/lottie-state.md) | `motionary/runtime/lottie-state` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/lottie-state.iife.js` | `use(lottieState);` | 3.5 KB |
197
- | [glTF decoder hooks (Draco, KTX2)](docs/runtime/gltf-decoders.md) | `motionary/runtime/gltf-decoders` | `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gltf-decoders.iife.js` | `use(gltfDecoders);` | 3.0 KB |
192
+ | [2D rigid-body physics](docs/runtime/physics.md) | `motionary/runtime/physics` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/physics.iife.js` | `use(physics);` | 10.0 KB |
193
+ | [Scene JSON (motionary-scene@1)](docs/runtime/format-scene.md) | `motionary/runtime/format-scene` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-scene.iife.js` | `use(formatScene);` | 3.0 KB |
194
+ | [Drag, inertia and snap points](docs/runtime/drag-snap.md) | `motionary/runtime/drag-snap` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/drag-snap.iife.js` | `use(dragSnap);` | 4.0 KB |
195
+ | [glTF animation, skinning and morph targets](docs/runtime/gltf-anim.md) | `motionary/runtime/gltf-anim` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gltf-anim.iife.js` | `use(gltfAnim);` | 4.5 KB |
196
+ | [dotLottie themes + state machines](docs/runtime/lottie-state.md) | `motionary/runtime/lottie-state` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/lottie-state.iife.js` | `use(lottieState);` | 3.5 KB |
197
+ | [glTF decoder hooks (Draco, KTX2)](docs/runtime/gltf-decoders.md) | `motionary/runtime/gltf-decoders` | `https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gltf-decoders.iife.js` | `use(gltfDecoders);` | 3.0 KB |
198
198
  | [Official Draco decoder (Google)](docs/runtime/draco3d.md) | `draco3d` | `https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js` | `provideGltfDecoder('draco', () => import('draco3d')); // lazy: fetched when the first Draco-compressed model loads` | official runtime (not bundled) |
199
199
  | [Official Basis Universal transcoder (Binomial)](docs/runtime/basis-transcoder.md) | `basis_transcoder.js` | `https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js` | `provideGltfDecoder('ktx2', () => import('/vendor/basis_transcoder.js').then((m) => m.default || window.BASIS)); // lazy: fetched with the first KTX2 texture` | official runtime (not bundled) |
200
200
 
@@ -216,10 +216,10 @@ definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
216
216
  - **CDN:**
217
217
 
218
218
  ```html
219
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
219
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
220
220
  <!-- then the component bundles -->
221
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
222
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
221
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
222
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
223
223
  ```
224
224
 
225
225
  - **Minimal example:**
@@ -247,11 +247,11 @@ defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
247
247
  - **CDN:**
248
248
 
249
249
  ```html
250
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
251
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.iife.js"></script>
250
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
251
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/scroll.iife.js"></script>
252
252
  <!-- then the component bundles -->
253
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
254
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
253
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
254
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
255
255
  ```
256
256
 
257
257
  - **Minimal example:**
@@ -280,11 +280,11 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
280
280
  - **CDN:**
281
281
 
282
282
  ```html
283
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
284
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/text.iife.js"></script>
283
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
284
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/text.iife.js"></script>
285
285
  <!-- then the component bundles -->
286
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
287
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
286
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
287
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
288
288
  ```
289
289
 
290
290
  - **Minimal example:**
@@ -310,11 +310,11 @@ defineSmoothScroll(); // registers <usa-smooth-scroll> — after the prerequisit
310
310
  - **CDN:**
311
311
 
312
312
  ```html
313
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
314
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/smooth.iife.js"></script>
313
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
314
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/smooth.iife.js"></script>
315
315
  <!-- then the component bundles -->
316
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
317
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
316
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
317
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
318
318
  ```
319
319
 
320
320
  - **Minimal example:**
@@ -343,14 +343,14 @@ defineGlScene(); // registers <usa-gl-scene> — after the prerequisites
343
343
  - **CDN:**
344
344
 
345
345
  ```html
346
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
347
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js"></script>
348
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js"></script>
349
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js"></script>
350
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gltf-anim.iife.js"></script>
346
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
347
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gl.iife.js"></script>
348
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-gltf.iife.js"></script>
349
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-obj.iife.js"></script>
350
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gltf-anim.iife.js"></script>
351
351
  <!-- then the component bundles -->
352
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
353
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
352
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
353
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
354
354
  ```
355
355
 
356
356
  - **Minimal example:**
@@ -376,11 +376,11 @@ defineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisit
376
376
  - **CDN:**
377
377
 
378
378
  ```html
379
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
380
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js"></script>
379
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
380
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/vector.iife.js"></script>
381
381
  <!-- then the component bundles -->
382
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
383
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
382
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
383
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
384
384
  ```
385
385
 
386
386
  - **Minimal example:**
@@ -407,8 +407,8 @@ defineRive(); // registers <usa-rive> — after the prerequisites
407
407
  ```html
408
408
  <script src="https://unpkg.com/@rive-app/canvas@2.44.1/rive.js"></script>
409
409
  <!-- then the component bundles -->
410
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
411
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
410
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
411
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
412
412
  ```
413
413
 
414
414
  - **Minimal example:**
@@ -435,12 +435,12 @@ definePhysicsPlayground(); // registers <usa-physics-playground> — after the p
435
435
  - **CDN:**
436
436
 
437
437
  ```html
438
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
439
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/physics.iife.js"></script>
440
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-scene.iife.js"></script>
438
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
439
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/physics.iife.js"></script>
440
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-scene.iife.js"></script>
441
441
  <!-- then the component bundles -->
442
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
443
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
442
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
443
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
444
444
  ```
445
445
 
446
446
  - **Minimal example:**
@@ -466,11 +466,11 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
466
466
  - **CDN:**
467
467
 
468
468
  ```html
469
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
470
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/drag-snap.iife.js"></script>
469
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
470
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/drag-snap.iife.js"></script>
471
471
  <!-- then the component bundles -->
472
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
473
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
472
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
473
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
474
474
  ```
475
475
 
476
476
  - **Minimal example:**
@@ -501,12 +501,12 @@ defineDotLottie(); // registers <usa-dotlottie> — after the prerequisites
501
501
  - **CDN:**
502
502
 
503
503
  ```html
504
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
505
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js"></script>
506
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/lottie-state.iife.js"></script>
504
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
505
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/vector.iife.js"></script>
506
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/lottie-state.iife.js"></script>
507
507
  <!-- then the component bundles -->
508
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
509
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
508
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
509
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
510
510
  ```
511
511
 
512
512
  - **Minimal example:**
@@ -537,15 +537,15 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
537
537
  - **CDN:**
538
538
 
539
539
  ```html
540
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
541
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js"></script>
542
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js"></script>
543
- <script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gltf-decoders.iife.js"></script>
540
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime.iife.js"></script>
541
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gl.iife.js"></script>
542
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/format-gltf.iife.js"></script>
543
+ <script src="https://cdn.jsdelivr.net/npm/motionary@11/dist/runtime/gltf-decoders.iife.js"></script>
544
544
  <script src="https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js"></script>
545
545
  <script src="https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js"></script>
546
546
  <!-- then the component bundles -->
547
- <script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
548
- <script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
547
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script>
548
+ <script src="https://unpkg.com/motionary@11/dist/widgets.umd.js"></script>
549
549
  ```
550
550
 
551
551
  - **Minimal example:**
@@ -556,6 +556,47 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
556
556
 
557
557
  <!-- runtime:end -->
558
558
 
559
+ <!-- stable:start -->
560
+ ## Stable API (11.x) & compatibility matrix
561
+
562
+ From 11.0 these are stable and follow semver until 12.0 (additions only in minors; see [docs/upgrading-11.md](./docs/upgrading-11.md)):
563
+
564
+ - `motionary/runtime` and every `motionary/runtime/<module>` export and module id;
565
+ - the AI manifest **schema v2** (`components.json`, `motionary/manifest.json`, `stability: "stable"`) and the `motionary-scene@1` format;
566
+ - `motionary-mcp` **2.x** tool names and result shapes;
567
+ - the individual entry points (`motionary/widgets/<name>`, `motionary/effects/<name>`, `motionary/components/<name>`) and their fixed gzip budgets;
568
+ - the compatibility matrix below — a ✅ row is not removed before 12.0.
569
+
570
+ | Module | ✅ | ◐ | ✕ |
571
+ |---|---|---|---|
572
+ | [Runtime core](docs/runtime/core.md) | 7 | 0 | 0 |
573
+ | [CSS @keyframes & WAAPI keyframes loader](docs/runtime/format-css.md) | 5 | 1 | 2 |
574
+ | [Motion / Framer keyframe JSON loader](docs/runtime/format-motion.md) | 5 | 0 | 1 |
575
+ | [Scroll scenes](docs/runtime/scroll.md) | 8 | 0 | 2 |
576
+ | [SVG loader: SMIL playback + path morphing](docs/runtime/format-svg.md) | 8 | 0 | 1 |
577
+ | [Text splitting](docs/runtime/text.md) | 6 | 2 | 0 |
578
+ | [Sprite sheets & image sequences](docs/runtime/format-sprite.md) | 5 | 1 | 2 |
579
+ | [Smooth scrolling](docs/runtime/smooth.md) | 7 | 2 | 0 |
580
+ | [GIF decoder](docs/runtime/format-gif.md) | 6 | 1 | 1 |
581
+ | [APNG loader](docs/runtime/format-apng.md) | 7 | 1 | 0 |
582
+ | [Animated WebP loader](docs/runtime/format-webp.md) | 4 | 1 | 2 |
583
+ | [WebGL2 scene renderer](docs/runtime/gl.md) | 6 | 1 | 2 |
584
+ | [glTF 2.0 / GLB loader](docs/runtime/format-gltf.md) | 8 | 1 | 2 |
585
+ | [OBJ / MTL loader](docs/runtime/format-obj.md) | 4 | 1 | 2 |
586
+ | [Lottie + dotLottie player](docs/runtime/vector.md) | 14 | 1 | 2 |
587
+ | [Official Rive runtime](docs/runtime/rive.md) | 6 | 1 | 0 |
588
+ | [2D rigid-body physics](docs/runtime/physics.md) | 8 | 0 | 0 |
589
+ | [Scene JSON (motionary-scene@1)](docs/runtime/format-scene.md) | 7 | 0 | 0 |
590
+ | [Drag, inertia and snap points](docs/runtime/drag-snap.md) | 6 | 1 | 1 |
591
+ | [glTF animation, skinning and morph targets](docs/runtime/gltf-anim.md) | 7 | 0 | 1 |
592
+ | [dotLottie themes + state machines](docs/runtime/lottie-state.md) | 7 | 0 | 1 |
593
+ | [glTF decoder hooks (Draco, KTX2)](docs/runtime/gltf-decoders.md) | 4 | 1 | 1 |
594
+ | [Official Draco decoder (Google)](docs/runtime/draco3d.md) | 1 | 0 | 1 |
595
+ | [Official Basis Universal transcoder (Binomial)](docs/runtime/basis-transcoder.md) | 1 | 0 | 1 |
596
+
597
+ Feature by feature: [docs/compat-matrix.md](./docs/compat-matrix.md).
598
+ <!-- stable:end -->
599
+
559
600
  ## Accessibility & reduced motion
560
601
 
561
602
  - With `prefers-reduced-motion: reduce`, scroll reveals show content immediately (no entrance, parallax or scrub motion), and components fall back to calm states (`staticAlternative()` / `adaptKeyframes()`).
@@ -603,9 +644,13 @@ Evergreen browsers since 2023: Chrome / Edge ≥ 111, Safari ≥ 16.4, Firefox
603
644
  ## Upgrading
604
645
 
605
646
  - From `use-scroll-animate`: `npm i motionary` and replace `use-scroll-animate` with `motionary` in imports and CDN URLs — nothing else changes (the old package name keeps receiving the same releases).
606
- - [Upgrading to 6.0](./docs/upgrading-6.md) (`npx usa-codemod-6`) · [Upgrading to 5.0](./docs/upgrading-5.md) (`npx usa-codemod-5`) · [4.0](./docs/upgrading-4.md) · [3.0](./docs/upgrading-3.md) · [2.0](./docs/deprecations.md)
647
+ - [Upgrading to 11.0](./docs/upgrading-11.md) (`npx usa-codemod-11`) · [10.0](./docs/upgrading-10.md) · [Upgrading to 6.0](./docs/upgrading-6.md) (`npx usa-codemod-6`) · [Upgrading to 5.0](./docs/upgrading-5.md) (`npx usa-codemod-5`) · [4.0](./docs/upgrading-4.md) · [3.0](./docs/upgrading-3.md) · [2.0](./docs/deprecations.md)
607
648
  - [Changelog](./CHANGELOG.md)
608
649
 
650
+ ## Architecture
651
+
652
+ Four logical layers — Public API (HTML · React · Vue · Svelte · Solid · Angular) → Components · Motion Core · Runtime → Motion Intelligence & Tooling — with import rules enforced by `test/architecture.test.ts`: [docs/architecture.md](./docs/architecture.md).
653
+
609
654
  ## Roadmap
610
655
 
611
656
  One version per PR towards 7.0 — particles & fluids, text effects, light & materials, 3D scenes, morphing, transitions, weather, interactive physics: [docs/ROADMAP.md](./docs/ROADMAP.md).
package/README_ja.md CHANGED
@@ -26,12 +26,12 @@ npm i motionary
26
26
 
27
27
  ```html
28
28
  <!-- CDN (no build) -->
29
- <script src="https://unpkg.com/motionary@6/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
- <script src="https://unpkg.com/motionary@6/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
- <script src="https://unpkg.com/motionary@6/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
29
+ <script src="https://unpkg.com/motionary@11/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
+ <script src="https://unpkg.com/motionary@11/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
32
32
  ```
33
33
 
34
- jsDelivr も利用できます:`https://cdn.jsdelivr.net/npm/motionary@6/dist/…`。既存の `use-scroll-animate` と `unpkg.com/use-scroll-animate@6` の URL もそのまま動きます。
34
+ jsDelivr も利用できます:`https://cdn.jsdelivr.net/npm/motionary@11/dist/…`。既存の `use-scroll-animate` と `unpkg.com/use-scroll-animate@6` の URL もそのまま動きます。
35
35
 
36
36
  ## 30 秒クイックスタート
37
37
 
package/README_zh.md CHANGED
@@ -26,12 +26,12 @@ npm i motionary
26
26
 
27
27
  ```html
28
28
  <!-- CDN (no build) -->
29
- <script src="https://unpkg.com/motionary@6/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
- <script src="https://unpkg.com/motionary@6/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
- <script src="https://unpkg.com/motionary@6/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
29
+ <script src="https://unpkg.com/motionary@11/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
30
+ <script src="https://unpkg.com/motionary@11/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
31
+ <script src="https://unpkg.com/motionary@11/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
32
32
  ```
33
33
 
34
- jsDelivr 同样可用:`https://cdn.jsdelivr.net/npm/motionary@6/dist/…`。已有的 `use-scroll-animate` 安装与 `unpkg.com/use-scroll-animate@6` 链接继续可用。
34
+ jsDelivr 同样可用:`https://cdn.jsdelivr.net/npm/motionary@11/dist/…`。已有的 `use-scroll-animate` 安装与 `unpkg.com/use-scroll-animate@6` 链接继续可用。
35
35
 
36
36
  ## 30 秒上手
37
37
 
@@ -1,4 +1,4 @@
1
- import { P as Playable } from './tween-CrnzMeOU.js';
1
+ import { P as Playable } from './tween-WepVA7id.js';
2
2
 
3
3
  /**
4
4
  * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
@@ -163,4 +163,4 @@ function crc32(bytes, start = 0, end = bytes.length) {
163
163
  }
164
164
 
165
165
  export { animatedImagePlayer as a, browserDecode as b, composeFrames as c, bytesOf as d, crc32 as e, fixDelay as f, u8 as u };
166
- //# sourceMappingURL=anim-image-CnZDYmtv.js.map
166
+ //# sourceMappingURL=anim-image-Btw3j5Qb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"anim-image-CnZDYmtv.js","sources":["../../src/runtime/anim-image.ts"],"sourcesContent":["/**\n * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,\n * `format-webp`, 10.4): the decoded-animation shape, frame compositing in\n * plain RGBA arrays (no DOM — works in workers and on the server), the\n * browser image decoder used for APNG / WebP frames, and the canvas player\n * (a runtime `Playable`, so it can be paused, reversed, scrubbed and driven\n * by a scroll scene). Bundled into each loader; not a public module.\n */\nimport { Playable } from './tween';\n\n/** An RGBA bitmap (the shape of `ImageData`, without needing the DOM). */\nexport interface Rgba {\n width: number;\n height: number;\n data: Uint8ClampedArray;\n}\n\n/** One frame of an animation, already composited to the full canvas size. */\nexport interface AnimFrame {\n /** Display time, ms. */\n delay: number;\n image: Rgba;\n}\n\nexport interface AnimatedImage {\n format: 'gif' | 'apng' | 'webp';\n width: number;\n height: number;\n /** Number of plays: 0 = forever, 1 = once, … */\n plays: number;\n frames: AnimFrame[];\n}\n\n/** A frame region before compositing (APNG fcTL / WebP ANMF / GIF descriptor). */\nexport interface FramePart {\n x: number;\n y: number;\n image: Rgba;\n delay: number;\n /** 'over' alpha-blends onto the canvas, 'source' replaces the region. */\n blend: 'over' | 'source';\n /** What happens to the region after the frame is shown. */\n dispose: 'none' | 'background' | 'previous';\n}\n\n/** Browsers clamp tiny delays (0–10 ms) to 100 ms; we do the same. */\nexport const fixDelay = (ms: number): number => (ms <= 10 ? 100 : ms);\n\n/** Composite frame parts onto a `width × height` canvas (pure; RGBA in, RGBA out). */\nexport function composeFrames(width: number, height: number, parts: FramePart[], background?: [number, number, number, number]): AnimFrame[] {\n const canvas = new Uint8ClampedArray(width * height * 4);\n const out: AnimFrame[] = [];\n for (const p of parts) {\n const before = p.dispose === 'previous' ? canvas.slice() : null;\n const { width: w, height: h, data } = p.image;\n for (let y = 0; y < h; y++) {\n const cy = p.y + y;\n if (cy < 0 || cy >= height) continue;\n for (let x = 0; x < w; x++) {\n const cx = p.x + x;\n if (cx < 0 || cx >= width) continue;\n const s = (y * w + x) * 4, d = (cy * width + cx) * 4;\n const a = data[s + 3];\n if (p.blend === 'source' || a === 255) {\n canvas[d] = data[s]; canvas[d + 1] = data[s + 1]; canvas[d + 2] = data[s + 2]; canvas[d + 3] = a;\n } else if (a) {\n // straight-alpha \"over\"\n const da = canvas[d + 3] / 255, sa = a / 255, oa = sa + da * (1 - sa);\n for (let c = 0; c < 3; c++) canvas[d + c] = (data[s + c] * sa + canvas[d + c] * da * (1 - sa)) / oa;\n canvas[d + 3] = oa * 255;\n }\n }\n }\n out.push({ delay: p.delay, image: { width, height, data: canvas.slice() } });\n if (p.dispose === 'background') {\n for (let y = Math.max(0, p.y); y < Math.min(height, p.y + h); y++)\n for (let x = Math.max(0, p.x); x < Math.min(width, p.x + w); x++) canvas.set(background || [0, 0, 0, 0], (y * width + x) * 4);\n } else if (before) canvas.set(before);\n }\n return out;\n}\n\n/** Image decoder for one frame file (PNG / WebP bytes) → RGBA. Replaceable (workers, tests, servers). */\nexport type FrameDecoder = (bytes: Uint8Array, mime: string) => Promise<Rgba>;\n\n/** Default decoder: the browser's own (`createImageBitmap` + a 2D canvas; OffscreenCanvas in workers). */\nexport const browserDecode: FrameDecoder = async (bytes, mime) => {\n const g = globalThis as any;\n if (typeof g.createImageBitmap !== 'function') throw new Error('[motionary] no image decoder here (createImageBitmap is missing) — pass { decode } to the loader');\n const bmp = await g.createImageBitmap(new Blob([bytes as BlobPart], { type: mime }));\n const w = bmp.width, h = bmp.height; // read before close(): a closed ImageBitmap reports 0 × 0\n const c = typeof g.OffscreenCanvas === 'function' ? new g.OffscreenCanvas(w, h) : Object.assign(document.createElement('canvas'), { width: w, height: h });\n const ctx = c.getContext('2d', { willReadFrequently: true });\n ctx.drawImage(bmp, 0, 0);\n bmp.close?.();\n const id = ctx.getImageData(0, 0, w, h);\n return { width: id.width, height: id.height, data: id.data };\n};\n\n/** Read a `src` (URL, ArrayBuffer, typed array or Blob) into bytes. */\nexport async function bytesOf(src: string | ArrayBuffer | ArrayBufferView | Blob): Promise<Uint8Array> {\n if (typeof src === 'string') {\n const r = await fetch(src);\n if (!r.ok) throw new Error(`[motionary] could not load ${src} (${r.status})`);\n return new Uint8Array(await r.arrayBuffer());\n }\n if (src instanceof ArrayBuffer) return new Uint8Array(src);\n if (ArrayBuffer.isView(src)) return new Uint8Array(src.buffer, src.byteOffset, src.byteLength);\n return new Uint8Array(await (src as Blob).arrayBuffer());\n}\n\nexport interface AnimPlayerOptions {\n /** Extra repeats; default from the file (`plays`: 0 → forever). */\n repeat?: number;\n yoyo?: boolean;\n paused?: boolean;\n /** Playback speed (default 1). */\n speed?: number;\n}\n\nexport type AnimPlayer = Playable & { readonly frame: number; readonly frameCount: number };\n\nclass AnimImagePlayer extends Playable {\n private times: number[] = [0];\n private cur = -1;\n private ctx: CanvasRenderingContext2D | null;\n private datas: (ImageData | null)[];\n constructor(private canvas: HTMLCanvasElement | OffscreenCanvas, private anim: AnimatedImage, o: AnimPlayerOptions) {\n super({ repeat: o.repeat ?? (anim.plays === 0 ? -1 : Math.max(0, anim.plays - 1)), yoyo: o.yoyo });\n this.timeScale = o.speed || 1;\n for (const f of anim.frames) this.times.push(this.times[this.times.length - 1] + f.delay);\n if (canvas.width !== anim.width) canvas.width = anim.width;\n if (canvas.height !== anim.height) canvas.height = anim.height;\n this.ctx = canvas.getContext('2d') as CanvasRenderingContext2D | null;\n this.datas = anim.frames.map(() => null);\n this.show(0);\n if (!o.paused) this.play();\n }\n get duration(): number {\n return this.times[this.times.length - 1];\n }\n get frame(): number {\n return this.cur;\n }\n get frameCount(): number {\n return this.anim.frames.length;\n }\n protected renderLocal(ms: number): void {\n const t = Math.min(ms, this.duration - 0.001);\n let lo = 0, hi = this.anim.frames.length - 1;\n while (lo < hi) {\n const mid = (lo + hi + 1) >> 1;\n if (this.times[mid] <= t) lo = mid;\n else hi = mid - 1;\n }\n this.show(lo);\n }\n private show(i: number): void {\n if (i === this.cur || !this.ctx) return;\n this.cur = i;\n const f = this.anim.frames[i];\n if (!f) return;\n let d = this.datas[i];\n if (!d && typeof ImageData === 'function') d = this.datas[i] = new ImageData(new Uint8ClampedArray(f.image.data), f.image.width, f.image.height);\n if (d) this.ctx.putImageData(d, 0, 0);\n }\n}\n\n/** Play a decoded animation on a canvas as a runtime timeline (seek / reverse / `progress` scrub). */\nexport function animatedImagePlayer(canvas: HTMLCanvasElement | OffscreenCanvas, anim: AnimatedImage, o: AnimPlayerOptions = {}): AnimPlayer {\n if (!anim.frames.length) throw new Error('[motionary] animatedImagePlayer: the animation has no frames');\n return new AnimImagePlayer(canvas, anim, o);\n}\n\n/** A plain Uint8Array view (Node Buffers' `slice()` shares memory — normalise them away). */\nexport const u8 = (x: Uint8Array | ArrayBuffer): Uint8Array => (x instanceof ArrayBuffer ? new Uint8Array(x) : new Uint8Array(x.buffer, x.byteOffset, x.byteLength));\n\n/** CRC-32 (PNG chunks). */\nlet CRC: Uint32Array | null = null;\nexport function crc32(bytes: Uint8Array, start = 0, end = bytes.length): number {\n if (!CRC) {\n CRC = new Uint32Array(256);\n for (let n = 0; n < 256; n++) {\n let c = n;\n for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;\n CRC[n] = c >>> 0;\n }\n }\n let c = 0xffffffff;\n for (let i = start; i < end; i++) c = CRC[(c ^ bytes[i]) & 0xff] ^ (c >>> 8);\n return (c ^ 0xffffffff) >>> 0;\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAsCH;MACa,QAAQ,GAAG,CAAC,EAAU,MAAc,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE;AAEpE;AACM,SAAU,aAAa,CAAC,KAAa,EAAE,MAAc,EAAE,KAAkB,EAAE,UAA6C,EAAA;IAC5H,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,KAAK,GAAG,MAAM,GAAG,CAAC,CAAC;IACxD,MAAM,GAAG,GAAgB,EAAE;AAC3B,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACrB,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,KAAK,UAAU,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI;AAC/D,QAAA,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK;AAC7C,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAA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O,MAAM,EAAE,GAAG,CAAC,CAA2B,MAAkB,CAAC,YAAY,WAAW,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC;AAEnK;AACA,IAAI,GAAG,GAAuB,IAAI;AAC5B,SAAU,KAAK,CAAC,KAAiB,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAA;IACpE,IAAI,CAAC,GAAG,EAAE;AACR,QAAA,GAAG,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC;AAC1B,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC;YACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;gBAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;AACxE,YAAA,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;QAClB;IACF;IACA,IAAI,CAAC,GAAG,UAAU;IAClB,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;QAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5E,IAAA,OAAO,CAAC,CAAC,GAAG,UAAU,MAAM,CAAC;AAC/B;;"}
1
+ {"version":3,"file":"anim-image-Btw3j5Qb.js","sources":["../../src/runtime/anim-image.ts"],"sourcesContent":["/**\n * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,\n * `format-webp`, 10.4): the decoded-animation shape, frame compositing in\n * plain RGBA arrays (no DOM — works in workers and on the server), the\n * browser image decoder used for APNG / WebP frames, and the canvas player\n * (a runtime `Playable`, so it can be paused, reversed, scrubbed and driven\n * by a scroll scene). Bundled into each loader; not a public module.\n */\nimport { Playable } from './tween';\n\n/** An RGBA bitmap (the shape of `ImageData`, without needing the DOM). */\nexport interface Rgba {\n width: number;\n height: number;\n data: Uint8ClampedArray;\n}\n\n/** One frame of an animation, already composited to the full canvas size. */\nexport interface AnimFrame {\n /** Display time, ms. */\n delay: number;\n image: Rgba;\n}\n\nexport interface AnimatedImage {\n format: 'gif' | 'apng' | 'webp';\n width: number;\n height: number;\n /** Number of plays: 0 = forever, 1 = once, … */\n plays: number;\n frames: AnimFrame[];\n}\n\n/** A frame region before compositing (APNG fcTL / WebP ANMF / GIF descriptor). */\nexport interface FramePart {\n x: number;\n y: number;\n image: Rgba;\n delay: number;\n /** 'over' alpha-blends onto the canvas, 'source' replaces the region. */\n blend: 'over' | 'source';\n /** What happens to the region after the frame is shown. */\n dispose: 'none' | 'background' | 'previous';\n}\n\n/** Browsers clamp tiny delays (0–10 ms) to 100 ms; we do the same. */\nexport const fixDelay = (ms: number): number => (ms <= 10 ? 100 : ms);\n\n/** Composite frame parts onto a `width × height` canvas (pure; RGBA in, RGBA out). */\nexport function composeFrames(width: number, height: number, parts: FramePart[], background?: [number, number, number, number]): AnimFrame[] {\n const canvas = new Uint8ClampedArray(width * height * 4);\n const out: AnimFrame[] = [];\n for (const p of parts) {\n const before = p.dispose === 'previous' ? canvas.slice() : null;\n const { width: w, height: h, data } = p.image;\n for (let y = 0; y < h; y++) {\n const cy = p.y + y;\n if (cy < 0 || cy >= height) continue;\n for (let x = 0; x < w; x++) {\n const cx = p.x + x;\n if (cx < 0 || cx >= width) continue;\n const s = (y * w + x) * 4, d = (cy * width + cx) * 4;\n const a = data[s + 3];\n if (p.blend === 'source' || a === 255) {\n canvas[d] = data[s]; canvas[d + 1] = data[s + 1]; canvas[d + 2] = data[s + 2]; canvas[d + 3] = a;\n } else if (a) {\n // straight-alpha \"over\"\n const da = canvas[d + 3] / 255, sa = a / 255, oa = sa + da * (1 - sa);\n for (let c = 0; c < 3; c++) canvas[d + c] = (data[s + c] * sa + canvas[d + c] * da * (1 - sa)) / oa;\n canvas[d + 3] = oa * 255;\n }\n }\n }\n out.push({ delay: p.delay, image: { width, height, data: canvas.slice() } });\n if (p.dispose === 'background') {\n for (let y = Math.max(0, p.y); y < Math.min(height, p.y + h); y++)\n for (let x = Math.max(0, p.x); x < Math.min(width, p.x + w); x++) canvas.set(background || [0, 0, 0, 0], (y * width + x) * 4);\n } else if (before) canvas.set(before);\n }\n return out;\n}\n\n/** Image decoder for one frame file (PNG / WebP bytes) → RGBA. Replaceable (workers, tests, servers). */\nexport type FrameDecoder = (bytes: Uint8Array, mime: string) => Promise<Rgba>;\n\n/** Default decoder: the browser's own (`createImageBitmap` + a 2D canvas; OffscreenCanvas in workers). */\nexport const browserDecode: FrameDecoder = async (bytes, mime) => {\n const g = globalThis as any;\n if (typeof g.createImageBitmap !== 'function') throw new Error('[motionary] no image decoder here (createImageBitmap is missing) — pass { decode } to the loader');\n const bmp = await g.createImageBitmap(new Blob([bytes as BlobPart], { type: mime }));\n const w = bmp.width, h = bmp.height; // read before close(): a closed ImageBitmap reports 0 × 0\n const c = typeof g.OffscreenCanvas === 'function' ? new g.OffscreenCanvas(w, h) : Object.assign(document.createElement('canvas'), { width: w, height: h });\n const ctx = c.getContext('2d', { willReadFrequently: true });\n ctx.drawImage(bmp, 0, 0);\n bmp.close?.();\n const id = ctx.getImageData(0, 0, w, h);\n return { width: id.width, height: id.height, data: id.data };\n};\n\n/** Read a `src` (URL, ArrayBuffer, typed array or Blob) into bytes. */\nexport async function bytesOf(src: string | ArrayBuffer | ArrayBufferView | Blob): Promise<Uint8Array> {\n if (typeof src === 'string') {\n const r = await fetch(src);\n if (!r.ok) throw new Error(`[motionary] could not load ${src} (${r.status})`);\n return new Uint8Array(await r.arrayBuffer());\n }\n if (src instanceof ArrayBuffer) return new Uint8Array(src);\n if (ArrayBuffer.isView(src)) return new Uint8Array(src.buffer, src.byteOffset, src.byteLength);\n return new Uint8Array(await (src as Blob).arrayBuffer());\n}\n\nexport interface AnimPlayerOptions {\n /** Extra repeats; default from the file (`plays`: 0 → forever). */\n repeat?: number;\n yoyo?: boolean;\n paused?: boolean;\n /** Playback speed (default 1). */\n speed?: number;\n}\n\nexport type AnimPlayer = Playable & { readonly frame: number; readonly frameCount: number };\n\nclass AnimImagePlayer extends Playable {\n private times: number[] = [0];\n private cur = -1;\n private ctx: CanvasRenderingContext2D | null;\n private datas: (ImageData | null)[];\n constructor(private canvas: HTMLCanvasElement | OffscreenCanvas, private anim: AnimatedImage, o: AnimPlayerOptions) {\n super({ repeat: o.repeat ?? (anim.plays === 0 ? -1 : Math.max(0, anim.plays - 1)), yoyo: o.yoyo });\n this.timeScale = o.speed || 1;\n for (const f of anim.frames) this.times.push(this.times[this.times.length - 1] + f.delay);\n if (canvas.width !== anim.width) canvas.width = anim.width;\n if (canvas.height !== anim.height) canvas.height = anim.height;\n this.ctx = canvas.getContext('2d') as CanvasRenderingContext2D | null;\n this.datas = anim.frames.map(() => null);\n this.show(0);\n if (!o.paused) this.play();\n }\n get duration(): number {\n return this.times[this.times.length - 1];\n }\n get frame(): number {\n return this.cur;\n }\n get frameCount(): number {\n return this.anim.frames.length;\n }\n protected renderLocal(ms: number): void {\n const t = Math.min(ms, this.duration - 0.001);\n let lo = 0, hi = this.anim.frames.length - 1;\n while (lo < hi) {\n const mid = (lo + hi + 1) >> 1;\n if (this.times[mid] <= t) lo = mid;\n else hi = mid - 1;\n }\n this.show(lo);\n }\n private show(i: number): void {\n if (i === this.cur || !this.ctx) return;\n this.cur = i;\n const f = this.anim.frames[i];\n if (!f) return;\n let d = this.datas[i];\n if (!d && typeof ImageData === 'function') d = this.datas[i] = new ImageData(new Uint8ClampedArray(f.image.data), f.image.width, f.image.height);\n if (d) this.ctx.putImageData(d, 0, 0);\n }\n}\n\n/** Play a decoded animation on a canvas as a runtime timeline (seek / reverse / `progress` scrub). */\nexport function animatedImagePlayer(canvas: HTMLCanvasElement | OffscreenCanvas, anim: AnimatedImage, o: AnimPlayerOptions = {}): AnimPlayer {\n if (!anim.frames.length) throw new Error('[motionary] animatedImagePlayer: the animation has no frames');\n return new AnimImagePlayer(canvas, anim, o);\n}\n\n/** A plain Uint8Array view (Node Buffers' `slice()` shares memory — normalise them away). */\nexport const u8 = (x: Uint8Array | ArrayBuffer): Uint8Array => (x instanceof ArrayBuffer ? new Uint8Array(x) : new Uint8Array(x.buffer, x.byteOffset, x.byteLength));\n\n/** CRC-32 (PNG chunks). */\nlet CRC: Uint32Array | null = null;\nexport function crc32(bytes: Uint8Array, start = 0, end = bytes.length): number {\n if (!CRC) {\n CRC = new Uint32Array(256);\n for (let n = 0; n < 256; n++) {\n let c = n;\n for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;\n CRC[n] = c >>> 0;\n }\n }\n let c = 0xffffffff;\n for (let i = start; i < end; i++) c = CRC[(c ^ bytes[i]) & 0xff] ^ (c >>> 8);\n return (c ^ 0xffffffff) >>> 0;\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAsCH;MACa,QAAQ,GAAG,CAAC,EAAU,MAAc,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE;AAEpE;AACM,SAAU,aAAa,CAAC,KAAa,EAAE,MAAc,EAAE,KAAkB,EAAE,UAA6C,EAAA;IAC5H,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,KAAK,GAAG,MAAM,GAAG,CAAC,CAAC;IACxD,MAAM,GAAG,GAAgB,EAAE;AAC3B,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACrB,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,KAAK,UAAU,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI;AAC/D,QAAA,MAAM,EAAE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"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tween = require('./tween-BHbiOBWO.cjs');
3
+ var tween = require('./tween-Df87h-1G.cjs');
4
4
 
5
5
  /**
6
6
  * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
@@ -171,4 +171,4 @@ exports.composeFrames = composeFrames;
171
171
  exports.crc32 = crc32;
172
172
  exports.fixDelay = fixDelay;
173
173
  exports.u8 = u8;
174
- //# sourceMappingURL=anim-image-D1JZ7wOU.cjs.map
174
+ //# sourceMappingURL=anim-image-DVv_vtbG.cjs.map