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

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 (445) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +2 -4
  3. package/dist/assets/errors.js +4 -5
  4. package/dist/assets/errors.js.map +1 -1
  5. package/dist/assets/scope.d.ts +1 -1
  6. package/dist/assets/scope.d.ts.map +1 -1
  7. package/dist/assets/scope.js +1 -1
  8. package/dist/assets/scope.js.map +1 -1
  9. package/dist/attributes/audio/schedule.d.ts +3 -18
  10. package/dist/attributes/audio/schedule.d.ts.map +1 -1
  11. package/dist/attributes/audio/schedule.js.map +1 -1
  12. package/dist/attributes/index.d.ts +3 -5
  13. package/dist/attributes/index.d.ts.map +1 -1
  14. package/dist/attributes/index.js +2 -2
  15. package/dist/attributes/index.js.map +1 -1
  16. package/dist/attributes/layout/insets.d.ts +1 -1
  17. package/dist/attributes/layout/insets.js.map +1 -1
  18. package/dist/attributes/layout/size.d.ts +1 -1
  19. package/dist/attributes/layout/size.js +1 -1
  20. package/dist/attributes/layout/size.js.map +1 -1
  21. package/dist/attributes/properties/decorator.d.ts +44 -11
  22. package/dist/attributes/properties/decorator.d.ts.map +1 -1
  23. package/dist/attributes/properties/decorator.js +37 -9
  24. package/dist/attributes/properties/decorator.js.map +1 -1
  25. package/dist/attributes/properties/inputs.d.ts +1 -1
  26. package/dist/attributes/properties/inputs.js +1 -1
  27. package/dist/attributes/properties/inputs.js.map +1 -1
  28. package/dist/attributes/properties/typed.d.ts +19 -140
  29. package/dist/attributes/properties/typed.d.ts.map +1 -1
  30. package/dist/attributes/properties/typed.js +12 -108
  31. package/dist/attributes/properties/typed.js.map +1 -1
  32. package/dist/attributes/shape/corners/corner-radius.d.ts +1 -1
  33. package/dist/attributes/shape/corners/corner-radius.js +1 -1
  34. package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
  35. package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +1 -1
  36. package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
  37. package/dist/attributes/shape/fill/color/parser.d.ts +1 -1
  38. package/dist/attributes/shape/fill/color/parser.js +1 -1
  39. package/dist/attributes/shape/fill/color/parser.js.map +1 -1
  40. package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -2
  41. package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
  42. package/dist/attributes/shape/fill/implementations/shader.d.ts +2 -2
  43. package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
  44. package/dist/attributes/shape/fill/implementations/video.d.ts +1 -1
  45. package/dist/attributes/shape/fill/implementations/video.js +1 -1
  46. package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
  47. package/dist/attributes/shape/fill/lerp.d.ts +1 -1
  48. package/dist/attributes/shape/fill/lerp.js.map +1 -1
  49. package/dist/attributes/shape/filters/chain.d.ts +1 -1
  50. package/dist/attributes/shape/filters/chain.js +1 -1
  51. package/dist/attributes/shape/filters/chain.js.map +1 -1
  52. package/dist/attributes/shape/filters/union.d.ts +4 -3
  53. package/dist/attributes/shape/filters/union.d.ts.map +1 -1
  54. package/dist/attributes/shape/filters/union.js.map +1 -1
  55. package/dist/attributes/shape/path/ops.d.ts +1 -2
  56. package/dist/attributes/shape/path/ops.d.ts.map +1 -1
  57. package/dist/attributes/shape/path/ops.js.map +1 -1
  58. package/dist/attributes/shared/operators.d.ts +2 -2
  59. package/dist/attributes/shared/operators.js.map +1 -1
  60. package/dist/attributes/text/types.d.ts +2 -3
  61. package/dist/attributes/text/types.d.ts.map +1 -1
  62. package/dist/attributes/text/types.js.map +1 -1
  63. package/dist/browser/chunks/chunk-D4FSTPML.js +14 -0
  64. package/dist/browser/chunks/chunk-D4FSTPML.js.map +7 -0
  65. package/dist/browser/chunks/chunk-LKUYVFU3.js +2 -0
  66. package/dist/browser/chunks/{chunk-DHB4COFY.js.map → chunk-LKUYVFU3.js.map} +4 -4
  67. package/dist/browser/chunks/chunk-RTNATFWX.js +5 -0
  68. package/dist/browser/chunks/chunk-RTNATFWX.js.map +7 -0
  69. package/dist/browser/chunks/chunk-ZRPZPWZU.js +3 -0
  70. package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +7 -0
  71. package/dist/browser/component.js +1 -1
  72. package/dist/browser/component.js.map +4 -4
  73. package/dist/browser/experimental.js +1 -1
  74. package/dist/browser/index.js +1 -1
  75. package/dist/browser/index.js.map +4 -4
  76. package/dist/browser/manifest.json +2 -4
  77. package/dist/browser/sdk.js +1 -1
  78. package/dist/component.d.ts +10 -18
  79. package/dist/component.d.ts.map +1 -1
  80. package/dist/component.js +10 -17
  81. package/dist/component.js.map +1 -1
  82. package/dist/components/builtins/audio/audio.d.ts +53 -0
  83. package/dist/components/builtins/audio/audio.d.ts.map +1 -0
  84. package/dist/components/builtins/audio/audio.js +41 -0
  85. package/dist/components/builtins/audio/audio.js.map +1 -0
  86. package/dist/components/builtins/geometry/composite.d.ts +93 -0
  87. package/dist/components/builtins/geometry/composite.d.ts.map +1 -0
  88. package/dist/components/builtins/geometry/composite.js +25 -0
  89. package/dist/components/builtins/geometry/composite.js.map +1 -0
  90. package/dist/components/builtins/geometry/geometry.d.ts +921 -0
  91. package/dist/components/builtins/geometry/geometry.d.ts.map +1 -0
  92. package/dist/components/builtins/geometry/geometry.js +107 -0
  93. package/dist/components/builtins/geometry/geometry.js.map +1 -0
  94. package/dist/components/builtins/geometry/shape-outline.d.ts +93 -0
  95. package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
  96. package/dist/components/builtins/geometry/shape-outline.js +470 -0
  97. package/dist/components/builtins/geometry/shape-outline.js.map +1 -0
  98. package/dist/components/builtins/layout/layout.d.ts +186 -0
  99. package/dist/components/builtins/layout/layout.d.ts.map +1 -0
  100. package/dist/components/builtins/layout/layout.js +84 -0
  101. package/dist/components/builtins/layout/layout.js.map +1 -0
  102. package/dist/components/builtins/media/media.d.ts +240 -0
  103. package/dist/components/builtins/media/media.d.ts.map +1 -0
  104. package/dist/components/builtins/media/media.js +149 -0
  105. package/dist/components/builtins/media/media.js.map +1 -0
  106. package/dist/components/builtins/providers/providers.d.ts +47 -0
  107. package/dist/components/builtins/providers/providers.d.ts.map +1 -0
  108. package/dist/components/builtins/providers/providers.js +30 -0
  109. package/dist/components/builtins/providers/providers.js.map +1 -0
  110. package/dist/components/builtins/text/number-format.d.ts +66 -0
  111. package/dist/components/builtins/text/number-format.d.ts.map +1 -0
  112. package/dist/components/builtins/text/number-format.js +227 -0
  113. package/dist/components/builtins/text/number-format.js.map +1 -0
  114. package/dist/components/builtins/text/number-pattern.d.ts +51 -0
  115. package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
  116. package/dist/components/builtins/text/number-pattern.js +77 -0
  117. package/dist/components/builtins/text/number-pattern.js.map +1 -0
  118. package/dist/components/builtins/text/text-defaults.d.ts +32 -0
  119. package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
  120. package/dist/components/builtins/text/text-defaults.js +37 -0
  121. package/dist/components/builtins/text/text-defaults.js.map +1 -0
  122. package/dist/components/builtins/text/text-layout.d.ts +82 -0
  123. package/dist/components/builtins/text/text-layout.d.ts.map +1 -0
  124. package/dist/components/builtins/text/text-layout.js +331 -0
  125. package/dist/components/builtins/text/text-layout.js.map +1 -0
  126. package/dist/components/builtins/text/text.d.ts +409 -0
  127. package/dist/components/builtins/text/text.d.ts.map +1 -0
  128. package/dist/components/builtins/text/text.js +113 -0
  129. package/dist/components/builtins/text/text.js.map +1 -0
  130. package/dist/components/builtins/three/canvas3d.d.ts +245 -0
  131. package/dist/components/builtins/three/canvas3d.d.ts.map +1 -0
  132. package/dist/components/builtins/three/canvas3d.js +21 -0
  133. package/dist/components/builtins/three/canvas3d.js.map +1 -0
  134. package/dist/components/builtins/three/grid-geometry3d.d.ts +62 -0
  135. package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
  136. package/dist/components/builtins/three/grid-geometry3d.js +114 -0
  137. package/dist/components/builtins/three/grid-geometry3d.js.map +1 -0
  138. package/dist/components/builtins/three/three.d.ts +1889 -0
  139. package/dist/components/builtins/three/three.d.ts.map +1 -0
  140. package/dist/components/builtins/three/three.js +305 -0
  141. package/dist/components/builtins/three/three.js.map +1 -0
  142. package/dist/components/factory/api.d.ts +516 -0
  143. package/dist/components/factory/api.d.ts.map +1 -0
  144. package/dist/components/factory/api.js +4 -0
  145. package/dist/components/factory/api.js.map +1 -0
  146. package/dist/components/factory/clip-of.d.ts +5 -0
  147. package/dist/components/factory/clip-of.d.ts.map +1 -0
  148. package/dist/components/factory/clip-of.js +33 -0
  149. package/dist/components/factory/clip-of.js.map +1 -0
  150. package/dist/components/factory/commands-for.d.ts +19 -0
  151. package/dist/components/factory/commands-for.d.ts.map +1 -0
  152. package/dist/components/factory/commands-for.js +5 -0
  153. package/dist/components/factory/commands-for.js.map +1 -0
  154. package/dist/components/factory/component-audio.d.ts +9 -0
  155. package/dist/components/factory/component-audio.d.ts.map +1 -0
  156. package/dist/components/factory/component-audio.js +18 -0
  157. package/dist/components/factory/component-audio.js.map +1 -0
  158. package/dist/components/factory/component2d.d.ts +8 -0
  159. package/dist/components/factory/component2d.d.ts.map +1 -0
  160. package/dist/components/factory/component2d.js +240 -0
  161. package/dist/components/factory/component2d.js.map +1 -0
  162. package/dist/components/factory/component3d.d.ts +9 -0
  163. package/dist/components/factory/component3d.d.ts.map +1 -0
  164. package/dist/components/factory/component3d.js +99 -0
  165. package/dist/components/factory/component3d.js.map +1 -0
  166. package/dist/components/factory/factory.d.ts +63 -0
  167. package/dist/components/factory/factory.d.ts.map +1 -0
  168. package/dist/components/factory/factory.js +313 -0
  169. package/dist/components/factory/factory.js.map +1 -0
  170. package/dist/components/factory/timeline.d.ts +22 -0
  171. package/dist/components/factory/timeline.d.ts.map +1 -0
  172. package/dist/components/factory/timeline.js +128 -0
  173. package/dist/components/factory/timeline.js.map +1 -0
  174. package/dist/components/factory/type-def.d.ts +26 -0
  175. package/dist/components/factory/type-def.d.ts.map +1 -0
  176. package/dist/components/factory/type-def.js +16 -0
  177. package/dist/components/factory/type-def.js.map +1 -0
  178. package/dist/components/factory/types.d.ts +91 -0
  179. package/dist/components/factory/types.d.ts.map +1 -0
  180. package/dist/components/factory/types.js +88 -0
  181. package/dist/components/factory/types.js.map +1 -0
  182. package/dist/components/factory/views.d.ts +121 -0
  183. package/dist/components/factory/views.d.ts.map +1 -0
  184. package/dist/components/factory/views.js +413 -0
  185. package/dist/components/factory/views.js.map +1 -0
  186. package/dist/components/modules/aim.d.ts +30 -0
  187. package/dist/components/modules/aim.d.ts.map +1 -0
  188. package/dist/components/modules/aim.js +39 -0
  189. package/dist/components/modules/aim.js.map +1 -0
  190. package/dist/components/modules/corners.d.ts +13 -0
  191. package/dist/components/modules/corners.d.ts.map +1 -0
  192. package/dist/components/modules/corners.js +12 -0
  193. package/dist/components/modules/corners.js.map +1 -0
  194. package/dist/components/modules/flow.d.ts +26 -0
  195. package/dist/components/modules/flow.d.ts.map +1 -0
  196. package/dist/components/modules/flow.js +57 -0
  197. package/dist/components/modules/flow.js.map +1 -0
  198. package/dist/components/modules/material.d.ts +40 -0
  199. package/dist/components/modules/material.d.ts.map +1 -0
  200. package/dist/components/modules/material.js +75 -0
  201. package/dist/components/modules/material.js.map +1 -0
  202. package/dist/components/modules/paint.d.ts +71 -0
  203. package/dist/components/modules/paint.d.ts.map +1 -0
  204. package/dist/components/modules/paint.js +106 -0
  205. package/dist/components/modules/paint.js.map +1 -0
  206. package/dist/components/modules/shapes.d.ts +31 -0
  207. package/dist/components/modules/shapes.d.ts.map +1 -0
  208. package/dist/components/modules/shapes.js +43 -0
  209. package/dist/components/modules/shapes.js.map +1 -0
  210. package/dist/components/modules/text-layout.d.ts +26 -0
  211. package/dist/components/modules/text-layout.d.ts.map +1 -0
  212. package/dist/components/modules/text-layout.js +57 -0
  213. package/dist/components/modules/text-layout.js.map +1 -0
  214. package/dist/components/modules/text-style.d.ts +48 -0
  215. package/dist/components/modules/text-style.d.ts.map +1 -0
  216. package/dist/components/modules/text-style.js +63 -0
  217. package/dist/components/modules/text-style.js.map +1 -0
  218. package/dist/components/modules/three-entries.d.ts +23 -0
  219. package/dist/components/modules/three-entries.d.ts.map +1 -0
  220. package/dist/components/modules/three-entries.js +41 -0
  221. package/dist/components/modules/three-entries.js.map +1 -0
  222. package/dist/components/modules/view3d.d.ts +59 -0
  223. package/dist/components/modules/view3d.d.ts.map +1 -0
  224. package/dist/components/modules/view3d.js +171 -0
  225. package/dist/components/modules/view3d.js.map +1 -0
  226. package/dist/components/trees/2d/group-bounds.d.ts +56 -0
  227. package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
  228. package/dist/components/trees/2d/group-bounds.js +87 -0
  229. package/dist/components/trees/2d/group-bounds.js.map +1 -0
  230. package/dist/components/trees/2d/node-lifecycle.d.ts +46 -0
  231. package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
  232. package/dist/components/trees/2d/node-lifecycle.js +264 -0
  233. package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
  234. package/dist/components/trees/2d/node-motion.d.ts +56 -0
  235. package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
  236. package/dist/components/trees/2d/node-motion.js +86 -0
  237. package/dist/components/trees/2d/node-motion.js.map +1 -0
  238. package/dist/components/trees/2d/node-render.d.ts +36 -0
  239. package/dist/components/trees/2d/node-render.d.ts.map +1 -0
  240. package/dist/components/trees/2d/node-render.js +67 -0
  241. package/dist/components/trees/2d/node-render.js.map +1 -0
  242. package/dist/components/trees/2d/node-space.d.ts +63 -0
  243. package/dist/components/trees/2d/node-space.d.ts.map +1 -0
  244. package/dist/components/trees/2d/node-space.js +131 -0
  245. package/dist/components/trees/2d/node-space.js.map +1 -0
  246. package/dist/components/trees/2d/node-transform.d.ts +55 -0
  247. package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
  248. package/dist/components/trees/2d/node-transform.js +73 -0
  249. package/dist/components/trees/2d/node-transform.js.map +1 -0
  250. package/dist/components/trees/2d/node2d.d.ts +1020 -0
  251. package/dist/components/trees/2d/node2d.d.ts.map +1 -0
  252. package/dist/components/trees/2d/node2d.js +1481 -0
  253. package/dist/components/trees/2d/node2d.js.map +1 -0
  254. package/dist/components/trees/audio/index.d.ts +2 -0
  255. package/dist/components/trees/audio/index.d.ts.map +1 -0
  256. package/dist/components/trees/audio/index.js +2 -0
  257. package/dist/components/trees/audio/index.js.map +1 -0
  258. package/dist/components/trees/audio/node-audio.d.ts +109 -0
  259. package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
  260. package/dist/components/trees/audio/node-audio.js +167 -0
  261. package/dist/components/trees/audio/node-audio.js.map +1 -0
  262. package/dist/components/trees/index.d.ts +10 -0
  263. package/dist/components/trees/index.d.ts.map +1 -0
  264. package/dist/components/trees/index.js +14 -0
  265. package/dist/components/trees/index.js.map +1 -0
  266. package/dist/components/trees/node/node-editor-state.d.ts +53 -0
  267. package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
  268. package/dist/components/trees/node/node-editor-state.js +23 -0
  269. package/dist/components/trees/node/node-editor-state.js.map +1 -0
  270. package/dist/components/trees/node/node-reactive.d.ts +89 -0
  271. package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
  272. package/dist/components/trees/node/node-reactive.js +135 -0
  273. package/dist/components/trees/node/node-reactive.js.map +1 -0
  274. package/dist/components/trees/node/node-time.d.ts +39 -0
  275. package/dist/components/trees/node/node-time.d.ts.map +1 -0
  276. package/dist/components/trees/node/node-time.js +14 -0
  277. package/dist/components/trees/node/node-time.js.map +1 -0
  278. package/dist/components/trees/node/node-walk.d.ts +46 -0
  279. package/dist/components/trees/node/node-walk.d.ts.map +1 -0
  280. package/dist/components/trees/node/node-walk.js +74 -0
  281. package/dist/components/trees/node/node-walk.js.map +1 -0
  282. package/dist/components/trees/node/node.d.ts +401 -0
  283. package/dist/components/trees/node/node.d.ts.map +1 -0
  284. package/dist/components/trees/node/node.js +680 -0
  285. package/dist/components/trees/node/node.js.map +1 -0
  286. package/dist/components/trees/root/canvas2d-node.d.ts +163 -0
  287. package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
  288. package/dist/components/trees/root/canvas2d-node.js +216 -0
  289. package/dist/components/trees/root/canvas2d-node.js.map +1 -0
  290. package/dist/components/trees/three/node3d.d.ts +222 -0
  291. package/dist/components/trees/three/node3d.d.ts.map +1 -0
  292. package/dist/components/trees/three/node3d.js +289 -0
  293. package/dist/components/trees/three/node3d.js.map +1 -0
  294. package/dist/document/builtins.js +13 -13
  295. package/dist/document/builtins.js.map +1 -1
  296. package/dist/document/command-traits.d.ts +2 -2
  297. package/dist/document/command-traits.js +1 -1
  298. package/dist/document/command-traits.js.map +1 -1
  299. package/dist/document/deny-globals.d.ts +2 -2
  300. package/dist/document/deny-globals.js +2 -2
  301. package/dist/document/deny-globals.js.map +1 -1
  302. package/dist/document/expression/index.d.ts +1 -1
  303. package/dist/document/expression/index.js +1 -1
  304. package/dist/document/expression/index.js.map +1 -1
  305. package/dist/document/expression/ops.js +1 -1
  306. package/dist/document/expression/ops.js.map +1 -1
  307. package/dist/document/index.d.ts +1 -2
  308. package/dist/document/index.d.ts.map +1 -1
  309. package/dist/document/index.js +1 -2
  310. package/dist/document/index.js.map +1 -1
  311. package/dist/document/node-decorator.d.ts +14 -10
  312. package/dist/document/node-decorator.d.ts.map +1 -1
  313. package/dist/document/node-decorator.js +14 -10
  314. package/dist/document/node-decorator.js.map +1 -1
  315. package/dist/document/node-descriptor.d.ts +3 -3
  316. package/dist/document/node-descriptor.d.ts.map +1 -1
  317. package/dist/document/node-descriptor.js.map +1 -1
  318. package/dist/document/registry.d.ts +23 -25
  319. package/dist/document/registry.d.ts.map +1 -1
  320. package/dist/document/registry.js +12 -18
  321. package/dist/document/registry.js.map +1 -1
  322. package/dist/document/timeline.d.ts +3 -3
  323. package/dist/document/timeline.d.ts.map +1 -1
  324. package/dist/document/timeline.js +2 -2
  325. package/dist/document/timeline.js.map +1 -1
  326. package/dist/document/types.d.ts +4 -4
  327. package/dist/document/types.js.map +1 -1
  328. package/dist/document/validate.d.ts +1 -1
  329. package/dist/document/validate.js.map +1 -1
  330. package/dist/experimental.d.ts +19 -19
  331. package/dist/experimental.d.ts.map +1 -1
  332. package/dist/experimental.js +17 -17
  333. package/dist/experimental.js.map +1 -1
  334. package/dist/index.d.ts +10 -11
  335. package/dist/index.d.ts.map +1 -1
  336. package/dist/index.js +10 -11
  337. package/dist/index.js.map +1 -1
  338. package/dist/layout/types.d.ts +1 -1
  339. package/dist/layout/types.js.map +1 -1
  340. package/dist/props/host.d.ts +1 -1
  341. package/dist/props/host.js.map +1 -1
  342. package/dist/props/slot.d.ts +1 -1
  343. package/dist/props/slot.js +1 -1
  344. package/dist/props/slot.js.map +1 -1
  345. package/dist/render/clip.d.ts +1 -1
  346. package/dist/render/clip.js +1 -1
  347. package/dist/render/clip.js.map +1 -1
  348. package/dist/render/descriptors/rect.js.map +1 -1
  349. package/dist/render/descriptors/text.d.ts +11 -5
  350. package/dist/render/descriptors/text.d.ts.map +1 -1
  351. package/dist/render/descriptors/text.js +7 -1
  352. package/dist/render/descriptors/text.js.map +1 -1
  353. package/dist/render/render-context2d.d.ts +2 -2
  354. package/dist/render/render-context2d.js.map +1 -1
  355. package/dist/render3d/builders.d.ts +1 -1
  356. package/dist/render3d/builders.js +1 -1
  357. package/dist/render3d/builders.js.map +1 -1
  358. package/dist/render3d/graphics3d.d.ts +13 -19
  359. package/dist/render3d/graphics3d.d.ts.map +1 -1
  360. package/dist/render3d/graphics3d.js +13 -19
  361. package/dist/render3d/graphics3d.js.map +1 -1
  362. package/dist/render3d/scene3d.d.ts +1 -1
  363. package/dist/render3d/scene3d.js +1 -1
  364. package/dist/render3d/scene3d.js.map +1 -1
  365. package/dist/render3d/texture.d.ts +2 -2
  366. package/dist/render3d/texture.d.ts.map +1 -1
  367. package/dist/render3d/texture.js.map +1 -1
  368. package/dist/render3d/vector3.d.ts +2 -2
  369. package/dist/render3d/vector3.js +2 -2
  370. package/dist/render3d/vector3.js.map +1 -1
  371. package/dist/runtime/asset-refine.d.ts +1 -1
  372. package/dist/runtime/asset-refine.d.ts.map +1 -1
  373. package/dist/runtime/asset-refine.js +1 -1
  374. package/dist/runtime/asset-refine.js.map +1 -1
  375. package/dist/runtime/asset-update.js +1 -1
  376. package/dist/runtime/asset-update.js.map +1 -1
  377. package/dist/runtime/audio-index.d.ts +0 -11
  378. package/dist/runtime/audio-index.d.ts.map +1 -1
  379. package/dist/runtime/audio-index.js +0 -25
  380. package/dist/runtime/audio-index.js.map +1 -1
  381. package/dist/runtime/clip-instance.d.ts +3 -3
  382. package/dist/runtime/clip-instance.d.ts.map +1 -1
  383. package/dist/runtime/clip-instance.js +4 -4
  384. package/dist/runtime/clip-instance.js.map +1 -1
  385. package/dist/runtime/clip-store.d.ts +2 -3
  386. package/dist/runtime/clip-store.d.ts.map +1 -1
  387. package/dist/runtime/clip-store.js +17 -35
  388. package/dist/runtime/clip-store.js.map +1 -1
  389. package/dist/runtime/engine.d.ts +3 -3
  390. package/dist/runtime/engine.js +2 -2
  391. package/dist/runtime/engine.js.map +1 -1
  392. package/dist/runtime/node-picking.d.ts +2 -2
  393. package/dist/runtime/node-picking.d.ts.map +1 -1
  394. package/dist/runtime/node-picking.js +3 -3
  395. package/dist/runtime/node-picking.js.map +1 -1
  396. package/dist/runtime/node-picking3d.d.ts +2 -2
  397. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  398. package/dist/runtime/node-picking3d.js +1 -1
  399. package/dist/runtime/node-picking3d.js.map +1 -1
  400. package/dist/runtime/playback-controller.d.ts +2 -2
  401. package/dist/runtime/playback-controller.d.ts.map +1 -1
  402. package/dist/runtime/playback-controller.js +1 -1
  403. package/dist/runtime/playback-controller.js.map +1 -1
  404. package/dist/runtime/state-evaluator.d.ts +2 -2
  405. package/dist/runtime/state-evaluator.d.ts.map +1 -1
  406. package/dist/runtime/state-evaluator.js.map +1 -1
  407. package/dist/runtime/text-geometry.d.ts +1 -1
  408. package/dist/runtime/text-geometry.d.ts.map +1 -1
  409. package/dist/runtime/text-geometry.js +4 -5
  410. package/dist/runtime/text-geometry.js.map +1 -1
  411. package/dist/sdk/index.d.ts +43 -39
  412. package/dist/sdk/index.d.ts.map +1 -1
  413. package/dist/sdk/index.js +24 -25
  414. package/dist/sdk/index.js.map +1 -1
  415. package/dist/tween/command-decorator.d.ts +7 -9
  416. package/dist/tween/command-decorator.d.ts.map +1 -1
  417. package/dist/tween/command-decorator.js +2 -2
  418. package/dist/tween/command-decorator.js.map +1 -1
  419. package/dist/tween/command.d.ts +1 -1
  420. package/dist/tween/command.js.map +1 -1
  421. package/dist/tween/index.d.ts +2 -1
  422. package/dist/tween/index.d.ts.map +1 -1
  423. package/dist/tween/index.js +1 -1
  424. package/dist/tween/index.js.map +1 -1
  425. package/dist/tween/loop.d.ts +1 -1
  426. package/dist/tween/loop.js +1 -1
  427. package/dist/tween/loop.js.map +1 -1
  428. package/dist/util/reference.d.ts +6 -6
  429. package/dist/util/reference.js.map +1 -1
  430. package/package.json +2 -10
  431. package/dist/browser/chunks/chunk-2RIYH36X.js +0 -3
  432. package/dist/browser/chunks/chunk-2RIYH36X.js.map +0 -7
  433. package/dist/browser/chunks/chunk-DDJN3QII.js +0 -15
  434. package/dist/browser/chunks/chunk-DDJN3QII.js.map +0 -7
  435. package/dist/browser/chunks/chunk-DHB4COFY.js +0 -2
  436. package/dist/browser/chunks/chunk-EJDPYDQI.js +0 -5
  437. package/dist/browser/chunks/chunk-EJDPYDQI.js.map +0 -7
  438. package/dist/browser/chunks/chunk-SFNJRPBV.js +0 -2
  439. package/dist/browser/chunks/chunk-SFNJRPBV.js.map +0 -7
  440. package/dist/browser/chunks/chunk-XAWE4EAK.js +0 -2
  441. package/dist/browser/chunks/chunk-XAWE4EAK.js.map +0 -7
  442. package/dist/browser/jsx-jsx-dev-runtime.js +0 -2
  443. package/dist/browser/jsx-jsx-dev-runtime.js.map +0 -7
  444. package/dist/browser/jsx-jsx-runtime.js +0 -2
  445. package/dist/browser/jsx-jsx-runtime.js.map +0 -7
