@motionscript/core 0.1.0-alpha.0 → 0.1.0-alpha.10

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 (1278) hide show
  1. package/CHANGELOG.md +356 -0
  2. package/NOTICE +49 -0
  3. package/README.md +29 -10
  4. package/dist/assets/catalog.d.ts +9 -0
  5. package/dist/assets/catalog.d.ts.map +1 -1
  6. package/dist/assets/catalog.js +11 -0
  7. package/dist/assets/catalog.js.map +1 -1
  8. package/dist/assets/errors.d.ts.map +1 -1
  9. package/dist/assets/errors.js +7 -3
  10. package/dist/assets/errors.js.map +1 -1
  11. package/dist/assets/manager.d.ts +26 -1
  12. package/dist/assets/manager.d.ts.map +1 -1
  13. package/dist/assets/manager.js +99 -15
  14. package/dist/assets/manager.js.map +1 -1
  15. package/dist/assets/scope.d.ts +4 -4
  16. package/dist/assets/scope.d.ts.map +1 -1
  17. package/dist/assets/scope.js +1 -1
  18. package/dist/assets/scope.js.map +1 -1
  19. package/dist/attributes/audio/effects/chain.d.ts +73 -0
  20. package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
  21. package/dist/attributes/audio/effects/chain.js +67 -0
  22. package/dist/attributes/audio/effects/chain.js.map +1 -0
  23. package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
  24. package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
  25. package/dist/attributes/audio/{filters → effects}/implementations/echo.js +2 -2
  26. package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
  27. package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
  28. package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
  29. package/dist/attributes/audio/{filters → effects}/implementations/gain.js +2 -2
  30. package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
  31. package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
  32. package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
  33. package/dist/attributes/audio/{filters → effects}/implementations/highpass.js +2 -2
  34. package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
  35. package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
  36. package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
  37. package/dist/attributes/audio/{filters → effects}/implementations/lowpass.js +2 -2
  38. package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
  39. package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
  40. package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
  41. package/dist/attributes/audio/{filters → effects}/implementations/tremolo.js +2 -2
  42. package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
  43. package/dist/attributes/audio/effects/index.d.ts +12 -0
  44. package/dist/attributes/audio/effects/index.d.ts.map +1 -0
  45. package/dist/attributes/audio/effects/index.js +4 -0
  46. package/dist/attributes/audio/effects/index.js.map +1 -0
  47. package/dist/attributes/audio/effects/registry.d.ts +36 -0
  48. package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
  49. package/dist/attributes/audio/effects/registry.js +80 -0
  50. package/dist/attributes/audio/effects/registry.js.map +1 -0
  51. package/dist/attributes/audio/effects/union.d.ts +14 -0
  52. package/dist/attributes/audio/effects/union.d.ts.map +1 -0
  53. package/dist/attributes/audio/effects/union.js +24 -0
  54. package/dist/attributes/audio/effects/union.js.map +1 -0
  55. package/dist/attributes/audio/ramp.d.ts +103 -0
  56. package/dist/attributes/audio/ramp.d.ts.map +1 -0
  57. package/dist/attributes/audio/ramp.js +246 -0
  58. package/dist/attributes/audio/ramp.js.map +1 -0
  59. package/dist/attributes/audio/request.d.ts +52 -13
  60. package/dist/attributes/audio/request.d.ts.map +1 -1
  61. package/dist/attributes/audio/request.js +10 -1
  62. package/dist/attributes/audio/request.js.map +1 -1
  63. package/dist/attributes/audio/schedule.d.ts +26 -24
  64. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  65. package/dist/attributes/audio/schedule.js +51 -30
  66. package/dist/attributes/audio/schedule.js.map +1 -1
  67. package/dist/attributes/audio/sound.d.ts +18 -13
  68. package/dist/attributes/audio/sound.d.ts.map +1 -1
  69. package/dist/attributes/audio/sound.js +13 -11
  70. package/dist/attributes/audio/sound.js.map +1 -1
  71. package/dist/attributes/audio/transition.d.ts +33 -0
  72. package/dist/attributes/audio/transition.d.ts.map +1 -0
  73. package/dist/attributes/audio/transition.js +48 -0
  74. package/dist/attributes/audio/transition.js.map +1 -0
  75. package/dist/attributes/index.d.ts +8 -8
  76. package/dist/attributes/index.d.ts.map +1 -1
  77. package/dist/attributes/index.js +7 -9
  78. package/dist/attributes/index.js.map +1 -1
  79. package/dist/attributes/layout/alignment.js +1 -1
  80. package/dist/attributes/layout/alignment.js.map +1 -1
  81. package/dist/attributes/layout/insets.d.ts +1 -1
  82. package/dist/attributes/layout/insets.js.map +1 -1
  83. package/dist/attributes/layout/matrix2d.d.ts +2 -2
  84. package/dist/attributes/layout/matrix2d.js.map +1 -1
  85. package/dist/attributes/layout/size.d.ts +1 -1
  86. package/dist/attributes/layout/size.js +1 -1
  87. package/dist/attributes/layout/size.js.map +1 -1
  88. package/dist/attributes/layout/space3d.js +1 -1
  89. package/dist/attributes/layout/space3d.js.map +1 -1
  90. package/dist/attributes/properties/decorator.d.ts +56 -12
  91. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  92. package/dist/attributes/properties/decorator.js +59 -19
  93. package/dist/attributes/properties/decorator.js.map +1 -1
  94. package/dist/attributes/properties/inputs.d.ts +1 -1
  95. package/dist/attributes/properties/inputs.js +1 -1
  96. package/dist/attributes/properties/inputs.js.map +1 -1
  97. package/dist/attributes/properties/typed.d.ts +27 -141
  98. package/dist/attributes/properties/typed.d.ts.map +1 -1
  99. package/dist/attributes/properties/typed.js +24 -106
  100. package/dist/attributes/properties/typed.js.map +1 -1
  101. package/dist/attributes/render3d/orbit.d.ts +8 -8
  102. package/dist/attributes/render3d/orbit.js +7 -7
  103. package/dist/attributes/render3d/orbit.js.map +1 -1
  104. package/dist/attributes/shape/corners/corner-radius.d.ts +2 -3
  105. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
  106. package/dist/attributes/shape/corners/corner-radius.js +2 -3
  107. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  108. package/dist/attributes/shape/effects/backdrop.d.ts +4 -4
  109. package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
  110. package/dist/attributes/shape/effects/backdrop.js.map +1 -1
  111. package/dist/attributes/shape/effects/chain.d.ts +117 -522
  112. package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
  113. package/dist/attributes/shape/effects/chain.js +102 -364
  114. package/dist/attributes/shape/effects/chain.js.map +1 -1
  115. package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
  116. package/dist/attributes/shape/effects/effect-data.js.map +1 -1
  117. package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
  118. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
  119. package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
  120. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
  121. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
  122. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
  123. package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
  124. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
  125. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
  126. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
  127. package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
  128. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
  129. package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
  130. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
  131. package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
  132. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
  133. package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
  134. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
  135. package/dist/attributes/shape/effects/implementations/blur.js +13 -5
  136. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
  137. package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
  138. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
  139. package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
  140. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
  141. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
  142. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
  143. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
  144. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
  145. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +98 -28
  146. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
  147. package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
  148. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
  149. package/dist/attributes/shape/effects/implementations/curves.d.ts +21 -7
  150. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
  151. package/dist/attributes/shape/effects/implementations/curves.js +26 -23
  152. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
  153. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
  154. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
  155. package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
  156. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
  157. package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
  158. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
  159. package/dist/attributes/shape/effects/implementations/dither.js +26 -20
  160. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
  161. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +47 -15
  162. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
  163. package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
  164. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  165. package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
  166. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
  167. package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
  168. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
  169. package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
  170. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
  171. package/dist/attributes/shape/effects/implementations/edges.js +17 -14
  172. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
  173. package/dist/attributes/shape/effects/implementations/glass.d.ts +82 -34
  174. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
  175. package/dist/attributes/shape/effects/implementations/glass.js +28 -22
  176. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
  177. package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
  178. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
  179. package/dist/attributes/shape/effects/implementations/glow.js +74 -72
  180. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
  181. package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
  182. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
  183. package/dist/attributes/shape/effects/implementations/grain.js +21 -18
  184. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
  185. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
  186. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
  187. package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
  188. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
  189. package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
  190. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
  191. package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
  192. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
  193. package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
  194. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
  195. package/dist/attributes/shape/effects/implementations/invert.js +15 -10
  196. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
  197. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
  198. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
  199. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
  200. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
  201. package/dist/attributes/shape/effects/implementations/lut.d.ts +35 -8
  202. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
  203. package/dist/attributes/shape/effects/implementations/lut.js +20 -16
  204. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
  205. package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
  206. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
  207. package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
  208. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
  209. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
  210. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
  211. package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
  212. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
  213. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
  214. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
  215. package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
  216. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
  217. package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
  218. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
  219. package/dist/attributes/shape/effects/implementations/outline.js +18 -17
  220. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
  221. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
  222. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
  223. package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
  224. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
  225. package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
  226. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
  227. package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
  228. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
  229. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
  230. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
  231. package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
  232. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
  233. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
  234. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
  235. package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
  236. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
  237. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
  238. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
  239. package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
  240. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
  241. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
  242. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
  243. package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
  244. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
  245. package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
  246. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
  247. package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
  248. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
  249. package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
  250. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
  251. package/dist/attributes/shape/effects/implementations/shader.js +57 -34
  252. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
  253. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
  254. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
  255. package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
  256. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
  257. package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
  258. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
  259. package/dist/attributes/shape/effects/implementations/streak.js +19 -16
  260. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
  261. package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
  262. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
  263. package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
  264. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
  265. package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
  266. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
  267. package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
  268. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
  269. package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
  270. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
  271. package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
  272. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
  273. package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
  274. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
  275. package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
  276. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
  277. package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
  278. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
  279. package/dist/attributes/shape/effects/implementations/wave.js +26 -23
  280. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
  281. package/dist/attributes/shape/effects/index.d.ts +6 -8
  282. package/dist/attributes/shape/effects/index.d.ts.map +1 -1
  283. package/dist/attributes/shape/effects/index.js +1 -1
  284. package/dist/attributes/shape/effects/index.js.map +1 -1
  285. package/dist/attributes/shape/effects/registry.d.ts +34 -6
  286. package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
  287. package/dist/attributes/shape/effects/registry.js +157 -112
  288. package/dist/attributes/shape/effects/registry.js.map +1 -1
  289. package/dist/attributes/shape/effects/spec.d.ts +229 -0
  290. package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
  291. package/dist/attributes/shape/effects/spec.js +178 -0
  292. package/dist/attributes/shape/effects/spec.js.map +1 -0
  293. package/dist/attributes/shape/effects/union.d.ts +2 -6
  294. package/dist/attributes/shape/effects/union.d.ts.map +1 -1
  295. package/dist/attributes/shape/effects/union.js.map +1 -1
  296. package/dist/attributes/shape/fill/chain.d.ts +7 -9
  297. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  298. package/dist/attributes/shape/fill/chain.js +9 -11
  299. package/dist/attributes/shape/fill/chain.js.map +1 -1
  300. package/dist/attributes/shape/fill/color/parser.d.ts +1 -1
  301. package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
  302. package/dist/attributes/shape/fill/color/parser.js +102 -50
  303. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  304. package/dist/attributes/shape/fill/gradient-stops.d.ts +16 -0
  305. package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -0
  306. package/dist/attributes/shape/fill/gradient-stops.js +65 -0
  307. package/dist/attributes/shape/fill/gradient-stops.js.map +1 -0
  308. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -2
  309. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  310. package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -1
  311. package/dist/attributes/shape/fill/implementations/conic-gradient.js +2 -5
  312. package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
  313. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
  314. package/dist/attributes/shape/fill/implementations/fractal-noise.js +2 -10
  315. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
  316. package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
  317. package/dist/attributes/shape/fill/implementations/image.js +5 -4
  318. package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
  319. package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -1
  320. package/dist/attributes/shape/fill/implementations/linear-gradient.js +2 -6
  321. package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
  322. package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -1
  323. package/dist/attributes/shape/fill/implementations/radial-gradient.js +2 -5
  324. package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
  325. package/dist/attributes/shape/fill/implementations/shader.d.ts +28 -27
  326. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
  327. package/dist/attributes/shape/fill/implementations/shader.js +20 -14
  328. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  329. package/dist/attributes/shape/fill/implementations/video.d.ts +1 -1
  330. package/dist/attributes/shape/fill/implementations/video.js +2 -2
  331. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  332. package/dist/attributes/shape/fill/index.d.ts +1 -1
  333. package/dist/attributes/shape/fill/index.d.ts.map +1 -1
  334. package/dist/attributes/shape/fill/index.js.map +1 -1
  335. package/dist/attributes/shape/fill/lerp.d.ts +9 -1
  336. package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
  337. package/dist/attributes/shape/fill/lerp.js +12 -1
  338. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  339. package/dist/attributes/shape/fill/registry.d.ts +1 -2
  340. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  341. package/dist/attributes/shape/fill/registry.js +1 -2
  342. package/dist/attributes/shape/fill/registry.js.map +1 -1
  343. package/dist/attributes/shape/filters/chain.d.ts +7 -17
  344. package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
  345. package/dist/attributes/shape/filters/chain.js +3 -19
  346. package/dist/attributes/shape/filters/chain.js.map +1 -1
  347. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
  348. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
  349. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  350. package/dist/attributes/shape/filters/index.d.ts +1 -1
  351. package/dist/attributes/shape/filters/index.js.map +1 -1
  352. package/dist/attributes/shape/filters/registry.d.ts +3 -3
  353. package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
  354. package/dist/attributes/shape/filters/registry.js +6 -6
  355. package/dist/attributes/shape/filters/registry.js.map +1 -1
  356. package/dist/attributes/shape/filters/union.d.ts +12 -13
  357. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  358. package/dist/attributes/shape/filters/union.js.map +1 -1
  359. package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
  360. package/dist/attributes/shape/path/anchors.js +12 -5
  361. package/dist/attributes/shape/path/anchors.js.map +1 -1
  362. package/dist/attributes/shape/path/morph.d.ts.map +1 -1
  363. package/dist/attributes/shape/path/morph.js +16 -4
  364. package/dist/attributes/shape/path/morph.js.map +1 -1
  365. package/dist/attributes/shape/path/ops.d.ts +1 -2
  366. package/dist/attributes/shape/path/ops.d.ts.map +1 -1
  367. package/dist/attributes/shape/path/ops.js.map +1 -1
  368. package/dist/attributes/shape/shaders/index.d.ts +2 -0
  369. package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
  370. package/dist/attributes/shape/shaders/index.js +2 -0
  371. package/dist/attributes/shape/shaders/index.js.map +1 -1
  372. package/dist/attributes/shape/shaders/language.d.ts +26 -0
  373. package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
  374. package/dist/attributes/shape/shaders/language.js +20 -0
  375. package/dist/attributes/shape/shaders/language.js.map +1 -0
  376. package/dist/attributes/shape/shaders/pack.d.ts +25 -11
  377. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
  378. package/dist/attributes/shape/shaders/pack.js +9 -4
  379. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  380. package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
  381. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
  382. package/dist/attributes/shape/shaders/resolve.js +3 -6
  383. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  384. package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
  385. package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
  386. package/dist/attributes/shape/shaders/uniforms.js +0 -0
  387. package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
  388. package/dist/attributes/shape/stroke/index.d.ts +2 -2
  389. package/dist/attributes/shape/stroke/index.d.ts.map +1 -1
  390. package/dist/attributes/shape/stroke/index.js +1 -1
  391. package/dist/attributes/shape/stroke/index.js.map +1 -1
  392. package/dist/attributes/shape/stroke/stroke.d.ts +27 -6
  393. package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
  394. package/dist/attributes/shape/stroke/stroke.js +22 -2
  395. package/dist/attributes/shape/stroke/stroke.js.map +1 -1
  396. package/dist/attributes/shared/operators.d.ts +2 -2
  397. package/dist/attributes/shared/operators.js.map +1 -1
  398. package/dist/attributes/text/ops.d.ts +6 -0
  399. package/dist/attributes/text/ops.d.ts.map +1 -1
  400. package/dist/attributes/text/ops.js +1 -0
  401. package/dist/attributes/text/ops.js.map +1 -1
  402. package/dist/attributes/text/types.d.ts +2 -3
  403. package/dist/attributes/text/types.d.ts.map +1 -1
  404. package/dist/attributes/text/types.js.map +1 -1
  405. package/dist/browser/chunks/chunk-4BDLFEOC.js +2 -0
  406. package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
  407. package/dist/browser/chunks/chunk-CCGVIR4F.js +3 -0
  408. package/dist/browser/chunks/chunk-CCGVIR4F.js.map +7 -0
  409. package/dist/browser/chunks/chunk-N4WSN5WY.js +13 -0
  410. package/dist/browser/chunks/chunk-N4WSN5WY.js.map +7 -0
  411. package/dist/browser/chunks/chunk-WZSI3GSK.js +6 -0
  412. package/dist/browser/chunks/chunk-WZSI3GSK.js.map +7 -0
  413. package/dist/browser/component.js +1 -1
  414. package/dist/browser/component.js.map +4 -4
  415. package/dist/browser/experimental.js +2 -0
  416. package/dist/browser/experimental.js.map +7 -0
  417. package/dist/browser/index.js +1 -1
  418. package/dist/browser/index.js.map +4 -4
  419. package/dist/browser/manifest.json +5 -5
  420. package/dist/browser/sdk.js +1 -1
  421. package/dist/component.d.ts +10 -19
  422. package/dist/component.d.ts.map +1 -1
  423. package/dist/component.js +10 -19
  424. package/dist/component.js.map +1 -1
  425. package/dist/components/builtins/audio/audio.d.ts +62 -0
  426. package/dist/components/builtins/audio/audio.d.ts.map +1 -0
  427. package/dist/components/builtins/audio/audio.js +38 -0
  428. package/dist/components/builtins/audio/audio.js.map +1 -0
  429. package/dist/components/builtins/geometry/composite.d.ts +93 -0
  430. package/dist/components/builtins/geometry/composite.d.ts.map +1 -0
  431. package/dist/components/builtins/geometry/composite.js +25 -0
  432. package/dist/components/builtins/geometry/composite.js.map +1 -0
  433. package/dist/components/builtins/geometry/geometry.d.ts +921 -0
  434. package/dist/components/builtins/geometry/geometry.d.ts.map +1 -0
  435. package/dist/components/builtins/geometry/geometry.js +107 -0
  436. package/dist/components/builtins/geometry/geometry.js.map +1 -0
  437. package/dist/{nodes → components/builtins}/geometry/shape-outline.d.ts +5 -5
  438. package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
  439. package/dist/{nodes → components/builtins}/geometry/shape-outline.js +4 -15
  440. package/dist/components/builtins/geometry/shape-outline.js.map +1 -0
  441. package/dist/components/builtins/layout/layout.d.ts +186 -0
  442. package/dist/components/builtins/layout/layout.d.ts.map +1 -0
  443. package/dist/components/builtins/layout/layout.js +84 -0
  444. package/dist/components/builtins/layout/layout.js.map +1 -0
  445. package/dist/components/builtins/media/media.d.ts +240 -0
  446. package/dist/components/builtins/media/media.d.ts.map +1 -0
  447. package/dist/components/builtins/media/media.js +143 -0
  448. package/dist/components/builtins/media/media.js.map +1 -0
  449. package/dist/components/builtins/providers/providers.d.ts +47 -0
  450. package/dist/components/builtins/providers/providers.d.ts.map +1 -0
  451. package/dist/components/builtins/providers/providers.js +30 -0
  452. package/dist/components/builtins/providers/providers.js.map +1 -0
  453. package/dist/{nodes → components/builtins}/text/number-format.d.ts +1 -1
  454. package/dist/components/builtins/text/number-format.d.ts.map +1 -0
  455. package/dist/{nodes → components/builtins}/text/number-format.js +1 -1
  456. package/dist/components/builtins/text/number-format.js.map +1 -0
  457. package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
  458. package/dist/components/builtins/text/number-pattern.js.map +1 -0
  459. package/dist/{nodes/node → components/builtins/text}/text-defaults.d.ts +10 -12
  460. package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
  461. package/dist/{nodes/node → components/builtins/text}/text-defaults.js +10 -12
  462. package/dist/components/builtins/text/text-defaults.js.map +1 -0
  463. package/dist/components/builtins/text/text-layout.d.ts +82 -0
  464. package/dist/components/builtins/text/text-layout.d.ts.map +1 -0
  465. package/dist/components/builtins/text/text-layout.js +331 -0
  466. package/dist/components/builtins/text/text-layout.js.map +1 -0
  467. package/dist/components/builtins/text/text.d.ts +409 -0
  468. package/dist/components/builtins/text/text.d.ts.map +1 -0
  469. package/dist/components/builtins/text/text.js +116 -0
  470. package/dist/components/builtins/text/text.js.map +1 -0
  471. package/dist/components/builtins/three/canvas3d.d.ts +245 -0
  472. package/dist/components/builtins/three/canvas3d.d.ts.map +1 -0
  473. package/dist/components/builtins/three/canvas3d.js +21 -0
  474. package/dist/components/builtins/three/canvas3d.js.map +1 -0
  475. package/dist/{nodes → components/builtins}/three/grid-geometry3d.d.ts +2 -2
  476. package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
  477. package/dist/{nodes → components/builtins}/three/grid-geometry3d.js +1 -1
  478. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -0
  479. package/dist/components/builtins/three/three.d.ts +1889 -0
  480. package/dist/components/builtins/three/three.d.ts.map +1 -0
  481. package/dist/components/builtins/three/three.js +305 -0
  482. package/dist/components/builtins/three/three.js.map +1 -0
  483. package/dist/components/factory/api.d.ts +543 -0
  484. package/dist/components/factory/api.d.ts.map +1 -0
  485. package/dist/components/factory/api.js +4 -0
  486. package/dist/components/factory/api.js.map +1 -0
  487. package/dist/components/factory/clip-of.d.ts +5 -0
  488. package/dist/components/factory/clip-of.d.ts.map +1 -0
  489. package/dist/components/factory/clip-of.js +33 -0
  490. package/dist/components/factory/clip-of.js.map +1 -0
  491. package/dist/components/factory/commands-for.d.ts +19 -0
  492. package/dist/components/factory/commands-for.d.ts.map +1 -0
  493. package/dist/components/factory/commands-for.js +5 -0
  494. package/dist/components/factory/commands-for.js.map +1 -0
  495. package/dist/components/factory/component-audio.d.ts +9 -0
  496. package/dist/components/factory/component-audio.d.ts.map +1 -0
  497. package/dist/components/factory/component-audio.js +18 -0
  498. package/dist/components/factory/component-audio.js.map +1 -0
  499. package/dist/components/factory/component2d.d.ts +8 -0
  500. package/dist/components/factory/component2d.d.ts.map +1 -0
  501. package/dist/components/factory/component2d.js +240 -0
  502. package/dist/components/factory/component2d.js.map +1 -0
  503. package/dist/components/factory/component3d.d.ts +9 -0
  504. package/dist/components/factory/component3d.d.ts.map +1 -0
  505. package/dist/components/factory/component3d.js +107 -0
  506. package/dist/components/factory/component3d.js.map +1 -0
  507. package/dist/components/factory/factory.d.ts +66 -0
  508. package/dist/components/factory/factory.d.ts.map +1 -0
  509. package/dist/components/factory/factory.js +347 -0
  510. package/dist/components/factory/factory.js.map +1 -0
  511. package/dist/components/factory/timeline.d.ts +22 -0
  512. package/dist/components/factory/timeline.d.ts.map +1 -0
  513. package/dist/components/factory/timeline.js +128 -0
  514. package/dist/components/factory/timeline.js.map +1 -0
  515. package/dist/components/factory/type-def.d.ts +26 -0
  516. package/dist/components/factory/type-def.d.ts.map +1 -0
  517. package/dist/components/factory/type-def.js +16 -0
  518. package/dist/components/factory/type-def.js.map +1 -0
  519. package/dist/components/factory/types.d.ts +91 -0
  520. package/dist/components/factory/types.d.ts.map +1 -0
  521. package/dist/components/factory/types.js +88 -0
  522. package/dist/components/factory/types.js.map +1 -0
  523. package/dist/components/factory/views.d.ts +121 -0
  524. package/dist/components/factory/views.d.ts.map +1 -0
  525. package/dist/components/factory/views.js +453 -0
  526. package/dist/components/factory/views.js.map +1 -0
  527. package/dist/components/modules/aim.d.ts +30 -0
  528. package/dist/components/modules/aim.d.ts.map +1 -0
  529. package/dist/components/modules/aim.js +39 -0
  530. package/dist/components/modules/aim.js.map +1 -0
  531. package/dist/components/modules/corners.d.ts +13 -0
  532. package/dist/components/modules/corners.d.ts.map +1 -0
  533. package/dist/components/modules/corners.js +12 -0
  534. package/dist/components/modules/corners.js.map +1 -0
  535. package/dist/components/modules/flow.d.ts +26 -0
  536. package/dist/components/modules/flow.d.ts.map +1 -0
  537. package/dist/components/modules/flow.js +57 -0
  538. package/dist/components/modules/flow.js.map +1 -0
  539. package/dist/components/modules/material.d.ts +40 -0
  540. package/dist/components/modules/material.d.ts.map +1 -0
  541. package/dist/components/modules/material.js +75 -0
  542. package/dist/components/modules/material.js.map +1 -0
  543. package/dist/components/modules/paint.d.ts +71 -0
  544. package/dist/components/modules/paint.d.ts.map +1 -0
  545. package/dist/components/modules/paint.js +106 -0
  546. package/dist/components/modules/paint.js.map +1 -0
  547. package/dist/components/modules/shapes.d.ts +31 -0
  548. package/dist/components/modules/shapes.d.ts.map +1 -0
  549. package/dist/components/modules/shapes.js +43 -0
  550. package/dist/components/modules/shapes.js.map +1 -0
  551. package/dist/components/modules/text-layout.d.ts +26 -0
  552. package/dist/components/modules/text-layout.d.ts.map +1 -0
  553. package/dist/components/modules/text-layout.js +57 -0
  554. package/dist/components/modules/text-layout.js.map +1 -0
  555. package/dist/components/modules/text-style.d.ts +48 -0
  556. package/dist/components/modules/text-style.d.ts.map +1 -0
  557. package/dist/components/modules/text-style.js +63 -0
  558. package/dist/components/modules/text-style.js.map +1 -0
  559. package/dist/components/modules/three-entries.d.ts +23 -0
  560. package/dist/components/modules/three-entries.d.ts.map +1 -0
  561. package/dist/components/modules/three-entries.js +41 -0
  562. package/dist/components/modules/three-entries.js.map +1 -0
  563. package/dist/components/modules/view3d.d.ts +59 -0
  564. package/dist/components/modules/view3d.d.ts.map +1 -0
  565. package/dist/components/modules/view3d.js +171 -0
  566. package/dist/components/modules/view3d.js.map +1 -0
  567. package/dist/{nodes/geometry → components/trees/2d}/group-bounds.d.ts +4 -4
  568. package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
  569. package/dist/{nodes/geometry → components/trees/2d}/group-bounds.js +3 -4
  570. package/dist/components/trees/2d/group-bounds.js.map +1 -0
  571. package/dist/{nodes → components/trees}/2d/node-lifecycle.d.ts +2 -2
  572. package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
  573. package/dist/{nodes → components/trees}/2d/node-lifecycle.js +1 -1
  574. package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
  575. package/dist/{nodes → components/trees}/2d/node-motion.d.ts +3 -3
  576. package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
  577. package/dist/{nodes → components/trees}/2d/node-motion.js +1 -1
  578. package/dist/components/trees/2d/node-motion.js.map +1 -0
  579. package/dist/components/trees/2d/node-render.d.ts +36 -0
  580. package/dist/components/trees/2d/node-render.d.ts.map +1 -0
  581. package/dist/{nodes → components/trees}/2d/node-render.js +10 -23
  582. package/dist/components/trees/2d/node-render.js.map +1 -0
  583. package/dist/{nodes → components/trees}/2d/node-space.d.ts +3 -3
  584. package/dist/components/trees/2d/node-space.d.ts.map +1 -0
  585. package/dist/{nodes → components/trees}/2d/node-space.js +4 -4
  586. package/dist/components/trees/2d/node-space.js.map +1 -0
  587. package/dist/{nodes → components/trees}/2d/node-transform.d.ts +2 -2
  588. package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
  589. package/dist/{nodes → components/trees}/2d/node-transform.js +1 -1
  590. package/dist/components/trees/2d/node-transform.js.map +1 -0
  591. package/dist/{nodes → components/trees}/2d/node2d.d.ts +206 -185
  592. package/dist/components/trees/2d/node2d.d.ts.map +1 -0
  593. package/dist/{nodes → components/trees}/2d/node2d.js +296 -324
  594. package/dist/components/trees/2d/node2d.js.map +1 -0
  595. package/dist/components/trees/audio/index.d.ts +2 -0
  596. package/dist/components/trees/audio/index.d.ts.map +1 -0
  597. package/dist/components/trees/audio/index.js +2 -0
  598. package/dist/components/trees/audio/index.js.map +1 -0
  599. package/dist/{nodes → components/trees}/audio/node-audio.d.ts +25 -15
  600. package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
  601. package/dist/{nodes → components/trees}/audio/node-audio.js +30 -35
  602. package/dist/components/trees/audio/node-audio.js.map +1 -0
  603. package/dist/components/trees/index.d.ts +10 -0
  604. package/dist/components/trees/index.d.ts.map +1 -0
  605. package/dist/components/trees/index.js +14 -0
  606. package/dist/components/trees/index.js.map +1 -0
  607. package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
  608. package/dist/components/trees/node/node-editor-state.js.map +1 -0
  609. package/dist/{nodes → components/trees}/node/node-reactive.d.ts +9 -10
  610. package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
  611. package/dist/{nodes → components/trees}/node/node-reactive.js +16 -13
  612. package/dist/components/trees/node/node-reactive.js.map +1 -0
  613. package/dist/{nodes → components/trees}/node/node-time.d.ts +3 -3
  614. package/dist/components/trees/node/node-time.d.ts.map +1 -0
  615. package/dist/{nodes → components/trees}/node/node-time.js +1 -1
  616. package/dist/components/trees/node/node-time.js.map +1 -0
  617. package/dist/{nodes → components/trees}/node/node-walk.d.ts +1 -1
  618. package/dist/components/trees/node/node-walk.d.ts.map +1 -0
  619. package/dist/{nodes → components/trees}/node/node-walk.js +1 -1
  620. package/dist/components/trees/node/node-walk.js.map +1 -0
  621. package/dist/{nodes → components/trees}/node/node.d.ts +46 -82
  622. package/dist/components/trees/node/node.d.ts.map +1 -0
  623. package/dist/{nodes → components/trees}/node/node.js +89 -114
  624. package/dist/components/trees/node/node.js.map +1 -0
  625. package/dist/{nodes/scene → components/trees/root}/canvas2d-node.d.ts +16 -15
  626. package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
  627. package/dist/{nodes/scene → components/trees/root}/canvas2d-node.js +40 -85
  628. package/dist/components/trees/root/canvas2d-node.js.map +1 -0
  629. package/dist/{nodes → components/trees}/three/node3d.d.ts +65 -25
  630. package/dist/components/trees/three/node3d.d.ts.map +1 -0
  631. package/dist/{nodes → components/trees}/three/node3d.js +78 -76
  632. package/dist/components/trees/three/node3d.js.map +1 -0
  633. package/dist/document/audio.d.ts +10 -2
  634. package/dist/document/audio.d.ts.map +1 -1
  635. package/dist/document/audio.js +45 -4
  636. package/dist/document/audio.js.map +1 -1
  637. package/dist/document/builtins.d.ts.map +1 -1
  638. package/dist/document/builtins.js +18 -42
  639. package/dist/document/builtins.js.map +1 -1
  640. package/dist/document/command-traits.d.ts +23 -5
  641. package/dist/document/command-traits.d.ts.map +1 -1
  642. package/dist/document/command-traits.js +72 -10
  643. package/dist/document/command-traits.js.map +1 -1
  644. package/dist/document/deny-globals.d.ts +2 -2
  645. package/dist/document/deny-globals.js +2 -2
  646. package/dist/document/deny-globals.js.map +1 -1
  647. package/dist/document/diff.d.ts.map +1 -1
  648. package/dist/document/diff.js +3 -3
  649. package/dist/document/diff.js.map +1 -1
  650. package/dist/document/doc-index.d.ts +2 -2
  651. package/dist/document/doc-index.d.ts.map +1 -1
  652. package/dist/document/doc-index.js +3 -3
  653. package/dist/document/doc-index.js.map +1 -1
  654. package/dist/document/expression/compile.d.ts.map +1 -1
  655. package/dist/document/expression/compile.js +8 -5
  656. package/dist/document/expression/compile.js.map +1 -1
  657. package/dist/document/expression/index.d.ts +1 -1
  658. package/dist/document/expression/index.js +1 -1
  659. package/dist/document/expression/index.js.map +1 -1
  660. package/dist/document/expression/ops.js +2 -2
  661. package/dist/document/expression/ops.js.map +1 -1
  662. package/dist/document/expression/parse.d.ts.map +1 -1
  663. package/dist/document/expression/parse.js +15 -6
  664. package/dist/document/expression/parse.js.map +1 -1
  665. package/dist/document/expression/refs.d.ts +1 -1
  666. package/dist/document/expression/refs.js +1 -1
  667. package/dist/document/expression/refs.js.map +1 -1
  668. package/dist/document/expression/walk.d.ts.map +1 -1
  669. package/dist/document/expression/walk.js +2 -1
  670. package/dist/document/expression/walk.js.map +1 -1
  671. package/dist/document/index.d.ts +10 -1
  672. package/dist/document/index.d.ts.map +1 -1
  673. package/dist/document/index.js +6 -1
  674. package/dist/document/index.js.map +1 -1
  675. package/dist/document/migrate.d.ts +70 -0
  676. package/dist/document/migrate.d.ts.map +1 -0
  677. package/dist/document/migrate.js +202 -0
  678. package/dist/document/migrate.js.map +1 -0
  679. package/dist/document/missing-node.d.ts +27 -0
  680. package/dist/document/missing-node.d.ts.map +1 -0
  681. package/dist/document/missing-node.js +48 -0
  682. package/dist/document/missing-node.js.map +1 -0
  683. package/dist/document/node-decorator.d.ts +14 -10
  684. package/dist/document/node-decorator.d.ts.map +1 -1
  685. package/dist/document/node-decorator.js +14 -10
  686. package/dist/document/node-decorator.js.map +1 -1
  687. package/dist/document/node-descriptor.d.ts +32 -3
  688. package/dist/document/node-descriptor.d.ts.map +1 -1
  689. package/dist/document/node-descriptor.js.map +1 -1
  690. package/dist/document/placement.d.ts +71 -0
  691. package/dist/document/placement.d.ts.map +1 -0
  692. package/dist/document/placement.js +83 -0
  693. package/dist/document/placement.js.map +1 -0
  694. package/dist/document/project.d.ts +4 -2
  695. package/dist/document/project.d.ts.map +1 -1
  696. package/dist/document/project.js +1 -0
  697. package/dist/document/project.js.map +1 -1
  698. package/dist/document/prop-evolution.d.ts +51 -0
  699. package/dist/document/prop-evolution.d.ts.map +1 -0
  700. package/dist/document/prop-evolution.js +83 -0
  701. package/dist/document/prop-evolution.js.map +1 -0
  702. package/dist/document/registry.d.ts +71 -44
  703. package/dist/document/registry.d.ts.map +1 -1
  704. package/dist/document/registry.js +94 -35
  705. package/dist/document/registry.js.map +1 -1
  706. package/dist/document/settled-index.d.ts +57 -0
  707. package/dist/document/settled-index.d.ts.map +1 -0
  708. package/dist/document/settled-index.js +264 -0
  709. package/dist/document/settled-index.js.map +1 -0
  710. package/dist/document/timeline-patch.d.ts +4 -0
  711. package/dist/document/timeline-patch.d.ts.map +1 -1
  712. package/dist/document/timeline-patch.js +28 -3
  713. package/dist/document/timeline-patch.js.map +1 -1
  714. package/dist/document/timeline.d.ts +145 -20
  715. package/dist/document/timeline.d.ts.map +1 -1
  716. package/dist/document/timeline.js +478 -80
  717. package/dist/document/timeline.js.map +1 -1
  718. package/dist/document/types.d.ts +30 -44
  719. package/dist/document/types.d.ts.map +1 -1
  720. package/dist/document/types.js +2 -2
  721. package/dist/document/types.js.map +1 -1
  722. package/dist/document/validate.d.ts +20 -8
  723. package/dist/document/validate.d.ts.map +1 -1
  724. package/dist/document/validate.js +195 -52
  725. package/dist/document/validate.js.map +1 -1
  726. package/dist/document/vocabulary.d.ts +28 -0
  727. package/dist/document/vocabulary.d.ts.map +1 -0
  728. package/dist/document/vocabulary.js +42 -0
  729. package/dist/document/vocabulary.js.map +1 -0
  730. package/dist/experimental.d.ts +82 -0
  731. package/dist/experimental.d.ts.map +1 -0
  732. package/dist/experimental.js +34 -0
  733. package/dist/experimental.js.map +1 -0
  734. package/dist/index.d.ts +11 -2
  735. package/dist/index.d.ts.map +1 -1
  736. package/dist/index.js +11 -2
  737. package/dist/index.js.map +1 -1
  738. package/dist/layout/bounds.d.ts +0 -1
  739. package/dist/layout/bounds.d.ts.map +1 -1
  740. package/dist/layout/bounds.js.map +1 -1
  741. package/dist/layout/flex.d.ts +4 -2
  742. package/dist/layout/flex.d.ts.map +1 -1
  743. package/dist/layout/flex.js +27 -11
  744. package/dist/layout/flex.js.map +1 -1
  745. package/dist/layout/ops.d.ts +6 -0
  746. package/dist/layout/ops.d.ts.map +1 -1
  747. package/dist/layout/ops.js +6 -0
  748. package/dist/layout/ops.js.map +1 -1
  749. package/dist/layout/types.d.ts +1 -1
  750. package/dist/layout/types.js.map +1 -1
  751. package/dist/platform/audio-sink.d.ts +2 -2
  752. package/dist/platform/audio-sink.d.ts.map +1 -1
  753. package/dist/platform/audio-sink.js.map +1 -1
  754. package/dist/platform/exporter.d.ts +26 -8
  755. package/dist/platform/exporter.d.ts.map +1 -1
  756. package/dist/platform/exporter.js.map +1 -1
  757. package/dist/platform/index.d.ts +1 -1
  758. package/dist/platform/index.d.ts.map +1 -1
  759. package/dist/platform/index.js.map +1 -1
  760. package/dist/platform/storage-adapter.d.ts +12 -6
  761. package/dist/platform/storage-adapter.d.ts.map +1 -1
  762. package/dist/platform/storage-adapter.js +4 -0
  763. package/dist/platform/storage-adapter.js.map +1 -1
  764. package/dist/platform/ticker.d.ts +6 -0
  765. package/dist/platform/ticker.d.ts.map +1 -1
  766. package/dist/platform/ticker.js +6 -0
  767. package/dist/platform/ticker.js.map +1 -1
  768. package/dist/project/tree.d.ts +3 -3
  769. package/dist/project/tree.d.ts.map +1 -1
  770. package/dist/project/tree.js.map +1 -1
  771. package/dist/props/host.d.ts +6 -1
  772. package/dist/props/host.d.ts.map +1 -1
  773. package/dist/props/host.js +3 -1
  774. package/dist/props/host.js.map +1 -1
  775. package/dist/props/layout.d.ts +29 -0
  776. package/dist/props/layout.d.ts.map +1 -0
  777. package/dist/props/layout.js +84 -0
  778. package/dist/props/layout.js.map +1 -0
  779. package/dist/props/slot.d.ts +1 -1
  780. package/dist/props/slot.js +1 -1
  781. package/dist/props/slot.js.map +1 -1
  782. package/dist/renamed-scene-names.d.ts +17 -0
  783. package/dist/renamed-scene-names.d.ts.map +1 -0
  784. package/dist/renamed-scene-names.js +9 -0
  785. package/dist/renamed-scene-names.js.map +1 -0
  786. package/dist/render/canvas-render-context2d.d.ts +19 -3
  787. package/dist/render/canvas-render-context2d.d.ts.map +1 -1
  788. package/dist/render/canvas-render-context2d.js +20 -0
  789. package/dist/render/canvas-render-context2d.js.map +1 -1
  790. package/dist/render/clip-contains.js +1 -1
  791. package/dist/render/clip-contains.js.map +1 -1
  792. package/dist/render/clip.d.ts +1 -1
  793. package/dist/render/clip.js +1 -1
  794. package/dist/render/clip.js.map +1 -1
  795. package/dist/render/descriptors/rect.js.map +1 -1
  796. package/dist/render/descriptors/shape.d.ts +12 -0
  797. package/dist/render/descriptors/shape.d.ts.map +1 -1
  798. package/dist/render/descriptors/shape.js.map +1 -1
  799. package/dist/render/descriptors/text.d.ts +15 -9
  800. package/dist/render/descriptors/text.d.ts.map +1 -1
  801. package/dist/render/descriptors/text.js +11 -5
  802. package/dist/render/descriptors/text.js.map +1 -1
  803. package/dist/render/descriptors/transform.d.ts +2 -2
  804. package/dist/render/descriptors/transform.d.ts.map +1 -1
  805. package/dist/render/descriptors/transform.js.map +1 -1
  806. package/dist/render/graphics2d.d.ts +3 -3
  807. package/dist/render/graphics2d.d.ts.map +1 -1
  808. package/dist/render/graphics2d.js +1 -1
  809. package/dist/render/graphics2d.js.map +1 -1
  810. package/dist/render/index.d.ts +2 -0
  811. package/dist/render/index.d.ts.map +1 -1
  812. package/dist/render/index.js +1 -0
  813. package/dist/render/index.js.map +1 -1
  814. package/dist/render/render-context2d.d.ts +8 -8
  815. package/dist/render/render-context2d.d.ts.map +1 -1
  816. package/dist/render/render-context2d.js.map +1 -1
  817. package/dist/render/render-issue.d.ts +39 -0
  818. package/dist/render/render-issue.d.ts.map +1 -0
  819. package/dist/render/render-issue.js +29 -0
  820. package/dist/render/render-issue.js.map +1 -0
  821. package/dist/render/surface.d.ts +2 -2
  822. package/dist/render/surface.js.map +1 -1
  823. package/dist/render3d/bounds3d.d.ts.map +1 -1
  824. package/dist/render3d/bounds3d.js +4 -2
  825. package/dist/render3d/bounds3d.js.map +1 -1
  826. package/dist/render3d/builders.d.ts +1 -1
  827. package/dist/render3d/builders.js +1 -1
  828. package/dist/render3d/builders.js.map +1 -1
  829. package/dist/render3d/camera.d.ts +6 -0
  830. package/dist/render3d/camera.d.ts.map +1 -1
  831. package/dist/render3d/camera.js +5 -3
  832. package/dist/render3d/camera.js.map +1 -1
  833. package/dist/render3d/fill3d.d.ts +2 -9
  834. package/dist/render3d/fill3d.d.ts.map +1 -1
  835. package/dist/render3d/fill3d.js +2 -13
  836. package/dist/render3d/fill3d.js.map +1 -1
  837. package/dist/render3d/geometry.d.ts +8 -1
  838. package/dist/render3d/geometry.d.ts.map +1 -1
  839. package/dist/render3d/geometry.js.map +1 -1
  840. package/dist/render3d/graphics3d.d.ts +21 -23
  841. package/dist/render3d/graphics3d.d.ts.map +1 -1
  842. package/dist/render3d/graphics3d.js +85 -34
  843. package/dist/render3d/graphics3d.js.map +1 -1
  844. package/dist/render3d/index.d.ts +1 -1
  845. package/dist/render3d/index.js +1 -1
  846. package/dist/render3d/index.js.map +1 -1
  847. package/dist/render3d/inert.d.ts +14 -0
  848. package/dist/render3d/inert.d.ts.map +1 -0
  849. package/dist/render3d/inert.js +62 -0
  850. package/dist/render3d/inert.js.map +1 -0
  851. package/dist/render3d/material.d.ts +10 -5
  852. package/dist/render3d/material.d.ts.map +1 -1
  853. package/dist/render3d/material.js.map +1 -1
  854. package/dist/render3d/resources.d.ts +2 -2
  855. package/dist/render3d/resources.js +2 -2
  856. package/dist/render3d/resources.js.map +1 -1
  857. package/dist/render3d/scene-settings.d.ts +23 -4
  858. package/dist/render3d/scene-settings.d.ts.map +1 -1
  859. package/dist/render3d/scene-settings.js.map +1 -1
  860. package/dist/render3d/scene3d.d.ts +12 -1
  861. package/dist/render3d/scene3d.d.ts.map +1 -1
  862. package/dist/render3d/scene3d.js +40 -7
  863. package/dist/render3d/scene3d.js.map +1 -1
  864. package/dist/render3d/texture.d.ts +11 -2
  865. package/dist/render3d/texture.d.ts.map +1 -1
  866. package/dist/render3d/texture.js +13 -0
  867. package/dist/render3d/texture.js.map +1 -1
  868. package/dist/render3d/transform.d.ts +1 -1
  869. package/dist/render3d/transform.js.map +1 -1
  870. package/dist/render3d/vector3.d.ts +20 -3
  871. package/dist/render3d/vector3.d.ts.map +1 -1
  872. package/dist/render3d/vector3.js +29 -2
  873. package/dist/render3d/vector3.js.map +1 -1
  874. package/dist/render3d/walk.d.ts +1 -1
  875. package/dist/render3d/walk.d.ts.map +1 -1
  876. package/dist/render3d/walk.js +5 -1
  877. package/dist/render3d/walk.js.map +1 -1
  878. package/dist/runtime/asset-refine.d.ts +1 -1
  879. package/dist/runtime/asset-refine.d.ts.map +1 -1
  880. package/dist/runtime/asset-refine.js +3 -2
  881. package/dist/runtime/asset-refine.js.map +1 -1
  882. package/dist/runtime/asset-timeline.d.ts +10 -0
  883. package/dist/runtime/asset-timeline.d.ts.map +1 -1
  884. package/dist/runtime/asset-timeline.js.map +1 -1
  885. package/dist/runtime/asset-update.d.ts.map +1 -1
  886. package/dist/runtime/asset-update.js +8 -1
  887. package/dist/runtime/asset-update.js.map +1 -1
  888. package/dist/runtime/audio-index.d.ts +0 -11
  889. package/dist/runtime/audio-index.d.ts.map +1 -1
  890. package/dist/runtime/audio-index.js +0 -19
  891. package/dist/runtime/audio-index.js.map +1 -1
  892. package/dist/runtime/clip-instance.d.ts +13 -6
  893. package/dist/runtime/clip-instance.d.ts.map +1 -1
  894. package/dist/runtime/clip-instance.js +34 -12
  895. package/dist/runtime/clip-instance.js.map +1 -1
  896. package/dist/runtime/clip-store.d.ts +20 -3
  897. package/dist/runtime/clip-store.d.ts.map +1 -1
  898. package/dist/runtime/clip-store.js +132 -27
  899. package/dist/runtime/clip-store.js.map +1 -1
  900. package/dist/runtime/engine.d.ts +13 -6
  901. package/dist/runtime/engine.d.ts.map +1 -1
  902. package/dist/runtime/engine.js +6 -3
  903. package/dist/runtime/engine.js.map +1 -1
  904. package/dist/runtime/frame-time.d.ts +31 -0
  905. package/dist/runtime/frame-time.d.ts.map +1 -0
  906. package/dist/runtime/frame-time.js +29 -0
  907. package/dist/runtime/frame-time.js.map +1 -0
  908. package/dist/runtime/index.d.ts +1 -0
  909. package/dist/runtime/index.d.ts.map +1 -1
  910. package/dist/runtime/index.js +1 -0
  911. package/dist/runtime/index.js.map +1 -1
  912. package/dist/runtime/node-picking.d.ts +45 -4
  913. package/dist/runtime/node-picking.d.ts.map +1 -1
  914. package/dist/runtime/node-picking.js +127 -13
  915. package/dist/runtime/node-picking.js.map +1 -1
  916. package/dist/runtime/node-picking3d.d.ts +14 -6
  917. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  918. package/dist/runtime/node-picking3d.js +10 -2
  919. package/dist/runtime/node-picking3d.js.map +1 -1
  920. package/dist/runtime/placement.d.ts.map +1 -1
  921. package/dist/runtime/placement.js +4 -5
  922. package/dist/runtime/placement.js.map +1 -1
  923. package/dist/runtime/playback-controller.d.ts +32 -3
  924. package/dist/runtime/playback-controller.d.ts.map +1 -1
  925. package/dist/runtime/playback-controller.js +78 -11
  926. package/dist/runtime/playback-controller.js.map +1 -1
  927. package/dist/runtime/session.d.ts +16 -10
  928. package/dist/runtime/session.d.ts.map +1 -1
  929. package/dist/runtime/session.js +23 -8
  930. package/dist/runtime/session.js.map +1 -1
  931. package/dist/runtime/state-evaluator.d.ts +2 -2
  932. package/dist/runtime/state-evaluator.d.ts.map +1 -1
  933. package/dist/runtime/state-evaluator.js +4 -3
  934. package/dist/runtime/state-evaluator.js.map +1 -1
  935. package/dist/runtime/text-geometry.d.ts +2 -2
  936. package/dist/runtime/text-geometry.d.ts.map +1 -1
  937. package/dist/runtime/text-geometry.js +6 -3
  938. package/dist/runtime/text-geometry.js.map +1 -1
  939. package/dist/sdk/index.d.ts +70 -38
  940. package/dist/sdk/index.d.ts.map +1 -1
  941. package/dist/sdk/index.js +71 -46
  942. package/dist/sdk/index.js.map +1 -1
  943. package/dist/tween/command-decorator.d.ts +21 -8
  944. package/dist/tween/command-decorator.d.ts.map +1 -1
  945. package/dist/tween/command-decorator.js +12 -23
  946. package/dist/tween/command-decorator.js.map +1 -1
  947. package/dist/tween/command.d.ts +13 -1
  948. package/dist/tween/command.d.ts.map +1 -1
  949. package/dist/tween/command.js +14 -0
  950. package/dist/tween/command.js.map +1 -1
  951. package/dist/tween/ease/constants.d.ts.map +1 -1
  952. package/dist/tween/ease/constants.js +8 -5
  953. package/dist/tween/ease/constants.js.map +1 -1
  954. package/dist/tween/ease/curve.d.ts.map +1 -1
  955. package/dist/tween/ease/curve.js +4 -3
  956. package/dist/tween/ease/curve.js.map +1 -1
  957. package/dist/tween/ease/describe.d.ts +17 -0
  958. package/dist/tween/ease/describe.d.ts.map +1 -0
  959. package/dist/tween/ease/describe.js +41 -0
  960. package/dist/tween/ease/describe.js.map +1 -0
  961. package/dist/tween/ease/spec.d.ts +31 -0
  962. package/dist/tween/ease/spec.d.ts.map +1 -0
  963. package/dist/tween/ease/spec.js +51 -0
  964. package/dist/tween/ease/spec.js.map +1 -0
  965. package/dist/tween/index.d.ts +3 -1
  966. package/dist/tween/index.d.ts.map +1 -1
  967. package/dist/tween/index.js +2 -1
  968. package/dist/tween/index.js.map +1 -1
  969. package/dist/tween/loop.d.ts +1 -1
  970. package/dist/tween/loop.js +1 -1
  971. package/dist/tween/loop.js.map +1 -1
  972. package/dist/tween/prepare.d.ts +3 -3
  973. package/dist/tween/prepare.js +3 -3
  974. package/dist/tween/prepare.js.map +1 -1
  975. package/dist/util/metrics.d.ts +1 -1
  976. package/dist/util/metrics.js +1 -1
  977. package/dist/util/metrics.js.map +1 -1
  978. package/dist/util/reference.d.ts +6 -6
  979. package/dist/util/reference.js.map +1 -1
  980. package/package.json +8 -10
  981. package/dist/attributes/audio/filters/chain.d.ts +0 -113
  982. package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
  983. package/dist/attributes/audio/filters/chain.js +0 -104
  984. package/dist/attributes/audio/filters/chain.js.map +0 -1
  985. package/dist/attributes/audio/filters/curve.d.ts +0 -152
  986. package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
  987. package/dist/attributes/audio/filters/curve.js +0 -249
  988. package/dist/attributes/audio/filters/curve.js.map +0 -1
  989. package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
  990. package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
  991. package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
  992. package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
  993. package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
  994. package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
  995. package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
  996. package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
  997. package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
  998. package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
  999. package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
  1000. package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
  1001. package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
  1002. package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
  1003. package/dist/attributes/audio/filters/implementations/speed.js +0 -6
  1004. package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
  1005. package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
  1006. package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
  1007. package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
  1008. package/dist/attributes/audio/filters/index.d.ts +0 -22
  1009. package/dist/attributes/audio/filters/index.d.ts.map +0 -1
  1010. package/dist/attributes/audio/filters/index.js +0 -8
  1011. package/dist/attributes/audio/filters/index.js.map +0 -1
  1012. package/dist/attributes/audio/filters/registry.d.ts +0 -36
  1013. package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
  1014. package/dist/attributes/audio/filters/registry.js +0 -82
  1015. package/dist/attributes/audio/filters/registry.js.map +0 -1
  1016. package/dist/attributes/audio/filters/union.d.ts +0 -18
  1017. package/dist/attributes/audio/filters/union.d.ts.map +0 -1
  1018. package/dist/attributes/audio/filters/union.js +0 -28
  1019. package/dist/attributes/audio/filters/union.js.map +0 -1
  1020. package/dist/attributes/shape/effects/implementations/displace.d.ts +0 -48
  1021. package/dist/attributes/shape/effects/implementations/displace.d.ts.map +0 -1
  1022. package/dist/attributes/shape/effects/implementations/displace.js +0 -30
  1023. package/dist/attributes/shape/effects/implementations/displace.js.map +0 -1
  1024. package/dist/attributes/shape/effects/implementations/god-rays.d.ts +0 -28
  1025. package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +0 -1
  1026. package/dist/attributes/shape/effects/implementations/god-rays.js +0 -26
  1027. package/dist/attributes/shape/effects/implementations/god-rays.js.map +0 -1
  1028. package/dist/attributes/shape/effects/implementations/texture.d.ts +0 -28
  1029. package/dist/attributes/shape/effects/implementations/texture.d.ts.map +0 -1
  1030. package/dist/attributes/shape/effects/implementations/texture.js +0 -25
  1031. package/dist/attributes/shape/effects/implementations/texture.js.map +0 -1
  1032. package/dist/attributes/shape/effects/implementations/trails.d.ts +0 -41
  1033. package/dist/attributes/shape/effects/implementations/trails.d.ts.map +0 -1
  1034. package/dist/attributes/shape/effects/implementations/trails.js +0 -22
  1035. package/dist/attributes/shape/effects/implementations/trails.js.map +0 -1
  1036. package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
  1037. package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
  1038. package/dist/attributes/shape/sksl-uniforms.js +0 -0
  1039. package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
  1040. package/dist/browser/chunks/chunk-2T3HXSC2.js +0 -2
  1041. package/dist/browser/chunks/chunk-2T3HXSC2.js.map +0 -7
  1042. package/dist/browser/chunks/chunk-P3XQCHDW.js +0 -16
  1043. package/dist/browser/chunks/chunk-P3XQCHDW.js.map +0 -7
  1044. package/dist/browser/chunks/chunk-VJQMKHGQ.js +0 -3
  1045. package/dist/browser/chunks/chunk-VJQMKHGQ.js.map +0 -7
  1046. package/dist/browser/jsx-jsx-dev-runtime.js +0 -2
  1047. package/dist/browser/jsx-jsx-dev-runtime.js.map +0 -7
  1048. package/dist/browser/jsx-jsx-runtime.js +0 -2
  1049. package/dist/browser/jsx-jsx-runtime.js.map +0 -7
  1050. package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
  1051. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  1052. package/dist/jsx/jsx-dev-runtime.js +0 -3
  1053. package/dist/jsx/jsx-dev-runtime.js.map +0 -1
  1054. package/dist/jsx/jsx-runtime.d.ts +0 -19
  1055. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  1056. package/dist/jsx/jsx-runtime.js +0 -16
  1057. package/dist/jsx/jsx-runtime.js.map +0 -1
  1058. package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
  1059. package/dist/nodes/2d/node-lifecycle.js.map +0 -1
  1060. package/dist/nodes/2d/node-motion.d.ts.map +0 -1
  1061. package/dist/nodes/2d/node-motion.js.map +0 -1
  1062. package/dist/nodes/2d/node-render.d.ts +0 -44
  1063. package/dist/nodes/2d/node-render.d.ts.map +0 -1
  1064. package/dist/nodes/2d/node-render.js.map +0 -1
  1065. package/dist/nodes/2d/node-space.d.ts.map +0 -1
  1066. package/dist/nodes/2d/node-space.js.map +0 -1
  1067. package/dist/nodes/2d/node-transform.d.ts.map +0 -1
  1068. package/dist/nodes/2d/node-transform.js.map +0 -1
  1069. package/dist/nodes/2d/node2d.d.ts.map +0 -1
  1070. package/dist/nodes/2d/node2d.js.map +0 -1
  1071. package/dist/nodes/2d/paint-node.d.ts +0 -115
  1072. package/dist/nodes/2d/paint-node.d.ts.map +0 -1
  1073. package/dist/nodes/2d/paint-node.js +0 -190
  1074. package/dist/nodes/2d/paint-node.js.map +0 -1
  1075. package/dist/nodes/audio/audio-bus.d.ts +0 -28
  1076. package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
  1077. package/dist/nodes/audio/audio-bus.js +0 -33
  1078. package/dist/nodes/audio/audio-bus.js.map +0 -1
  1079. package/dist/nodes/audio/index.d.ts +0 -4
  1080. package/dist/nodes/audio/index.d.ts.map +0 -1
  1081. package/dist/nodes/audio/index.js +0 -4
  1082. package/dist/nodes/audio/index.js.map +0 -1
  1083. package/dist/nodes/audio/node-audio.d.ts.map +0 -1
  1084. package/dist/nodes/audio/node-audio.js.map +0 -1
  1085. package/dist/nodes/audio/sound-node.d.ts +0 -40
  1086. package/dist/nodes/audio/sound-node.d.ts.map +0 -1
  1087. package/dist/nodes/audio/sound-node.js +0 -68
  1088. package/dist/nodes/audio/sound-node.js.map +0 -1
  1089. package/dist/nodes/geometry/boolean-node.d.ts +0 -28
  1090. package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
  1091. package/dist/nodes/geometry/boolean-node.js +0 -81
  1092. package/dist/nodes/geometry/boolean-node.js.map +0 -1
  1093. package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
  1094. package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
  1095. package/dist/nodes/geometry/bounds-shape-node.js +0 -181
  1096. package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
  1097. package/dist/nodes/geometry/box-path-node.d.ts +0 -89
  1098. package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
  1099. package/dist/nodes/geometry/box-path-node.js +0 -116
  1100. package/dist/nodes/geometry/box-path-node.js.map +0 -1
  1101. package/dist/nodes/geometry/dot-grid-node.d.ts +0 -105
  1102. package/dist/nodes/geometry/dot-grid-node.d.ts.map +0 -1
  1103. package/dist/nodes/geometry/dot-grid-node.js +0 -142
  1104. package/dist/nodes/geometry/dot-grid-node.js.map +0 -1
  1105. package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
  1106. package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
  1107. package/dist/nodes/geometry/ellipse-node.js +0 -45
  1108. package/dist/nodes/geometry/ellipse-node.js.map +0 -1
  1109. package/dist/nodes/geometry/grid-lines.d.ts +0 -101
  1110. package/dist/nodes/geometry/grid-lines.d.ts.map +0 -1
  1111. package/dist/nodes/geometry/grid-lines.js +0 -128
  1112. package/dist/nodes/geometry/grid-lines.js.map +0 -1
  1113. package/dist/nodes/geometry/grid-pattern-node.d.ts +0 -58
  1114. package/dist/nodes/geometry/grid-pattern-node.d.ts.map +0 -1
  1115. package/dist/nodes/geometry/grid-pattern-node.js +0 -172
  1116. package/dist/nodes/geometry/grid-pattern-node.js.map +0 -1
  1117. package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
  1118. package/dist/nodes/geometry/group-bounds.js.map +0 -1
  1119. package/dist/nodes/geometry/line-grid-node.d.ts +0 -62
  1120. package/dist/nodes/geometry/line-grid-node.d.ts.map +0 -1
  1121. package/dist/nodes/geometry/line-grid-node.js +0 -127
  1122. package/dist/nodes/geometry/line-grid-node.js.map +0 -1
  1123. package/dist/nodes/geometry/line-node.d.ts +0 -58
  1124. package/dist/nodes/geometry/line-node.d.ts.map +0 -1
  1125. package/dist/nodes/geometry/line-node.js +0 -123
  1126. package/dist/nodes/geometry/line-node.js.map +0 -1
  1127. package/dist/nodes/geometry/mask-node.d.ts +0 -33
  1128. package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
  1129. package/dist/nodes/geometry/mask-node.js +0 -66
  1130. package/dist/nodes/geometry/mask-node.js.map +0 -1
  1131. package/dist/nodes/geometry/path-node.d.ts +0 -26
  1132. package/dist/nodes/geometry/path-node.d.ts.map +0 -1
  1133. package/dist/nodes/geometry/path-node.js +0 -52
  1134. package/dist/nodes/geometry/path-node.js.map +0 -1
  1135. package/dist/nodes/geometry/polygon-node.d.ts +0 -26
  1136. package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
  1137. package/dist/nodes/geometry/polygon-node.js +0 -47
  1138. package/dist/nodes/geometry/polygon-node.js.map +0 -1
  1139. package/dist/nodes/geometry/polygram-node.d.ts +0 -33
  1140. package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
  1141. package/dist/nodes/geometry/polygram-node.js +0 -52
  1142. package/dist/nodes/geometry/polygram-node.js.map +0 -1
  1143. package/dist/nodes/geometry/rect-node.d.ts +0 -38
  1144. package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
  1145. package/dist/nodes/geometry/rect-node.js +0 -56
  1146. package/dist/nodes/geometry/rect-node.js.map +0 -1
  1147. package/dist/nodes/geometry/shape-node.d.ts +0 -71
  1148. package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
  1149. package/dist/nodes/geometry/shape-node.js +0 -140
  1150. package/dist/nodes/geometry/shape-node.js.map +0 -1
  1151. package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
  1152. package/dist/nodes/geometry/shape-outline.js.map +0 -1
  1153. package/dist/nodes/geometry/viewport-pattern-node.d.ts +0 -39
  1154. package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +0 -1
  1155. package/dist/nodes/geometry/viewport-pattern-node.js +0 -79
  1156. package/dist/nodes/geometry/viewport-pattern-node.js.map +0 -1
  1157. package/dist/nodes/index.d.ts +0 -46
  1158. package/dist/nodes/index.d.ts.map +0 -1
  1159. package/dist/nodes/index.js +0 -54
  1160. package/dist/nodes/index.js.map +0 -1
  1161. package/dist/nodes/layout/camera-node.d.ts +0 -71
  1162. package/dist/nodes/layout/camera-node.d.ts.map +0 -1
  1163. package/dist/nodes/layout/camera-node.js +0 -118
  1164. package/dist/nodes/layout/camera-node.js.map +0 -1
  1165. package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
  1166. package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
  1167. package/dist/nodes/layout/orbit-camera-node.js +0 -118
  1168. package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
  1169. package/dist/nodes/layout/rotated-box.d.ts +0 -20
  1170. package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
  1171. package/dist/nodes/layout/rotated-box.js +0 -76
  1172. package/dist/nodes/layout/rotated-box.js.map +0 -1
  1173. package/dist/nodes/media/video-node.d.ts +0 -229
  1174. package/dist/nodes/media/video-node.d.ts.map +0 -1
  1175. package/dist/nodes/media/video-node.js +0 -348
  1176. package/dist/nodes/media/video-node.js.map +0 -1
  1177. package/dist/nodes/node/declare-paints.d.ts +0 -19
  1178. package/dist/nodes/node/declare-paints.d.ts.map +0 -1
  1179. package/dist/nodes/node/declare-paints.js +0 -27
  1180. package/dist/nodes/node/declare-paints.js.map +0 -1
  1181. package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
  1182. package/dist/nodes/node/node-editor-state.js.map +0 -1
  1183. package/dist/nodes/node/node-reactive.d.ts.map +0 -1
  1184. package/dist/nodes/node/node-reactive.js.map +0 -1
  1185. package/dist/nodes/node/node-time.d.ts.map +0 -1
  1186. package/dist/nodes/node/node-time.js.map +0 -1
  1187. package/dist/nodes/node/node-walk.d.ts.map +0 -1
  1188. package/dist/nodes/node/node-walk.js.map +0 -1
  1189. package/dist/nodes/node/node.d.ts.map +0 -1
  1190. package/dist/nodes/node/node.js.map +0 -1
  1191. package/dist/nodes/node/text-defaults.d.ts.map +0 -1
  1192. package/dist/nodes/node/text-defaults.js.map +0 -1
  1193. package/dist/nodes/scene/canvas2d-node.d.ts.map +0 -1
  1194. package/dist/nodes/scene/canvas2d-node.js.map +0 -1
  1195. package/dist/nodes/scene/provider-node.d.ts +0 -47
  1196. package/dist/nodes/scene/provider-node.d.ts.map +0 -1
  1197. package/dist/nodes/scene/provider-node.js +0 -63
  1198. package/dist/nodes/scene/provider-node.js.map +0 -1
  1199. package/dist/nodes/scene/theme-provider-node.d.ts +0 -29
  1200. package/dist/nodes/scene/theme-provider-node.d.ts.map +0 -1
  1201. package/dist/nodes/scene/theme-provider-node.js +0 -43
  1202. package/dist/nodes/scene/theme-provider-node.js.map +0 -1
  1203. package/dist/nodes/text/default-text-style-node.d.ts +0 -100
  1204. package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
  1205. package/dist/nodes/text/default-text-style-node.js +0 -140
  1206. package/dist/nodes/text/default-text-style-node.js.map +0 -1
  1207. package/dist/nodes/text/number-format.d.ts.map +0 -1
  1208. package/dist/nodes/text/number-format.js.map +0 -1
  1209. package/dist/nodes/text/number-node.d.ts +0 -94
  1210. package/dist/nodes/text/number-node.d.ts.map +0 -1
  1211. package/dist/nodes/text/number-node.js +0 -86
  1212. package/dist/nodes/text/number-node.js.map +0 -1
  1213. package/dist/nodes/text/number-pattern.d.ts.map +0 -1
  1214. package/dist/nodes/text/number-pattern.js.map +0 -1
  1215. package/dist/nodes/text/richtext-node.d.ts +0 -73
  1216. package/dist/nodes/text/richtext-node.d.ts.map +0 -1
  1217. package/dist/nodes/text/richtext-node.js +0 -144
  1218. package/dist/nodes/text/richtext-node.js.map +0 -1
  1219. package/dist/nodes/text/text-base.d.ts +0 -135
  1220. package/dist/nodes/text/text-base.d.ts.map +0 -1
  1221. package/dist/nodes/text/text-base.js +0 -504
  1222. package/dist/nodes/text/text-base.js.map +0 -1
  1223. package/dist/nodes/text/text-node.d.ts +0 -84
  1224. package/dist/nodes/text/text-node.d.ts.map +0 -1
  1225. package/dist/nodes/text/text-node.js +0 -188
  1226. package/dist/nodes/text/text-node.js.map +0 -1
  1227. package/dist/nodes/text/text-selection.d.ts +0 -125
  1228. package/dist/nodes/text/text-selection.d.ts.map +0 -1
  1229. package/dist/nodes/text/text-selection.js +0 -209
  1230. package/dist/nodes/text/text-selection.js.map +0 -1
  1231. package/dist/nodes/three/camera-nodes.d.ts +0 -91
  1232. package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
  1233. package/dist/nodes/three/camera-nodes.js +0 -71
  1234. package/dist/nodes/three/camera-nodes.js.map +0 -1
  1235. package/dist/nodes/three/canvas3d-node.d.ts +0 -270
  1236. package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
  1237. package/dist/nodes/three/canvas3d-node.js +0 -438
  1238. package/dist/nodes/three/canvas3d-node.js.map +0 -1
  1239. package/dist/nodes/three/drawable-nodes.d.ts +0 -159
  1240. package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
  1241. package/dist/nodes/three/drawable-nodes.js +0 -254
  1242. package/dist/nodes/three/drawable-nodes.js.map +0 -1
  1243. package/dist/nodes/three/environment-nodes.d.ts +0 -100
  1244. package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
  1245. package/dist/nodes/three/environment-nodes.js +0 -134
  1246. package/dist/nodes/three/environment-nodes.js.map +0 -1
  1247. package/dist/nodes/three/geometry-nodes.d.ts +0 -197
  1248. package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
  1249. package/dist/nodes/three/geometry-nodes.js +0 -322
  1250. package/dist/nodes/three/geometry-nodes.js.map +0 -1
  1251. package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
  1252. package/dist/nodes/three/grid-geometry3d.js.map +0 -1
  1253. package/dist/nodes/three/group3d.d.ts +0 -23
  1254. package/dist/nodes/three/group3d.d.ts.map +0 -1
  1255. package/dist/nodes/three/group3d.js +0 -21
  1256. package/dist/nodes/three/group3d.js.map +0 -1
  1257. package/dist/nodes/three/light-nodes.d.ts +0 -120
  1258. package/dist/nodes/three/light-nodes.d.ts.map +0 -1
  1259. package/dist/nodes/three/light-nodes.js +0 -173
  1260. package/dist/nodes/three/light-nodes.js.map +0 -1
  1261. package/dist/nodes/three/mesh3d.d.ts +0 -117
  1262. package/dist/nodes/three/mesh3d.d.ts.map +0 -1
  1263. package/dist/nodes/three/mesh3d.js +0 -147
  1264. package/dist/nodes/three/mesh3d.js.map +0 -1
  1265. package/dist/nodes/three/node3d.d.ts.map +0 -1
  1266. package/dist/nodes/three/node3d.js.map +0 -1
  1267. package/dist/render/descriptors/latex.d.ts +0 -6
  1268. package/dist/render/descriptors/latex.d.ts.map +0 -1
  1269. package/dist/render/descriptors/latex.js +0 -2
  1270. package/dist/render/descriptors/latex.js.map +0 -1
  1271. package/dist/tween/seekable.d.ts +0 -70
  1272. package/dist/tween/seekable.d.ts.map +0 -1
  1273. package/dist/tween/seekable.js +0 -122
  1274. package/dist/tween/seekable.js.map +0 -1
  1275. /package/dist/{nodes → components/builtins}/text/number-pattern.d.ts +0 -0
  1276. /package/dist/{nodes → components/builtins}/text/number-pattern.js +0 -0
  1277. /package/dist/{nodes → components/trees}/node/node-editor-state.d.ts +0 -0
  1278. /package/dist/{nodes → components/trees}/node/node-editor-state.js +0 -0
