@motionscript/core 0.1.0-alpha.6 → 0.1.0-alpha.8

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 (804) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/NOTICE +15 -14
  3. package/README.md +5 -7
  4. package/dist/assets/errors.js +4 -5
  5. package/dist/assets/errors.js.map +1 -1
  6. package/dist/assets/manager.d.ts.map +1 -1
  7. package/dist/assets/manager.js +7 -5
  8. package/dist/assets/manager.js.map +1 -1
  9. package/dist/assets/scope.d.ts +1 -1
  10. package/dist/assets/scope.d.ts.map +1 -1
  11. package/dist/assets/scope.js +1 -1
  12. package/dist/assets/scope.js.map +1 -1
  13. package/dist/attributes/audio/effects/chain.d.ts +73 -0
  14. package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
  15. package/dist/attributes/audio/effects/chain.js +67 -0
  16. package/dist/attributes/audio/effects/chain.js.map +1 -0
  17. package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
  18. package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
  19. package/dist/attributes/audio/effects/implementations/echo.js +11 -0
  20. package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
  21. package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
  22. package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
  23. package/dist/attributes/audio/effects/implementations/gain.js +6 -0
  24. package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
  25. package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
  26. package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
  27. package/dist/attributes/audio/effects/implementations/highpass.js +10 -0
  28. package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
  29. package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
  30. package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
  31. package/dist/attributes/audio/effects/implementations/lowpass.js +10 -0
  32. package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
  33. package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
  34. package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
  35. package/dist/attributes/audio/effects/implementations/tremolo.js +10 -0
  36. package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
  37. package/dist/attributes/audio/effects/index.d.ts +12 -0
  38. package/dist/attributes/audio/effects/index.d.ts.map +1 -0
  39. package/dist/attributes/audio/effects/index.js +4 -0
  40. package/dist/attributes/audio/effects/index.js.map +1 -0
  41. package/dist/attributes/audio/effects/registry.d.ts +36 -0
  42. package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
  43. package/dist/attributes/audio/effects/registry.js +80 -0
  44. package/dist/attributes/audio/effects/registry.js.map +1 -0
  45. package/dist/attributes/audio/effects/union.d.ts +14 -0
  46. package/dist/attributes/audio/effects/union.d.ts.map +1 -0
  47. package/dist/attributes/audio/effects/union.js +24 -0
  48. package/dist/attributes/audio/effects/union.js.map +1 -0
  49. package/dist/attributes/audio/ramp.d.ts +103 -0
  50. package/dist/attributes/audio/ramp.d.ts.map +1 -0
  51. package/dist/attributes/audio/ramp.js +246 -0
  52. package/dist/attributes/audio/ramp.js.map +1 -0
  53. package/dist/attributes/audio/request.d.ts +24 -13
  54. package/dist/attributes/audio/request.d.ts.map +1 -1
  55. package/dist/attributes/audio/request.js +4 -3
  56. package/dist/attributes/audio/request.js.map +1 -1
  57. package/dist/attributes/audio/schedule.d.ts +24 -31
  58. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  59. package/dist/attributes/audio/schedule.js +42 -28
  60. package/dist/attributes/audio/schedule.js.map +1 -1
  61. package/dist/attributes/audio/sound.d.ts +15 -12
  62. package/dist/attributes/audio/sound.d.ts.map +1 -1
  63. package/dist/attributes/audio/sound.js +8 -10
  64. package/dist/attributes/audio/sound.js.map +1 -1
  65. package/dist/attributes/audio/transition.d.ts +33 -0
  66. package/dist/attributes/audio/transition.d.ts.map +1 -0
  67. package/dist/attributes/audio/transition.js +48 -0
  68. package/dist/attributes/audio/transition.js.map +1 -0
  69. package/dist/attributes/index.d.ts +7 -8
  70. package/dist/attributes/index.d.ts.map +1 -1
  71. package/dist/attributes/index.js +6 -9
  72. package/dist/attributes/index.js.map +1 -1
  73. package/dist/attributes/layout/insets.d.ts +1 -1
  74. package/dist/attributes/layout/insets.js.map +1 -1
  75. package/dist/attributes/layout/matrix2d.d.ts +2 -2
  76. package/dist/attributes/layout/matrix2d.js.map +1 -1
  77. package/dist/attributes/layout/size.d.ts +1 -1
  78. package/dist/attributes/layout/size.js +1 -1
  79. package/dist/attributes/layout/size.js.map +1 -1
  80. package/dist/attributes/layout/space3d.js +1 -1
  81. package/dist/attributes/layout/space3d.js.map +1 -1
  82. package/dist/attributes/properties/decorator.d.ts +44 -11
  83. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  84. package/dist/attributes/properties/decorator.js +37 -9
  85. package/dist/attributes/properties/decorator.js.map +1 -1
  86. package/dist/attributes/properties/inputs.d.ts +1 -1
  87. package/dist/attributes/properties/inputs.js +1 -1
  88. package/dist/attributes/properties/inputs.js.map +1 -1
  89. package/dist/attributes/properties/typed.d.ts +24 -145
  90. package/dist/attributes/properties/typed.d.ts.map +1 -1
  91. package/dist/attributes/properties/typed.js +16 -112
  92. package/dist/attributes/properties/typed.js.map +1 -1
  93. package/dist/attributes/shape/corners/corner-radius.d.ts +2 -3
  94. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
  95. package/dist/attributes/shape/corners/corner-radius.js +2 -3
  96. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  97. package/dist/attributes/shape/effects/chain.d.ts +96 -409
  98. package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
  99. package/dist/attributes/shape/effects/chain.js +93 -283
  100. package/dist/attributes/shape/effects/chain.js.map +1 -1
  101. package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
  102. package/dist/attributes/shape/effects/effect-data.js.map +1 -1
  103. package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
  104. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
  105. package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
  106. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
  107. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
  108. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
  109. package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
  110. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
  111. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
  112. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
  113. package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
  114. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
  115. package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
  116. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
  117. package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
  118. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
  119. package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
  120. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
  121. package/dist/attributes/shape/effects/implementations/blur.js +13 -5
  122. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
  123. package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
  124. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
  125. package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
  126. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
  127. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
  128. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
  129. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
  130. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
  131. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
  132. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
  133. package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
  134. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
  135. package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
  136. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
  137. package/dist/attributes/shape/effects/implementations/curves.js +26 -23
  138. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
  139. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
  140. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
  141. package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
  142. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
  143. package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
  144. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
  145. package/dist/attributes/shape/effects/implementations/dither.js +26 -20
  146. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
  147. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +47 -15
  148. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
  149. package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
  150. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  151. package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
  152. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
  153. package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
  154. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
  155. package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
  156. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
  157. package/dist/attributes/shape/effects/implementations/edges.js +17 -14
  158. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
  159. package/dist/attributes/shape/effects/implementations/glass.d.ts +76 -19
  160. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
  161. package/dist/attributes/shape/effects/implementations/glass.js +28 -22
  162. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
  163. package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
  164. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
  165. package/dist/attributes/shape/effects/implementations/glow.js +74 -72
  166. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
  167. package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
  168. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
  169. package/dist/attributes/shape/effects/implementations/grain.js +21 -18
  170. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
  171. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
  172. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
  173. package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
  174. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
  175. package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
  176. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
  177. package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
  178. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
  179. package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
  180. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
  181. package/dist/attributes/shape/effects/implementations/invert.js +15 -10
  182. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
  183. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
  184. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
  185. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
  186. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
  187. package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
  188. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
  189. package/dist/attributes/shape/effects/implementations/lut.js +20 -16
  190. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
  191. package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
  192. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
  193. package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
  194. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
  195. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
  196. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
  197. package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
  198. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
  199. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
  200. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
  201. package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
  202. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
  203. package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
  204. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
  205. package/dist/attributes/shape/effects/implementations/outline.js +18 -17
  206. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
  207. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
  208. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
  209. package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
  210. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
  211. package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
  212. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
  213. package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
  214. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
  215. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
  216. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
  217. package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
  218. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
  219. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
  220. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
  221. package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
  222. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
  223. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
  224. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
  225. package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
  226. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
  227. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
  228. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
  229. package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
  230. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
  231. package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
  232. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
  233. package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
  234. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
  235. package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
  236. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
  237. package/dist/attributes/shape/effects/implementations/shader.js +42 -26
  238. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
  239. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
  240. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
  241. package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
  242. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
  243. package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
  244. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
  245. package/dist/attributes/shape/effects/implementations/streak.js +19 -16
  246. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
  247. package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
  248. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
  249. package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
  250. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
  251. package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
  252. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
  253. package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
  254. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
  255. package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
  256. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
  257. package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
  258. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
  259. package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
  260. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
  261. package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
  262. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
  263. package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
  264. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
  265. package/dist/attributes/shape/effects/implementations/wave.js +26 -23
  266. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
  267. package/dist/attributes/shape/effects/index.d.ts +4 -2
  268. package/dist/attributes/shape/effects/index.d.ts.map +1 -1
  269. package/dist/attributes/shape/effects/index.js +1 -1
  270. package/dist/attributes/shape/effects/index.js.map +1 -1
  271. package/dist/attributes/shape/effects/registry.d.ts +11 -0
  272. package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
  273. package/dist/attributes/shape/effects/registry.js +113 -102
  274. package/dist/attributes/shape/effects/registry.js.map +1 -1
  275. package/dist/attributes/shape/effects/spec.d.ts +229 -0
  276. package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
  277. package/dist/attributes/shape/effects/spec.js +178 -0
  278. package/dist/attributes/shape/effects/spec.js.map +1 -0
  279. package/dist/attributes/shape/fill/chain.d.ts +7 -9
  280. package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
  281. package/dist/attributes/shape/fill/chain.js +9 -11
  282. package/dist/attributes/shape/fill/chain.js.map +1 -1
  283. package/dist/attributes/shape/fill/color/parser.d.ts +1 -1
  284. package/dist/attributes/shape/fill/color/parser.js +1 -1
  285. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  286. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -2
  287. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  288. package/dist/attributes/shape/fill/implementations/shader.d.ts +28 -27
  289. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
  290. package/dist/attributes/shape/fill/implementations/shader.js +20 -14
  291. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  292. package/dist/attributes/shape/fill/implementations/video.d.ts +1 -1
  293. package/dist/attributes/shape/fill/implementations/video.js +1 -1
  294. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  295. package/dist/attributes/shape/fill/index.d.ts +1 -1
  296. package/dist/attributes/shape/fill/index.d.ts.map +1 -1
  297. package/dist/attributes/shape/fill/index.js.map +1 -1
  298. package/dist/attributes/shape/fill/lerp.d.ts +1 -1
  299. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  300. package/dist/attributes/shape/fill/registry.d.ts +1 -2
  301. package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
  302. package/dist/attributes/shape/fill/registry.js +1 -2
  303. package/dist/attributes/shape/fill/registry.js.map +1 -1
  304. package/dist/attributes/shape/filters/chain.d.ts +3 -7
  305. package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
  306. package/dist/attributes/shape/filters/chain.js +2 -6
  307. package/dist/attributes/shape/filters/chain.js.map +1 -1
  308. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
  309. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
  310. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
  311. package/dist/attributes/shape/filters/registry.d.ts +1 -1
  312. package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
  313. package/dist/attributes/shape/filters/registry.js +3 -3
  314. package/dist/attributes/shape/filters/registry.js.map +1 -1
  315. package/dist/attributes/shape/filters/union.d.ts +6 -6
  316. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  317. package/dist/attributes/shape/filters/union.js.map +1 -1
  318. package/dist/attributes/shape/path/ops.d.ts +1 -2
  319. package/dist/attributes/shape/path/ops.d.ts.map +1 -1
  320. package/dist/attributes/shape/path/ops.js.map +1 -1
  321. package/dist/attributes/shape/shaders/index.d.ts +2 -0
  322. package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
  323. package/dist/attributes/shape/shaders/index.js +2 -0
  324. package/dist/attributes/shape/shaders/index.js.map +1 -1
  325. package/dist/attributes/shape/shaders/language.d.ts +26 -0
  326. package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
  327. package/dist/attributes/shape/shaders/language.js +20 -0
  328. package/dist/attributes/shape/shaders/language.js.map +1 -0
  329. package/dist/attributes/shape/shaders/pack.d.ts +25 -11
  330. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
  331. package/dist/attributes/shape/shaders/pack.js +9 -4
  332. package/dist/attributes/shape/shaders/pack.js.map +1 -1
  333. package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
  334. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
  335. package/dist/attributes/shape/shaders/resolve.js +3 -6
  336. package/dist/attributes/shape/shaders/resolve.js.map +1 -1
  337. package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
  338. package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
  339. package/dist/attributes/shape/shaders/uniforms.js +0 -0
  340. package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
  341. package/dist/attributes/shared/operators.d.ts +2 -2
  342. package/dist/attributes/shared/operators.js.map +1 -1
  343. package/dist/attributes/text/types.d.ts +2 -3
  344. package/dist/attributes/text/types.d.ts.map +1 -1
  345. package/dist/attributes/text/types.js.map +1 -1
  346. package/dist/browser/chunks/chunk-AOT33LMS.js +13 -0
  347. package/dist/browser/chunks/chunk-AOT33LMS.js.map +7 -0
  348. package/dist/browser/chunks/chunk-GKM6UZJR.js +6 -0
  349. package/dist/browser/chunks/chunk-GKM6UZJR.js.map +7 -0
  350. package/dist/browser/chunks/chunk-LKUYVFU3.js +2 -0
  351. package/dist/browser/chunks/{chunk-DHB4COFY.js.map → chunk-LKUYVFU3.js.map} +4 -4
  352. package/dist/browser/chunks/chunk-ZRPZPWZU.js +3 -0
  353. package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +7 -0
  354. package/dist/browser/component.js +1 -1
  355. package/dist/browser/component.js.map +4 -4
  356. package/dist/browser/experimental.js +1 -1
  357. package/dist/browser/experimental.js.map +4 -4
  358. package/dist/browser/index.js +1 -1
  359. package/dist/browser/index.js.map +4 -4
  360. package/dist/browser/manifest.json +2 -4
  361. package/dist/browser/sdk.js +1 -1
  362. package/dist/component.d.ts +10 -18
  363. package/dist/component.d.ts.map +1 -1
  364. package/dist/component.js +10 -17
  365. package/dist/component.js.map +1 -1
  366. package/dist/components/builtins/audio/audio.d.ts +62 -0
  367. package/dist/components/builtins/audio/audio.d.ts.map +1 -0
  368. package/dist/components/builtins/audio/audio.js +38 -0
  369. package/dist/components/builtins/audio/audio.js.map +1 -0
  370. package/dist/components/builtins/geometry/composite.d.ts +93 -0
  371. package/dist/components/builtins/geometry/composite.d.ts.map +1 -0
  372. package/dist/components/builtins/geometry/composite.js +25 -0
  373. package/dist/components/builtins/geometry/composite.js.map +1 -0
  374. package/dist/components/builtins/geometry/geometry.d.ts +921 -0
  375. package/dist/components/builtins/geometry/geometry.d.ts.map +1 -0
  376. package/dist/components/builtins/geometry/geometry.js +107 -0
  377. package/dist/components/builtins/geometry/geometry.js.map +1 -0
  378. package/dist/components/builtins/geometry/shape-outline.d.ts +93 -0
  379. package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
  380. package/dist/components/builtins/geometry/shape-outline.js +470 -0
  381. package/dist/components/builtins/geometry/shape-outline.js.map +1 -0
  382. package/dist/components/builtins/layout/layout.d.ts +186 -0
  383. package/dist/components/builtins/layout/layout.d.ts.map +1 -0
  384. package/dist/components/builtins/layout/layout.js +84 -0
  385. package/dist/components/builtins/layout/layout.js.map +1 -0
  386. package/dist/components/builtins/media/media.d.ts +240 -0
  387. package/dist/components/builtins/media/media.d.ts.map +1 -0
  388. package/dist/components/builtins/media/media.js +143 -0
  389. package/dist/components/builtins/media/media.js.map +1 -0
  390. package/dist/components/builtins/providers/providers.d.ts +47 -0
  391. package/dist/components/builtins/providers/providers.d.ts.map +1 -0
  392. package/dist/components/builtins/providers/providers.js +30 -0
  393. package/dist/components/builtins/providers/providers.js.map +1 -0
  394. package/dist/components/builtins/text/number-format.d.ts +66 -0
  395. package/dist/components/builtins/text/number-format.d.ts.map +1 -0
  396. package/dist/components/builtins/text/number-format.js +227 -0
  397. package/dist/components/builtins/text/number-format.js.map +1 -0
  398. package/dist/components/builtins/text/number-pattern.d.ts +51 -0
  399. package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
  400. package/dist/components/builtins/text/number-pattern.js +77 -0
  401. package/dist/components/builtins/text/number-pattern.js.map +1 -0
  402. package/dist/components/builtins/text/text-defaults.d.ts +32 -0
  403. package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
  404. package/dist/components/builtins/text/text-defaults.js +37 -0
  405. package/dist/components/builtins/text/text-defaults.js.map +1 -0
  406. package/dist/components/builtins/text/text-layout.d.ts +82 -0
  407. package/dist/components/builtins/text/text-layout.d.ts.map +1 -0
  408. package/dist/components/builtins/text/text-layout.js +331 -0
  409. package/dist/components/builtins/text/text-layout.js.map +1 -0
  410. package/dist/components/builtins/text/text.d.ts +409 -0
  411. package/dist/components/builtins/text/text.d.ts.map +1 -0
  412. package/dist/components/builtins/text/text.js +116 -0
  413. package/dist/components/builtins/text/text.js.map +1 -0
  414. package/dist/components/builtins/three/canvas3d.d.ts +245 -0
  415. package/dist/components/builtins/three/canvas3d.d.ts.map +1 -0
  416. package/dist/components/builtins/three/canvas3d.js +21 -0
  417. package/dist/components/builtins/three/canvas3d.js.map +1 -0
  418. package/dist/components/builtins/three/grid-geometry3d.d.ts +62 -0
  419. package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
  420. package/dist/components/builtins/three/grid-geometry3d.js +114 -0
  421. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -0
  422. package/dist/components/builtins/three/three.d.ts +1889 -0
  423. package/dist/components/builtins/three/three.d.ts.map +1 -0
  424. package/dist/components/builtins/three/three.js +305 -0
  425. package/dist/components/builtins/three/three.js.map +1 -0
  426. package/dist/components/factory/api.d.ts +543 -0
  427. package/dist/components/factory/api.d.ts.map +1 -0
  428. package/dist/components/factory/api.js +4 -0
  429. package/dist/components/factory/api.js.map +1 -0
  430. package/dist/components/factory/clip-of.d.ts +5 -0
  431. package/dist/components/factory/clip-of.d.ts.map +1 -0
  432. package/dist/components/factory/clip-of.js +33 -0
  433. package/dist/components/factory/clip-of.js.map +1 -0
  434. package/dist/components/factory/commands-for.d.ts +19 -0
  435. package/dist/components/factory/commands-for.d.ts.map +1 -0
  436. package/dist/components/factory/commands-for.js +5 -0
  437. package/dist/components/factory/commands-for.js.map +1 -0
  438. package/dist/components/factory/component-audio.d.ts +9 -0
  439. package/dist/components/factory/component-audio.d.ts.map +1 -0
  440. package/dist/components/factory/component-audio.js +18 -0
  441. package/dist/components/factory/component-audio.js.map +1 -0
  442. package/dist/components/factory/component2d.d.ts +8 -0
  443. package/dist/components/factory/component2d.d.ts.map +1 -0
  444. package/dist/components/factory/component2d.js +240 -0
  445. package/dist/components/factory/component2d.js.map +1 -0
  446. package/dist/components/factory/component3d.d.ts +9 -0
  447. package/dist/components/factory/component3d.d.ts.map +1 -0
  448. package/dist/components/factory/component3d.js +107 -0
  449. package/dist/components/factory/component3d.js.map +1 -0
  450. package/dist/components/factory/factory.d.ts +66 -0
  451. package/dist/components/factory/factory.d.ts.map +1 -0
  452. package/dist/components/factory/factory.js +347 -0
  453. package/dist/components/factory/factory.js.map +1 -0
  454. package/dist/components/factory/timeline.d.ts +22 -0
  455. package/dist/components/factory/timeline.d.ts.map +1 -0
  456. package/dist/components/factory/timeline.js +128 -0
  457. package/dist/components/factory/timeline.js.map +1 -0
  458. package/dist/components/factory/type-def.d.ts +26 -0
  459. package/dist/components/factory/type-def.d.ts.map +1 -0
  460. package/dist/components/factory/type-def.js +16 -0
  461. package/dist/components/factory/type-def.js.map +1 -0
  462. package/dist/components/factory/types.d.ts +91 -0
  463. package/dist/components/factory/types.d.ts.map +1 -0
  464. package/dist/components/factory/types.js +88 -0
  465. package/dist/components/factory/types.js.map +1 -0
  466. package/dist/components/factory/views.d.ts +121 -0
  467. package/dist/components/factory/views.d.ts.map +1 -0
  468. package/dist/components/factory/views.js +413 -0
  469. package/dist/components/factory/views.js.map +1 -0
  470. package/dist/components/modules/aim.d.ts +30 -0
  471. package/dist/components/modules/aim.d.ts.map +1 -0
  472. package/dist/components/modules/aim.js +39 -0
  473. package/dist/components/modules/aim.js.map +1 -0
  474. package/dist/components/modules/corners.d.ts +13 -0
  475. package/dist/components/modules/corners.d.ts.map +1 -0
  476. package/dist/components/modules/corners.js +12 -0
  477. package/dist/components/modules/corners.js.map +1 -0
  478. package/dist/components/modules/flow.d.ts +26 -0
  479. package/dist/components/modules/flow.d.ts.map +1 -0
  480. package/dist/components/modules/flow.js +57 -0
  481. package/dist/components/modules/flow.js.map +1 -0
  482. package/dist/components/modules/material.d.ts +40 -0
  483. package/dist/components/modules/material.d.ts.map +1 -0
  484. package/dist/components/modules/material.js +75 -0
  485. package/dist/components/modules/material.js.map +1 -0
  486. package/dist/components/modules/paint.d.ts +71 -0
  487. package/dist/components/modules/paint.d.ts.map +1 -0
  488. package/dist/components/modules/paint.js +106 -0
  489. package/dist/components/modules/paint.js.map +1 -0
  490. package/dist/components/modules/shapes.d.ts +31 -0
  491. package/dist/components/modules/shapes.d.ts.map +1 -0
  492. package/dist/components/modules/shapes.js +43 -0
  493. package/dist/components/modules/shapes.js.map +1 -0
  494. package/dist/components/modules/text-layout.d.ts +26 -0
  495. package/dist/components/modules/text-layout.d.ts.map +1 -0
  496. package/dist/components/modules/text-layout.js +57 -0
  497. package/dist/components/modules/text-layout.js.map +1 -0
  498. package/dist/components/modules/text-style.d.ts +48 -0
  499. package/dist/components/modules/text-style.d.ts.map +1 -0
  500. package/dist/components/modules/text-style.js +63 -0
  501. package/dist/components/modules/text-style.js.map +1 -0
  502. package/dist/components/modules/three-entries.d.ts +23 -0
  503. package/dist/components/modules/three-entries.d.ts.map +1 -0
  504. package/dist/components/modules/three-entries.js +41 -0
  505. package/dist/components/modules/three-entries.js.map +1 -0
  506. package/dist/components/modules/view3d.d.ts +59 -0
  507. package/dist/components/modules/view3d.d.ts.map +1 -0
  508. package/dist/components/modules/view3d.js +171 -0
  509. package/dist/components/modules/view3d.js.map +1 -0
  510. package/dist/components/trees/2d/group-bounds.d.ts +56 -0
  511. package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
  512. package/dist/components/trees/2d/group-bounds.js +87 -0
  513. package/dist/components/trees/2d/group-bounds.js.map +1 -0
  514. package/dist/components/trees/2d/node-lifecycle.d.ts +46 -0
  515. package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
  516. package/dist/components/trees/2d/node-lifecycle.js +264 -0
  517. package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
  518. package/dist/components/trees/2d/node-motion.d.ts +56 -0
  519. package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
  520. package/dist/components/trees/2d/node-motion.js +86 -0
  521. package/dist/components/trees/2d/node-motion.js.map +1 -0
  522. package/dist/components/trees/2d/node-render.d.ts +36 -0
  523. package/dist/components/trees/2d/node-render.d.ts.map +1 -0
  524. package/dist/components/trees/2d/node-render.js +67 -0
  525. package/dist/components/trees/2d/node-render.js.map +1 -0
  526. package/dist/components/trees/2d/node-space.d.ts +63 -0
  527. package/dist/components/trees/2d/node-space.d.ts.map +1 -0
  528. package/dist/components/trees/2d/node-space.js +131 -0
  529. package/dist/components/trees/2d/node-space.js.map +1 -0
  530. package/dist/components/trees/2d/node-transform.d.ts +55 -0
  531. package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
  532. package/dist/components/trees/2d/node-transform.js +73 -0
  533. package/dist/components/trees/2d/node-transform.js.map +1 -0
  534. package/dist/components/trees/2d/node2d.d.ts +1020 -0
  535. package/dist/components/trees/2d/node2d.d.ts.map +1 -0
  536. package/dist/components/trees/2d/node2d.js +1481 -0
  537. package/dist/components/trees/2d/node2d.js.map +1 -0
  538. package/dist/components/trees/audio/index.d.ts +2 -0
  539. package/dist/components/trees/audio/index.d.ts.map +1 -0
  540. package/dist/components/trees/audio/index.js +2 -0
  541. package/dist/components/trees/audio/index.js.map +1 -0
  542. package/dist/components/trees/audio/node-audio.d.ts +116 -0
  543. package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
  544. package/dist/components/trees/audio/node-audio.js +171 -0
  545. package/dist/components/trees/audio/node-audio.js.map +1 -0
  546. package/dist/components/trees/index.d.ts +10 -0
  547. package/dist/components/trees/index.d.ts.map +1 -0
  548. package/dist/components/trees/index.js +14 -0
  549. package/dist/components/trees/index.js.map +1 -0
  550. package/dist/components/trees/node/node-editor-state.d.ts +53 -0
  551. package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
  552. package/dist/components/trees/node/node-editor-state.js +23 -0
  553. package/dist/components/trees/node/node-editor-state.js.map +1 -0
  554. package/dist/components/trees/node/node-reactive.d.ts +89 -0
  555. package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
  556. package/dist/components/trees/node/node-reactive.js +135 -0
  557. package/dist/components/trees/node/node-reactive.js.map +1 -0
  558. package/dist/components/trees/node/node-time.d.ts +39 -0
  559. package/dist/components/trees/node/node-time.d.ts.map +1 -0
  560. package/dist/components/trees/node/node-time.js +14 -0
  561. package/dist/components/trees/node/node-time.js.map +1 -0
  562. package/dist/components/trees/node/node-walk.d.ts +46 -0
  563. package/dist/components/trees/node/node-walk.d.ts.map +1 -0
  564. package/dist/components/trees/node/node-walk.js +74 -0
  565. package/dist/components/trees/node/node-walk.js.map +1 -0
  566. package/dist/components/trees/node/node.d.ts +401 -0
  567. package/dist/components/trees/node/node.d.ts.map +1 -0
  568. package/dist/components/trees/node/node.js +680 -0
  569. package/dist/components/trees/node/node.js.map +1 -0
  570. package/dist/components/trees/root/canvas2d-node.d.ts +163 -0
  571. package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
  572. package/dist/components/trees/root/canvas2d-node.js +216 -0
  573. package/dist/components/trees/root/canvas2d-node.js.map +1 -0
  574. package/dist/components/trees/three/node3d.d.ts +222 -0
  575. package/dist/components/trees/three/node3d.d.ts.map +1 -0
  576. package/dist/components/trees/three/node3d.js +289 -0
  577. package/dist/components/trees/three/node3d.js.map +1 -0
  578. package/dist/document/builtins.js +13 -13
  579. package/dist/document/builtins.js.map +1 -1
  580. package/dist/document/command-traits.d.ts +14 -4
  581. package/dist/document/command-traits.d.ts.map +1 -1
  582. package/dist/document/command-traits.js +35 -7
  583. package/dist/document/command-traits.js.map +1 -1
  584. package/dist/document/deny-globals.d.ts +2 -2
  585. package/dist/document/deny-globals.js +2 -2
  586. package/dist/document/deny-globals.js.map +1 -1
  587. package/dist/document/expression/index.d.ts +1 -1
  588. package/dist/document/expression/index.js +1 -1
  589. package/dist/document/expression/index.js.map +1 -1
  590. package/dist/document/expression/ops.js +1 -1
  591. package/dist/document/expression/ops.js.map +1 -1
  592. package/dist/document/index.d.ts +9 -2
  593. package/dist/document/index.d.ts.map +1 -1
  594. package/dist/document/index.js +5 -2
  595. package/dist/document/index.js.map +1 -1
  596. package/dist/document/migrate.d.ts +70 -0
  597. package/dist/document/migrate.d.ts.map +1 -0
  598. package/dist/document/migrate.js +202 -0
  599. package/dist/document/migrate.js.map +1 -0
  600. package/dist/document/missing-node.d.ts +27 -0
  601. package/dist/document/missing-node.d.ts.map +1 -0
  602. package/dist/document/missing-node.js +48 -0
  603. package/dist/document/missing-node.js.map +1 -0
  604. package/dist/document/node-decorator.d.ts +14 -10
  605. package/dist/document/node-decorator.d.ts.map +1 -1
  606. package/dist/document/node-decorator.js +14 -10
  607. package/dist/document/node-decorator.js.map +1 -1
  608. package/dist/document/node-descriptor.d.ts +7 -3
  609. package/dist/document/node-descriptor.d.ts.map +1 -1
  610. package/dist/document/node-descriptor.js.map +1 -1
  611. package/dist/document/placement.d.ts +2 -1
  612. package/dist/document/placement.d.ts.map +1 -1
  613. package/dist/document/placement.js.map +1 -1
  614. package/dist/document/project.d.ts +2 -0
  615. package/dist/document/project.d.ts.map +1 -1
  616. package/dist/document/project.js +1 -0
  617. package/dist/document/project.js.map +1 -1
  618. package/dist/document/prop-evolution.d.ts +51 -0
  619. package/dist/document/prop-evolution.d.ts.map +1 -0
  620. package/dist/document/prop-evolution.js +83 -0
  621. package/dist/document/prop-evolution.js.map +1 -0
  622. package/dist/document/registry.d.ts +39 -25
  623. package/dist/document/registry.d.ts.map +1 -1
  624. package/dist/document/registry.js +41 -21
  625. package/dist/document/registry.js.map +1 -1
  626. package/dist/document/settled-index.d.ts +2 -0
  627. package/dist/document/settled-index.d.ts.map +1 -1
  628. package/dist/document/settled-index.js +5 -5
  629. package/dist/document/settled-index.js.map +1 -1
  630. package/dist/document/timeline-patch.d.ts +4 -0
  631. package/dist/document/timeline-patch.d.ts.map +1 -1
  632. package/dist/document/timeline-patch.js +28 -3
  633. package/dist/document/timeline-patch.js.map +1 -1
  634. package/dist/document/timeline.d.ts +48 -4
  635. package/dist/document/timeline.d.ts.map +1 -1
  636. package/dist/document/timeline.js +174 -44
  637. package/dist/document/timeline.js.map +1 -1
  638. package/dist/document/types.d.ts +18 -32
  639. package/dist/document/types.d.ts.map +1 -1
  640. package/dist/document/types.js.map +1 -1
  641. package/dist/document/validate.d.ts +18 -6
  642. package/dist/document/validate.d.ts.map +1 -1
  643. package/dist/document/validate.js +158 -21
  644. package/dist/document/validate.js.map +1 -1
  645. package/dist/document/vocabulary.d.ts +28 -0
  646. package/dist/document/vocabulary.d.ts.map +1 -0
  647. package/dist/document/vocabulary.js +42 -0
  648. package/dist/document/vocabulary.js.map +1 -0
  649. package/dist/experimental.d.ts +79 -19
  650. package/dist/experimental.d.ts.map +1 -1
  651. package/dist/experimental.js +31 -17
  652. package/dist/experimental.js.map +1 -1
  653. package/dist/index.d.ts +10 -11
  654. package/dist/index.d.ts.map +1 -1
  655. package/dist/index.js +10 -11
  656. package/dist/index.js.map +1 -1
  657. package/dist/layout/types.d.ts +1 -1
  658. package/dist/layout/types.js.map +1 -1
  659. package/dist/platform/exporter.d.ts +13 -0
  660. package/dist/platform/exporter.d.ts.map +1 -1
  661. package/dist/platform/exporter.js.map +1 -1
  662. package/dist/props/host.d.ts +1 -1
  663. package/dist/props/host.js.map +1 -1
  664. package/dist/props/slot.d.ts +1 -1
  665. package/dist/props/slot.js +1 -1
  666. package/dist/props/slot.js.map +1 -1
  667. package/dist/renamed-scene-names.d.ts +1 -1
  668. package/dist/renamed-scene-names.d.ts.map +1 -1
  669. package/dist/renamed-scene-names.js +1 -1
  670. package/dist/renamed-scene-names.js.map +1 -1
  671. package/dist/render/canvas-render-context2d.d.ts +9 -0
  672. package/dist/render/canvas-render-context2d.d.ts.map +1 -1
  673. package/dist/render/canvas-render-context2d.js +10 -0
  674. package/dist/render/canvas-render-context2d.js.map +1 -1
  675. package/dist/render/clip-contains.js +1 -1
  676. package/dist/render/clip-contains.js.map +1 -1
  677. package/dist/render/clip.d.ts +1 -1
  678. package/dist/render/clip.js +1 -1
  679. package/dist/render/clip.js.map +1 -1
  680. package/dist/render/descriptors/rect.js.map +1 -1
  681. package/dist/render/descriptors/text.d.ts +13 -7
  682. package/dist/render/descriptors/text.d.ts.map +1 -1
  683. package/dist/render/descriptors/text.js +9 -3
  684. package/dist/render/descriptors/text.js.map +1 -1
  685. package/dist/render/index.d.ts +2 -0
  686. package/dist/render/index.d.ts.map +1 -1
  687. package/dist/render/index.js +1 -0
  688. package/dist/render/index.js.map +1 -1
  689. package/dist/render/render-context2d.d.ts +3 -3
  690. package/dist/render/render-context2d.js.map +1 -1
  691. package/dist/render/render-issue.d.ts +39 -0
  692. package/dist/render/render-issue.d.ts.map +1 -0
  693. package/dist/render/render-issue.js +29 -0
  694. package/dist/render/render-issue.js.map +1 -0
  695. package/dist/render/surface.d.ts +2 -2
  696. package/dist/render/surface.js.map +1 -1
  697. package/dist/render3d/builders.d.ts +1 -1
  698. package/dist/render3d/builders.js +1 -1
  699. package/dist/render3d/builders.js.map +1 -1
  700. package/dist/render3d/graphics3d.d.ts +13 -19
  701. package/dist/render3d/graphics3d.d.ts.map +1 -1
  702. package/dist/render3d/graphics3d.js +67 -24
  703. package/dist/render3d/graphics3d.js.map +1 -1
  704. package/dist/render3d/scene3d.d.ts +1 -1
  705. package/dist/render3d/scene3d.js +1 -1
  706. package/dist/render3d/scene3d.js.map +1 -1
  707. package/dist/render3d/texture.d.ts +2 -2
  708. package/dist/render3d/texture.d.ts.map +1 -1
  709. package/dist/render3d/texture.js.map +1 -1
  710. package/dist/render3d/vector3.d.ts +2 -2
  711. package/dist/render3d/vector3.js +2 -2
  712. package/dist/render3d/vector3.js.map +1 -1
  713. package/dist/runtime/asset-refine.d.ts +1 -1
  714. package/dist/runtime/asset-refine.d.ts.map +1 -1
  715. package/dist/runtime/asset-refine.js +3 -2
  716. package/dist/runtime/asset-refine.js.map +1 -1
  717. package/dist/runtime/asset-timeline.d.ts +10 -0
  718. package/dist/runtime/asset-timeline.d.ts.map +1 -1
  719. package/dist/runtime/asset-timeline.js.map +1 -1
  720. package/dist/runtime/asset-update.d.ts.map +1 -1
  721. package/dist/runtime/asset-update.js +8 -1
  722. package/dist/runtime/asset-update.js.map +1 -1
  723. package/dist/runtime/audio-index.d.ts +0 -11
  724. package/dist/runtime/audio-index.d.ts.map +1 -1
  725. package/dist/runtime/audio-index.js +0 -25
  726. package/dist/runtime/audio-index.js.map +1 -1
  727. package/dist/runtime/clip-instance.d.ts +6 -4
  728. package/dist/runtime/clip-instance.d.ts.map +1 -1
  729. package/dist/runtime/clip-instance.js +8 -4
  730. package/dist/runtime/clip-instance.js.map +1 -1
  731. package/dist/runtime/clip-store.d.ts +2 -3
  732. package/dist/runtime/clip-store.d.ts.map +1 -1
  733. package/dist/runtime/clip-store.js +34 -37
  734. package/dist/runtime/clip-store.js.map +1 -1
  735. package/dist/runtime/engine.d.ts +8 -6
  736. package/dist/runtime/engine.d.ts.map +1 -1
  737. package/dist/runtime/engine.js +4 -3
  738. package/dist/runtime/engine.js.map +1 -1
  739. package/dist/runtime/node-picking.d.ts +2 -2
  740. package/dist/runtime/node-picking.d.ts.map +1 -1
  741. package/dist/runtime/node-picking.js +3 -3
  742. package/dist/runtime/node-picking.js.map +1 -1
  743. package/dist/runtime/node-picking3d.d.ts +2 -2
  744. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  745. package/dist/runtime/node-picking3d.js +1 -1
  746. package/dist/runtime/node-picking3d.js.map +1 -1
  747. package/dist/runtime/playback-controller.d.ts +2 -2
  748. package/dist/runtime/playback-controller.d.ts.map +1 -1
  749. package/dist/runtime/playback-controller.js +15 -5
  750. package/dist/runtime/playback-controller.js.map +1 -1
  751. package/dist/runtime/session.d.ts +7 -3
  752. package/dist/runtime/session.d.ts.map +1 -1
  753. package/dist/runtime/session.js +11 -4
  754. package/dist/runtime/session.js.map +1 -1
  755. package/dist/runtime/state-evaluator.d.ts +2 -2
  756. package/dist/runtime/state-evaluator.d.ts.map +1 -1
  757. package/dist/runtime/state-evaluator.js.map +1 -1
  758. package/dist/runtime/text-geometry.d.ts +2 -2
  759. package/dist/runtime/text-geometry.d.ts.map +1 -1
  760. package/dist/runtime/text-geometry.js +4 -5
  761. package/dist/runtime/text-geometry.js.map +1 -1
  762. package/dist/sdk/index.d.ts +50 -44
  763. package/dist/sdk/index.d.ts.map +1 -1
  764. package/dist/sdk/index.js +35 -29
  765. package/dist/sdk/index.js.map +1 -1
  766. package/dist/tween/command-decorator.d.ts +14 -9
  767. package/dist/tween/command-decorator.d.ts.map +1 -1
  768. package/dist/tween/command-decorator.js +3 -2
  769. package/dist/tween/command-decorator.js.map +1 -1
  770. package/dist/tween/command.d.ts +1 -1
  771. package/dist/tween/command.js.map +1 -1
  772. package/dist/tween/ease/describe.d.ts +2 -0
  773. package/dist/tween/ease/describe.d.ts.map +1 -1
  774. package/dist/tween/ease/describe.js +4 -0
  775. package/dist/tween/ease/describe.js.map +1 -1
  776. package/dist/tween/ease/spec.d.ts +31 -0
  777. package/dist/tween/ease/spec.d.ts.map +1 -0
  778. package/dist/tween/ease/spec.js +51 -0
  779. package/dist/tween/ease/spec.js.map +1 -0
  780. package/dist/tween/index.d.ts +3 -1
  781. package/dist/tween/index.d.ts.map +1 -1
  782. package/dist/tween/index.js +2 -1
  783. package/dist/tween/index.js.map +1 -1
  784. package/dist/tween/loop.d.ts +1 -1
  785. package/dist/tween/loop.js +1 -1
  786. package/dist/tween/loop.js.map +1 -1
  787. package/dist/util/reference.d.ts +6 -6
  788. package/dist/util/reference.js.map +1 -1
  789. package/package.json +3 -11
  790. package/dist/browser/chunks/chunk-2RIYH36X.js +0 -3
  791. package/dist/browser/chunks/chunk-2RIYH36X.js.map +0 -7
  792. package/dist/browser/chunks/chunk-DDJN3QII.js +0 -15
  793. package/dist/browser/chunks/chunk-DDJN3QII.js.map +0 -7
  794. package/dist/browser/chunks/chunk-DHB4COFY.js +0 -2
  795. package/dist/browser/chunks/chunk-EJDPYDQI.js +0 -5
  796. package/dist/browser/chunks/chunk-EJDPYDQI.js.map +0 -7
  797. package/dist/browser/chunks/chunk-SFNJRPBV.js +0 -2
  798. package/dist/browser/chunks/chunk-SFNJRPBV.js.map +0 -7
  799. package/dist/browser/chunks/chunk-XAWE4EAK.js +0 -2
  800. package/dist/browser/chunks/chunk-XAWE4EAK.js.map +0 -7
  801. package/dist/browser/jsx-jsx-dev-runtime.js +0 -2
  802. package/dist/browser/jsx-jsx-dev-runtime.js.map +0 -7
  803. package/dist/browser/jsx-jsx-runtime.js +0 -2
  804. package/dist/browser/jsx-jsx-runtime.js.map +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/echo.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAa3D,MAAM,CAAC,MAAM,UAAU,GAAgC;IACnD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClD,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;KACpD,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACb,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC;CACtH,CAAC","sourcesContent":["import type { AudioEffectData } from \"../registry\";\r\nimport { Param, lerpParam, equalsParam } from \"../../ramp\";\r\n\r\n/** Adds a delayed, fading repeat of the signal (a feedback echo / simple delay). */\r\nexport interface EchoEffect {\r\n type: 'echo';\r\n /** Delay before the first repeat, in seconds. May be a ramp. */\r\n delay: Param;\r\n /** Feedback amount, 0–<1. Each repeat is scaled by this; higher = more repeats. May be a ramp. */\r\n feedback: Param;\r\n /** Wet/dry mix, 0–1. 0 = dry only, 1 = full wet. Default 0.5. May be a ramp. */\r\n mix?: Param;\r\n}\r\n\r\nexport const echoEffect: AudioEffectData<EchoEffect> = {\r\n lerp: (from, to, t) => ({\r\n type: \"echo\",\r\n delay: lerpParam(from.delay, to.delay, t),\r\n feedback: lerpParam(from.feedback, to.feedback, t),\r\n mix: lerpParam(from.mix ?? 0.5, to.mix ?? 0.5, t),\r\n }),\r\n equals: (a, b) =>\r\n equalsParam(a.delay, b.delay) && equalsParam(a.feedback, b.feedback) && equalsParam(a.mix ?? 0.5, b.mix ?? 0.5),\r\n};\r\n"]}
