@motion-script/core 0.1.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 (782) hide show
  1. package/README.md +69 -0
  2. package/dist/assets/catalog.d.ts +83 -0
  3. package/dist/assets/catalog.d.ts.map +1 -0
  4. package/dist/assets/catalog.js +110 -0
  5. package/dist/assets/catalog.js.map +1 -0
  6. package/dist/assets/index.d.ts +5 -0
  7. package/dist/assets/index.d.ts.map +1 -0
  8. package/dist/assets/index.js +4 -0
  9. package/dist/assets/index.js.map +1 -0
  10. package/dist/assets/manager.d.ts +32 -0
  11. package/dist/assets/manager.d.ts.map +1 -0
  12. package/dist/assets/manager.js +108 -0
  13. package/dist/assets/manager.js.map +1 -0
  14. package/dist/assets/manager.test.d.ts +2 -0
  15. package/dist/assets/manager.test.d.ts.map +1 -0
  16. package/dist/assets/manager.test.js +133 -0
  17. package/dist/assets/manager.test.js.map +1 -0
  18. package/dist/assets/manifest.d.ts +38 -0
  19. package/dist/assets/manifest.d.ts.map +1 -0
  20. package/dist/assets/manifest.js +2 -0
  21. package/dist/assets/manifest.js.map +1 -0
  22. package/dist/assets/record.d.ts +40 -0
  23. package/dist/assets/record.d.ts.map +1 -0
  24. package/dist/assets/record.js +2 -0
  25. package/dist/assets/record.js.map +1 -0
  26. package/dist/assets/tracker.d.ts +69 -0
  27. package/dist/assets/tracker.d.ts.map +1 -0
  28. package/dist/assets/tracker.js +178 -0
  29. package/dist/assets/tracker.js.map +1 -0
  30. package/dist/attributes/audio/request.d.ts +21 -0
  31. package/dist/attributes/audio/request.d.ts.map +1 -0
  32. package/dist/attributes/audio/request.js +2 -0
  33. package/dist/attributes/audio/request.js.map +1 -0
  34. package/dist/attributes/audio/sound.d.ts +83 -0
  35. package/dist/attributes/audio/sound.d.ts.map +1 -0
  36. package/dist/attributes/audio/sound.js +106 -0
  37. package/dist/attributes/audio/sound.js.map +1 -0
  38. package/dist/attributes/index.d.ts +18 -0
  39. package/dist/attributes/index.d.ts.map +1 -0
  40. package/dist/attributes/index.js +17 -0
  41. package/dist/attributes/index.js.map +1 -0
  42. package/dist/attributes/layout/bounds.d.ts +12 -0
  43. package/dist/attributes/layout/bounds.d.ts.map +1 -0
  44. package/dist/attributes/layout/bounds.js +2 -0
  45. package/dist/attributes/layout/bounds.js.map +1 -0
  46. package/dist/attributes/layout/constraints.d.ts +6 -0
  47. package/dist/attributes/layout/constraints.d.ts.map +1 -0
  48. package/dist/attributes/layout/constraints.js +2 -0
  49. package/dist/attributes/layout/constraints.js.map +1 -0
  50. package/dist/attributes/layout/index.d.ts +6 -0
  51. package/dist/attributes/layout/index.d.ts.map +1 -0
  52. package/dist/attributes/layout/index.js +2 -0
  53. package/dist/attributes/layout/index.js.map +1 -0
  54. package/dist/attributes/layout/padding.d.ts +26 -0
  55. package/dist/attributes/layout/padding.d.ts.map +1 -0
  56. package/dist/attributes/layout/padding.js +17 -0
  57. package/dist/attributes/layout/padding.js.map +1 -0
  58. package/dist/attributes/layout/padding.test.d.ts +2 -0
  59. package/dist/attributes/layout/padding.test.d.ts.map +1 -0
  60. package/dist/attributes/layout/padding.test.js +32 -0
  61. package/dist/attributes/layout/padding.test.js.map +1 -0
  62. package/dist/attributes/layout/size.d.ts +14 -0
  63. package/dist/attributes/layout/size.d.ts.map +1 -0
  64. package/dist/attributes/layout/size.js +2 -0
  65. package/dist/attributes/layout/size.js.map +1 -0
  66. package/dist/attributes/layout/vector2.d.ts +8 -0
  67. package/dist/attributes/layout/vector2.d.ts.map +1 -0
  68. package/dist/attributes/layout/vector2.js +8 -0
  69. package/dist/attributes/layout/vector2.js.map +1 -0
  70. package/dist/attributes/layout/vector2.test.d.ts +2 -0
  71. package/dist/attributes/layout/vector2.test.d.ts.map +1 -0
  72. package/dist/attributes/layout/vector2.test.js +23 -0
  73. package/dist/attributes/layout/vector2.test.js.map +1 -0
  74. package/dist/attributes/mask/boolean.d.ts +2 -0
  75. package/dist/attributes/mask/boolean.d.ts.map +1 -0
  76. package/dist/attributes/mask/boolean.js +2 -0
  77. package/dist/attributes/mask/boolean.js.map +1 -0
  78. package/dist/attributes/mask/mask.d.ts +9 -0
  79. package/dist/attributes/mask/mask.d.ts.map +1 -0
  80. package/dist/attributes/mask/mask.js +2 -0
  81. package/dist/attributes/mask/mask.js.map +1 -0
  82. package/dist/attributes/properties/decorator.d.ts +45 -0
  83. package/dist/attributes/properties/decorator.d.ts.map +1 -0
  84. package/dist/attributes/properties/decorator.js +72 -0
  85. package/dist/attributes/properties/decorator.js.map +1 -0
  86. package/dist/attributes/properties/decorator.test.d.ts +2 -0
  87. package/dist/attributes/properties/decorator.test.d.ts.map +1 -0
  88. package/dist/attributes/properties/decorator.test.js +52 -0
  89. package/dist/attributes/properties/decorator.test.js.map +1 -0
  90. package/dist/attributes/shape/corners/border-radius.d.ts +32 -0
  91. package/dist/attributes/shape/corners/border-radius.d.ts.map +1 -0
  92. package/dist/attributes/shape/corners/border-radius.js +50 -0
  93. package/dist/attributes/shape/corners/border-radius.js.map +1 -0
  94. package/dist/attributes/shape/corners/border-radius.test.d.ts +2 -0
  95. package/dist/attributes/shape/corners/border-radius.test.d.ts.map +1 -0
  96. package/dist/attributes/shape/corners/border-radius.test.js +52 -0
  97. package/dist/attributes/shape/corners/border-radius.test.js.map +1 -0
  98. package/dist/attributes/shape/corners/index.d.ts +2 -0
  99. package/dist/attributes/shape/corners/index.d.ts.map +1 -0
  100. package/dist/attributes/shape/corners/index.js +2 -0
  101. package/dist/attributes/shape/corners/index.js.map +1 -0
  102. package/dist/attributes/shape/effects/chain.d.ts +145 -0
  103. package/dist/attributes/shape/effects/chain.d.ts.map +1 -0
  104. package/dist/attributes/shape/effects/chain.js +163 -0
  105. package/dist/attributes/shape/effects/chain.js.map +1 -0
  106. package/dist/attributes/shape/effects/chain.test.d.ts +2 -0
  107. package/dist/attributes/shape/effects/chain.test.d.ts.map +1 -0
  108. package/dist/attributes/shape/effects/chain.test.js +63 -0
  109. package/dist/attributes/shape/effects/chain.test.js.map +1 -0
  110. package/dist/attributes/shape/effects/effect-data.d.ts +18 -0
  111. package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -0
  112. package/dist/attributes/shape/effects/effect-data.js +2 -0
  113. package/dist/attributes/shape/effects/effect-data.js.map +1 -0
  114. package/dist/attributes/shape/effects/implementations/background-blur.d.ts +13 -0
  115. package/dist/attributes/shape/effects/implementations/background-blur.d.ts.map +1 -0
  116. package/dist/attributes/shape/effects/implementations/background-blur.js +6 -0
  117. package/dist/attributes/shape/effects/implementations/background-blur.js.map +1 -0
  118. package/dist/attributes/shape/effects/implementations/bloom.d.ts +12 -0
  119. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -0
  120. package/dist/attributes/shape/effects/implementations/bloom.js +11 -0
  121. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -0
  122. package/dist/attributes/shape/effects/implementations/blur.d.ts +7 -0
  123. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -0
  124. package/dist/attributes/shape/effects/implementations/blur.js +6 -0
  125. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -0
  126. package/dist/attributes/shape/effects/implementations/bulge-pinch.d.ts +13 -0
  127. package/dist/attributes/shape/effects/implementations/bulge-pinch.d.ts.map +1 -0
  128. package/dist/attributes/shape/effects/implementations/bulge-pinch.js +15 -0
  129. package/dist/attributes/shape/effects/implementations/bulge-pinch.js.map +1 -0
  130. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +10 -0
  131. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -0
  132. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +10 -0
  133. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -0
  134. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +7 -0
  135. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -0
  136. package/dist/attributes/shape/effects/implementations/grayscale.js +6 -0
  137. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -0
  138. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +8 -0
  139. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -0
  140. package/dist/attributes/shape/effects/implementations/pixelate.js +10 -0
  141. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -0
  142. package/dist/attributes/shape/effects/implementations/sksl.d.ts +39 -0
  143. package/dist/attributes/shape/effects/implementations/sksl.d.ts.map +1 -0
  144. package/dist/attributes/shape/effects/implementations/sksl.js +48 -0
  145. package/dist/attributes/shape/effects/implementations/sksl.js.map +1 -0
  146. package/dist/attributes/shape/effects/implementations/texture.d.ts +9 -0
  147. package/dist/attributes/shape/effects/implementations/texture.d.ts.map +1 -0
  148. package/dist/attributes/shape/effects/implementations/texture.js +11 -0
  149. package/dist/attributes/shape/effects/implementations/texture.js.map +1 -0
  150. package/dist/attributes/shape/effects/implementations/vintage.d.ts +10 -0
  151. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -0
  152. package/dist/attributes/shape/effects/implementations/vintage.js +10 -0
  153. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -0
  154. package/dist/attributes/shape/effects/implementations/zoom.d.ts +14 -0
  155. package/dist/attributes/shape/effects/implementations/zoom.d.ts.map +1 -0
  156. package/dist/attributes/shape/effects/implementations/zoom.js +13 -0
  157. package/dist/attributes/shape/effects/implementations/zoom.js.map +1 -0
  158. package/dist/attributes/shape/effects/index.d.ts +19 -0
  159. package/dist/attributes/shape/effects/index.d.ts.map +1 -0
  160. package/dist/attributes/shape/effects/index.js +4 -0
  161. package/dist/attributes/shape/effects/index.js.map +1 -0
  162. package/dist/attributes/shape/effects/registry.d.ts +4 -0
  163. package/dist/attributes/shape/effects/registry.d.ts.map +1 -0
  164. package/dist/attributes/shape/effects/registry.js +51 -0
  165. package/dist/attributes/shape/effects/registry.js.map +1 -0
  166. package/dist/attributes/shape/effects/union.d.ts +14 -0
  167. package/dist/attributes/shape/effects/union.d.ts.map +1 -0
  168. package/dist/attributes/shape/effects/union.js +2 -0
  169. package/dist/attributes/shape/effects/union.js.map +1 -0
  170. package/dist/attributes/shape/fill/blend.d.ts +13 -0
  171. package/dist/attributes/shape/fill/blend.d.ts.map +1 -0
  172. package/dist/attributes/shape/fill/blend.js +32 -0
  173. package/dist/attributes/shape/fill/blend.js.map +1 -0
  174. package/dist/attributes/shape/fill/blend.test.d.ts +2 -0
  175. package/dist/attributes/shape/fill/blend.test.d.ts.map +1 -0
  176. package/dist/attributes/shape/fill/blend.test.js +18 -0
  177. package/dist/attributes/shape/fill/blend.test.js.map +1 -0
  178. package/dist/attributes/shape/fill/chain.d.ts +127 -0
  179. package/dist/attributes/shape/fill/chain.d.ts.map +1 -0
  180. package/dist/attributes/shape/fill/chain.js +116 -0
  181. package/dist/attributes/shape/fill/chain.js.map +1 -0
  182. package/dist/attributes/shape/fill/chain.test.d.ts +2 -0
  183. package/dist/attributes/shape/fill/chain.test.d.ts.map +1 -0
  184. package/dist/attributes/shape/fill/chain.test.js +92 -0
  185. package/dist/attributes/shape/fill/chain.test.js.map +1 -0
  186. package/dist/attributes/shape/fill/color/constants.d.ts +13 -0
  187. package/dist/attributes/shape/fill/color/constants.d.ts.map +1 -0
  188. package/dist/attributes/shape/fill/color/constants.js +162 -0
  189. package/dist/attributes/shape/fill/color/constants.js.map +1 -0
  190. package/dist/attributes/shape/fill/color/parser.d.ts +39 -0
  191. package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -0
  192. package/dist/attributes/shape/fill/color/parser.js +212 -0
  193. package/dist/attributes/shape/fill/color/parser.js.map +1 -0
  194. package/dist/attributes/shape/fill/color/parser.test.d.ts +2 -0
  195. package/dist/attributes/shape/fill/color/parser.test.d.ts.map +1 -0
  196. package/dist/attributes/shape/fill/color/parser.test.js +99 -0
  197. package/dist/attributes/shape/fill/color/parser.test.js.map +1 -0
  198. package/dist/attributes/shape/fill/implementations/color.d.ts +17 -0
  199. package/dist/attributes/shape/fill/implementations/color.d.ts.map +1 -0
  200. package/dist/attributes/shape/fill/implementations/color.js +24 -0
  201. package/dist/attributes/shape/fill/implementations/color.js.map +1 -0
  202. package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts +24 -0
  203. package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -0
  204. package/dist/attributes/shape/fill/implementations/conic-gradient.js +33 -0
  205. package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -0
  206. package/dist/attributes/shape/fill/implementations/image.d.ts +27 -0
  207. package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -0
  208. package/dist/attributes/shape/fill/implementations/image.js +16 -0
  209. package/dist/attributes/shape/fill/implementations/image.js.map +1 -0
  210. package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts +24 -0
  211. package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -0
  212. package/dist/attributes/shape/fill/implementations/linear-gradient.js +33 -0
  213. package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -0
  214. package/dist/attributes/shape/fill/implementations/noise.d.ts +22 -0
  215. package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -0
  216. package/dist/attributes/shape/fill/implementations/noise.js +35 -0
  217. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -0
  218. package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts +24 -0
  219. package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -0
  220. package/dist/attributes/shape/fill/implementations/radial-gradient.js +33 -0
  221. package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -0
  222. package/dist/attributes/shape/fill/implementations/stripe.d.ts +23 -0
  223. package/dist/attributes/shape/fill/implementations/stripe.d.ts.map +1 -0
  224. package/dist/attributes/shape/fill/implementations/stripe.js +36 -0
  225. package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -0
  226. package/dist/attributes/shape/fill/implementations/video.d.ts +41 -0
  227. package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -0
  228. package/dist/attributes/shape/fill/implementations/video.js +51 -0
  229. package/dist/attributes/shape/fill/implementations/video.js.map +1 -0
  230. package/dist/attributes/shape/fill/index.d.ts +18 -0
  231. package/dist/attributes/shape/fill/index.d.ts.map +1 -0
  232. package/dist/attributes/shape/fill/index.js +5 -0
  233. package/dist/attributes/shape/fill/index.js.map +1 -0
  234. package/dist/attributes/shape/fill/lerp.d.ts +11 -0
  235. package/dist/attributes/shape/fill/lerp.d.ts.map +1 -0
  236. package/dist/attributes/shape/fill/lerp.js +17 -0
  237. package/dist/attributes/shape/fill/lerp.js.map +1 -0
  238. package/dist/attributes/shape/fill/lerp.test.d.ts +2 -0
  239. package/dist/attributes/shape/fill/lerp.test.d.ts.map +1 -0
  240. package/dist/attributes/shape/fill/lerp.test.js +18 -0
  241. package/dist/attributes/shape/fill/lerp.test.js.map +1 -0
  242. package/dist/attributes/shape/fill/registry.d.ts +28 -0
  243. package/dist/attributes/shape/fill/registry.d.ts.map +1 -0
  244. package/dist/attributes/shape/fill/registry.js +83 -0
  245. package/dist/attributes/shape/fill/registry.js.map +1 -0
  246. package/dist/attributes/shape/fill/union.d.ts +50 -0
  247. package/dist/attributes/shape/fill/union.d.ts.map +1 -0
  248. package/dist/attributes/shape/fill/union.js +11 -0
  249. package/dist/attributes/shape/fill/union.js.map +1 -0
  250. package/dist/attributes/shape/filters/chain.d.ts +65 -0
  251. package/dist/attributes/shape/filters/chain.d.ts.map +1 -0
  252. package/dist/attributes/shape/filters/chain.js +83 -0
  253. package/dist/attributes/shape/filters/chain.js.map +1 -0
  254. package/dist/attributes/shape/filters/chain.test.d.ts +2 -0
  255. package/dist/attributes/shape/filters/chain.test.d.ts.map +1 -0
  256. package/dist/attributes/shape/filters/chain.test.js +49 -0
  257. package/dist/attributes/shape/filters/chain.test.js.map +1 -0
  258. package/dist/attributes/shape/filters/implementations/alpha.d.ts +7 -0
  259. package/dist/attributes/shape/filters/implementations/alpha.d.ts.map +1 -0
  260. package/dist/attributes/shape/filters/implementations/alpha.js +7 -0
  261. package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -0
  262. package/dist/attributes/shape/filters/implementations/blur.d.ts +7 -0
  263. package/dist/attributes/shape/filters/implementations/blur.d.ts.map +1 -0
  264. package/dist/attributes/shape/filters/implementations/blur.js +7 -0
  265. package/dist/attributes/shape/filters/implementations/blur.js.map +1 -0
  266. package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts +26 -0
  267. package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts.map +1 -0
  268. package/dist/attributes/shape/filters/implementations/color-adjustment.js +26 -0
  269. package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -0
  270. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +13 -0
  271. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -0
  272. package/dist/attributes/shape/filters/implementations/color-matrix.js +12 -0
  273. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -0
  274. package/dist/attributes/shape/filters/implementations/curves.d.ts +17 -0
  275. package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -0
  276. package/dist/attributes/shape/filters/implementations/curves.js +18 -0
  277. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -0
  278. package/dist/attributes/shape/filters/implementations/exposure.d.ts +7 -0
  279. package/dist/attributes/shape/filters/implementations/exposure.d.ts.map +1 -0
  280. package/dist/attributes/shape/filters/implementations/exposure.js +7 -0
  281. package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -0
  282. package/dist/attributes/shape/filters/implementations/grayscale.d.ts +7 -0
  283. package/dist/attributes/shape/filters/implementations/grayscale.d.ts.map +1 -0
  284. package/dist/attributes/shape/filters/implementations/grayscale.js +7 -0
  285. package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -0
  286. package/dist/attributes/shape/filters/index.d.ts +16 -0
  287. package/dist/attributes/shape/filters/index.d.ts.map +1 -0
  288. package/dist/attributes/shape/filters/index.js +5 -0
  289. package/dist/attributes/shape/filters/index.js.map +1 -0
  290. package/dist/attributes/shape/filters/registry.d.ts +37 -0
  291. package/dist/attributes/shape/filters/registry.d.ts.map +1 -0
  292. package/dist/attributes/shape/filters/registry.js +60 -0
  293. package/dist/attributes/shape/filters/registry.js.map +1 -0
  294. package/dist/attributes/shape/filters/registry.test.d.ts +5 -0
  295. package/dist/attributes/shape/filters/registry.test.d.ts.map +1 -0
  296. package/dist/attributes/shape/filters/registry.test.js +75 -0
  297. package/dist/attributes/shape/filters/registry.test.js.map +1 -0
  298. package/dist/attributes/shape/filters/union.d.ts +10 -0
  299. package/dist/attributes/shape/filters/union.d.ts.map +1 -0
  300. package/dist/attributes/shape/filters/union.js +2 -0
  301. package/dist/attributes/shape/filters/union.js.map +1 -0
  302. package/dist/attributes/shape/path/bezier.d.ts +28 -0
  303. package/dist/attributes/shape/path/bezier.d.ts.map +1 -0
  304. package/dist/attributes/shape/path/bezier.js +76 -0
  305. package/dist/attributes/shape/path/bezier.js.map +1 -0
  306. package/dist/attributes/shape/path/bezier.test.d.ts +2 -0
  307. package/dist/attributes/shape/path/bezier.test.d.ts.map +1 -0
  308. package/dist/attributes/shape/path/bezier.test.js +85 -0
  309. package/dist/attributes/shape/path/bezier.test.js.map +1 -0
  310. package/dist/attributes/shape/path/dash.d.ts +15 -0
  311. package/dist/attributes/shape/path/dash.d.ts.map +1 -0
  312. package/dist/attributes/shape/path/dash.js +299 -0
  313. package/dist/attributes/shape/path/dash.js.map +1 -0
  314. package/dist/attributes/shape/path/dash.test.d.ts +2 -0
  315. package/dist/attributes/shape/path/dash.test.d.ts.map +1 -0
  316. package/dist/attributes/shape/path/dash.test.js +36 -0
  317. package/dist/attributes/shape/path/dash.test.js.map +1 -0
  318. package/dist/attributes/shape/path/index.d.ts +5 -0
  319. package/dist/attributes/shape/path/index.d.ts.map +1 -0
  320. package/dist/attributes/shape/path/index.js +5 -0
  321. package/dist/attributes/shape/path/index.js.map +1 -0
  322. package/dist/attributes/shape/path/length.d.ts +14 -0
  323. package/dist/attributes/shape/path/length.d.ts.map +1 -0
  324. package/dist/attributes/shape/path/length.js +169 -0
  325. package/dist/attributes/shape/path/length.js.map +1 -0
  326. package/dist/attributes/shape/path/length.test.d.ts +2 -0
  327. package/dist/attributes/shape/path/length.test.d.ts.map +1 -0
  328. package/dist/attributes/shape/path/length.test.js +56 -0
  329. package/dist/attributes/shape/path/length.test.js.map +1 -0
  330. package/dist/attributes/shape/path/subpath.d.ts +15 -0
  331. package/dist/attributes/shape/path/subpath.d.ts.map +1 -0
  332. package/dist/attributes/shape/path/subpath.js +486 -0
  333. package/dist/attributes/shape/path/subpath.js.map +1 -0
  334. package/dist/attributes/shape/path/subpath.test.d.ts +2 -0
  335. package/dist/attributes/shape/path/subpath.test.d.ts.map +1 -0
  336. package/dist/attributes/shape/path/subpath.test.js +54 -0
  337. package/dist/attributes/shape/path/subpath.test.js.map +1 -0
  338. package/dist/attributes/shape/shadow/index.d.ts +5 -0
  339. package/dist/attributes/shape/shadow/index.d.ts.map +1 -0
  340. package/dist/attributes/shape/shadow/index.js +3 -0
  341. package/dist/attributes/shape/shadow/index.js.map +1 -0
  342. package/dist/attributes/shape/shadow/lerp.d.ts +3 -0
  343. package/dist/attributes/shape/shadow/lerp.d.ts.map +1 -0
  344. package/dist/attributes/shape/shadow/lerp.js +30 -0
  345. package/dist/attributes/shape/shadow/lerp.js.map +1 -0
  346. package/dist/attributes/shape/shadow/resolver.d.ts +22 -0
  347. package/dist/attributes/shape/shadow/resolver.d.ts.map +1 -0
  348. package/dist/attributes/shape/shadow/resolver.js +17 -0
  349. package/dist/attributes/shape/shadow/resolver.js.map +1 -0
  350. package/dist/attributes/shape/stroke/index.d.ts +5 -0
  351. package/dist/attributes/shape/stroke/index.d.ts.map +1 -0
  352. package/dist/attributes/shape/stroke/index.js +3 -0
  353. package/dist/attributes/shape/stroke/index.js.map +1 -0
  354. package/dist/attributes/shape/stroke/lerp.d.ts +3 -0
  355. package/dist/attributes/shape/stroke/lerp.d.ts.map +1 -0
  356. package/dist/attributes/shape/stroke/lerp.js +30 -0
  357. package/dist/attributes/shape/stroke/lerp.js.map +1 -0
  358. package/dist/attributes/shape/stroke/mapper.d.ts +24 -0
  359. package/dist/attributes/shape/stroke/mapper.d.ts.map +1 -0
  360. package/dist/attributes/shape/stroke/mapper.js +25 -0
  361. package/dist/attributes/shape/stroke/mapper.js.map +1 -0
  362. package/dist/attributes/text/align.d.ts +2 -0
  363. package/dist/attributes/text/align.d.ts.map +1 -0
  364. package/dist/attributes/text/align.js +2 -0
  365. package/dist/attributes/text/align.js.map +1 -0
  366. package/dist/attributes/text/lerp.d.ts +8 -0
  367. package/dist/attributes/text/lerp.d.ts.map +1 -0
  368. package/dist/attributes/text/lerp.js +38 -0
  369. package/dist/attributes/text/lerp.js.map +1 -0
  370. package/dist/attributes/text/lerp.test.d.ts +2 -0
  371. package/dist/attributes/text/lerp.test.d.ts.map +1 -0
  372. package/dist/attributes/text/lerp.test.js +39 -0
  373. package/dist/attributes/text/lerp.test.js.map +1 -0
  374. package/dist/attributes/text/span.d.ts +37 -0
  375. package/dist/attributes/text/span.d.ts.map +1 -0
  376. package/dist/attributes/text/span.js +2 -0
  377. package/dist/attributes/text/span.js.map +1 -0
  378. package/dist/index.d.ts +14 -0
  379. package/dist/index.d.ts.map +1 -0
  380. package/dist/index.js +14 -0
  381. package/dist/index.js.map +1 -0
  382. package/dist/jsx/jsx-dev-runtime.d.ts +19 -0
  383. package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -0
  384. package/dist/jsx/jsx-dev-runtime.js +16 -0
  385. package/dist/jsx/jsx-dev-runtime.js.map +1 -0
  386. package/dist/jsx/jsx-runtime.d.ts +19 -0
  387. package/dist/jsx/jsx-runtime.d.ts.map +1 -0
  388. package/dist/jsx/jsx-runtime.js +16 -0
  389. package/dist/jsx/jsx-runtime.js.map +1 -0
  390. package/dist/layout/flex.d.ts +66 -0
  391. package/dist/layout/flex.d.ts.map +1 -0
  392. package/dist/layout/flex.js +196 -0
  393. package/dist/layout/flex.js.map +1 -0
  394. package/dist/layout/flex.test.d.ts +2 -0
  395. package/dist/layout/flex.test.d.ts.map +1 -0
  396. package/dist/layout/flex.test.js +336 -0
  397. package/dist/layout/flex.test.js.map +1 -0
  398. package/dist/layout/grid.d.ts +38 -0
  399. package/dist/layout/grid.d.ts.map +1 -0
  400. package/dist/layout/grid.js +117 -0
  401. package/dist/layout/grid.js.map +1 -0
  402. package/dist/layout/index.d.ts +6 -0
  403. package/dist/layout/index.d.ts.map +1 -0
  404. package/dist/layout/index.js +6 -0
  405. package/dist/layout/index.js.map +1 -0
  406. package/dist/layout/padding.d.ts +19 -0
  407. package/dist/layout/padding.d.ts.map +1 -0
  408. package/dist/layout/padding.js +16 -0
  409. package/dist/layout/padding.js.map +1 -0
  410. package/dist/layout/padding.test.d.ts +2 -0
  411. package/dist/layout/padding.test.d.ts.map +1 -0
  412. package/dist/layout/padding.test.js +39 -0
  413. package/dist/layout/padding.test.js.map +1 -0
  414. package/dist/layout/size-resolver.d.ts +13 -0
  415. package/dist/layout/size-resolver.d.ts.map +1 -0
  416. package/dist/layout/size-resolver.js +22 -0
  417. package/dist/layout/size-resolver.js.map +1 -0
  418. package/dist/layout/size-resolver.test.d.ts +2 -0
  419. package/dist/layout/size-resolver.test.d.ts.map +1 -0
  420. package/dist/layout/size-resolver.test.js +24 -0
  421. package/dist/layout/size-resolver.test.js.map +1 -0
  422. package/dist/layout/tweens.d.ts +5 -0
  423. package/dist/layout/tweens.d.ts.map +1 -0
  424. package/dist/layout/tweens.js +16 -0
  425. package/dist/layout/tweens.js.map +1 -0
  426. package/dist/layout/tweens.test.d.ts +2 -0
  427. package/dist/layout/tweens.test.d.ts.map +1 -0
  428. package/dist/layout/tweens.test.js +26 -0
  429. package/dist/layout/tweens.test.js.map +1 -0
  430. package/dist/nodes/base/boolean-node.d.ts +14 -0
  431. package/dist/nodes/base/boolean-node.d.ts.map +1 -0
  432. package/dist/nodes/base/boolean-node.js +34 -0
  433. package/dist/nodes/base/boolean-node.js.map +1 -0
  434. package/dist/nodes/base/camera-node.d.ts +27 -0
  435. package/dist/nodes/base/camera-node.d.ts.map +1 -0
  436. package/dist/nodes/base/camera-node.js +31 -0
  437. package/dist/nodes/base/camera-node.js.map +1 -0
  438. package/dist/nodes/base/mask-node.d.ts +14 -0
  439. package/dist/nodes/base/mask-node.d.ts.map +1 -0
  440. package/dist/nodes/base/mask-node.js +37 -0
  441. package/dist/nodes/base/mask-node.js.map +1 -0
  442. package/dist/nodes/base/node.d.ts +284 -0
  443. package/dist/nodes/base/node.d.ts.map +1 -0
  444. package/dist/nodes/base/node.js +800 -0
  445. package/dist/nodes/base/node.js.map +1 -0
  446. package/dist/nodes/base/scene-node.d.ts +45 -0
  447. package/dist/nodes/base/scene-node.d.ts.map +1 -0
  448. package/dist/nodes/base/scene-node.js +122 -0
  449. package/dist/nodes/base/scene-node.js.map +1 -0
  450. package/dist/nodes/geometry/ellipse-node.d.ts +18 -0
  451. package/dist/nodes/geometry/ellipse-node.d.ts.map +1 -0
  452. package/dist/nodes/geometry/ellipse-node.js +55 -0
  453. package/dist/nodes/geometry/ellipse-node.js.map +1 -0
  454. package/dist/nodes/geometry/grid-node.d.ts +40 -0
  455. package/dist/nodes/geometry/grid-node.d.ts.map +1 -0
  456. package/dist/nodes/geometry/grid-node.js +138 -0
  457. package/dist/nodes/geometry/grid-node.js.map +1 -0
  458. package/dist/nodes/geometry/line-node.d.ts +17 -0
  459. package/dist/nodes/geometry/line-node.d.ts.map +1 -0
  460. package/dist/nodes/geometry/line-node.js +34 -0
  461. package/dist/nodes/geometry/line-node.js.map +1 -0
  462. package/dist/nodes/geometry/path-node.d.ts +17 -0
  463. package/dist/nodes/geometry/path-node.d.ts.map +1 -0
  464. package/dist/nodes/geometry/path-node.js +230 -0
  465. package/dist/nodes/geometry/path-node.js.map +1 -0
  466. package/dist/nodes/geometry/polygon-node.d.ts +20 -0
  467. package/dist/nodes/geometry/polygon-node.d.ts.map +1 -0
  468. package/dist/nodes/geometry/polygon-node.js +42 -0
  469. package/dist/nodes/geometry/polygon-node.js.map +1 -0
  470. package/dist/nodes/geometry/polygram-node.d.ts +27 -0
  471. package/dist/nodes/geometry/polygram-node.d.ts.map +1 -0
  472. package/dist/nodes/geometry/polygram-node.js +47 -0
  473. package/dist/nodes/geometry/polygram-node.js.map +1 -0
  474. package/dist/nodes/geometry/rect-node.d.ts +50 -0
  475. package/dist/nodes/geometry/rect-node.d.ts.map +1 -0
  476. package/dist/nodes/geometry/rect-node.js +275 -0
  477. package/dist/nodes/geometry/rect-node.js.map +1 -0
  478. package/dist/nodes/geometry/shape-node.d.ts +66 -0
  479. package/dist/nodes/geometry/shape-node.d.ts.map +1 -0
  480. package/dist/nodes/geometry/shape-node.js +127 -0
  481. package/dist/nodes/geometry/shape-node.js.map +1 -0
  482. package/dist/nodes/index.d.ts +17 -0
  483. package/dist/nodes/index.d.ts.map +1 -0
  484. package/dist/nodes/index.js +20 -0
  485. package/dist/nodes/index.js.map +1 -0
  486. package/dist/nodes/media/image-node.d.ts +28 -0
  487. package/dist/nodes/media/image-node.d.ts.map +1 -0
  488. package/dist/nodes/media/image-node.js +53 -0
  489. package/dist/nodes/media/image-node.js.map +1 -0
  490. package/dist/nodes/text/richtext-node.d.ts +46 -0
  491. package/dist/nodes/text/richtext-node.d.ts.map +1 -0
  492. package/dist/nodes/text/richtext-node.js +155 -0
  493. package/dist/nodes/text/richtext-node.js.map +1 -0
  494. package/dist/nodes/text/text-node.d.ts +42 -0
  495. package/dist/nodes/text/text-node.d.ts.map +1 -0
  496. package/dist/nodes/text/text-node.js +123 -0
  497. package/dist/nodes/text/text-node.js.map +1 -0
  498. package/dist/platform/audio-device.d.ts +40 -0
  499. package/dist/platform/audio-device.d.ts.map +1 -0
  500. package/dist/platform/audio-device.js +19 -0
  501. package/dist/platform/audio-device.js.map +1 -0
  502. package/dist/platform/index.d.ts +4 -0
  503. package/dist/platform/index.d.ts.map +1 -0
  504. package/dist/platform/index.js +4 -0
  505. package/dist/platform/index.js.map +1 -0
  506. package/dist/platform/master-clock.d.ts +54 -0
  507. package/dist/platform/master-clock.d.ts.map +1 -0
  508. package/dist/platform/master-clock.js +85 -0
  509. package/dist/platform/master-clock.js.map +1 -0
  510. package/dist/platform/storage-adapter.d.ts +29 -0
  511. package/dist/platform/storage-adapter.d.ts.map +1 -0
  512. package/dist/platform/storage-adapter.js +70 -0
  513. package/dist/platform/storage-adapter.js.map +1 -0
  514. package/dist/project/config.d.ts +24 -0
  515. package/dist/project/config.d.ts.map +1 -0
  516. package/dist/project/config.js +14 -0
  517. package/dist/project/config.js.map +1 -0
  518. package/dist/project/config.test.d.ts +2 -0
  519. package/dist/project/config.test.d.ts.map +1 -0
  520. package/dist/project/config.test.js +28 -0
  521. package/dist/project/config.test.js.map +1 -0
  522. package/dist/project/index.d.ts +3 -0
  523. package/dist/project/index.d.ts.map +1 -0
  524. package/dist/project/index.js +3 -0
  525. package/dist/project/index.js.map +1 -0
  526. package/dist/project/tree.d.ts +48 -0
  527. package/dist/project/tree.d.ts.map +1 -0
  528. package/dist/project/tree.js +11 -0
  529. package/dist/project/tree.js.map +1 -0
  530. package/dist/render/build-stage.d.ts +63 -0
  531. package/dist/render/build-stage.d.ts.map +1 -0
  532. package/dist/render/build-stage.js +91 -0
  533. package/dist/render/build-stage.js.map +1 -0
  534. package/dist/render/descriptors/ellipse.d.ts +10 -0
  535. package/dist/render/descriptors/ellipse.d.ts.map +1 -0
  536. package/dist/render/descriptors/ellipse.js +20 -0
  537. package/dist/render/descriptors/ellipse.js.map +1 -0
  538. package/dist/render/descriptors/image.d.ts +12 -0
  539. package/dist/render/descriptors/image.d.ts.map +1 -0
  540. package/dist/render/descriptors/image.js +12 -0
  541. package/dist/render/descriptors/image.js.map +1 -0
  542. package/dist/render/descriptors/latex.d.ts +6 -0
  543. package/dist/render/descriptors/latex.d.ts.map +1 -0
  544. package/dist/render/descriptors/latex.js +2 -0
  545. package/dist/render/descriptors/latex.js.map +1 -0
  546. package/dist/render/descriptors/line.d.ts +9 -0
  547. package/dist/render/descriptors/line.d.ts.map +1 -0
  548. package/dist/render/descriptors/line.js +19 -0
  549. package/dist/render/descriptors/line.js.map +1 -0
  550. package/dist/render/descriptors/path-builder.d.ts +14 -0
  551. package/dist/render/descriptors/path-builder.d.ts.map +1 -0
  552. package/dist/render/descriptors/path-builder.js +34 -0
  553. package/dist/render/descriptors/path-builder.js.map +1 -0
  554. package/dist/render/descriptors/path.d.ts +105 -0
  555. package/dist/render/descriptors/path.d.ts.map +1 -0
  556. package/dist/render/descriptors/path.js +45 -0
  557. package/dist/render/descriptors/path.js.map +1 -0
  558. package/dist/render/descriptors/path.test.d.ts +2 -0
  559. package/dist/render/descriptors/path.test.d.ts.map +1 -0
  560. package/dist/render/descriptors/path.test.js +40 -0
  561. package/dist/render/descriptors/path.test.js.map +1 -0
  562. package/dist/render/descriptors/polygon.d.ts +9 -0
  563. package/dist/render/descriptors/polygon.d.ts.map +1 -0
  564. package/dist/render/descriptors/polygon.js +19 -0
  565. package/dist/render/descriptors/polygon.js.map +1 -0
  566. package/dist/render/descriptors/polygram.d.ts +10 -0
  567. package/dist/render/descriptors/polygram.d.ts.map +1 -0
  568. package/dist/render/descriptors/polygram.js +20 -0
  569. package/dist/render/descriptors/polygram.js.map +1 -0
  570. package/dist/render/descriptors/rect.d.ts +9 -0
  571. package/dist/render/descriptors/rect.d.ts.map +1 -0
  572. package/dist/render/descriptors/rect.js +18 -0
  573. package/dist/render/descriptors/rect.js.map +1 -0
  574. package/dist/render/descriptors/richtext.d.ts +12 -0
  575. package/dist/render/descriptors/richtext.d.ts.map +1 -0
  576. package/dist/render/descriptors/richtext.js +20 -0
  577. package/dist/render/descriptors/richtext.js.map +1 -0
  578. package/dist/render/descriptors/shape.d.ts +6 -0
  579. package/dist/render/descriptors/shape.d.ts.map +1 -0
  580. package/dist/render/descriptors/shape.js +2 -0
  581. package/dist/render/descriptors/shape.js.map +1 -0
  582. package/dist/render/descriptors/text.d.ts +19 -0
  583. package/dist/render/descriptors/text.d.ts.map +1 -0
  584. package/dist/render/descriptors/text.js +27 -0
  585. package/dist/render/descriptors/text.js.map +1 -0
  586. package/dist/render/descriptors/transform.d.ts +16 -0
  587. package/dist/render/descriptors/transform.d.ts.map +1 -0
  588. package/dist/render/descriptors/transform.js +14 -0
  589. package/dist/render/descriptors/transform.js.map +1 -0
  590. package/dist/render/index.d.ts +17 -0
  591. package/dist/render/index.d.ts.map +1 -0
  592. package/dist/render/index.js +16 -0
  593. package/dist/render/index.js.map +1 -0
  594. package/dist/render/measure-scope.d.ts +25 -0
  595. package/dist/render/measure-scope.d.ts.map +1 -0
  596. package/dist/render/measure-scope.js +11 -0
  597. package/dist/render/measure-scope.js.map +1 -0
  598. package/dist/render/render-context.d.ts +258 -0
  599. package/dist/render/render-context.d.ts.map +1 -0
  600. package/dist/render/render-context.js +95 -0
  601. package/dist/render/render-context.js.map +1 -0
  602. package/dist/runtime/index.d.ts +4 -0
  603. package/dist/runtime/index.d.ts.map +1 -0
  604. package/dist/runtime/index.js +4 -0
  605. package/dist/runtime/index.js.map +1 -0
  606. package/dist/runtime/playback-controller.d.ts +105 -0
  607. package/dist/runtime/playback-controller.d.ts.map +1 -0
  608. package/dist/runtime/playback-controller.js +244 -0
  609. package/dist/runtime/playback-controller.js.map +1 -0
  610. package/dist/runtime/playback-controller.test.d.ts +2 -0
  611. package/dist/runtime/playback-controller.test.d.ts.map +1 -0
  612. package/dist/runtime/playback-controller.test.js +148 -0
  613. package/dist/runtime/playback-controller.test.js.map +1 -0
  614. package/dist/runtime/precompisition.d.ts +107 -0
  615. package/dist/runtime/precompisition.d.ts.map +1 -0
  616. package/dist/runtime/precompisition.js +202 -0
  617. package/dist/runtime/precompisition.js.map +1 -0
  618. package/dist/runtime/precompisition.test.d.ts +2 -0
  619. package/dist/runtime/precompisition.test.d.ts.map +1 -0
  620. package/dist/runtime/precompisition.test.js +138 -0
  621. package/dist/runtime/precompisition.test.js.map +1 -0
  622. package/dist/runtime/runtime.fixtures.d.ts +158 -0
  623. package/dist/runtime/runtime.fixtures.d.ts.map +1 -0
  624. package/dist/runtime/runtime.fixtures.js +264 -0
  625. package/dist/runtime/runtime.fixtures.js.map +1 -0
  626. package/dist/runtime/state-evaluator.d.ts +76 -0
  627. package/dist/runtime/state-evaluator.d.ts.map +1 -0
  628. package/dist/runtime/state-evaluator.js +162 -0
  629. package/dist/runtime/state-evaluator.js.map +1 -0
  630. package/dist/runtime/state-evaluator.test.d.ts +2 -0
  631. package/dist/runtime/state-evaluator.test.d.ts.map +1 -0
  632. package/dist/runtime/state-evaluator.test.js +122 -0
  633. package/dist/runtime/state-evaluator.test.js.map +1 -0
  634. package/dist/signals/create.d.ts +21 -0
  635. package/dist/signals/create.d.ts.map +1 -0
  636. package/dist/signals/create.js +74 -0
  637. package/dist/signals/create.js.map +1 -0
  638. package/dist/signals/create.test.d.ts +2 -0
  639. package/dist/signals/create.test.d.ts.map +1 -0
  640. package/dist/signals/create.test.js +81 -0
  641. package/dist/signals/create.test.js.map +1 -0
  642. package/dist/signals/host.d.ts +11 -0
  643. package/dist/signals/host.d.ts.map +1 -0
  644. package/dist/signals/host.js +10 -0
  645. package/dist/signals/host.js.map +1 -0
  646. package/dist/signals/index.d.ts +4 -0
  647. package/dist/signals/index.d.ts.map +1 -0
  648. package/dist/signals/index.js +3 -0
  649. package/dist/signals/index.js.map +1 -0
  650. package/dist/signals/signal-cell.test.d.ts +2 -0
  651. package/dist/signals/signal-cell.test.d.ts.map +1 -0
  652. package/dist/signals/signal-cell.test.js +202 -0
  653. package/dist/signals/signal-cell.test.js.map +1 -0
  654. package/dist/signals/signal.d.ts +46 -0
  655. package/dist/signals/signal.d.ts.map +1 -0
  656. package/dist/signals/signal.js +162 -0
  657. package/dist/signals/signal.js.map +1 -0
  658. package/dist/signals/signal.test.d.ts +2 -0
  659. package/dist/signals/signal.test.d.ts.map +1 -0
  660. package/dist/signals/signal.test.js +192 -0
  661. package/dist/signals/signal.test.js.map +1 -0
  662. package/dist/signals/subscriber.d.ts +5 -0
  663. package/dist/signals/subscriber.d.ts.map +1 -0
  664. package/dist/signals/subscriber.js +2 -0
  665. package/dist/signals/subscriber.js.map +1 -0
  666. package/dist/tween/animation-builder.d.ts +74 -0
  667. package/dist/tween/animation-builder.d.ts.map +1 -0
  668. package/dist/tween/animation-builder.js +99 -0
  669. package/dist/tween/animation-builder.js.map +1 -0
  670. package/dist/tween/ease/constants.d.ts +13 -0
  671. package/dist/tween/ease/constants.d.ts.map +1 -0
  672. package/dist/tween/ease/constants.js +71 -0
  673. package/dist/tween/ease/constants.js.map +1 -0
  674. package/dist/tween/ease/type.d.ts +2 -0
  675. package/dist/tween/ease/type.d.ts.map +1 -0
  676. package/dist/tween/ease/type.js +2 -0
  677. package/dist/tween/ease/type.js.map +1 -0
  678. package/dist/tween/eases.test.d.ts +2 -0
  679. package/dist/tween/eases.test.d.ts.map +1 -0
  680. package/dist/tween/eases.test.js +91 -0
  681. package/dist/tween/eases.test.js.map +1 -0
  682. package/dist/tween/generator.d.ts +22 -0
  683. package/dist/tween/generator.d.ts.map +1 -0
  684. package/dist/tween/generator.js +2 -0
  685. package/dist/tween/generator.js.map +1 -0
  686. package/dist/tween/index.d.ts +12 -0
  687. package/dist/tween/index.d.ts.map +1 -0
  688. package/dist/tween/index.js +12 -0
  689. package/dist/tween/index.js.map +1 -0
  690. package/dist/tween/lerp.d.ts +11 -0
  691. package/dist/tween/lerp.d.ts.map +1 -0
  692. package/dist/tween/lerp.js +13 -0
  693. package/dist/tween/lerp.js.map +1 -0
  694. package/dist/tween/lerp.test.d.ts +2 -0
  695. package/dist/tween/lerp.test.d.ts.map +1 -0
  696. package/dist/tween/lerp.test.js +22 -0
  697. package/dist/tween/lerp.test.js.map +1 -0
  698. package/dist/tween/parallel.d.ts +23 -0
  699. package/dist/tween/parallel.d.ts.map +1 -0
  700. package/dist/tween/parallel.js +79 -0
  701. package/dist/tween/parallel.js.map +1 -0
  702. package/dist/tween/prepare.d.ts +34 -0
  703. package/dist/tween/prepare.d.ts.map +1 -0
  704. package/dist/tween/prepare.js +52 -0
  705. package/dist/tween/prepare.js.map +1 -0
  706. package/dist/tween/prepare.test.d.ts +2 -0
  707. package/dist/tween/prepare.test.d.ts.map +1 -0
  708. package/dist/tween/prepare.test.js +44 -0
  709. package/dist/tween/prepare.test.js.map +1 -0
  710. package/dist/tween/sequence.d.ts +19 -0
  711. package/dist/tween/sequence.d.ts.map +1 -0
  712. package/dist/tween/sequence.js +22 -0
  713. package/dist/tween/sequence.js.map +1 -0
  714. package/dist/tween/sequence.test.d.ts +2 -0
  715. package/dist/tween/sequence.test.d.ts.map +1 -0
  716. package/dist/tween/sequence.test.js +68 -0
  717. package/dist/tween/sequence.test.js.map +1 -0
  718. package/dist/tween/stepper.d.ts +34 -0
  719. package/dist/tween/stepper.d.ts.map +1 -0
  720. package/dist/tween/stepper.js +4 -0
  721. package/dist/tween/stepper.js.map +1 -0
  722. package/dist/tween/tests/batched-parallel.test.d.ts +2 -0
  723. package/dist/tween/tests/batched-parallel.test.d.ts.map +1 -0
  724. package/dist/tween/tests/batched-parallel.test.js +76 -0
  725. package/dist/tween/tests/batched-parallel.test.js.map +1 -0
  726. package/dist/tween/tests/parallel.test.d.ts +2 -0
  727. package/dist/tween/tests/parallel.test.d.ts.map +1 -0
  728. package/dist/tween/tests/parallel.test.js +129 -0
  729. package/dist/tween/tests/parallel.test.js.map +1 -0
  730. package/dist/tween/tests/realtime.test.d.ts +2 -0
  731. package/dist/tween/tests/realtime.test.d.ts.map +1 -0
  732. package/dist/tween/tests/realtime.test.js +76 -0
  733. package/dist/tween/tests/realtime.test.js.map +1 -0
  734. package/dist/tween/tween.d.ts +18 -0
  735. package/dist/tween/tween.d.ts.map +1 -0
  736. package/dist/tween/tween.js +28 -0
  737. package/dist/tween/tween.js.map +1 -0
  738. package/dist/tween/tween.test.d.ts +2 -0
  739. package/dist/tween/tween.test.d.ts.map +1 -0
  740. package/dist/tween/tween.test.js +38 -0
  741. package/dist/tween/tween.test.js.map +1 -0
  742. package/dist/tween/wait.d.ts +19 -0
  743. package/dist/tween/wait.d.ts.map +1 -0
  744. package/dist/tween/wait.js +25 -0
  745. package/dist/tween/wait.js.map +1 -0
  746. package/dist/tween/wait.test.d.ts +2 -0
  747. package/dist/tween/wait.test.d.ts.map +1 -0
  748. package/dist/tween/wait.test.js +35 -0
  749. package/dist/tween/wait.test.js.map +1 -0
  750. package/dist/util/clamp.d.ts +12 -0
  751. package/dist/util/clamp.d.ts.map +1 -0
  752. package/dist/util/clamp.js +16 -0
  753. package/dist/util/clamp.js.map +1 -0
  754. package/dist/util/clamp.test.d.ts +2 -0
  755. package/dist/util/clamp.test.d.ts.map +1 -0
  756. package/dist/util/clamp.test.js +31 -0
  757. package/dist/util/clamp.test.js.map +1 -0
  758. package/dist/util/index.d.ts +4 -0
  759. package/dist/util/index.d.ts.map +1 -0
  760. package/dist/util/index.js +4 -0
  761. package/dist/util/index.js.map +1 -0
  762. package/dist/util/random.d.ts +16 -0
  763. package/dist/util/random.d.ts.map +1 -0
  764. package/dist/util/random.js +28 -0
  765. package/dist/util/random.js.map +1 -0
  766. package/dist/util/random.test.d.ts +2 -0
  767. package/dist/util/random.test.d.ts.map +1 -0
  768. package/dist/util/random.test.js +42 -0
  769. package/dist/util/random.test.js.map +1 -0
  770. package/dist/util/range.d.ts +12 -0
  771. package/dist/util/range.d.ts.map +1 -0
  772. package/dist/util/range.js +11 -0
  773. package/dist/util/range.js.map +1 -0
  774. package/dist/util/reference.d.ts +15 -0
  775. package/dist/util/reference.d.ts.map +1 -0
  776. package/dist/util/reference.js +20 -0
  777. package/dist/util/reference.js.map +1 -0
  778. package/dist/util/reference.test.d.ts +2 -0
  779. package/dist/util/reference.test.d.ts.map +1 -0
  780. package/dist/util/reference.test.js +32 -0
  781. package/dist/util/reference.test.js.map +1 -0
  782. package/package.json +54 -0
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Pauses the animation timeline for a fixed number of seconds.
3
+ *
4
+ * Yields control back to the runtime each frame until the elapsed time reaches
5
+ * `seconds`, then returns. Use inside {@link sequence} to add gaps between
6
+ * animations, or inside {@link parallel} to delay a branch.
7
+ *
8
+ * @param seconds - How long to wait, in seconds.
9
+ *
10
+ * @example
11
+ * yield* sequence(
12
+ * node.to({ opacity: 1 }, 0.3),
13
+ * wait(0.5),
14
+ * node.to({ opacity: 0 }, 0.3),
15
+ * );
16
+ */
17
+ export function* wait(seconds) {
18
+ let elapsed = 0;
19
+ while (elapsed < seconds) {
20
+ const dt = yield;
21
+ elapsed += dt;
22
+ }
23
+ return;
24
+ }
25
+ //# sourceMappingURL=wait.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.js","sourceRoot":"","sources":["../../src/tween/wait.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,SAAS,CAAC,CAAC,IAAI,CACjB,OAAe;IAEf,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,OAAO,OAAO,GAAG,OAAO,EAAE,CAAC;QACvB,MAAM,EAAE,GAAG,KAAK,CAAC;QACjB,OAAO,IAAI,EAAE,CAAC;IAClB,CAAC;IAED,OAAO;AACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wait.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.test.d.ts","sourceRoot":"","sources":["../../src/tween/wait.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { wait } from '@/tween/wait';
3
+ describe('wait', () => {
4
+ it('completes immediately when duration is 0', () => {
5
+ const gen = wait(0);
6
+ // First next() enters the loop; 0 < 0 is false → returns immediately
7
+ expect(gen.next().done).toBe(true);
8
+ });
9
+ it('completes after enough total dt accumulates', () => {
10
+ const gen = wait(0.5);
11
+ gen.next(); // prime
12
+ let r = gen.next(0.2);
13
+ expect(r.done).toBe(false);
14
+ r = gen.next(0.2);
15
+ expect(r.done).toBe(false);
16
+ r = gen.next(0.2); // 0.6 ≥ 0.5
17
+ expect(r.done).toBe(true);
18
+ });
19
+ it('accepts a single oversized dt to finish in one shot', () => {
20
+ const gen = wait(1.0);
21
+ gen.next();
22
+ const r = gen.next(10);
23
+ expect(r.done).toBe(true);
24
+ });
25
+ it('does not finish before duration is reached', () => {
26
+ const gen = wait(0.5);
27
+ gen.next();
28
+ for (let i = 0; i < 5; i++) {
29
+ // 5 * 0.05 = 0.25 < 0.5 → not done
30
+ const r = gen.next(0.05);
31
+ expect(r.done).toBe(false);
32
+ }
33
+ });
34
+ });
35
+ //# sourceMappingURL=wait.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.test.js","sourceRoot":"","sources":["../../src/tween/wait.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IAClB,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAChD,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,qEAAqE;QACrE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACtB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAc,QAAQ;QACjC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAO,YAAY;QACrC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACtB,GAAG,CAAC,IAAI,EAAE,CAAC;QACX,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACtB,GAAG,CAAC,IAAI,EAAE,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YACzB,mCAAmC;YACnC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Clamps a number between a minimum and maximum value.
3
+ *
4
+ * @param value - The number to clamp.
5
+ * @param min - The lower bound.
6
+ * @param max - The upper bound.
7
+ * @returns The clamped number.
8
+ */
9
+ export declare const clamp: (value: number, min: number, max: number) => number;
10
+ /** Shorthand for `clamp(t, 0, 1)`, commonly used to normalize tween progress. */
11
+ export declare function clamp01(t: number): number;
12
+ //# sourceMappingURL=clamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../src/util/clamp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAE/D,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,UAEhC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Clamps a number between a minimum and maximum value.
3
+ *
4
+ * @param value - The number to clamp.
5
+ * @param min - The lower bound.
6
+ * @param max - The upper bound.
7
+ * @returns The clamped number.
8
+ */
9
+ export const clamp = (value, min, max) => {
10
+ return Math.max(min, Math.min(value, max));
11
+ };
12
+ /** Shorthand for `clamp(t, 0, 1)`, commonly used to normalize tween progress. */
13
+ export function clamp01(t) {
14
+ return clamp(t, 0, 1);
15
+ }
16
+ //# sourceMappingURL=clamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.js","sourceRoot":"","sources":["../../src/util/clamp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAU,EAAE;IACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,iFAAiF;AACjF,MAAM,UAAU,OAAO,CAAC,CAAS;IAC7B,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clamp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.test.d.ts","sourceRoot":"","sources":["../../src/util/clamp.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { clamp, clamp01 } from '@/util/clamp';
3
+ describe('clamp', () => {
4
+ it('returns the value when within range', () => {
5
+ expect(clamp(5, 0, 10)).toBe(5);
6
+ });
7
+ it('clamps to the lower bound', () => {
8
+ expect(clamp(-3, 0, 10)).toBe(0);
9
+ });
10
+ it('clamps to the upper bound', () => {
11
+ expect(clamp(42, 0, 10)).toBe(10);
12
+ });
13
+ it('returns the bound exactly when value equals it', () => {
14
+ expect(clamp(0, 0, 10)).toBe(0);
15
+ expect(clamp(10, 0, 10)).toBe(10);
16
+ });
17
+ it('works with negative ranges', () => {
18
+ expect(clamp(-5, -10, -1)).toBe(-5);
19
+ expect(clamp(0, -10, -1)).toBe(-1);
20
+ });
21
+ });
22
+ describe('clamp01', () => {
23
+ it('passes through values inside [0,1]', () => {
24
+ expect(clamp01(0.5)).toBe(0.5);
25
+ });
26
+ it('clamps below 0 to 0 and above 1 to 1', () => {
27
+ expect(clamp01(-2)).toBe(0);
28
+ expect(clamp01(3)).toBe(1);
29
+ });
30
+ });
31
+ //# sourceMappingURL=clamp.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.test.js","sourceRoot":"","sources":["../../src/util/clamp.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACjC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACjC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './clamp';
2
+ export * from './range';
3
+ export * from './reference';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './clamp';
2
+ export * from './range';
3
+ export * from './reference';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Deterministic pseudo-random number generator based on the mulberry32 algorithm.
3
+ * Produces the same sequence for the same seed, making animations reproducible.
4
+ */
5
+ export declare class SeedGenerator {
6
+ private state;
7
+ constructor(seed: string | number);
8
+ /**
9
+ * Resets the generator to a new seed.
10
+ * String seeds are hashed via djb2 into a 32-bit integer.
11
+ */
12
+ setSeed(seed: string | number): void;
13
+ /** Returns the next pseudo-random float in [0, 1). */
14
+ next(): number;
15
+ }
16
+ //# sourceMappingURL=random.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/util/random.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,KAAK,CAAa;gBAEd,IAAI,EAAE,MAAM,GAAG,MAAM;IAIjC;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAM7B,sDAAsD;IACtD,IAAI;CAMP"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Deterministic pseudo-random number generator based on the mulberry32 algorithm.
3
+ * Produces the same sequence for the same seed, making animations reproducible.
4
+ */
5
+ export class SeedGenerator {
6
+ state = 0;
7
+ constructor(seed) {
8
+ this.setSeed(seed);
9
+ }
10
+ /**
11
+ * Resets the generator to a new seed.
12
+ * String seeds are hashed via djb2 into a 32-bit integer.
13
+ */
14
+ setSeed(seed) {
15
+ this.state = typeof seed === 'string'
16
+ ? seed.split('').reduce((a, b) => { a = ((a << 5) - a) + b.charCodeAt(0); return a & a; }, 0)
17
+ : seed;
18
+ }
19
+ /** Returns the next pseudo-random float in [0, 1). */
20
+ next() {
21
+ this.state |= 0;
22
+ this.state = this.state + 0x6D2B79F5 | 0;
23
+ var t = Math.imul(this.state ^ this.state >>> 15, 1 | this.state);
24
+ t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
25
+ return ((t ^ t >>> 14) >>> 0) / 4294967296;
26
+ }
27
+ }
28
+ //# sourceMappingURL=random.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.js","sourceRoot":"","sources":["../../src/util/random.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,aAAa;IACd,KAAK,GAAW,CAAC,CAAC;IAE1B,YAAY,IAAqB;QAC7B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,IAAqB;QACzB,IAAI,CAAC,KAAK,GAAG,OAAO,IAAI,KAAK,QAAQ;YACjC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAC7F,CAAC,CAAC,IAAI,CAAC;IACf,CAAC;IAED,sDAAsD;IACtD,IAAI;QACA,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC;QAC1D,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAClE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QAC3C,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,UAAU,CAAC;IAC/C,CAAC;CACJ"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=random.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.test.d.ts","sourceRoot":"","sources":["../../src/util/random.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { SeedGenerator } from '@/util/random';
3
+ describe('SeedGenerator', () => {
4
+ it('produces values in the [0,1) range', () => {
5
+ const gen = new SeedGenerator(123);
6
+ for (let i = 0; i < 100; i++) {
7
+ const v = gen.next();
8
+ expect(v).toBeGreaterThanOrEqual(0);
9
+ expect(v).toBeLessThan(1);
10
+ }
11
+ });
12
+ it('is deterministic for the same numeric seed', () => {
13
+ const a = new SeedGenerator(42);
14
+ const b = new SeedGenerator(42);
15
+ for (let i = 0; i < 10; i++) {
16
+ expect(a.next()).toBe(b.next());
17
+ }
18
+ });
19
+ it('is deterministic for the same string seed', () => {
20
+ const a = new SeedGenerator('motion');
21
+ const b = new SeedGenerator('motion');
22
+ expect(a.next()).toBe(b.next());
23
+ });
24
+ it('produces different sequences for different seeds', () => {
25
+ const a = new SeedGenerator(1);
26
+ const b = new SeedGenerator(2);
27
+ expect(a.next()).not.toBe(b.next());
28
+ });
29
+ it('advances state across successive calls', () => {
30
+ const gen = new SeedGenerator(7);
31
+ const first = gen.next();
32
+ const second = gen.next();
33
+ expect(first).not.toBe(second);
34
+ });
35
+ it('reseeding resets the sequence', () => {
36
+ const gen = new SeedGenerator(99);
37
+ const first = gen.next();
38
+ gen.setSeed(99);
39
+ expect(gen.next()).toBe(first);
40
+ });
41
+ });
42
+ //# sourceMappingURL=random.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.test.js","sourceRoot":"","sources":["../../src/util/random.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;YACrB,MAAM,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;YACpC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;QAChC,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1B,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACpC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;QACtC,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;QACtC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QACxD,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAC9C,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QAC1B,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACrC,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACzB,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAChB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generates an array of numbers.
3
+ *
4
+ * - `range(n)` → `[0, 1, …, n-1]`
5
+ * - `range(from, to)` → integers from `from` up to (not including) `to`
6
+ * - `range(from, to, step)` → same but incremented by `step`; a negative
7
+ * `step` counts downward (e.g. `range(5, 0, -1)` → `[5, 4, 3, 2, 1]`)
8
+ */
9
+ export declare function range(length: number): number[];
10
+ export declare function range(from: number, to: number): number[];
11
+ export declare function range(from: number, to: number, step: number): number[];
12
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/util/range.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;AAC/C,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;AACzD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ export function range(fromOrLength, to, step = 1) {
2
+ if (to === undefined) {
3
+ return Array.from({ length: fromOrLength }, (_, i) => i);
4
+ }
5
+ const result = [];
6
+ for (let i = fromOrLength; step > 0 ? i < to : i > to; i += step) {
7
+ result.push(i);
8
+ }
9
+ return result;
10
+ }
11
+ //# sourceMappingURL=range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/util/range.ts"],"names":[],"mappings":"AAWA,MAAM,UAAU,KAAK,CAAC,YAAoB,EAAE,EAAW,EAAE,IAAI,GAAG,CAAC;IAC/D,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;IAC1D,CAAC;IACD,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,KAAK,IAAI,CAAC,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC;QACjE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A callable reference that acts as both getter and setter.
3
+ * - `ref()` → returns the current value (throws if not yet assigned)
4
+ * - `ref(value)` → sets the current value
5
+ */
6
+ export interface Reference<T> {
7
+ (): T;
8
+ (node: T | null): void;
9
+ }
10
+ /**
11
+ * Creates a typed reference holder — analogous to React's `createRef`,
12
+ * but expressed as a single overloaded function rather than a `{ current }` object.
13
+ */
14
+ export declare function createRef<T>(): Reference<T>;
15
+ //# sourceMappingURL=reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/util/reference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB,IAAI,CAAC,CAAC;IACN,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAiB3C"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Creates a typed reference holder — analogous to React's `createRef`,
3
+ * but expressed as a single overloaded function rather than a `{ current }` object.
4
+ */
5
+ export function createRef() {
6
+ let current = null;
7
+ function ref(node) {
8
+ if (node !== undefined) {
9
+ current = node;
10
+ }
11
+ else {
12
+ if (current === null) {
13
+ throw new Error("Reference not assigned yet");
14
+ }
15
+ return current;
16
+ }
17
+ }
18
+ return ref;
19
+ }
20
+ //# sourceMappingURL=reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.js","sourceRoot":"","sources":["../../src/util/reference.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,UAAU,SAAS;IACrB,IAAI,OAAO,GAAa,IAAI,CAAC;IAI7B,SAAS,GAAG,CAAC,IAAe;QACxB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,OAAO,GAAG,IAAI,CAAC;QACnB,CAAC;aAAM,CAAC;YACJ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;YAClD,CAAC;YACD,OAAO,OAAO,CAAC;QACnB,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=reference.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.test.d.ts","sourceRoot":"","sources":["../../src/util/reference.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { createRef } from '@/util/reference';
3
+ describe('createRef', () => {
4
+ it('throws when read before assignment', () => {
5
+ const ref = createRef();
6
+ expect(() => ref()).toThrow(/not assigned/i);
7
+ });
8
+ it('returns the value after it is set', () => {
9
+ const ref = createRef();
10
+ ref('hello');
11
+ expect(ref()).toBe('hello');
12
+ });
13
+ it('overwrites the value on a second set', () => {
14
+ const ref = createRef();
15
+ ref(1);
16
+ ref(2);
17
+ expect(ref()).toBe(2);
18
+ });
19
+ it('stores object references identically', () => {
20
+ const ref = createRef();
21
+ const obj = { id: 7 };
22
+ ref(obj);
23
+ expect(ref()).toBe(obj);
24
+ });
25
+ it('treats null as a cleared reference', () => {
26
+ const ref = createRef();
27
+ ref(5);
28
+ ref(null);
29
+ expect(() => ref()).toThrow(/not assigned/i);
30
+ });
31
+ });
32
+ //# sourceMappingURL=reference.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.test.js","sourceRoot":"","sources":["../../src/util/reference.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,GAAG,GAAG,SAAS,EAAU,CAAC;QAChC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QACzC,MAAM,GAAG,GAAG,SAAS,EAAU,CAAC;QAChC,GAAG,CAAC,OAAO,CAAC,CAAC;QACb,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC5C,MAAM,GAAG,GAAG,SAAS,EAAU,CAAC;QAChC,GAAG,CAAC,CAAC,CAAC,CAAC;QACP,GAAG,CAAC,CAAC,CAAC,CAAC;QACP,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC5C,MAAM,GAAG,GAAG,SAAS,EAAkB,CAAC;QACxC,MAAM,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;QACtB,GAAG,CAAC,GAAG,CAAC,CAAC;QACT,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,MAAM,GAAG,GAAG,SAAS,EAAU,CAAC;QAChC,GAAG,CAAC,CAAC,CAAC,CAAC;QACP,GAAG,CAAC,IAAI,CAAC,CAAC;QACV,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@motion-script/core",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Engine-agnostic animation library for Motion Script: scenes, nodes, signals, tweens, layout, and the JSX runtime.",
6
+ "keywords": [
7
+ "motion-script",
8
+ "motion script",
9
+ "animation"
10
+ ],
11
+ "license": "Apache-2.0",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "dist/index.js",
16
+ "types": "dist/index.d.ts",
17
+ "sideEffects": false,
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./jsx/jsx-runtime": {
27
+ "types": "./dist/jsx/jsx-runtime.d.ts",
28
+ "default": "./dist/jsx/jsx-runtime.js"
29
+ },
30
+ "./jsx/jsx-dev-runtime": {
31
+ "types": "./dist/jsx/jsx-dev-runtime.d.ts",
32
+ "default": "./dist/jsx/jsx-dev-runtime.js"
33
+ }
34
+ },
35
+ "scripts": {
36
+ "build": "eslint . && tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
37
+ "dev": "concurrently \"tsc -b tsconfig.build.json --watch\" \"tsc-alias -p tsconfig.build.json -w\"",
38
+ "clean": "rimraf dist .turbo && tsc -b tsconfig.build.json --clean",
39
+ "test": "vitest",
40
+ "lint": "eslint .",
41
+ "typecheck": "tsc -p tsconfig.json --noEmit"
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "catalog:",
45
+ "concurrently": "catalog:",
46
+ "eslint": "^9.39.4",
47
+ "eslint-import-resolver-typescript": "^4.4.4",
48
+ "eslint-plugin-import-x": "^4.16.1",
49
+ "tsc-alias": "catalog:",
50
+ "typescript": "catalog:",
51
+ "typescript-eslint": "^8.48.0",
52
+ "vitest": "catalog:"
53
+ }
54
+ }