@@ -1,2 +1,2 @@
1
- import{A as P,B as b,C as j,D as z,E as B,F as C,G as D,H as E,I as F,J as G,m as s,n as x,o as d,p as k,q as h,r as S,s as v,t as M,u as _,v as g,w,x as y,y as q,z as A}from"./chunks/chunk-VJQMKHGQ.js";function a(e,r){return{offset:e,part:r}}function H(e){return{duration:e,_stepper:()=>{let n=0;return{seek:p=>{n=p},advance:p=>(n+=p,n>=e)}}}}function I(...e){let r=0;return u(e.map(n=>{let p=a(r,n);return r+=n.duration,p}))}function J(...e){return u(e.map(r=>a(0,r)))}function K(e,r){let n=t=>{r(e>0?Math.min(Math.max(t/e,0),1):1)};return{duration:e,_stepper:()=>{let t=0;return{seek:o=>{t=o,n(o)},advance:o=>(t+=o,n(t),t>=e)}}}}function u(e){let r=e.reduce((p,t)=>Math.max(p,t.offset+t.part.duration),0);return{duration:r,_stepper:()=>{let p=e.map(f=>f.part._stepper()),t=0,o=f=>{for(let l=0;l<e.length;l++){let{offset:c,part:i}=e[l],m=Math.min(Math.max(f-c,0),i.duration);p[l].seek(m)}};return{seek:f=>{t=f,o(f)},advance:f=>(t+=f,o(t),t>=r)}}}}function N(e,r,n){let p=o=>{for(let f of o??[])r.fill(f.fill)},t=e;r.fill(t.fill??[]),r.fill(t.overlay??[]),p(t.stroke);for(let o of t.shadow??[])r.fill(o.fill);for(let o of n?.fills??[])r.fill(o);for(let o of n?.strokes??[])p(o)}export{g as MAX_FRACTION_DIGITS,_ as NUMBER_NODE_FORMATS,S as NUMBER_PATTERNS,x as STAR_DEFAULT_POINTS,s as STAR_DEFAULT_RATIO,a as at,z as cameraOrbit,u as compose,N as declarePaints,K as drive,G as enterBudget,v as formatNumber,h as hasShapeOutline,H as hold,E as hostTextFamily,q as lerpColor3D,P as lerpCount,A as lerpFinite,F as niceStep,w as numberNodePattern,B as orbitPosition,C as orbitProps,M as patternFor,y as resolveColor3D,I as sequence,D as setHostTextFamily,k as shapeOutline,d as shapeOutlinePixels,j as snapFlag,b as snapValue,J as together};
1
+ import{a as p,b as t,c as x,d as a,e as b,f as c,g as v,h as w}from"./chunks/chunk-4BDLFEOC.js";import{A as q,B as s,C as u,n as o,o as r,p as e,q as f,r as m,s as d,t as g,u as h,v as i,w as j,x as k,y as l,z as n}from"./chunks/chunk-CCGVIR4F.js";export{b as MAX_FRACTION_DIGITS,a as NUMBER_NODE_FORMATS,p as NUMBER_PATTERNS,r as STAR_DEFAULT_POINTS,o as STAR_DEFAULT_RATIO,q as cameraOrbit,w as enterBudget,t as formatNumber,m as hasShapeOutline,g as hostTextFamily,i as lerpColor3D,k as lerpCount,j as lerpFinite,v as niceStep,c as numberNodePattern,s as orbitPosition,u as orbitProps,x as patternFor,h as resolveColor3D,d as setHostTextFamily,f as shapeOutline,e as shapeOutlinePixels,n as snapFlag,l as snapValue};
2
2
  //# sourceMappingURL=component.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/tween/seekable.ts", "../../src/nodes/node/declare-paints.ts"],
