@motionscript/core 0.0.0-stage → 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1405) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +201 -0
  3. package/README.md +71 -3
  4. package/dist/assets/asset-index.d.ts +48 -0
  5. package/dist/assets/asset-index.d.ts.map +1 -0
  6. package/dist/assets/asset-index.js +255 -0
  7. package/dist/assets/asset-index.js.map +1 -0
  8. package/dist/assets/catalog.d.ts +103 -0
  9. package/dist/assets/catalog.d.ts.map +1 -0
  10. package/dist/assets/catalog.js +78 -0
  11. package/dist/assets/catalog.js.map +1 -0
  12. package/dist/assets/errors.d.ts +32 -0
  13. package/dist/assets/errors.d.ts.map +1 -0
  14. package/dist/assets/errors.js +38 -0
  15. package/dist/assets/errors.js.map +1 -0
  16. package/dist/assets/index.d.ts +9 -0
  17. package/dist/assets/index.d.ts.map +1 -0
  18. package/dist/assets/index.js +5 -0
  19. package/dist/assets/index.js.map +1 -0
  20. package/dist/assets/manager.d.ts +67 -0
  21. package/dist/assets/manager.d.ts.map +1 -0
  22. package/dist/assets/manager.js +228 -0
  23. package/dist/assets/manager.js.map +1 -0
  24. package/dist/assets/manifest.d.ts +38 -0
  25. package/dist/assets/manifest.d.ts.map +1 -0
  26. package/dist/assets/manifest.js +2 -0
  27. package/dist/assets/manifest.js.map +1 -0
  28. package/dist/assets/record.d.ts +56 -0
  29. package/dist/assets/record.d.ts.map +1 -0
  30. package/dist/assets/record.js +2 -0
  31. package/dist/assets/record.js.map +1 -0
  32. package/dist/assets/scope.d.ts +91 -0
  33. package/dist/assets/scope.d.ts.map +1 -0
  34. package/dist/assets/scope.js +116 -0
  35. package/dist/assets/scope.js.map +1 -0
  36. package/dist/attributes/audio/filters/chain.d.ts +113 -0
  37. package/dist/attributes/audio/filters/chain.d.ts.map +1 -0
  38. package/dist/attributes/audio/filters/chain.js +104 -0
  39. package/dist/attributes/audio/filters/chain.js.map +1 -0
  40. package/dist/attributes/audio/filters/curve.d.ts +152 -0
  41. package/dist/attributes/audio/filters/curve.d.ts.map +1 -0
  42. package/dist/attributes/audio/filters/curve.js +249 -0
  43. package/dist/attributes/audio/filters/curve.js.map +1 -0
  44. package/dist/attributes/audio/filters/implementations/echo.d.ts +14 -0
  45. package/dist/attributes/audio/filters/implementations/echo.d.ts.map +1 -0
  46. package/dist/attributes/audio/filters/implementations/echo.js +11 -0
  47. package/dist/attributes/audio/filters/implementations/echo.js.map +1 -0
  48. package/dist/attributes/audio/filters/implementations/gain.d.ts +10 -0
  49. package/dist/attributes/audio/filters/implementations/gain.d.ts.map +1 -0
  50. package/dist/attributes/audio/filters/implementations/gain.js +6 -0
  51. package/dist/attributes/audio/filters/implementations/gain.js.map +1 -0
  52. package/dist/attributes/audio/filters/implementations/highpass.d.ts +12 -0
  53. package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +1 -0
  54. package/dist/attributes/audio/filters/implementations/highpass.js +10 -0
  55. package/dist/attributes/audio/filters/implementations/highpass.js.map +1 -0
  56. package/dist/attributes/audio/filters/implementations/lowpass.d.ts +12 -0
  57. package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +1 -0
  58. package/dist/attributes/audio/filters/implementations/lowpass.js +10 -0
  59. package/dist/attributes/audio/filters/implementations/lowpass.js.map +1 -0
  60. package/dist/attributes/audio/filters/implementations/speed.d.ts +18 -0
  61. package/dist/attributes/audio/filters/implementations/speed.d.ts.map +1 -0
  62. package/dist/attributes/audio/filters/implementations/speed.js +6 -0
  63. package/dist/attributes/audio/filters/implementations/speed.js.map +1 -0
  64. package/dist/attributes/audio/filters/implementations/tremolo.d.ts +12 -0
  65. package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +1 -0
  66. package/dist/attributes/audio/filters/implementations/tremolo.js +10 -0
  67. package/dist/attributes/audio/filters/implementations/tremolo.js.map +1 -0
  68. package/dist/attributes/audio/filters/index.d.ts +22 -0
  69. package/dist/attributes/audio/filters/index.d.ts.map +1 -0
  70. package/dist/attributes/audio/filters/index.js +8 -0
  71. package/dist/attributes/audio/filters/index.js.map +1 -0
  72. package/dist/attributes/audio/filters/registry.d.ts +36 -0
  73. package/dist/attributes/audio/filters/registry.d.ts.map +1 -0
  74. package/dist/attributes/audio/filters/registry.js +82 -0
  75. package/dist/attributes/audio/filters/registry.js.map +1 -0
  76. package/dist/attributes/audio/filters/union.d.ts +18 -0
  77. package/dist/attributes/audio/filters/union.d.ts.map +1 -0
  78. package/dist/attributes/audio/filters/union.js +28 -0
  79. package/dist/attributes/audio/filters/union.js.map +1 -0
  80. package/dist/attributes/audio/request.d.ts +87 -0
  81. package/dist/attributes/audio/request.d.ts.map +1 -0
  82. package/dist/attributes/audio/request.js +2 -0
  83. package/dist/attributes/audio/request.js.map +1 -0
  84. package/dist/attributes/audio/schedule.d.ts +48 -0
  85. package/dist/attributes/audio/schedule.d.ts.map +1 -0
  86. package/dist/attributes/audio/schedule.js +79 -0
  87. package/dist/attributes/audio/schedule.js.map +1 -0
  88. package/dist/attributes/audio/sound.d.ts +58 -0
  89. package/dist/attributes/audio/sound.d.ts.map +1 -0
  90. package/dist/attributes/audio/sound.js +38 -0
  91. package/dist/attributes/audio/sound.js.map +1 -0
  92. package/dist/attributes/index.d.ts +24 -0
  93. package/dist/attributes/index.d.ts.map +1 -0
  94. package/dist/attributes/index.js +24 -0
  95. package/dist/attributes/index.js.map +1 -0
  96. package/dist/attributes/layout/alignment.d.ts +62 -0
  97. package/dist/attributes/layout/alignment.d.ts.map +1 -0
  98. package/dist/attributes/layout/alignment.js +64 -0
  99. package/dist/attributes/layout/alignment.js.map +1 -0
  100. package/dist/attributes/layout/index.d.ts +11 -0
  101. package/dist/attributes/layout/index.d.ts.map +1 -0
  102. package/dist/attributes/layout/index.js +7 -0
  103. package/dist/attributes/layout/index.js.map +1 -0
  104. package/dist/attributes/layout/insets.d.ts +48 -0
  105. package/dist/attributes/layout/insets.d.ts.map +1 -0
  106. package/dist/attributes/layout/insets.js +34 -0
  107. package/dist/attributes/layout/insets.js.map +1 -0
  108. package/dist/attributes/layout/matrix2d.d.ts +186 -0
  109. package/dist/attributes/layout/matrix2d.d.ts.map +1 -0
  110. package/dist/attributes/layout/matrix2d.js +321 -0
  111. package/dist/attributes/layout/matrix2d.js.map +1 -0
  112. package/dist/attributes/layout/size.d.ts +42 -0
  113. package/dist/attributes/layout/size.d.ts.map +1 -0
  114. package/dist/attributes/layout/size.js +51 -0
  115. package/dist/attributes/layout/size.js.map +1 -0
  116. package/dist/attributes/layout/space3d.d.ts +175 -0
  117. package/dist/attributes/layout/space3d.d.ts.map +1 -0
  118. package/dist/attributes/layout/space3d.js +387 -0
  119. package/dist/attributes/layout/space3d.js.map +1 -0
  120. package/dist/attributes/layout/transform3d.d.ts +47 -0
  121. package/dist/attributes/layout/transform3d.d.ts.map +1 -0
  122. package/dist/attributes/layout/transform3d.js +32 -0
  123. package/dist/attributes/layout/transform3d.js.map +1 -0
  124. package/dist/attributes/layout/vector2.d.ts +11 -0
  125. package/dist/attributes/layout/vector2.d.ts.map +1 -0
  126. package/dist/attributes/layout/vector2.js +11 -0
  127. package/dist/attributes/layout/vector2.js.map +1 -0
  128. package/dist/attributes/layout/world-transform.d.ts +37 -0
  129. package/dist/attributes/layout/world-transform.d.ts.map +1 -0
  130. package/dist/attributes/layout/world-transform.js +2 -0
  131. package/dist/attributes/layout/world-transform.js.map +1 -0
  132. package/dist/attributes/mask/boolean.d.ts +2 -0
  133. package/dist/attributes/mask/boolean.d.ts.map +1 -0
  134. package/dist/attributes/mask/boolean.js +2 -0
  135. package/dist/attributes/mask/boolean.js.map +1 -0
  136. package/dist/attributes/mask/mask.d.ts +9 -0
  137. package/dist/attributes/mask/mask.d.ts.map +1 -0
  138. package/dist/attributes/mask/mask.js +2 -0
  139. package/dist/attributes/mask/mask.js.map +1 -0
  140. package/dist/attributes/properties/decorator.d.ts +85 -0
  141. package/dist/attributes/properties/decorator.d.ts.map +1 -0
  142. package/dist/attributes/properties/decorator.js +72 -0
  143. package/dist/attributes/properties/decorator.js.map +1 -0
  144. package/dist/attributes/properties/inputs.d.ts +12 -0
  145. package/dist/attributes/properties/inputs.d.ts.map +1 -0
  146. package/dist/attributes/properties/inputs.js +7 -0
  147. package/dist/attributes/properties/inputs.js.map +1 -0
  148. package/dist/attributes/properties/typed.d.ts +206 -0
  149. package/dist/attributes/properties/typed.d.ts.map +1 -0
  150. package/dist/attributes/properties/typed.js +157 -0
  151. package/dist/attributes/properties/typed.js.map +1 -0
  152. package/dist/attributes/render3d/orbit.d.ts +116 -0
  153. package/dist/attributes/render3d/orbit.d.ts.map +1 -0
  154. package/dist/attributes/render3d/orbit.js +125 -0
  155. package/dist/attributes/render3d/orbit.js.map +1 -0
  156. package/dist/attributes/shape/corners/corner-radius.d.ts +18 -0
  157. package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -0
  158. package/dist/attributes/shape/corners/corner-radius.js +17 -0
  159. package/dist/attributes/shape/corners/corner-radius.js.map +1 -0
  160. package/dist/attributes/shape/corners/corner-style.d.ts +34 -0
  161. package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -0
  162. package/dist/attributes/shape/corners/corner-style.js +21 -0
  163. package/dist/attributes/shape/corners/corner-style.js.map +1 -0
  164. package/dist/attributes/shape/corners/corners.d.ts +43 -0
  165. package/dist/attributes/shape/corners/corners.d.ts.map +1 -0
  166. package/dist/attributes/shape/corners/corners.js +70 -0
  167. package/dist/attributes/shape/corners/corners.js.map +1 -0
  168. package/dist/attributes/shape/corners/index.d.ts +8 -0
  169. package/dist/attributes/shape/corners/index.d.ts.map +1 -0
  170. package/dist/attributes/shape/corners/index.js +5 -0
  171. package/dist/attributes/shape/corners/index.js.map +1 -0
  172. package/dist/attributes/shape/effects/backdrop.d.ts +24 -0
  173. package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -0
  174. package/dist/attributes/shape/effects/backdrop.js +37 -0
  175. package/dist/attributes/shape/effects/backdrop.js.map +1 -0
  176. package/dist/attributes/shape/effects/chain.d.ts +922 -0
  177. package/dist/attributes/shape/effects/chain.d.ts.map +1 -0
  178. package/dist/attributes/shape/effects/chain.js +776 -0
  179. package/dist/attributes/shape/effects/chain.js.map +1 -0
  180. package/dist/attributes/shape/effects/effect-data.d.ts +162 -0
  181. package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -0
  182. package/dist/attributes/shape/effects/effect-data.js +80 -0
  183. package/dist/attributes/shape/effects/effect-data.js.map +1 -0
  184. package/dist/attributes/shape/effects/implementations/ascii.d.ts +49 -0
  185. package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -0
  186. package/dist/attributes/shape/effects/implementations/ascii.js +38 -0
  187. package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -0
  188. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +33 -0
  189. package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -0
  190. package/dist/attributes/shape/effects/implementations/bit-crush.js +18 -0
  191. package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -0
  192. package/dist/attributes/shape/effects/implementations/block-displace.d.ts +29 -0
  193. package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -0
  194. package/dist/attributes/shape/effects/implementations/block-displace.js +22 -0
  195. package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -0
  196. package/dist/attributes/shape/effects/implementations/bloom.d.ts +12 -0
  197. package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -0
  198. package/dist/attributes/shape/effects/implementations/bloom.js +12 -0
  199. package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -0
  200. package/dist/attributes/shape/effects/implementations/blur.d.ts +8 -0
  201. package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -0
  202. package/dist/attributes/shape/effects/implementations/blur.js +6 -0
  203. package/dist/attributes/shape/effects/implementations/blur.js.map +1 -0
  204. package/dist/attributes/shape/effects/implementations/bulge.d.ts +14 -0
  205. package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -0
  206. package/dist/attributes/shape/effects/implementations/bulge.js +17 -0
  207. package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -0
  208. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +10 -0
  209. package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -0
  210. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +11 -0
  211. package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -0
  212. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +42 -0
  213. package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -0
  214. package/dist/attributes/shape/effects/implementations/color-adjustment.js +27 -0
  215. package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -0
  216. package/dist/attributes/shape/effects/implementations/curves.d.ts +21 -0
  217. package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -0
  218. package/dist/attributes/shape/effects/implementations/curves.js +27 -0
  219. package/dist/attributes/shape/effects/implementations/curves.js.map +1 -0
  220. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +15 -0
  221. package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -0
  222. package/dist/attributes/shape/effects/implementations/directional-blur.js +11 -0
  223. package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -0
  224. package/dist/attributes/shape/effects/implementations/displace.d.ts +48 -0
  225. package/dist/attributes/shape/effects/implementations/displace.d.ts.map +1 -0
  226. package/dist/attributes/shape/effects/implementations/displace.js +30 -0
  227. package/dist/attributes/shape/effects/implementations/displace.js.map +1 -0
  228. package/dist/attributes/shape/effects/implementations/dither.d.ts +46 -0
  229. package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -0
  230. package/dist/attributes/shape/effects/implementations/dither.js +23 -0
  231. package/dist/attributes/shape/effects/implementations/dither.js.map +1 -0
  232. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +40 -0
  233. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -0
  234. package/dist/attributes/shape/effects/implementations/drop-shadow.js +31 -0
  235. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -0
  236. package/dist/attributes/shape/effects/implementations/duotone.d.ts +21 -0
  237. package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -0
  238. package/dist/attributes/shape/effects/implementations/duotone.js +19 -0
  239. package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -0
  240. package/dist/attributes/shape/effects/implementations/edges.d.ts +27 -0
  241. package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -0
  242. package/dist/attributes/shape/effects/implementations/edges.js +17 -0
  243. package/dist/attributes/shape/effects/implementations/edges.js.map +1 -0
  244. package/dist/attributes/shape/effects/implementations/glass.d.ts +46 -0
  245. package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -0
  246. package/dist/attributes/shape/effects/implementations/glass.js +25 -0
  247. package/dist/attributes/shape/effects/implementations/glass.js.map +1 -0
  248. package/dist/attributes/shape/effects/implementations/glow.d.ts +93 -0
  249. package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -0
  250. package/dist/attributes/shape/effects/implementations/glow.js +76 -0
  251. package/dist/attributes/shape/effects/implementations/glow.js.map +1 -0
  252. package/dist/attributes/shape/effects/implementations/god-rays.d.ts +28 -0
  253. package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +1 -0
  254. package/dist/attributes/shape/effects/implementations/god-rays.js +26 -0
  255. package/dist/attributes/shape/effects/implementations/god-rays.js.map +1 -0
  256. package/dist/attributes/shape/effects/implementations/grain.d.ts +29 -0
  257. package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -0
  258. package/dist/attributes/shape/effects/implementations/grain.js +21 -0
  259. package/dist/attributes/shape/effects/implementations/grain.js.map +1 -0
  260. package/dist/attributes/shape/effects/implementations/grayscale.d.ts +8 -0
  261. package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -0
  262. package/dist/attributes/shape/effects/implementations/grayscale.js +6 -0
  263. package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -0
  264. package/dist/attributes/shape/effects/implementations/halftone.d.ts +42 -0
  265. package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -0
  266. package/dist/attributes/shape/effects/implementations/halftone.js +19 -0
  267. package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -0
  268. package/dist/attributes/shape/effects/implementations/invert.d.ts +20 -0
  269. package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -0
  270. package/dist/attributes/shape/effects/implementations/invert.js +11 -0
  271. package/dist/attributes/shape/effects/implementations/invert.js.map +1 -0
  272. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +38 -0
  273. package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -0
  274. package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -0
  275. package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -0
  276. package/dist/attributes/shape/effects/implementations/lut.d.ts +46 -0
  277. package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -0
  278. package/dist/attributes/shape/effects/implementations/lut.js +21 -0
  279. package/dist/attributes/shape/effects/implementations/lut.js.map +1 -0
  280. package/dist/attributes/shape/effects/implementations/magnify.d.ts +14 -0
  281. package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -0
  282. package/dist/attributes/shape/effects/implementations/magnify.js +17 -0
  283. package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -0
  284. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +38 -0
  285. package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -0
  286. package/dist/attributes/shape/effects/implementations/motion-blur.js +32 -0
  287. package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -0
  288. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +19 -0
  289. package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -0
  290. package/dist/attributes/shape/effects/implementations/oil-paint.js +12 -0
  291. package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -0
  292. package/dist/attributes/shape/effects/implementations/outline.d.ts +27 -0
  293. package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -0
  294. package/dist/attributes/shape/effects/implementations/outline.js +20 -0
  295. package/dist/attributes/shape/effects/implementations/outline.js.map +1 -0
  296. package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -0
  297. package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -0
  298. package/dist/attributes/shape/effects/implementations/pixelate.js +15 -0
  299. package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -0
  300. package/dist/attributes/shape/effects/implementations/posterize.d.ts +17 -0
  301. package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -0
  302. package/dist/attributes/shape/effects/implementations/posterize.js +12 -0
  303. package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -0
  304. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +56 -0
  305. package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -0
  306. package/dist/attributes/shape/effects/implementations/progressive-blur.js +31 -0
  307. package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -0
  308. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +31 -0
  309. package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -0
  310. package/dist/attributes/shape/effects/implementations/radial-blur.js +23 -0
  311. package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -0
  312. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +25 -0
  313. package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -0
  314. package/dist/attributes/shape/effects/implementations/rgb-shift.js +18 -0
  315. package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -0
  316. package/dist/attributes/shape/effects/implementations/scanlines.d.ts +23 -0
  317. package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -0
  318. package/dist/attributes/shape/effects/implementations/scanlines.js +21 -0
  319. package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -0
  320. package/dist/attributes/shape/effects/implementations/scatter.d.ts +13 -0
  321. package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -0
  322. package/dist/attributes/shape/effects/implementations/scatter.js +19 -0
  323. package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -0
  324. package/dist/attributes/shape/effects/implementations/shader.d.ts +74 -0
  325. package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -0
  326. package/dist/attributes/shape/effects/implementations/shader.js +42 -0
  327. package/dist/attributes/shape/effects/implementations/shader.js.map +1 -0
  328. package/dist/attributes/shape/effects/implementations/sharpen.d.ts +21 -0
  329. package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -0
  330. package/dist/attributes/shape/effects/implementations/sharpen.js +13 -0
  331. package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -0
  332. package/dist/attributes/shape/effects/implementations/streak.d.ts +21 -0
  333. package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -0
  334. package/dist/attributes/shape/effects/implementations/streak.js +18 -0
  335. package/dist/attributes/shape/effects/implementations/streak.js.map +1 -0
  336. package/dist/attributes/shape/effects/implementations/texture.d.ts +28 -0
  337. package/dist/attributes/shape/effects/implementations/texture.d.ts.map +1 -0
  338. package/dist/attributes/shape/effects/implementations/texture.js +25 -0
  339. package/dist/attributes/shape/effects/implementations/texture.js.map +1 -0
  340. package/dist/attributes/shape/effects/implementations/threshold.d.ts +18 -0
  341. package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -0
  342. package/dist/attributes/shape/effects/implementations/threshold.js +13 -0
  343. package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -0
  344. package/dist/attributes/shape/effects/implementations/trails.d.ts +41 -0
  345. package/dist/attributes/shape/effects/implementations/trails.d.ts.map +1 -0
  346. package/dist/attributes/shape/effects/implementations/trails.js +22 -0
  347. package/dist/attributes/shape/effects/implementations/trails.js.map +1 -0
  348. package/dist/attributes/shape/effects/implementations/twirl.d.ts +25 -0
  349. package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -0
  350. package/dist/attributes/shape/effects/implementations/twirl.js +19 -0
  351. package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -0
  352. package/dist/attributes/shape/effects/implementations/vignette.d.ts +23 -0
  353. package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -0
  354. package/dist/attributes/shape/effects/implementations/vignette.js +21 -0
  355. package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -0
  356. package/dist/attributes/shape/effects/implementations/vintage.d.ts +10 -0
  357. package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -0
  358. package/dist/attributes/shape/effects/implementations/vintage.js +11 -0
  359. package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -0
  360. package/dist/attributes/shape/effects/implementations/wave.d.ts +39 -0
  361. package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -0
  362. package/dist/attributes/shape/effects/implementations/wave.js +26 -0
  363. package/dist/attributes/shape/effects/implementations/wave.js.map +1 -0
  364. package/dist/attributes/shape/effects/index.d.ts +62 -0
  365. package/dist/attributes/shape/effects/index.d.ts.map +1 -0
  366. package/dist/attributes/shape/effects/index.js +10 -0
  367. package/dist/attributes/shape/effects/index.js.map +1 -0
  368. package/dist/attributes/shape/effects/registry.d.ts +28 -0
  369. package/dist/attributes/shape/effects/registry.d.ts.map +1 -0
  370. package/dist/attributes/shape/effects/registry.js +156 -0
  371. package/dist/attributes/shape/effects/registry.js.map +1 -0
  372. package/dist/attributes/shape/effects/union.d.ts +48 -0
  373. package/dist/attributes/shape/effects/union.d.ts.map +1 -0
  374. package/dist/attributes/shape/effects/union.js +2 -0
  375. package/dist/attributes/shape/effects/union.js.map +1 -0
  376. package/dist/attributes/shape/fill/blend.d.ts +24 -0
  377. package/dist/attributes/shape/fill/blend.d.ts.map +1 -0
  378. package/dist/attributes/shape/fill/blend.js +41 -0
  379. package/dist/attributes/shape/fill/blend.js.map +1 -0
  380. package/dist/attributes/shape/fill/chain.d.ts +235 -0
  381. package/dist/attributes/shape/fill/chain.d.ts.map +1 -0
  382. package/dist/attributes/shape/fill/chain.js +249 -0
  383. package/dist/attributes/shape/fill/chain.js.map +1 -0
  384. package/dist/attributes/shape/fill/coerce.d.ts +44 -0
  385. package/dist/attributes/shape/fill/coerce.d.ts.map +1 -0
  386. package/dist/attributes/shape/fill/coerce.js +119 -0
  387. package/dist/attributes/shape/fill/coerce.js.map +1 -0
  388. package/dist/attributes/shape/fill/color/constants.d.ts +13 -0
  389. package/dist/attributes/shape/fill/color/constants.d.ts.map +1 -0
  390. package/dist/attributes/shape/fill/color/constants.js +162 -0
  391. package/dist/attributes/shape/fill/color/constants.js.map +1 -0
  392. package/dist/attributes/shape/fill/color/parser.d.ts +66 -0
  393. package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -0
  394. package/dist/attributes/shape/fill/color/parser.js +293 -0
  395. package/dist/attributes/shape/fill/color/parser.js.map +1 -0
  396. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +46 -0
  397. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -0
  398. package/dist/attributes/shape/fill/implementations/canvas3d.js +28 -0
  399. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -0
  400. package/dist/attributes/shape/fill/implementations/color.d.ts +17 -0
  401. package/dist/attributes/shape/fill/implementations/color.d.ts.map +1 -0
  402. package/dist/attributes/shape/fill/implementations/color.js +23 -0
  403. package/dist/attributes/shape/fill/implementations/color.js.map +1 -0
  404. package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts +24 -0
  405. package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -0
  406. package/dist/attributes/shape/fill/implementations/conic-gradient.js +32 -0
  407. package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -0
  408. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +41 -0
  409. package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.map +1 -0
  410. package/dist/attributes/shape/fill/implementations/dot-grid.js +40 -0
  411. package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -0
  412. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts +80 -0
  413. package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -0
  414. package/dist/attributes/shape/fill/implementations/fractal-noise.js +75 -0
  415. package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -0
  416. package/dist/attributes/shape/fill/implementations/grid.d.ts +58 -0
  417. package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -0
  418. package/dist/attributes/shape/fill/implementations/grid.js +58 -0
  419. package/dist/attributes/shape/fill/implementations/grid.js.map +1 -0
  420. package/dist/attributes/shape/fill/implementations/image.d.ts +148 -0
  421. package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -0
  422. package/dist/attributes/shape/fill/implementations/image.js +69 -0
  423. package/dist/attributes/shape/fill/implementations/image.js.map +1 -0
  424. package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts +24 -0
  425. package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -0
  426. package/dist/attributes/shape/fill/implementations/linear-gradient.js +32 -0
  427. package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -0
  428. package/dist/attributes/shape/fill/implementations/noise.d.ts +39 -0
  429. package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -0
  430. package/dist/attributes/shape/fill/implementations/noise.js +37 -0
  431. package/dist/attributes/shape/fill/implementations/noise.js.map +1 -0
  432. package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts +24 -0
  433. package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -0
  434. package/dist/attributes/shape/fill/implementations/radial-gradient.js +32 -0
  435. package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -0
  436. package/dist/attributes/shape/fill/implementations/shader.d.ts +88 -0
  437. package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -0
  438. package/dist/attributes/shape/fill/implementations/shader.js +75 -0
  439. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -0
  440. package/dist/attributes/shape/fill/implementations/stripe.d.ts +23 -0
  441. package/dist/attributes/shape/fill/implementations/stripe.d.ts.map +1 -0
  442. package/dist/attributes/shape/fill/implementations/stripe.js +35 -0
  443. package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -0
  444. package/dist/attributes/shape/fill/implementations/video.d.ts +134 -0
  445. package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -0
  446. package/dist/attributes/shape/fill/implementations/video.js +132 -0
  447. package/dist/attributes/shape/fill/implementations/video.js.map +1 -0
  448. package/dist/attributes/shape/fill/index.d.ts +26 -0
  449. package/dist/attributes/shape/fill/index.d.ts.map +1 -0
  450. package/dist/attributes/shape/fill/index.js +8 -0
  451. package/dist/attributes/shape/fill/index.js.map +1 -0
  452. package/dist/attributes/shape/fill/lerp.d.ts +15 -0
  453. package/dist/attributes/shape/fill/lerp.d.ts.map +1 -0
  454. package/dist/attributes/shape/fill/lerp.js +24 -0
  455. package/dist/attributes/shape/fill/lerp.js.map +1 -0
  456. package/dist/attributes/shape/fill/media-preset.d.ts +72 -0
  457. package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -0
  458. package/dist/attributes/shape/fill/media-preset.js +63 -0
  459. package/dist/attributes/shape/fill/media-preset.js.map +1 -0
  460. package/dist/attributes/shape/fill/registry.d.ts +46 -0
  461. package/dist/attributes/shape/fill/registry.d.ts.map +1 -0
  462. package/dist/attributes/shape/fill/registry.js +155 -0
  463. package/dist/attributes/shape/fill/registry.js.map +1 -0
  464. package/dist/attributes/shape/fill/union.d.ts +57 -0
  465. package/dist/attributes/shape/fill/union.d.ts.map +1 -0
  466. package/dist/attributes/shape/fill/union.js +11 -0
  467. package/dist/attributes/shape/fill/union.js.map +1 -0
  468. package/dist/attributes/shape/filters/chain.d.ts +297 -0
  469. package/dist/attributes/shape/filters/chain.d.ts.map +1 -0
  470. package/dist/attributes/shape/filters/chain.js +313 -0
  471. package/dist/attributes/shape/filters/chain.js.map +1 -0
  472. package/dist/attributes/shape/filters/implementations/alpha.d.ts +9 -0
  473. package/dist/attributes/shape/filters/implementations/alpha.d.ts.map +1 -0
  474. package/dist/attributes/shape/filters/implementations/alpha.js +6 -0
  475. package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -0
  476. package/dist/attributes/shape/filters/implementations/blur.d.ts +9 -0
  477. package/dist/attributes/shape/filters/implementations/blur.d.ts.map +1 -0
  478. package/dist/attributes/shape/filters/implementations/blur.js +6 -0
  479. package/dist/attributes/shape/filters/implementations/blur.js.map +1 -0
  480. package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts +30 -0
  481. package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts.map +1 -0
  482. package/dist/attributes/shape/filters/implementations/color-adjustment.js +27 -0
  483. package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -0
  484. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +15 -0
  485. package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -0
  486. package/dist/attributes/shape/filters/implementations/color-matrix.js +11 -0
  487. package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -0
  488. package/dist/attributes/shape/filters/implementations/curves.d.ts +19 -0
  489. package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -0
  490. package/dist/attributes/shape/filters/implementations/curves.js +17 -0
  491. package/dist/attributes/shape/filters/implementations/curves.js.map +1 -0
  492. package/dist/attributes/shape/filters/implementations/echo.d.ts +26 -0
  493. package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -0
  494. package/dist/attributes/shape/filters/implementations/echo.js +16 -0
  495. package/dist/attributes/shape/filters/implementations/echo.js.map +1 -0
  496. package/dist/attributes/shape/filters/implementations/exposure.d.ts +9 -0
  497. package/dist/attributes/shape/filters/implementations/exposure.d.ts.map +1 -0
  498. package/dist/attributes/shape/filters/implementations/exposure.js +6 -0
  499. package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -0
  500. package/dist/attributes/shape/filters/implementations/grayscale.d.ts +9 -0
  501. package/dist/attributes/shape/filters/implementations/grayscale.d.ts.map +1 -0
  502. package/dist/attributes/shape/filters/implementations/grayscale.js +6 -0
  503. package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -0
  504. package/dist/attributes/shape/filters/implementations/posterize-time.d.ts +15 -0
  505. package/dist/attributes/shape/filters/implementations/posterize-time.d.ts.map +1 -0
  506. package/dist/attributes/shape/filters/implementations/posterize-time.js +6 -0
  507. package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -0
  508. package/dist/attributes/shape/filters/index.d.ts +26 -0
  509. package/dist/attributes/shape/filters/index.d.ts.map +1 -0
  510. package/dist/attributes/shape/filters/index.js +7 -0
  511. package/dist/attributes/shape/filters/index.js.map +1 -0
  512. package/dist/attributes/shape/filters/registry.d.ts +52 -0
  513. package/dist/attributes/shape/filters/registry.d.ts.map +1 -0
  514. package/dist/attributes/shape/filters/registry.js +122 -0
  515. package/dist/attributes/shape/filters/registry.js.map +1 -0
  516. package/dist/attributes/shape/filters/union.d.ts +80 -0
  517. package/dist/attributes/shape/filters/union.d.ts.map +1 -0
  518. package/dist/attributes/shape/filters/union.js +2 -0
  519. package/dist/attributes/shape/filters/union.js.map +1 -0
  520. package/dist/attributes/shape/path/anchors.d.ts +135 -0
  521. package/dist/attributes/shape/path/anchors.d.ts.map +1 -0
  522. package/dist/attributes/shape/path/anchors.js +394 -0
  523. package/dist/attributes/shape/path/anchors.js.map +1 -0
  524. package/dist/attributes/shape/path/bezier.d.ts +124 -0
  525. package/dist/attributes/shape/path/bezier.d.ts.map +1 -0
  526. package/dist/attributes/shape/path/bezier.js +333 -0
  527. package/dist/attributes/shape/path/bezier.js.map +1 -0
  528. package/dist/attributes/shape/path/index.d.ts +15 -0
  529. package/dist/attributes/shape/path/index.d.ts.map +1 -0
  530. package/dist/attributes/shape/path/index.js +14 -0
  531. package/dist/attributes/shape/path/index.js.map +1 -0
  532. package/dist/attributes/shape/path/measure.d.ts +57 -0
  533. package/dist/attributes/shape/path/measure.d.ts.map +1 -0
  534. package/dist/attributes/shape/path/measure.js +319 -0
  535. package/dist/attributes/shape/path/measure.js.map +1 -0
  536. package/dist/attributes/shape/path/morph.d.ts +48 -0
  537. package/dist/attributes/shape/path/morph.d.ts.map +1 -0
  538. package/dist/attributes/shape/path/morph.js +345 -0
  539. package/dist/attributes/shape/path/morph.js.map +1 -0
  540. package/dist/attributes/shape/path/ops.d.ts +94 -0
  541. package/dist/attributes/shape/path/ops.d.ts.map +1 -0
  542. package/dist/attributes/shape/path/ops.js +34 -0
  543. package/dist/attributes/shape/path/ops.js.map +1 -0
  544. package/dist/attributes/shape/path/types.d.ts +190 -0
  545. package/dist/attributes/shape/path/types.d.ts.map +1 -0
  546. package/dist/attributes/shape/path/types.js +3 -0
  547. package/dist/attributes/shape/path/types.js.map +1 -0
  548. package/dist/attributes/shape/path/walk.d.ts +100 -0
  549. package/dist/attributes/shape/path/walk.d.ts.map +1 -0
  550. package/dist/attributes/shape/path/walk.js +615 -0
  551. package/dist/attributes/shape/path/walk.js.map +1 -0
  552. package/dist/attributes/shape/shaders/index.d.ts +3 -0
  553. package/dist/attributes/shape/shaders/index.d.ts.map +1 -0
  554. package/dist/attributes/shape/shaders/index.js +3 -0
  555. package/dist/attributes/shape/shaders/index.js.map +1 -0
  556. package/dist/attributes/shape/shaders/pack.d.ts +162 -0
  557. package/dist/attributes/shape/shaders/pack.d.ts.map +1 -0
  558. package/dist/attributes/shape/shaders/pack.js +116 -0
  559. package/dist/attributes/shape/shaders/pack.js.map +1 -0
  560. package/dist/attributes/shape/shaders/resolve.d.ts +18 -0
  561. package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -0
  562. package/dist/attributes/shape/shaders/resolve.js +137 -0
  563. package/dist/attributes/shape/shaders/resolve.js.map +1 -0
  564. package/dist/attributes/shape/shadow/index.d.ts +5 -0
  565. package/dist/attributes/shape/shadow/index.d.ts.map +1 -0
  566. package/dist/attributes/shape/shadow/index.js +2 -0
  567. package/dist/attributes/shape/shadow/index.js.map +1 -0
  568. package/dist/attributes/shape/shadow/shadow.d.ts +47 -0
  569. package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -0
  570. package/dist/attributes/shape/shadow/shadow.js +53 -0
  571. package/dist/attributes/shape/shadow/shadow.js.map +1 -0
  572. package/dist/attributes/shape/sksl-uniforms.d.ts +146 -0
  573. package/dist/attributes/shape/sksl-uniforms.d.ts.map +1 -0
  574. package/dist/attributes/shape/sksl-uniforms.js +0 -0
  575. package/dist/attributes/shape/sksl-uniforms.js.map +1 -0
  576. package/dist/attributes/shape/stroke/index.d.ts +5 -0
  577. package/dist/attributes/shape/stroke/index.d.ts.map +1 -0
  578. package/dist/attributes/shape/stroke/index.js +2 -0
  579. package/dist/attributes/shape/stroke/index.js.map +1 -0
  580. package/dist/attributes/shape/stroke/stroke.d.ts +90 -0
  581. package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -0
  582. package/dist/attributes/shape/stroke/stroke.js +121 -0
  583. package/dist/attributes/shape/stroke/stroke.js.map +1 -0
  584. package/dist/attributes/shared/operators.d.ts +26 -0
  585. package/dist/attributes/shared/operators.d.ts.map +1 -0
  586. package/dist/attributes/shared/operators.js +2 -0
  587. package/dist/attributes/shared/operators.js.map +1 -0
  588. package/dist/attributes/text/index.d.ts +14 -0
  589. package/dist/attributes/text/index.d.ts.map +1 -0
  590. package/dist/attributes/text/index.js +13 -0
  591. package/dist/attributes/text/index.js.map +1 -0
  592. package/dist/attributes/text/ops.d.ts +48 -0
  593. package/dist/attributes/text/ops.d.ts.map +1 -0
  594. package/dist/attributes/text/ops.js +176 -0
  595. package/dist/attributes/text/ops.js.map +1 -0
  596. package/dist/attributes/text/types.d.ts +93 -0
  597. package/dist/attributes/text/types.d.ts.map +1 -0
  598. package/dist/attributes/text/types.js +2 -0
  599. package/dist/attributes/text/types.js.map +1 -0
  600. package/dist/browser/chunks/chunk-2T3HXSC2.js +2 -0
  601. package/dist/browser/chunks/chunk-2T3HXSC2.js.map +7 -0
  602. package/dist/browser/chunks/chunk-P3XQCHDW.js +16 -0
  603. package/dist/browser/chunks/chunk-P3XQCHDW.js.map +7 -0
  604. package/dist/browser/chunks/chunk-VJQMKHGQ.js +3 -0
  605. package/dist/browser/chunks/chunk-VJQMKHGQ.js.map +7 -0
  606. package/dist/browser/component.js +2 -0
  607. package/dist/browser/component.js.map +7 -0
  608. package/dist/browser/index.js +2 -0
  609. package/dist/browser/index.js.map +7 -0
  610. package/dist/browser/jsx-jsx-dev-runtime.js +2 -0
  611. package/dist/browser/jsx-jsx-dev-runtime.js.map +7 -0
  612. package/dist/browser/jsx-jsx-runtime.js +2 -0
  613. package/dist/browser/jsx-jsx-runtime.js.map +7 -0
  614. package/dist/browser/manifest.json +13 -0
  615. package/dist/browser/sdk.js +2 -0
  616. package/dist/browser/sdk.js.map +7 -0
  617. package/dist/component.d.ts +28 -0
  618. package/dist/component.d.ts.map +1 -0
  619. package/dist/component.js +28 -0
  620. package/dist/component.js.map +1 -0
  621. package/dist/document/audio.d.ts +26 -0
  622. package/dist/document/audio.d.ts.map +1 -0
  623. package/dist/document/audio.js +67 -0
  624. package/dist/document/audio.js.map +1 -0
  625. package/dist/document/builtins.d.ts +21 -0
  626. package/dist/document/builtins.d.ts.map +1 -0
  627. package/dist/document/builtins.js +264 -0
  628. package/dist/document/builtins.js.map +1 -0
  629. package/dist/document/command-traits.d.ts +49 -0
  630. package/dist/document/command-traits.d.ts.map +1 -0
  631. package/dist/document/command-traits.js +252 -0
  632. package/dist/document/command-traits.js.map +1 -0
  633. package/dist/document/deny-globals.d.ts +50 -0
  634. package/dist/document/deny-globals.d.ts.map +1 -0
  635. package/dist/document/deny-globals.js +118 -0
  636. package/dist/document/deny-globals.js.map +1 -0
  637. package/dist/document/diff.d.ts +48 -0
  638. package/dist/document/diff.d.ts.map +1 -0
  639. package/dist/document/diff.js +274 -0
  640. package/dist/document/diff.js.map +1 -0
  641. package/dist/document/doc-index.d.ts +62 -0
  642. package/dist/document/doc-index.d.ts.map +1 -0
  643. package/dist/document/doc-index.js +280 -0
  644. package/dist/document/doc-index.js.map +1 -0
  645. package/dist/document/expression/compile.d.ts +7 -0
  646. package/dist/document/expression/compile.d.ts.map +1 -0
  647. package/dist/document/expression/compile.js +83 -0
  648. package/dist/document/expression/compile.js.map +1 -0
  649. package/dist/document/expression/index.d.ts +49 -0
  650. package/dist/document/expression/index.d.ts.map +1 -0
  651. package/dist/document/expression/index.js +48 -0
  652. package/dist/document/expression/index.js.map +1 -0
  653. package/dist/document/expression/ops.d.ts +33 -0
  654. package/dist/document/expression/ops.d.ts.map +1 -0
  655. package/dist/document/expression/ops.js +50 -0
  656. package/dist/document/expression/ops.js.map +1 -0
  657. package/dist/document/expression/parse.d.ts +26 -0
  658. package/dist/document/expression/parse.d.ts.map +1 -0
  659. package/dist/document/expression/parse.js +301 -0
  660. package/dist/document/expression/parse.js.map +1 -0
  661. package/dist/document/expression/refs.d.ts +22 -0
  662. package/dist/document/expression/refs.d.ts.map +1 -0
  663. package/dist/document/expression/refs.js +38 -0
  664. package/dist/document/expression/refs.js.map +1 -0
  665. package/dist/document/expression/types.d.ts +134 -0
  666. package/dist/document/expression/types.d.ts.map +1 -0
  667. package/dist/document/expression/types.js +32 -0
  668. package/dist/document/expression/types.js.map +1 -0
  669. package/dist/document/expression/walk.d.ts +32 -0
  670. package/dist/document/expression/walk.d.ts.map +1 -0
  671. package/dist/document/expression/walk.js +142 -0
  672. package/dist/document/expression/walk.js.map +1 -0
  673. package/dist/document/index.d.ts +10 -0
  674. package/dist/document/index.d.ts.map +1 -0
  675. package/dist/document/index.js +13 -0
  676. package/dist/document/index.js.map +1 -0
  677. package/dist/document/node-decorator.d.ts +61 -0
  678. package/dist/document/node-decorator.d.ts.map +1 -0
  679. package/dist/document/node-decorator.js +75 -0
  680. package/dist/document/node-decorator.js.map +1 -0
  681. package/dist/document/node-descriptor.d.ts +82 -0
  682. package/dist/document/node-descriptor.d.ts.map +1 -0
  683. package/dist/document/node-descriptor.js +2 -0
  684. package/dist/document/node-descriptor.js.map +1 -0
  685. package/dist/document/project.d.ts +91 -0
  686. package/dist/document/project.d.ts.map +1 -0
  687. package/dist/document/project.js +25 -0
  688. package/dist/document/project.js.map +1 -0
  689. package/dist/document/registry.d.ts +458 -0
  690. package/dist/document/registry.d.ts.map +1 -0
  691. package/dist/document/registry.js +443 -0
  692. package/dist/document/registry.js.map +1 -0
  693. package/dist/document/timeline-patch.d.ts +59 -0
  694. package/dist/document/timeline-patch.d.ts.map +1 -0
  695. package/dist/document/timeline-patch.js +395 -0
  696. package/dist/document/timeline-patch.js.map +1 -0
  697. package/dist/document/timeline.d.ts +339 -0
  698. package/dist/document/timeline.d.ts.map +1 -0
  699. package/dist/document/timeline.js +1177 -0
  700. package/dist/document/timeline.js.map +1 -0
  701. package/dist/document/types.d.ts +412 -0
  702. package/dist/document/types.d.ts.map +1 -0
  703. package/dist/document/types.js +146 -0
  704. package/dist/document/types.js.map +1 -0
  705. package/dist/document/validate.d.ts +52 -0
  706. package/dist/document/validate.d.ts.map +1 -0
  707. package/dist/document/validate.js +791 -0
  708. package/dist/document/validate.js.map +1 -0
  709. package/dist/index.d.ts +15 -0
  710. package/dist/index.d.ts.map +1 -0
  711. package/dist/index.js +15 -0
  712. package/dist/index.js.map +1 -0
  713. package/dist/jsx/jsx-dev-runtime.d.ts +3 -0
  714. package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -0
  715. package/dist/jsx/jsx-dev-runtime.js +3 -0
  716. package/dist/jsx/jsx-dev-runtime.js.map +1 -0
  717. package/dist/jsx/jsx-runtime.d.ts +19 -0
  718. package/dist/jsx/jsx-runtime.d.ts.map +1 -0
  719. package/dist/jsx/jsx-runtime.js +16 -0
  720. package/dist/jsx/jsx-runtime.js.map +1 -0
  721. package/dist/layout/bounds.d.ts +23 -0
  722. package/dist/layout/bounds.d.ts.map +1 -0
  723. package/dist/layout/bounds.js +2 -0
  724. package/dist/layout/bounds.js.map +1 -0
  725. package/dist/layout/constraints.d.ts +6 -0
  726. package/dist/layout/constraints.d.ts.map +1 -0
  727. package/dist/layout/constraints.js +2 -0
  728. package/dist/layout/constraints.js.map +1 -0
  729. package/dist/layout/flex.d.ts +31 -0
  730. package/dist/layout/flex.d.ts.map +1 -0
  731. package/dist/layout/flex.js +221 -0
  732. package/dist/layout/flex.js.map +1 -0
  733. package/dist/layout/freeform.d.ts +16 -0
  734. package/dist/layout/freeform.d.ts.map +1 -0
  735. package/dist/layout/freeform.js +29 -0
  736. package/dist/layout/freeform.js.map +1 -0
  737. package/dist/layout/grid.d.ts +18 -0
  738. package/dist/layout/grid.d.ts.map +1 -0
  739. package/dist/layout/grid.js +119 -0
  740. package/dist/layout/grid.js.map +1 -0
  741. package/dist/layout/index.d.ts +14 -0
  742. package/dist/layout/index.d.ts.map +1 -0
  743. package/dist/layout/index.js +13 -0
  744. package/dist/layout/index.js.map +1 -0
  745. package/dist/layout/item.d.ts +7 -0
  746. package/dist/layout/item.d.ts.map +1 -0
  747. package/dist/layout/item.js +17 -0
  748. package/dist/layout/item.js.map +1 -0
  749. package/dist/layout/ops.d.ts +30 -0
  750. package/dist/layout/ops.d.ts.map +1 -0
  751. package/dist/layout/ops.js +167 -0
  752. package/dist/layout/ops.js.map +1 -0
  753. package/dist/layout/types.d.ts +132 -0
  754. package/dist/layout/types.d.ts.map +1 -0
  755. package/dist/layout/types.js +2 -0
  756. package/dist/layout/types.js.map +1 -0
  757. package/dist/nodes/2d/node-lifecycle.d.ts +46 -0
  758. package/dist/nodes/2d/node-lifecycle.d.ts.map +1 -0
  759. package/dist/nodes/2d/node-lifecycle.js +264 -0
  760. package/dist/nodes/2d/node-lifecycle.js.map +1 -0
  761. package/dist/nodes/2d/node-motion.d.ts +56 -0
  762. package/dist/nodes/2d/node-motion.d.ts.map +1 -0
  763. package/dist/nodes/2d/node-motion.js +86 -0
  764. package/dist/nodes/2d/node-motion.js.map +1 -0
  765. package/dist/nodes/2d/node-render.d.ts +44 -0
  766. package/dist/nodes/2d/node-render.d.ts.map +1 -0
  767. package/dist/nodes/2d/node-render.js +80 -0
  768. package/dist/nodes/2d/node-render.js.map +1 -0
  769. package/dist/nodes/2d/node-space.d.ts +63 -0
  770. package/dist/nodes/2d/node-space.d.ts.map +1 -0
  771. package/dist/nodes/2d/node-space.js +131 -0
  772. package/dist/nodes/2d/node-space.js.map +1 -0
  773. package/dist/nodes/2d/node-transform.d.ts +55 -0
  774. package/dist/nodes/2d/node-transform.d.ts.map +1 -0
  775. package/dist/nodes/2d/node-transform.js +73 -0
  776. package/dist/nodes/2d/node-transform.js.map +1 -0
  777. package/dist/nodes/2d/node2d.d.ts +999 -0
  778. package/dist/nodes/2d/node2d.d.ts.map +1 -0
  779. package/dist/nodes/2d/node2d.js +1509 -0
  780. package/dist/nodes/2d/node2d.js.map +1 -0
  781. package/dist/nodes/2d/paint-node.d.ts +115 -0
  782. package/dist/nodes/2d/paint-node.d.ts.map +1 -0
  783. package/dist/nodes/2d/paint-node.js +190 -0
  784. package/dist/nodes/2d/paint-node.js.map +1 -0
  785. package/dist/nodes/audio/audio-bus.d.ts +28 -0
  786. package/dist/nodes/audio/audio-bus.d.ts.map +1 -0
  787. package/dist/nodes/audio/audio-bus.js +33 -0
  788. package/dist/nodes/audio/audio-bus.js.map +1 -0
  789. package/dist/nodes/audio/index.d.ts +4 -0
  790. package/dist/nodes/audio/index.d.ts.map +1 -0
  791. package/dist/nodes/audio/index.js +4 -0
  792. package/dist/nodes/audio/index.js.map +1 -0
  793. package/dist/nodes/audio/node-audio.d.ts +106 -0
  794. package/dist/nodes/audio/node-audio.d.ts.map +1 -0
  795. package/dist/nodes/audio/node-audio.js +176 -0
  796. package/dist/nodes/audio/node-audio.js.map +1 -0
  797. package/dist/nodes/audio/sound-node.d.ts +40 -0
  798. package/dist/nodes/audio/sound-node.d.ts.map +1 -0
  799. package/dist/nodes/audio/sound-node.js +68 -0
  800. package/dist/nodes/audio/sound-node.js.map +1 -0
  801. package/dist/nodes/geometry/boolean-node.d.ts +28 -0
  802. package/dist/nodes/geometry/boolean-node.d.ts.map +1 -0
  803. package/dist/nodes/geometry/boolean-node.js +81 -0
  804. package/dist/nodes/geometry/boolean-node.js.map +1 -0
  805. package/dist/nodes/geometry/bounds-shape-node.d.ts +149 -0
  806. package/dist/nodes/geometry/bounds-shape-node.d.ts.map +1 -0
  807. package/dist/nodes/geometry/bounds-shape-node.js +181 -0
  808. package/dist/nodes/geometry/bounds-shape-node.js.map +1 -0
  809. package/dist/nodes/geometry/box-path-node.d.ts +89 -0
  810. package/dist/nodes/geometry/box-path-node.d.ts.map +1 -0
  811. package/dist/nodes/geometry/box-path-node.js +116 -0
  812. package/dist/nodes/geometry/box-path-node.js.map +1 -0
  813. package/dist/nodes/geometry/dot-grid-node.d.ts +105 -0
  814. package/dist/nodes/geometry/dot-grid-node.d.ts.map +1 -0
  815. package/dist/nodes/geometry/dot-grid-node.js +142 -0
  816. package/dist/nodes/geometry/dot-grid-node.js.map +1 -0
  817. package/dist/nodes/geometry/ellipse-node.d.ts +18 -0
  818. package/dist/nodes/geometry/ellipse-node.d.ts.map +1 -0
  819. package/dist/nodes/geometry/ellipse-node.js +45 -0
  820. package/dist/nodes/geometry/ellipse-node.js.map +1 -0
  821. package/dist/nodes/geometry/grid-lines.d.ts +101 -0
  822. package/dist/nodes/geometry/grid-lines.d.ts.map +1 -0
  823. package/dist/nodes/geometry/grid-lines.js +128 -0
  824. package/dist/nodes/geometry/grid-lines.js.map +1 -0
  825. package/dist/nodes/geometry/grid-pattern-node.d.ts +58 -0
  826. package/dist/nodes/geometry/grid-pattern-node.d.ts.map +1 -0
  827. package/dist/nodes/geometry/grid-pattern-node.js +172 -0
  828. package/dist/nodes/geometry/grid-pattern-node.js.map +1 -0
  829. package/dist/nodes/geometry/group-bounds.d.ts +56 -0
  830. package/dist/nodes/geometry/group-bounds.d.ts.map +1 -0
  831. package/dist/nodes/geometry/group-bounds.js +88 -0
  832. package/dist/nodes/geometry/group-bounds.js.map +1 -0
  833. package/dist/nodes/geometry/line-grid-node.d.ts +62 -0
  834. package/dist/nodes/geometry/line-grid-node.d.ts.map +1 -0
  835. package/dist/nodes/geometry/line-grid-node.js +127 -0
  836. package/dist/nodes/geometry/line-grid-node.js.map +1 -0
  837. package/dist/nodes/geometry/line-node.d.ts +58 -0
  838. package/dist/nodes/geometry/line-node.d.ts.map +1 -0
  839. package/dist/nodes/geometry/line-node.js +123 -0
  840. package/dist/nodes/geometry/line-node.js.map +1 -0
  841. package/dist/nodes/geometry/mask-node.d.ts +33 -0
  842. package/dist/nodes/geometry/mask-node.d.ts.map +1 -0
  843. package/dist/nodes/geometry/mask-node.js +66 -0
  844. package/dist/nodes/geometry/mask-node.js.map +1 -0
  845. package/dist/nodes/geometry/path-node.d.ts +26 -0
  846. package/dist/nodes/geometry/path-node.d.ts.map +1 -0
  847. package/dist/nodes/geometry/path-node.js +52 -0
  848. package/dist/nodes/geometry/path-node.js.map +1 -0
  849. package/dist/nodes/geometry/polygon-node.d.ts +26 -0
  850. package/dist/nodes/geometry/polygon-node.d.ts.map +1 -0
  851. package/dist/nodes/geometry/polygon-node.js +47 -0
  852. package/dist/nodes/geometry/polygon-node.js.map +1 -0
  853. package/dist/nodes/geometry/polygram-node.d.ts +33 -0
  854. package/dist/nodes/geometry/polygram-node.d.ts.map +1 -0
  855. package/dist/nodes/geometry/polygram-node.js +52 -0
  856. package/dist/nodes/geometry/polygram-node.js.map +1 -0
  857. package/dist/nodes/geometry/rect-node.d.ts +38 -0
  858. package/dist/nodes/geometry/rect-node.d.ts.map +1 -0
  859. package/dist/nodes/geometry/rect-node.js +56 -0
  860. package/dist/nodes/geometry/rect-node.js.map +1 -0
  861. package/dist/nodes/geometry/shape-node.d.ts +71 -0
  862. package/dist/nodes/geometry/shape-node.d.ts.map +1 -0
  863. package/dist/nodes/geometry/shape-node.js +140 -0
  864. package/dist/nodes/geometry/shape-node.js.map +1 -0
  865. package/dist/nodes/geometry/shape-outline.d.ts +93 -0
  866. package/dist/nodes/geometry/shape-outline.d.ts.map +1 -0
  867. package/dist/nodes/geometry/shape-outline.js +481 -0
  868. package/dist/nodes/geometry/shape-outline.js.map +1 -0
  869. package/dist/nodes/geometry/viewport-pattern-node.d.ts +39 -0
  870. package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +1 -0
  871. package/dist/nodes/geometry/viewport-pattern-node.js +79 -0
  872. package/dist/nodes/geometry/viewport-pattern-node.js.map +1 -0
  873. package/dist/nodes/index.d.ts +46 -0
  874. package/dist/nodes/index.d.ts.map +1 -0
  875. package/dist/nodes/index.js +54 -0
  876. package/dist/nodes/index.js.map +1 -0
  877. package/dist/nodes/layout/camera-node.d.ts +71 -0
  878. package/dist/nodes/layout/camera-node.d.ts.map +1 -0
  879. package/dist/nodes/layout/camera-node.js +118 -0
  880. package/dist/nodes/layout/camera-node.js.map +1 -0
  881. package/dist/nodes/layout/orbit-camera-node.d.ts +80 -0
  882. package/dist/nodes/layout/orbit-camera-node.d.ts.map +1 -0
  883. package/dist/nodes/layout/orbit-camera-node.js +118 -0
  884. package/dist/nodes/layout/orbit-camera-node.js.map +1 -0
  885. package/dist/nodes/layout/rotated-box.d.ts +20 -0
  886. package/dist/nodes/layout/rotated-box.d.ts.map +1 -0
  887. package/dist/nodes/layout/rotated-box.js +76 -0
  888. package/dist/nodes/layout/rotated-box.js.map +1 -0
  889. package/dist/nodes/media/video-node.d.ts +229 -0
  890. package/dist/nodes/media/video-node.d.ts.map +1 -0
  891. package/dist/nodes/media/video-node.js +348 -0
  892. package/dist/nodes/media/video-node.js.map +1 -0
  893. package/dist/nodes/node/declare-paints.d.ts +19 -0
  894. package/dist/nodes/node/declare-paints.d.ts.map +1 -0
  895. package/dist/nodes/node/declare-paints.js +27 -0
  896. package/dist/nodes/node/declare-paints.js.map +1 -0
  897. package/dist/nodes/node/node-editor-state.d.ts +53 -0
  898. package/dist/nodes/node/node-editor-state.d.ts.map +1 -0
  899. package/dist/nodes/node/node-editor-state.js +23 -0
  900. package/dist/nodes/node/node-editor-state.js.map +1 -0
  901. package/dist/nodes/node/node-reactive.d.ts +89 -0
  902. package/dist/nodes/node/node-reactive.d.ts.map +1 -0
  903. package/dist/nodes/node/node-reactive.js +135 -0
  904. package/dist/nodes/node/node-reactive.js.map +1 -0
  905. package/dist/nodes/node/node-time.d.ts +39 -0
  906. package/dist/nodes/node/node-time.d.ts.map +1 -0
  907. package/dist/nodes/node/node-time.js +14 -0
  908. package/dist/nodes/node/node-time.js.map +1 -0
  909. package/dist/nodes/node/node-walk.d.ts +46 -0
  910. package/dist/nodes/node/node-walk.d.ts.map +1 -0
  911. package/dist/nodes/node/node-walk.js +74 -0
  912. package/dist/nodes/node/node-walk.js.map +1 -0
  913. package/dist/nodes/node/node.d.ts +437 -0
  914. package/dist/nodes/node/node.d.ts.map +1 -0
  915. package/dist/nodes/node/node.js +705 -0
  916. package/dist/nodes/node/node.js.map +1 -0
  917. package/dist/nodes/node/text-defaults.d.ts +34 -0
  918. package/dist/nodes/node/text-defaults.d.ts.map +1 -0
  919. package/dist/nodes/node/text-defaults.js +39 -0
  920. package/dist/nodes/node/text-defaults.js.map +1 -0
  921. package/dist/nodes/scene/canvas2d-node.d.ts +162 -0
  922. package/dist/nodes/scene/canvas2d-node.d.ts.map +1 -0
  923. package/dist/nodes/scene/canvas2d-node.js +261 -0
  924. package/dist/nodes/scene/canvas2d-node.js.map +1 -0
  925. package/dist/nodes/scene/provider-node.d.ts +47 -0
  926. package/dist/nodes/scene/provider-node.d.ts.map +1 -0
  927. package/dist/nodes/scene/provider-node.js +63 -0
  928. package/dist/nodes/scene/provider-node.js.map +1 -0
  929. package/dist/nodes/scene/theme-provider-node.d.ts +29 -0
  930. package/dist/nodes/scene/theme-provider-node.d.ts.map +1 -0
  931. package/dist/nodes/scene/theme-provider-node.js +43 -0
  932. package/dist/nodes/scene/theme-provider-node.js.map +1 -0
  933. package/dist/nodes/text/default-text-style-node.d.ts +100 -0
  934. package/dist/nodes/text/default-text-style-node.d.ts.map +1 -0
  935. package/dist/nodes/text/default-text-style-node.js +140 -0
  936. package/dist/nodes/text/default-text-style-node.js.map +1 -0
  937. package/dist/nodes/text/number-format.d.ts +66 -0
  938. package/dist/nodes/text/number-format.d.ts.map +1 -0
  939. package/dist/nodes/text/number-format.js +227 -0
  940. package/dist/nodes/text/number-format.js.map +1 -0
  941. package/dist/nodes/text/number-node.d.ts +94 -0
  942. package/dist/nodes/text/number-node.d.ts.map +1 -0
  943. package/dist/nodes/text/number-node.js +86 -0
  944. package/dist/nodes/text/number-node.js.map +1 -0
  945. package/dist/nodes/text/number-pattern.d.ts +51 -0
  946. package/dist/nodes/text/number-pattern.d.ts.map +1 -0
  947. package/dist/nodes/text/number-pattern.js +77 -0
  948. package/dist/nodes/text/number-pattern.js.map +1 -0
  949. package/dist/nodes/text/richtext-node.d.ts +73 -0
  950. package/dist/nodes/text/richtext-node.d.ts.map +1 -0
  951. package/dist/nodes/text/richtext-node.js +144 -0
  952. package/dist/nodes/text/richtext-node.js.map +1 -0
  953. package/dist/nodes/text/text-base.d.ts +135 -0
  954. package/dist/nodes/text/text-base.d.ts.map +1 -0
  955. package/dist/nodes/text/text-base.js +504 -0
  956. package/dist/nodes/text/text-base.js.map +1 -0
  957. package/dist/nodes/text/text-node.d.ts +84 -0
  958. package/dist/nodes/text/text-node.d.ts.map +1 -0
  959. package/dist/nodes/text/text-node.js +188 -0
  960. package/dist/nodes/text/text-node.js.map +1 -0
  961. package/dist/nodes/text/text-selection.d.ts +125 -0
  962. package/dist/nodes/text/text-selection.d.ts.map +1 -0
  963. package/dist/nodes/text/text-selection.js +209 -0
  964. package/dist/nodes/text/text-selection.js.map +1 -0
  965. package/dist/nodes/three/camera-nodes.d.ts +91 -0
  966. package/dist/nodes/three/camera-nodes.d.ts.map +1 -0
  967. package/dist/nodes/three/camera-nodes.js +71 -0
  968. package/dist/nodes/three/camera-nodes.js.map +1 -0
  969. package/dist/nodes/three/canvas3d-node.d.ts +270 -0
  970. package/dist/nodes/three/canvas3d-node.d.ts.map +1 -0
  971. package/dist/nodes/three/canvas3d-node.js +438 -0
  972. package/dist/nodes/three/canvas3d-node.js.map +1 -0
  973. package/dist/nodes/three/drawable-nodes.d.ts +159 -0
  974. package/dist/nodes/three/drawable-nodes.d.ts.map +1 -0
  975. package/dist/nodes/three/drawable-nodes.js +254 -0
  976. package/dist/nodes/three/drawable-nodes.js.map +1 -0
  977. package/dist/nodes/three/environment-nodes.d.ts +100 -0
  978. package/dist/nodes/three/environment-nodes.d.ts.map +1 -0
  979. package/dist/nodes/three/environment-nodes.js +134 -0
  980. package/dist/nodes/three/environment-nodes.js.map +1 -0
  981. package/dist/nodes/three/geometry-nodes.d.ts +197 -0
  982. package/dist/nodes/three/geometry-nodes.d.ts.map +1 -0
  983. package/dist/nodes/three/geometry-nodes.js +322 -0
  984. package/dist/nodes/three/geometry-nodes.js.map +1 -0
  985. package/dist/nodes/three/grid-geometry3d.d.ts +62 -0
  986. package/dist/nodes/three/grid-geometry3d.d.ts.map +1 -0
  987. package/dist/nodes/three/grid-geometry3d.js +114 -0
  988. package/dist/nodes/three/grid-geometry3d.js.map +1 -0
  989. package/dist/nodes/three/group3d.d.ts +23 -0
  990. package/dist/nodes/three/group3d.d.ts.map +1 -0
  991. package/dist/nodes/three/group3d.js +21 -0
  992. package/dist/nodes/three/group3d.js.map +1 -0
  993. package/dist/nodes/three/light-nodes.d.ts +120 -0
  994. package/dist/nodes/three/light-nodes.d.ts.map +1 -0
  995. package/dist/nodes/three/light-nodes.js +173 -0
  996. package/dist/nodes/three/light-nodes.js.map +1 -0
  997. package/dist/nodes/three/mesh3d.d.ts +117 -0
  998. package/dist/nodes/three/mesh3d.d.ts.map +1 -0
  999. package/dist/nodes/three/mesh3d.js +147 -0
  1000. package/dist/nodes/three/mesh3d.js.map +1 -0
  1001. package/dist/nodes/three/node3d.d.ts +182 -0
  1002. package/dist/nodes/three/node3d.d.ts.map +1 -0
  1003. package/dist/nodes/three/node3d.js +287 -0
  1004. package/dist/nodes/three/node3d.js.map +1 -0
  1005. package/dist/platform/audio-sink.d.ts +59 -0
  1006. package/dist/platform/audio-sink.d.ts.map +1 -0
  1007. package/dist/platform/audio-sink.js +40 -0
  1008. package/dist/platform/audio-sink.js.map +1 -0
  1009. package/dist/platform/exporter.d.ts +61 -0
  1010. package/dist/platform/exporter.d.ts.map +1 -0
  1011. package/dist/platform/exporter.js +2 -0
  1012. package/dist/platform/exporter.js.map +1 -0
  1013. package/dist/platform/index.d.ts +6 -0
  1014. package/dist/platform/index.d.ts.map +1 -0
  1015. package/dist/platform/index.js +5 -0
  1016. package/dist/platform/index.js.map +1 -0
  1017. package/dist/platform/stepped-clock.d.ts +21 -0
  1018. package/dist/platform/stepped-clock.d.ts.map +1 -0
  1019. package/dist/platform/stepped-clock.js +23 -0
  1020. package/dist/platform/stepped-clock.js.map +1 -0
  1021. package/dist/platform/storage-adapter.d.ts +101 -0
  1022. package/dist/platform/storage-adapter.d.ts.map +1 -0
  1023. package/dist/platform/storage-adapter.js +158 -0
  1024. package/dist/platform/storage-adapter.js.map +1 -0
  1025. package/dist/platform/ticker.d.ts +77 -0
  1026. package/dist/platform/ticker.d.ts.map +1 -0
  1027. package/dist/platform/ticker.js +103 -0
  1028. package/dist/platform/ticker.js.map +1 -0
  1029. package/dist/project/config.d.ts +33 -0
  1030. package/dist/project/config.d.ts.map +1 -0
  1031. package/dist/project/config.js +2 -0
  1032. package/dist/project/config.js.map +1 -0
  1033. package/dist/project/index.d.ts +3 -0
  1034. package/dist/project/index.d.ts.map +1 -0
  1035. package/dist/project/index.js +3 -0
  1036. package/dist/project/index.js.map +1 -0
  1037. package/dist/project/tree.d.ts +63 -0
  1038. package/dist/project/tree.d.ts.map +1 -0
  1039. package/dist/project/tree.js +13 -0
  1040. package/dist/project/tree.js.map +1 -0
  1041. package/dist/props/host.d.ts +33 -0
  1042. package/dist/props/host.d.ts.map +1 -0
  1043. package/dist/props/host.js +9 -0
  1044. package/dist/props/host.js.map +1 -0
  1045. package/dist/props/index.d.ts +5 -0
  1046. package/dist/props/index.d.ts.map +1 -0
  1047. package/dist/props/index.js +3 -0
  1048. package/dist/props/index.js.map +1 -0
  1049. package/dist/props/observer.d.ts +31 -0
  1050. package/dist/props/observer.d.ts.map +1 -0
  1051. package/dist/props/observer.js +34 -0
  1052. package/dist/props/observer.js.map +1 -0
  1053. package/dist/props/slot.d.ts +59 -0
  1054. package/dist/props/slot.d.ts.map +1 -0
  1055. package/dist/props/slot.js +96 -0
  1056. package/dist/props/slot.js.map +1 -0
  1057. package/dist/render/canvas-render-context2d.d.ts +121 -0
  1058. package/dist/render/canvas-render-context2d.d.ts.map +1 -0
  1059. package/dist/render/canvas-render-context2d.js +120 -0
  1060. package/dist/render/canvas-render-context2d.js.map +1 -0
  1061. package/dist/render/clip-contains.d.ts +30 -0
  1062. package/dist/render/clip-contains.d.ts.map +1 -0
  1063. package/dist/render/clip-contains.js +300 -0
  1064. package/dist/render/clip-contains.js.map +1 -0
  1065. package/dist/render/clip.d.ts +83 -0
  1066. package/dist/render/clip.d.ts.map +1 -0
  1067. package/dist/render/clip.js +72 -0
  1068. package/dist/render/clip.js.map +1 -0
  1069. package/dist/render/descriptors/ellipse.d.ts +10 -0
  1070. package/dist/render/descriptors/ellipse.d.ts.map +1 -0
  1071. package/dist/render/descriptors/ellipse.js +23 -0
  1072. package/dist/render/descriptors/ellipse.js.map +1 -0
  1073. package/dist/render/descriptors/latex.d.ts +6 -0
  1074. package/dist/render/descriptors/latex.d.ts.map +1 -0
  1075. package/dist/render/descriptors/latex.js +2 -0
  1076. package/dist/render/descriptors/latex.js.map +1 -0
  1077. package/dist/render/descriptors/line.d.ts +9 -0
  1078. package/dist/render/descriptors/line.d.ts.map +1 -0
  1079. package/dist/render/descriptors/line.js +19 -0
  1080. package/dist/render/descriptors/line.js.map +1 -0
  1081. package/dist/render/descriptors/path-builder.d.ts +68 -0
  1082. package/dist/render/descriptors/path-builder.d.ts.map +1 -0
  1083. package/dist/render/descriptors/path-builder.js +116 -0
  1084. package/dist/render/descriptors/path-builder.js.map +1 -0
  1085. package/dist/render/descriptors/path.d.ts +119 -0
  1086. package/dist/render/descriptors/path.d.ts.map +1 -0
  1087. package/dist/render/descriptors/path.js +46 -0
  1088. package/dist/render/descriptors/path.js.map +1 -0
  1089. package/dist/render/descriptors/polygon.d.ts +13 -0
  1090. package/dist/render/descriptors/polygon.d.ts.map +1 -0
  1091. package/dist/render/descriptors/polygon.js +23 -0
  1092. package/dist/render/descriptors/polygon.js.map +1 -0
  1093. package/dist/render/descriptors/polygram.d.ts +14 -0
  1094. package/dist/render/descriptors/polygram.d.ts.map +1 -0
  1095. package/dist/render/descriptors/polygram.js +24 -0
  1096. package/dist/render/descriptors/polygram.js.map +1 -0
  1097. package/dist/render/descriptors/rect.d.ts +11 -0
  1098. package/dist/render/descriptors/rect.d.ts.map +1 -0
  1099. package/dist/render/descriptors/rect.js +22 -0
  1100. package/dist/render/descriptors/rect.js.map +1 -0
  1101. package/dist/render/descriptors/richtext.d.ts +13 -0
  1102. package/dist/render/descriptors/richtext.d.ts.map +1 -0
  1103. package/dist/render/descriptors/richtext.js +23 -0
  1104. package/dist/render/descriptors/richtext.js.map +1 -0
  1105. package/dist/render/descriptors/shape.d.ts +99 -0
  1106. package/dist/render/descriptors/shape.d.ts.map +1 -0
  1107. package/dist/render/descriptors/shape.js +112 -0
  1108. package/dist/render/descriptors/shape.js.map +1 -0
  1109. package/dist/render/descriptors/text.d.ts +141 -0
  1110. package/dist/render/descriptors/text.d.ts.map +1 -0
  1111. package/dist/render/descriptors/text.js +94 -0
  1112. package/dist/render/descriptors/text.js.map +1 -0
  1113. package/dist/render/descriptors/transform.d.ts +38 -0
  1114. package/dist/render/descriptors/transform.d.ts.map +1 -0
  1115. package/dist/render/descriptors/transform.js +18 -0
  1116. package/dist/render/descriptors/transform.js.map +1 -0
  1117. package/dist/render/graphics2d.d.ts +235 -0
  1118. package/dist/render/graphics2d.d.ts.map +1 -0
  1119. package/dist/render/graphics2d.js +245 -0
  1120. package/dist/render/graphics2d.js.map +1 -0
  1121. package/dist/render/index.d.ts +25 -0
  1122. package/dist/render/index.d.ts.map +1 -0
  1123. package/dist/render/index.js +20 -0
  1124. package/dist/render/index.js.map +1 -0
  1125. package/dist/render/measure-context.d.ts +44 -0
  1126. package/dist/render/measure-context.d.ts.map +1 -0
  1127. package/dist/render/measure-context.js +2 -0
  1128. package/dist/render/measure-context.js.map +1 -0
  1129. package/dist/render/null-render-context.d.ts +55 -0
  1130. package/dist/render/null-render-context.d.ts.map +1 -0
  1131. package/dist/render/null-render-context.js +55 -0
  1132. package/dist/render/null-render-context.js.map +1 -0
  1133. package/dist/render/render-context2d.d.ts +310 -0
  1134. package/dist/render/render-context2d.d.ts.map +1 -0
  1135. package/dist/render/render-context2d.js +2 -0
  1136. package/dist/render/render-context2d.js.map +1 -0
  1137. package/dist/render/surface.d.ts +37 -0
  1138. package/dist/render/surface.d.ts.map +1 -0
  1139. package/dist/render/surface.js +2 -0
  1140. package/dist/render/surface.js.map +1 -0
  1141. package/dist/render/text-defaults.d.ts +21 -0
  1142. package/dist/render/text-defaults.d.ts.map +1 -0
  1143. package/dist/render/text-defaults.js +120 -0
  1144. package/dist/render/text-defaults.js.map +1 -0
  1145. package/dist/render/text-layout.d.ts +78 -0
  1146. package/dist/render/text-layout.d.ts.map +1 -0
  1147. package/dist/render/text-layout.js +26 -0
  1148. package/dist/render/text-layout.js.map +1 -0
  1149. package/dist/render3d/bounds3d.d.ts +55 -0
  1150. package/dist/render3d/bounds3d.d.ts.map +1 -0
  1151. package/dist/render3d/bounds3d.js +219 -0
  1152. package/dist/render3d/bounds3d.js.map +1 -0
  1153. package/dist/render3d/builders.d.ts +115 -0
  1154. package/dist/render3d/builders.d.ts.map +1 -0
  1155. package/dist/render3d/builders.js +108 -0
  1156. package/dist/render3d/builders.js.map +1 -0
  1157. package/dist/render3d/camera.d.ts +93 -0
  1158. package/dist/render3d/camera.d.ts.map +1 -0
  1159. package/dist/render3d/camera.js +58 -0
  1160. package/dist/render3d/camera.js.map +1 -0
  1161. package/dist/render3d/fill3d.d.ts +75 -0
  1162. package/dist/render3d/fill3d.d.ts.map +1 -0
  1163. package/dist/render3d/fill3d.js +208 -0
  1164. package/dist/render3d/fill3d.js.map +1 -0
  1165. package/dist/render3d/geometry.d.ts +315 -0
  1166. package/dist/render3d/geometry.d.ts.map +1 -0
  1167. package/dist/render3d/geometry.js +123 -0
  1168. package/dist/render3d/geometry.js.map +1 -0
  1169. package/dist/render3d/graphics3d.d.ts +301 -0
  1170. package/dist/render3d/graphics3d.d.ts.map +1 -0
  1171. package/dist/render3d/graphics3d.js +338 -0
  1172. package/dist/render3d/graphics3d.js.map +1 -0
  1173. package/dist/render3d/index.d.ts +56 -0
  1174. package/dist/render3d/index.d.ts.map +1 -0
  1175. package/dist/render3d/index.js +39 -0
  1176. package/dist/render3d/index.js.map +1 -0
  1177. package/dist/render3d/light.d.ts +89 -0
  1178. package/dist/render3d/light.d.ts.map +1 -0
  1179. package/dist/render3d/light.js +2 -0
  1180. package/dist/render3d/light.js.map +1 -0
  1181. package/dist/render3d/material.d.ts +310 -0
  1182. package/dist/render3d/material.d.ts.map +1 -0
  1183. package/dist/render3d/material.js +34 -0
  1184. package/dist/render3d/material.js.map +1 -0
  1185. package/dist/render3d/matrix4.d.ts +111 -0
  1186. package/dist/render3d/matrix4.d.ts.map +1 -0
  1187. package/dist/render3d/matrix4.js +254 -0
  1188. package/dist/render3d/matrix4.js.map +1 -0
  1189. package/dist/render3d/render-context3d.d.ts +88 -0
  1190. package/dist/render3d/render-context3d.d.ts.map +1 -0
  1191. package/dist/render3d/render-context3d.js +32 -0
  1192. package/dist/render3d/render-context3d.js.map +1 -0
  1193. package/dist/render3d/resources.d.ts +75 -0
  1194. package/dist/render3d/resources.d.ts.map +1 -0
  1195. package/dist/render3d/resources.js +87 -0
  1196. package/dist/render3d/resources.js.map +1 -0
  1197. package/dist/render3d/rounded-box.d.ts +35 -0
  1198. package/dist/render3d/rounded-box.d.ts.map +1 -0
  1199. package/dist/render3d/rounded-box.js +228 -0
  1200. package/dist/render3d/rounded-box.js.map +1 -0
  1201. package/dist/render3d/scene-settings.d.ts +141 -0
  1202. package/dist/render3d/scene-settings.d.ts.map +1 -0
  1203. package/dist/render3d/scene-settings.js +9 -0
  1204. package/dist/render3d/scene-settings.js.map +1 -0
  1205. package/dist/render3d/scene3d.d.ts +110 -0
  1206. package/dist/render3d/scene3d.d.ts.map +1 -0
  1207. package/dist/render3d/scene3d.js +163 -0
  1208. package/dist/render3d/scene3d.js.map +1 -0
  1209. package/dist/render3d/segments.d.ts +28 -0
  1210. package/dist/render3d/segments.d.ts.map +1 -0
  1211. package/dist/render3d/segments.js +22 -0
  1212. package/dist/render3d/segments.js.map +1 -0
  1213. package/dist/render3d/texture.d.ts +178 -0
  1214. package/dist/render3d/texture.d.ts.map +1 -0
  1215. package/dist/render3d/texture.js +41 -0
  1216. package/dist/render3d/texture.js.map +1 -0
  1217. package/dist/render3d/tracking.d.ts +27 -0
  1218. package/dist/render3d/tracking.d.ts.map +1 -0
  1219. package/dist/render3d/tracking.js +93 -0
  1220. package/dist/render3d/tracking.js.map +1 -0
  1221. package/dist/render3d/transform.d.ts +103 -0
  1222. package/dist/render3d/transform.d.ts.map +1 -0
  1223. package/dist/render3d/transform.js +23 -0
  1224. package/dist/render3d/transform.js.map +1 -0
  1225. package/dist/render3d/vector3.d.ts +80 -0
  1226. package/dist/render3d/vector3.d.ts.map +1 -0
  1227. package/dist/render3d/vector3.js +167 -0
  1228. package/dist/render3d/vector3.js.map +1 -0
  1229. package/dist/render3d/walk.d.ts +35 -0
  1230. package/dist/render3d/walk.d.ts.map +1 -0
  1231. package/dist/render3d/walk.js +95 -0
  1232. package/dist/render3d/walk.js.map +1 -0
  1233. package/dist/runtime/asset-refine.d.ts +59 -0
  1234. package/dist/runtime/asset-refine.d.ts.map +1 -0
  1235. package/dist/runtime/asset-refine.js +556 -0
  1236. package/dist/runtime/asset-refine.js.map +1 -0
  1237. package/dist/runtime/asset-timeline.d.ts +150 -0
  1238. package/dist/runtime/asset-timeline.d.ts.map +1 -0
  1239. package/dist/runtime/asset-timeline.js +202 -0
  1240. package/dist/runtime/asset-timeline.js.map +1 -0
  1241. package/dist/runtime/asset-update.d.ts +87 -0
  1242. package/dist/runtime/asset-update.d.ts.map +1 -0
  1243. package/dist/runtime/asset-update.js +343 -0
  1244. package/dist/runtime/asset-update.js.map +1 -0
  1245. package/dist/runtime/audio-index.d.ts +22 -0
  1246. package/dist/runtime/audio-index.d.ts.map +1 -0
  1247. package/dist/runtime/audio-index.js +60 -0
  1248. package/dist/runtime/audio-index.js.map +1 -0
  1249. package/dist/runtime/builtin-context.d.ts +17 -0
  1250. package/dist/runtime/builtin-context.d.ts.map +1 -0
  1251. package/dist/runtime/builtin-context.js +17 -0
  1252. package/dist/runtime/builtin-context.js.map +1 -0
  1253. package/dist/runtime/clip-instance.d.ts +96 -0
  1254. package/dist/runtime/clip-instance.d.ts.map +1 -0
  1255. package/dist/runtime/clip-instance.js +225 -0
  1256. package/dist/runtime/clip-instance.js.map +1 -0
  1257. package/dist/runtime/clip-store.d.ts +157 -0
  1258. package/dist/runtime/clip-store.d.ts.map +1 -0
  1259. package/dist/runtime/clip-store.js +840 -0
  1260. package/dist/runtime/clip-store.js.map +1 -0
  1261. package/dist/runtime/engine.d.ts +169 -0
  1262. package/dist/runtime/engine.d.ts.map +1 -0
  1263. package/dist/runtime/engine.js +124 -0
  1264. package/dist/runtime/engine.js.map +1 -0
  1265. package/dist/runtime/index.d.ts +16 -0
  1266. package/dist/runtime/index.d.ts.map +1 -0
  1267. package/dist/runtime/index.js +16 -0
  1268. package/dist/runtime/index.js.map +1 -0
  1269. package/dist/runtime/node-picking.d.ts +170 -0
  1270. package/dist/runtime/node-picking.d.ts.map +1 -0
  1271. package/dist/runtime/node-picking.js +415 -0
  1272. package/dist/runtime/node-picking.js.map +1 -0
  1273. package/dist/runtime/node-picking3d.d.ts +138 -0
  1274. package/dist/runtime/node-picking3d.d.ts.map +1 -0
  1275. package/dist/runtime/node-picking3d.js +490 -0
  1276. package/dist/runtime/node-picking3d.js.map +1 -0
  1277. package/dist/runtime/placement.d.ts +42 -0
  1278. package/dist/runtime/placement.d.ts.map +1 -0
  1279. package/dist/runtime/placement.js +64 -0
  1280. package/dist/runtime/placement.js.map +1 -0
  1281. package/dist/runtime/playback-controller.d.ts +363 -0
  1282. package/dist/runtime/playback-controller.d.ts.map +1 -0
  1283. package/dist/runtime/playback-controller.js +957 -0
  1284. package/dist/runtime/playback-controller.js.map +1 -0
  1285. package/dist/runtime/playback.d.ts +35 -0
  1286. package/dist/runtime/playback.d.ts.map +1 -0
  1287. package/dist/runtime/playback.js +53 -0
  1288. package/dist/runtime/playback.js.map +1 -0
  1289. package/dist/runtime/precompisition.d.ts +24 -0
  1290. package/dist/runtime/precompisition.d.ts.map +1 -0
  1291. package/dist/runtime/precompisition.js +7 -0
  1292. package/dist/runtime/precompisition.js.map +1 -0
  1293. package/dist/runtime/project-assets.d.ts +42 -0
  1294. package/dist/runtime/project-assets.d.ts.map +1 -0
  1295. package/dist/runtime/project-assets.js +190 -0
  1296. package/dist/runtime/project-assets.js.map +1 -0
  1297. package/dist/runtime/session.d.ts +103 -0
  1298. package/dist/runtime/session.d.ts.map +1 -0
  1299. package/dist/runtime/session.js +174 -0
  1300. package/dist/runtime/session.js.map +1 -0
  1301. package/dist/runtime/settle.d.ts +19 -0
  1302. package/dist/runtime/settle.d.ts.map +1 -0
  1303. package/dist/runtime/settle.js +29 -0
  1304. package/dist/runtime/settle.js.map +1 -0
  1305. package/dist/runtime/state-evaluator.d.ts +92 -0
  1306. package/dist/runtime/state-evaluator.d.ts.map +1 -0
  1307. package/dist/runtime/state-evaluator.js +231 -0
  1308. package/dist/runtime/state-evaluator.js.map +1 -0
  1309. package/dist/runtime/text-geometry.d.ts +87 -0
  1310. package/dist/runtime/text-geometry.d.ts.map +1 -0
  1311. package/dist/runtime/text-geometry.js +106 -0
  1312. package/dist/runtime/text-geometry.js.map +1 -0
  1313. package/dist/sdk/index.d.ts +89 -0
  1314. package/dist/sdk/index.d.ts.map +1 -0
  1315. package/dist/sdk/index.js +181 -0
  1316. package/dist/sdk/index.js.map +1 -0
  1317. package/dist/tween/command-decorator.d.ts +50 -0
  1318. package/dist/tween/command-decorator.d.ts.map +1 -0
  1319. package/dist/tween/command-decorator.js +43 -0
  1320. package/dist/tween/command-decorator.js.map +1 -0
  1321. package/dist/tween/command.d.ts +74 -0
  1322. package/dist/tween/command.d.ts.map +1 -0
  1323. package/dist/tween/command.js +134 -0
  1324. package/dist/tween/command.js.map +1 -0
  1325. package/dist/tween/ease/constants.d.ts +20 -0
  1326. package/dist/tween/ease/constants.d.ts.map +1 -0
  1327. package/dist/tween/ease/constants.js +77 -0
  1328. package/dist/tween/ease/constants.js.map +1 -0
  1329. package/dist/tween/ease/curve.d.ts +47 -0
  1330. package/dist/tween/ease/curve.d.ts.map +1 -0
  1331. package/dist/tween/ease/curve.js +81 -0
  1332. package/dist/tween/ease/curve.js.map +1 -0
  1333. package/dist/tween/ease/type.d.ts +2 -0
  1334. package/dist/tween/ease/type.d.ts.map +1 -0
  1335. package/dist/tween/ease/type.js +2 -0
  1336. package/dist/tween/ease/type.js.map +1 -0
  1337. package/dist/tween/index.d.ts +11 -0
  1338. package/dist/tween/index.d.ts.map +1 -0
  1339. package/dist/tween/index.js +11 -0
  1340. package/dist/tween/index.js.map +1 -0
  1341. package/dist/tween/inert.d.ts +20 -0
  1342. package/dist/tween/inert.d.ts.map +1 -0
  1343. package/dist/tween/inert.js +34 -0
  1344. package/dist/tween/inert.js.map +1 -0
  1345. package/dist/tween/lerp.d.ts +35 -0
  1346. package/dist/tween/lerp.d.ts.map +1 -0
  1347. package/dist/tween/lerp.js +36 -0
  1348. package/dist/tween/lerp.js.map +1 -0
  1349. package/dist/tween/loop.d.ts +65 -0
  1350. package/dist/tween/loop.d.ts.map +1 -0
  1351. package/dist/tween/loop.js +66 -0
  1352. package/dist/tween/loop.js.map +1 -0
  1353. package/dist/tween/prepare.d.ts +36 -0
  1354. package/dist/tween/prepare.d.ts.map +1 -0
  1355. package/dist/tween/prepare.js +54 -0
  1356. package/dist/tween/prepare.js.map +1 -0
  1357. package/dist/tween/seekable.d.ts +70 -0
  1358. package/dist/tween/seekable.d.ts.map +1 -0
  1359. package/dist/tween/seekable.js +122 -0
  1360. package/dist/tween/seekable.js.map +1 -0
  1361. package/dist/tween/stepper.d.ts +35 -0
  1362. package/dist/tween/stepper.d.ts.map +1 -0
  1363. package/dist/tween/stepper.js +4 -0
  1364. package/dist/tween/stepper.js.map +1 -0
  1365. package/dist/tween/to-command.d.ts +16 -0
  1366. package/dist/tween/to-command.d.ts.map +1 -0
  1367. package/dist/tween/to-command.js +55 -0
  1368. package/dist/tween/to-command.js.map +1 -0
  1369. package/dist/util/clamp.d.ts +12 -0
  1370. package/dist/util/clamp.d.ts.map +1 -0
  1371. package/dist/util/clamp.js +16 -0
  1372. package/dist/util/clamp.js.map +1 -0
  1373. package/dist/util/context.d.ts +49 -0
  1374. package/dist/util/context.d.ts.map +1 -0
  1375. package/dist/util/context.js +38 -0
  1376. package/dist/util/context.js.map +1 -0
  1377. package/dist/util/csv.d.ts +42 -0
  1378. package/dist/util/csv.d.ts.map +1 -0
  1379. package/dist/util/csv.js +150 -0
  1380. package/dist/util/csv.js.map +1 -0
  1381. package/dist/util/generateList.d.ts +6 -0
  1382. package/dist/util/generateList.d.ts.map +1 -0
  1383. package/dist/util/generateList.js +13 -0
  1384. package/dist/util/generateList.js.map +1 -0
  1385. package/dist/util/index.d.ts +9 -0
  1386. package/dist/util/index.d.ts.map +1 -0
  1387. package/dist/util/index.js +9 -0
  1388. package/dist/util/index.js.map +1 -0
  1389. package/dist/util/metrics.d.ts +36 -0
  1390. package/dist/util/metrics.d.ts.map +1 -0
  1391. package/dist/util/metrics.js +57 -0
  1392. package/dist/util/metrics.js.map +1 -0
  1393. package/dist/util/random.d.ts +121 -0
  1394. package/dist/util/random.d.ts.map +1 -0
  1395. package/dist/util/random.js +195 -0
  1396. package/dist/util/random.js.map +1 -0
  1397. package/dist/util/reference.d.ts +53 -0
  1398. package/dist/util/reference.d.ts.map +1 -0
  1399. package/dist/util/reference.js +20 -0
  1400. package/dist/util/reference.js.map +1 -0
  1401. package/dist/util/scheduler.d.ts +35 -0
  1402. package/dist/util/scheduler.d.ts.map +1 -0
  1403. package/dist/util/scheduler.js +78 -0
  1404. package/dist/util/scheduler.js.map +1 -0
  1405. package/package.json +70 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # @motionscript/core