@@ -4,7 +4,7 @@ export { resolveProjectDocument } from '../runtime/session.js';
4
4
  export { placeTracks } from '../runtime/placement.js';
5
5
  export type { TrackSpan } from '../runtime/placement.js';
6
6
  export type { Theme, ColorTokens, Typography, TypographyPreset, } from '../project/index.js';
7
- export type { NodeTime, AttachScope } from '../nodes/index.js';
7
+ export type { NodeTime, AttachScope } from '../components/trees/index.js';
8
8
  export type { BoxBounds, Extents } from '../layout/index.js';
9
9
  export type { ImageMeta, VideoMeta, AudioMeta, FontMeta, AssetMeta, AssetManifest, } from '../assets/index.js';
10
10
  export { validateDocument, assertValidDocument, Registry, } from '../document/index.js';
@@ -13,49 +13,53 @@ export type { RegistryOptions, NodeTypeMap, ShaderPackMap, NodeTypeRecord, NodeC
13
13
  export type { Shader, FillShader, EffectShader, ShaderProperty, KnownShaderProperty, ShaderPropertyValues, } from '../attributes/index.js';
14
14
  export { expressionOps, ExpressionError } from '../document/index.js';
15
15
  export type { ParsedExpression, ExpressionNode, ExpressionDialect, VariableResolver, } from '../document/index.js';
16
- export { component2d } from '../component/component2d.js';
17
- export { componentAudio } from '../component/component-audio.js';
18
- export { component3d } from '../component/component3d.js';
19
- export { commandsFor } from '../component/commands-for.js';
20
- export { Types } from '../component/types.js';
21
- export { provides } from '../component/api.js';
22
- export * as Paint from '../component/modules/paint.js';
23
- export * as Flow from '../component/modules/flow.js';
24
- export * as Shapes from '../component/modules/shapes.js';
25
- export * as Aim from '../component/modules/aim.js';
26
- export * as Typeface from '../component/modules/text-style.js';
27
- export * as TextLayout from '../component/modules/text-layout.js';
28
- export * as Material from '../component/modules/material.js';
29
- export * as View3D from '../component/modules/view3d.js';
30
- export type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../component/types.js';
31
- export type { Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader, Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, SoundOptions, StateSpec, Timeline, Type, Values, Writes, Merge, RenderContext2D as RenderContext, CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame, RenderContext3D as SceneContext, } from '../component/api.js';
32
- export type { Node, Node2D } from '../nodes/index.js';
33
- export { Canvas2D, findNode2D, frameIn, } from '../nodes/index.js';
34
- export { Provider, ThemeProvider } from '../component/builtins/providers.js';
35
- export type { NodeProps, Node2DProps, ChildPlacement, ChildPlane, NodeHandle, Canvas2DProps, NodeConfig, NodeChildren, NodeDimension, ProviderProps, ThemeProviderProps, } from '../nodes/index.js';
36
- export { Rect, Ellipse, Path, PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../component/builtins/geometry.js';
37
- export { BooleanGroup, MaskGroup } from '../component/builtins/composite.js';
38
- export type { PaintProps, ShapeProps, RectProps, FlexSize, EllipseProps, PathProps, PathShapeProps, PolygonProps, PolygramProps, BooleanGroupProps, MaskGroupProps, } from '../nodes/index.js';
16
+ export { component2d } from '../components/factory/component2d.js';
17
+ export { componentAudio } from '../components/factory/component-audio.js';
18
+ export { component3d } from '../components/factory/component3d.js';
19
+ export { commandsFor } from '../components/factory/commands-for.js';
20
+ export { Types } from '../components/factory/types.js';
21
+ export { provides } from '../components/factory/api.js';
22
+ export * as Paint from '../components/modules/paint.js';
23
+ export * as Flow from '../components/modules/flow.js';
24
+ export * as Shapes from '../components/modules/shapes.js';
25
+ export * as Aim from '../components/modules/aim.js';
26
+ export * as Typeface from '../components/modules/text-style.js';
27
+ export * as TextLayout from '../components/modules/text-layout.js';
28
+ export * as Material from '../components/modules/material.js';
29
+ export * as View3D from '../components/modules/view3d.js';
30
+ export type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../components/factory/types.js';
31
+ export type { Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader, Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, SoundOptions, StateSpec, Timeline, Type, Values, Writes, Merge, BuiltNode, RenderContext2D as RenderContext, CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame, RenderContext3D as SceneContext, } from '../components/factory/api.js';
32
+ export type { Node, Node2D } from '../components/trees/index.js';
33
+ export { Canvas2D, findNode2D, frameIn, } from '../components/trees/index.js';
34
+ export { Provider, ThemeProvider } from '../components/builtins/providers/providers.js';
35
+ export type { NodeProps, Node2DProps, ChildPlacement, ChildPlane, NodeHandle, Canvas2DProps, NodeConfig, NodeChildren, NodeDimension, } from '../components/trees/index.js';
36
+ export type { ProviderProps, ThemeProviderProps } from '../components/builtins/providers/providers.js';
37
+ export { Rect, Ellipse, Path, PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../components/builtins/geometry/geometry.js';
38
+ export { BooleanGroup, MaskGroup } from '../components/builtins/geometry/composite.js';
39
+ export type { PaintProps, ShapeProps, RectProps, FlexSize, EllipseProps, PathProps, PathShapeProps, PolygonProps, PolygramProps, } from '../components/builtins/geometry/geometry.js';
40
+ export type { BooleanGroupProps, MaskGroupProps } from '../components/builtins/geometry/composite.js';
39
41
  export type { BooleanOperation, MaskMode, MaskOptions, } from '../attributes/index.js';
40
- export { Camera, OrbitCamera, RotatedBox, } from '../component/builtins/layout.js';
41
- export type { CameraProps, OrbitCameraProps, } from '../nodes/index.js';
42
- export { Text, RichText, NumberNode, DefaultTextStyle } from '../component/builtins/text.js';
43
- export { TextSelection } from '../nodes/index.js';
44
- export type { TextProps, RichTextProps, NumberProps, NumberFormat, DefaultTextStyleProps, TextSelectionProps, TextRange, SelectionOverrides, } from '../nodes/index.js';
42
+ export { Camera, OrbitCamera, RotatedBox, } from '../components/builtins/layout/layout.js';
43
+ export type { CameraProps, OrbitCameraProps, } from '../components/builtins/layout/layout.js';
44
+ export { Text, RichText, NumberNode, DefaultTextStyle } from '../components/builtins/text/text.js';
45
+ export type { TextProps, RichTextProps, NumberProps, NumberFormat, DefaultTextStyleProps, } from '../components/builtins/text/text.js';
45
46
  export { textOps } from '../attributes/index.js';
46
47
  export type { TextStyle, TextAlign, VerticalAlign, TextDecoration, TextCase, TextSpan, TextRun, FontStyle, } from '../attributes/index.js';
47
- export { Video } from '../component/builtins/media.js';
48
- export type { VideoProps, VideoSegment, } from '../nodes/index.js';
49
- export type { NodeAudio } from '../nodes/index.js';
50
- export { AudioBus, SoundNode } from '../component/builtins/audio.js';
48
+ export { Video } from '../components/builtins/media/media.js';
49
+ export type { VideoProps, VideoSegment, } from '../components/builtins/media/media.js';
50
+ export type { NodeAudio } from '../components/trees/index.js';
51
+ export { AudioBus, SoundNode } from '../components/builtins/audio/audio.js';
51
52
  export { Sound, AudioFilters, ramp, hold, fadeIn, fadeOut, isCurve, } from '../attributes/index.js';
52
- export type { NodeAudioProps, AudioBusProps, SoundNodeProps, } from '../nodes/index.js';
53
- export type { SoundProps, AudioRequest, AudioScope, AudioClip, AudioBusStop, AudioFilter, Param, Curve, } from '../attributes/index.js';
54
- export { Canvas3D } from '../component/builtins/canvas3d.js';
55
- export type { Node3D } from '../nodes/index.js';
56
- export { Group3D, Mesh3D, Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D, Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D, Instances3D, Points3D, Line3D, Sprite3D, Model3D, AmbientLight3D, HemisphereLight3D, DirectionalLight3D, PointLight3D, SpotLight3D, AreaLight3D, Camera3D, Fog3D, Environment3D, } from '../component/builtins/three.js';
53
+ export type { NodeAudioProps, } from '../components/trees/index.js';
54
+ export type { AudioBusProps, SoundNodeProps } from '../components/builtins/audio/audio.js';
55
+ export type { SoundProps, AudioRequest, AudioBusStop, AudioFilter, Param, Curve, } from '../attributes/index.js';
56
+ export { Canvas3D } from '../components/builtins/three/canvas3d.js';
57
+ export type { Node3D } from '../components/trees/index.js';
58
+ export { Group3D, Mesh3D, Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D, Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D, Instances3D, Points3D, Line3D, Sprite3D, Model3D, AmbientLight3D, HemisphereLight3D, DirectionalLight3D, PointLight3D, SpotLight3D, AreaLight3D, Camera3D, Fog3D, Environment3D, } from '../components/builtins/three/three.js';
57
59
  export { Graphics3D, Scene3D, RenderContext3D, Geo, Mat, Tex, lerpVector3, lerpEuler3, slerpQuaternion, quaternionFromEuler, normalizeQuaternion, resolveVector3, evaluateParametric, evaluateRoundedBox, resolveSurfaceSource, resolveFill3D, segmentsOf, resolveCameraPlacement, resolveShadows3D, shadowCasts, shadowReceives, } from '../render3d/index.js';
58
- export type { Canvas3DProps, ChildSpace3D, Node3DProps, Group3DProps, Mesh3DProps, Material3DProps, Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps, Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps, Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps, Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps, AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps, PointLight3DProps, SpotLight3DProps, AreaLight3DProps, Camera3DProps, Fog3DProps, Environment3DProps, } from '../nodes/index.js';
60
+ export type { Canvas3DProps } from '../components/builtins/three/canvas3d.js';
61
+ export type { ChildSpace3D, Node3DProps, } from '../components/trees/index.js';
62
+ export type { Group3DProps, Mesh3DProps, Material3DProps, Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps, Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps, Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps, Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps, AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps, PointLight3DProps, SpotLight3DProps, AreaLight3DProps, Camera3DProps, Fog3DProps, Environment3DProps, } from '../components/builtins/three/three.js';
59
63
  export type { Node3DRenderState, Graphics3DOp, Scene3DOp, Vector3, Vector3Input, Euler3, EulerOrder, Quaternion, Transform3D, Shadow3D, ShadowOptions3D, Faces3D, Blend3D, Shading3D, Segments3D, Sweep3D, Bevel3D, Fill3D, Geometry3D, BufferGeometry3D, Material3D, MaterialCommon3D, MeshShorthand3D, MaterialShorthand3D, Uniform3D, Texture3D, TextureOptions3D, SurfaceTexture3D, SurfaceSource3D, ResolvedSurfaceSource, LightData3D, CameraData3D, FogData3D, EnvironmentData3D, Shadows3D, ShadowSettings3D, ToneMapping3D, ToneSettings3D, PostEffect3D, LineMode3D, LineStroke3D, ModelAnimation3D, } from '../render3d/index.js';
60
64
  export { Graphics2D, PathBuilder, Clip, toPathString, } from '../render/index.js';
61
65
  export type { RenderContext2D, RenderPass2D, MeasureContext2D, TextBlockSource, GraphicsOp, PathData, PathCommand, PathBounds, EllipseArc, } from '../render/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAY,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EACR,eAAe,EACf,KAAK,GACR,MAAM,aAAa,CAAC;AAKrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EACR,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,E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CAAC;AAClB,YAAY,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACf,MAAM,UAAU,CAAC;AAKlB,OAAO,EACH,SAAS,EACT,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,MAAM,EACN,aAAa,EACb,QAAQ,EACR,SAAS,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EACR,SAAS,EACT,SAAS,EACT,OAAO,EACP,UAAU,EACV,eAAe,GAClB,MAAM,SAAS,CAAC;AAejB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChG,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EACH,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GAChB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,OAAO,EACP,iBAAiB,GACpB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,YAAY,GACf,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACR,SAAS,GACZ,MAAM,YAAY,CAAC;AACpB,gEAAgE;AAChE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/sdk/index.js CHANGED
@@ -50,55 +50,54 @@ export { expressionOps, ExpressionError } from '../document/index.js';
50
50
  // helpers called (`Paint.draw`, `Flow.measure`). See
51
51
  // `experiments/component-syntax/README.md`.
52
52
  // =============================================================
53
- export { component2d } from '../component/component2d.js';
54
- export { componentAudio } from '../component/component-audio.js';
55
- export { component3d } from '../component/component3d.js';
56
- export { commandsFor } from '../component/commands-for.js';
57
- export { Types } from '../component/types.js';
58
- export { provides } from '../component/api.js';
59
- export * as Paint from '../component/modules/paint.js';
60
- export * as Flow from '../component/modules/flow.js';
61
- export * as Shapes from '../component/modules/shapes.js';
62
- export * as Aim from '../component/modules/aim.js';
53
+ export { component2d } from '../components/factory/component2d.js';
54
+ export { componentAudio } from '../components/factory/component-audio.js';
55
+ export { component3d } from '../components/factory/component3d.js';
56
+ export { commandsFor } from '../components/factory/commands-for.js';
57
+ export { Types } from '../components/factory/types.js';
58
+ export { provides } from '../components/factory/api.js';
59
+ export * as Paint from '../components/modules/paint.js';
60
+ export * as Flow from '../components/modules/flow.js';
61
+ export * as Shapes from '../components/modules/shapes.js';
62
+ export * as Aim from '../components/modules/aim.js';
63
63
  // The face text is set in: its entries inherit from the nearest provider.
64
- export * as Typeface from '../component/modules/text-style.js';
65
- export * as TextLayout from '../component/modules/text-layout.js';
64
+ export * as Typeface from '../components/modules/text-style.js';
65
+ export * as TextLayout from '../components/modules/text-layout.js';
66
66
  // A mesh's surface: the material entries, and the mesh drawn with them.
67
- export * as Material from '../component/modules/material.js';
67
+ export * as Material from '../components/modules/material.js';
68
68
  // A viewport onto 3D children: the default camera and lights, the grid, the render settings.
69
- export * as View3D from '../component/modules/view3d.js';
69
+ export * as View3D from '../components/modules/view3d.js';
70
70
  export {
71
71
  // A clip's root container: layout frame, background paint and camera in
72
72
  // one node. Every track builds into one sized to the viewport.
73
73
  Canvas2D,
74
74
  // Reaching another node by the id a `nodeRef` prop holds, and reading where it sits.
75
- findNode2D, frameIn, } from '../nodes/index.js';
76
- export { Provider, ThemeProvider } from '../component/builtins/providers.js';
75
+ findNode2D, frameIn, } from '../components/trees/index.js';
76
+ export { Provider, ThemeProvider } from '../components/builtins/providers/providers.js';
77
77
  // =============================================================
78
78
  // Nodes — Geometry
79
79
  // =============================================================
80
80
  export { Rect, Ellipse, Path,
81
81
  // The document's `"path"`: its `data` is in the unit space of its own box,
82
82
  // where `Path` draws its `d` at face value.
83
- PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../component/builtins/geometry.js';
84
- export { BooleanGroup, MaskGroup } from '../component/builtins/composite.js';
83
+ PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../components/builtins/geometry/geometry.js';
84
+ export { BooleanGroup, MaskGroup } from '../components/builtins/geometry/composite.js';
85
85
  // =============================================================
86
86
  // Nodes — Layout
87
87
  // =============================================================
88
88
  export { Camera,
89
89
  // The stage's 2.5D camera for one subtree: its children orbited in depth.
90
- OrbitCamera, RotatedBox, } from '../component/builtins/layout.js';
90
+ OrbitCamera, RotatedBox, } from '../components/builtins/layout/layout.js';
91
91
  // =============================================================
92
92
  // Nodes — Text
93
93
  // =============================================================
94
- export { Text, RichText, NumberNode, DefaultTextStyle } from '../component/builtins/text.js';
95
- export { TextSelection } from '../nodes/index.js';
94
+ export { Text, RichText, NumberNode, DefaultTextStyle } from '../components/builtins/text/text.js';
96
95
  export { textOps } from '../attributes/index.js';
97
96
  // =============================================================
98
97
  // Nodes — Media
99
98
  // =============================================================
100
- export { Video } from '../component/builtins/media.js';
101
- export { AudioBus, SoundNode } from '../component/builtins/audio.js';
99
+ export { Video } from '../components/builtins/media/media.js';
100
+ export { AudioBus, SoundNode } from '../components/builtins/audio/audio.js';
102
101
  export { Sound, AudioFilters, ramp, hold, fadeIn, fadeOut, isCurve, } from '../attributes/index.js';
103
102
  // =============================================================
104
103
  // 3D — the Canvas3D node and the Graphics3D API
@@ -108,9 +107,9 @@ export { Sound, AudioFilters, ramp, hold, fadeIn, fadeOut, isCurve, } from '../a
108
107
  // are what make a Vector3/Euler/Quaternion prop interpolate rather than snap.
109
108
  // `Surface2D` is the 2D→3D bridge: a child of `Canvas3D` whose 2D content is
110
109
  // rasterized offscreen and bound to a material by `Tex.surface(name)`.
111
- export { Canvas3D } from '../component/builtins/canvas3d.js';
110
+ export { Canvas3D } from '../components/builtins/three/canvas3d.js';
112
111
  // The 3D scene graph: components, each placed by its transform.
113
- export { Group3D, Mesh3D, Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D, Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D, Instances3D, Points3D, Line3D, Sprite3D, Model3D, AmbientLight3D, HemisphereLight3D, DirectionalLight3D, PointLight3D, SpotLight3D, AreaLight3D, Camera3D, Fog3D, Environment3D, } from '../component/builtins/three.js';
112
+ export { Group3D, Mesh3D, Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D, Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D, Instances3D, Points3D, Line3D, Sprite3D, Model3D, AmbientLight3D, HemisphereLight3D, DirectionalLight3D, PointLight3D, SpotLight3D, AreaLight3D, Camera3D, Fog3D, Environment3D, } from '../components/builtins/three/three.js';
114
113
  export { Graphics3D, Scene3D, RenderContext3D, Geo, Mat, Tex, lerpVector3, lerpEuler3, slerpQuaternion, quaternionFromEuler, normalizeQuaternion, resolveVector3, evaluateParametric, evaluateRoundedBox, resolveSurfaceSource, resolveFill3D, segmentsOf, resolveCameraPlacement, resolveShadows3D, shadowCasts, shadowReceives, } from '../render3d/index.js';
115
114
  // =============================================================
116
115
  // Rendering — Graphics2D builder, RenderContext2D & asset declaration
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,gFAAgF;AAChF,wEAAwE;AACxE,gFAAgF;AAChF,+EAA+E;AAC/E,6EAA6E;AAC7E,oCAAoC;AAEpC,gEAAgE;AAChE,UAAU;AACV,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,iFAAiF;AACjF,iFAAiF;AACjF,sDAAsD;AACtD,gEAAgE;AAChE,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAY,GACf,MAAM,aAAa,CAAC;AAKrB,iFAAiF;AACjF,4EAA4E;AAC5E,0EAA0E;AAC1E,0DAA0D;AAC1D,OAAO,EA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E;AAChE,OAAO,EACH,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACZ,MAAM,UAAU,CAAC;AAOlB,gEAAgE;AAChE,YAAY;AACZ,gEAAgE;AAChE,OAAO,EACH,SAAS,EACT,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,MAAM,EACN,aAAa,EACb,QAAQ,EACR,SAAS,GACZ,MAAM,SAAS,CAAC;AASjB,gEAAgE;AAChE,kEAAkE;AAClE,gEAAgE;AAChE,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;AAChF,8EAA8E;AAC9E,6EAA6E;AAC7E,yBAAyB;AACzB,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,0CAA0C;AAC1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGhG,OAAO,EACH,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GAChB,MAAM,yBAAyB,CAAC","sourcesContent":["// The curated public surface published as `@motionscript/sdk` (packages/sdk) and,\r\n// via this file, as `@motionscript/core/sdk`. A deliberate SUBSET of core's own\r\n// root barrel (`../index.ts`): no `Engine`/`Session`/platform seams, no\r\n// `@internal`-tagged descriptor plumbing. Every export here is named, traced to\r\n// its real declaring sub-barrel — never a wildcard — so nothing internal leaks\r\n// by accident. Keep this in lockstep with `packages/sdk/src/index.ts`, which\r\n// mirrors this exact named surface.\r\n\r\n// =============================================================\r\n// Project\r\n//\r\n// A clip is **data**: a still is nodes and props, a composition is the same\r\n// nodes placed in time plus the commands that animate them, and an audio\r\n// document is that one tree over. A **project** is one list of tracks over those\r\n// clips, and it is what the runtime plays — a lone still or composition is sugar\r\n// for a project with one track (`asProjectDocument`).\r\n// =============================================================\r\nexport {\r\n isProjectDocument,\r\n asProjectDocument,\r\n documentDuration,\r\n commandSpan,\r\n hasTimeline,\r\n nodeSpan,\r\n effectiveSpan,\r\n untimed,\r\n ROOT_NODE_ID,\r\n} from '../document';\r\nexport type {\r\n ProjectDocument,\r\n Track,\r\n} from '../document';\r\n// `resolveProjectDocument`/`placeTracks` genuinely live in `../runtime` (session\r\n// resolution and track placement are runtime concerns) — deep-imported from\r\n// their concrete files rather than the runtime barrel, which also carries\r\n// `Engine`/`Session` and is never a source for this file.\r\nexport { resolveProjectDocument } from '../runtime/session';\r\nexport { placeTracks } from '../runtime/placement';\r\nexport type { TrackSpan } from '../runtime/placement';\r\nexport type {\r\n Theme,\r\n ColorTokens,\r\n Typography,\r\n TypographyPreset,\r\n} from '../project';\r\nexport type { NodeTime, AttachScope } from '../nodes';\r\nexport type { BoxBounds, Extents } from '../layout';\r\n\r\n// =============================================================\r\n// Assets\r\n//\r\n// The manifest a host builds a scene against — what images, video, audio and\r\n// fonts it references, resolved before render. An `Engine`'s manifest and\r\n// `@motionscript/headless`'s asset options both take this shape.\r\n// =============================================================\r\nexport type {\r\n ImageMeta,\r\n VideoMeta,\r\n AudioMeta,\r\n FontMeta,\r\n AssetMeta,\r\n AssetManifest,\r\n} from '../assets';\r\n\r\n// =============================================================\r\n// The clip document\r\n//\r\n// The data half of the model. Node types are code — a component registered\r\n// under its key, which is also where a custom node joins the system — and\r\n// everything else is plain JSON: which nodes exist, what props they carry, and\r\n// what happens to them over time.\r\n// =============================================================\r\nexport {\r\n validateDocument,\r\n assertValidDocument,\r\n // The code half of the model, as one object an engine owns. Not a\r\n // singleton: what a document can name is a property of the registry\r\n // compiling it, so two engines in one process disagree freely.\r\n Registry,\r\n} from '../document';\r\n// The shader-pack vocabulary lives beside the rest of the fill/shader attribute\r\n// machinery, not in `../document`.\r\nexport {\r\n normalizeShaderPack,\r\n resolveShaderProperties,\r\n isKnownShaderProperty,\r\n} from '../attributes';\r\nexport type {\r\n RegistryOptions,\r\n NodeTypeMap,\r\n ShaderPackMap,\r\n NodeTypeRecord,\r\n NodeCommandEntry,\r\n VisualDocument,\r\n ClipDocument,\r\n StillDocument,\r\n CompositionDocument,\r\n AudioDocument,\r\n NodeSpec,\r\n TimedNodeSpec,\r\n NodeSpan,\r\n CommandSpec,\r\n EaseSpec,\r\n LoopSpec,\r\n LoopDirection,\r\n VariableSpec,\r\n ValidationIssue,\r\n ValidationResult,\r\n NodeConstructor,\r\n CommandFactory,\r\n CommandTypeEntry,\r\n VariableCommandFactory,\r\n VariableLerp,\r\n VariableTarget,\r\n} from '../document';\r\nexport type {\r\n Shader,\r\n FillShader,\r\n EffectShader,\r\n ShaderProperty,\r\n KnownShaderProperty,\r\n ShaderPropertyValues,\r\n} from '../attributes';\r\n\r\n// Expressions: the string form of a prop that follows a variable — `\"=4[g]+3\"`.\r\n// `expressionOps` carries recognition, parsing and compiling, so a host can lint,\r\n// complete or rewrite one without reimplementing the grammar.\r\nexport { expressionOps, ExpressionError } from '../document';\r\nexport type {\r\n ParsedExpression,\r\n ExpressionNode,\r\n ExpressionDialect,\r\n VariableResolver,\r\n} from '../document';\r\n\r\n// =============================================================\r\n// Components — the factories a node type is written with\r\n//\r\n// A component is one object literal: `key`, `state`, `commands`, `children`\r\n// and its tree's own fields (`measure`/`layout`/`render` for 2D). Behaviour is\r\n// spread in from modules (`...Paint.state`, `...Paint.commands`) and their\r\n// helpers called (`Paint.draw`, `Flow.measure`). See\r\n// `experiments/component-syntax/README.md`.\r\n// =============================================================\r\nexport { component2d } from '../component/component2d';\r\nexport { componentAudio } from '../component/component-audio';\r\nexport { component3d } from '../component/component3d';\r\nexport { commandsFor } from '../component/commands-for';\r\nexport { Types } from '../component/types';\r\nexport { provides } from '../component/api';\r\nexport * as Paint from '../component/modules/paint';\r\nexport * as Flow from '../component/modules/flow';\r\nexport * as Shapes from '../component/modules/shapes';\r\nexport * as Aim from '../component/modules/aim';\r\n// The face text is set in: its entries inherit from the nearest provider.\r\nexport * as Typeface from '../component/modules/text-style';\r\nexport * as TextLayout from '../component/modules/text-layout';\r\n// A mesh's surface: the material entries, and the mesh drawn with them.\r\nexport * as Material from '../component/modules/material';\r\n// A viewport onto 3D children: the default camera and lights, the grid, the render settings.\r\nexport * as View3D from '../component/modules/view3d';\r\nexport type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../component/types';\r\nexport type {\r\n Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader,\r\n Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, SoundOptions, StateSpec,\r\n Timeline, Type, Values, Writes,\r\n // Named in every component's type, so a package exporting one can declare it.\r\n Merge,\r\n // What `render` is handed; `RenderContext2D` is the renderer's.\r\n RenderContext2D as RenderContext,\r\n CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame,\r\n // What a 3D `render` is handed; `RenderContext3D` is the renderer's.\r\n RenderContext3D as SceneContext,\r\n} from '../component/api';\r\n\r\n// =============================================================\r\n// Nodes — what code holding a built node names it as\r\n//\r\n// `Node` is dimension-agnostic (tree, props, tweens, context, clock); `Node2D`\r\n// adds layout and 2D drawing; `Node3D` and `NodeAudio` are the other trees.\r\n// Types only: a node type is a component, never a subclass.\r\n// =============================================================\r\nexport type { Node, Node2D } from '../nodes';\r\nexport {\r\n // A clip's root container: layout frame, background paint and camera in\r\n // one node. Every track builds into one sized to the viewport.\r\n Canvas2D,\r\n // Reaching another node by the id a `nodeRef` prop holds, and reading where it sits.\r\n findNode2D,\r\n frameIn,\r\n} from '../nodes';\r\nexport { Provider, ThemeProvider } from '../component/builtins/providers';\r\nexport type {\r\n NodeProps,\r\n Node2DProps,\r\n // A slot a layout puts each child in beyond its box — see `Node2D._placementOf`.\r\n ChildPlacement,\r\n // A parent's own coordinates for its children's `x`/`y` — see `Node2D._planeOf`.\r\n ChildPlane,\r\n // A point an editor can drag to set a `Vector2` prop — see `Node2D._handles`.\r\n NodeHandle,\r\n Canvas2DProps,\r\n NodeConfig,\r\n NodeChildren,\r\n NodeDimension,\r\n ProviderProps,\r\n ThemeProviderProps,\r\n} from '../nodes';\r\n\r\n// =============================================================\r\n// Nodes — Geometry\r\n// =============================================================\r\nexport {\r\n Rect,\r\n Ellipse,\r\n Path,\r\n // The document's `\"path\"`: its `data` is in the unit space of its own box,\r\n // where `Path` draws its `d` at face value.\r\n PathShape,\r\n Polygon,\r\n Polygram,\r\n Triangle,\r\n RightTriangle,\r\n Pentagon,\r\n Hexagon,\r\n Octagon,\r\n Star,\r\n} from '../component/builtins/geometry';\r\nexport { BooleanGroup, MaskGroup } from '../component/builtins/composite';\r\nexport type {\r\n PaintProps,\r\n ShapeProps,\r\n RectProps,\r\n FlexSize,\r\n EllipseProps,\r\n PathProps,\r\n PathShapeProps,\r\n PolygonProps,\r\n PolygramProps,\r\n BooleanGroupProps,\r\n MaskGroupProps,\r\n} from '../nodes';\r\n// The operation/mode vocabularies behind `Boolean`/`Mask` are attribute types,\r\n// not node-prop types.\r\nexport type {\r\n BooleanOperation,\r\n MaskMode,\r\n MaskOptions,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Nodes — Layout\r\n// =============================================================\r\nexport {\r\n Camera,\r\n // The stage's 2.5D camera for one subtree: its children orbited in depth.\r\n OrbitCamera,\r\n RotatedBox,\r\n} from '../component/builtins/layout';\r\nexport type {\r\n CameraProps,\r\n OrbitCameraProps,\r\n} from '../nodes';\r\n\r\n// =============================================================\r\n// Nodes — Text\r\n// =============================================================\r\nexport { Text, RichText, NumberNode, DefaultTextStyle } from '../component/builtins/text';\r\nexport { TextSelection } from '../nodes';\r\nexport type {\r\n TextProps,\r\n RichTextProps,\r\n NumberProps,\r\n NumberFormat,\r\n DefaultTextStyleProps,\r\n TextSelectionProps,\r\n TextRange,\r\n SelectionOverrides,\r\n} from '../nodes';\r\nexport { textOps } from '../attributes';\r\nexport type {\r\n TextStyle,\r\n TextAlign,\r\n VerticalAlign,\r\n TextDecoration,\r\n TextCase,\r\n TextSpan,\r\n TextRun,\r\n FontStyle,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Nodes — Media\r\n// =============================================================\r\nexport { Video } from '../component/builtins/media';\r\nexport type {\r\n VideoProps,\r\n VideoSegment,\r\n} from '../nodes';\r\n\r\n// =============================================================\r\n// Nodes — Audio\r\n// =============================================================\r\n// `SoundNode` plays a clip and `AudioBus` groups what feeds it — the third\r\n// scene graph, beside `Node2D` and `Node3D`. Levels are `Param`, so a fade is a\r\n// curve (`fadeIn`/`fadeOut`/`ramp`/`hold`) rather than a `to()`: sound is\r\n// scheduled once, ahead of time, not written once per frame.\r\nexport type { NodeAudio } from '../nodes';\r\nexport { AudioBus, SoundNode } from '../component/builtins/audio';\r\nexport {\r\n Sound,\r\n AudioFilters,\r\n ramp,\r\n hold,\r\n fadeIn,\r\n fadeOut,\r\n isCurve,\r\n} from '../attributes';\r\nexport type {\r\n NodeAudioProps,\r\n AudioBusProps,\r\n SoundNodeProps,\r\n} from '../nodes';\r\nexport type {\r\n SoundProps,\r\n AudioRequest,\r\n // What a node's `declareAudio` is handed, and the clip it declares into it.\r\n AudioScope,\r\n AudioClip,\r\n AudioBusStop,\r\n AudioFilter,\r\n Param,\r\n Curve,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// 3D — the Canvas3D node and the Graphics3D API\r\n// =============================================================\r\n// There is one 3D node; everything inside it is described with `Graphics3D`.\r\n// `Geo`/`Mat`/`Tex` build the geometry/material/texture descriptors, and the lerps\r\n// are what make a Vector3/Euler/Quaternion prop interpolate rather than snap.\r\n// `Surface2D` is the 2D→3D bridge: a child of `Canvas3D` whose 2D content is\r\n// rasterized offscreen and bound to a material by `Tex.surface(name)`.\r\nexport { Canvas3D } from '../component/builtins/canvas3d';\r\nexport type { Node3D } from '../nodes';\r\n// The 3D scene graph: components, each placed by its transform.\r\nexport {\r\n Group3D,\r\n Mesh3D,\r\n Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D,\r\n Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D,\r\n Instances3D, Points3D, Line3D, Sprite3D, Model3D,\r\n AmbientLight3D, HemisphereLight3D, DirectionalLight3D,\r\n PointLight3D, SpotLight3D, AreaLight3D,\r\n Camera3D,\r\n Fog3D, Environment3D,\r\n} from '../component/builtins/three';\r\nexport {\r\n Graphics3D,\r\n Scene3D,\r\n RenderContext3D,\r\n Geo,\r\n Mat,\r\n Tex,\r\n lerpVector3,\r\n lerpEuler3,\r\n slerpQuaternion,\r\n quaternionFromEuler,\r\n normalizeQuaternion,\r\n resolveVector3,\r\n evaluateParametric,\r\n evaluateRoundedBox,\r\n resolveSurfaceSource,\r\n resolveFill3D,\r\n segmentsOf,\r\n resolveCameraPlacement,\r\n resolveShadows3D,\r\n shadowCasts,\r\n shadowReceives,\r\n} from '../render3d';\r\nexport type {\r\n Canvas3DProps,\r\n // A 3D parent's own coordinates for its children's position: see `Node3D._spaceOf`.\r\n ChildSpace3D,\r\n Node3DProps, Group3DProps, Mesh3DProps, Material3DProps,\r\n Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps,\r\n Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps,\r\n Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps,\r\n Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps,\r\n AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps,\r\n PointLight3DProps, SpotLight3DProps, AreaLight3DProps,\r\n Camera3DProps,\r\n Fog3DProps, Environment3DProps,\r\n} from '../nodes';\r\nexport type {\r\n Node3DRenderState,\r\n Graphics3DOp,\r\n Scene3DOp,\r\n Vector3,\r\n Vector3Input,\r\n Euler3,\r\n EulerOrder,\r\n Quaternion,\r\n Transform3D,\r\n Shadow3D,\r\n ShadowOptions3D,\r\n Faces3D,\r\n Blend3D,\r\n Shading3D,\r\n Segments3D,\r\n Sweep3D,\r\n Bevel3D,\r\n Fill3D,\r\n Geometry3D,\r\n BufferGeometry3D,\r\n Material3D,\r\n MaterialCommon3D,\r\n MeshShorthand3D,\r\n // What `Mesh3D.materialShorthand()` returns: a mesh node of your own overrides it.\r\n MaterialShorthand3D,\r\n Uniform3D,\r\n Texture3D,\r\n TextureOptions3D,\r\n SurfaceTexture3D,\r\n SurfaceSource3D,\r\n ResolvedSurfaceSource,\r\n LightData3D,\r\n CameraData3D,\r\n FogData3D,\r\n EnvironmentData3D,\r\n Shadows3D,\r\n ShadowSettings3D,\r\n ToneMapping3D,\r\n ToneSettings3D,\r\n PostEffect3D,\r\n LineMode3D,\r\n LineStroke3D,\r\n ModelAnimation3D,\r\n} from '../render3d';\r\n\r\n// =============================================================\r\n// Rendering — Graphics2D builder, RenderContext2D & asset declaration\r\n// =============================================================\r\nexport {\r\n Graphics2D,\r\n PathBuilder,\r\n Clip,\r\n toPathString,\r\n} from '../render';\r\nexport type {\r\n RenderContext2D,\r\n RenderPass2D,\r\n MeasureContext2D,\r\n TextBlockSource,\r\n // One recorded entry of `Graphics2D.ops()`.\r\n GraphicsOp,\r\n PathData,\r\n PathCommand,\r\n PathBounds,\r\n EllipseArc,\r\n} from '../render';\r\n// What a node's `declareAssets` declares into, and the async load a `loader` takes.\r\nexport type { AssetScope, LoaderFn } from '../assets';\r\n\r\n// =============================================================\r\n// Fill & Color\r\n// =============================================================\r\nexport {\r\n Fills,\r\n parseColor,\r\n resolveFill,\r\n fillOps,\r\n colorOps,\r\n} from '../attributes';\r\nexport type {\r\n Fill,\r\n FillChain,\r\n FillOptions,\r\n VideoFillOptions,\r\n // Placement of an image/video source inside the shape it paints:\r\n // `crop` -> `fit` -> `zoom` -> `anchor`, plus the raw-matrix escape hatch.\r\n MediaPlacementOptions,\r\n ImageFit,\r\n ImageCrop,\r\n ImageMatrix,\r\n FillResolved,\r\n // A custom SkSL shader as a fill. `coords` picks what `fragCoord` means;\r\n // uniforms are keyed by their declared name, and a `ShaderTexture` binds an\r\n // image to a `uniform shader` declaration.\r\n ShaderFillProp,\r\n ShaderFillResolved,\r\n ShaderFillCoords,\r\n ShaderTexture,\r\n SkSLUniformRecord,\r\n FractalNoiseBasis,\r\n // The colour type every fill, stroke, shadow and 3D material accepts —\r\n // a CSS string (incl. `oklch()`, theme tokens, `\"white/10\"`) or a\r\n // pre-normalized RGBA tuple.\r\n Color,\r\n NormalizedColor,\r\n BlendMode,\r\n FillSpace,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Shape Attributes — Stroke, Shadow, Corners\r\n// =============================================================\r\nexport {\r\n resolveStroke,\r\n strokeOps,\r\n resolveShadow,\r\n shadowOps,\r\n resolveCorners,\r\n cornerRadiusOps,\r\n cornerStyleOps,\r\n // Parsing, measuring, sampling, trimming and morphing a path, and the\r\n // anchor model (`VectorPath`) a pen tool edits.\r\n pathOps,\r\n} from '../attributes';\r\nexport type {\r\n PathSampler,\r\n PathAnchor,\r\n PathSubpath,\r\n VectorPath,\r\n Stroke,\r\n StrokeProp,\r\n StrokeAlign,\r\n StrokeCap,\r\n StrokeMarker,\r\n StrokeEnd,\r\n StrokeJoin,\r\n StrokeResolved,\r\n Shadow,\r\n ShadowProp,\r\n ShadowResolved,\r\n Corners,\r\n CornerStyle,\r\n CornerStyleResolved,\r\n CornerRadiusResolved,\r\n // What a rect's `cornerRadius` and `cornerStyle` take, before they resolve.\r\n RectCornerRadius,\r\n RectCornerStyle,\r\n NodeEffect,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Layout Attributes — Vector2, Size, Insets, Alignment, Flow\r\n//\r\n// `flowOps` is the layout a container runs on its children, as plain data in\r\n// and boxes out — so a custom node can lay out what it draws the same way.\r\n// =============================================================\r\nexport {\r\n lerpVector2,\r\n sizeInputOps,\r\n insetsOps,\r\n alignmentOps,\r\n} from '../attributes';\r\n// `flowOps` itself is the layout package's, not the attribute layer's —\r\n// `../attributes`'s own `./layout` only carries Vector2/Size2D/Insets/Alignment.\r\nexport { flowOps } from '../layout';\r\nexport type {\r\n Vector2,\r\n Size2D,\r\n Insets,\r\n // What a `padding`-style prop accepts, before `insetsOps` resolves it.\r\n InsetsProps,\r\n InsetsResolved,\r\n AlignmentKey,\r\n Alignment,\r\n} from '../attributes';\r\nexport type {\r\n FlowMode,\r\n GapSize,\r\n FlowResolved,\r\n FlowProps,\r\n FlowSettings,\r\n LayoutItem,\r\n FlowSpace,\r\n FlowMeasure,\r\n FlowLine,\r\n // What an overriding `measure(constraints, scope)` is handed.\r\n SizeConstraints,\r\n} from '../layout';\r\n\r\n// =============================================================\r\n// 2.5D space — the stage's `space3D` camera\r\n//\r\n// `space3dOps` is the camera's own projection, for a host drawing over the\r\n// picture (a gizmo aiming the camera) rather than keeping a copy of it.\r\n// `SpaceCamera` is what a node returns from `_spaceCamera()` to open a 2.5D\r\n// space of its own.\r\n// =============================================================\r\nexport { space3dOps } from '../attributes/layout/space3d';\r\nexport type { LookAt, SpaceCamera, SpaceCameraProps, SpacePoint } from '../attributes/layout/space3d';\r\n\r\n// =============================================================\r\n// Effects & Media Adjustments\r\n// =============================================================\r\nexport {\r\n Effects,\r\n EffectChain,\r\n Adjustments,\r\n VideoAdjustments,\r\n AdjustmentChain,\r\n VideoAdjustmentChain,\r\n /** @deprecated Renamed to {@link Adjustments}. Removed in the next major. */\r\n ImageFilters,\r\n /** @deprecated Renamed to {@link VideoAdjustments}. Removed in the next major. */\r\n VideoFilters,\r\n} from '../attributes';\r\n\r\nexport type {\r\n /** The `effects` prop type — what a node actually accepts. */\r\n Effect,\r\n EffectMode,\r\n EffectAxis,\r\n EffectSurface,\r\n EffectOptions,\r\n /** What an image fill's `preset.adjustments` accepts — one, a list, or a chain. */\r\n ImageAdjustment,\r\n VideoAdjustment,\r\n /** The node effects that also work as a media adjustment — see {@link Adjustments}. */\r\n EffectAdjustment,\r\n MediaAdjustment,\r\n VideoOnlyAdjustment,\r\n} from '../attributes';\r\n\r\n/**\r\n * Per-builder options. Every effect builder takes exactly one argument: one of\r\n * these, or the dominant scalar it wraps.\r\n */\r\nexport type {\r\n BlurOptions,\r\n DirectionalBlurOptions,\r\n GrayscaleOptions,\r\n PixelateOptions,\r\n BulgeOptions,\r\n MagnifyOptions,\r\n BloomOptions,\r\n VintageOptions,\r\n ChromaticAberrationOptions,\r\n InvertOptions,\r\n ScatterOptions,\r\n PosterizeOptions,\r\n MotionBlurOptions,\r\n ShaderEffectOptions,\r\n OutlineOptions,\r\n VignetteOptions,\r\n GrainOptions,\r\n SharpenOptions,\r\n EdgesOptions,\r\n ThresholdOptions,\r\n RadialBlurOptions,\r\n HalftoneOptions,\r\n DitherOptions,\r\n DuotoneOptions,\r\n CurvesOptions,\r\n ColorAdjustmentOptions,\r\n RgbShiftOptions,\r\n ScanlinesOptions,\r\n BlockDisplaceOptions,\r\n BitCrushOptions,\r\n AsciiOptions,\r\n StreakOptions,\r\n GlowOptions,\r\n OilPaintOptions,\r\n WaveOptions,\r\n TwirlOptions,\r\n ProgressiveBlurOptions,\r\n KaleidoscopeOptions,\r\n GlassOptions,\r\n LutOptions,\r\n} from '../attributes';\r\n\r\n/**\r\n * Per-builder options for the filters that exist only as filters. Everything\r\n * else on {@link Adjustments} takes the matching effect options above, minus\r\n * `mode` — a filter is on the fill's own pixels, so there is no backdrop to\r\n * point it at.\r\n */\r\nexport type {\r\n BlurFilterOptions,\r\n GrayscaleFilterOptions,\r\n AlphaFilterOptions,\r\n ExposureFilterOptions,\r\n ColorMatrixFilterOptions,\r\n CurvesFilterOptions,\r\n ColorAdjustmentFilterOptions,\r\n PosterizeTimeFilterOptions,\r\n VideoEchoFilterOptions,\r\n} from '../attributes';\r\n\r\n/** Effect data types, for naming an effect value or building one by hand. */\r\nexport type {\r\n BlurEffect,\r\n DirectionalBlurEffect,\r\n GrayscaleEffect,\r\n PixelateEffect,\r\n BulgeEffect,\r\n MagnifyEffect,\r\n BloomEffect,\r\n VintageEffect,\r\n ChromaticAberrationEffect,\r\n InvertEffect,\r\n InvertChannel,\r\n ScatterEffect,\r\n PosterizeEffect,\r\n MotionBlurEffect,\r\n MotionBlurAlignment,\r\n ShaderEffect,\r\n SkSLUniform,\r\n SkSLUniformValue,\r\n OutlineEffect,\r\n OutlinePosition,\r\n VignetteEffect,\r\n GrainEffect,\r\n SharpenEffect,\r\n EdgesEffect,\r\n EdgeKernel,\r\n ThresholdEffect,\r\n RadialBlurEffect,\r\n RadialBlurStyle,\r\n HalftoneEffect,\r\n HalftoneShape,\r\n HalftoneSeparation,\r\n DitherEffect,\r\n DitherMatrix,\r\n DuotoneEffect,\r\n CurvesEffect,\r\n ColorAdjustmentEffect,\r\n RgbShiftEffect,\r\n ScanlinesEffect,\r\n BlockDisplaceEffect,\r\n BitCrushEffect,\r\n BitCrushPalette,\r\n AsciiEffect,\r\n AsciiCharset,\r\n StreakEffect,\r\n GlowEffect,\r\n GlowChannel,\r\n GlowLoopStyle,\r\n GlowOriginal,\r\n GlowTint,\r\n OilPaintEffect,\r\n WaveEffect,\r\n WaveShape,\r\n TwirlEffect,\r\n ProgressiveBlurEffect,\r\n ProgressiveBlurShape,\r\n KaleidoscopeEffect,\r\n GlassEffect,\r\n LutEffect,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Animation — interpolation\r\n//\r\n// There are no `sequence`/`parallel`/`wait` primitives: a command carries its\r\n// own placement, so sequencing is `at + duration`, running two together is a\r\n// shared `at`, and a wait is a gap between them.\r\n// =============================================================\r\nexport {\r\n lerpNumber,\r\n} from '../tween';\r\nexport type {\r\n AnimationTarget,\r\n Steppable,\r\n TweenStepper,\r\n LerpFunction,\r\n TweenOptions,\r\n} from '../tween';\r\n\r\n// An animation as a **value** rather than as control flow: a declared duration\r\n// plus `at(t)`, so a host can ask what it looks like at a time instead of\r\n// running it to one. That is what lets a host place one on a timeline, and what\r\n// makes a scene scrub in constant time rather than replay. A component's\r\n// `commands` return one, and the command registry — and a host listing what a\r\n// node can do — reads them.\r\n//\r\n// One command shape, always: `node.to(a, 1)` is a single command, not a builder\r\n// you can append to. Two of them are sequenced by where they sit on the\r\n// timeline, which is what makes a scene's shape editable rather than implied by\r\n// the order of calls in a function body.\r\nexport {\r\n getCommandMeta,\r\n isCommand,\r\n makeCommand,\r\n commandSequence,\r\n commandParallel,\r\n loopCommand,\r\n} from '../tween';\r\nexport type { Command, CommandArgs, CommandMeta, CommandOptions } from '../tween';\r\n\r\n// =============================================================\r\n// Animation — Easing\r\n// =============================================================\r\nexport {\r\n linear,\r\n easeIn,\r\n easeOut,\r\n easeInOut\r\n} from '../tween';\r\nexport type {\r\n EasingFunction,\r\n EaseParams,\r\n StandardEase\r\n} from '../tween';\r\n\r\n// =============================================================\r\n// Utilities\r\n// =============================================================\r\nexport {\r\n createRef,\r\n clamp,\r\n generateList,\r\n createContext,\r\n ContextMap,\r\n Random,\r\n SeedGenerator,\r\n parseCSV,\r\n parseData,\r\n} from '../util';\r\nexport type {\r\n Reference,\r\n RefTarget,\r\n Context,\r\n DataRecord,\r\n ParseCSVOptions,\r\n} from '../util';\r\n\r\n// =============================================================\r\n// Editor selection — node boxes, hit testing, transient overrides\r\n// =============================================================\r\n// The geometry an editor needs to lay a selection gizmo over the canvas: where a\r\n// node's pixels landed, and which node is under a point. Both are pure functions\r\n// over a scene's node tree, so a host can use them directly; a player embedding\r\n// reaches the same thing through `useMotionPlayer` (`getNodeBox`, `pickNode`,\r\n// `setNodeOverride`). Points and boxes are in viewport space — origin at the\r\n// viewport centre, y-up.\r\n//\r\n// These genuinely live in `../runtime` (node hit-testing and the transient\r\n// override store are runtime concerns) — deep-imported from their concrete\r\n// files, never the runtime barrel itself.\r\nexport { nodeTypeIsA, parentIssue, placementIssues, siblingIssue } from '../document/placement';\r\nexport type { PlacementIssue, PlacementOptions } from '../document/placement';\r\n\r\nexport {\r\n nodeBox,\r\n pickNode,\r\n collectBoxes,\r\n parentPlanePointAt,\r\n childPlanePointAt,\r\n reparentPlacementAt,\r\n nodeHandlesAt,\r\n handleValueAt,\r\n} from '../runtime/node-picking';\r\nexport type {\r\n NodeBox,\r\n ReparentPlacement,\r\n} from '../runtime/node-picking';\r\nexport type {\r\n NodeOverride,\r\n} from '../runtime/playback-controller';\r\nexport type {\r\n TreeState,\r\n} from '../project';\r\n/** @deprecated Kept until 1.0; see `../renamed-scene-names`. */\r\nexport type { SceneDocument, SceneEffect } from '../renamed-scene-names';\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,gFAAgF;AAChF,wEAAwE;AACxE,gFAAgF;AAChF,+EAA+E;AAC/E,6EAA6E;AAC7E,oCAAoC;AAEpC,gEAAgE;AAChE,UAAU;AACV,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,iFAAiF;AACjF,iFAAiF;AACjF,sDAAsD;AACtD,gEAAgE;AAChE,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAY,GACf,MAAM,aAAa,CAAC;AAKrB,iFAAiF;AACjF,4EAA4E;AAC5E,0EAA0E;AAC1E,0DAA0D;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AA2BnD,gEAAgE;AAChE,oBAAoB;AACpB,EAAE;AACF,2EAA2E;AAC3E,0EAA0E;AAC1E,+EAA+E;AAC/E,kCAAkC;AAClC,gEAAgE;AAChE,OAAO,EACH,gBAAgB,EAChB,mBAAmB;AACnB,kEAAkE;AAClE,oEAAoE;AACpE,+DAA+D;AAC/D,QAAQ,GACX,MAAM,aAAa,CAAC;AACrB,gFAAgF;AAChF,mCAAmC;AACnC,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,GACxB,MAAM,eAAe,CAAC;AAsCvB,gFAAgF;AAChF,kFAAkF;AAClF,8DAA8D;AAC9D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAQ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EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GAChB,MAAM,yBAAyB,CAAC","sourcesContent":["// The curated public surface published as `@motionscript/sdk` (packages/sdk) and,\r\n// via this file, as `@motionscript/core/sdk`. A deliberate SUBSET of core's own\r\n// root barrel (`../index.ts`): no `Engine`/`Session`/platform seams, no\r\n// `@internal`-tagged descriptor plumbing. Every export here is named, traced to\r\n// its real declaring sub-barrel — never a wildcard — so nothing internal leaks\r\n// by accident. Keep this in lockstep with `packages/sdk/src/index.ts`, which\r\n// mirrors this exact named surface.\r\n\r\n// =============================================================\r\n// Project\r\n//\r\n// A clip is **data**: a still is nodes and props, a composition is the same\r\n// nodes placed in time plus the commands that animate them, and an audio\r\n// document is that one tree over. A **project** is one list of tracks over those\r\n// clips, and it is what the runtime plays — a lone still or composition is sugar\r\n// for a project with one track (`asProjectDocument`).\r\n// =============================================================\r\nexport {\r\n isProjectDocument,\r\n asProjectDocument,\r\n documentDuration,\r\n commandSpan,\r\n hasTimeline,\r\n nodeSpan,\r\n effectiveSpan,\r\n untimed,\r\n ROOT_NODE_ID,\r\n} from '../document';\r\nexport type {\r\n ProjectDocument,\r\n Track,\r\n} from '../document';\r\n// `resolveProjectDocument`/`placeTracks` genuinely live in `../runtime` (session\r\n// resolution and track placement are runtime concerns) — deep-imported from\r\n// their concrete files rather than the runtime barrel, which also carries\r\n// `Engine`/`Session` and is never a source for this file.\r\nexport { resolveProjectDocument } from '../runtime/session';\r\nexport { placeTracks } from '../runtime/placement';\r\nexport type { TrackSpan } from '../runtime/placement';\r\nexport type {\r\n Theme,\r\n ColorTokens,\r\n Typography,\r\n TypographyPreset,\r\n} from '../project';\r\nexport type { NodeTime, AttachScope } from '../components/trees';\r\nexport type { BoxBounds, Extents } from '../layout';\r\n\r\n// =============================================================\r\n// Assets\r\n//\r\n// The manifest a host builds a scene against — what images, video, audio and\r\n// fonts it references, resolved before render. An `Engine`'s manifest and\r\n// `@motionscript/headless`'s asset options both take this shape.\r\n// =============================================================\r\nexport type {\r\n ImageMeta,\r\n VideoMeta,\r\n AudioMeta,\r\n FontMeta,\r\n AssetMeta,\r\n AssetManifest,\r\n} from '../assets';\r\n\r\n// =============================================================\r\n// The clip document\r\n//\r\n// The data half of the model. Node types are code — a component registered\r\n// under its key, which is also where a custom node joins the system — and\r\n// everything else is plain JSON: which nodes exist, what props they carry, and\r\n// what happens to them over time.\r\n// =============================================================\r\nexport {\r\n validateDocument,\r\n assertValidDocument,\r\n // The code half of the model, as one object an engine owns. Not a\r\n // singleton: what a document can name is a property of the registry\r\n // compiling it, so two engines in one process disagree freely.\r\n Registry,\r\n} from '../document';\r\n// The shader-pack vocabulary lives beside the rest of the fill/shader attribute\r\n// machinery, not in `../document`.\r\nexport {\r\n normalizeShaderPack,\r\n resolveShaderProperties,\r\n isKnownShaderProperty,\r\n} from '../attributes';\r\nexport type {\r\n RegistryOptions,\r\n NodeTypeMap,\r\n ShaderPackMap,\r\n NodeTypeRecord,\r\n NodeCommandEntry,\r\n VisualDocument,\r\n ClipDocument,\r\n StillDocument,\r\n CompositionDocument,\r\n AudioDocument,\r\n NodeSpec,\r\n TimedNodeSpec,\r\n NodeSpan,\r\n CommandSpec,\r\n EaseSpec,\r\n LoopSpec,\r\n LoopDirection,\r\n VariableSpec,\r\n ValidationIssue,\r\n ValidationResult,\r\n NodeConstructor,\r\n CommandFactory,\r\n CommandTypeEntry,\r\n VariableCommandFactory,\r\n VariableLerp,\r\n VariableTarget,\r\n} from '../document';\r\nexport type {\r\n Shader,\r\n FillShader,\r\n EffectShader,\r\n ShaderProperty,\r\n KnownShaderProperty,\r\n ShaderPropertyValues,\r\n} from '../attributes';\r\n\r\n// Expressions: the string form of a prop that follows a variable — `\"=4[g]+3\"`.\r\n// `expressionOps` carries recognition, parsing and compiling, so a host can lint,\r\n// complete or rewrite one without reimplementing the grammar.\r\nexport { expressionOps, ExpressionError } from '../document';\r\nexport type {\r\n ParsedExpression,\r\n ExpressionNode,\r\n ExpressionDialect,\r\n VariableResolver,\r\n} from '../document';\r\n\r\n// =============================================================\r\n// Components — the factories a node type is written with\r\n//\r\n// A component is one object literal: `key`, `state`, `commands`, `children`\r\n// and its tree's own fields (`measure`/`layout`/`render` for 2D). Behaviour is\r\n// spread in from modules (`...Paint.state`, `...Paint.commands`) and their\r\n// helpers called (`Paint.draw`, `Flow.measure`). See\r\n// `experiments/component-syntax/README.md`.\r\n// =============================================================\r\nexport { component2d } from '../components/factory/component2d';\r\nexport { componentAudio } from '../components/factory/component-audio';\r\nexport { component3d } from '../components/factory/component3d';\r\nexport { commandsFor } from '../components/factory/commands-for';\r\nexport { Types } from '../components/factory/types';\r\nexport { provides } from '../components/factory/api';\r\nexport * as Paint from '../components/modules/paint';\r\nexport * as Flow from '../components/modules/flow';\r\nexport * as Shapes from '../components/modules/shapes';\r\nexport * as Aim from '../components/modules/aim';\r\n// The face text is set in: its entries inherit from the nearest provider.\r\nexport * as Typeface from '../components/modules/text-style';\r\nexport * as TextLayout from '../components/modules/text-layout';\r\n// A mesh's surface: the material entries, and the mesh drawn with them.\r\nexport * as Material from '../components/modules/material';\r\n// A viewport onto 3D children: the default camera and lights, the grid, the render settings.\r\nexport * as View3D from '../components/modules/view3d';\r\nexport type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../components/factory/types';\r\nexport type {\r\n Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader,\r\n Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, SoundOptions, StateSpec,\r\n Timeline, Type, Values, Writes,\r\n // Named in every component's type, so a package exporting one can declare it.\r\n Merge, BuiltNode,\r\n // What `render` is handed; `RenderContext2D` is the renderer's.\r\n RenderContext2D as RenderContext,\r\n CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame,\r\n // What a 3D `render` is handed; `RenderContext3D` is the renderer's.\r\n RenderContext3D as SceneContext,\r\n} from '../components/factory/api';\r\n\r\n// =============================================================\r\n// Nodes — what code holding a built node names it as\r\n//\r\n// `Node` is dimension-agnostic (tree, props, tweens, context, clock); `Node2D`\r\n// adds layout and 2D drawing; `Node3D` and `NodeAudio` are the other trees.\r\n// Types only: a node type is a component, never a subclass.\r\n// =============================================================\r\nexport type { Node, Node2D } from '../components/trees';\r\nexport {\r\n // A clip's root container: layout frame, background paint and camera in\r\n // one node. Every track builds into one sized to the viewport.\r\n Canvas2D,\r\n // Reaching another node by the id a `nodeRef` prop holds, and reading where it sits.\r\n findNode2D,\r\n frameIn,\r\n} from '../components/trees';\r\nexport { Provider, ThemeProvider } from '../components/builtins/providers/providers';\r\nexport type {\r\n NodeProps,\r\n Node2DProps,\r\n // A slot a layout puts each child in beyond its box — see `Node2D._placementOf`.\r\n ChildPlacement,\r\n // A parent's own coordinates for its children's `x`/`y` — see `Node2D._planeOf`.\r\n ChildPlane,\r\n // A point an editor can drag to set a `Vector2` prop — see `Node2D._handles`.\r\n NodeHandle,\r\n Canvas2DProps,\r\n NodeConfig,\r\n NodeChildren,\r\n NodeDimension,\r\n} from '../components/trees';\r\nexport type { ProviderProps, ThemeProviderProps } from '../components/builtins/providers/providers';\r\n\r\n// =============================================================\r\n// Nodes — Geometry\r\n// =============================================================\r\nexport {\r\n Rect,\r\n Ellipse,\r\n Path,\r\n // The document's `\"path\"`: its `data` is in the unit space of its own box,\r\n // where `Path` draws its `d` at face value.\r\n PathShape,\r\n Polygon,\r\n Polygram,\r\n Triangle,\r\n RightTriangle,\r\n Pentagon,\r\n Hexagon,\r\n Octagon,\r\n Star,\r\n} from '../components/builtins/geometry/geometry';\r\nexport { BooleanGroup, MaskGroup } from '../components/builtins/geometry/composite';\r\nexport type {\r\n PaintProps,\r\n ShapeProps,\r\n RectProps,\r\n FlexSize,\r\n EllipseProps,\r\n PathProps,\r\n PathShapeProps,\r\n PolygonProps,\r\n PolygramProps,\r\n} from '../components/builtins/geometry/geometry';\r\nexport type { BooleanGroupProps, MaskGroupProps } from '../components/builtins/geometry/composite';\r\n// The operation/mode vocabularies behind `Boolean`/`Mask` are attribute types,\r\n// not node-prop types.\r\nexport type {\r\n BooleanOperation,\r\n MaskMode,\r\n MaskOptions,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Nodes — Layout\r\n// =============================================================\r\nexport {\r\n Camera,\r\n // The stage's 2.5D camera for one subtree: its children orbited in depth.\r\n OrbitCamera,\r\n RotatedBox,\r\n} from '../components/builtins/layout/layout';\r\nexport type {\r\n CameraProps,\r\n OrbitCameraProps,\r\n} from '../components/builtins/layout/layout';\r\n\r\n// =============================================================\r\n// Nodes — Text\r\n// =============================================================\r\nexport { Text, RichText, NumberNode, DefaultTextStyle } from '../components/builtins/text/text';\r\nexport type {\r\n TextProps,\r\n RichTextProps,\r\n NumberProps,\r\n NumberFormat,\r\n DefaultTextStyleProps,\r\n} from '../components/builtins/text/text';\r\nexport { textOps } from '../attributes';\r\nexport type {\r\n TextStyle,\r\n TextAlign,\r\n VerticalAlign,\r\n TextDecoration,\r\n TextCase,\r\n TextSpan,\r\n TextRun,\r\n FontStyle,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Nodes — Media\r\n// =============================================================\r\nexport { Video } from '../components/builtins/media/media';\r\nexport type {\r\n VideoProps,\r\n VideoSegment,\r\n} from '../components/builtins/media/media';\r\n\r\n// =============================================================\r\n// Nodes — Audio\r\n// =============================================================\r\n// `SoundNode` plays a clip and `AudioBus` groups what feeds it — the third\r\n// scene graph, beside `Node2D` and `Node3D`. Levels are `Param`, so a fade is a\r\n// curve (`fadeIn`/`fadeOut`/`ramp`/`hold`) rather than a `to()`: sound is\r\n// scheduled once, ahead of time, not written once per frame.\r\nexport type { NodeAudio } from '../components/trees';\r\nexport { AudioBus, SoundNode } from '../components/builtins/audio/audio';\r\nexport {\r\n Sound,\r\n AudioFilters,\r\n ramp,\r\n hold,\r\n fadeIn,\r\n fadeOut,\r\n isCurve,\r\n} from '../attributes';\r\nexport type {\r\n NodeAudioProps,\r\n} from '../components/trees';\r\nexport type { AudioBusProps, SoundNodeProps } from '../components/builtins/audio/audio';\r\nexport type {\r\n SoundProps,\r\n AudioRequest,\r\n AudioBusStop,\r\n AudioFilter,\r\n Param,\r\n Curve,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// 3D — the Canvas3D node and the Graphics3D API\r\n// =============================================================\r\n// There is one 3D node; everything inside it is described with `Graphics3D`.\r\n// `Geo`/`Mat`/`Tex` build the geometry/material/texture descriptors, and the lerps\r\n// are what make a Vector3/Euler/Quaternion prop interpolate rather than snap.\r\n// `Surface2D` is the 2D→3D bridge: a child of `Canvas3D` whose 2D content is\r\n// rasterized offscreen and bound to a material by `Tex.surface(name)`.\r\nexport { Canvas3D } from '../components/builtins/three/canvas3d';\r\nexport type { Node3D } from '../components/trees';\r\n// The 3D scene graph: components, each placed by its transform.\r\nexport {\r\n Group3D,\r\n Mesh3D,\r\n Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D,\r\n Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D,\r\n Instances3D, Points3D, Line3D, Sprite3D, Model3D,\r\n AmbientLight3D, HemisphereLight3D, DirectionalLight3D,\r\n PointLight3D, SpotLight3D, AreaLight3D,\r\n Camera3D,\r\n Fog3D, Environment3D,\r\n} from '../components/builtins/three/three';\r\nexport {\r\n Graphics3D,\r\n Scene3D,\r\n RenderContext3D,\r\n Geo,\r\n Mat,\r\n Tex,\r\n lerpVector3,\r\n lerpEuler3,\r\n slerpQuaternion,\r\n quaternionFromEuler,\r\n normalizeQuaternion,\r\n resolveVector3,\r\n evaluateParametric,\r\n evaluateRoundedBox,\r\n resolveSurfaceSource,\r\n resolveFill3D,\r\n segmentsOf,\r\n resolveCameraPlacement,\r\n resolveShadows3D,\r\n shadowCasts,\r\n shadowReceives,\r\n} from '../render3d';\r\nexport type { Canvas3DProps } from '../components/builtins/three/canvas3d';\r\nexport type {\r\n // A 3D parent's own coordinates for its children's position: see `Node3D._spaceOf`.\r\n ChildSpace3D,\r\n Node3DProps,\r\n} from '../components/trees';\r\nexport type {\r\n Group3DProps, Mesh3DProps, Material3DProps,\r\n Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps,\r\n Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps,\r\n Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps,\r\n Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps,\r\n AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps,\r\n PointLight3DProps, SpotLight3DProps, AreaLight3DProps,\r\n Camera3DProps,\r\n Fog3DProps, Environment3DProps,\r\n} from '../components/builtins/three/three';\r\nexport type {\r\n Node3DRenderState,\r\n Graphics3DOp,\r\n Scene3DOp,\r\n Vector3,\r\n Vector3Input,\r\n Euler3,\r\n EulerOrder,\r\n Quaternion,\r\n Transform3D,\r\n Shadow3D,\r\n ShadowOptions3D,\r\n Faces3D,\r\n Blend3D,\r\n Shading3D,\r\n Segments3D,\r\n Sweep3D,\r\n Bevel3D,\r\n Fill3D,\r\n Geometry3D,\r\n BufferGeometry3D,\r\n Material3D,\r\n MaterialCommon3D,\r\n MeshShorthand3D,\r\n // What `Mesh3D.materialShorthand()` returns: a mesh node of your own overrides it.\r\n MaterialShorthand3D,\r\n Uniform3D,\r\n Texture3D,\r\n TextureOptions3D,\r\n SurfaceTexture3D,\r\n SurfaceSource3D,\r\n ResolvedSurfaceSource,\r\n LightData3D,\r\n CameraData3D,\r\n FogData3D,\r\n EnvironmentData3D,\r\n Shadows3D,\r\n ShadowSettings3D,\r\n ToneMapping3D,\r\n ToneSettings3D,\r\n PostEffect3D,\r\n LineMode3D,\r\n LineStroke3D,\r\n ModelAnimation3D,\r\n} from '../render3d';\r\n\r\n// =============================================================\r\n// Rendering — Graphics2D builder, RenderContext2D & asset declaration\r\n// =============================================================\r\nexport {\r\n Graphics2D,\r\n PathBuilder,\r\n Clip,\r\n toPathString,\r\n} from '../render';\r\nexport type {\r\n RenderContext2D,\r\n RenderPass2D,\r\n MeasureContext2D,\r\n TextBlockSource,\r\n // One recorded entry of `Graphics2D.ops()`.\r\n GraphicsOp,\r\n PathData,\r\n PathCommand,\r\n PathBounds,\r\n EllipseArc,\r\n} from '../render';\r\n// What a node's `declareAssets` declares into, and the async load a `loader` takes.\r\nexport type { AssetScope, LoaderFn } from '../assets';\r\n\r\n// =============================================================\r\n// Fill & Color\r\n// =============================================================\r\nexport {\r\n Fills,\r\n parseColor,\r\n resolveFill,\r\n fillOps,\r\n colorOps,\r\n} from '../attributes';\r\nexport type {\r\n Fill,\r\n FillChain,\r\n FillOptions,\r\n VideoFillOptions,\r\n // Placement of an image/video source inside the shape it paints:\r\n // `crop` -> `fit` -> `zoom` -> `anchor`, plus the raw-matrix escape hatch.\r\n MediaPlacementOptions,\r\n ImageFit,\r\n ImageCrop,\r\n ImageMatrix,\r\n FillResolved,\r\n // A custom SkSL shader as a fill. `coords` picks what `fragCoord` means;\r\n // uniforms are keyed by their declared name, and a `ShaderTexture` binds an\r\n // image to a `uniform shader` declaration.\r\n ShaderFillProp,\r\n ShaderFillResolved,\r\n ShaderFillCoords,\r\n ShaderTexture,\r\n SkSLUniformRecord,\r\n FractalNoiseBasis,\r\n // The colour type every fill, stroke, shadow and 3D material accepts —\r\n // a CSS string (incl. `oklch()`, theme tokens, `\"white/10\"`) or a\r\n // pre-normalized RGBA tuple.\r\n Color,\r\n NormalizedColor,\r\n BlendMode,\r\n FillSpace,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Shape Attributes — Stroke, Shadow, Corners\r\n// =============================================================\r\nexport {\r\n resolveStroke,\r\n strokeOps,\r\n resolveShadow,\r\n shadowOps,\r\n resolveCorners,\r\n cornerRadiusOps,\r\n cornerStyleOps,\r\n // Parsing, measuring, sampling, trimming and morphing a path, and the\r\n // anchor model (`VectorPath`) a pen tool edits.\r\n pathOps,\r\n} from '../attributes';\r\nexport type {\r\n PathSampler,\r\n PathAnchor,\r\n PathSubpath,\r\n VectorPath,\r\n Stroke,\r\n StrokeProp,\r\n StrokeAlign,\r\n StrokeCap,\r\n StrokeMarker,\r\n StrokeEnd,\r\n StrokeJoin,\r\n StrokeResolved,\r\n Shadow,\r\n ShadowProp,\r\n ShadowResolved,\r\n Corners,\r\n CornerStyle,\r\n CornerStyleResolved,\r\n CornerRadiusResolved,\r\n // What a rect's `cornerRadius` and `cornerStyle` take, before they resolve.\r\n RectCornerRadius,\r\n RectCornerStyle,\r\n NodeEffect,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Layout Attributes — Vector2, Size, Insets, Alignment, Flow\r\n//\r\n// `flowOps` is the layout a container runs on its children, as plain data in\r\n// and boxes out — so a custom node can lay out what it draws the same way.\r\n// =============================================================\r\nexport {\r\n lerpVector2,\r\n sizeInputOps,\r\n insetsOps,\r\n alignmentOps,\r\n} from '../attributes';\r\n// `flowOps` itself is the layout package's, not the attribute layer's —\r\n// `../attributes`'s own `./layout` only carries Vector2/Size2D/Insets/Alignment.\r\nexport { flowOps } from '../layout';\r\nexport type {\r\n Vector2,\r\n Size2D,\r\n Insets,\r\n // What a `padding`-style prop accepts, before `insetsOps` resolves it.\r\n InsetsProps,\r\n InsetsResolved,\r\n AlignmentKey,\r\n Alignment,\r\n} from '../attributes';\r\nexport type {\r\n FlowMode,\r\n GapSize,\r\n FlowResolved,\r\n FlowProps,\r\n FlowSettings,\r\n LayoutItem,\r\n FlowSpace,\r\n FlowMeasure,\r\n FlowLine,\r\n // What an overriding `measure(constraints, scope)` is handed.\r\n SizeConstraints,\r\n} from '../layout';\r\n\r\n// =============================================================\r\n// 2.5D space — the stage's `space3D` camera\r\n//\r\n// `space3dOps` is the camera's own projection, for a host drawing over the\r\n// picture (a gizmo aiming the camera) rather than keeping a copy of it.\r\n// `SpaceCamera` is what a node returns from `_spaceCamera()` to open a 2.5D\r\n// space of its own.\r\n// =============================================================\r\nexport { space3dOps } from '../attributes/layout/space3d';\r\nexport type { LookAt, SpaceCamera, SpaceCameraProps, SpacePoint } from '../attributes/layout/space3d';\r\n\r\n// =============================================================\r\n// Effects & Media Adjustments\r\n// =============================================================\r\nexport {\r\n Effects,\r\n EffectChain,\r\n Adjustments,\r\n VideoAdjustments,\r\n AdjustmentChain,\r\n VideoAdjustmentChain,\r\n /** @deprecated Renamed to {@link Adjustments}. Removed in the next major. */\r\n ImageFilters,\r\n /** @deprecated Renamed to {@link VideoAdjustments}. Removed in the next major. */\r\n VideoFilters,\r\n} from '../attributes';\r\n\r\nexport type {\r\n /** The `effects` prop type — what a node actually accepts. */\r\n Effect,\r\n EffectMode,\r\n EffectAxis,\r\n EffectSurface,\r\n EffectOptions,\r\n /** What an image fill's `preset.adjustments` accepts — one, a list, or a chain. */\r\n ImageAdjustment,\r\n VideoAdjustment,\r\n /** The node effects that also work as a media adjustment — see {@link Adjustments}. */\r\n EffectAdjustment,\r\n MediaAdjustment,\r\n VideoOnlyAdjustment,\r\n} from '../attributes';\r\n\r\n/**\r\n * Per-builder options. Every effect builder takes exactly one argument: one of\r\n * these, or the dominant scalar it wraps.\r\n */\r\nexport type {\r\n BlurOptions,\r\n DirectionalBlurOptions,\r\n GrayscaleOptions,\r\n PixelateOptions,\r\n BulgeOptions,\r\n MagnifyOptions,\r\n BloomOptions,\r\n VintageOptions,\r\n ChromaticAberrationOptions,\r\n InvertOptions,\r\n ScatterOptions,\r\n PosterizeOptions,\r\n MotionBlurOptions,\r\n ShaderEffectOptions,\r\n OutlineOptions,\r\n VignetteOptions,\r\n GrainOptions,\r\n SharpenOptions,\r\n EdgesOptions,\r\n ThresholdOptions,\r\n RadialBlurOptions,\r\n HalftoneOptions,\r\n DitherOptions,\r\n DuotoneOptions,\r\n CurvesOptions,\r\n ColorAdjustmentOptions,\r\n RgbShiftOptions,\r\n ScanlinesOptions,\r\n BlockDisplaceOptions,\r\n BitCrushOptions,\r\n AsciiOptions,\r\n StreakOptions,\r\n GlowOptions,\r\n OilPaintOptions,\r\n WaveOptions,\r\n TwirlOptions,\r\n ProgressiveBlurOptions,\r\n KaleidoscopeOptions,\r\n GlassOptions,\r\n LutOptions,\r\n} from '../attributes';\r\n\r\n/**\r\n * Per-builder options for the filters that exist only as filters. Everything\r\n * else on {@link Adjustments} takes the matching effect options above, minus\r\n * `mode` — a filter is on the fill's own pixels, so there is no backdrop to\r\n * point it at.\r\n */\r\nexport type {\r\n BlurFilterOptions,\r\n GrayscaleFilterOptions,\r\n AlphaFilterOptions,\r\n ExposureFilterOptions,\r\n ColorMatrixFilterOptions,\r\n CurvesFilterOptions,\r\n ColorAdjustmentFilterOptions,\r\n PosterizeTimeFilterOptions,\r\n VideoEchoFilterOptions,\r\n} from '../attributes';\r\n\r\n/** Effect data types, for naming an effect value or building one by hand. */\r\nexport type {\r\n BlurEffect,\r\n DirectionalBlurEffect,\r\n GrayscaleEffect,\r\n PixelateEffect,\r\n BulgeEffect,\r\n MagnifyEffect,\r\n BloomEffect,\r\n VintageEffect,\r\n ChromaticAberrationEffect,\r\n InvertEffect,\r\n InvertChannel,\r\n ScatterEffect,\r\n PosterizeEffect,\r\n MotionBlurEffect,\r\n MotionBlurAlignment,\r\n ShaderEffect,\r\n SkSLUniform,\r\n SkSLUniformValue,\r\n OutlineEffect,\r\n OutlinePosition,\r\n VignetteEffect,\r\n GrainEffect,\r\n SharpenEffect,\r\n EdgesEffect,\r\n EdgeKernel,\r\n ThresholdEffect,\r\n RadialBlurEffect,\r\n RadialBlurStyle,\r\n HalftoneEffect,\r\n HalftoneShape,\r\n HalftoneSeparation,\r\n DitherEffect,\r\n DitherMatrix,\r\n DuotoneEffect,\r\n CurvesEffect,\r\n ColorAdjustmentEffect,\r\n RgbShiftEffect,\r\n ScanlinesEffect,\r\n BlockDisplaceEffect,\r\n BitCrushEffect,\r\n BitCrushPalette,\r\n AsciiEffect,\r\n AsciiCharset,\r\n StreakEffect,\r\n GlowEffect,\r\n GlowChannel,\r\n GlowLoopStyle,\r\n GlowOriginal,\r\n GlowTint,\r\n OilPaintEffect,\r\n WaveEffect,\r\n WaveShape,\r\n TwirlEffect,\r\n ProgressiveBlurEffect,\r\n ProgressiveBlurShape,\r\n KaleidoscopeEffect,\r\n GlassEffect,\r\n LutEffect,\r\n} from '../attributes';\r\n\r\n// =============================================================\r\n// Animation — interpolation\r\n//\r\n// There are no `sequence`/`parallel`/`wait` primitives: a command carries its\r\n// own placement, so sequencing is `at + duration`, running two together is a\r\n// shared `at`, and a wait is a gap between them.\r\n// =============================================================\r\nexport {\r\n lerpNumber,\r\n} from '../tween';\r\nexport type {\r\n AnimationTarget,\r\n Steppable,\r\n TweenStepper,\r\n LerpFunction,\r\n TweenOptions,\r\n} from '../tween';\r\n\r\n// An animation as a **value** rather than as control flow: a declared duration\r\n// plus `at(t)`, so a host can ask what it looks like at a time instead of\r\n// running it to one. That is what lets a host place one on a timeline, and what\r\n// makes a scene scrub in constant time rather than replay. A component's\r\n// `commands` return one, and the command registry — and a host listing what a\r\n// node can do — reads them.\r\n//\r\n// One command shape, always: `node.to(a, 1)` is a single command, not a builder\r\n// you can append to. Two of them are sequenced by where they sit on the\r\n// timeline, which is what makes a scene's shape editable rather than implied by\r\n// the order of calls in a function body.\r\nexport {\r\n getCommandMeta,\r\n isCommand,\r\n makeCommand,\r\n commandSequence,\r\n commandParallel,\r\n loopCommand,\r\n} from '../tween';\r\nexport type { Command, CommandArgs, CommandMeta, CommandOptions } from '../tween';\r\n\r\n// =============================================================\r\n// Animation — Easing\r\n// =============================================================\r\nexport {\r\n linear,\r\n easeIn,\r\n easeOut,\r\n easeInOut\r\n} from '../tween';\r\nexport type {\r\n EasingFunction,\r\n EaseParams,\r\n StandardEase\r\n} from '../tween';\r\n\r\n// =============================================================\r\n// Utilities\r\n// =============================================================\r\nexport {\r\n createRef,\r\n clamp,\r\n generateList,\r\n createContext,\r\n ContextMap,\r\n Random,\r\n SeedGenerator,\r\n parseCSV,\r\n parseData,\r\n} from '../util';\r\nexport type {\r\n Reference,\r\n RefTarget,\r\n Context,\r\n DataRecord,\r\n ParseCSVOptions,\r\n} from '../util';\r\n\r\n// =============================================================\r\n// Editor selection — node boxes, hit testing, transient overrides\r\n// =============================================================\r\n// The geometry an editor needs to lay a selection gizmo over the canvas: where a\r\n// node's pixels landed, and which node is under a point. Both are pure functions\r\n// over a scene's node tree, so a host can use them directly; a player embedding\r\n// reaches the same thing through `useMotionPlayer` (`getNodeBox`, `pickNode`,\r\n// `setNodeOverride`). Points and boxes are in viewport space — origin at the\r\n// viewport centre, y-up.\r\n//\r\n// These genuinely live in `../runtime` (node hit-testing and the transient\r\n// override store are runtime concerns) — deep-imported from their concrete\r\n// files, never the runtime barrel itself.\r\nexport { nodeTypeIsA, parentIssue, placementIssues, siblingIssue } from '../document/placement';\r\nexport type { PlacementIssue, PlacementOptions } from '../document/placement';\r\n\r\nexport {\r\n nodeBox,\r\n pickNode,\r\n collectBoxes,\r\n parentPlanePointAt,\r\n childPlanePointAt,\r\n reparentPlacementAt,\r\n nodeHandlesAt,\r\n handleValueAt,\r\n} from '../runtime/node-picking';\r\nexport type {\r\n NodeBox,\r\n ReparentPlacement,\r\n} from '../runtime/node-picking';\r\nexport type {\r\n NodeOverride,\r\n} from '../runtime/playback-controller';\r\nexport type {\r\n TreeState,\r\n} from '../project';\r\n/** @deprecated Kept until 1.0; see `../renamed-scene-names`. */\r\nexport type { SceneDocument, SceneEffect } from '../renamed-scene-names';\r\n"]}
@@ -4,10 +4,10 @@ import { type PropertyEditor } from "../attributes/properties/decorator.js";
4
4
  * offer, place on a timeline and store by name. Metadata only.
5
5
  *
6
6
  * ```ts
7
- * @command({ args: ["index"] })
8
- * showSeries({ data, duration = 1, easing }: CommandArgs<{ index: number }>): Command<ChartProps> {
9
- * …
7
+ * class Chart extends Node2D<ChartProps> {
8
+ * showSeries({ data, duration = 1, easing }: CommandArgs<{ index: number }>): Command<ChartProps> { … }
10
9
  * }
10
+ * declareMembers(Chart, { showSeries: command({ args: ["index"] }) });
11
11
  * ```
12
12
  *
13
13
  * `args` maps a stored command's `params` object onto `data`'s keys — see
@@ -22,12 +22,12 @@ export interface CommandArgDescriptor extends PropertyEditor {
22
22
  default?: unknown;
23
23
  }
24
24
  export type CommandArg = string | CommandArgDescriptor;
25
- /** Symbol under which `@command` metadata is stored on class prototypes. */
25
+ /** Symbol under which `command` metadata is stored on class prototypes. */
26
26
  export declare const COMMAND_META: unique symbol;
27
27
  export interface CommandMeta {
28
- /** The key a host stores and dispatches on: the method name unless `@command({ key })` renamed it. */
28
+ /** The key a host stores and dispatches on: the method name unless `command({ key })` renamed it. */
29
29
  key: string;
30
- /** The decorated method, which dispatching {@link key} calls. */
30
+ /** The method, which dispatching {@link key} calls. */
31
31
  method: string;
32
32
  /** Display name; built-ins leave this unset and localize by {@link key} instead. */
33
33
  name?: string;
@@ -38,8 +38,6 @@ export interface CommandMeta {
38
38
  * (`data`/`duration`/`easing`, not `index` or `wobble`).
39
39
  */
40
40
  args?: readonly CommandArg[];
41
- /** Withdrawn by a subclass: unpublished, still dispatched. See `withdraw`. */
42
- withdrawn?: boolean;
43
41
  }
44
42
  export interface CommandOptions {
45
43
  /** Publishes the method under another key, for a name the method cannot take (a prop, an inherited method). */
@@ -48,7 +46,7 @@ export interface CommandOptions {
48
46
  args?: readonly CommandArg[];
49
47
  }
50
48
  /**
51
- * Every `@command` on an instance's class, inherited included, base → subclass.
49
+ * Every `command` on an instance's class, inherited included, base → subclass.
52
50
  * A subclass that redeclares a key replaces the inherited declaration — method,
53
51
  * name and args — at the position the base gave it.
54
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"command-decorator.d.ts","sourceRoot":"","sources":["../../src/tween/command-decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAErF;;;;;;;;;;;;;;;GAeG;AAEH,kLAAkL;AAClL,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IACxD,kEAAkE;IAClE,GAA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AM,YAAY,eAAwB,CAAC;AAElD,MAAM,WAAW,WAAW;IACxB,qGAAqG;IACrG,GAAG,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC3B,+GAA+G;IAC/G,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CAE9D;AAED,+BAA+B;AAC/B,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,IAC3B,QAAQ,MAAM,EAAE,aAAa,MAAM,GAAG,MAAM,KAAG,IAAI,CAevE"}
@@ -1,8 +1,8 @@
1
1
  import { mostDerived } from "../attributes/properties/decorator.js";
2
- /** Symbol under which `@command` metadata is stored on class prototypes. */
2
+ /** Symbol under which `command` metadata is stored on class prototypes. */
3
3
  export const COMMAND_META = Symbol("commandMeta");
4
4
  /**
5
- * Every `@command` on an instance's class, inherited included, base → subclass.
5
+ * Every `command` on an instance's class, inherited included, base → subclass.
6
6
  * A subclass that redeclares a key replaces the inherited declaration — method,
7
7
  * name and args — at the position the base gave it.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"command-decorator.js","sourceRoot":"","sources":["../../src/tween/command-decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,mCAAmC,CAAC;AA4BrF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AA2BlD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC3C,OAAO,WAAW,CAAc,QAAQ,EAAE,YAAY,CAAC,CAAC;AAC5D,CAAC;AAED,+BAA+B;AAC/B,MAAM,UAAU,OAAO,CAAC,OAAwB;IAC5C,OAAO,UAAU,MAAc,EAAE,WAA4B;QACzD,MAAM,MAAM,GAAG,WAAqB,CAAC;QACrC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,MAAM,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;YAC7D,MAAkC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;QAC3D,CAAC;QACD,MAAM,IAAI,GAAI,MAAkC,CAAC,YAAY,CAAkB,CAAC;QAChF,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;YAAE,OAAO;QAC1C,IAAI,CAAC,IAAI,CAAC;YACN,GAAG;YACH,MAAM;YACN,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACnD,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { mostDerived, type PropertyEditor } from \"@/attributes/properties/decorator\";\r\n\r\n/**\r\n * Marks a method as a command: a named, parameterised animation a host can\r\n * offer, place on a timeline and store by name. Metadata only.\r\n *\r\n * ```ts\r\n * @command({ args: [\"index\"] })\r\n * showSeries({ data, duration = 1, easing }: CommandArgs<{ index: number }>): Command<ChartProps> {\r\n * …\r\n * }\r\n * ```\r\n *\r\n * `args` maps a stored command's `params` object onto `data`'s keys — see\r\n * {@link CommandMeta.args}. Every command takes one {@link CommandArgs}\r\n * argument rather than positional params, so a manifest can read its shape\r\n * off `T` directly.\r\n */\r\n\r\n/** One argument a command takes, in the same vocabulary a property uses ({@link PropertyEditor}) — a range, an enum, a unit. A bare string is a name with nothing else to say. */\r\nexport interface CommandArgDescriptor extends PropertyEditor {\r\n /** The key under a `CommandSpec`'s `params` this is read from. */\r\n key: string;\r\n default?: unknown;\r\n}\r\n\r\nexport type CommandArg = string | CommandArgDescriptor;\r\n\r\n/** Symbol under which `@command` metadata is stored on class prototypes. */\r\nexport const COMMAND_META = Symbol(\"commandMeta\");\r\n\r\nexport interface CommandMeta {\r\n /** The key a host stores and dispatches on: the method name unless `@command({ key })` renamed it. */\r\n key: string;\r\n /** The decorated method, which dispatching {@link key} calls. */\r\n method: string;\r\n /** Display name; built-ins leave this unset and localize by {@link key} instead. */\r\n name?: string;\r\n /**\r\n * Keys of `params` that become `data`'s fields, in a document. Written here\r\n * rather than derived from the method's own parameter names, which a\r\n * minifier mangles and which don't match the document vocabulary anyway\r\n * (`data`/`duration`/`easing`, not `index` or `wobble`).\r\n */\r\n args?: readonly CommandArg[];\r\n /** Withdrawn by a subclass: unpublished, still dispatched. See `withdraw`. */\r\n withdrawn?: boolean;\r\n}\r\n\r\nexport interface CommandOptions {\r\n /** Publishes the method under another key, for a name the method cannot take (a prop, an inherited method). */\r\n key?: string;\r\n name?: string;\r\n args?: readonly CommandArg[];\r\n}\r\n\r\n/**\r\n * Every `@command` on an instance's class, inherited included, base → subclass.\r\n * A subclass that redeclares a key replaces the inherited declaration — method,\r\n * name and args — at the position the base gave it.\r\n */\r\nexport function getCommandMeta(instance: object): CommandMeta[] {\r\n return mostDerived<CommandMeta>(instance, COMMAND_META);\r\n}\r\n\r\n/** See the module docblock. */\r\nexport function command(options?: CommandOptions) {\r\n return function (target: object, propertyKey: string | symbol): void {\r\n const method = propertyKey as string;\r\n const key = options?.key ?? method;\r\n if (!Object.prototype.hasOwnProperty.call(target, COMMAND_META)) {\r\n (target as Record<symbol, unknown>)[COMMAND_META] = [];\r\n }\r\n const list = (target as Record<symbol, unknown>)[COMMAND_META] as CommandMeta[];\r\n if (list.some(m => m.key === key)) return;\r\n list.push({\r\n key,\r\n method,\r\n ...(options?.name ? { name: options.name } : {}),\r\n ...(options?.args ? { args: options.args } : {}),\r\n });\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"command-decorator.js","sourceRoot":"","sources":["../../src/tween/command-decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,mCAAmC,CAAC;AA4BrF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAyBlD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC3C,OAAO,WAAW,CAAc,QAAQ,EAAE,YAAY,CAAC,CAAC;AAC5D,CAAC;AAED,+BAA+B;AAC/B,MAAM,UAAU,OAAO,CAAC,OAAwB;IAC5C,OAAO,UAAU,MAAc,EAAE,WAA4B;QACzD,MAAM,MAAM,GAAG,WAAqB,CAAC;QACrC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,MAAM,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;YAC7D,MAAkC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;QAC3D,CAAC;QACD,MAAM,IAAI,GAAI,MAAkC,CAAC,YAAY,CAAkB,CAAC;QAChF,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;YAAE,OAAO;QAC1C,IAAI,CAAC,IAAI,CAAC;YACN,GAAG;YACH,MAAM;YACN,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACnD,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { mostDerived, type PropertyEditor } from \"@/attributes/properties/decorator\";\r\n\r\n/**\r\n * Marks a method as a command: a named, parameterised animation a host can\r\n * offer, place on a timeline and store by name. Metadata only.\r\n *\r\n * ```ts\r\n * class Chart extends Node2D<ChartProps> {\r\n * showSeries({ data, duration = 1, easing }: CommandArgs<{ index: number }>): Command<ChartProps> { … }\r\n * }\r\n * declareMembers(Chart, { showSeries: command({ args: [\"index\"] }) });\r\n * ```\r\n *\r\n * `args` maps a stored command's `params` object onto `data`'s keys — see\r\n * {@link CommandMeta.args}. Every command takes one {@link CommandArgs}\r\n * argument rather than positional params, so a manifest can read its shape\r\n * off `T` directly.\r\n */\r\n\r\n/** One argument a command takes, in the same vocabulary a property uses ({@link PropertyEditor}) — a range, an enum, a unit. A bare string is a name with nothing else to say. */\r\nexport interface CommandArgDescriptor extends PropertyEditor {\r\n /** The key under a `CommandSpec`'s `params` this is read from. */\r\n key: string;\r\n default?: unknown;\r\n}\r\n\r\nexport type CommandArg = string | CommandArgDescriptor;\r\n\r\n/** Symbol under which `command` metadata is stored on class prototypes. */\r\nexport const COMMAND_META = Symbol(\"commandMeta\");\r\n\r\nexport interface CommandMeta {\r\n /** The key a host stores and dispatches on: the method name unless `command({ key })` renamed it. */\r\n key: string;\r\n /** The method, which dispatching {@link key} calls. */\r\n method: string;\r\n /** Display name; built-ins leave this unset and localize by {@link key} instead. */\r\n name?: string;\r\n /**\r\n * Keys of `params` that become `data`'s fields, in a document. Written here\r\n * rather than derived from the method's own parameter names, which a\r\n * minifier mangles and which don't match the document vocabulary anyway\r\n * (`data`/`duration`/`easing`, not `index` or `wobble`).\r\n */\r\n args?: readonly CommandArg[];\r\n}\r\n\r\nexport interface CommandOptions {\r\n /** Publishes the method under another key, for a name the method cannot take (a prop, an inherited method). */\r\n key?: string;\r\n name?: string;\r\n args?: readonly CommandArg[];\r\n}\r\n\r\n/**\r\n * Every `command` on an instance's class, inherited included, base → subclass.\r\n * A subclass that redeclares a key replaces the inherited declaration — method,\r\n * name and args — at the position the base gave it.\r\n */\r\nexport function getCommandMeta(instance: object): CommandMeta[] {\r\n return mostDerived<CommandMeta>(instance, COMMAND_META);\r\n}\r\n\r\n/** See the module docblock. */\r\nexport function command(options?: CommandOptions) {\r\n return function (target: object, propertyKey: string | symbol): void {\r\n const method = propertyKey as string;\r\n const key = options?.key ?? method;\r\n if (!Object.prototype.hasOwnProperty.call(target, COMMAND_META)) {\r\n (target as Record<symbol, unknown>)[COMMAND_META] = [];\r\n }\r\n const list = (target as Record<symbol, unknown>)[COMMAND_META] as CommandMeta[];\r\n if (list.some(m => m.key === key)) return;\r\n list.push({\r\n key,\r\n method,\r\n ...(options?.name ? { name: options.name } : {}),\r\n ...(options?.args ? { args: options.args } : {}),\r\n });\r\n };\r\n}\r\n"]}
@@ -15,7 +15,7 @@ export interface Command<P = Record<string, unknown>> extends Steppable {
15
15
  at(t: number): Partial<P>;
16
16
  }
17
17
  /**
18
- * The single argument a `@command()` method takes: its own params under `data`,
18
+ * The single argument a `command()` method takes: its own params under `data`,
19
19
  * plus shared timing. One object (not positional args) so a manifest can read a
20
20
  * command's shape off `T` directly.
21
21
  *