4
- "sourcesContent": ["import type { Steppable, TweenStepper } from \"./stepper\"\n\n/**\n * Choreography that can be **asked** what it looks like at a time.\n *\n * A node's entrance is usually a stagger: markers landing one after another, a\n * caption following them, a legend after that. Written as a generator — `yield*\n * parallel(...)` over per-item `wait` + `to` — the offsets exist only while it\n * runs, so the only way to know what it looks like 0.4s in is to run it from\n * zero. That is what makes a chart scene fall back to replay-based scrubbing.\n *\n * The offsets are static, though. Nothing about a stagger needs to be discovered\n * by running it. {@link compose} keeps the same parts at the same offsets and\n * hands back something seekable, so a host can jump straight to a time.\n *\n * Each part writes to **its own node**, which is why this is not\n * `commandSequence` from motion-script: that composes one node's props by\n * merging `Partial<P>`, and an axis entrance is a dozen nodes moving at once\n * with nothing to merge. Composing steppers instead lets each part write where\n * it already writes.\n */\n\n/** Something seekable that knows how long it runs. */\nexport interface Seekable extends Steppable {\n readonly duration: number\n}\n\n/** A part, and how far into the composite it starts. */\nexport interface Placed {\n offset: number\n part: Seekable\n}\n\n/** Sugar for {@link compose}: `at(0.2, node.to(...))`. */\nexport function at(offset: number, part: Seekable): Placed {\n return { offset, part }\n}\n\n/**\n * A part that writes nothing for `seconds` — the seekable `wait`.\n *\n * What the no-op branch of a command returns. A command's duration is the slot\n * the timeline lays out for it and the length its parallel siblings are timed\n * against, so a call that happens to have nothing to do still has to take its\n * time; returning something shorter would pull the rest of the scene forward.\n */\nexport function hold(seconds: number): Seekable {\n const makeStepper = (): TweenStepper => {\n let elapsed = 0\n return {\n seek: (s: number) => {\n elapsed = s\n },\n advance: (dt: number): boolean => {\n elapsed += dt\n return elapsed >= seconds\n },\n }\n }\n\n return {\n duration: seconds,\n _stepper: makeStepper,\n }\n}\n\n/** Run `parts` end to end, each starting where the previous one finished. */\nexport function sequence(...parts: Seekable[]): Seekable {\n let cursor = 0\n return compose(\n parts.map((part) => {\n const placed = at(cursor, part)\n cursor += part.duration\n return placed\n })\n )\n}\n\n/** Run `parts` together, all starting at the composite's own start. */\nexport function together(...parts: Seekable[]): Seekable {\n return compose(parts.map((part) => at(0, part)))\n}\n\n/**\n * A seekable `tween`: calls `apply(t)` with `t` running 0 → 1 over `seconds`.\n *\n * The escape hatch for state a `to` cannot reach — a plain field, an array\n * element, anything that is not one of the node's own reactive props. That is\n * most of what the chart commands were using `tween()` for, and `tween()` is a\n * generator, so it was also most of what kept them un-drivable.\n *\n * `apply` **must be a pure function of `t`**. It is called for any `t`, in any\n * order, more than once for the same value, and — unlike a generator's body — it\n * is not run once per frame in sequence. Accumulating into what it writes (`x +=\n * …`) rather than assigning from `t` is the one way to misuse this, and it will\n * look right playing forwards and drift the moment anything scrubs.\n */\nexport function drive(\n seconds: number,\n apply: (t: number) => void\n): Seekable {\n const at = (elapsed: number): void => {\n apply(seconds > 0 ? Math.min(Math.max(elapsed / seconds, 0), 1) : 1)\n }\n\n const makeStepper = (): TweenStepper => {\n let elapsed = 0\n return {\n seek: (s: number) => {\n elapsed = s\n at(s)\n },\n advance: (dt: number): boolean => {\n elapsed += dt\n at(elapsed)\n return elapsed >= seconds\n },\n }\n }\n\n return {\n duration: seconds,\n _stepper: makeStepper,\n }\n}\n\n/**\n * Combine placed parts into one seekable whole.\n *\n * Every part is seeked on every evaluation, not just the ones that have started:\n * a part still ahead of the playhead is held at its own zero, which is the state\n * it was prepared against and therefore the state that should precede it.\n * Skipping it would leave whatever a *later* evaluation wrote sitting there when\n * the playhead came back.\n */\nexport function compose(parts: Placed[]): Seekable {\n const duration = parts.reduce(\n (max, p) => Math.max(max, p.offset + p.part.duration),\n 0\n )\n\n const makeStepper = (): TweenStepper => {\n // Prepared once. Preparing is what snapshots each part's `from` off its live\n // node, so doing it per seek would make the answer depend on where the\n // playhead came from rather than on the time asked for.\n const steppers = parts.map((p) => p.part._stepper())\n let elapsed = 0\n\n const applyAt = (seconds: number): void => {\n for (let i = 0; i < parts.length; i++) {\n const { offset, part } = parts[i]\n const local = Math.min(Math.max(seconds - offset, 0), part.duration)\n steppers[i].seek(local)\n }\n }\n\n return {\n seek: (seconds: number) => {\n elapsed = seconds\n applyAt(seconds)\n },\n advance: (dt: number): boolean => {\n elapsed += dt\n applyAt(elapsed)\n return elapsed >= duration\n },\n }\n }\n\n return {\n duration,\n _stepper: makeStepper,\n }\n}\n", "import type { AssetScope } from \"@/assets/scope\"\nimport type { FillResolved } from \"@/attributes/shape/fill/union\"\nimport type { ShadowResolved } from \"@/attributes/shape/shadow/shadow\"\nimport type { StrokeResolved } from \"@/attributes/shape/stroke/stroke\"\n\n/** The paints a node computes rather than stores, which no convention can find. */\nexport interface ExtraPaints {\n fills?: readonly FillResolved[][]\n strokes?: readonly StrokeResolved[][]\n}\n\n/**\n * Declare the assets of a node's paint props.\n *\n * `PaintNode` does this for the slots it owns. The chart and diagram internals\n * extend `Node` directly — they draw a raw `Graphics` and want none of a shape's\n * clip or layout — and so inherit no such declaration while still carrying\n * `fill`/`stroke`/`shadow` props of their own; an undeclared asset there is an\n * `AssetNotLoadedError` the moment the renderer reaches for it.\n */\nexport function declarePaints(node: object, assets: AssetScope, extra?: ExtraPaints): void {\n const stroked = (strokes: readonly StrokeResolved[] | undefined): void => {\n for (const stroke of strokes ?? []) assets.fill(stroke.fill)\n }\n\n // Conventional prop names, each already resolved by its `@property` mapper.\n const held = node as {\n fill?: FillResolved[]\n overlay?: FillResolved[]\n stroke?: StrokeResolved[]\n shadow?: ShadowResolved[]\n }\n assets.fill(held.fill ?? [])\n assets.fill(held.overlay ?? [])\n stroked(held.stroke)\n for (const shadow of held.shadow ?? []) assets.fill(shadow.fill)\n\n for (const fills of extra?.fills ?? []) assets.fill(fills)\n for (const strokes of extra?.strokes ?? []) stroked(strokes)\n}\n"],
5
- "mappings": "2MAkCM,SAAUA,EAAGC,EAAgBC,EAAc,CAC/C,MAAO,CAAE,OAAAD,EAAQ,KAAAC,CAAI,CACvB,CAUM,SAAUC,EAAKC,EAAe,CAclC,MAAO,CACL,SAAUA,EACV,SAfkB,IAAmB,CACrC,IAAIC,EAAU,EACd,MAAO,CACL,KAAOC,GAAa,CAClBD,EAAUC,CACZ,EACA,QAAUC,IACRF,GAAWE,EACJF,GAAWD,GAGxB,EAMF,CAGM,SAAUI,KAAYC,EAAiB,CAC3C,IAAIC,EAAS,EACb,OAAOC,EACLF,EAAM,IAAKP,GAAQ,CACjB,IAAMU,EAASZ,EAAGU,EAAQR,CAAI,EAC9B,OAAAQ,GAAUR,EAAK,SACRU,CACT,CAAC,CAAC,CAEN,CAGM,SAAUC,KAAYJ,EAAiB,CAC3C,OAAOE,EAAQF,EAAM,IAAKP,GAASF,EAAG,EAAGE,CAAI,CAAC,CAAC,CACjD,CAgBM,SAAUY,EACdV,EACAW,EAA0B,CAE1B,IAAMf,EAAMK,GAAyB,CACnCU,EAAMX,EAAU,EAAI,KAAK,IAAI,KAAK,IAAIC,EAAUD,EAAS,CAAC,EAAG,CAAC,EAAI,CAAC,CACrE,EAiBA,MAAO,CACL,SAAUA,EACV,SAjBkB,IAAmB,CACrC,IAAIC,EAAU,EACd,MAAO,CACL,KAAOC,GAAa,CAClBD,EAAUC,EACVN,EAAGM,CAAC,CACN,EACA,QAAUC,IACRF,GAAWE,EACXP,EAAGK,CAAO,EACHA,GAAWD,GAGxB,EAMF,CAWM,SAAUO,EAAQF,EAAe,CACrC,IAAMO,EAAWP,EAAM,OACrB,CAACQ,EAAKC,IAAM,KAAK,IAAID,EAAKC,EAAE,OAASA,EAAE,KAAK,QAAQ,EACpD,CAAC,EA+BH,MAAO,CACL,SAAAF,EACA,SA9BkB,IAAmB,CAIrC,IAAMG,EAAWV,EAAM,IAAKS,GAAMA,EAAE,KAAK,SAAQ,CAAE,EAC/Cb,EAAU,EAERe,EAAWhB,GAAyB,CACxC,QAASiB,EAAI,EAAGA,EAAIZ,EAAM,OAAQY,IAAK,CACrC,GAAM,CAAE,OAAApB,EAAQ,KAAAC,CAAI,EAAKO,EAAMY,CAAC,EAC1BC,EAAQ,KAAK,IAAI,KAAK,IAAIlB,EAAUH,EAAQ,CAAC,EAAGC,EAAK,QAAQ,EACnEiB,EAASE,CAAC,EAAE,KAAKC,CAAK,CACxB,CACF,EAEA,MAAO,CACL,KAAOlB,GAAmB,CACxBC,EAAUD,EACVgB,EAAQhB,CAAO,CACjB,EACA,QAAUG,IACRF,GAAWE,EACXa,EAAQf,CAAO,EACRA,GAAWW,GAGxB,EAMF,CCzJM,SAAUO,EAAcC,EAAcC,EAAoBC,EAAmB,CACjF,IAAMC,EAAWC,GAAwD,CACvE,QAAWC,KAAUD,GAAW,CAAA,EAAIH,EAAO,KAAKI,EAAO,IAAI,CAC7D,EAGMC,EAAON,EAMbC,EAAO,KAAKK,EAAK,MAAQ,CAAA,CAAE,EAC3BL,EAAO,KAAKK,EAAK,SAAW,CAAA,CAAE,EAC9BH,EAAQG,EAAK,MAAM,EACnB,QAAWC,KAAUD,EAAK,QAAU,CAAA,EAAIL,EAAO,KAAKM,EAAO,IAAI,EAE/D,QAAWC,KAASN,GAAO,OAAS,CAAA,EAAID,EAAO,KAAKO,CAAK,EACzD,QAAWJ,KAAWF,GAAO,SAAW,CAAA,EAAIC,EAAQC,CAAO,CAC7D",
6
- "names": ["at", "offset", "part", "hold", "seconds", "elapsed", "s", "dt", "sequence", "parts", "cursor", "compose", "placed", "together", "drive", "apply", "duration", "max", "p", "steppers", "applyAt", "i", "local", "declarePaints", "node", "assets", "extra", "stroked", "strokes", "stroke", "held", "shadow", "fills"]
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
7
  }