@@ -0,0 +1,10 @@
1
+ import type { AudioEffectData } from "../registry.js";
2
+ import { Param } from "../../ramp.js";
3
+ /** Scales the clip's amplitude by a linear factor. */
4
+ export interface GainEffect {
5
+ type: 'gain';
6
+ /** Linear gain multiplier. 1 = unchanged, 0 = silent, >1 = louder. May be a ramp. */
7
+ value: Param;
8
+ }
9
+ export declare const gainEffect: AudioEffectData<GainEffect>;
10
+ //# sourceMappingURL=gain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gain.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/gain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,YAAY,CAAC;AAE3D,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAGlD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { lerpParam, equalsParam } from "../../ramp.js";
2
+ export const gainEffect = {
3
+ lerp: (from, to, t) => ({ type: "gain", value: lerpParam(from.value, to.value, t) }),
4
+ equals: (a, b) => equalsParam(a.value, b.value),
5
+ };
6
+ //# sourceMappingURL=gain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gain.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/gain.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAS3D,MAAM,CAAC,MAAM,UAAU,GAAgC;IACnD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;IACpF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;CAClD,CAAC","sourcesContent":["import type { AudioEffectData } from \"../registry\";\r\nimport { Param, lerpParam, equalsParam } from \"../../ramp\";\r\n\r\n/** Scales the clip's amplitude by a linear factor. */\r\nexport interface GainEffect {\r\n type: 'gain';\r\n /** Linear gain multiplier. 1 = unchanged, 0 = silent, >1 = louder. May be a ramp. */\r\n value: Param;\r\n}\r\n\r\nexport const gainEffect: AudioEffectData<GainEffect> = {\r\n lerp: (from, to, t) => ({ type: \"gain\", value: lerpParam(from.value, to.value, t) }),\r\n equals: (a, b) => equalsParam(a.value, b.value),\r\n};\r\n"]}
@@ -0,0 +1,12 @@
1
+ import type { AudioEffectData } from "../registry.js";
2
+ import { Param } from "../../ramp.js";
3
+ /** Attenuates frequencies below `frequency`, passing the highs through. */
4
+ export interface HighPassEffect {
5
+ type: 'highpass';
6
+ /** Cutoff frequency in Hz. Content below this is rolled off. May be a ramp. */
7
+ frequency: Param;
8
+ /** Resonance (Q) at the cutoff. Default 1. May be a ramp. */
9
+ q?: Param;
10
+ }
11
+ export declare const highPassEffect: AudioEffectData<HighPassEffect>;
12
+ //# sourceMappingURL=highpass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highpass.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/highpass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,YAAY,CAAC;AAE3D,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,+EAA+E;IAC/E,SAAS,EAAE,KAAK,CAAC;IACjB,6DAA6D;IAC7D,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,cAAc,CAO1D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { lerpParam, equalsParam } from "../../ramp.js";
2
+ export const highPassEffect = {
3
+ lerp: (from, to, t) => ({
4
+ type: "highpass",
5
+ frequency: lerpParam(from.frequency, to.frequency, t),
6
+ q: lerpParam(from.q ?? 1, to.q ?? 1, t),
7
+ }),
8
+ equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),
9
+ };
10
+ //# sourceMappingURL=highpass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highpass.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/highpass.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAW3D,MAAM,CAAC,MAAM,cAAc,GAAoC;IAC3D,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;QACrD,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7F,CAAC","sourcesContent":["import type { AudioEffectData } from \"../registry\";\r\nimport { Param, lerpParam, equalsParam } from \"../../ramp\";\r\n\r\n/** Attenuates frequencies below `frequency`, passing the highs through. */\r\nexport interface HighPassEffect {\r\n type: 'highpass';\r\n /** Cutoff frequency in Hz. Content below this is rolled off. May be a ramp. */\r\n frequency: Param;\r\n /** Resonance (Q) at the cutoff. Default 1. May be a ramp. */\r\n q?: Param;\r\n}\r\n\r\nexport const highPassEffect: AudioEffectData<HighPassEffect> = {\r\n lerp: (from, to, t) => ({\r\n type: \"highpass\",\r\n frequency: lerpParam(from.frequency, to.frequency, t),\r\n q: lerpParam(from.q ?? 1, to.q ?? 1, t),\r\n }),\r\n equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),\r\n};\r\n"]}
@@ -0,0 +1,12 @@
1
+ import type { AudioEffectData } from "../registry.js";
2
+ import { Param } from "../../ramp.js";
3
+ /** Attenuates frequencies above `frequency`, passing the lows through. */
4
+ export interface LowPassEffect {
5
+ type: 'lowpass';
6
+ /** Cutoff frequency in Hz. Content above this is rolled off. May be a ramp. */
7
+ frequency: Param;
8
+ /** Resonance (Q) at the cutoff. Default 1. May be a ramp. */
9
+ q?: Param;
10
+ }
11
+ export declare const lowPassEffect: AudioEffectData<LowPassEffect>;
12
+ //# sourceMappingURL=lowpass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lowpass.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/lowpass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,YAAY,CAAC;AAE3D,0EAA0E;AAC1E,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,+EAA+E;IAC/E,SAAS,EAAE,KAAK,CAAC;IACjB,6DAA6D;IAC7D,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,aAAa,CAOxD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { lerpParam, equalsParam } from "../../ramp.js";
2
+ export const lowPassEffect = {
3
+ lerp: (from, to, t) => ({
4
+ type: "lowpass",
5
+ frequency: lerpParam(from.frequency, to.frequency, t),
6
+ q: lerpParam(from.q ?? 1, to.q ?? 1, t),
7
+ }),
8
+ equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),
9
+ };
10
+ //# sourceMappingURL=lowpass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lowpass.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/lowpass.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAW3D,MAAM,CAAC,MAAM,aAAa,GAAmC;IACzD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;QACrD,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7F,CAAC","sourcesContent":["import type { AudioEffectData } from \"../registry\";\r\nimport { Param, lerpParam, equalsParam } from \"../../ramp\";\r\n\r\n/** Attenuates frequencies above `frequency`, passing the lows through. */\r\nexport interface LowPassEffect {\r\n type: 'lowpass';\r\n /** Cutoff frequency in Hz. Content above this is rolled off. May be a ramp. */\r\n frequency: Param;\r\n /** Resonance (Q) at the cutoff. Default 1. May be a ramp. */\r\n q?: Param;\r\n}\r\n\r\nexport const lowPassEffect: AudioEffectData<LowPassEffect> = {\r\n lerp: (from, to, t) => ({\r\n type: \"lowpass\",\r\n frequency: lerpParam(from.frequency, to.frequency, t),\r\n q: lerpParam(from.q ?? 1, to.q ?? 1, t),\r\n }),\r\n equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),\r\n};\r\n"]}
@@ -0,0 +1,12 @@
1
+ import type { AudioEffectData } from "../registry.js";
2
+ import { Param } from "../../ramp.js";
3
+ /** Modulates the clip's amplitude with a low-frequency oscillator for a wobble effect. */
4
+ export interface TremoloEffect {
5
+ type: 'tremolo';
6
+ /** Modulation rate in Hz (how fast the volume pulses). May be a ramp. */
7
+ rate: Param;
8
+ /** Modulation depth, 0–1. 0 = no effect, 1 = full dips to silence. May be a ramp. */
9
+ depth: Param;
10
+ }
11
+ export declare const tremoloEffect: AudioEffectData<TremoloEffect>;
12
+ //# sourceMappingURL=tremolo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tremolo.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/tremolo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,YAAY,CAAC;AAE3D,0FAA0F;AAC1F,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,yEAAyE;IACzE,IAAI,EAAE,KAAK,CAAC;IACZ,qFAAqF;IACrF,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,aAAa,CAOxD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { lerpParam, equalsParam } from "../../ramp.js";
2
+ export const tremoloEffect = {
3
+ lerp: (from, to, t) => ({
4
+ type: "tremolo",
5
+ rate: lerpParam(from.rate, to.rate, t),
6
+ depth: lerpParam(from.depth, to.depth, t),
7
+ }),
8
+ equals: (a, b) => equalsParam(a.rate, b.rate) && equalsParam(a.depth, b.depth),
9
+ };
10
+ //# sourceMappingURL=tremolo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tremolo.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/effects/implementations/tremolo.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAW3D,MAAM,CAAC,MAAM,aAAa,GAAmC;IACzD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QACtC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;CACjF,CAAC","sourcesContent":["import type { AudioEffectData } from \"../registry\";\r\nimport { Param, lerpParam, equalsParam } from \"../../ramp\";\r\n\r\n/** Modulates the clip's amplitude with a low-frequency oscillator for a wobble effect. */\r\nexport interface TremoloEffect {\r\n type: 'tremolo';\r\n /** Modulation rate in Hz (how fast the volume pulses). May be a ramp. */\r\n rate: Param;\r\n /** Modulation depth, 0–1. 0 = no effect, 1 = full dips to silence. May be a ramp. */\r\n depth: Param;\r\n}\r\n\r\nexport const tremoloEffect: AudioEffectData<TremoloEffect> = {\r\n lerp: (from, to, t) => ({\r\n type: \"tremolo\",\r\n rate: lerpParam(from.rate, to.rate, t),\r\n depth: lerpParam(from.depth, to.depth, t),\r\n }),\r\n equals: (a, b) => equalsParam(a.rate, b.rate) && equalsParam(a.depth, b.depth),\r\n};\r\n"]}
@@ -0,0 +1,12 @@
1
+ export type { GainEffect } from './implementations/gain.js';
2
+ export type { HighPassEffect } from './implementations/highpass.js';
3
+ export type { LowPassEffect } from './implementations/lowpass.js';
4
+ export type { TremoloEffect } from './implementations/tremolo.js';
5
+ export type { EchoEffect } from './implementations/echo.js';
6
+ export { AudioEffects, AudioEffectChain, resolveAudioEffects } from './chain.js';
7
+ export type { AudioEffectsInput, GainEffectOptions, HighPassEffectOptions, LowPassEffectOptions, TremoloEffectOptions, EchoEffectOptions, } from './chain.js';
8
+ export type { AudioEffect } from './union.js';
9
+ export { effectsKey } from './union.js';
10
+ export { AudioEffectRegistry, audioEffectsOps } from './registry.js';
11
+ export type { AudioEffectData } from './registry.js';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9E,YAAY,EACR,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,GACpB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AudioEffects, AudioEffectChain, resolveAudioEffects } from './chain.js';
2
+ export { effectsKey } from './union.js';
3
+ export { AudioEffectRegistry, audioEffectsOps } from './registry.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAW9E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export type { GainEffect } from './implementations/gain';\r\nexport type { HighPassEffect } from './implementations/highpass';\r\nexport type { LowPassEffect } from './implementations/lowpass';\r\nexport type { TremoloEffect } from './implementations/tremolo';\r\nexport type { EchoEffect } from './implementations/echo';\r\n\r\nexport { AudioEffects, AudioEffectChain, resolveAudioEffects } from './chain';\r\nexport type {\r\n AudioEffectsInput,\r\n GainEffectOptions,\r\n HighPassEffectOptions,\r\n LowPassEffectOptions,\r\n TremoloEffectOptions,\r\n EchoEffectOptions,\r\n} from './chain';\r\n\r\nexport type { AudioEffect } from './union';\r\nexport { effectsKey } from './union';\r\n\r\nexport { AudioEffectRegistry, audioEffectsOps } from './registry';\r\nexport type { AudioEffectData } from './registry';\r\n"]}
@@ -0,0 +1,36 @@
1
+ import { AudioEffect } from "../../../attributes/audio/effects/union.js";
2
+ import { type AudioEffectsInput } from "../../../attributes/audio/effects/chain.js";
3
+ import type { AttributeOps } from "../../../attributes/shared/operators.js";
4
+ /** Interpolation and equality contract every registered audio effect must implement. */
5
+ export interface AudioEffectData<T extends AudioEffect> {
6
+ /** Return a new effect linearly interpolated between `from` and `to` at progress `t` (0–1). */
7
+ lerp(from: T, to: T, t: number): T;
8
+ /** Return true when both effects are audibly identical (used to skip redundant work). */
9
+ equals(a: T, b: T): boolean;
10
+ }
11
+ /** Central registry that maps audio-effect type strings to their `AudioEffectData` handlers. */
12
+ export declare class AudioEffectRegistry {
13
+ private static registry;
14
+ /**
15
+ * Register an effect type.
16
+ * Throws if the same `type` key is registered more than once to catch accidental double-imports.
17
+ */
18
+ static register<T extends AudioEffect>(type: string, data: AudioEffectData<T>): void;
19
+ /** Look up the `AudioEffectData` for a given type key, or `undefined` if not registered. */
20
+ static get(type: string): AudioEffectData<AudioEffect> | undefined;
21
+ /** Return true when an effect type has been registered. */
22
+ static has(type: string): boolean;
23
+ /**
24
+ * Interpolate between two individual effects at progress `t`.
25
+ * Falls back to a hard cut at t = 0.5 when the types differ or are unregistered.
26
+ */
27
+ static lerp(from: AudioEffect, to: AudioEffect, t: number): AudioEffect;
28
+ /**
29
+ * Interpolate between two effect arrays of potentially different lengths.
30
+ * Indices present in only one array are kept as-is; matched indices are lerped pairwise.
31
+ */
32
+ static lerpArray(from: AudioEffect[], to: AudioEffect[], t: number): AudioEffect[];
33
+ }
34
+ /** The audio-effect-chain attribute's op set — the `effects` prop's resolve/lerp pair. */
35
+ export declare const audioEffectsOps: AttributeOps<AudioEffectsInput, AudioEffect[]>;
36
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,kCAAkC,CAAC;AAC/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAOlE,wFAAwF;AACxF,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,WAAW;IAClD,+FAA+F;IAC/F,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IACnC,yFAAyF;IACzF,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;CAC/B;AAiBD,gGAAgG;AAChG,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAErB;IAEF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI;IAOpF,4FAA4F;IAC5F,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,SAAS;IAIlE,2DAA2D;IAC3D,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;IAMvE;;;OAGG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,EAAE;CAgBrF;AAED,0FAA0F;AAC1F,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,iBAAiB,EAAE,WAAW,EAAE,CAG1E,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { resolveAudioEffects } from "../../../attributes/audio/effects/chain.js";
2
+ import { gainEffect } from "./implementations/gain.js";
3
+ import { highPassEffect } from "./implementations/highpass.js";
4
+ import { lowPassEffect } from "./implementations/lowpass.js";
5
+ import { tremoloEffect } from "./implementations/tremolo.js";
6
+ import { echoEffect } from "./implementations/echo.js";
7
+ /**
8
+ * Every built-in effect's handler, keyed by its `type` — an effect missing here
9
+ * is a type error. Seeded into the registry rather than registered by each
10
+ * effect's own module: core is `sideEffects: false`, so a module imported only
11
+ * to run a `register` call is one a bundler may drop, and the effect it held
12
+ * would then hard-cut instead of interpolating, with nothing raised.
13
+ */
14
+ const BUILT_IN_EFFECTS = {
15
+ gain: gainEffect,
16
+ highpass: highPassEffect,
17
+ lowpass: lowPassEffect,
18
+ tremolo: tremoloEffect,
19
+ echo: echoEffect,
20
+ };
21
+ /** Central registry that maps audio-effect type strings to their `AudioEffectData` handlers. */
22
+ export class AudioEffectRegistry {
23
+ static registry = new Map(Object.entries(BUILT_IN_EFFECTS));
24
+ /**
25
+ * Register an effect type.
26
+ * Throws if the same `type` key is registered more than once to catch accidental double-imports.
27
+ */
28
+ static register(type, data) {
29
+ if (this.registry.has(type)) {
30
+ throw new Error(`Audio effect "${type}" is already registered`);
31
+ }
32
+ this.registry.set(type, data);
33
+ }
34
+ /** Look up the `AudioEffectData` for a given type key, or `undefined` if not registered. */
35
+ static get(type) {
36
+ return this.registry.get(type);
37
+ }
38
+ /** Return true when an effect type has been registered. */
39
+ static has(type) {
40
+ return this.registry.has(type);
41
+ }
42
+ /**
43
+ * Interpolate between two individual effects at progress `t`.
44
+ * Falls back to a hard cut at t = 0.5 when the types differ or are unregistered.
45
+ */
46
+ static lerp(from, to, t) {
47
+ if (from.type !== to.type)
48
+ return t < 0.5 ? from : to;
49
+ const data = this.registry.get(from.type);
50
+ return data ? data.lerp(from, to, t) : (t < 0.5 ? from : to);
51
+ }
52
+ /**
53
+ * Interpolate between two effect arrays of potentially different lengths.
54
+ * Indices present in only one array are kept as-is; matched indices are lerped pairwise.
55
+ */
56
+ static lerpArray(from, to, t) {
57
+ const maxLen = Math.max(from.length, to.length);
58
+ const result = [];
59
+ for (let i = 0; i < maxLen; i++) {
60
+ const a = from[i];
61
+ const b = to[i];
62
+ if (a && b) {
63
+ result.push(AudioEffectRegistry.lerp(a, b, t));
64
+ }
65
+ else if (a) {
66
+ result.push(a);
67
+ }
68
+ else if (b) {
69
+ result.push(b);
70
+ }
71
+ }
72
+ return result;
73
+ }
74
+ }
75
+ /** The audio-effect-chain attribute's op set — the `effects` prop's resolve/lerp pair. */
76
+ export const audioEffectsOps = {
77
+ resolve: resolveAudioEffects,
78
+ lerp: AudioEffectRegistry.lerpArray,
79
+ };
80
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/registry.ts"],"names":[],"mappings":"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","sourcesContent":["import { AudioEffect } from \"@/attributes/audio/effects/union\";\r\nimport { type AudioEffectsInput, resolveAudioEffects } from \"@/attributes/audio/effects/chain\";\r\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\r\nimport { gainEffect } from \"./implementations/gain\";\r\nimport { highPassEffect } from \"./implementations/highpass\";\r\nimport { lowPassEffect } from \"./implementations/lowpass\";\r\nimport { tremoloEffect } from \"./implementations/tremolo\";\r\nimport { echoEffect } from \"./implementations/echo\";\r\n\r\n/** Interpolation and equality contract every registered audio effect must implement. */\r\nexport interface AudioEffectData<T extends AudioEffect> {\r\n /** Return a new effect linearly interpolated between `from` and `to` at progress `t` (0–1). */\r\n lerp(from: T, to: T, t: number): T;\r\n /** Return true when both effects are audibly identical (used to skip redundant work). */\r\n equals(a: T, b: T): boolean;\r\n}\r\n\r\n/**\r\n * Every built-in effect's handler, keyed by its `type` — an effect missing here\r\n * is a type error. Seeded into the registry rather than registered by each\r\n * effect's own module: core is `sideEffects: false`, so a module imported only\r\n * to run a `register` call is one a bundler may drop, and the effect it held\r\n * would then hard-cut instead of interpolating, with nothing raised.\r\n */\r\nconst BUILT_IN_EFFECTS: { [K in AudioEffect[\"type\"]]: AudioEffectData<Extract<AudioEffect, { type: K }>> } = {\r\n gain: gainEffect,\r\n highpass: highPassEffect,\r\n lowpass: lowPassEffect,\r\n tremolo: tremoloEffect,\r\n echo: echoEffect,\r\n};\r\n\r\n/** Central registry that maps audio-effect type strings to their `AudioEffectData` handlers. */\r\nexport class AudioEffectRegistry {\r\n private static registry = new Map<string, AudioEffectData<AudioEffect>>(\r\n Object.entries(BUILT_IN_EFFECTS) as [string, AudioEffectData<AudioEffect>][],\r\n );\r\n\r\n /**\r\n * Register an effect type.\r\n * Throws if the same `type` key is registered more than once to catch accidental double-imports.\r\n */\r\n static register<T extends AudioEffect>(type: string, data: AudioEffectData<T>): void {\r\n if (this.registry.has(type)) {\r\n throw new Error(`Audio effect \"${type}\" is already registered`);\r\n }\r\n this.registry.set(type, data as AudioEffectData<AudioEffect>);\r\n }\r\n\r\n /** Look up the `AudioEffectData` for a given type key, or `undefined` if not registered. */\r\n static get(type: string): AudioEffectData<AudioEffect> | undefined {\r\n return this.registry.get(type);\r\n }\r\n\r\n /** Return true when an effect type has been registered. */\r\n static has(type: string): boolean {\r\n return this.registry.has(type);\r\n }\r\n\r\n /**\r\n * Interpolate between two individual effects at progress `t`.\r\n * Falls back to a hard cut at t = 0.5 when the types differ or are unregistered.\r\n */\r\n static lerp(from: AudioEffect, to: AudioEffect, t: number): AudioEffect {\r\n if (from.type !== to.type) return t < 0.5 ? from : to;\r\n const data = this.registry.get(from.type);\r\n return data ? data.lerp(from, to, t) : (t < 0.5 ? from : to);\r\n }\r\n\r\n /**\r\n * Interpolate between two effect arrays of potentially different lengths.\r\n * Indices present in only one array are kept as-is; matched indices are lerped pairwise.\r\n */\r\n static lerpArray(from: AudioEffect[], to: AudioEffect[], t: number): AudioEffect[] {\r\n const maxLen = Math.max(from.length, to.length);\r\n const result: AudioEffect[] = [];\r\n for (let i = 0; i < maxLen; i++) {\r\n const a = from[i];\r\n const b = to[i];\r\n if (a && b) {\r\n result.push(AudioEffectRegistry.lerp(a, b, t));\r\n } else if (a) {\r\n result.push(a);\r\n } else if (b) {\r\n result.push(b);\r\n }\r\n }\r\n return result;\r\n }\r\n}\r\n\r\n/** The audio-effect-chain attribute's op set — the `effects` prop's resolve/lerp pair. */\r\nexport const audioEffectsOps: AttributeOps<AudioEffectsInput, AudioEffect[]> = {\r\n resolve: resolveAudioEffects,\r\n lerp: AudioEffectRegistry.lerpArray,\r\n};\r\n"]}
@@ -0,0 +1,14 @@
1
+ import type { GainEffect } from "./implementations/gain.js";
2
+ import type { HighPassEffect } from "./implementations/highpass.js";
3
+ import type { LowPassEffect } from "./implementations/lowpass.js";
4
+ import type { TremoloEffect } from "./implementations/tremolo.js";
5
+ import type { EchoEffect } from "./implementations/echo.js";
6
+ /** Every concrete audio effect a sound or a bus can carry. */
7
+ export type AudioEffect = GainEffect | HighPassEffect | LowPassEffect | TremoloEffect | EchoEffect;
8
+ /**
9
+ * Equal for two chains exactly when they sound the same. A device keys its
10
+ * playback by it, so an edited effect tears down the stale source rather than
11
+ * playing it until the next stop.
12
+ */
13
+ export declare function effectsKey(effects: readonly AudioEffect[] | undefined): string;
14
+ //# sourceMappingURL=union.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GACjB,UAAU,GACV,cAAc,GACd,aAAa,GACb,aAAa,GACb,UAAU,CAAC;AAEjB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,GAAG,MAAM,CAe9E"}
@@ -0,0 +1,24 @@
1
+ import { paramKey } from "../ramp.js";
2
+ /**
3
+ * Equal for two chains exactly when they sound the same. A device keys its
4
+ * playback by it, so an edited effect tears down the stale source rather than
5
+ * playing it until the next stop.
6
+ */
7
+ export function effectsKey(effects) {
8
+ if (!effects || effects.length === 0)
9
+ return "";
10
+ return effects.map((f) => {
11
+ switch (f.type) {
12
+ case "gain":
13
+ return `gain:${paramKey(f.value)}`;
14
+ case "highpass":
15
+ case "lowpass":
16
+ return `${f.type}:${paramKey(f.frequency)}:${paramKey(f.q)}`;
17
+ case "tremolo":
18
+ return `tremolo:${paramKey(f.rate)}:${paramKey(f.depth)}`;
19
+ case "echo":
20
+ return `echo:${paramKey(f.delay)}:${paramKey(f.feedback)}:${paramKey(f.mix)}`;
21
+ }
22
+ }).join("|");
23
+ }
24
+ //# sourceMappingURL=union.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.js","sourceRoot":"","sources":["../../../../src/attributes/audio/effects/union.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAUnC;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,OAA2C;IAClE,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAChD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACP,OAAO,QAAQ,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;YACvC,KAAK,UAAU,CAAC;YAChB,KAAK,SAAS;gBACV,OAAO,GAAG,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACjE,KAAK,SAAS;gBACV,OAAO,WAAW,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9D,KAAK,MAAM;gBACP,OAAO,QAAQ,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACtF,CAAC;IACL,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC","sourcesContent":["import type { GainEffect } from \"./implementations/gain\";\r\nimport type { HighPassEffect } from \"./implementations/highpass\";\r\nimport type { LowPassEffect } from \"./implementations/lowpass\";\r\nimport type { TremoloEffect } from \"./implementations/tremolo\";\r\nimport type { EchoEffect } from \"./implementations/echo\";\r\nimport { paramKey } from \"../ramp\";\r\n\r\n/** Every concrete audio effect a sound or a bus can carry. */\r\nexport type AudioEffect =\r\n | GainEffect\r\n | HighPassEffect\r\n | LowPassEffect\r\n | TremoloEffect\r\n | EchoEffect;\r\n\r\n/**\r\n * Equal for two chains exactly when they sound the same. A device keys its\r\n * playback by it, so an edited effect tears down the stale source rather than\r\n * playing it until the next stop.\r\n */\r\nexport function effectsKey(effects: readonly AudioEffect[] | undefined): string {\r\n if (!effects || effects.length === 0) return \"\";\r\n return effects.map((f) => {\r\n switch (f.type) {\r\n case \"gain\":\r\n return `gain:${paramKey(f.value)}`;\r\n case \"highpass\":\r\n case \"lowpass\":\r\n return `${f.type}:${paramKey(f.frequency)}:${paramKey(f.q)}`;\r\n case \"tremolo\":\r\n return `tremolo:${paramKey(f.rate)}:${paramKey(f.depth)}`;\r\n case \"echo\":\r\n return `echo:${paramKey(f.delay)}:${paramKey(f.feedback)}:${paramKey(f.mix)}`;\r\n }\r\n }).join(\"|\");\r\n}\r\n"]}
@@ -0,0 +1,103 @@
1
+ import { type EaseSpec } from "../../tween/ease/spec.js";
2
+ import type { EasingFunction } from "../../tween/ease/type.js";
3
+ import type { AttributeOps } from "../../attributes/shared/operators.js";
4
+ /**
5
+ * One point of a {@link Ramp}: a value, placed `at` seconds after the start or
6
+ * `before` seconds before the end, and the ease of the segment arriving at it
7
+ * (linear when absent).
8
+ */
9
+ export type RampKey = {
10
+ readonly at: number;
11
+ readonly before?: undefined;
12
+ readonly value: number;
13
+ readonly ease?: EaseSpec;
14
+ } | {
15
+ readonly before: number;
16
+ readonly at?: undefined;
17
+ readonly value: number;
18
+ readonly ease?: EaseSpec;
19
+ };
20
+ /**
21
+ * Automation for one audio param, as plain JSON.
22
+ *
23
+ * A `before` key stays where it is when the clip is trimmed, which is what makes
24
+ * "the last second" mean the last second of whatever length the clip has.
25
+ */
26
+ export interface Ramp {
27
+ readonly keys: readonly RampKey[];
28
+ }
29
+ /** An audio param: a constant, or a {@link Ramp}. */
30
+ export type Param = number | Ramp;
31
+ /** A ramp key's time and ease, resolved against one length. */
32
+ export interface ResolvedRampKey {
33
+ readonly time: number;
34
+ readonly value: number;
35
+ readonly ease: EasingFunction;
36
+ /** Linear into this key, so a device can schedule a cheap ramp rather than a baked curve. */
37
+ readonly linear: boolean;
38
+ }
39
+ interface Segment {
40
+ readonly from?: number;
41
+ readonly to?: number;
42
+ readonly duration?: number;
43
+ readonly ease?: EaseSpec;
44
+ }
45
+ /** An ease as data, or an engine-built function (which records the data it came from). */
46
+ export type RampEase = EaseSpec | EasingFunction;
47
+ /**
48
+ * The fluent builder: `ramp(0, 1, 0.5).hold().ramp(1, 0, 1)`.
49
+ *
50
+ * Its one own field is `keys`, so it is a {@link Ramp} and serializes to one.
51
+ * Segments before the first bare `hold()` are placed from the start, segments
52
+ * after it from the end, and the hold stretches to fill whatever lies between.
53
+ */
54
+ export declare class RampChain implements Ramp {
55
+ readonly keys: readonly RampKey[];
56
+ constructor(segments?: readonly Segment[]);
57
+ /** Append a ramp from `from` to `to` over `duration` seconds. */
58
+ ramp(from: number, to: number, duration: number, options?: {
59
+ readonly ease?: RampEase;
60
+ }): RampChain;
61
+ /** Append a hold: for `duration` seconds, or, bare, for whatever the clip leaves over. */
62
+ hold(duration?: number): RampChain;
63
+ private _append;
64
+ }
65
+ /** A ramp from `from` to `to` over `duration` seconds. */
66
+ export declare function ramp(from: number, to: number, duration: number, options?: {
67
+ readonly ease?: RampEase;
68
+ }): RampChain;
69
+ /** A hold; bare `hold()` stretches to fill the middle of the clip. */
70
+ export declare function hold(duration?: number): RampChain;
71
+ /** Whether `p` is a {@link Ramp}: anything with a `keys` array, a parsed copy included. */
72
+ export declare function isRamp(p: unknown): p is Ramp;
73
+ /**
74
+ * The keys of `ramp` placed on a clip `length` seconds long, in time order.
75
+ *
76
+ * Every time is clamped to the clip, so a ramp longer than its clip is cut, not
77
+ * squeezed. Keys whose anchors cross (a start key past an end key on a short
78
+ * clip) are sorted by where they land, with a development warning.
79
+ */
80
+ export declare function resolveRamp(ramp: Ramp, length: number): readonly ResolvedRampKey[];
81
+ /** The value of `ramp` at `t` seconds into a clip `length` seconds long, `fallback` when it has no keys. */
82
+ export declare function sampleRamp(ramp: Ramp, t: number, length: number, fallback: number): number;
83
+ /** The value of `p` at `t`, for a number its own value. */
84
+ export declare function sampleParam(p: Param, t: number, length: number, fallback: number): number;
85
+ /** One representative number: the value itself, or the ramp's value at its start. */
86
+ export declare function staticValue(p: Param, fallback?: number): number;
87
+ /** Equal for two params exactly when they sound the same: what tells a device a param was edited. */
88
+ export declare function paramKey(p: Param | undefined): string;
89
+ /** Two numbers lerp; a ramp on either side hard-cuts at the midpoint. */
90
+ export declare function lerpParam(from: Param, to: Param, t: number): Param;
91
+ export declare function equalsParam(a: Param | undefined, b: Param | undefined): boolean;
92
+ /** The audio-param attribute's op set: resolve is the identity, lerp is {@link lerpParam}. */
93
+ export declare const audioParamOps: AttributeOps<Param, Param>;
94
+ /**
95
+ * Clip seconds spent playing the first `upper` source seconds under a speed
96
+ * ramp: `∫ 1/speed(τ) dτ`. The ramp is placed on `sourceLength`, the source
97
+ * seconds it is authored over, and speed is floored just above zero.
98
+ */
99
+ export declare function integrateSpeedToClipTime(speed: Ramp, sourceLength: number, upper?: number, step?: number): number;
100
+ /** Inverse of {@link integrateSpeedToClipTime}: the source seconds reached after `clipElapsed` clip seconds. */
101
+ export declare function sourceTimeAtClipElapsed(speed: Ramp, sourceLength: number, clipElapsed: number, step?: number): number;
102
+ export {};
103
+ //# sourceMappingURL=ramp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ramp.d.ts","sourceRoot":"","sources":["../../../src/attributes/audio/ramp.ts"],"names":[],"mappings":"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"}