2
+
3
+ ## 0.1.0-alpha.0
4
+
5
+ Initial release.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,4 +1,72 @@
1
- # Temporary Holding Version
1
+ # @motionscript/core
2
+
3
+ The engine-agnostic animation library at the heart of [Motion Script](https://motionscript.dev).
4
+ It defines what a scene is — a JSON document of nodes and commands — and how a
5
+ project of them evolves over time: the scene graph, props and tweens, flow
6
+ layout and the runtime that plays it, independent of any rendering backend and
7
+ with zero dependencies.
8
+
9
+ ```ts
10
+ import type { CompositionDocument } from '@motionscript/core';
11
+
12
+ // A scene is data: a tree of nodes, then commands placed at times.
13
+ const doc: CompositionDocument = {
14
+ kind: 'composition',
15
+ nodes: [
16
+ { id: 'card', type: 'rect', parentId: null, layerOrder: 0,
17
+ props: { width: 400, height: 400, fill: 'white', cornerRadius: 20 } },
18
+ { id: 'lens', type: 'ellipse', parentId: 'card', layerOrder: 0,
19
+ props: { width: 350, height: 350, fill: 'black' } },
20
+ ],
21
+ commands: [
22
+ // Slide the lens 300px over 3 seconds.
23
+ { id: 'slide', type: 'to', targetId: 'lens', at: 0, duration: 3, args: { x: 300 } },
24
+ ],
25
+ };
26
+ ```
27
+
28
+ A host plays it with `engine.open({ document: doc })`. A frame is a pure
29
+ function of its time, so a seek costs the same in either direction.
30
+
31
+ ## What's in here
32
+
33
+ - **Documents**: `StillDocument`, `CompositionDocument` and `AudioDocument`, the
34
+ `ProjectDocument` that lays them on tracks, the validator, the expression
35
+ language, and the per-engine `Registry` that turns a node key into a class.
36
+ - **Runtime**: `Engine` and `Session`, which open a document on a platform and
37
+ play, seek and export it.
38
+ - **Nodes**: the scene graph (`Rect`, `Ellipse`, `Text`, `RichText`, `Video`,
39
+ paths, 3D, audio, and more) with attributes for fills, gradients, filters, and
40
+ SkSL shader effects. A custom node is a class registered with the engine, and
41
+ any document it opens can name it.
42
+ - **Tweens**: interpolation and easing for animating attributes over time.
43
+ - **Layout**: `flowOps`, the flow layout every 2D node runs on its children:
44
+ freeform, runs (wrapped or not) and grid.
45
+ - **JSX runtime**: lets a composite node build its children as TSX
46
+ (`./jsx/jsx-runtime`, `./jsx/jsx-dev-runtime`).
47
+ - **Project / render / platform / assets**: the abstractions a rendering
48
+ backend (such as [`@motionscript/browser`](../browser)) implements to turn a scene
49
+ graph into pixels, audio, and exported video.
50
+
51
+ This package has no rendering backend of its own. Pair it with
52
+ [`@motionscript/browser`](../browser) (Skia/CanvasKit) or build your own backend
53
+ against the `platform`/`render` abstractions.
54
+
55
+ ## Usage
56
+
57
+ ```bash
58
+ npm install @motionscript/core
59
+ ```
60
+
61
+ See the [docs](https://motionscript.dev/docs) for the full feature set and API
62
+ reference.
63
+
64
+ ## Development
65
+
66
+ From the monorepo root:
67
+
68
+ ```bash
69
+ pnpm --filter @motionscript/core build
70
+ pnpm --filter @motionscript/core test
71
+ ```
2
72
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
4
- If no other versions are published within 30 days, this package and version will be deleted.
@@ -0,0 +1,48 @@
1
+ import type { AssetRecord } from "./record.js";
2
+ import { type AssetDecl } from "./scope.js";
3
+ export interface AssetSegment {
4
+ key: string;
5
+ decl: AssetDecl;
6
+ startFrame: number;
7
+ /** Inclusive. `Infinity` runs to the clip's end. */
8
+ endFrame: number;
9
+ }
10
+ export interface AssetDelta {
11
+ /** Keys whose record appeared, disappeared, or changed window or content. */
12
+ readonly keys: ReadonlySet<string>;
13
+ }
14
+ /**
15
+ * One clip's asset windows, per owner, in clip-local frames.
16
+ *
17
+ * Owners replace their segments wholesale, and a key's record — the union window
18
+ * over every owner that needs it — is recomputed only for the keys an update
19
+ * touched. The records keep today's {@link AssetRecord} shape so the manager,
20
+ * exporter and mixer read them unchanged.
21
+ */
22
+ export declare class AssetIndex {
23
+ constructor(frameCount: number);
24
+ setOwner(ownerKey: string, segments: readonly AssetSegment[]): AssetDelta;
25
+ removeOwner(ownerKey: string): AssetDelta;
26
+ learn(ownerKey: string, decl: AssetDecl, frame: number): AssetDelta;
27
+ setFrameCount(frameCount: number): AssetDelta;
28
+ owners(key: string): ReadonlySet<string>;
29
+ /** Declared segments, then learned ones. */
30
+ segmentsOf(ownerKey: string): readonly AssetSegment[];
31
+ /** Declared segments only — what a partial re-declaration keeps the front of. */
32
+ declaredSegmentsOf(ownerKey: string): readonly AssetSegment[];
33
+ ownerKeys(): IterableIterator<string>;
34
+ records(): ReadonlyMap<string, AssetRecord>;
35
+ /** Fonts, and loaders any owner declared with `gate: "layout"`. */
36
+ layoutGates(): readonly AssetRecord[];
37
+ private _frameCount;
38
+ private readonly _owners;
39
+ private readonly _byKey;
40
+ private readonly _entries;
41
+ private readonly _records;
42
+ private _layoutGates;
43
+ private _link;
44
+ private _unlink;
45
+ private _refresh;
46
+ private _compute;
47
+ }
48
+ //# sourceMappingURL=asset-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-index.d.ts","sourceRoot":"","sources":["../../src/assets/asset-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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Q,CAAC,QAAQ,CAA+B;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,YAAY,CAA8B;IAElD,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,OAAO;IAaf,OAAO,CAAC,QAAQ;IAqBhB,OAAO,CAAC,QAAQ;CAqCnB"}
@@ -0,0 +1,255 @@
1
+ import { assetKey } from "./scope.js";
2
+ const NO_OWNERS = new Set();
3
+ /**
4
+ * One clip's asset windows, per owner, in clip-local frames.
5
+ *
6
+ * Owners replace their segments wholesale, and a key's record — the union window
7
+ * over every owner that needs it — is recomputed only for the keys an update
8
+ * touched. The records keep today's {@link AssetRecord} shape so the manager,
9
+ * exporter and mixer read them unchanged.
10
+ */
11
+ export class AssetIndex {
12
+ constructor(frameCount) {
13
+ this._frameCount = Math.max(0, frameCount);
14
+ }
15
+ setOwner(ownerKey, segments) {
16
+ const touched = new Set();
17
+ const previous = this._owners.get(ownerKey);
18
+ if (previous)
19
+ this._unlink(ownerKey, previous, touched);
20
+ const next = { declared: new Map(), learned: new Map() };
21
+ for (const segment of segments) {
22
+ if (!(segment.endFrame >= segment.startFrame))
23
+ continue;
24
+ appendSegment(next.declared, { ...segment });
25
+ }
26
+ if (next.declared.size > 0) {
27
+ this._owners.set(ownerKey, next);
28
+ this._link(ownerKey, next, touched);
29
+ }
30
+ else {
31
+ this._owners.delete(ownerKey);
32
+ }
33
+ return this._refresh(touched);
34
+ }
35
+ removeOwner(ownerKey) {
36
+ const previous = this._owners.get(ownerKey);
37
+ if (!previous)
38
+ return { keys: new Set() };
39
+ const touched = new Set();
40
+ this._unlink(ownerKey, previous, touched);
41
+ this._owners.delete(ownerKey);
42
+ return this._refresh(touched);
43
+ }
44
+ learn(ownerKey, decl, frame) {
45
+ const key = assetKey(decl);
46
+ let owner = this._owners.get(ownerKey);
47
+ if (!owner) {
48
+ owner = { declared: new Map(), learned: new Map() };
49
+ this._owners.set(ownerKey, owner);
50
+ }
51
+ const list = owner.learned.get(key) ?? [];
52
+ const at = list.findIndex((s) => frame >= s.startFrame - 1 && frame <= s.endFrame + 1);
53
+ if (at < 0) {
54
+ list.push({ key, decl, startFrame: frame, endFrame: frame });
55
+ }
56
+ else {
57
+ // Replaced rather than widened in place: `segmentsOf` hands these out.
58
+ const hit = list[at];
59
+ list[at] = {
60
+ ...hit,
61
+ startFrame: Math.min(hit.startFrame, frame),
62
+ endFrame: Math.max(hit.endFrame, frame),
63
+ };
64
+ }
65
+ owner.learned.set(key, list);
66
+ let owners = this._byKey.get(key);
67
+ if (!owners)
68
+ this._byKey.set(key, (owners = new Set()));
69
+ owners.add(ownerKey);
70
+ return this._refresh(new Set([key]));
71
+ }
72
+ setFrameCount(frameCount) {
73
+ const next = Math.max(0, frameCount);
74
+ if (next === this._frameCount)
75
+ return { keys: new Set() };
76
+ this._frameCount = next;
77
+ return this._refresh(new Set(this._byKey.keys()));
78
+ }
79
+ owners(key) {
80
+ return this._byKey.get(key) ?? NO_OWNERS;
81
+ }
82
+ /** Declared segments, then learned ones. */
83
+ segmentsOf(ownerKey) {
84
+ const owner = this._owners.get(ownerKey);
85
+ if (!owner)
86
+ return [];
87
+ const out = [];
88
+ for (const list of owner.declared.values())
89
+ out.push(...list);
90
+ for (const list of owner.learned.values())
91
+ out.push(...list);
92
+ return out;
93
+ }
94
+ /** Declared segments only — what a partial re-declaration keeps the front of. */
95
+ declaredSegmentsOf(ownerKey) {
96
+ const owner = this._owners.get(ownerKey);
97
+ if (!owner)
98
+ return [];
99
+ const out = [];
100
+ for (const list of owner.declared.values())
101
+ out.push(...list);
102
+ return out;
103
+ }
104
+ ownerKeys() {
105
+ return this._owners.keys();
106
+ }
107
+ records() {
108
+ return this._records;
109
+ }
110
+ /** Fonts, and loaders any owner declared with `gate: "layout"`. */
111
+ layoutGates() {
112
+ if (this._layoutGates === null) {
113
+ const gates = [];
114
+ for (const entry of this._entries.values()) {
115
+ if (entry.layout)
116
+ gates.push(entry.record);
117
+ }
118
+ this._layoutGates = gates;
119
+ }
120
+ return this._layoutGates;
121
+ }
122
+ _frameCount;
123
+ _owners = new Map();
124
+ _byKey = new Map();
125
+ _entries = new Map();
126
+ _records = new Map();
127
+ _layoutGates = null;
128
+ _link(ownerKey, owner, touched) {
129
+ for (const key of owner.declared.keys()) {
130
+ let owners = this._byKey.get(key);
131
+ if (!owners)
132
+ this._byKey.set(key, (owners = new Set()));
133
+ owners.add(ownerKey);
134
+ touched.add(key);
135
+ }
136
+ }
137
+ _unlink(ownerKey, owner, touched) {
138
+ for (const map of [owner.declared, owner.learned]) {
139
+ for (const key of map.keys()) {
140
+ const owners = this._byKey.get(key);
141
+ if (owners) {
142
+ owners.delete(ownerKey);
143
+ if (owners.size === 0)
144
+ this._byKey.delete(key);
145
+ }
146
+ touched.add(key);
147
+ }
148
+ }
149
+ }
150
+ _refresh(keys) {
151
+ const changed = new Set();
152
+ for (const key of keys) {
153
+ const previous = this._entries.get(key);
154
+ const next = this._compute(key);
155
+ if (next === undefined) {
156
+ if (previous === undefined)
157
+ continue;
158
+ this._entries.delete(key);
159
+ this._records.delete(key);
160
+ }
161
+ else if (previous !== undefined && previous.layout === next.layout && sameRecord(previous.record, next.record)) {
162
+ continue;
163
+ }
164
+ else {
165
+ this._entries.set(key, next);
166
+ this._records.set(key, next.record);
167
+ }
168
+ changed.add(key);
169
+ }
170
+ if (changed.size > 0)
171
+ this._layoutGates = null;
172
+ return { keys: changed };
173
+ }
174
+ _compute(key) {
175
+ const owners = this._byKey.get(key);
176
+ if (!owners)
177
+ return undefined;
178
+ const last = this._frameCount - 1;
179
+ let first;
180
+ let start = Infinity;
181
+ let end = -Infinity;
182
+ let layoutLoader = false;
183
+ const visit = (list) => {
184
+ if (!list)
185
+ return;
186
+ for (const segment of list) {
187
+ const from = Math.max(0, segment.startFrame);
188
+ const to = Math.min(last, segment.endFrame);
189
+ if (to < from)
190
+ continue;
191
+ // The earliest segment speaks for the key.
192
+ if (from < start) {
193
+ start = from;
194
+ first = segment;
195
+ }
196
+ if (to > end)
197
+ end = to;
198
+ if (segment.decl.type === "loader" && segment.decl.gate === "layout")
199
+ layoutLoader = true;
200
+ }
201
+ };
202
+ for (const ownerKey of owners) {
203
+ const owner = this._owners.get(ownerKey);
204
+ if (!owner)
205
+ continue;
206
+ visit(owner.declared.get(key));
207
+ visit(owner.learned.get(key));
208
+ }
209
+ if (first === undefined)
210
+ return undefined;
211
+ return {
212
+ record: recordOf(first.decl, start, end),
213
+ layout: first.decl.type === "font" || layoutLoader,
214
+ };
215
+ }
216
+ }
217
+ function appendSegment(map, segment) {
218
+ const list = map.get(segment.key);
219
+ if (list)
220
+ list.push(segment);
221
+ else
222
+ map.set(segment.key, [segment]);
223
+ }
224
+ function recordOf(decl, startFrame, endFrame) {
225
+ switch (decl.type) {
226
+ case "image":
227
+ return { type: "image", startFrame, endFrame, src: decl.src };
228
+ case "video":
229
+ return {
230
+ type: "video", startFrame, endFrame, src: decl.src,
231
+ trimStart: decl.trimStart, trimEnd: decl.trimEnd,
232
+ };
233
+ case "font":
234
+ return { type: "font", startFrame, endFrame, fontWeight: decl.weight, fontFamily: decl.family, src: decl.family };
235
+ case "loader":
236
+ return { type: "loader", src: decl.key, startFrame, endFrame, load: decl.load };
237
+ }
238
+ }
239
+ function sameRecord(a, b) {
240
+ if (a.type !== b.type || a.src !== b.src || a.startFrame !== b.startFrame || a.endFrame !== b.endFrame)
241
+ return false;
242
+ switch (a.type) {
243
+ case "video": {
244
+ const v = b;
245
+ return a.trimStart === v.trimStart && a.trimEnd === v.trimEnd;
246
+ }
247
+ case "font":
248
+ return a.fontWeight === b.fontWeight;
249
+ case "loader":
250
+ return a.load === b.load;
251
+ default:
252
+ return true;
253
+ }
254
+ }
255
+ //# sourceMappingURL=asset-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-index.js","sourceRoot":"","sources":["../../src/assets/asset-index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAkB,MAAM,SAAS,CAAC;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AAM;YACP,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QACtH,KAAK,QAAQ;YACT,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACxF,CAAC;AACL,CAAC;AAED,SAAS,UAAU,CAAC,CAAc,EAAE,CAAc;IAC9C,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IACrH,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;QACb,KAAK,OAAO,CAAC,CAAC,CAAC;YACX,MAAM,CAAC,GAAG,CAAa,CAAC;YACxB,OAAO,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC;QAClE,CAAC;QACD,KAAK,MAAM;YACP,OAAO,CAAC,CAAC,UAAU,KAAM,CAAc,CAAC,UAAU,CAAC;QACvD,KAAK,QAAQ;YACT,OAAO,CAAC,CAAC,IAAI,KAAM,CAAc,CAAC,IAAI,CAAC;QAC3C;YACI,OAAO,IAAI,CAAC;IACpB,CAAC;AACL,CAAC","sourcesContent":["import type { AssetRecord } from \"./record\";\nimport { assetKey, type AssetDecl } from \"./scope\";\n\nexport interface AssetSegment {\n key: string;\n decl: AssetDecl;\n startFrame: number;\n /** Inclusive. `Infinity` runs to the clip's end. */\n endFrame: number;\n}\n\nexport interface AssetDelta {\n /** Keys whose record appeared, disappeared, or changed window or content. */\n readonly keys: ReadonlySet<string>;\n}\n\ninterface OwnerSegments {\n declared: Map<string, AssetSegment[]>;\n /** Found missing at draw time rather than declared; cleared by the owner's next `setOwner`. */\n learned: Map<string, AssetSegment[]>;\n}\n\ninterface KeyEntry {\n record: AssetRecord;\n layout: boolean;\n}\n\nconst NO_OWNERS: ReadonlySet<string> = new Set();\n\n/**\n * One clip's asset windows, per owner, in clip-local frames.\n *\n * Owners replace their segments wholesale, and a key's record — the union window\n * over every owner that needs it — is recomputed only for the keys an update\n * touched. The records keep today's {@link AssetRecord} shape so the manager,\n * exporter and mixer read them unchanged.\n */\nexport class AssetIndex {\n constructor(frameCount: number) {\n this._frameCount = Math.max(0, frameCount);\n }\n\n setOwner(ownerKey: string, segments: readonly AssetSegment[]): AssetDelta {\n const touched = new Set<string>();\n const previous = this._owners.get(ownerKey);\n if (previous) this._unlink(ownerKey, previous, touched);\n\n const next: OwnerSegments = { declared: new Map(), learned: new Map() };\n for (const segment of segments) {\n if (!(segment.endFrame >= segment.startFrame)) continue;\n appendSegment(next.declared, { ...segment });\n }\n if (next.declared.size > 0) {\n this._owners.set(ownerKey, next);\n this._link(ownerKey, next, touched);\n } else {\n this._owners.delete(ownerKey);\n }\n return this._refresh(touched);\n }\n\n removeOwner(ownerKey: string): AssetDelta {\n const previous = this._owners.get(ownerKey);\n if (!previous) return { keys: new Set() };\n const touched = new Set<string>();\n this._unlink(ownerKey, previous, touched);\n this._owners.delete(ownerKey);\n return this._refresh(touched);\n }\n\n learn(ownerKey: string, decl: AssetDecl, frame: number): AssetDelta {\n const key = assetKey(decl);\n let owner = this._owners.get(ownerKey);\n if (!owner) {\n owner = { declared: new Map(), learned: new Map() };\n this._owners.set(ownerKey, owner);\n }\n const list = owner.learned.get(key) ?? [];\n const at = list.findIndex((s) => frame >= s.startFrame - 1 && frame <= s.endFrame + 1);\n if (at < 0) {\n list.push({ key, decl, startFrame: frame, endFrame: frame });\n } else {\n // Replaced rather than widened in place: `segmentsOf` hands these out.\n const hit = list[at];\n list[at] = {\n ...hit,\n startFrame: Math.min(hit.startFrame, frame),\n endFrame: Math.max(hit.endFrame, frame),\n };\n }\n owner.learned.set(key, list);\n let owners = this._byKey.get(key);\n if (!owners) this._byKey.set(key, (owners = new Set()));\n owners.add(ownerKey);\n return this._refresh(new Set([key]));\n }\n\n setFrameCount(frameCount: number): AssetDelta {\n const next = Math.max(0, frameCount);\n if (next === this._frameCount) return { keys: new Set() };\n this._frameCount = next;\n return this._refresh(new Set(this._byKey.keys()));\n }\n\n owners(key: string): ReadonlySet<string> {\n return this._byKey.get(key) ?? NO_OWNERS;\n }\n\n /** Declared segments, then learned ones. */\n segmentsOf(ownerKey: string): readonly AssetSegment[] {\n const owner = this._owners.get(ownerKey);\n if (!owner) return [];\n const out: AssetSegment[] = [];\n for (const list of owner.declared.values()) out.push(...list);\n for (const list of owner.learned.values()) out.push(...list);\n return out;\n }\n\n /** Declared segments only — what a partial re-declaration keeps the front of. */\n declaredSegmentsOf(ownerKey: string): readonly AssetSegment[] {\n const owner = this._owners.get(ownerKey);\n if (!owner) return [];\n const out: AssetSegment[] = [];\n for (const list of owner.declared.values()) out.push(...list);\n return out;\n }\n\n ownerKeys(): IterableIterator<string> {\n return this._owners.keys();\n }\n\n records(): ReadonlyMap<string, AssetRecord> {\n return this._records;\n }\n\n /** Fonts, and loaders any owner declared with `gate: \"layout\"`. */\n layoutGates(): readonly AssetRecord[] {\n if (this._layoutGates === null) {\n const gates: AssetRecord[] = [];\n for (const entry of this._entries.values()) {\n if (entry.layout) gates.push(entry.record);\n }\n this._layoutGates = gates;\n }\n return this._layoutGates;\n }\n\n private _frameCount: number;\n private readonly _owners = new Map<string, OwnerSegments>();\n private readonly _byKey = new Map<string, Set<string>>();\n private readonly _entries = new Map<string, KeyEntry>();\n private readonly _records = new Map<string, AssetRecord>();\n private _layoutGates: AssetRecord[] | null = null;\n\n private _link(ownerKey: string, owner: OwnerSegments, touched: Set<string>): void {\n for (const key of owner.declared.keys()) {\n let owners = this._byKey.get(key);\n if (!owners) this._byKey.set(key, (owners = new Set()));\n owners.add(ownerKey);\n touched.add(key);\n }\n }\n\n private _unlink(ownerKey: string, owner: OwnerSegments, touched: Set<string>): void {\n for (const map of [owner.declared, owner.learned]) {\n for (const key of map.keys()) {\n const owners = this._byKey.get(key);\n if (owners) {\n owners.delete(ownerKey);\n if (owners.size === 0) this._byKey.delete(key);\n }\n touched.add(key);\n }\n }\n }\n\n private _refresh(keys: ReadonlySet<string>): AssetDelta {\n const changed = new Set<string>();\n for (const key of keys) {\n const previous = this._entries.get(key);\n const next = this._compute(key);\n if (next === undefined) {\n if (previous === undefined) continue;\n this._entries.delete(key);\n this._records.delete(key);\n } else if (previous !== undefined && previous.layout === next.layout && sameRecord(previous.record, next.record)) {\n continue;\n } else {\n this._entries.set(key, next);\n this._records.set(key, next.record);\n }\n changed.add(key);\n }\n if (changed.size > 0) this._layoutGates = null;\n return { keys: changed };\n }\n\n private _compute(key: string): KeyEntry | undefined {\n const owners = this._byKey.get(key);\n if (!owners) return undefined;\n const last = this._frameCount - 1;\n let first: AssetSegment | undefined;\n let start = Infinity;\n let end = -Infinity;\n let layoutLoader = false;\n\n const visit = (list: AssetSegment[] | undefined): void => {\n if (!list) return;\n for (const segment of list) {\n const from = Math.max(0, segment.startFrame);\n const to = Math.min(last, segment.endFrame);\n if (to < from) continue;\n // The earliest segment speaks for the key.\n if (from < start) {\n start = from;\n first = segment;\n }\n if (to > end) end = to;\n if (segment.decl.type === \"loader\" && segment.decl.gate === \"layout\") layoutLoader = true;\n }\n };\n for (const ownerKey of owners) {\n const owner = this._owners.get(ownerKey);\n if (!owner) continue;\n visit(owner.declared.get(key));\n visit(owner.learned.get(key));\n }\n\n if (first === undefined) return undefined;\n return {\n record: recordOf(first.decl, start, end),\n layout: first.decl.type === \"font\" || layoutLoader,\n };\n }\n}\n\nfunction appendSegment(map: Map<string, AssetSegment[]>, segment: AssetSegment): void {\n const list = map.get(segment.key);\n if (list) list.push(segment);\n else map.set(segment.key, [segment]);\n}\n\nfunction recordOf(decl: AssetDecl, startFrame: number, endFrame: number): AssetRecord {\n switch (decl.type) {\n case \"image\":\n return { type: \"image\", startFrame, endFrame, src: decl.src };\n case \"video\":\n return {\n type: \"video\", startFrame, endFrame, src: decl.src,\n trimStart: decl.trimStart, trimEnd: decl.trimEnd,\n };\n case \"font\":\n return { type: \"font\", startFrame, endFrame, fontWeight: decl.weight, fontFamily: decl.family, src: decl.family };\n case \"loader\":\n return { type: \"loader\", src: decl.key, startFrame, endFrame, load: decl.load };\n }\n}\n\nfunction sameRecord(a: AssetRecord, b: AssetRecord): boolean {\n if (a.type !== b.type || a.src !== b.src || a.startFrame !== b.startFrame || a.endFrame !== b.endFrame) return false;\n switch (a.type) {\n case \"video\": {\n const v = b as typeof a;\n return a.trimStart === v.trimStart && a.trimEnd === v.trimEnd;\n }\n case \"font\":\n return a.fontWeight === (b as typeof a).fontWeight;\n case \"loader\":\n return a.load === (b as typeof a).load;\n default:\n return true;\n }\n}\n"]}