@@ -0,0 +1,2 @@
1
+ import{$d as a,Ce as e,Ie as d,Je as m,Ke as p,Nd as o,Od as r,Rd as s,Vd as n,Ve as f,Wd as t,_e as _,he as c,le as x,xe as i}from"./chunks/chunk-WZSI3GSK.js";import"./chunks/chunk-CCGVIR4F.js";var v=o,w=m,S=p,h=t,C=r,D=e;export{x as Aim,s as Corners,n as Flow,f as Material,a as Paint,c as Shapes,i as TextLayout,d as TextStyle,C as Types,_ as View3D,h as commandsFor,v as component2d,S as component3d,w as componentAudio,D as provides};
2
+ //# sourceMappingURL=experimental.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/experimental.ts"],
4
+ "sourcesContent": ["/**\n * @deprecated A duplicate of the stable authoring surface, kept until the next\n * major: import from `@motionscript/sdk` (or `@motionscript/core/sdk`), where\n * `TextStyle` is `Typeface` and `Corners` is `Shapes.corners` / `Shapes.rect`.\n */\nimport { component2d as _component2d } from \"@/components/factory/component2d\";\nimport { componentAudio as _componentAudio } from \"@/components/factory/component-audio\";\nimport { component3d as _component3d } from \"@/components/factory/component3d\";\nimport { commandsFor as _commandsFor } from \"@/components/factory/commands-for\";\nimport { Types as _Types } from \"@/components/factory/types\";\nimport { provides as _provides } from \"@/components/factory/api\";\n\n// Re-export statements cannot carry `@deprecated`, so the values are re-declared.\n/** @deprecated Import `component2d` from `@motionscript/sdk`. */\nexport const component2d = _component2d;\n/** @deprecated Import `componentAudio` from `@motionscript/sdk`. */\nexport const componentAudio = _componentAudio;\n/** @deprecated Import `component3d` from `@motionscript/sdk`. */\nexport const component3d = _component3d;\n/** @deprecated Import `commandsFor` from `@motionscript/sdk`. */\nexport const commandsFor = _commandsFor;\n/** @deprecated Import `Types` from `@motionscript/sdk`. */\nexport const Types = _Types;\n/** @deprecated Import `provides` from `@motionscript/sdk`. */\nexport const provides = _provides;\n\nexport type { Attribute, EntryOptions, NumberOptions, TextOptions } from \"@/components/factory/types\";\nexport type {\n Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader,\n Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, RenderContext2D, SoundOptions, StateSpec,\n Timeline, Type, Values, Writes, Merge, BuiltNode, CallProps3D, Placement3DProps, RenderContext3D, Transform3DState, Handle, LayoutBox, NodeFrame,\n} from \"@/components/factory/api\";\nexport * as Paint from \"@/components/modules/paint\";\nexport * as Flow from \"@/components/modules/flow\";\nexport * as Corners from \"@/components/modules/corners\";\nexport * as Shapes from \"@/components/modules/shapes\";\nexport * as Aim from \"@/components/modules/aim\";\nexport * as TextStyle from \"@/components/modules/text-style\";\nexport * as TextLayout from \"@/components/modules/text-layout\";\nexport * as Material from \"@/components/modules/material\";\nexport * as View3D from \"@/components/modules/view3d\";\n"],
5
+ "mappings": "mMAcO,IAAMA,EAAcA,EAEdC,EAAiBA,EAEjBC,EAAcA,EAEdC,EAAcA,EAEdC,EAAQA,EAERC,EAAWA",
6
+ "names": ["component2d", "componentAudio", "component3d", "commandsFor", "Types", "provides"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{$ as be,$a as Ct,$b as Cr,$c as vs,$d as Uo,$e as Ui,$f as ba,A as se,Aa as st,Ab as dr,Ac as as,Ad as io,Ae as ai,Af as ia,Ag as tn,B as oe,Ba as ot,Bb as pr,Bc as ns,Bd as ao,Be as ni,Bf as aa,Bg as w,C as ie,Ca as it,Cb as hr,Cc as ds,Cd as no,Ce as di,Cf as na,Cg as rn,D as ae,Da as at,Db as fr,Dc as g,Dd as po,De as pi,Df as da,Dg as y,E as ne,Ea as nt,Eb as cr,Ec as ps,Ed as ho,Ee as hi,Ef as pa,Eg as _,F as de,Fa as dt,Fb as mr,Fc as hs,Fd as fo,Fe as fi,Ff as ha,Fg as h,G as pe,Ga as pt,Gb as lr,Gc as fs,Gd as co,Ge as ci,Gf as fa,Gg as sn,H as he,Ha as gt,Hb as gr,Hc as cs,Hd as mo,He as mi,Hf as ca,Hg as on,I as fe,Ia as xt,Ib as xr,Ic as ms,Id as lo,Ie as li,If as ma,Ig as an,J as ce,Ja as ut,Jb as ur,Jc as ls,Jd as go,Je as gi,Jf as la,Jg as nn,K as me,Ka as wt,Kb as wr,Kc as gs,Kd as xo,Ke as xi,Kf as ga,Kg as hn,L as le,La as yt,Lb as yr,Lc as xs,Ld as uo,Le as ui,Lf as xa,Lg as fn,M as ge,Ma as _t,Mb as _r,Mc as us,Md as wo,Me as wi,Mf as ua,Mg as cn,N as xe,Na as At,Nb as Ar,Nc as ws,Nd as yo,Ne as yi,Nf as wa,O as ue,Oa as Ft,Ob as Fr,Oc as ys,Od as _o,Oe as _i,Of as ya,P as we,Pa as Pt,Pb as Pr,Pc as _s,Pd as Ao,Pe as Ai,Pf as _a,Q as ye,Qa as Lt,Qb as Lr,Qc as As,Qd as Fo,Qe as Fi,Qf as Aa,R as _e,Ra as St,Rb as Sr,Rc as Fs,Rd as Po,Re as Pi,Rf as Fa,S as Ae,Sa as Nt,Sb as Nr,Sc as Ps,Sd as Lo,Se as Li,Sf as Pa,T as Fe,Ta as Et,Tb as Er,Tc as Ls,Td as So,Te as Si,Tf as La,U as Pe,Ua as Mt,Ub as Mr,Uc as Ss,Ud as No,Ue as Ni,Uf as x,V as Le,Va as Tt,Vb as Tr,Vc as Ns,Vd as Eo,Ve as Ei,Vf as u,W as Se,Wa as bt,Wb as br,Wc as Es,Wd as Mo,We as Mi,Wf as Sa,X as Ne,Xa as Dt,Xb as Dr,Xc as Ms,Xd as To,Xe as Ti,Xf as Na,Y as Ee,Ya as vt,Yb as vr,Yc as Ts,Yd as bo,Ye as bi,Yf as Ea,Z as Me,Za as Ut,Zb as Ur,Zc as bs,Zd as Do,Ze as Di,Zf as Ma,_ as Te,_a as Vt,_b as Vr,_c as Ds,_d as vo,_e as vi,_f as Ta,a as L,aa as De,ab as It,ac as Ir,ad as Us,ae as Vo,af as Vi,ag as Da,b as S,ba as ve,bb as Wt,bc as Wr,bd as Vs,be as Co,bf as n,bg as va,c as N,ca as Ue,cb as Kt,cc as Kr,cd as Cs,ce as Io,cf as Ci,cg as Ua,d as T,da as Ve,db as Rt,dc as Rr,dd as Is,de as Wo,df as Ii,dg as Va,e as b,ea as Ce,eb as jt,ec as jr,ed as Ws,ee as Ko,ef as Wi,eg as Ca,f as D,fa as Ie,fb as Yt,fc as Yr,fd as Ks,fe as Ro,ff as Ki,fg as Ia,g as W,ga as We,gb as $t,gc as $r,gd as Rs,ge as jo,gf as Ri,gg as Wa,h as K,ha as Ke,hb as qt,hc as qr,hd as js,he as Yo,hf as ji,hg as Ka,i as R,ia as Re,ib as zt,ic as m,id as Ys,ie as $o,if as Yi,ig as Ra,j,ja as je,jb as Bt,jc as zr,jd as $s,je as qo,jf as $i,jg as d,k as Y,ka as Ye,kb as Gt,kc as Br,kd as qs,ke as zo,kf as qi,kg as p,l as $,la as $e,lb as Ht,lc as Gr,ld as zs,le as Bo,lf as zi,lg as ja,m as q,ma as qe,mb as Jt,mc as Hr,md as Bs,me as Go,mf as Bi,mg as Ya,n as z,na as ze,nb as Qt,nc as Jr,nd as Gs,ne as Ho,nf as Gi,ng as $a,o as B,oa as Be,ob as Xt,oc as Qr,od as Hs,oe as Jo,of as Hi,og as qa,p as G,pa as Ge,pb as Zt,pc as Xr,pd as Js,pe as Qo,pf as Ji,pg as za,q as H,qa as He,qb as kt,qc as Zr,qd as Qs,qe as Xo,qf as Qi,qg as Ba,r as J,ra as Je,rb as Ot,rc as kr,rd as Xs,re as Zo,rf as Xi,rg as Ga,s as Q,sa as Qe,sb as er,sc as Or,sd as Zs,se as ko,sf as Zi,sg as Ha,t as X,ta as Xe,tb as tr,tc as es,td as ks,te as Oo,tf as ki,tg as Ja,u as Z,ua as Ze,ub as rr,uc as ts,ud as Os,ue as ei,uf as Oi,ug as Qa,v as k,va as ke,vb as sr,vc as rs,vd as eo,ve as ti,vf as ea,vg as Xa,w as O,wa as Oe,wb as or,wc as ss,wd as to,we as ri,wf as ta,wg as Za,x as ee,xa as et,xb as ir,xc as os,xd as ro,xe as si,xf as ra,xg as ka,y as te,ya as tt,yb as ar,yc as l,yd as so,ye as oi,yf as sa,yg as Oa,z as re,za as rt,zb as nr,zc as is,zd as oo,ze as ii,zf as oa,zg as en}from"./chunks/chunk-P3XQCHDW.js";import{I as dn,J as pn,a as E,b as M,c as v,d as U,e as V,f as C,g as I,h as ht,i as ft,j as ct,k as mt,l as lt}from"./chunks/chunk-VJQMKHGQ.js";import{a as mn,b as ln,c as gn}from"./chunks/chunk-2T3HXSC2.js";var un=p,wn=d;var A={width:1920,height:1080},F=60,P={image:{},video:{},audio:{},font:{}},f=class{platform;viewport;fps;constructor(e,t={}){this.platform=e,this._registry=new n({nodes:t.nodes,shaders:t.shaders,lerps:t.lerps,dynamicNodes:t.dynamicNodes}),this.viewport=t.viewport??A,this.fps=t.fps??F,this._manifest=t.manifest??P,this._exporter=e.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(e){this._manifest=e;for(let t of this._manifestListeners)t(e)}open(e){return new h(this,e)}knows(e){return this._registry.hasNode(e)}get registry(){return this._registry}async registerNode(e,t){return typeof e=="string"?this._registry.addNodeFromSource(e,t):(this._registry.addNode(e,t),e)}registerShader(e,t,r){return this._registry.addShader(e,t,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(e){return this._manifestListeners.add(e),()=>this._manifestListeners.delete(e)}};var i=class{get schedulesAudio(){return!0}setMuted(e){}setVolume(e){}dispose(){this.stop()}};var a=class{catalog;viewport;constructor(e,t){this.catalog=e,this.viewport=t}setCatalog(e){this.catalog=e}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(e){return this.cachedAssets.has(e)}async loadAsset(e,t){let r=this.inFlightLoads.get(e);if(r)return r;if(this.cachedAssets.has(e))return;let s=this.runLoad(e,t);this.inFlightLoads.set(e,s);try{await s}finally{this.inFlightLoads.delete(e)}}async runLoad(e,t){let r=!0;switch(t.type){case"image":await this.loadImage(e);break;case"video":await this.loadVideo(e,t.startFrame,t.endFrame,t.trimStart,t.trimEnd);break;case"font":{let{fontFamily:s,fontWeight:c}=this.parseFontKey(e);r=await this.loadFont(e,s,c);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let s=t;throw new Error(`Unsupported asset type: ${s.type}`)}}r&&this.cachedAssets.add(e)}parseFontKey(e){let[t,r]=e.split("@"),s=r?parseInt(r,10):400;return{fontFamily:t||e,fontWeight:isNaN(s)?400:s}}async warmPendingVideo(){return!1}setDecodePolicy(e){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(e){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};function Cn(o){return typeof o?._stepper=="function"}export{G as ASCII_CHARSETS,Ci as AUDIO_ROOT_ID,wo as AUTOFIT_PROBE_SIZE,Se as AdjustmentChain,Ee as Adjustments,ko as AmbientLight3D,si as AreaLight3D,u as AssetDeclaration,x as AssetManager,g as AssetNotLoadedError,p as AssetTimeline,Eo as AudioBus,Yt as AudioFilterChain,Gt as AudioFilterRegistry,$t as AudioFilters,i as AudioSink,me as BLEND_MODES_LIST,qs as BooleanGroup,io as BoundsShape,vo as Box3D,is as COMMAND_META,Ys as Camera,oi as Camera3D,Rs as Canvas2D,ni as Canvas3D,Bi as CanvasRenderContext2D,Yo as Capsule3D,Ro as Circle3D,ps as Clip,Va as ClipInstance,Ia as ClipStore,Io as Cone3D,os as ContextMap,Tt as Curve,Co as Cylinder3D,Lt as DEFAULT_EASE,F as DEFAULT_FPS,Ca as DEFAULT_PRECOMP_BUDGET_MS,A as DEFAULT_VIEWPORT,Re as DRAWABLE_KINDS,Js as DataToken,Zs as DefaultTextStyle,ei as DirectionalLight3D,go as DotGrid,Y as EFFECT_OPTION_KEYS,P as EMPTY_MANIFEST,ht as EMPTY_PATH_DATA,cr as EMPTY_TEXT_STYLE,ae as EffectChain,ne as Effects,eo as Ellipse,f as Engine,ai as Environment3D,Fi as ExpressionError,qo as Extrude3D,xe as FillChain,ue as Fills,ii as Fog3D,gn as Fragment,Ji as Geo,Ie as Graphics2D,Ye as Graphics3D,uo as GridPattern,bo as Group3D,Oo as HemisphereLight3D,ho as Hexagon,Fr as IDENTITY_QUATERNION,Te as ImageFilters,Go as Instances3D,zo as Lathe3D,to as Line,Jo as Line3D,lo as LineGrid,Yr as MAX_SHADER_PROPERTIES,$r as MAX_SHADER_SOURCE,ye as MINOR_WIDTH_RATIO,Aa as MUTABLE_MATERIAL_KEYS,w as ManifestAssetCatalog,zs as MaskGroup,Qi as Mat,Do as Mesh3D,Xo as Model3D,Zo as ModelView3D,vi as NODE_META,rr as NO_PROJECTION_3D,ds as Node,hs as Node2D,To as Node3D,Vs as NodeAudio,le as NodeBlendModes,Hi as NullRenderContext,Lo as NumberNode,fo as Octagon,$s as OrbitCamera,ft as PATH_UNIT_EXTENT,ct as PATH_UNIT_HALF,Ts as PaintNode,ro as Path,Ce as PathBuilder,mo as PathShape,po as Pentagon,Vo as Plane3D,rn as Playback,en as PlaybackController,ti as PointLight3D,Ho as Points3D,so as Polygon,oo as Polygram,$o as Polyhedron3D,un as Precomp,m as PropSlot,Bs as Provider,ci as ROOT_NODE_ID,cn as Random,Os as Rect,n as Registry,$e as RenderContext3D,Fo as RichText,no as RightTriangle,jo as Ring3D,So as RotatedBox,Ka as SETTLE_PASSES,cs as SHAPE_ALIGNMENT_KEYS,Fa as STRUCTURAL_MATERIAL_KEYS,ze as Scene3D,Wi as SceneTimeline,fn as SeedGenerator,Qs as SeedToken,h as Session,js as ShapeNode,zt as Sound,Mo as SoundNode,Uo as Sphere3D,ri as SpotLight3D,Qo as Sprite3D,co as Star,Wa as StateEvaluator,_ as SteppedClock,a as StorageAdapter,st as TEXTURE_KEYS,fr as TEXT_SHAPING_KEYS,hr as TEXT_STYLE_KEYS,Xi as Tex,Po as Text,Ao as TextBase,yo as TextSelection,Gs as TextStyleToken,Xs as ThemeProvider,Hs as ThemeToken,y as Ticker,Wo as Torus3D,Ko as TorusKnot3D,ao as Triangle,Bo as Tube3D,mt as UNIT_PATH_BOX,No as Video,Ne as VideoAdjustmentChain,Me as VideoAdjustments,be as VideoFilters,xo as ViewportPattern,Ea as __resetSchedulerForTests,ve as alignmentOps,Ir as alignmentProperty,Us as applyEditorStates,da as applyMatrix4,ks as applyTextDefaults,kt as applyToPoint,Ai as asProjectDocument,Di as assertValidDocument,bi as assertValidProjectDocument,Ht as audioFiltersOps,Wt as audioParamOps,fe as backdropEffects,Cs as busPathOf,Is as busPathTo,er as cameraMatrix,nt as canLerpFill,Xe as canvas3DResourceKey,tt as canvas3DResourceLoader,Gi as caretCount,ka as caretOffsetAt,Oa as caretRangeQuads,xa as centeredBox3,Ft as clamp,Pt as clamp01,Xa as collectBoxes,ja as collectBoxes3D,B as colorOps,Dr as colorProperty,ns as command,es as commandParallel,Or as commandSequence,wi as commandSpan,pa as compose4,Fs as containsClip,Ps as containsOps,te as coordsMatrix,T as cornerRadiusOps,vr as cornerRadiusProperty,b as cornerStyleOps,Ur as cornerStyleProperty,wa as corners3,d as createAssetTimelineProfile,ss as createContext,wn as createPrecompProfile,hn as createRef,Ei as curveEase,Si as curveSegmentT,Li as curveSegments,ra as cylinderRadii,O as describeUniforms,Ms as distanceToSegment,yi as documentDuration,Zr as driveCommand,Nt as easeIn,Mt as easeInOut,Et as easeOut,se as effectSurface,li as effectiveSpan,xi as effectiveSpanIn,gi as effectiveSpans,pe as effectsOps,br as effectsProperty,pn as enterBudget,Kt as equalsParam,Ar as euler3Ops,oa as evaluateParametric,ki as evaluateRoundedBox,Pi as expressionOps,or as facesAway,vt as fadeIn,Ut as fadeOut,pt as fillOps,Er as fillProperty,Pe as filterSurface,Bt as filtersKey,Ws as findBusById,xr as flowOps,it as forEachTexture3D,ce as foregroundShaderEffects,va as frameTime,nn as generateList,_a as geometryBounds3D,ge as getBlendModeHash,as as getCommandMeta,Vi as getNodeDescriptor,l as getPropSlot,lr as getPropertyMeta,C as getTypographyPreset,rt as hasCanvas3DBackend,Ae as hasFilter,sr as hasProjection3D,fi as hasTimeline,Dt as hold,Qt as identity,ia as identity4,Ue as insetsOps,Cr as insetsProperty,Rt as integrateSpeedToSceneTime,Ot as invert,na as invert4,hi as isAudioDocument,he as isBackdropEffect,Qr as isCommand,pi as isCompositionDocument,Vt as isCurve,Ge as isDataTexture3D,Ni as isEaseCurve,jr as isKnownShaderProperty,Pa as isOrbitCamera3D,tn as isParentNode,_e as isPixelFilter,_i as isProjectDocument,Jt as isProjective,Cn as isSteppable,di as isStillDocument,Ki as isStyleOnlySegment,He as isSurfaceTexture3D,ot as isTextureLike,N as isUniformCorners,mn as jsx,ln as jsxs,z as lerpColor,D as lerpCornerScalarStyle,S as lerpCorners,oe as lerpEffect,_r as lerpEuler3,dt as lerpFill,Fe as lerpFilter,Le as lerpFilterArray,ar as lerpLookAt,E as lerpNumber,It as lerpParam,M as lerpPerspective,Z as lerpUniformRecord,Q as lerpUniformValue,v as lerpVector2,wr as lerpVector3,St as linear,ha as lookAtRotation4,Ke as looksLikeAssetPath,kr as loopCommand,Br as loopPasses,Jr as loopPhase,Gr as loopRepeats,Hr as loopSpan,Ii as loweredAudioDocument,Xr as makeCommand,Zt as multiply,aa as multiply4,Es as nearPolyline,dn as niceStep,Ui as node,Ha as nodeAt,Ba as nodeBox,Ga as nodeBoxAt,tr as nodeLocalMatrix,bs as nodePath,ir as nodeProjectedMatrix,mi as nodeSpan,Za as nodeTextLayout,Lr as normalizeQuaternion,_o as normalizeRanges,qr as normalizeShaderPack,J as normalizeUniforms,Sa as now,ga as orthographic4,za as parentPlanePointAt,on as parseCSV,Ze as parseCanvas3DResourceKey,I as parseColor,an as parseData,re as parseShaderChildren,lt as pathOps,Vr as pathProperty,la as perspective4,Qa as pickNode,$a as pickNode3D,Ta as placeTracks,Ns as pointInPolygon,Ls as polygonVertices,Ss as polygramVertices,rs as prepareNumericCellTween,ts as prepareNumericTween,vs as primeMotionTree,Ya as projectNode3D,Ja as projectNode3DAt,gr as property,Sr as quaternionFromEuler,Nr as quaternionOps,bt as ramp,Oe as registerCanvas3DResourceLoader,ke as registerCanvas3DWarmup,qa as renderMatrix,Ra as renderSettled,Ri as requireFontFamily,H as resolveAsciiCharset,qt as resolveAudioFilters,sa as resolveBevel3D,La as resolveCameraPlacement,De as resolveChainAdjustments,de as resolveChainEffects,we as resolveChainFill,L as resolveCorners,W as resolveEffectAxis,R as resolveEffectColor,at as resolveFill,We as resolveFill3D,je as resolveMaterialShorthand3D,q as resolveMotionBlurAlignment,xs as resolvePivotPosition,sn as resolveProjectDocument,ie as resolveShaderProperties,gt as resolveShadow,ta as resolveShadowOptions3D,qe as resolveShadows3D,gs as resolveShapeAlignment,fs as resolveShapePivot,_t as resolveStroke,ut as resolveStrokeAlign,wt as resolveStrokeCap,yt as resolveStrokeJoin,Be as resolveSurfaceSource,Je as resolveTexture3D,ur as resolveVector3,Ve as resolveVideoTimestamp,ma as rotationOf4,K as sameEffectAxis,j as sameEffectColor,Ds as sampleTree,Zi as segmentsOf,V as setTheme,Oi as shadowCasts,xt as shadowOps,Tr as shadowProperty,ea as shadowReceives,dr as size2DOps,pr as sizeInputOps,Kr as sizeProperty,Pr as slerpQuaternion,jt as sourceTimeAtSceneElapsed,nr as space3dOps,Ua as spanFrames,Da as spansCovering,Ct as staticValue,ls as stripShapeAlignmentKeys,At as strokeOps,Mr as strokeProperty,Ks as structuralPathOf,mr as textOps,Rr as textProperty,Qe as texture3DSource,zr as toCommand,qi as toPathString,ba as totalFramesOf,Ma as trackFrameCount,ya as transformBox3,fa as transformMatrix4,Xt as translation,ca as translation4,k as uniformRecordsEqual,X as uniformValuesEqual,ua as unionBox3,ui as untimed,Mi as validateDocument,Ti as validateProjectDocument,ms as validateShapeAlignmentProps,U as vector2Ops,Wr as vector2Property,yr as vector3Ops,et as warmCanvas3D,$ as withEffectOptions,ws as withEllipseDescriptor,As as withLineDescriptor,zi as withPathDescriptor,ys as withPolygonDescriptor,_s as withPolygramDescriptor,us as withRectDescriptor,Yi as withRichTextDescriptor,ji as withTextDescriptor,$i as withTransformDescriptor,ee as writeUniforms,Na as yieldToScheduler};
1
+ import{$ as Hs,$a as Gi,$b as qa,A as cs,Aa as _i,Ab as wa,Ac as gn,B as hs,Ba as Ai,Bb as ya,Bc as xn,C as ls,Ca as Pi,Cb as _a,Cc as un,D as gs,Da as Ti,Db as Aa,Dc as wn,E as xs,Ea as Fi,Eb as Pa,Ec as yn,F as us,Fa as Li,Fb as Ta,Fc as _n,G as ws,Ga as Si,Gb as Fa,Gc as An,H as ys,Ha as Ei,Hb as La,Hc as T,I as _s,Ia as Ni,Ib as Sa,Ic as Pn,J as bs,Ja as bi,Jb as Ea,Jc as F,K as Ds,Ka as Di,Kb as Na,Kc as L,L as Ms,La as Mi,Lb as ba,Lc as l,M as Us,Ma as Ui,Mb as Da,Mc as Tn,N as Cs,Na as Ci,Nb as Ma,Nc as Fn,O as vs,Oa as vi,Ob as Ua,Oc as Ln,P as Vs,Pa as Vi,Pb as Ca,Pc as Sn,Q as Is,Qa as Ii,Qb as va,Qc as bn,R as Ws,Ra as Wi,Rb as Va,Rc as Dn,S as Ks,Sa as Ki,Sb as A,Sc as Mn,T as Rs,Ta as Ri,Tb as P,Tc as Un,U as $s,Ua as $i,Ub as Ia,V as js,Va as ji,Vb as Wa,W as Ys,Wa as Yi,Wb as Ka,X as qs,Xa as qi,Xb as Ra,Y as zs,Ya as f,Yb as $a,Z as Bs,Za as zi,Zb as ja,_ as Gs,_a as Bi,_b as Ya,a as or,aa as Js,ab as Hi,ac as za,b as sr,ba as Qs,bb as Ji,bc as Ba,c as ir,ca as Xs,cb as Qi,cc as Ga,d as ar,da as Zs,db as Xi,dc as Ha,e as nr,ea as ks,eb as Zi,ec as Ja,f as dr,fa as Os,fb as m,fc as Qa,g as pr,ga as ei,gb as ki,gc as Xa,h as fr,ha as ti,hb as Oi,hc as Za,i as mr,ia as ri,ib as ea,ic as ka,j as Vr,ja as oi,jb as ta,jc as Oa,k as Ir,ka as si,kb as ra,kc as c,l as Wr,la as ii,lb as oa,lc as h,m as Kr,ma as ai,mb as sa,mc as en,n as Ao,na as ni,nb as ia,nc as tn,o as Po,oa as di,ob as aa,oc as rn,p as To,pa as pi,pb as na,pc as on,q as Fo,qa as fi,qb as da,qc as sn,r as Do,ra as mi,rb as pa,rc as an,s as ss,sa as ci,sb as fa,sc as nn,t as is,ta as hi,tb as ma,tc as dn,u as as,ua as li,ub as ca,uc as pn,v as ns,va as gi,vb as ha,vc as fn,w as ds,wa as xi,wb as la,wc as mn,x as ps,xa as ui,xb as ga,xc as cn,y as fs,ya as wi,yb as xa,yc as hn,z as ms,za as yi,zb as ua,zc as ln}from"./chunks/chunk-N4WSN5WY.js";import{$ as Ue,$a as Ct,A as ae,Aa as ot,Ab as cr,Ad as Qo,Ae as Es,B as ne,Ba as st,Bb as hr,Bd as Xo,Be as Ns,C as de,Ca as it,Cb as lr,Cc as ro,Cd as Zo,D as pe,Da as at,Db as gr,Dc as oo,Dd as ko,E as fe,Ea as nt,Eb as xr,Ed as Oo,Fa as dt,Fb as ur,Fc as so,Fd as es,G as me,Ga as pt,Gb as wr,Gc as s,H as ce,Ha as ft,Hb as yr,Hc as io,Hd as ts,I as he,Ib as _r,Ic as ao,J as le,Ja as mt,Jb as Ar,Jc as no,K as ge,Ka as ct,Kb as Pr,Kc as po,Kd as rs,L as xe,Lb as Tr,Lc as fo,Ld as os,M as ue,Ma as ht,Mb as Fr,Mc as mo,N as we,Na as yt,Nb as Lr,Nc as co,O as ye,Oa as _t,Ob as Sr,Oc as ho,P as _e,Pa as At,Pc as lo,Q as Ae,Qa as Pt,Qc as go,R as Pe,Ra as Tt,Rb as Er,Rc as xo,S as Te,Sa as Ft,Sb as Nr,T as Fe,Ta as Lt,Tb as br,U as Le,Ua as St,Ub as Dr,V as Se,Va as Et,Vb as Mr,W as Ee,Wa as Nt,Wb as Ur,Wc as uo,X as Ne,Xa as bt,Xb as Cr,Y as be,Ya as Dt,Yb as vr,Z as De,Za as Mt,_ as Me,_a as Ut,a as E,aa as Ce,ab as vt,ac as y,ad as wo,b as N,ba as ve,bb as Vt,bd as yo,c as b,ca as Ve,cb as It,cd as _o,d as U,da as Ie,db as Wt,dd as Lo,e as C,ea as We,eb as Kt,ed as So,f as v,fa as Ke,fb as Rt,fd as Eo,g as $,gd as No,h as j,ha as Re,hb as $t,hd as bo,i as Y,ia as $e,ib as jt,ic as Rr,id as Mo,j as q,ja as je,jb as Yt,jc as $r,jd as Uo,k as z,ka as Ye,kb as qt,kc as jr,kd as Co,l as B,la as qe,lb as zt,lc as Yr,ld as vo,m as G,ma as ze,mb as Bt,mc as qr,md as Vo,me as As,n as H,na as Be,nb as Gt,nc as zr,nd as Io,ne as Ps,o as J,oa as Ge,ob as Ht,oc as Br,od as Wo,oe as Ts,p as Q,pa as He,pb as Jt,pc as Gr,pd as Ko,pe as Fs,q as X,qb as Qt,qc as Hr,qd as Ro,r as Z,ra as Je,rb as Xt,rc as Jr,rd as $o,s as k,sa as Qe,sb as Zt,sc as Qr,sd as jo,t as O,ta as Xe,tb as kt,tc as Xr,td as Yo,u as ee,ua as Ze,ub as Ot,uc as Zr,ud as qo,v as te,va as ke,vb as d,vc as kr,vd as zo,w as re,wa as Oe,wb as p,wc as Or,wd as Bo,x as oe,xa as et,xb as er,xc as eo,xd as Go,y as se,ya as tt,yb as tr,yc as to,yd as Ho,ye as Ls,z as ie,za as rt,zb as rr,zc as _,zd as Jo,ze as Ss}from"./chunks/chunk-WZSI3GSK.js";import{g as En,h as Nn}from"./chunks/chunk-4BDLFEOC.js";import{b as D,c as M,d as V,e as I,f as W,g as K,h as R,i as lt,j as gt,k as xt,l as ut,m as wt}from"./chunks/chunk-CCGVIR4F.js";var vn=h,Vn=c;var x={width:1920,height:1080},u=60,Rn={viewport:x,fps:u},S={image:{},video:{},audio:{},font:{}},g=class{platform;viewport;fps;constructor(e,t={}){this.platform=e,this._registry=new f({nodes:t.nodes,shaders:t.shaders,lerps:t.lerps,dynamicNodes:t.dynamicNodes,strict:t.strict}),this.viewport=t.viewport??x,this.fps=t.fps??u,this._manifest=t.manifest??S,this._exporter=e.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(e){this._manifest=e;for(let t of this._manifestListeners)t(e)}open(e){return new l(this,e)}knows(e){return this._registry.hasNode(e)}get registry(){return this._registry}async registerNode(e,t){return typeof e=="string"?this._registry.addNodeFromSource(e,t):(this._registry.addNode(e,t),e)}registerShader(e,t,r){return this._registry.addShader(e,t,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(e){return this._manifestListeners.add(e),()=>this._manifestListeners.delete(e)}};var i=class{get schedulesAudio(){return!0}setMuted(e){}setVolume(e){}dispose(){this.stop()}};var a=class{catalog;viewport;constructor(e,t){this.catalog=e,this.viewport=t}setCatalog(e){this.catalog=e}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(e){return this.cachedAssets.has(e)}async loadAsset(e,t){let r=this.inFlightLoads.get(e);if(r)return r;if(this.cachedAssets.has(e))return;let o=this.runLoad(e,t);this.inFlightLoads.set(e,o);try{await o}finally{this.inFlightLoads.delete(e)}}async runLoad(e,t){let r=!0;switch(t.type){case"image":await this.loadImage(e);break;case"video":await this.loadVideo(e,t.startFrame,t.endFrame,t.trimStart,t.trimEnd);break;case"font":{let{fontFamily:o,fontWeight:w}=this.parseFontKey(e);if(r=await this.loadFont(e,o,w),!r&&this.getDecodePolicy()==="exact")throw new s("font",o,`The manifest has no font entry for "${o}", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let o=t;throw new Error(`Unsupported asset type: ${o.type}`)}}r&&this.cachedAssets.add(e)}parseFontKey(e){let[t,r]=e.split("@"),o=r?parseInt(r,10):400;return{fontFamily:t||e,fontWeight:isNaN(o)?400:o}}async warmPendingVideo(){return!1}setDecodePolicy(e){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(e){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};var id=m,ad=d,nd=p;export{Q as ASCII_CHARSETS,Ji as AUDIO_ROOT_ID,As as AUTOFIT_PROBE_SIZE,be as AdjustmentChain,Me as Adjustments,di as AmbientLight3D,hi as AreaLight3D,P as AssetDeclaration,A as AssetManager,s as AssetNotLoadedError,h as AssetTimeline,Is as AudioBus,er as AudioEffectChain,cr as AudioEffectRegistry,tr as AudioEffects,i as AudioSink,Z as BLEND_MODES_LIST,xs as BooleanGroup,Ys as Box3D,ro as COMMAND_META,ws as Camera,li as Camera3D,Do as Canvas2D,ui as Canvas3D,rs as CanvasRenderContext2D,Zs as Capsule3D,Qs as Circle3D,uo as Clip,Ja as ClipInstance,Xa as ClipStore,m as ClipTimeline,Gs as Cone3D,to as ContextMap,Bs as Cylinder3D,Pt as DEFAULT_CAP_SCALE,Mt as DEFAULT_EASE,u as DEFAULT_FPS,Rn as DEFAULT_OUTPUT,Qa as DEFAULT_PRECOMP_BUDGET_MS,x as DEFAULT_VIEWPORT,Ui as DOCUMENT_FORMAT_VERSION,vi as DOCUMENT_MIGRATIONS,Je as DRAWABLE_KINDS,Es as DataToken,Us as DefaultTextStyle,fi as DirectionalLight3D,Ci as DocumentTooNewError,z as EFFECT_OPTION_KEYS,S as EMPTY_MANIFEST,lt as EMPTY_PATH_DATA,Ur as EMPTY_TEXT_STYLE,he as EffectChain,le as Effects,is as Ellipse,g as Engine,xi as Environment3D,Oo as ExpressionError,Os as Extrude3D,_e as FillChain,Ae as Fills,gi as Fog3D,na as Geo,$e as Graphics2D,Xe as Graphics3D,$s as Group3D,pi as HemisphereLight3D,hs as Hexagon,co as IDENTITY_QUATERNION,Ce as ImageFilters,ri as Instances3D,ei as Lathe3D,si as Line3D,Ir as MAX_SHADER_PROPERTIES,Wr as MAX_SHADER_SOURCE,Te as MINOR_WIDTH_RATIO,va as MUTABLE_MATERIAL_KEYS,T as ManifestAssetCatalog,us as MaskGroup,da as Mat,js as Mesh3D,ai as Model3D,ni as ModelView3D,Co as NODE_META,Pr as NO_PROJECTION_3D,so as Node,wo as Node2D,Uo as Node3D,Lo as NodeAudio,k as NodeBlendModes,os as NullRenderContext,Ds as NumberNode,ls as Octagon,ys as OrbitCamera,gt as PATH_UNIT_EXTENT,xt as PATH_UNIT_HALF,ps as Path,Re as PathBuilder,ds as PathShape,cs as Pentagon,zs as Plane3D,Pn as Playback,_n as PlaybackController,mi as PointLight3D,oi as Points3D,as as Polygon,ns as Polygram,ks as Polyhedron3D,vn as Precomp,y as PropSlot,Cs as Provider,Pi as ROOT_NODE_ID,Yt as RampChain,Mn as Random,ss as Rect,f as Registry,ia as RenderBackendError,Ze as RenderContext3D,Ms as RichText,ms as RightTriangle,Xs as Ring3D,_s as RotatedBox,ka as SETTLE_PASSES,Io as SHAPE_ALIGNMENT_KEYS,Va as STRUCTURAL_MATERIAL_KEYS,Oe as Scene3D,id as SceneTimeline,Dn as SeedGenerator,Ns as SeedToken,l as Session,ar as Sound,Vs as SoundNode,qs as Sphere3D,ci as SpotLight3D,ii as Sprite3D,gs as Star,Za as StateEvaluator,L as SteppedClock,a as StorageAdapter,nt as TEXTURE_KEYS,Mr as TEXT_SHAPING_KEYS,Dr as TEXT_STYLE_KEYS,pa as Tex,bs as Text,Ls as TextStyleToken,vs as ThemeProvider,Ss as ThemeToken,F as Ticker,Hs as Torus3D,Js as TorusKnot3D,fs as Triangle,ti as Tube3D,ut as UNIT_PATH_BOX,Ws as Video,De as VideoAdjustmentChain,Ue as VideoAdjustments,ve as VideoFilters,ae as WGSL_CONTRACT,Ka as __resetSchedulerForTests,Ie as alignmentOps,Fo as applyEditorStates,Aa as applyMatrix4,wr as applyToPoint,Mi as asProjectDocument,$i as assertValidDocument,Ri as assertValidProjectDocument,hr as audioEffectsOps,Ot as audioParamOps,we as backdropEffects,So as busPathOf,Eo as busPathTo,mr as busStopKey,_r as cameraMatrix,mt as canLerpFill,et as canvas3DResourceKey,it as canvas3DResourceLoader,ra as caretCount,wn as caretOffsetAt,yn as caretRangeQuads,ba as centeredBox3,nn as childPlanePointAt,bt as clamp,Dt as clamp01,Zi as clipDocument,ir as clipDurationOf,Ra as clipFrameToTime,or as clipTimeAtSource,$a as clipTimeToFrame,xn as collectBoxes,tn as collectBoxes3D,H as colorOps,Zr as commandParallel,Xr as commandSequence,Ni as commandSpan,Pa as compose4,Go as containsClip,Ho as containsOps,U as cornerRadiusOps,C as cornerStyleOps,Ma as corners3,c as createAssetTimelineProfile,eo as createContext,Vn as createPrecompProfile,bn as createRef,Rt as curveEase,Wt as curveSegmentT,It as curveSegments,ga as cylinderRadii,de as describeEffect,ko as distanceToSegment,bi as documentDuration,Vi as documentFormatVersion,Jr as driveCommand,Ct as easeIn,Vt as easeInOut,$t as easeOfSpec,vt as easeOut,pe as effectDescriptors,fe as effectSurface,Fi as effectiveSpan,Si as effectiveSpanIn,Li as effectiveSpans,nr as effectsKey,xe as effectsOps,Nn as enterBudget,kt as equalsParam,mo as euler3Ops,ua as evaluateParametric,ma as evaluateRoundedBox,es as expressionOps,Fr as facesAway,ht as fillOps,Ee as filterSurface,No as findBusById,yo as findNode2D,io as flowOps,pt as forEachTexture3D,ye as foregroundShaderEffects,_o as frameIn,ja as frameSpecAtTime,Ga as frameTime,Sn as generateList,Ca as geometryBounds3D,O as getBlendModeHash,oo as getCommandMeta,vo as getNodeDescriptor,_ as getPropSlot,vr as getPropertyMeta,K as getTypographyPreset,fn as handleValueAt,at as hasCanvas3DBackend,Le as hasFilter,Tr as hasProjection3D,Ai as hasTimeline,zt as hold,gr as identity,wa as identity4,We as insetsOps,d as integrateSpeedToClipTime,ad as integrateSpeedToSceneTime,yr as invert,_a as invert4,_i as isAudioDocument,ue as isBackdropEffect,Gr as isCommand,yi as isCompositionDocument,Ye as isDataTexture3D,Kt as isEaseCurve,aa as isFatalRenderIssue,Vr as isKnownShaderProperty,Ks as isOrbitCamera3D,An as isParentNode,Fe as isPixelFilter,Di as isProjectDocument,lr as isProjective,Bt as isRamp,Un as isSteppable,wi as isStillDocument,Tt as isStrokeMarker,Ps as isStyleOnlySegment,qe as isSurfaceTexture3D,dt as isTextureLike,b as isUniformCorners,en as isViewport3D,ie as isWgslShader,G as lerpColor,v as lerpCornerScalarStyle,N as lerpCorners,me as lerpEffect,fo as lerpEuler3,ct as lerpFill,Se as lerpFilter,Ne as lerpFilterArray,Sr as lerpLookAt,D as lerpNumber,Zt as lerpParam,M as lerpPerspective,oe as lerpUniformRecord,te as lerpUniformValue,V as lerpVector2,no as lerpVector3,Ut as linear,Ta as lookAtRotation4,Ge as looksLikeAssetPath,Qr as loopCommand,$r as loopPasses,qr as loopPhase,jr as loopRepeats,Yr as loopSpan,Qi as loweredAudioDocument,Hr as makeCommand,Ii as migrateDocument,ts as migrateNodeProps,ji as missingNodeOf,ur as multiply,ya as multiply4,Zo as nearPolyline,En as niceStep,hn as nodeAt,mn as nodeBox,cn as nodeBoxAt,pn as nodeHandlesAt,Ar as nodeLocalMatrix,Ao as nodePath,Lr as nodeProjectedMatrix,Ti as nodeSpan,un as nodeTextLayout,zi as nodeTypeIsA,lo as normalizeQuaternion,Kr as normalizeShaderPack,ee as normalizeUniforms,Ia as now,Na as orthographic4,Xt as paramKey,Bi as parentIssue,an as parentPlanePointAt,Mo as parentSpaceOf,Fn as parseCSV,tt as parseCanvas3DResourceKey,R as parseColor,Ln as parseData,wt as pathOps,Ea as perspective4,gn as pickNode,on as pickNode3D,qa as placeTracks,Hi as placementIssues,Xo as pointInPolygon,Jo as polygonVertices,Qo as polygramVertices,Or as prepareNumericCellTween,kr as prepareNumericTween,To as primeMotionTree,rn as projectNode3D,ln as projectNode3DAt,go as quaternionFromEuler,xo as quaternionOps,qt as ramp,ot as registerCanvas3DResourceLoader,rt as registerCanvas3DWarmup,Yi as registryVocabulary,sa as renderIssueKey,sn as renderMatrix,Oa as renderSettled,dn as reparentPlacementAt,Ts as requireFontFamily,X as resolveAsciiCharset,rr as resolveAudioEffects,xa as resolveBevel3D,Rs as resolveCameraPlacement,Ve as resolveChainAdjustments,ge as resolveChainEffects,Pe as resolveChainFill,E as resolveCorners,$ as resolveEffectAxis,Y as resolveEffectColor,ft as resolveFill,He as resolveFill3D,Qe as resolveMaterialShorthand3D,J as resolveMotionBlurAlignment,$o as resolvePivotPosition,Tn as resolveProjectDocument,Gt as resolveRamp,ce as resolveShaderProperties,yt as resolveShadow,la as resolveShadowOptions3D,ke as resolveShadows3D,Ro as resolveShapeAlignment,Vo as resolveShapePivot,Et as resolveStroke,At as resolveStrokeAlign,Ft as resolveStrokeCap,Lt as resolveStrokeEnd,St as resolveStrokeJoin,je as resolveSurfaceSource,ze as resolveTexture3D,ao as resolveVector3,Ke as resolveVideoTimestamp,Sa as rotationOf4,j as sameEffectAxis,q as sameEffectColor,Jt as sampleParam,Ht as sampleRamp,Po as sampleTree,fa as segmentsOf,W as setTheme,Br as settles,zr as settling,ne as shaderContractOf,ca as shadowCasts,_t as shadowOps,ha as shadowReceives,Gi as siblingIssue,Nr as size2DOps,br as sizeInputOps,ho as slerpQuaternion,sr as sourceTimeAtClip,p as sourceTimeAtClipElapsed,nd as sourceTimeAtSceneElapsed,Er as space3dOps,Ha as spanFrames,Ba as spansCovering,jt as specOfEase,Qt as staticValue,Ko as stripShapeAlignmentKeys,Nt as strokeOps,bo as structuralPathOf,Cr as textOps,Be as texture3DSource,Rr as toCommand,ea as toPathString,oa as toRenderIssue,za as totalFramesOf,Ya as trackFrameCount,Ua as transformBox3,Fa as transformMatrix4,pr as transitionGainAt,fr as transitionKey,dr as transitionSpans,xr as translation,La as translation4,se as uniformRecordsEqual,re as uniformValuesEqual,Da as unionBox3,Ei as untimed,Wi as validateDocument,Ki as validateProjectDocument,Wo as validateShapeAlignmentProps,I as vector2Ops,po as vector3Ops,qi as vocabularyBreaks,st as warmCanvas3D,B as withEffectOptions,Yo as withEllipseDescriptor,Bo as withLineDescriptor,ta as withPathDescriptor,Xi as withPlayedSounds,qo as withPolygonDescriptor,zo as withPolygramDescriptor,jo as withRectDescriptor,ki as withRichTextDescriptor,Fs as withTextDescriptor,Oi as withTransformDescriptor,Wa as yieldToScheduler};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/runtime/precompisition.ts", "../../src/runtime/engine.ts", "../../src/platform/audio-sink.ts", "../../src/platform/storage-adapter.ts", "../../src/tween/stepper.ts"],
4
- "sourcesContent": ["import {\n AssetTimeline,\n createAssetTimelineProfile,\n type AssetTimelineOptions,\n type AssetTimelinePhase,\n type AssetTimelineProfile,\n type AssetTimelineResult,\n type AssetTimelineTimings,\n type TrackAssets,\n type TrackAssetsProfile,\n type TrackAssetsTiming,\n} from \"./asset-timeline\";\n\n// The names this module had before it became `asset-timeline`, kept for one alpha.\n\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport const Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport type Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimelineResult}. */\nexport type PrecompResult = AssetTimelineResult;\n/** @deprecated Renamed to {@link TrackAssets}. */\nexport type TrackPrecomp = TrackAssets;\n/** @deprecated Renamed to {@link AssetTimelineOptions}. */\nexport type PrecompOptions = AssetTimelineOptions;\n/** @deprecated Renamed to {@link AssetTimelineProfile}. */\nexport type PrecompProfile = AssetTimelineProfile;\n/** @deprecated Renamed to {@link createAssetTimelineProfile}. */\nexport const createPrecompProfile = createAssetTimelineProfile;\n/** @deprecated Renamed to {@link AssetTimelinePhase}. */\nexport type PrecompPhase = AssetTimelinePhase;\n/** @deprecated Renamed to {@link AssetTimelineTimings}. */\nexport type PrecompTimings = AssetTimelineTimings;\n/** @deprecated Renamed to {@link TrackAssetsTiming}. */\nexport type TrackPrecompTiming = TrackAssetsTiming;\n/** @deprecated Renamed to {@link TrackAssetsProfile}. */\nexport type TrackPrecompProfile = TrackAssetsProfile;\n", "import { Size2D } from \"@/attributes/layout/size\";\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\nimport { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetManifest } from \"@/assets/manifest\";\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\nimport { AudioSink } from \"@/platform/audio-sink\";\nimport { Exporter } from \"@/platform/exporter\";\nimport { Ticker } from \"@/platform/ticker\";\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\nimport { MeasureContext2D } from \"@/render/measure-context\";\nimport { RenderSurface } from \"@/render/surface\";\nimport { OpenOptions, Session } from \"./session\";\n\n/** A render context that also owns a surface — what a `Session` mounts into. */\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\n\n/** What a platform is given to build its per-session objects from. */\nexport interface PlatformDeps {\n catalog: AssetCatalog;\n viewport: Size2D;\n fps: number;\n}\n\n/**\n * How one environment supplies the pieces a `Session` runs on.\n *\n * Five of these are the seams `ControllerParams` has always declared; the sixth\n * is the {@link Exporter} port. Each is a **factory**, not an instance, because\n * a storage adapter is per-viewport (it clamps decode resolution, so a cached\n * decode made for one viewport is genuinely wrong at a larger one) while the\n * engine outlives any single session.\n *\n * The type parameter exists so a platform can hand its own factories a storage\n * adapter richer than `StorageAdapter` — `skia-render` requires\n * `StorageAdapter & SkiaAssets` — without `core` ever naming that type. Core\n * stores and forwards these; it never inspects them.\n */\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\n createStorageAdapter(deps: PlatformDeps): TStorage;\n createRenderContext(storage: TStorage): EngineRenderContext;\n createMeasureContext(storage: TStorage): MeasureContext2D;\n createAudioSink(): AudioSink;\n /**\n * The clock a session plays against, or `null` when this environment has no\n * realtime playback — a headless export has no wall clock to sync to, and a\n * session there reports `playback === null` rather than faking one.\n *\n * This is the seam that separates **preview from export**, not browser from\n * server: an export is frame-stepped in either environment, because a\n * wall-clock export drifts.\n *\n * Handed the session's `audioDevice` because a clock that drives sound has\n * to share its timebase — the browser's runs on the audio device's own\n * `AudioContext`, and two independent clocks would drift against each other\n * within one session.\n */\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\n createExporter(): Exporter;\n /** Torn down with the engine. For a platform holding a device or a process. */\n dispose?(): void;\n}\n\n/** Settings for the engine as a whole. What to render is passed to `open()`. */\nexport interface EngineOptions {\n /**\n * Node types any document opened here may name — decorated classes as an\n * array, or a record naming each key outright.\n */\n nodes?: RegistryOptions[\"nodes\"];\n /** Shader packs any document opened here may name. Plain JSON. */\n shaders?: RegistryOptions[\"shaders\"];\n /** Extra variable interpolations a document may name in `VariableSpec.lerp`. */\n lerps?: RegistryOptions[\"lerps\"];\n /** Enables `Engine.registerNode` with a source string — see `DynamicNodeConfig`. */\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\n /**\n * Asset metadata the renderer needs *before* it loads a file — an image's\n * size, a clip's duration. Reconciled with {@link Engine.setManifest} rather\n * than rebuilt, so a manifest change keeps every decode already cached.\n */\n manifest?: AssetManifest;\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\n viewport?: Size2D;\n /** Frame rate used when a source carries none. Defaults to 60. */\n fps?: number;\n}\n\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\nexport const DEFAULT_FPS = 60;\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\n\n/**\n * The configured environment a document runs in: what node types and shader\n * packs exist, where assets resolve from, who draws and who encodes.\n *\n * Expensive, and meant to be shared — one per app, not one per canvas. The\n * caches underneath it (registered fonts, decoded images, shaped paragraphs) are\n * the whole reason a warm engine beats a cold one, and they live here rather\n * than on a session so that a preview, a filmstrip of thumbnails and an export\n * all draw on the same ones.\n *\n * The rule for what belongs here rather than on a `Session`: **if two open\n * documents could disagree about it, it is session state.** Two documents can\n * disagree about a theme. They cannot disagree about whether `\"pulseRing\"` is a\n * registered type — one of them is simply invalid.\n */\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\n readonly viewport: Size2D;\n readonly fps: number;\n\n constructor(\n readonly platform: EnginePlatform<TStorage>,\n options: EngineOptions = {},\n ) {\n this._registry = new Registry({\n nodes: options.nodes,\n shaders: options.shaders,\n lerps: options.lerps,\n dynamicNodes: options.dynamicNodes,\n });\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\n this.fps = options.fps ?? DEFAULT_FPS;\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\n this._exporter = platform.createExporter();\n }\n\n /** The asset metadata sessions are opened against. */\n get manifest(): AssetManifest {\n return this._manifest;\n }\n\n /** How this engine's sessions turn themselves into bytes. */\n get exporter(): Exporter {\n return this._exporter;\n }\n\n /**\n * Swap in new asset metadata. Existing sessions keep every decode already\n * cached — this replaces what the *catalog* reports, not the bytes behind it.\n */\n setManifest(manifest: AssetManifest): void {\n this._manifest = manifest;\n for (const notify of this._manifestListeners) notify(manifest);\n }\n\n /**\n * Bind a document to this engine and a surface.\n *\n * Cheap: the expensive things — CanvasKit, registered fonts, decoded images,\n * shaped paragraphs — belong to the engine and are shared across every\n * session it opens.\n */\n open(options: OpenOptions): Session {\n return new Session(this as Engine, options);\n }\n\n /** Whether a document naming `key` can be compiled here. */\n knows(key: string): boolean {\n return this._registry.hasNode(key);\n }\n\n /**\n * Read-only introspection of this engine's node/command vocabulary — a\n * type's declared commands and each one's own `@command({ args })`\n * descriptors, for a host that renders per-command UI from them (e.g.\n * which prop keys a `rotateTo` animates). Register or replace a type\n * through `registerNode`/`registerShader` instead; this getter exists for\n * reading the table those build, not for mutating it.\n */\n get registry(): Registry {\n return this._registry;\n }\n\n /**\n * Registers a node type at runtime — a class, or a TS/JSX source string\n * compiled through `dynamicNodes` (see `EngineOptions.dynamicNodes`).\n *\n * Always `async`: one calling convention whether the argument resolves\n * immediately (a class) or needs compiling first (a string).\n */\n async registerNode(\n nodeOrSource: NodeConstructor | string,\n options?: { replace?: boolean },\n ): Promise<NodeConstructor> {\n if (typeof nodeOrSource === \"string\") {\n return this._registry.addNodeFromSource(nodeOrSource, options);\n }\n this._registry.addNode(nodeOrSource, options);\n return nodeOrSource;\n }\n\n /**\n * Registers a shader pack at runtime, under an explicit key — see\n * `Registry.addShader` for why the key is never inferred from the pack.\n */\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\n return this._registry.addShader(key, pack, options);\n }\n\n dispose(): void {\n this._manifestListeners.clear();\n this.platform.dispose?.();\n }\n\n /**\n * The node/shader/lerp vocabulary this engine's documents compile\n * against. Not part of the public surface — reach it through\n * `registerNode`/`registerShader`/`knows` instead. A `Session` (same\n * package) still reads this directly; nothing enforces that at the type\n * level, the same un-enforced convention `_onManifestChange` below\n * already uses.\n */\n readonly _registry: Registry;\n private _manifest: AssetManifest;\n private readonly _exporter: Exporter;\n /** Sessions subscribe so a `setManifest` reaches their live catalogs. */\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\n\n /** @internal — a `Session` registers here for the life of its catalog. */\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\n this._manifestListeners.add(notify);\n return () => this._manifestListeners.delete(notify);\n }\n}\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\n\n\n/**\n * Stackable audio player driven by the AssetManager.\n *\n * The AssetManager decides which audio data is needed within the current\n * look-ahead window and pushes it in via {@link append}; the device caches the\n * decoded form, schedules the matching {@link AudioRequest}s via\n * {@link schedule}, and drives playback through {@link syncTo} on each tick.\n */\nexport abstract class AudioSink {\n /**\n * Whether pushing the audio working set to this device does anything at all.\n *\n * False for a sink that discards everything — an export, whose audio is mixed\n * offline in a single pass at the end. `AssetManager.syncAudio` runs on every\n * frame and rebuilds a `Set`, a per-request id string and a sorted signature\n * each time; against such a device every one of those calls lands on a no-op,\n * so the work is skipped rather than done and thrown away.\n */\n get schedulesAudio(): boolean {\n return true;\n }\n\n /** True if decoded data for `src` is already cached on the device. */\n abstract has(src: string): boolean;\n\n /**\n * Decode and stack `data` under `src`. Idempotent — repeat calls for an\n * already-cached `src` are no-ops.\n */\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\n\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\n abstract retain(keep: ReadonlySet<string>): void;\n\n /**\n * Set the working set of audio requests for the current look-ahead window.\n * Requests no longer present are stopped; new ones become eligible for\n * playback via {@link syncTo} as soon as their data is appended.\n */\n abstract schedule(requests: readonly AudioRequest[]): void;\n\n /**\n * Start/stop scheduled sources to match `sceneTime`. Called every tick.\n * Sources whose data has not yet been appended are skipped until it is.\n */\n abstract syncTo(sceneTime: number): void;\n\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\n abstract stop(): void;\n\n /**\n * Mute or unmute all output. Default is a no-op for devices that produce no\n * sound (e.g. export/noop sinks).\n */\n setMuted(muted: boolean): void {}\n\n /**\n * Set the linear gain applied to all output, on top of each request's own\n * `volume`. Independent of {@link setMuted} — unmuting restores this level\n * rather than resetting to 1, so a host can hold a volume slider and a mute\n * button without the two clobbering each other.\n *\n * Default is a no-op, as for {@link setMuted}.\n */\n setVolume(volume: number): void {}\n\n dispose(): void {\n this.stop();\n }\n}\n", "import { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetRecord } from \"@/assets/record\";\nimport { Size2D } from \"@/attributes/layout/size\";\n\n/**\n * How an adapter picks the resolution to decode media at.\n *\n * `\"exact\"` — export, stills, screenshots: the level follows the current draw\n * alone, so a frame is the same pixels whatever was drawn before it on a reused\n * adapter. `\"interactive\"` — preview: reuse whatever resident level is already\n * good enough, and upgrade in the background.\n */\nexport type DecodePolicy = \"exact\" | \"interactive\";\n\nexport abstract class StorageAdapter {\n protected catalog: AssetCatalog;\n protected viewport: Size2D;\n constructor(catalog: AssetCatalog, viewport: Size2D) {\n this.catalog = catalog;\n this.viewport = viewport;\n }\n\n /**\n * Point the adapter at a different asset catalog, keeping every decode it has\n * already cached.\n *\n * Safe because the catalog supplies *metadata* (durations, intrinsic sizes)\n * while the caches are keyed by source URL: a src the new catalog drops leaves\n * an orphaned decode, and a src it adds simply isn't cached yet. Neither is a\n * correctness problem, which is what lets a long-lived renderer take an\n * updated manifest without paying to re-decode everything still in use.\n *\n * The viewport has no such setter; a host that changes output size rebuilds\n * the adapter.\n */\n setCatalog(catalog: AssetCatalog): void {\n this.catalog = catalog;\n }\n /**\n * Every asset src whose loadXxx is currently in flight, mapped to its\n * pending promise. The render path awaits these to guarantee no draw\n * happens while a load is still resolving. Cleared on completion.\n */\n protected inFlightLoads = new Map<string, Promise<void>>();\n /** Keys of assets that have been fully loaded and are ready to use. */\n protected cachedAssets = new Set<string>();\n\n // ─── Asset loading dispatch ───────────────────────────────────────────────\n\n /** Whether `key` has finished loading and is usable now. */\n isLoaded(key: string): boolean {\n return this.cachedAssets.has(key);\n }\n\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\n const existing = this.inFlightLoads.get(key);\n if (existing) return existing;\n if (this.cachedAssets.has(key)) return;\n\n const job = this.runLoad(key, value);\n this.inFlightLoads.set(key, job);\n try {\n await job;\n } finally {\n this.inFlightLoads.delete(key);\n }\n }\n\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\n let loaded = true;\n switch (value.type) {\n case 'image':\n await this.loadImage(key);\n break;\n case 'video':\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\n break;\n case 'font': {\n const { fontFamily, fontWeight } = this.parseFontKey(key);\n loaded = await this.loadFont(key, fontFamily, fontWeight);\n break;\n }\n case 'audio':\n // Audio files are loaded on-demand via fetchAudioData / syncAudio, not through loadAsset.\n break;\n case 'loader':\n // Loaders are opaque callbacks run directly by the AssetManager and\n // never dispatched through the storage adapter.\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\n default: {\n const _exhaustive: never = value;\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\n }\n }\n\n // Only a load that actually happened is cached. This matters for exactly\n // one case: a font family the manifest cannot describe. Caching it anyway\n // marked the family handled for the life of this adapter, so a manifest\n // that *later* described it — which is what installing a typeface does,\n // folded into the live manifest without rebuilding the controller — could\n // never load it, and the text stayed in the fallback face until something\n // else tore the adapter down.\n if (loaded) this.cachedAssets.add(key);\n }\n\n // ─── Font key parsing ─────────────────────────────────────────────────────\n\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\n const [fontFamily, weightStr] = key.split('@');\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\n return {\n fontFamily: fontFamily || key,\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\n };\n }\n\n // ─── Abstract load methods ────────────────────────────────────────────────\n\n /** Decode resolution follows the draw, so a load names only the source. */\n abstract loadImage(src: string): Promise<void>;\n abstract loadVideo(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract loadAudio(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\n /**\n * Register every face of `fontFamily` the catalog describes.\n *\n * Returns whether the family was actually loaded. `false` means the manifest\n * has no entry for it — not an error (an undescribed family shapes against\n * the platform fallback, which is what a system font name does), but it must\n * not be remembered as handled: see the note in {@link runLoad}.\n */\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\n\n // ─── Frame warming ────────────────────────────────────────────────────────\n\n /**\n * Decode any exact media frames the most recent render asked for but couldn't\n * satisfy synchronously (e.g. a video frame at a freshly-seeked timestamp),\n * and report whether there were any. A blocking caller (seek / screenshot /\n * export) renders once, awaits this, and re-renders while it returns true so\n * the frame is accurate even on a cold jump. Defaults to a no-op for adapters\n * with no time-varying media.\n */\n async warmPendingVideo(): Promise<boolean> {\n return false;\n }\n\n setDecodePolicy(policy: DecodePolicy): void {\n // no-op for adapters that decode at one resolution\n }\n\n /** Read back so a caller that borrows the adapter can restore it. */\n getDecodePolicy(): DecodePolicy {\n return \"interactive\";\n }\n\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\n hasPendingDecodes(): boolean {\n return false;\n }\n\n /**\n * Settle what the last render could not draw acceptably under the current\n * policy — video frames, every exact image level under `\"exact\"`, a source\n * drawn with nothing resident under `\"interactive\"` — and report whether there\n * was any. See `renderSettled`.\n *\n * Defaults to {@link warmPendingVideo} so an adapter written against it keeps\n * working; that alias goes away after one release.\n */\n async warmPendingDecodes(): Promise<boolean> {\n return this.warmPendingVideo();\n }\n\n /**\n * Whether an `\"interactive\"` decode is on its way that would draw the last\n * render sharper. Not something a paint waits for: a preview shows what is\n * resident and repaints when {@link warmPendingUpgrades} reports a landing.\n */\n hasPendingUpgrades(): boolean {\n return false;\n }\n\n /** Await the upgrades {@link hasPendingUpgrades} reports; whether one landed. */\n async warmPendingUpgrades(): Promise<boolean> {\n return false;\n }\n\n /**\n * Notify the adapter whether playback is live. Time-varying media (video) uses\n * this to prefetch ahead only while playing and to quiesce on pause, so a\n * paused timeline doesn't drain a backlog of stale decodes. No-op by default.\n */\n setPlaying(playing: boolean): void {\n // no-op for adapters with no time-varying media\n }\n\n // ─── Lifecycle ────────────────────────────────────────────────────────────\n\n dispose(): void {\n this.inFlightLoads.clear();\n this.cachedAssets.clear();\n }\n}\n", "/**\n * A flat animation driver. `advance(dt)` moves the animation forward by `dt`\n * seconds and returns `true` once it has completed (and applied its final\n * value). It must be primed at t=0 before the first `advance` so the starting\n * frame is correct — callers apply the initial value via `seek(0)`.\n *\n * `seek(elapsed)` is the absolute-time half, and is what a {@link Command}'s\n * `at` is built on: a stepper can be asked for any time, in any order, which is\n * what lets a timeline evaluate a frame without having played the ones before\n * it.\n */\n/** @internal */\nexport interface TweenStepper {\n /**\n * Jump to the value corresponding to `elapsed` seconds from the start.\n * Call with `0` to prime the stepper before the first {@link advance}.\n */\n seek(elapsed: number): void;\n /**\n * Advance the animation by `dt` seconds.\n * @returns `true` when the animation has finished and its final value has\n * been applied; `false` if it is still running.\n */\n advance(dt: number): boolean;\n}\n\n/**\n * Implemented by anything that can produce a {@link TweenStepper} — a\n * {@link Command}, and anything a host drives directly.\n */\nexport interface Steppable {\n /** Return a fresh stepper for a single playthrough of this animation. */\n _stepper(): TweenStepper;\n}\n\nexport function isSteppable(x: unknown): x is Steppable {\n return typeof (x as Steppable)?._stepper === \"function\";\n}\n"],
5
- "mappings": "o0HAgBO,IAAMA,GAAUC,EAYVC,GAAuBC,EC4D7B,IAAMC,EAA2B,CAAE,MAAO,KAAM,OAAQ,IAAI,EACtDC,EAAc,GACdC,EAAgC,CAAE,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,KAAM,CAAA,CAAE,EAiB3EC,EAAP,KAAa,CAKF,SAJJ,SACA,IAET,YACaC,EACTC,EAAyB,CAAA,EAAE,CADlB,KAAA,SAAAD,EAGT,KAAK,UAAY,IAAIE,EAAS,CAC1B,MAAOD,EAAQ,MACf,QAASA,EAAQ,QACjB,MAAOA,EAAQ,MACf,aAAcA,EAAQ,aACzB,EACD,KAAK,SAAWA,EAAQ,UAAYL,EACpC,KAAK,IAAMK,EAAQ,KAAOJ,EAC1B,KAAK,UAAYI,EAAQ,UAAYH,EACrC,KAAK,UAAYE,EAAS,eAAc,CAC5C,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAMA,YAAYG,EAAuB,CAC/B,KAAK,UAAYA,EACjB,QAAWC,KAAU,KAAK,mBAAoBA,EAAOD,CAAQ,CACjE,CASA,KAAKF,EAAoB,CACrB,OAAO,IAAII,EAAQ,KAAgBJ,CAAO,CAC9C,CAGA,MAAMK,EAAW,CACb,OAAO,KAAK,UAAU,QAAQA,CAAG,CACrC,CAUA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CASA,MAAM,aACFC,EACAN,EAA+B,CAE/B,OAAI,OAAOM,GAAiB,SACjB,KAAK,UAAU,kBAAkBA,EAAcN,CAAO,GAEjE,KAAK,UAAU,QAAQM,EAAcN,CAAO,EACrCM,EACX,CAMA,eAAeD,EAAaE,EAAeP,EAA+B,CACtE,OAAO,KAAK,UAAU,UAAUK,EAAKE,EAAMP,CAAO,CACtD,CAEA,SAAO,CACH,KAAK,mBAAmB,MAAK,EAC7B,KAAK,SAAS,UAAS,CAC3B,CAUS,UACD,UACS,UAEA,mBAAqB,IAAI,IAG1C,kBAAkBG,EAAkC,CAChD,YAAK,mBAAmB,IAAIA,CAAM,EAC3B,IAAM,KAAK,mBAAmB,OAAOA,CAAM,CACtD,GCpNE,IAAgBK,EAAhB,KAAyB,CAU3B,IAAI,gBAAc,CACd,MAAO,EACX,CAkCA,SAASC,EAAc,CAAS,CAUhC,UAAUC,EAAc,CAAS,CAEjC,SAAO,CACH,KAAK,KAAI,CACb,GCzDE,IAAgBC,EAAhB,KAA8B,CACtB,QACA,SACV,YAAYC,EAAuBC,EAAgB,CAC/C,KAAK,QAAUD,EACf,KAAK,SAAWC,CACpB,CAeA,WAAWD,EAAqB,CAC5B,KAAK,QAAUA,CACnB,CAMU,cAAgB,IAAI,IAEpB,aAAe,IAAI,IAK7B,SAASE,EAAW,CAChB,OAAO,KAAK,aAAa,IAAIA,CAAG,CACpC,CAEA,MAAM,UAAUA,EAAaC,EAAkB,CAC3C,IAAMC,EAAW,KAAK,cAAc,IAAIF,CAAG,EAC3C,GAAIE,EAAU,OAAOA,EACrB,GAAI,KAAK,aAAa,IAAIF,CAAG,EAAG,OAEhC,IAAMG,EAAM,KAAK,QAAQH,EAAKC,CAAK,EACnC,KAAK,cAAc,IAAID,EAAKG,CAAG,EAC/B,GAAI,CACA,MAAMA,CACV,SACI,KAAK,cAAc,OAAOH,CAAG,CACjC,CACJ,CAEQ,MAAM,QAAQA,EAAaC,EAAkB,CACjD,IAAIG,EAAS,GACb,OAAQH,EAAM,KAAM,CAChB,IAAK,QACD,MAAM,KAAK,UAAUD,CAAG,EACxB,MACJ,IAAK,QACD,MAAM,KAAK,UAAUA,EAAKC,EAAM,WAAYA,EAAM,SAAUA,EAAM,UAAWA,EAAM,OAAO,EAC1F,MACJ,IAAK,OAAQ,CACT,GAAM,CAAE,WAAAI,EAAY,WAAAC,CAAU,EAAK,KAAK,aAAaN,CAAG,EACxDI,EAAS,MAAM,KAAK,SAASJ,EAAKK,EAAYC,CAAU,EACxD,KACJ,CACA,IAAK,QAED,MACJ,IAAK,SAGD,MAAM,IAAI,MAAM,oEAAoE,EACxF,QAAS,CACL,IAAMC,EAAqBN,EAC3B,MAAM,IAAI,MAAM,2BAA4BM,EAA4B,IAAI,EAAE,CAClF,CACJ,CASIH,GAAQ,KAAK,aAAa,IAAIJ,CAAG,CACzC,CAIU,aAAaA,EAAW,CAC9B,GAAM,CAACK,EAAYG,CAAS,EAAIR,EAAI,MAAM,GAAG,EACvCM,EAAaE,EAAY,SAASA,EAAW,EAAE,EAAI,IACzD,MAAO,CACH,WAAYH,GAAcL,EAC1B,WAAY,MAAMM,CAAU,EAAI,IAAMA,EAE9C,CAyCA,MAAM,kBAAgB,CAClB,MAAO,EACX,CAEA,gBAAgBG,EAAoB,CAEpC,CAGA,iBAAe,CACX,MAAO,aACX,CAGA,mBAAiB,CACb,MAAO,EACX,CAWA,MAAM,oBAAkB,CACpB,OAAO,KAAK,iBAAgB,CAChC,CAOA,oBAAkB,CACd,MAAO,EACX,CAGA,MAAM,qBAAmB,CACrB,MAAO,EACX,CAOA,WAAWC,EAAgB,CAE3B,CAIA,SAAO,CACH,KAAK,cAAc,MAAK,EACxB,KAAK,aAAa,MAAK,CAC3B,GCnLE,SAAUC,GAAYC,EAAU,CAClC,OAAO,OAAQA,GAAiB,UAAa,UACjD",
6
- "names": ["Precomp", "AssetTimeline", "createPrecompProfile", "createAssetTimelineProfile", "DEFAULT_VIEWPORT", "DEFAULT_FPS", "EMPTY_MANIFEST", "Engine", "platform", "options", "Registry", "manifest", "notify", "Session", "key", "nodeOrSource", "pack", "AudioSink", "muted", "volume", "StorageAdapter", "catalog", "viewport", "key", "value", "existing", "job", "loaded", "fontFamily", "fontWeight", "_exhaustive", "weightStr", "policy", "playing", "isSteppable", "x"]
3
+ "sources": ["../../src/runtime/precompisition.ts", "../../src/runtime/engine.ts", "../../src/platform/audio-sink.ts", "../../src/platform/storage-adapter.ts", "../../src/renamed-scene-names.ts"],
4
+ "sourcesContent": ["import {\n AssetTimeline,\n createAssetTimelineProfile,\n type AssetTimelineOptions,\n type AssetTimelinePhase,\n type AssetTimelineProfile,\n type AssetTimelineResult,\n type AssetTimelineTimings,\n type TrackAssets,\n type TrackAssetsProfile,\n type TrackAssetsTiming,\n} from \"./asset-timeline\";\n\n// The names this module had before it became `asset-timeline`, kept for one alpha.\n\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport const Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport type Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimelineResult}. */\nexport type PrecompResult = AssetTimelineResult;\n/** @deprecated Renamed to {@link TrackAssets}. */\nexport type TrackPrecomp = TrackAssets;\n/** @deprecated Renamed to {@link AssetTimelineOptions}. */\nexport type PrecompOptions = AssetTimelineOptions;\n/** @deprecated Renamed to {@link AssetTimelineProfile}. */\nexport type PrecompProfile = AssetTimelineProfile;\n/** @deprecated Renamed to {@link createAssetTimelineProfile}. */\nexport const createPrecompProfile = createAssetTimelineProfile;\n/** @deprecated Renamed to {@link AssetTimelinePhase}. */\nexport type PrecompPhase = AssetTimelinePhase;\n/** @deprecated Renamed to {@link AssetTimelineTimings}. */\nexport type PrecompTimings = AssetTimelineTimings;\n/** @deprecated Renamed to {@link TrackAssetsTiming}. */\nexport type TrackPrecompTiming = TrackAssetsTiming;\n/** @deprecated Renamed to {@link TrackAssetsProfile}. */\nexport type TrackPrecompProfile = TrackAssetsProfile;\n", "import { Size2D } from \"@/attributes/layout/size\";\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\nimport { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetManifest } from \"@/assets/manifest\";\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\nimport { AudioSink } from \"@/platform/audio-sink\";\nimport { Exporter } from \"@/platform/exporter\";\nimport { Ticker } from \"@/platform/ticker\";\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\nimport { MeasureContext2D } from \"@/render/measure-context\";\nimport { RenderSurface } from \"@/render/surface\";\nimport { OpenOptions, Session } from \"./session\";\n\n/** A render context that also owns a surface — what a `Session` mounts into. */\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\n\n/** What a platform is given to build its per-session objects from. */\nexport interface PlatformDeps {\n catalog: AssetCatalog;\n viewport: Size2D;\n fps: number;\n}\n\n/**\n * How one environment supplies the pieces a `Session` runs on.\n *\n * Five of these are the seams `ControllerParams` has always declared; the sixth\n * is the {@link Exporter} port. Each is a **factory**, not an instance, because\n * a storage adapter is per-viewport (it clamps decode resolution, so a cached\n * decode made for one viewport is genuinely wrong at a larger one) while the\n * engine outlives any single session.\n *\n * The type parameter exists so a platform can hand its own factories a storage\n * adapter richer than `StorageAdapter` — a backend that needs decoded media of\n * its own — without `core` ever naming that type. Core\n * stores and forwards these; it never inspects them.\n */\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\n createStorageAdapter(deps: PlatformDeps): TStorage;\n createRenderContext(storage: TStorage): EngineRenderContext;\n createMeasureContext(storage: TStorage): MeasureContext2D;\n createAudioSink(): AudioSink;\n /**\n * The clock a session plays against, or `null` when this environment has no\n * realtime playback — a headless export has no wall clock to sync to, and a\n * session there reports `playback === null` rather than faking one.\n *\n * This is the seam that separates **preview from export**, not browser from\n * server: an export is frame-stepped in either environment, because a\n * wall-clock export drifts.\n *\n * Handed the session's `audioDevice` because a clock that drives sound has\n * to share its timebase — the browser's runs on the audio device's own\n * `AudioContext`, and two independent clocks would drift against each other\n * within one session.\n */\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\n createExporter(): Exporter;\n /** Torn down with the engine. For a platform holding a device or a process. */\n dispose?(): void;\n}\n\n/** Settings for the engine as a whole. What to render is passed to `open()`. */\nexport interface EngineOptions {\n /**\n * Node types any document opened here may name — components as an\n * array, or a record naming each key outright.\n */\n nodes?: RegistryOptions[\"nodes\"];\n /** Shader packs any document opened here may name. Plain JSON. */\n shaders?: RegistryOptions[\"shaders\"];\n /** Extra variable interpolations a document may name in `VariableSpec.lerp`. */\n lerps?: RegistryOptions[\"lerps\"];\n /** Enables `Engine.registerNode` with a source string — see `DynamicNodeConfig`. */\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\n /** Fail a track's build on an unknown node type or command rather than building around it — see `RegistryOptions.strict`. */\n strict?: boolean;\n /**\n * Asset metadata the renderer needs *before* it loads a file — an image's\n * size, a clip's duration. Reconciled with {@link Engine.setManifest} rather\n * than rebuilt, so a manifest change keeps every decode already cached.\n */\n manifest?: AssetManifest;\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\n viewport?: Size2D;\n /** Frame rate used when a source carries none. Defaults to 60. */\n fps?: number;\n}\n\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\nexport const DEFAULT_FPS = 60;\n/** What a document renders at when neither the caller nor the document says. */\nexport const DEFAULT_OUTPUT: { viewport: Size2D; fps: number } = { viewport: DEFAULT_VIEWPORT, fps: DEFAULT_FPS };\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\n\n/**\n * The configured environment a document runs in: what node types and shader\n * packs exist, where assets resolve from, who draws and who encodes.\n *\n * Expensive, and meant to be shared — one per app, not one per canvas. The\n * caches underneath it (registered fonts, decoded images, shaped paragraphs) are\n * the whole reason a warm engine beats a cold one, and they live here rather\n * than on a session so that a preview, a filmstrip of thumbnails and an export\n * all draw on the same ones.\n *\n * The rule for what belongs here rather than on a `Session`: **if two open\n * documents could disagree about it, it is session state.** Two documents can\n * disagree about a theme. They cannot disagree about whether `\"pulseRing\"` is a\n * registered type — one of them is simply invalid.\n */\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\n readonly viewport: Size2D;\n readonly fps: number;\n\n constructor(\n readonly platform: EnginePlatform<TStorage>,\n options: EngineOptions = {},\n ) {\n this._registry = new Registry({\n nodes: options.nodes,\n shaders: options.shaders,\n lerps: options.lerps,\n dynamicNodes: options.dynamicNodes,\n strict: options.strict,\n });\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\n this.fps = options.fps ?? DEFAULT_FPS;\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\n this._exporter = platform.createExporter();\n }\n\n /** The asset metadata sessions are opened against. */\n get manifest(): AssetManifest {\n return this._manifest;\n }\n\n /** How this engine's sessions turn themselves into bytes. */\n get exporter(): Exporter {\n return this._exporter;\n }\n\n /**\n * Swap in new asset metadata. Existing sessions keep every decode already\n * cached — this replaces what the *catalog* reports, not the bytes behind it.\n */\n setManifest(manifest: AssetManifest): void {\n this._manifest = manifest;\n for (const notify of this._manifestListeners) notify(manifest);\n }\n\n /**\n * Bind a document to this engine and a surface.\n *\n * Cheap: the expensive things — the renderer, registered fonts, decoded images,\n * shaped paragraphs — belong to the engine and are shared across every\n * session it opens.\n */\n open(options: OpenOptions): Session {\n return new Session(this as Engine, options);\n }\n\n /** Whether a document naming `key` can be compiled here. */\n knows(key: string): boolean {\n return this._registry.hasNode(key);\n }\n\n /**\n * Read-only introspection of this engine's node/command vocabulary — a\n * type's declared commands and each one's own `command({ args })`\n * descriptors, for a host that renders per-command UI from them (e.g.\n * which prop keys a `rotateTo` animates). Register or replace a type\n * through `registerNode`/`registerShader` instead; this getter exists for\n * reading the table those build, not for mutating it.\n */\n get registry(): Registry {\n return this._registry;\n }\n\n /**\n * Registers a node type at runtime — a class, or a TS source string\n * compiled through `dynamicNodes` (see `EngineOptions.dynamicNodes`).\n *\n * Always `async`: one calling convention whether the argument resolves\n * immediately (a class) or needs compiling first (a string).\n */\n async registerNode(\n nodeOrSource: NodeConstructor | string,\n options?: { replace?: boolean },\n ): Promise<NodeConstructor> {\n if (typeof nodeOrSource === \"string\") {\n return this._registry.addNodeFromSource(nodeOrSource, options);\n }\n this._registry.addNode(nodeOrSource, options);\n return nodeOrSource;\n }\n\n /**\n * Registers a shader pack at runtime, under an explicit key — see\n * `Registry.addShader` for why the key is never inferred from the pack.\n */\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\n return this._registry.addShader(key, pack, options);\n }\n\n dispose(): void {\n this._manifestListeners.clear();\n this.platform.dispose?.();\n }\n\n /**\n * The node/shader/lerp vocabulary this engine's documents compile\n * against. Not part of the public surface — reach it through\n * `registerNode`/`registerShader`/`knows` instead. A `Session` (same\n * package) still reads this directly; nothing enforces that at the type\n * level, the same un-enforced convention `_onManifestChange` below\n * already uses.\n */\n readonly _registry: Registry;\n private _manifest: AssetManifest;\n private readonly _exporter: Exporter;\n /** Sessions subscribe so a `setManifest` reaches their live catalogs. */\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\n\n /** @internal — a `Session` registers here for the life of its catalog. */\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\n this._manifestListeners.add(notify);\n return () => this._manifestListeners.delete(notify);\n }\n}\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\n\n\n/**\n * Stackable audio player driven by the AssetManager.\n *\n * The AssetManager decides which audio data is needed within the current\n * look-ahead window and pushes it in via {@link append}; the device caches the\n * decoded form, schedules the matching {@link AudioRequest}s via\n * {@link schedule}, and drives playback through {@link syncTo} on each tick.\n */\nexport abstract class AudioSink {\n /**\n * Whether pushing the audio working set to this device does anything at all.\n *\n * False for a sink that discards everything — an export, whose audio is mixed\n * offline in a single pass at the end. `AssetManager.syncAudio` runs on every\n * frame and rebuilds a `Set`, a per-request id string and a sorted signature\n * each time; against such a device every one of those calls lands on a no-op,\n * so the work is skipped rather than done and thrown away.\n */\n get schedulesAudio(): boolean {\n return true;\n }\n\n /** True if decoded data for `src` is already cached on the device. */\n abstract has(src: string): boolean;\n\n /**\n * Decode and stack `data` under `src`. Idempotent — repeat calls for an\n * already-cached `src` are no-ops.\n */\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\n\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\n abstract retain(keep: ReadonlySet<string>): void;\n\n /**\n * Set the working set of audio requests for the current look-ahead window.\n * Requests no longer present are stopped; new ones become eligible for\n * playback via {@link syncTo} as soon as their data is appended.\n */\n abstract schedule(requests: readonly AudioRequest[]): void;\n\n /**\n * Start/stop scheduled sources to match `clipTime`. Called every tick.\n * Sources whose data has not yet been appended are skipped until it is.\n */\n abstract syncTo(clipTime: number): void;\n\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\n abstract stop(): void;\n\n /**\n * Mute or unmute all output. Default is a no-op for devices that produce no\n * sound (e.g. export/noop sinks).\n */\n setMuted(muted: boolean): void {}\n\n /**\n * Set the linear gain applied to all output, on top of each request's own\n * `volume`. Independent of {@link setMuted} — unmuting restores this level\n * rather than resetting to 1, so a host can hold a volume slider and a mute\n * button without the two clobbering each other.\n *\n * Default is a no-op, as for {@link setMuted}.\n */\n setVolume(volume: number): void {}\n\n dispose(): void {\n this.stop();\n }\n}\n", "import { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetNotLoadedError } from \"@/assets/errors\";\nimport { AssetRecord } from \"@/assets/record\";\nimport { Size2D } from \"@/attributes/layout/size\";\n\n/**\n * How an adapter picks the resolution to decode media at, and how strict it is\n * about what it cannot load.\n *\n * `\"exact\"` — export, stills, screenshots: the level follows the current draw\n * alone, so a frame is the same pixels whatever was drawn before it on a reused\n * adapter, and a font family the manifest cannot describe is refused rather\n * than shaped against the fallback face. `\"interactive\"` — preview: reuse\n * whatever resident level is already good enough, and upgrade in the\n * background; an undescribed family draws in the fallback face until a manifest\n * describes it.\n */\nexport type DecodePolicy = \"exact\" | \"interactive\";\n\nexport abstract class StorageAdapter {\n protected catalog: AssetCatalog;\n protected viewport: Size2D;\n constructor(catalog: AssetCatalog, viewport: Size2D) {\n this.catalog = catalog;\n this.viewport = viewport;\n }\n\n /**\n * Point the adapter at a different asset catalog, keeping every decode it has\n * already cached.\n *\n * Safe because the catalog supplies *metadata* (durations, intrinsic sizes)\n * while the caches are keyed by source URL: a src the new catalog drops leaves\n * an orphaned decode, and a src it adds simply isn't cached yet. Neither is a\n * correctness problem, which is what lets a long-lived renderer take an\n * updated manifest without paying to re-decode everything still in use.\n *\n * The viewport has no such setter; a host that changes output size rebuilds\n * the adapter.\n */\n setCatalog(catalog: AssetCatalog): void {\n this.catalog = catalog;\n }\n /**\n * Every asset src whose loadXxx is currently in flight, mapped to its\n * pending promise. The render path awaits these to guarantee no draw\n * happens while a load is still resolving. Cleared on completion.\n */\n protected inFlightLoads = new Map<string, Promise<void>>();\n /** Keys of assets that have been fully loaded and are ready to use. */\n protected cachedAssets = new Set<string>();\n\n // ─── Asset loading dispatch ───────────────────────────────────────────────\n\n /** Whether `key` has finished loading and is usable now. */\n isLoaded(key: string): boolean {\n return this.cachedAssets.has(key);\n }\n\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\n const existing = this.inFlightLoads.get(key);\n if (existing) return existing;\n if (this.cachedAssets.has(key)) return;\n\n const job = this.runLoad(key, value);\n this.inFlightLoads.set(key, job);\n try {\n await job;\n } finally {\n this.inFlightLoads.delete(key);\n }\n }\n\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\n let loaded = true;\n switch (value.type) {\n case 'image':\n await this.loadImage(key);\n break;\n case 'video':\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\n break;\n case 'font': {\n const { fontFamily, fontWeight } = this.parseFontKey(key);\n loaded = await this.loadFont(key, fontFamily, fontWeight);\n if (!loaded && this.getDecodePolicy() === \"exact\") {\n throw new AssetNotLoadedError(\n \"font\",\n fontFamily,\n `The manifest has no font entry for \"${fontFamily}\", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`,\n );\n }\n break;\n }\n case 'audio':\n // Audio files are loaded on-demand via fetchAudioData / syncAudio, not through loadAsset.\n break;\n case 'loader':\n // Loaders are opaque callbacks run directly by the AssetManager and\n // never dispatched through the storage adapter.\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\n default: {\n const _exhaustive: never = value;\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\n }\n }\n\n // Only a load that actually happened is cached. This matters for exactly\n // one case: a font family the manifest cannot describe. Caching it anyway\n // marked the family handled for the life of this adapter, so a manifest\n // that *later* described it — which is what installing a typeface does,\n // folded into the live manifest without rebuilding the controller — could\n // never load it, and the text stayed in the fallback face until something\n // else tore the adapter down.\n if (loaded) this.cachedAssets.add(key);\n }\n\n // ─── Font key parsing ─────────────────────────────────────────────────────\n\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\n const [fontFamily, weightStr] = key.split('@');\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\n return {\n fontFamily: fontFamily || key,\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\n };\n }\n\n // ─── Abstract load methods ────────────────────────────────────────────────\n\n /** Decode resolution follows the draw, so a load names only the source. */\n abstract loadImage(src: string): Promise<void>;\n abstract loadVideo(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract loadAudio(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\n /**\n * Register every face of `fontFamily` the catalog describes.\n *\n * Returns whether the family was actually loaded. `false` means the manifest\n * has no entry for it. Not an error while previewing (an undescribed family\n * shapes against the platform fallback, which is what a system font name\n * does), but a blocking caller refuses it — see {@link DecodePolicy} — and\n * it must not be remembered as handled either way: see the note in\n * {@link runLoad}.\n */\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\n\n // ─── Frame warming ────────────────────────────────────────────────────────\n\n /**\n * Decode any exact media frames the most recent render asked for but couldn't\n * satisfy synchronously (e.g. a video frame at a freshly-seeked timestamp),\n * and report whether there were any. A blocking caller (seek / screenshot /\n * export) renders once, awaits this, and re-renders while it returns true so\n * the frame is accurate even on a cold jump. Defaults to a no-op for adapters\n * with no time-varying media.\n */\n async warmPendingVideo(): Promise<boolean> {\n return false;\n }\n\n setDecodePolicy(policy: DecodePolicy): void {\n // no-op for adapters that decode at one resolution\n }\n\n /** Read back so a caller that borrows the adapter can restore it. */\n getDecodePolicy(): DecodePolicy {\n return \"interactive\";\n }\n\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\n hasPendingDecodes(): boolean {\n return false;\n }\n\n /**\n * Settle what the last render could not draw acceptably under the current\n * policy — video frames, every exact image level under `\"exact\"`, a source\n * drawn with nothing resident under `\"interactive\"` — and report whether there\n * was any. See `renderSettled`.\n *\n * Defaults to {@link warmPendingVideo} so an adapter written against it keeps\n * working; that alias goes away after one release.\n */\n async warmPendingDecodes(): Promise<boolean> {\n return this.warmPendingVideo();\n }\n\n /**\n * Whether an `\"interactive\"` decode is on its way that would draw the last\n * render sharper. Not something a paint waits for: a preview shows what is\n * resident and repaints when {@link warmPendingUpgrades} reports a landing.\n */\n hasPendingUpgrades(): boolean {\n return false;\n }\n\n /** Await the upgrades {@link hasPendingUpgrades} reports; whether one landed. */\n async warmPendingUpgrades(): Promise<boolean> {\n return false;\n }\n\n /**\n * Notify the adapter whether playback is live. Time-varying media (video) uses\n * this to prefetch ahead only while playing and to quiesce on pause, so a\n * paused timeline doesn't drain a backlog of stale decodes. No-op by default.\n */\n setPlaying(playing: boolean): void {\n // no-op for adapters with no time-varying media\n }\n\n // ─── Lifecycle ────────────────────────────────────────────────────────────\n\n dispose(): void {\n this.inFlightLoads.clear();\n this.cachedAssets.clear();\n }\n}\n", "import { integrateSpeedToClipTime, sourceTimeAtClipElapsed } from './attributes/audio/ramp';\nimport type { NodeEffect } from './attributes/shape/effects/union';\nimport { ClipTimeline } from './document/timeline';\nimport type { VisualDocument } from './document/types';\n\n// The names the document API had before \"scene\" became \"clip\", kept until 1.0.\n\n/** @deprecated Renamed to {@link VisualDocument}. */\nexport type SceneDocument = VisualDocument;\n/** @deprecated Renamed to {@link ClipTimeline}. */\nexport const SceneTimeline = ClipTimeline;\n/** @deprecated Renamed to {@link ClipTimeline}. */\nexport type SceneTimeline = ClipTimeline;\n/** @deprecated Renamed to {@link NodeEffect}. */\nexport type SceneEffect = NodeEffect;\n/** @deprecated Renamed to {@link integrateSpeedToClipTime}. */\nexport const integrateSpeedToSceneTime = integrateSpeedToClipTime;\n/** @deprecated Renamed to {@link sourceTimeAtClipElapsed}. */\nexport const sourceTimeAtSceneElapsed = sourceTimeAtClipElapsed;\n"],
5
+ "mappings": "w9HAgBO,IAAMA,GAAUC,EAYVC,GAAuBC,EC8D7B,IAAMC,EAA2B,CAAE,MAAO,KAAM,OAAQ,IAAI,EACtDC,EAAc,GAEdC,GAAoD,CAAE,SAAUF,EAAkB,IAAKC,CAAW,EAClGE,EAAgC,CAAE,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,KAAM,CAAA,CAAE,EAiB3EC,EAAP,KAAa,CAKF,SAJJ,SACA,IAET,YACaC,EACTC,EAAyB,CAAA,EAAE,CADlB,KAAA,SAAAD,EAGT,KAAK,UAAY,IAAIE,EAAS,CAC1B,MAAOD,EAAQ,MACf,QAASA,EAAQ,QACjB,MAAOA,EAAQ,MACf,aAAcA,EAAQ,aACtB,OAAQA,EAAQ,OACnB,EACD,KAAK,SAAWA,EAAQ,UAAYN,EACpC,KAAK,IAAMM,EAAQ,KAAOL,EAC1B,KAAK,UAAYK,EAAQ,UAAYH,EACrC,KAAK,UAAYE,EAAS,eAAc,CAC5C,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAMA,YAAYG,EAAuB,CAC/B,KAAK,UAAYA,EACjB,QAAWC,KAAU,KAAK,mBAAoBA,EAAOD,CAAQ,CACjE,CASA,KAAKF,EAAoB,CACrB,OAAO,IAAII,EAAQ,KAAgBJ,CAAO,CAC9C,CAGA,MAAMK,EAAW,CACb,OAAO,KAAK,UAAU,QAAQA,CAAG,CACrC,CAUA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CASA,MAAM,aACFC,EACAN,EAA+B,CAE/B,OAAI,OAAOM,GAAiB,SACjB,KAAK,UAAU,kBAAkBA,EAAcN,CAAO,GAEjE,KAAK,UAAU,QAAQM,EAAcN,CAAO,EACrCM,EACX,CAMA,eAAeD,EAAaE,EAAeP,EAA+B,CACtE,OAAO,KAAK,UAAU,UAAUK,EAAKE,EAAMP,CAAO,CACtD,CAEA,SAAO,CACH,KAAK,mBAAmB,MAAK,EAC7B,KAAK,SAAS,UAAS,CAC3B,CAUS,UACD,UACS,UAEA,mBAAqB,IAAI,IAG1C,kBAAkBG,EAAkC,CAChD,YAAK,mBAAmB,IAAIA,CAAM,EAC3B,IAAM,KAAK,mBAAmB,OAAOA,CAAM,CACtD,GCzNE,IAAgBK,EAAhB,KAAyB,CAU3B,IAAI,gBAAc,CACd,MAAO,EACX,CAkCA,SAASC,EAAc,CAAS,CAUhC,UAAUC,EAAc,CAAS,CAEjC,SAAO,CACH,KAAK,KAAI,CACb,GCpDE,IAAgBC,EAAhB,KAA8B,CACtB,QACA,SACV,YAAYC,EAAuBC,EAAgB,CAC/C,KAAK,QAAUD,EACf,KAAK,SAAWC,CACpB,CAeA,WAAWD,EAAqB,CAC5B,KAAK,QAAUA,CACnB,CAMU,cAAgB,IAAI,IAEpB,aAAe,IAAI,IAK7B,SAASE,EAAW,CAChB,OAAO,KAAK,aAAa,IAAIA,CAAG,CACpC,CAEA,MAAM,UAAUA,EAAaC,EAAkB,CAC3C,IAAMC,EAAW,KAAK,cAAc,IAAIF,CAAG,EAC3C,GAAIE,EAAU,OAAOA,EACrB,GAAI,KAAK,aAAa,IAAIF,CAAG,EAAG,OAEhC,IAAMG,EAAM,KAAK,QAAQH,EAAKC,CAAK,EACnC,KAAK,cAAc,IAAID,EAAKG,CAAG,EAC/B,GAAI,CACA,MAAMA,CACV,SACI,KAAK,cAAc,OAAOH,CAAG,CACjC,CACJ,CAEQ,MAAM,QAAQA,EAAaC,EAAkB,CACjD,IAAIG,EAAS,GACb,OAAQH,EAAM,KAAM,CAChB,IAAK,QACD,MAAM,KAAK,UAAUD,CAAG,EACxB,MACJ,IAAK,QACD,MAAM,KAAK,UAAUA,EAAKC,EAAM,WAAYA,EAAM,SAAUA,EAAM,UAAWA,EAAM,OAAO,EAC1F,MACJ,IAAK,OAAQ,CACT,GAAM,CAAE,WAAAI,EAAY,WAAAC,CAAU,EAAK,KAAK,aAAaN,CAAG,EAExD,GADAI,EAAS,MAAM,KAAK,SAASJ,EAAKK,EAAYC,CAAU,EACpD,CAACF,GAAU,KAAK,gBAAe,IAAO,QACtC,MAAM,IAAIG,EACN,OACAF,EACA,uCAAuCA,CAAU,8JAA8J,EAGvN,KACJ,CACA,IAAK,QAED,MACJ,IAAK,SAGD,MAAM,IAAI,MAAM,oEAAoE,EACxF,QAAS,CACL,IAAMG,EAAqBP,EAC3B,MAAM,IAAI,MAAM,2BAA4BO,EAA4B,IAAI,EAAE,CAClF,CACJ,CASIJ,GAAQ,KAAK,aAAa,IAAIJ,CAAG,CACzC,CAIU,aAAaA,EAAW,CAC9B,GAAM,CAACK,EAAYI,CAAS,EAAIT,EAAI,MAAM,GAAG,EACvCM,EAAaG,EAAY,SAASA,EAAW,EAAE,EAAI,IACzD,MAAO,CACH,WAAYJ,GAAcL,EAC1B,WAAY,MAAMM,CAAU,EAAI,IAAMA,EAE9C,CA2CA,MAAM,kBAAgB,CAClB,MAAO,EACX,CAEA,gBAAgBI,EAAoB,CAEpC,CAGA,iBAAe,CACX,MAAO,aACX,CAGA,mBAAiB,CACb,MAAO,EACX,CAWA,MAAM,oBAAkB,CACpB,OAAO,KAAK,iBAAgB,CAChC,CAOA,oBAAkB,CACd,MAAO,EACX,CAGA,MAAM,qBAAmB,CACrB,MAAO,EACX,CAOA,WAAWC,EAAgB,CAE3B,CAIA,SAAO,CACH,KAAK,cAAc,MAAK,EACxB,KAAK,aAAa,MAAK,CAC3B,GC1NG,IAAMC,GAAgBC,EAMhBC,GAA4BC,EAE5BC,GAA2BC",
6
+ "names": ["Precomp", "AssetTimeline", "createPrecompProfile", "createAssetTimelineProfile", "DEFAULT_VIEWPORT", "DEFAULT_FPS", "DEFAULT_OUTPUT", "EMPTY_MANIFEST", "Engine", "platform", "options", "Registry", "manifest", "notify", "Session", "key", "nodeOrSource", "pack", "AudioSink", "muted", "volume", "StorageAdapter", "catalog", "viewport", "key", "value", "existing", "job", "loaded", "fontFamily", "fontWeight", "AssetNotLoadedError", "_exhaustive", "weightStr", "policy", "playing", "SceneTimeline", "ClipTimeline", "integrateSpeedToSceneTime", "integrateSpeedToClipTime", "sourceTimeAtSceneElapsed", "sourceTimeAtClipElapsed"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@motionscript/core",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.9",
4
4
  "exports": {
5
5
  ".": "dist/browser/index.js",
6
+ "./experimental": "dist/browser/experimental.js",
6
7
  "./component": "dist/browser/component.js",
7
- "./sdk": "dist/browser/sdk.js",
8
- "./jsx/jsx-runtime": "dist/browser/jsx-jsx-runtime.js",
9
- "./jsx/jsx-dev-runtime": "dist/browser/jsx-jsx-dev-runtime.js"
8
+ "./sdk": "dist/browser/sdk.js"
10
9
  },
11
10
  "peers": [],
12
- "assets": {}
11
+ "assets": {},
12
+ "thirdParty": []
13
13
  }
@@ -1,2 +1,2 @@
1
- import{$ as x,$b as ie,$d as sr,$e as Jr,Ac as Oe,Ae as Gr,Bb as _,Bc as ge,Be as Vr,C as s,Cc as Re,D as p,Da as T,E as i,Ec as Te,Fc as Ne,Fe as kr,Ga as N,Ge as wr,Gg as mo,Ha as L,Hb as H,He as Fr,Hg as lo,Ia as A,Ib as J,Id as _e,Ie as jr,Ig as co,Jb as U,Jg as Do,Kb as W,Kg as uo,Ld as He,Le as Ir,Lg as xo,Ma as E,Mb as X,Me as Mr,Mg as fo,Na as B,Nd as Je,Ne as br,O as m,Oa as G,Oe as zr,Pb as Y,Pd as Ue,Pe as qr,Qb as Z,Qd as We,Qe as Kr,Ra as V,Rb as $,Rd as Xe,Re as Qr,Sa as k,Sd as Ye,Ta as w,Tb as ee,Td as Ze,Tf as to,Ua as F,Ub as re,Ud as $e,Vb as oe,Vd as er,W as l,Wa as j,Wb as te,Wd as rr,We as _r,X as d,Xa as I,Xb as ae,Xd as or,Y as c,Ya as M,Yb as ne,Yc as Le,Yd as tr,Z as D,Za as b,Zb as se,Zd as ar,Ze as Hr,_ as u,_a as z,_b as pe,_d as nr,_f as ao,a as e,ac as me,ae as pr,ba as f,bc as le,bd as Ae,be as ir,bf as Ur,ca as P,cc as de,ce as mr,d as o,dc as ce,de as lr,e as t,ea as h,ec as De,ee as dr,fa as C,fe as cr,ga as S,gb as q,gd as Ee,ge as Dr,hc as ue,hd as Be,he as ur,ib as K,id as Ge,ie as xr,jd as Ve,je as fr,ka as v,kd as ke,ke as Pr,la as y,ld as we,le as hr,ma as O,md as Fe,me as Cr,na as g,ne as Sr,oa as R,oc as xe,oe as vr,pc as fe,pe as yr,pf as Wr,pg as no,qc as Pe,qe as Or,qf as Xr,qg as so,rc as he,rd as je,rf as Yr,sc as Ce,sd as Ie,se as gr,sf as Zr,tc as Se,te as Rr,tf as $r,ud as Me,ue as Tr,uf as eo,ug as po,vd as be,ve as Nr,vf as ro,vg as io,wc as ve,wd as ze,we as Lr,xc as ye,xd as qe,xe as Ar,yd as Ke,ye as Er,zb as Q,zd as Qe,ze as Br,zf as oo}from"./chunks/chunk-P3XQCHDW.js";import{a as r,c as a,g as n}from"./chunks/chunk-VJQMKHGQ.js";export{l as AdjustmentChain,c as Adjustments,gr as AmbientLight3D,Ar as AreaLight3D,er as AudioBus,q as AudioFilters,ke as BooleanGroup,nr as Box3D,Ge as Camera,Er as Camera3D,Ee as Canvas2D,Vr as Canvas3D,ur as Capsule3D,cr as Circle3D,Te as Clip,mr as Cone3D,ye as ContextMap,ir as Cylinder3D,Ie as DefaultTextStyle,Tr as DirectionalLight3D,p as EffectChain,i as Effects,be as Ellipse,Gr as Environment3D,Kr as ExpressionError,fr as Extrude3D,m as Fills,Br as Fog3D,Wr as Geo,C as Graphics2D,v as Graphics3D,He as GridPattern,tr as Group3D,Rr as HemisphereLight3D,u as ImageFilters,Cr as Instances3D,Pr as Lathe3D,ze as Line,vr as Line3D,_e as LineGrid,we as MaskGroup,Xr as Mat,ar as Mesh3D,Or as Model3D,Re as Node,Ne as Node2D,or as Node3D,Ae as NodeAudio,Ye as NumberNode,Ve as OrbitCamera,Le as PaintNode,qe as Path,h as PathBuilder,pr as Plane3D,Nr as PointLight3D,Sr as Points3D,Ke as Polygon,Qe as Polygram,xr as Polyhedron3D,Fe as Provider,wr as ROOT_NODE_ID,fo as Random,Me as Rect,Ur as Registry,y as RenderContext3D,We as RichText,Dr as Ring3D,Ze as RotatedBox,g as Scene3D,xo as SeedGenerator,Be as ShapeNode,K as Sound,rr as SoundNode,sr as Sphere3D,Lr as SpotLight3D,yr as Sprite3D,Yr as Tex,Xe as Text,Ue as TextBase,Je as TextSelection,je as ThemeProvider,lr as Torus3D,dr as TorusKnot3D,hr as Tube3D,$e as Video,d as VideoAdjustmentChain,D as VideoAdjustments,x as VideoFilters,f as alignmentOps,me as alignmentProperty,qr as asProjectDocument,Hr as assertValidDocument,G as clamp,io as collectBoxes,ae as colorProperty,ge as command,Se as commandParallel,Ce as commandSequence,Mr as commandSpan,o as cornerRadiusOps,ne as cornerRadiusProperty,t as cornerStyleOps,se as cornerStyleProperty,ve as createContext,uo as createRef,br as documentDuration,Pe as driveCommand,k as easeIn,F as easeInOut,w as easeOut,jr as effectiveSpan,te as effectsProperty,oo as evaluateParametric,$r as evaluateRoundedBox,Qr as expressionOps,M as fadeIn,b as fadeOut,N as fillOps,ee as fillProperty,J as flowOps,Do as generateList,Oe as getCommandMeta,kr as hasTimeline,I as hold,P as insetsOps,ie as insetsProperty,xe as isCommand,z as isCurve,De as isKnownShaderProperty,zr as isProjectDocument,X as lerpEuler3,r as lerpNumber,a as lerpVector2,W as lerpVector3,V as linear,he as loopCommand,fe as makeCommand,Jr as node,so as nodeBox,Fr as nodeSpan,Z as normalizeQuaternion,ue as normalizeShaderPack,no as parentPlanePointAt,lo as parseCSV,n as parseColor,co as parseData,pe as pathProperty,po as pickNode,ao as placeTracks,H as property,$ as quaternionFromEuler,j as ramp,to as resolveCameraPlacement,e as resolveCorners,T as resolveFill,S as resolveFill3D,mo as resolveProjectDocument,s as resolveShaderProperties,L as resolveShadow,O as resolveShadows3D,E as resolveStroke,R as resolveSurfaceSource,U as resolveVector3,Zr as segmentsOf,eo as shadowCasts,A as shadowOps,oe as shadowProperty,ro as shadowReceives,_ as sizeInputOps,de as sizeProperty,Y as slerpQuaternion,Q as space3dOps,B as strokeOps,re as strokeProperty,ce as textProperty,Ir as untimed,_r as validateDocument,le as vector2Property};
1
+ import{$ as xo,$a as tr,$b as cr,A as we,Ac as Cr,B as Le,Ba as jo,Bc as Or,C as Me,Ca as ko,D as Be,Da as Go,E as be,Ea as _o,F as je,G as Ge,H as _e,Ha as zo,I as ze,Ia as Ho,J as Qe,Ja as qo,K as Ue,Ka as Ko,L as Je,La as Qo,M as We,Ma as Uo,Mc as vr,N as Xe,Na as Jo,Nc as Tr,O as Ye,Oc as Ar,P as $e,Pa as Wo,Pc as Rr,Q as eo,Qa as Xo,Qc as Er,R as oo,Ra as Yo,Rc as Vr,Sc as yr,T as ro,U as no,Ua as Zo,V as so,Va as $o,W as mo,X as po,Y as io,Ya as er,Z as lo,Za as or,_ as fo,_a as rr,aa as co,ab as ar,ba as Do,ca as uo,d as K,da as ho,ea as Po,fa as go,ga as So,ha as Co,ia as Oo,ib as nr,j as W,ja as vo,ka as To,la as Ao,m as X,ma as Ro,oa as Eo,pa as Vo,pb as sr,qa as yo,qb as mr,r as De,ra as Io,rb as pr,rc as Dr,s as Ae,sa as No,sb as ir,sc as ur,t as Re,ta as Fo,tb as lr,tc as hr,u as Ee,ua as wo,ub as fr,uc as Pr,v as Ve,va as Lo,vb as dr,vc as gr,w as ye,wa as Mo,wc as Sr,x as Ie,xa as bo,y as Ne,z as Fe,zb as xr}from"./chunks/chunk-N4WSN5WY.js";import{$ as u,$a as j,$d as ve,C as m,Ce as qe,D as p,Dc as ae,Ed as ue,Fd as he,H as i,Ha as y,Hc as ne,Hd as Pe,I as l,Ic as se,Ie as Ke,J as f,Jc as me,Je as Ze,Ke as to,Lc as pe,Ma as I,Na as F,Nd as ge,Oa as w,Oc as ie,Od as Se,Pc as le,Q as d,Qc as fe,Rb as Q,Tb as U,Va as L,Vd as Ce,Ve as ao,Wa as M,Wc as de,Wd as Oe,Xa as B,Xb as J,Y as x,Z as c,_ as D,_a as b,_e as Bo,a as e,aa as h,ab as k,ba as P,bb as G,bd as xe,cd as ce,d as r,da as g,e as t,ea as S,ha as C,he as Te,ia as O,ja as v,kb as _,lb as z,le as ke,mb as H,n as s,pa as T,pc as Y,qc as Z,sc as $,ta as A,tc as ee,ua as R,uc as oe,va as E,wa as V,xc as re,xe as He,yb as q,yc as te}from"./chunks/chunk-WZSI3GSK.js";import"./chunks/chunk-4BDLFEOC.js";import{b as o,d as a,h as n,m as N}from"./chunks/chunk-CCGVIR4F.js";export{x as AdjustmentChain,D as Adjustments,ke as Aim,Eo as AmbientLight3D,Fo as AreaLight3D,eo as AudioBus,q as AudioEffects,be as BooleanGroup,mo as Box3D,Ge as Camera,wo as Camera3D,De as Canvas2D,bo as Canvas3D,ho as Capsule3D,Do as Circle3D,de as Clip,fo as Cone3D,te as ContextMap,lo as Cylinder3D,Uo as DOCUMENT_FORMAT_VERSION,We as DefaultTextStyle,yo as DirectionalLight3D,Jo as DocumentTooNewError,l as EffectChain,f as Effects,Re as Ellipse,Mo as Environment3D,ue as ExpressionError,go as Extrude3D,d as Fills,Ce as Flow,Lo as Fog3D,sr as Geo,O as Graphics2D,A as Graphics3D,no as Group3D,Vo as HemisphereLight3D,Le as Hexagon,h as ImageFilters,Oo as Instances3D,So as Lathe3D,To as Line3D,je as MaskGroup,mr as Mat,ao as Material,so as Mesh3D,Ro as Model3D,Ue as NumberNode,Me as Octagon,_e as OrbitCamera,ve as Paint,Ie as Path,C as PathBuilder,ye as PathShape,we as Pentagon,io as Plane3D,Io as PointLight3D,vo as Points3D,Ee as Polygon,Ve as Polygram,Po as Polyhedron3D,Xe as Provider,ko as ROOT_NODE_ID,yr as Random,Ae as Rect,er as Registry,R as RenderContext3D,Je as RichText,Fe as RightTriangle,uo as Ring3D,ze as RotatedBox,V as Scene3D,Vr as SeedGenerator,Te as Shapes,K as Sound,$e as SoundNode,po as Sphere3D,No as SpotLight3D,Ao as Sprite3D,Be as Star,pr as Tex,Qe as Text,He as TextLayout,Ye as ThemeProvider,xo as Torus3D,co as TorusKnot3D,Ne as Triangle,Co as Tube3D,Ke as Typeface,Se as Types,oo as Video,c as VideoAdjustmentChain,u as VideoAdjustments,P as VideoFilters,Bo as View3D,g as alignmentOps,Qo as asProjectDocument,Zo as assertValidDocument,ur as childPlanePointAt,B as clamp,Or as collectBoxes,s as colorOps,oe as commandParallel,ee as commandSequence,Ho as commandSpan,Oe as commandsFor,ge as component2d,to as component3d,Ze as componentAudio,r as cornerRadiusOps,t as cornerStyleOps,re as createContext,Er as createRef,m as describeEffect,qo as documentDuration,Wo as documentFormatVersion,j as easeIn,G as easeInOut,k as easeOut,p as effectDescriptors,_o as effectiveSpan,xr as evaluateParametric,lr as evaluateRoundedBox,he as expressionOps,I as fillOps,xe as findNode2D,ne as flowOps,ce as frameIn,Rr as generateList,ae as getCommandMeta,gr as handleValueAt,jo as hasTimeline,z as hold,S as insetsOps,Y as isCommand,W as isKnownShaderProperty,Ko as isProjectDocument,H as isRamp,pe as lerpEuler3,o as lerpNumber,a as lerpVector2,me as lerpVector3,b as linear,$ as loopCommand,Z as makeCommand,Xo as migrateDocument,Pe as migrateNodeProps,$o as missingNodeOf,Sr as nodeBox,Pr as nodeHandlesAt,Go as nodeSpan,or as nodeTypeIsA,le as normalizeQuaternion,X as normalizeShaderPack,rr as parentIssue,Dr as parentPlanePointAt,Tr as parseCSV,n as parseColor,Ar as parseData,N as pathOps,Cr as pickNode,cr as placeTracks,ar as placementIssues,qe as provides,fe as quaternionFromEuler,_ as ramp,hr as reparentPlacementAt,ro as resolveCameraPlacement,e as resolveCorners,y as resolveFill,T as resolveFill3D,vr as resolveProjectDocument,i as resolveShaderProperties,F as resolveShadow,E as resolveShadows3D,L as resolveStroke,v as resolveSurfaceSource,se as resolveVector3,ir as segmentsOf,fr as shadowCasts,w as shadowOps,dr as shadowReceives,tr as siblingIssue,U as sizeInputOps,ie as slerpQuaternion,Q as space3dOps,M as strokeOps,J as textOps,nr as toPathString,zo as untimed,Yo as validateDocument};
2
2
  //# sourceMappingURL=sdk.js.map
@@ -1,28 +1,19 @@
1
1
  /**
2
2
  * What a **component package** built on this engine needs, and cannot supply
3
- * itself.
3
+ * itself: number formatting, the text a host falls back to, the named shape
4
+ * outlines and the orbit-camera lerps.
4
5
  *
5
- * A subpath rather than the main barrel, and the reason is worth stating:
6
- * none of this is engine API. A scene author never reaches for it. It is the
7
- * machinery a `@motionscript/*` component uses to be a component — to
8
- * choreograph an entrance that can be seeked, to declare the assets of paints
9
- * it computes rather than stores, to ask what family a host's text falls back
10
- * to. Putting it in the main barrel would offer three more names to everyone
11
- * who wanted a `Rect`, and one of them (`hold`) already means something else
12
- * there — audio automation has its own, and the collision is how this surface
13
- * announced itself.
6
+ * A subpath rather than the main barrel because none of this is engine API: a
7
+ * scene author never reaches for it.
14
8
  *
15
9
  * This file is a **re-export barrel only** — everything it names lives beside
16
- * whatever actually owns it (the path model beside the Path node, the number
17
- * formatter beside the Number node, the orbit-camera lerps under `attributes/`)
18
- * rather than duplicated or reinvented here.
10
+ * whatever actually owns it (the number formatter beside the Number node, the
11
+ * orbit-camera lerps under `attributes/`) rather than duplicated here.
19
12
  */
20
- export * from "./tween/seekable.js";
21
- export * from "./nodes/node/declare-paints.js";
22
- export * from "./nodes/node/text-defaults.js";
13
+ export * from "./components/builtins/text/text-defaults.js";
23
14
  export * from "./util/metrics.js";
24
- export * from "./nodes/text/number-format.js";
25
- export * from "./nodes/text/number-pattern.js";
15
+ export * from "./components/builtins/text/number-format.js";
16
+ export * from "./components/builtins/text/number-pattern.js";
26
17
  export * from "./attributes/render3d/orbit.js";
27
- export * from "./nodes/geometry/shape-outline.js";
18
+ export * from "./components/builtins/geometry/shape-outline.js";
28
19
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,0CAA0C,CAAA;AACxD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8CAA8C,CAAA"}
package/dist/component.js CHANGED
@@ -1,28 +1,19 @@
1
1
  /**
2
2
  * What a **component package** built on this engine needs, and cannot supply
3
- * itself.
3
+ * itself: number formatting, the text a host falls back to, the named shape
4
+ * outlines and the orbit-camera lerps.
4
5
  *
5
- * A subpath rather than the main barrel, and the reason is worth stating:
6
- * none of this is engine API. A scene author never reaches for it. It is the
7
- * machinery a `@motionscript/*` component uses to be a component — to
8
- * choreograph an entrance that can be seeked, to declare the assets of paints
9
- * it computes rather than stores, to ask what family a host's text falls back
10
- * to. Putting it in the main barrel would offer three more names to everyone
11
- * who wanted a `Rect`, and one of them (`hold`) already means something else
12
- * there — audio automation has its own, and the collision is how this surface
13
- * announced itself.
6
+ * A subpath rather than the main barrel because none of this is engine API: a
7
+ * scene author never reaches for it.
14
8
  *
15
9
  * This file is a **re-export barrel only** — everything it names lives beside
16
- * whatever actually owns it (the path model beside the Path node, the number
17
- * formatter beside the Number node, the orbit-camera lerps under `attributes/`)
18
- * rather than duplicated or reinvented here.
10
+ * whatever actually owns it (the number formatter beside the Number node, the
11
+ * orbit-camera lerps under `attributes/`) rather than duplicated here.
19
12
  */
20
- export * from "./tween/seekable.js";
21
- export * from "./nodes/node/declare-paints.js";
22
- export * from "./nodes/node/text-defaults.js";
13
+ export * from "./components/builtins/text/text-defaults.js";
23
14
  export * from "./util/metrics.js";
24
- export * from "./nodes/text/number-format.js";
25
- export * from "./nodes/text/number-pattern.js";
15
+ export * from "./components/builtins/text/number-format.js";
16
+ export * from "./components/builtins/text/number-pattern.js";
26
17
  export * from "./attributes/render3d/orbit.js";
27
- export * from "./nodes/geometry/shape-outline.js";
18
+ export * from "./components/builtins/geometry/shape-outline.js";
28
19
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA","sourcesContent":["/**\n * What a **component package** built on this engine needs, and cannot supply\n * itself.\n *\n * A subpath rather than the main barrel, and the reason is worth stating:\n * none of this is engine API. A scene author never reaches for it. It is the\n * machinery a `@motionscript/*` component uses to be a component — to\n * choreograph an entrance that can be seeked, to declare the assets of paints\n * it computes rather than stores, to ask what family a host's text falls back\n * to. Putting it in the main barrel would offer three more names to everyone\n * who wanted a `Rect`, and one of them (`hold`) already means something else\n * there — audio automation has its own, and the collision is how this surface\n * announced itself.\n *\n * This file is a **re-export barrel only** — everything it names lives beside\n * whatever actually owns it (the path model beside the Path node, the number\n * formatter beside the Number node, the orbit-camera lerps under `attributes/`)\n * rather than duplicated or reinvented here.\n */\nexport * from \"@/tween/seekable\"\nexport * from \"@/nodes/node/declare-paints\"\nexport * from \"@/nodes/node/text-defaults\"\nexport * from \"@/util/metrics\"\nexport * from \"@/nodes/text/number-format\"\nexport * from \"@/nodes/text/number-pattern\"\nexport * from \"@/attributes/render3d/orbit\"\nexport * from \"@/nodes/geometry/shape-outline\"\n"]}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,0CAA0C,CAAA;AACxD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8CAA8C,CAAA","sourcesContent":["/**\n * What a **component package** built on this engine needs, and cannot supply\n * itself: number formatting, the text a host falls back to, the named shape\n * outlines and the orbit-camera lerps.\n *\n * A subpath rather than the main barrel because none of this is engine API: a\n * scene author never reaches for it.\n *\n * This file is a **re-export barrel only** — everything it names lives beside\n * whatever actually owns it (the number formatter beside the Number node, the\n * orbit-camera lerps under `attributes/`) rather than duplicated here.\n */\nexport * from \"@/components/builtins/text/text-defaults\"\nexport * from \"@/util/metrics\"\nexport * from \"@/components/builtins/text/number-format\"\nexport * from \"@/components/builtins/text/number-pattern\"\nexport * from \"@/attributes/render3d/orbit\"\nexport * from \"@/components/builtins/geometry/shape-outline\"\n"]}
@@ -0,0 +1,62 @@
1
+ import { type Param } from "../../../attributes/audio/ramp.js";
2
+ import type { NodeOf } from "../../../components/factory/api.js";
3
+ import type { NodeAudioProps } from "../../../components/trees/audio/node-audio.js";
4
+ /**
5
+ * The audio built-ins. A sound plays when a command says so: its `play` runs
6
+ * for the command's span, or to the source's end when the command has no length.
7
+ * A document's `sound` row with no `play` of its own gets one over its span.
8
+ */
9
+ /** A clip from the catalog, playing into the buses it sits in. */
10
+ export declare const SoundNode: import("../../../components/factory/api.js").Component<"sound", import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
11
+ readonly src: import("../../../components/factory/api.js").Type<string, string, false>;
12
+ readonly trimStart: 0;
13
+ readonly trimEnd: import("../../../components/factory/api.js").Type<number | undefined, number | undefined, false>;
14
+ readonly loop: false;
15
+ readonly speed: import("../../../components/factory/api.js").Type<Param, Param, false>;
16
+ }>, {
17
+ readonly play: unknown;
18
+ }, readonly [], import("../../../components/trees/audio/node-audio.js").NodeAudio<NodeAudioProps>, import("../../../components/factory/api.js").TreeCallProps<import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
19
+ readonly src: import("../../../components/factory/api.js").Type<string, string, false>;
20
+ readonly trimStart: 0;
21
+ readonly trimEnd: import("../../../components/factory/api.js").Type<number | undefined, number | undefined, false>;
22
+ readonly loop: false;
23
+ readonly speed: import("../../../components/factory/api.js").Type<Param, Param, false>;
24
+ }>, import("../../../components/factory/api.js").BuiltNode<import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
25
+ readonly src: import("../../../components/factory/api.js").Type<string, string, false>;
26
+ readonly trimStart: 0;
27
+ readonly trimEnd: import("../../../components/factory/api.js").Type<number | undefined, number | undefined, false>;
28
+ readonly loop: false;
29
+ readonly speed: import("../../../components/factory/api.js").Type<Param, Param, false>;
30
+ }>, {
31
+ readonly play: unknown;
32
+ }, import("../../../components/trees/audio/node-audio.js").NodeAudio<NodeAudioProps>>>>;
33
+ /** A mix of the sounds and buses in it; `solo` silences its siblings. */
34
+ export declare const AudioBus: import("../../../components/factory/api.js").Component<"audioBus", import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
35
+ readonly solo: false;
36
+ }>, {}, null, import("../../../components/trees/audio/node-audio.js").NodeAudio<NodeAudioProps>, import("../../../components/factory/api.js").TreeCallProps<import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
37
+ readonly solo: false;
38
+ }>, import("../../../components/factory/api.js").BuiltNode<import("../../../components/factory/api.js").Merge<import("../../../components/factory/api.js").BoxAudioState, {
39
+ readonly solo: false;
40
+ }>, {}, import("../../../components/trees/audio/node-audio.js").NodeAudio<NodeAudioProps>>>>;
41
+ export type SoundNode = NodeOf<typeof SoundNode>;
42
+ export type AudioBus = NodeOf<typeof AudioBus>;
43
+ export interface AudioBusProps extends NodeAudioProps {
44
+ /** Silence every other bus that is not itself soloed. */
45
+ solo: boolean;
46
+ }
47
+ export interface SoundNodeProps extends NodeAudioProps {
48
+ /** Path/URL of the audio (or video) asset. Must exist in the asset manifest. */
49
+ src: string;
50
+ /** In-point inside the source file, in seconds. Defaults to 0. */
51
+ trimStart: number;
52
+ /** Out-point inside the source file. Defaults to the source's full length. */
53
+ trimEnd: number | undefined;
54
+ /** Repeat the trimmed clip until it is removed. */
55
+ loop: boolean;
56
+ /**
57
+ * Playback-rate multiplier, pitch included: 2 plays twice as fast and takes
58
+ * half the clip time. A ramp runs over source seconds after `trimStart`.
59
+ */
60
+ speed: Param;
61
+ }
62
+ //# sourceMappingURL=audio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../../src/components/builtins/audio/audio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;;GAIG;AAEH,kEAAkE;AAClE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;6EAsBpB,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,QAAQ;;;;;;kFAGnB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AACjD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC;AAI/C,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD,yDAAyD;IACzD,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IAClD,gFAAgF;IAChF,GAAG,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,mDAAmD;IACnD,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CAChB"}
@@ -0,0 +1,38 @@
1
+ import { lerpParam } from "../../../attributes/audio/ramp.js";
2
+ import { componentAudio } from "../../../components/factory/component-audio.js";
3
+ import { Types } from "../../../components/factory/types.js";
4
+ /**
5
+ * The audio built-ins. A sound plays when a command says so: its `play` runs
6
+ * for the command's span, or to the source's end when the command has no length.
7
+ * A document's `sound` row with no `play` of its own gets one over its span.
8
+ */
9
+ /** A clip from the catalog, playing into the buses it sits in. */
10
+ export const SoundNode = componentAudio({
11
+ key: "sound",
12
+ state: {
13
+ src: Types.custom(undefined),
14
+ trimStart: 0,
15
+ trimEnd: Types.custom(undefined),
16
+ loop: false,
17
+ speed: Types.custom(1, { lerp: lerpParam, kind: "audioParam" }),
18
+ },
19
+ allowedChildren: [],
20
+ commands: {
21
+ play: (timeline, state) => timeline.sound(state.src, {
22
+ trimStart: state.trimStart,
23
+ trimEnd: state.trimEnd,
24
+ loop: state.loop,
25
+ volume: state.volume,
26
+ speed: state.speed,
27
+ effects: state.effects,
28
+ transitionIn: state.transitionIn,
29
+ transitionOut: state.transitionOut,
30
+ }),
31
+ },
32
+ });
33
+ /** A mix of the sounds and buses in it; `solo` silences its siblings. */
34
+ export const AudioBus = componentAudio({
35
+ key: "audioBus",
36
+ state: { solo: false },
37
+ });
38
+ //# sourceMappingURL=audio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio.js","sourceRoot":"","sources":["../../../../src/components/builtins/audio/audio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAGnD;;;;GAIG;AAEH,kEAAkE;AAClE,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC;IACpC,GAAG,EAAE,OAAO;IACZ,KAAK,EAAE;QACH,GAAG,EAAE,KAAK,CAAC,MAAM,CAAS,SAA8B,CAAC;QACzD,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,KAAK,CAAC,MAAM,CAAqB,SAAS,CAAC;QACpD,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,KAAK,CAAC,MAAM,CAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;KACzE;IACD,eAAe,EAAE,EAAE;IACnB,QAAQ,EAAE;QACN,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE;YACjD,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,aAAa,EAAE,KAAK,CAAC,aAAa;SACrC,CAAC;KACL;CACJ,CAAC,CAAC;AAEH,yEAAyE;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC;IACnC,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;CACzB,CAAC,CAAC","sourcesContent":["import { lerpParam, type Param } from \"@/attributes/audio/ramp\";\nimport type { NodeOf } from \"@/components/factory/api\";\nimport { componentAudio } from \"@/components/factory/component-audio\";\nimport { Types } from \"@/components/factory/types\";\nimport type { NodeAudioProps } from \"@/components/trees/audio/node-audio\";\n\n/**\n * The audio built-ins. A sound plays when a command says so: its `play` runs\n * for the command's span, or to the source's end when the command has no length.\n * A document's `sound` row with no `play` of its own gets one over its span.\n */\n\n/** A clip from the catalog, playing into the buses it sits in. */\nexport const SoundNode = componentAudio({\n key: \"sound\",\n state: {\n src: Types.custom<string>(undefined as unknown as string),\n trimStart: 0,\n trimEnd: Types.custom<number | undefined>(undefined),\n loop: false,\n speed: Types.custom<Param>(1, { lerp: lerpParam, kind: \"audioParam\" }),\n },\n allowedChildren: [],\n commands: {\n play: (timeline, state) => timeline.sound(state.src, {\n trimStart: state.trimStart,\n trimEnd: state.trimEnd,\n loop: state.loop,\n volume: state.volume,\n speed: state.speed,\n effects: state.effects,\n transitionIn: state.transitionIn,\n transitionOut: state.transitionOut,\n }),\n },\n});\n\n/** A mix of the sounds and buses in it; `solo` silences its siblings. */\nexport const AudioBus = componentAudio({\n key: \"audioBus\",\n state: { solo: false },\n});\n\nexport type SoundNode = NodeOf<typeof SoundNode>;\nexport type AudioBus = NodeOf<typeof AudioBus>;\n\n// What code building a sound or a bus names its props as.\n\nexport interface AudioBusProps extends NodeAudioProps {\n /** Silence every other bus that is not itself soloed. */\n solo: boolean;\n}\n\nexport interface SoundNodeProps extends NodeAudioProps {\n /** Path/URL of the audio (or video) asset. Must exist in the asset manifest. */\n src: string;\n /** In-point inside the source file, in seconds. Defaults to 0. */\n trimStart: number;\n /** Out-point inside the source file. Defaults to the source's full length. */\n trimEnd: number | undefined;\n /** Repeat the trimmed clip until it is removed. */\n loop: boolean;\n /**\n * Playback-rate multiplier, pitch included: 2 plays twice as fast and takes\n * half the clip time. A ramp runs over source seconds after `trimStart`.\n */\n speed: Param;\n}\n"]}